@rotki/ui-library 0.2.3 → 0.3.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.
@@ -1,14 +1,15 @@
1
1
  import { type ContextColorsType } from '../../consts/colors';
2
+ import { type RuiIcons } from '~/src';
2
3
  export interface Props {
3
4
  title?: string;
4
5
  description?: string;
5
6
  type?: ContextColorsType;
6
- icon?: string;
7
+ icon?: RuiIcons;
7
8
  variant?: 'default' | 'filled' | 'outlined';
8
9
  actionText?: string;
9
10
  closeable?: boolean;
10
11
  }
11
- declare const _default: import("vue").DefineComponent<{
12
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
12
13
  variant: {
13
14
  type: globalThis.PropType<"default" | "outlined" | "filled">;
14
15
  default: string;
@@ -22,8 +23,8 @@ declare const _default: import("vue").DefineComponent<{
22
23
  default: string;
23
24
  };
24
25
  icon: {
25
- type: globalThis.PropType<string>;
26
- default: string;
26
+ type: globalThis.PropType<RuiIcons>;
27
+ default: undefined;
27
28
  };
28
29
  description: {
29
30
  type: globalThis.PropType<string>;
@@ -54,8 +55,8 @@ declare const _default: import("vue").DefineComponent<{
54
55
  default: string;
55
56
  };
56
57
  icon: {
57
- type: globalThis.PropType<string>;
58
- default: string;
58
+ type: globalThis.PropType<RuiIcons>;
59
+ default: undefined;
59
60
  };
60
61
  description: {
61
62
  type: globalThis.PropType<string>;
@@ -70,15 +71,23 @@ declare const _default: import("vue").DefineComponent<{
70
71
  default: boolean;
71
72
  };
72
73
  }>> & {
73
- onAction?: (() => any) | undefined;
74
74
  onClose?: (() => any) | undefined;
75
+ onAction?: (() => any) | undefined;
75
76
  }, {
76
77
  variant: "default" | "outlined" | "filled";
77
78
  type: "primary" | "secondary" | "error" | "warning" | "info" | "success";
78
79
  title: string;
79
- icon: string;
80
+ icon: RuiIcons;
80
81
  description: string;
81
82
  actionText: string;
82
83
  closeable: boolean;
83
- }, {}>;
84
+ }, {}>, {
85
+ title?(_: {}): any;
86
+ default?(_: {}): any;
87
+ }>;
84
88
  export default _default;
89
+ type __VLS_WithTemplateSlots<T, S> = T & {
90
+ new (): {
91
+ $slots: S;
92
+ };
93
+ };
@@ -0,0 +1,60 @@
1
+ export interface Props {
2
+ dense?: boolean;
3
+ divide?: boolean;
4
+ elevation?: number;
5
+ variant?: 'flat' | 'outlined';
6
+ }
7
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
8
+ variant: {
9
+ type: globalThis.PropType<"flat" | "outlined">;
10
+ default: string;
11
+ };
12
+ elevation: {
13
+ type: globalThis.PropType<number>;
14
+ default: number;
15
+ };
16
+ dense: {
17
+ type: globalThis.PropType<boolean>;
18
+ default: boolean;
19
+ };
20
+ divide: {
21
+ type: globalThis.PropType<boolean>;
22
+ default: boolean;
23
+ };
24
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
25
+ variant: {
26
+ type: globalThis.PropType<"flat" | "outlined">;
27
+ default: string;
28
+ };
29
+ elevation: {
30
+ type: globalThis.PropType<number>;
31
+ default: number;
32
+ };
33
+ dense: {
34
+ type: globalThis.PropType<boolean>;
35
+ default: boolean;
36
+ };
37
+ divide: {
38
+ type: globalThis.PropType<boolean>;
39
+ default: boolean;
40
+ };
41
+ }>>, {
42
+ variant: "flat" | "outlined";
43
+ elevation: number;
44
+ dense: boolean;
45
+ divide: boolean;
46
+ }, {}>, {
47
+ image?(_: {}): any;
48
+ "custom-header"?(_: {}): any;
49
+ prepend?(_: {}): any;
50
+ header?(_: {}): any;
51
+ subheader?(_: {}): any;
52
+ default?(_: {}): any;
53
+ footer?(_: {}): any;
54
+ }>;
55
+ export default _default;
56
+ type __VLS_WithTemplateSlots<T, S> = T & {
57
+ new (): {
58
+ $slots: S;
59
+ };
60
+ };
@@ -0,0 +1,26 @@
1
+ export interface Props {
2
+ dense?: boolean;
3
+ }
4
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
5
+ dense: {
6
+ type: globalThis.PropType<boolean>;
7
+ default: boolean;
8
+ };
9
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
10
+ dense: {
11
+ type: globalThis.PropType<boolean>;
12
+ default: boolean;
13
+ };
14
+ }>>, {
15
+ dense: boolean;
16
+ }, {}>, {
17
+ prepend?(_: {}): any;
18
+ header?(_: {}): any;
19
+ subheader?(_: {}): any;
20
+ }>;
21
+ export default _default;
22
+ type __VLS_WithTemplateSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
@@ -169,6 +169,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
169
169
  searchQuery: string;
170
170
  searchProp: string;
171
171
  }, {}>, {
172
+ "no-data"?(_: {}): any;
172
173
  prefix?(_: {
173
174
  class: string;
174
175
  }): any;
@@ -0,0 +1,59 @@
1
+ export interface Props {
2
+ modelValue: string | number;
3
+ options: string[] | number[];
4
+ disabled?: boolean;
5
+ name?: string;
6
+ variant?: 'default' | 'outlined';
7
+ }
8
+ declare const _default: import("vue").DefineComponent<{
9
+ name: {
10
+ type: globalThis.PropType<string>;
11
+ default: string;
12
+ };
13
+ variant: {
14
+ type: globalThis.PropType<"default" | "outlined">;
15
+ default: string;
16
+ };
17
+ disabled: {
18
+ type: globalThis.PropType<boolean>;
19
+ default: boolean;
20
+ };
21
+ modelValue: {
22
+ type: globalThis.PropType<string | number>;
23
+ required: true;
24
+ };
25
+ options: {
26
+ type: globalThis.PropType<string[] | number[]>;
27
+ required: true;
28
+ };
29
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
30
+ "update:model-value": (value?: string | number | undefined) => void;
31
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
32
+ name: {
33
+ type: globalThis.PropType<string>;
34
+ default: string;
35
+ };
36
+ variant: {
37
+ type: globalThis.PropType<"default" | "outlined">;
38
+ default: string;
39
+ };
40
+ disabled: {
41
+ type: globalThis.PropType<boolean>;
42
+ default: boolean;
43
+ };
44
+ modelValue: {
45
+ type: globalThis.PropType<string | number>;
46
+ required: true;
47
+ };
48
+ options: {
49
+ type: globalThis.PropType<string[] | number[]>;
50
+ required: true;
51
+ };
52
+ }>> & {
53
+ "onUpdate:model-value"?: ((value?: string | number | undefined) => any) | undefined;
54
+ }, {
55
+ name: string;
56
+ variant: "default" | "outlined";
57
+ disabled: boolean;
58
+ }, {}>;
59
+ export default _default;
@@ -1,4 +1,5 @@
1
1
  import { type ContextColorsType } from '../../../consts/colors';
2
+ import { type RuiIcons } from '~/src';
2
3
  export interface Props {
3
4
  modelValue?: string;
4
5
  label?: string;
@@ -11,8 +12,8 @@ export interface Props {
11
12
  as?: string | object;
12
13
  errorMessages?: string[];
13
14
  hideDetails?: boolean;
14
- prependIcon?: string;
15
- appendIcon?: string;
15
+ prependIcon?: RuiIcons;
16
+ appendIcon?: RuiIcons;
16
17
  }
17
18
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
18
19
  variant: {
@@ -60,12 +61,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
60
61
  default: boolean;
61
62
  };
62
63
  prependIcon: {
63
- type: globalThis.PropType<string>;
64
- default: string;
64
+ type: globalThis.PropType<RuiIcons>;
65
+ default: undefined;
65
66
  };
66
67
  appendIcon: {
67
- type: globalThis.PropType<string>;
68
- default: string;
68
+ type: globalThis.PropType<RuiIcons>;
69
+ default: undefined;
69
70
  };
70
71
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
71
72
  "update:modelValue": (modelValue: string) => void;
@@ -118,18 +119,18 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
118
119
  default: boolean;
119
120
  };
120
121
  prependIcon: {
121
- type: globalThis.PropType<string>;
122
- default: string;
122
+ type: globalThis.PropType<RuiIcons>;
123
+ default: undefined;
123
124
  };
124
125
  appendIcon: {
125
- type: globalThis.PropType<string>;
126
- default: string;
126
+ type: globalThis.PropType<RuiIcons>;
127
+ default: undefined;
127
128
  };
128
129
  }>> & {
129
130
  onBlur?: ((event: Event) => any) | undefined;
130
- onRemove?: ((value: unknown) => any) | undefined;
131
131
  "onUpdate:modelValue"?: ((modelValue: string) => any) | undefined;
132
132
  "onFocus-input"?: ((event: Event) => any) | undefined;
133
+ onRemove?: ((value: unknown) => any) | undefined;
133
134
  }, {
134
135
  variant: "default" | "outlined" | "filled";
135
136
  color: "grey" | "primary" | "secondary" | "error" | "warning" | "info" | "success";
@@ -142,8 +143,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
142
143
  as: string | object;
143
144
  errorMessages: string[];
144
145
  hideDetails: boolean;
145
- prependIcon: string;
146
- appendIcon: string;
146
+ prependIcon: RuiIcons;
147
+ appendIcon: RuiIcons;
147
148
  }, {}>, {
148
149
  prepend?(_: {}): any;
149
150
  append?(_: {}): any;
@@ -1,12 +1,13 @@
1
1
  import { type ContextColorsType } from '../../consts/colors';
2
+ import { type RuiIcons } from '~/src';
2
3
  export interface Props {
3
- name: string;
4
+ name: RuiIcons;
4
5
  size?: number | string;
5
6
  color?: ContextColorsType;
6
7
  }
7
8
  declare const _default: import("vue").DefineComponent<{
8
9
  name: {
9
- type: globalThis.PropType<string>;
10
+ type: globalThis.PropType<RuiIcons>;
10
11
  required: true;
11
12
  };
12
13
  color: {
@@ -19,7 +20,7 @@ declare const _default: import("vue").DefineComponent<{
19
20
  };
20
21
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
21
22
  name: {
22
- type: globalThis.PropType<string>;
23
+ type: globalThis.PropType<RuiIcons>;
23
24
  required: true;
24
25
  };
25
26
  color: {
@@ -1,16 +1,21 @@
1
1
  import { default as RuiAlert } from '../components/alerts/Alert.vue';
2
- import { default as RuiAutoComplete } from '../components/forms/auto-complete/AutoComplete.vue';
3
- import { default as RuiButton } from '../components/buttons/button/Button.vue';
2
+ import { type Props as AutoCompleteProps, default as RuiAutoComplete } from '../components/forms/auto-complete/AutoComplete.vue';
3
+ import { type Props as ButtonProps, default as RuiButton } from '../components/buttons/button/Button.vue';
4
4
  import { default as RuiButtonGroup } from '../components/buttons/button-group/ButtonGroup.vue';
5
5
  import { default as RuiIcon } from '../components/icons/Icon.vue';
6
6
  import { default as RuiCheckbox } from '../components/forms/checkbox/Checkbox.vue';
7
- import { default as RuiChip } from '../components/chips/Chip.vue';
7
+ import { type Props as ChipProps, default as RuiChip } from '../components/chips/Chip.vue';
8
8
  import { default as RuiStepper } from '../components/steppers/Stepper.vue';
9
9
  import { default as RuiTextField } from '../components/forms/text-field/TextField.vue';
10
+ import { default as RuiTooltip, type Props as TooltipProps } from '../components/overlays/tooltip/Tooltip.vue';
11
+ import { type Props as DialogProps, default as RuiDialog } from '../components/overlays/dialog/Dialog.vue';
10
12
  import { default as RuiFooterStepper } from '../components/steppers/FooterStepper.vue';
11
13
  import { default as RuiProgress } from '../components/progress/Progress.vue';
12
14
  import { default as RuiRadioGroup } from '../components/forms/radio-button/radio-group/RadioGroup.vue';
13
15
  import { default as RuiRadio } from '../components/forms/radio-button/radio/Radio.vue';
14
16
  import { default as RuiRevealableTextField } from '../components/forms/revealable-text-field/RevealableTextField.vue';
15
17
  import { default as RuiLogo } from '../components/logos/Logo.vue';
16
- export { RuiAlert, RuiAutoComplete, RuiButton, RuiButtonGroup, RuiCheckbox, RuiChip, RuiFooterStepper, RuiIcon, RuiLogo, RuiProgress, RuiRadio, RuiRadioGroup, RuiRevealableTextField, RuiStepper, RuiTextField, };
18
+ import { default as RuiSimpleSelect, type Props as SimpleSelectProps } from '../components/forms/select/SimpleSelect.vue';
19
+ import { type TableColumn as DataTableColumn, type TableOptions as DataTableOptions, type Props as DataTableProps, type SortColumn as DataTableSortColumn, default as RuiDataTable } from '../components/tables/DataTable.vue';
20
+ import { type Props as CardProps, default as RuiCard } from '../components/cards/Card.vue';
21
+ export { RuiAlert, RuiAutoComplete, RuiButton, RuiButtonGroup, RuiCheckbox, RuiChip, RuiFooterStepper, RuiIcon, RuiLogo, RuiProgress, RuiRadio, RuiRadioGroup, RuiRevealableTextField, RuiStepper, RuiTextField, RuiTooltip, RuiDataTable, RuiSimpleSelect, RuiDialog, RuiCard, AutoCompleteProps, ChipProps, TooltipProps, SimpleSelectProps, DataTableProps, DataTableColumn, DataTableSortColumn, DataTableOptions, DialogProps, ButtonProps, CardProps, };
@@ -1,24 +1,29 @@
1
- import { A as r, a as p, R as m, B as l, C as d, b as x, F as C, c as F, _ as b, d as c, e as g, f as h, g as n, h as A, i as B } from "../index-8228cd5f.js";
1
+ import { A as p, a as r, B as l, b as m, j as d, C, c as T, D as b, i as c, F as g, I as x, _ as F, P as S, R as h, d as n, e as A, h as B, f as D, g as f, T as G } from "../index-63107447.js";
2
2
  import "vue";
3
3
  import "@vueuse/shared";
4
- import "../index-1f5d0d16.js";
4
+ import "../index-2304aade.js";
5
5
  import "../all-icons.es.js";
6
6
  import "@vueuse/core";
7
7
  import "../colors-01d79c7b.js";
8
8
  export {
9
- r as RuiAlert,
10
- p as RuiAutoComplete,
11
- m as RuiButton,
12
- l as RuiButtonGroup,
13
- d as RuiCheckbox,
14
- x as RuiChip,
15
- C as RuiFooterStepper,
16
- F as RuiIcon,
17
- b as RuiLogo,
18
- c as RuiProgress,
19
- g as RuiRadio,
20
- h as RuiRadioGroup,
21
- n as RuiRevealableTextField,
22
- A as RuiStepper,
23
- B as RuiTextField
9
+ p as RuiAlert,
10
+ r as RuiAutoComplete,
11
+ l as RuiButton,
12
+ m as RuiButtonGroup,
13
+ d as RuiCard,
14
+ C as RuiCheckbox,
15
+ T as RuiChip,
16
+ b as RuiDataTable,
17
+ c as RuiDialog,
18
+ g as RuiFooterStepper,
19
+ x as RuiIcon,
20
+ F as RuiLogo,
21
+ S as RuiProgress,
22
+ h as RuiRadio,
23
+ n as RuiRadioGroup,
24
+ A as RuiRevealableTextField,
25
+ B as RuiSimpleSelect,
26
+ D as RuiStepper,
27
+ f as RuiTextField,
28
+ G as RuiTooltip
24
29
  };
@@ -1,17 +1,27 @@
1
1
  export interface Props {
2
2
  text?: boolean;
3
+ customSrc?: string;
3
4
  }
4
5
  declare const _default: import("vue").DefineComponent<{
5
6
  text: {
6
7
  type: globalThis.PropType<boolean>;
7
8
  default: boolean;
8
9
  };
10
+ customSrc: {
11
+ type: globalThis.PropType<string>;
12
+ default: undefined;
13
+ };
9
14
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
10
15
  text: {
11
16
  type: globalThis.PropType<boolean>;
12
17
  default: boolean;
13
18
  };
19
+ customSrc: {
20
+ type: globalThis.PropType<string>;
21
+ default: undefined;
22
+ };
14
23
  }>>, {
15
24
  text: boolean;
25
+ customSrc: string;
16
26
  }, {}>;
17
27
  export default _default;
@@ -0,0 +1,60 @@
1
+ export interface Props {
2
+ modelValue: boolean;
3
+ dismissible?: boolean;
4
+ persistent?: boolean;
5
+ size?: 'sm' | 'md' | 'lg';
6
+ }
7
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
8
+ size: {
9
+ type: globalThis.PropType<"sm" | "lg" | "md">;
10
+ default: string;
11
+ };
12
+ modelValue: {
13
+ type: globalThis.PropType<boolean>;
14
+ required: true;
15
+ };
16
+ dismissible: {
17
+ type: globalThis.PropType<boolean>;
18
+ default: boolean;
19
+ };
20
+ persistent: {
21
+ type: globalThis.PropType<boolean>;
22
+ default: boolean;
23
+ };
24
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
25
+ "update:model-value": (modelValue: boolean) => void;
26
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
27
+ size: {
28
+ type: globalThis.PropType<"sm" | "lg" | "md">;
29
+ default: string;
30
+ };
31
+ modelValue: {
32
+ type: globalThis.PropType<boolean>;
33
+ required: true;
34
+ };
35
+ dismissible: {
36
+ type: globalThis.PropType<boolean>;
37
+ default: boolean;
38
+ };
39
+ persistent: {
40
+ type: globalThis.PropType<boolean>;
41
+ default: boolean;
42
+ };
43
+ }>> & {
44
+ "onUpdate:model-value"?: ((modelValue: boolean) => any) | undefined;
45
+ }, {
46
+ size: "sm" | "lg" | "md";
47
+ dismissible: boolean;
48
+ persistent: boolean;
49
+ }, {}>, {
50
+ description?(_: {}): any;
51
+ title?(_: {}): any;
52
+ default?(_: {}): any;
53
+ actions?(_: {}): any;
54
+ }>;
55
+ export default _default;
56
+ type __VLS_WithTemplateSlots<T, S> = T & {
57
+ new (): {
58
+ $slots: S;
59
+ };
60
+ };
@@ -0,0 +1,78 @@
1
+ import { type PopperOptions } from '../../../composables/popper';
2
+ export interface Props {
3
+ text?: string | null;
4
+ disabled?: boolean;
5
+ hideArrow?: boolean;
6
+ openDelay?: number;
7
+ closeDelay?: number;
8
+ popper?: PopperOptions;
9
+ }
10
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
11
+ text: {
12
+ type: globalThis.PropType<string | null>;
13
+ default: null;
14
+ };
15
+ disabled: {
16
+ type: globalThis.PropType<boolean>;
17
+ default: boolean;
18
+ };
19
+ popper: {
20
+ type: globalThis.PropType<PopperOptions>;
21
+ default: () => {};
22
+ };
23
+ hideArrow: {
24
+ type: globalThis.PropType<boolean>;
25
+ default: boolean;
26
+ };
27
+ openDelay: {
28
+ type: globalThis.PropType<number>;
29
+ default: number;
30
+ };
31
+ closeDelay: {
32
+ type: globalThis.PropType<number>;
33
+ default: number;
34
+ };
35
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
36
+ text: {
37
+ type: globalThis.PropType<string | null>;
38
+ default: null;
39
+ };
40
+ disabled: {
41
+ type: globalThis.PropType<boolean>;
42
+ default: boolean;
43
+ };
44
+ popper: {
45
+ type: globalThis.PropType<PopperOptions>;
46
+ default: () => {};
47
+ };
48
+ hideArrow: {
49
+ type: globalThis.PropType<boolean>;
50
+ default: boolean;
51
+ };
52
+ openDelay: {
53
+ type: globalThis.PropType<number>;
54
+ default: number;
55
+ };
56
+ closeDelay: {
57
+ type: globalThis.PropType<number>;
58
+ default: number;
59
+ };
60
+ }>>, {
61
+ text: string | null;
62
+ disabled: boolean;
63
+ popper: PopperOptions;
64
+ hideArrow: boolean;
65
+ openDelay: number;
66
+ closeDelay: number;
67
+ }, {}>, {
68
+ default?(_: {
69
+ open: boolean;
70
+ }): any;
71
+ text?(_: {}): any;
72
+ }>;
73
+ export default _default;
74
+ type __VLS_WithTemplateSlots<T, S> = T & {
75
+ new (): {
76
+ $slots: S;
77
+ };
78
+ };