@rotki/ui-library 0.16.0 → 1.0.0-beta.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 (82) hide show
  1. package/README.md +3 -3
  2. package/dist/RuiNavigationDrawer-By3iqC3V.js +7822 -0
  3. package/dist/__test__/options.d.ts +5 -0
  4. package/dist/{breakpoint-DAvEs_TA.js → breakpoint-OTAceaTK.js} +1 -1
  5. package/dist/components/accordions/accordion/RuiAccordion.vue.d.ts +32 -45
  6. package/dist/components/accordions/accordions/RuiAccordions.vue.d.ts +25 -20
  7. package/dist/components/alerts/RuiAlert.vue.d.ts +37 -61
  8. package/dist/components/buttons/button/RuiButton.vue.d.ts +52 -9
  9. package/dist/components/buttons/button-group/RuiButtonGroup.vue.d.ts +43 -9
  10. package/dist/components/cards/RuiCard.vue.d.ts +33 -52
  11. package/dist/components/cards/RuiCardHeader.vue.d.ts +22 -11
  12. package/dist/components/chips/RuiChip.vue.d.ts +43 -86
  13. package/dist/components/color-picker/RuiColorBoard.vue.d.ts +15 -12
  14. package/dist/components/color-picker/RuiColorDisplay.vue.d.ts +13 -10
  15. package/dist/components/color-picker/RuiColorHue.vue.d.ts +16 -10
  16. package/dist/components/color-picker/RuiColorInput.vue.d.ts +16 -10
  17. package/dist/components/color-picker/RuiColorPicker.vue.d.ts +23 -12
  18. package/dist/components/divider/RuiDivider.vue.d.ts +22 -11
  19. package/dist/components/forms/checkbox/RuiCheckbox.vue.d.ts +42 -85
  20. package/dist/components/forms/radio-button/radio/RuiRadio.vue.d.ts +40 -85
  21. package/dist/components/forms/radio-button/radio-group/RuiRadioGroup.vue.d.ts +43 -86
  22. package/dist/components/forms/revealable-text-field/RuiRevealableTextField.vue.d.ts +59 -144
  23. package/dist/components/forms/select/RuiMenuSelect.vue.d.ts +159 -46
  24. package/dist/components/forms/select/RuiSimpleSelect.vue.d.ts +27 -44
  25. package/dist/components/forms/slider/RuiSlider.vue.d.ts +61 -152
  26. package/dist/components/forms/switch/RuiSwitch.vue.d.ts +40 -77
  27. package/dist/components/forms/text-area/RuiTextArea.vue.d.ts +67 -176
  28. package/dist/components/forms/text-field/RuiTextField.vue.d.ts +60 -145
  29. package/dist/components/helpers/RuiFormTextDetail.vue.d.ts +34 -27
  30. package/dist/components/icons/RuiIcon.vue.d.ts +24 -27
  31. package/dist/components/index.d.ts +4 -2
  32. package/dist/components/index.es.js +25 -23
  33. package/dist/components/loaders/RuiSkeletonBase.vue.d.ts +23 -12
  34. package/dist/components/loaders/RuiSkeletonLoader.vue.d.ts +26 -21
  35. package/dist/components/logos/RuiLogo.vue.d.ts +30 -43
  36. package/dist/components/overlays/badge/RuiBadge.vue.d.ts +45 -94
  37. package/dist/components/overlays/bottom-sheet/RuiBottomSheet.vue.d.ts +24 -31
  38. package/dist/components/overlays/dialog/RuiDialog.vue.d.ts +34 -53
  39. package/dist/components/overlays/menu/RuiMenu.vue.d.ts +67 -142
  40. package/dist/components/overlays/navigation-drawer/RuiNavigationDrawer.vue.d.ts +81 -0
  41. package/dist/components/overlays/notification/RuiNotification.vue.d.ts +45 -0
  42. package/dist/components/overlays/tooltip/RuiTooltip.vue.d.ts +35 -60
  43. package/dist/components/progress/RuiProgress.vue.d.ts +37 -68
  44. package/dist/components/steppers/RuiFooterStepper.vue.d.ts +30 -45
  45. package/dist/components/steppers/RuiStepper.vue.d.ts +36 -69
  46. package/dist/components/steppers/RuiStepperCustomIcon.vue.d.ts +28 -19
  47. package/dist/components/steppers/RuiStepperIcon.vue.d.ts +28 -19
  48. package/dist/components/tables/RuiDataTable.vue.d.ts +253 -21
  49. package/dist/components/tables/RuiExpandButton.vue.d.ts +22 -19
  50. package/dist/components/tables/RuiTableHead.vue.d.ts +88 -21
  51. package/dist/components/tables/RuiTablePagination.vue.d.ts +27 -36
  52. package/dist/components/tabs/tab/RuiTab.vue.d.ts +55 -106
  53. package/dist/components/tabs/tab-item/RuiTabItem.vue.d.ts +30 -36
  54. package/dist/components/tabs/tab-items/RuiTabItems.vue.d.ts +22 -11
  55. package/dist/components/tabs/tabs/RuiTabs.vue.d.ts +36 -55
  56. package/dist/composables/dropdown-menu.d.ts +18 -6
  57. package/dist/composables/index.es.js +2 -2
  58. package/dist/composables/popper.d.ts +2 -0
  59. package/dist/composables/theme.d.ts +1 -1
  60. package/dist/icons/icons_1.d.ts +44 -44
  61. package/dist/icons/icons_1.es.js +987 -987
  62. package/dist/icons/icons_2.d.ts +60 -60
  63. package/dist/icons/icons_2.es.js +1121 -1121
  64. package/dist/icons/icons_3.d.ts +76 -76
  65. package/dist/icons/icons_3.es.js +1149 -1149
  66. package/dist/icons/icons_4.d.ts +96 -96
  67. package/dist/icons/icons_4.es.js +1193 -1193
  68. package/dist/icons/icons_5.d.ts +132 -132
  69. package/dist/icons/icons_5.es.js +1267 -1267
  70. package/dist/icons/icons_6.d.ts +156 -0
  71. package/dist/icons/icons_6.es.js +1099 -475
  72. package/dist/icons/index.d.ts +1 -1
  73. package/dist/icons/index.es.js +2840 -2684
  74. package/dist/index-NNlkUY_M.js +161 -0
  75. package/dist/index.es.js +2917 -2759
  76. package/dist/style.css +1 -1
  77. package/dist/utils/helpers.d.ts +9 -0
  78. package/package.json +31 -32
  79. package/dist/RuiColorPicker.vue_vue_type_script_setup_true_lang-ByCIjyQ_.js +0 -8945
  80. package/dist/components/forms/auto-complete/RuiAutoComplete.vue.d.ts +0 -71
  81. package/dist/components/forms/auto-complete/RuiAutoCompleteSelection.vue.d.ts +0 -30
  82. package/dist/index-RsNqSz2V.js +0 -177
@@ -1,42 +1,44 @@
1
- import { I as u, H as e, R as s, a as R, b as o, J as t, c as r, d as l, u as d, v as p, e as n, f as c, K as T, r as b, t as S, D as m, g as x, h as C, _ as g, q as A, F as h, i as B, j as k, k as D, l as F, s as I, B as v, G as w, m as G, n as P, x as f, z as E, y as H, A as L, E as M, w as j, C as q, o as y, p as z } from "../RuiColorPicker.vue_vue_type_script_setup_true_lang-ByCIjyQ_.js";
1
+ import { I as u, H as s, R as e, a as R, b as o, J as t, c as r, d as l, u as d, v as n, e as p, f as c, K as T, r as b, t as S, D as g, g as m, h as x, _ as C, q as A, F as h, L as B, M as D, i as k, j as v, k as w, l as F, s as I, B as f, G, m as L, n as M, x as P, z as E, y as H, A as N, E as j, w as q, C as y, o as z, p as J } from "../RuiNavigationDrawer-By3iqC3V.js";
2
2
  export {
3
3
  u as RuiAccordion,
4
- e as RuiAccordions,
5
- s as RuiAlert,
4
+ s as RuiAccordions,
5
+ e as RuiAlert,
6
6
  R as RuiAutoComplete,
7
7
  o as RuiBadge,
8
8
  t as RuiBottomSheet,
9
9
  r as RuiButton,
10
10
  l as RuiButtonGroup,
11
11
  d as RuiCard,
12
- p as RuiCardHeader,
13
- n as RuiCheckbox,
12
+ n as RuiCardHeader,
13
+ p as RuiCheckbox,
14
14
  c as RuiChip,
15
15
  T as RuiColorPicker,
16
16
  b as RuiDataTable,
17
17
  S as RuiDialog,
18
- m as RuiDivider,
19
- x as RuiFooterStepper,
20
- C as RuiIcon,
21
- g as RuiLogo,
18
+ g as RuiDivider,
19
+ m as RuiFooterStepper,
20
+ x as RuiIcon,
21
+ C as RuiLogo,
22
22
  A as RuiMenu,
23
23
  h as RuiMenuSelect,
24
- B as RuiProgress,
25
- k as RuiRadio,
26
- D as RuiRadioGroup,
24
+ B as RuiNavigationDrawer,
25
+ D as RuiNotification,
26
+ k as RuiProgress,
27
+ v as RuiRadio,
28
+ w as RuiRadioGroup,
27
29
  F as RuiRevealableTextField,
28
30
  I as RuiSimpleSelect,
29
- v as RuiSkeletonLoader,
30
- w as RuiSlider,
31
- G as RuiStepper,
32
- P as RuiSwitch,
33
- f as RuiTab,
31
+ f as RuiSkeletonLoader,
32
+ G as RuiSlider,
33
+ L as RuiStepper,
34
+ M as RuiSwitch,
35
+ P as RuiTab,
34
36
  E as RuiTabItem,
35
37
  H as RuiTabItems,
36
- L as RuiTablePagination,
37
- M as RuiTableRowExpander,
38
- j as RuiTabs,
39
- q as RuiTextArea,
40
- y as RuiTextField,
41
- z as RuiTooltip
38
+ N as RuiTablePagination,
39
+ j as RuiTableRowExpander,
40
+ q as RuiTabs,
41
+ y as RuiTextArea,
42
+ z as RuiTextField,
43
+ J as RuiTooltip
42
44
  };
@@ -1,17 +1,28 @@
1
1
  export interface Props {
2
2
  rounded?: 'none' | 'sm' | 'md' | 'lg' | 'full';
3
3
  }
4
- declare const _default: import("vue").DefineComponent<{
5
- rounded: {
6
- type: globalThis.PropType<"none" | "sm" | "lg" | "md" | "full">;
7
- default: undefined;
8
- };
9
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
10
- rounded: {
11
- type: globalThis.PropType<"none" | "sm" | "lg" | "md" | "full">;
12
- default: undefined;
13
- };
14
- }>>, {
15
- rounded: "none" | "sm" | "lg" | "md" | "full";
4
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
5
+ rounded: undefined;
6
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
7
+ rounded: undefined;
8
+ }>>>, {
9
+ rounded: "sm" | "md" | "lg" | "none" | "full";
16
10
  }, {}>;
17
11
  export default _default;
12
+ type __VLS_WithDefaults<P, D> = {
13
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
14
+ default: D[K];
15
+ }> : P[K];
16
+ };
17
+ type __VLS_Prettify<T> = {
18
+ [K in keyof T]: T[K];
19
+ } & {};
20
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
21
+ type __VLS_TypePropsToOption<T> = {
22
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
23
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
24
+ } : {
25
+ type: import('vue').PropType<T[K]>;
26
+ required: true;
27
+ };
28
+ };
@@ -2,26 +2,31 @@ import { type Props as SkeletonBaseProps } from '../../components/loaders/RuiSke
2
2
  export interface Props extends SkeletonBaseProps {
3
3
  type?: 'text' | 'paragraph' | 'heading' | 'article' | 'button' | 'icon' | 'avatar' | 'thumbnail' | 'custom';
4
4
  }
5
- declare const _default: import("vue").DefineComponent<{
6
- type: {
7
- type: globalThis.PropType<"heading" | "paragraph" | "text" | "article" | "button" | "icon" | "avatar" | "thumbnail" | "custom">;
8
- default: string;
9
- };
10
- rounded: {
11
- type: globalThis.PropType<"none" | "sm" | "lg" | "md" | "full">;
12
- default: undefined;
13
- };
14
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
15
- type: {
16
- type: globalThis.PropType<"heading" | "paragraph" | "text" | "article" | "button" | "icon" | "avatar" | "thumbnail" | "custom">;
17
- default: string;
18
- };
19
- rounded: {
20
- type: globalThis.PropType<"none" | "sm" | "lg" | "md" | "full">;
21
- default: undefined;
22
- };
23
- }>>, {
24
- type: "heading" | "paragraph" | "text" | "article" | "button" | "icon" | "avatar" | "thumbnail" | "custom";
25
- rounded: "none" | "sm" | "lg" | "md" | "full";
5
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
6
+ type: string;
7
+ rounded: undefined;
8
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
9
+ type: string;
10
+ rounded: undefined;
11
+ }>>>, {
12
+ type: "heading" | "paragraph" | "text" | "article" | "button" | "icon" | "custom" | "avatar" | "thumbnail";
13
+ rounded: "sm" | "md" | "lg" | "none" | "full";
26
14
  }, {}>;
27
15
  export default _default;
16
+ type __VLS_WithDefaults<P, D> = {
17
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
18
+ default: D[K];
19
+ }> : P[K];
20
+ };
21
+ type __VLS_Prettify<T> = {
22
+ [K in keyof T]: T[K];
23
+ } & {};
24
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
25
+ type __VLS_TypePropsToOption<T> = {
26
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
27
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
28
+ } : {
29
+ type: import('vue').PropType<T[K]>;
30
+ required: true;
31
+ };
32
+ };
@@ -13,53 +13,40 @@ export interface Props {
13
13
  size?: string | number;
14
14
  uniqueKey?: string | number;
15
15
  }
16
- declare const _default: import("vue").DefineComponent<{
17
- text: {
18
- type: globalThis.PropType<boolean>;
19
- default: boolean;
20
- };
21
- size: {
22
- type: globalThis.PropType<string | number>;
23
- default: number;
24
- };
25
- branch: {
26
- type: globalThis.PropType<string>;
27
- default: string;
28
- };
29
- logo: {
30
- type: globalThis.PropType<keyof ExternalLinks>;
31
- default: undefined;
32
- };
33
- uniqueKey: {
34
- type: globalThis.PropType<string | number>;
35
- default: undefined;
36
- };
37
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
38
- text: {
39
- type: globalThis.PropType<boolean>;
40
- default: boolean;
41
- };
42
- size: {
43
- type: globalThis.PropType<string | number>;
44
- default: number;
45
- };
46
- branch: {
47
- type: globalThis.PropType<string>;
48
- default: string;
49
- };
50
- logo: {
51
- type: globalThis.PropType<keyof ExternalLinks>;
52
- default: undefined;
53
- };
54
- uniqueKey: {
55
- type: globalThis.PropType<string | number>;
56
- default: undefined;
57
- };
58
- }>>, {
16
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
59
17
  text: boolean;
18
+ branch: string;
19
+ logo: undefined;
20
+ size: number;
21
+ uniqueKey: undefined;
22
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
23
+ text: boolean;
24
+ branch: string;
25
+ logo: undefined;
26
+ size: number;
27
+ uniqueKey: undefined;
28
+ }>>>, {
60
29
  size: string | number;
30
+ text: boolean;
61
31
  branch: string;
62
32
  logo: keyof ExternalLinks;
63
33
  uniqueKey: string | number;
64
34
  }, {}>;
65
35
  export default _default;
36
+ type __VLS_WithDefaults<P, D> = {
37
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
38
+ default: D[K];
39
+ }> : P[K];
40
+ };
41
+ type __VLS_Prettify<T> = {
42
+ [K in keyof T]: T[K];
43
+ } & {};
44
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
45
+ type __VLS_TypePropsToOption<T> = {
46
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
47
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
48
+ } : {
49
+ type: import('vue').PropType<T[K]>;
50
+ required: true;
51
+ };
52
+ };
@@ -13,106 +13,40 @@ export interface Props {
13
13
  rounded?: 'sm' | 'md' | 'lg' | 'full';
14
14
  color?: 'default' | ContextColorsType;
15
15
  }
16
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
17
- text: {
18
- type: globalThis.PropType<string | null>;
19
- default: null;
20
- };
21
- size: {
22
- type: globalThis.PropType<"sm" | "lg" | "md">;
23
- default: string;
24
- };
25
- color: {
26
- type: globalThis.PropType<"primary" | "secondary" | "error" | "warning" | "info" | "success" | "default">;
27
- default: string;
28
- };
29
- icon: {
30
- type: globalThis.PropType<RuiIcons | null>;
31
- default: null;
32
- };
33
- modelValue: {
34
- type: globalThis.PropType<boolean>;
35
- default: boolean;
36
- };
37
- rounded: {
38
- type: globalThis.PropType<"sm" | "lg" | "md" | "full">;
39
- default: string;
40
- };
41
- left: {
42
- type: globalThis.PropType<boolean>;
43
- default: boolean;
44
- };
45
- placement: {
46
- type: globalThis.PropType<"bottom" | "top" | "center">;
47
- default: string;
48
- };
49
- dot: {
50
- type: globalThis.PropType<boolean>;
51
- default: boolean;
52
- };
53
- offsetX: {
54
- type: globalThis.PropType<string | number>;
55
- default: number;
56
- };
57
- offsetY: {
58
- type: globalThis.PropType<string | number>;
59
- default: number;
60
- };
61
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
62
- text: {
63
- type: globalThis.PropType<string | null>;
64
- default: null;
65
- };
66
- size: {
67
- type: globalThis.PropType<"sm" | "lg" | "md">;
68
- default: string;
69
- };
70
- color: {
71
- type: globalThis.PropType<"primary" | "secondary" | "error" | "warning" | "info" | "success" | "default">;
72
- default: string;
73
- };
74
- icon: {
75
- type: globalThis.PropType<RuiIcons | null>;
76
- default: null;
77
- };
78
- modelValue: {
79
- type: globalThis.PropType<boolean>;
80
- default: boolean;
81
- };
82
- rounded: {
83
- type: globalThis.PropType<"sm" | "lg" | "md" | "full">;
84
- default: string;
85
- };
86
- left: {
87
- type: globalThis.PropType<boolean>;
88
- default: boolean;
89
- };
90
- placement: {
91
- type: globalThis.PropType<"bottom" | "top" | "center">;
92
- default: string;
93
- };
94
- dot: {
95
- type: globalThis.PropType<boolean>;
96
- default: boolean;
97
- };
98
- offsetX: {
99
- type: globalThis.PropType<string | number>;
100
- default: number;
101
- };
102
- offsetY: {
103
- type: globalThis.PropType<string | number>;
104
- default: number;
105
- };
106
- }>>, {
16
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
17
+ text: null;
18
+ icon: null;
19
+ modelValue: boolean;
20
+ dot: boolean;
21
+ placement: string;
22
+ left: boolean;
23
+ size: string;
24
+ rounded: string;
25
+ color: string;
26
+ offsetX: number;
27
+ offsetY: number;
28
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
29
+ text: null;
30
+ icon: null;
31
+ modelValue: boolean;
32
+ dot: boolean;
33
+ placement: string;
34
+ left: boolean;
35
+ size: string;
36
+ rounded: string;
37
+ color: string;
38
+ offsetX: number;
39
+ offsetY: number;
40
+ }>>>, {
41
+ size: "sm" | "md" | "lg";
107
42
  text: string | null;
108
- size: "sm" | "lg" | "md";
109
43
  color: "primary" | "secondary" | "error" | "warning" | "info" | "success" | "default";
44
+ rounded: "sm" | "md" | "lg" | "full";
110
45
  icon: RuiIcons | null;
111
46
  modelValue: boolean;
112
- rounded: "sm" | "lg" | "md" | "full";
113
47
  left: boolean;
114
- placement: "bottom" | "top" | "center";
115
48
  dot: boolean;
49
+ placement: "bottom" | "top" | "center";
116
50
  offsetX: string | number;
117
51
  offsetY: string | number;
118
52
  }, {}>, {
@@ -121,8 +55,25 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
121
55
  icon?(_: {}): any;
122
56
  }>;
123
57
  export default _default;
58
+ type __VLS_WithDefaults<P, D> = {
59
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
60
+ default: D[K];
61
+ }> : P[K];
62
+ };
63
+ type __VLS_Prettify<T> = {
64
+ [K in keyof T]: T[K];
65
+ } & {};
124
66
  type __VLS_WithTemplateSlots<T, S> = T & {
125
67
  new (): {
126
68
  $slots: S;
127
69
  };
128
70
  };
71
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
72
+ type __VLS_TypePropsToOption<T> = {
73
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
74
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
75
+ } : {
76
+ type: import('vue').PropType<T[K]>;
77
+ required: true;
78
+ };
79
+ };
@@ -4,43 +4,36 @@ export interface BottomSheetProps {
4
4
  width?: string | number;
5
5
  maxWidth?: string | number;
6
6
  }
7
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
8
- width: {
9
- type: globalThis.PropType<string | number>;
10
- };
11
- modelValue: {
12
- type: globalThis.PropType<boolean>;
13
- default: boolean;
14
- };
15
- maxWidth: {
16
- type: globalThis.PropType<string | number>;
17
- };
18
- persistent: {
19
- type: globalThis.PropType<boolean>;
20
- default: boolean;
21
- };
22
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
23
- width: {
24
- type: globalThis.PropType<string | number>;
25
- };
26
- modelValue: {
27
- type: globalThis.PropType<boolean>;
28
- default: boolean;
29
- };
30
- maxWidth: {
31
- type: globalThis.PropType<string | number>;
32
- };
33
- persistent: {
34
- type: globalThis.PropType<boolean>;
35
- default: boolean;
36
- };
37
- }>>, {
7
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<BottomSheetProps>, {
8
+ modelValue: boolean;
9
+ persistent: boolean;
10
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<BottomSheetProps>, {
11
+ modelValue: boolean;
12
+ persistent: boolean;
13
+ }>>>, {
38
14
  modelValue: boolean;
39
15
  persistent: boolean;
40
16
  }, {}>, Partial<Record<string, (_: any) => any>>>;
41
17
  export default _default;
18
+ type __VLS_WithDefaults<P, D> = {
19
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
20
+ default: D[K];
21
+ }> : P[K];
22
+ };
23
+ type __VLS_Prettify<T> = {
24
+ [K in keyof T]: T[K];
25
+ } & {};
42
26
  type __VLS_WithTemplateSlots<T, S> = T & {
43
27
  new (): {
44
28
  $slots: S;
45
29
  };
46
30
  };
31
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
32
+ type __VLS_TypePropsToOption<T> = {
33
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
34
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
35
+ } : {
36
+ type: import('vue').PropType<T[K]>;
37
+ required: true;
38
+ };
39
+ };
@@ -7,70 +7,34 @@ export interface DialogProps {
7
7
  contentClass?: any;
8
8
  }
9
9
  declare function close(): void;
10
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
11
- width: {
12
- type: globalThis.PropType<string | number>;
13
- default: string;
14
- };
15
- contentClass: {
16
- type: globalThis.PropType<any>;
17
- default: string;
18
- };
19
- modelValue: {
20
- type: globalThis.PropType<boolean>;
21
- default: boolean;
22
- };
23
- maxWidth: {
24
- type: globalThis.PropType<string | number>;
25
- };
26
- persistent: {
27
- type: globalThis.PropType<boolean>;
28
- default: boolean;
29
- };
30
- bottomSheet: {
31
- type: globalThis.PropType<boolean>;
32
- default: boolean;
33
- };
34
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<DialogProps>, {
11
+ modelValue: boolean;
12
+ persistent: boolean;
13
+ width: string;
14
+ bottomSheet: boolean;
15
+ contentClass: string;
16
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
35
17
  "update:model-value": (value: boolean) => void;
36
18
  closed: () => void;
37
- }, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
38
- width: {
39
- type: globalThis.PropType<string | number>;
40
- default: string;
41
- };
42
- contentClass: {
43
- type: globalThis.PropType<any>;
44
- default: string;
45
- };
46
- modelValue: {
47
- type: globalThis.PropType<boolean>;
48
- default: boolean;
49
- };
50
- maxWidth: {
51
- type: globalThis.PropType<string | number>;
52
- };
53
- persistent: {
54
- type: globalThis.PropType<boolean>;
55
- default: boolean;
56
- };
57
- bottomSheet: {
58
- type: globalThis.PropType<boolean>;
59
- default: boolean;
60
- };
61
- }>> & {
19
+ }, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<DialogProps>, {
20
+ modelValue: boolean;
21
+ persistent: boolean;
22
+ width: string;
23
+ bottomSheet: boolean;
24
+ contentClass: string;
25
+ }>>> & {
62
26
  "onUpdate:model-value"?: ((value: boolean) => any) | undefined;
63
27
  onClosed?: (() => any) | undefined;
64
28
  }, {
65
29
  width: string | number;
66
- contentClass: any;
67
30
  modelValue: boolean;
68
31
  persistent: boolean;
69
32
  bottomSheet: boolean;
33
+ contentClass: any;
70
34
  }, {}>, {
71
35
  activator?(_: {
72
- on: {
73
- click: () => void;
36
+ attrs: {
37
+ onClick: () => void;
74
38
  };
75
39
  isOpen: boolean;
76
40
  }): any;
@@ -80,8 +44,25 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
80
44
  }): any;
81
45
  }>;
82
46
  export default _default;
47
+ type __VLS_WithDefaults<P, D> = {
48
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
49
+ default: D[K];
50
+ }> : P[K];
51
+ };
52
+ type __VLS_Prettify<T> = {
53
+ [K in keyof T]: T[K];
54
+ } & {};
83
55
  type __VLS_WithTemplateSlots<T, S> = T & {
84
56
  new (): {
85
57
  $slots: S;
86
58
  };
87
59
  };
60
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
61
+ type __VLS_TypePropsToOption<T> = {
62
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
63
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
64
+ } : {
65
+ type: import('vue').PropType<T[K]>;
66
+ required: true;
67
+ };
68
+ };