@rotki/ui-library 1.12.2 → 2.0.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 (80) hide show
  1. package/dist/components/accordions/accordion/RuiAccordion.vue.d.ts +9 -15
  2. package/dist/components/alerts/RuiAlert.vue.d.ts +7 -11
  3. package/dist/components/buttons/button/RuiButton.vue.d.ts +6 -4
  4. package/dist/components/buttons/button-group/RuiButtonGroup.vue.d.ts +1 -1
  5. package/dist/components/calendar/RuiCalendar.vue.d.ts +30 -0
  6. package/dist/components/calendar/RuiCalendarGrid.vue.d.ts +13 -0
  7. package/dist/components/calendar/RuiCalendarHeader.vue.d.ts +16 -0
  8. package/dist/components/calendar/RuiCalendarMenu.vue.d.ts +17 -0
  9. package/dist/components/calendar/state.d.ts +17 -0
  10. package/dist/components/cards/RuiCard.vue.d.ts +17 -16
  11. package/dist/components/cards/RuiCardHeader.vue.d.ts +9 -12
  12. package/dist/components/chips/RuiChip.vue.d.ts +7 -11
  13. package/dist/components/forms/auto-complete/RuiAutoComplete.vue.d.ts +32 -23
  14. package/dist/components/forms/checkbox/RuiCheckbox.vue.d.ts +5 -12
  15. package/dist/components/forms/radio-button/radio/RuiRadio.vue.d.ts +5 -5
  16. package/dist/components/forms/radio-button/radio-group/RuiRadioGroup.vue.d.ts +4 -4
  17. package/dist/components/forms/revealable-text-field/RuiRevealableTextField.vue.d.ts +9 -14
  18. package/dist/components/forms/select/RuiMenuSelect.vue.d.ts +24 -17
  19. package/dist/components/forms/switch/RuiSwitch.vue.d.ts +5 -10
  20. package/dist/components/forms/text-area/RuiTextArea.vue.d.ts +9 -18
  21. package/dist/components/forms/text-field/RuiTextField.vue.d.ts +14 -21
  22. package/dist/components/icons/RuiIcon.vue.d.ts +1 -1
  23. package/dist/components/index.d.ts +3 -1
  24. package/dist/components/index.es.js +4214 -3527
  25. package/dist/components/loaders/RuiSkeletonBase.vue.d.ts +1 -1
  26. package/dist/components/logos/RuiLogo.vue.d.ts +1 -1
  27. package/dist/components/overlays/badge/RuiBadge.vue.d.ts +11 -14
  28. package/dist/components/overlays/bottom-sheet/RuiBottomSheet.vue.d.ts +5 -8
  29. package/dist/components/overlays/dialog/RuiDialog.vue.d.ts +15 -21
  30. package/dist/components/overlays/menu/RuiMenu.vue.d.ts +25 -32
  31. package/dist/components/overlays/navigation-drawer/RuiNavigationDrawer.vue.d.ts +15 -21
  32. package/dist/components/overlays/notification/RuiNotification.vue.d.ts +5 -10
  33. package/dist/components/overlays/tooltip/RuiTooltip.vue.d.ts +13 -20
  34. package/dist/components/progress/RuiProgress.vue.d.ts +1 -1
  35. package/dist/components/steppers/RuiFooterStepper.vue.d.ts +1 -1
  36. package/dist/components/steppers/RuiStepper.vue.d.ts +9 -16
  37. package/dist/components/steppers/RuiStepperCustomIcon.vue.d.ts +1 -1
  38. package/dist/components/steppers/RuiStepperIcon.vue.d.ts +1 -1
  39. package/dist/components/tables/RuiDataTable.vue.d.ts +2 -32
  40. package/dist/components/tables/RuiExpandButton.vue.d.ts +5 -10
  41. package/dist/components/tables/RuiTableHead.vue.d.ts +14 -8
  42. package/dist/components/tables/RuiTablePagination.vue.d.ts +1 -1
  43. package/dist/components/tabs/tab/RuiTab.vue.d.ts +9 -19
  44. package/dist/components/tabs/tab-item/RuiTabItem.vue.d.ts +8 -12
  45. package/dist/components/tabs/tab-items/RuiTabItems.vue.d.ts +2 -2
  46. package/dist/components/tabs/tabs/RuiTabs.vue.d.ts +1 -1
  47. package/dist/components/time-picker/RuiTimePicker.vue.d.ts +18 -0
  48. package/dist/composables/dropdown-menu.d.ts +2 -2
  49. package/dist/composables/{index-DKotjeCA.js → index-DOuH9rdn.js} +12 -12
  50. package/dist/composables/index.es.js +1 -1
  51. package/dist/consts/time-accuracy-BnKA5GyT.js +8 -0
  52. package/dist/consts/time-accuracy.d.ts +6 -0
  53. package/dist/icons/icons_1.d.ts +500 -500
  54. package/dist/icons/icons_1.es.js +1884 -1884
  55. package/dist/icons/icons_2.d.ts +500 -500
  56. package/dist/icons/icons_2.es.js +1868 -1868
  57. package/dist/icons/icons_3.d.ts +500 -500
  58. package/dist/icons/icons_3.es.js +1862 -1862
  59. package/dist/icons/icons_4.d.ts +137 -500
  60. package/dist/icons/icons_4.es.js +497 -1949
  61. package/dist/icons/index.d.ts +1 -7
  62. package/dist/icons/index.es.js +1644 -4665
  63. package/dist/index.es.js +1703 -4722
  64. package/dist/style.css +1 -1
  65. package/dist/utils/{index-Bi6PqW7j.js → index-CxHG7aHQ.js} +1 -1
  66. package/dist/{vendor-ClNuDbHx.js → vendor-BeEprDAU.js} +1288 -1288
  67. package/dist/web-types.json +416 -101
  68. package/package.json +48 -47
  69. package/dist/icons/icons_10.d.ts +0 -153
  70. package/dist/icons/icons_10.es.js +0 -611
  71. package/dist/icons/icons_5.d.ts +0 -501
  72. package/dist/icons/icons_5.es.js +0 -2003
  73. package/dist/icons/icons_6.d.ts +0 -501
  74. package/dist/icons/icons_6.es.js +0 -2003
  75. package/dist/icons/icons_7.d.ts +0 -501
  76. package/dist/icons/icons_7.es.js +0 -2003
  77. package/dist/icons/icons_8.d.ts +0 -501
  78. package/dist/icons/icons_8.es.js +0 -2003
  79. package/dist/icons/icons_9.d.ts +0 -501
  80. package/dist/icons/icons_9.es.js +0 -2003
@@ -4,9 +4,9 @@ export interface Props<T> {
4
4
  declare const _default: <T extends string | number>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
5
5
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
6
6
  readonly "onUpdate:modelValue"?: ((value: T | undefined) => any) | undefined;
7
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue"> & Partial<{}> & {
7
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue"> & {
8
8
  modelValue?: Props<T>["modelValue"];
9
- }> & import("vue").PublicProps;
9
+ } & Partial<{}>> & import("vue").PublicProps;
10
10
  expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
11
11
  attrs: any;
12
12
  slots: {};
@@ -20,5 +20,5 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
20
20
  align: "start" | "center" | "end";
21
21
  grow: boolean;
22
22
  indicatorPosition: "start" | "end";
23
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
23
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
24
  export default _default;
@@ -0,0 +1,18 @@
1
+ import { TimeAccuracy } from '../../consts/time-accuracy';
2
+ export interface RuiTimePickerProps {
3
+ accuracy?: TimeAccuracy;
4
+ borderless?: boolean;
5
+ }
6
+ type __VLS_Props = RuiTimePickerProps;
7
+ type __VLS_PublicProps = __VLS_Props & {
8
+ modelValue: Date | undefined;
9
+ };
10
+ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
+ "update:modelValue": (value: Date | undefined) => any;
12
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
13
+ "onUpdate:modelValue"?: ((value: Date | undefined) => any) | undefined;
14
+ }>, {
15
+ borderless: boolean;
16
+ accuracy: TimeAccuracy;
17
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
+ export default _default;
@@ -42,10 +42,10 @@ export declare function useDropdownMenu<TValue, TItem>({ appendWidth, autoFocus,
42
42
  menuWidth: globalThis.ComputedRef<string>;
43
43
  moveHighlight: (up: boolean) => void;
44
44
  optionsWithSelectedHidden: globalThis.ComputedRef<TItem[]>;
45
- renderedData: globalThis.ComputedRef<{
45
+ renderedData: import("@vueuse/shared").UseArrayMapReturn<{
46
46
  _index: number;
47
47
  item: TItem;
48
- }[]>;
48
+ }>;
49
49
  toggle: (state?: boolean) => void;
50
50
  valueKey: globalThis.ComputedRef<TItem | TItem[] | TItem[KeyOfType<TItem, TValue extends (infer U)[] ? U : TValue>][] | NonNullable<TItem>[KeyOfType<TItem, TValue extends (infer U)[] ? U : TValue>] | undefined>;
51
51
  wrapperProps: globalThis.ComputedRef<{
@@ -1,11 +1,11 @@
1
1
  import { useWindowSize as se, breakpointsTailwind as re, useBreakpoints as ie, createSharedComposable as ce, useColorMode as ae, unrefElement as Y, useResizeObserver as ee, useVirtualList as le, useArrayMap as ue, watchOnce as fe, useEventListener as K, useMutationObserver as de } from "@vueuse/core";
2
- import { c as G, p as pe, d as me, a as he, o as ge, f as ye, b as we, e as be, g as Le } from "../vendor-ClNuDbHx.js";
2
+ import { c as G, p as pe, d as me, a as he, o as ge, f as ye, b as we, e as be, g as Le } from "../vendor-BeEprDAU.js";
3
3
  import { computed as M, inject as te, ref as h, watch as W, onMounted as ne, watchEffect as ve, nextTick as Z } from "vue";
4
4
  import { get as e, set as l } from "@vueuse/shared";
5
- import { LuChevronsUpDown as Ce, LuArrowUp as xe, LuArrowDown as Te, LuArrowLeft as Se, LuArrowRight as ke, LuChevronUp as Ee, LuChevronDown as Pe, LuChevronLeft as Ie, LuChevronRight as Oe, LuChevronsLeft as $e, LuChevronsRight as Be, LuCircleAlert as De, LuCheck as Ae, LuCircleX as Me, LuCircleCheck as Re, LuCheckboxBlank as ze, LuCheckboxFill as He, LuCheckboxIndeterminateFill as _e, LuCheckboxBlankCircle as qe, LuCheckboxBlankCircleFill as je, LuRadioButtonFill as Ue } from "../icons/icons_7.es.js";
6
- import { LuEllipsis as Ve, LuInfo as We, LuEye as Fe, LuEyeOff as Ne } from "../icons/icons_8.es.js";
7
- import { LuTriangleAlert as Xe, LuX as Ke } from "../icons/icons_10.es.js";
8
- import { e as Ge } from "../utils/index-Bi6PqW7j.js";
5
+ import { LuChevronsUpDown as Ce, LuArrowUp as xe, LuArrowDown as Te, LuArrowLeft as Se, LuArrowRight as ke, LuChevronUp as Ee, LuChevronDown as Pe, LuChevronLeft as Ie, LuChevronRight as Oe, LuChevronsLeft as $e, LuChevronsRight as Be, LuCircleAlert as De, LuCheck as Ae, LuCircleX as Me, LuCircleCheck as Re, LuCheckboxBlank as ze, LuCheckboxFill as He, LuCheckboxIndeterminateFill as _e, LuCheckboxBlankCircle as qe, LuCheckboxBlankCircleFill as je, LuRadioButtonFill as Ue } from "../icons/icons_1.es.js";
6
+ import { LuEllipsis as Ve, LuInfo as We, LuEye as Fe, LuEyeOff as Ne } from "../icons/icons_2.es.js";
7
+ import { LuTriangleAlert as Xe, LuX as Ke } from "../icons/icons_4.es.js";
8
+ import { e as Ge } from "../utils/index-CxHG7aHQ.js";
9
9
  import { d as oe, T as O } from "../types/index-CN6Ip1GL.js";
10
10
  function ft() {
11
11
  const { width: r } = se(), f = {
@@ -464,13 +464,13 @@ export {
464
464
  Qe as I,
465
465
  et as T,
466
466
  ht as a,
467
- Ze as b,
468
- gt as c,
469
- wt as d,
470
- bt as e,
471
- yt as f,
472
- dt as g,
473
- mt as h,
467
+ mt as b,
468
+ Ze as c,
469
+ gt as d,
470
+ wt as e,
471
+ bt as f,
472
+ yt as g,
473
+ dt as h,
474
474
  ft as i,
475
475
  pt as u
476
476
  };
@@ -1,4 +1,4 @@
1
- import { i as o, u as a, h as u } from "./index-DKotjeCA.js";
1
+ import { i as o, u as a, b as u } from "./index-DOuH9rdn.js";
2
2
  export {
3
3
  o as useBreakpoint,
4
4
  a as useIcons,
@@ -0,0 +1,8 @@
1
+ const c = {
2
+ MINUTE: "minute",
3
+ SECOND: "second",
4
+ MILLISECOND: "millisecond"
5
+ };
6
+ export {
7
+ c as T
8
+ };
@@ -0,0 +1,6 @@
1
+ export declare const TimeAccuracy: {
2
+ readonly MINUTE: "minute";
3
+ readonly SECOND: "second";
4
+ readonly MILLISECOND: "millisecond";
5
+ };
6
+ export type TimeAccuracy = typeof TimeAccuracy[keyof typeof TimeAccuracy];