@rotki/ui-library 1.1.2 → 1.2.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 (56) hide show
  1. package/dist/{RuiNavigationDrawer-BW1w-fzb.js → RuiNavigationDrawer-CvcZU8-E.js} +2892 -2890
  2. package/dist/{breakpoint-OTAceaTK.js → breakpoint-sPlgsoXp.js} +1 -1
  3. package/dist/components/accordions/accordion/RuiAccordion.vue.d.ts +9 -7
  4. package/dist/components/accordions/accordions/RuiAccordions.vue.d.ts +1 -1
  5. package/dist/components/alerts/RuiAlert.vue.d.ts +10 -8
  6. package/dist/components/buttons/button/RuiButton.vue.d.ts +10 -66
  7. package/dist/components/buttons/button-group/RuiButtonGroup.vue.d.ts +9 -48
  8. package/dist/components/cards/RuiCard.vue.d.ts +12 -10
  9. package/dist/components/cards/RuiCardHeader.vue.d.ts +8 -6
  10. package/dist/components/chips/RuiChip.vue.d.ts +10 -8
  11. package/dist/components/forms/auto-complete/RuiAutoComplete.vue.d.ts +855 -0
  12. package/dist/components/forms/checkbox/RuiCheckbox.vue.d.ts +7 -5
  13. package/dist/components/forms/radio-button/radio/RuiRadio.vue.d.ts +7 -5
  14. package/dist/components/forms/radio-button/radio-group/RuiRadioGroup.vue.d.ts +1 -1
  15. package/dist/components/forms/revealable-text-field/RuiRevealableTextField.vue.d.ts +12 -10
  16. package/dist/components/forms/select/RuiMenuSelect.vue.d.ts +10 -183
  17. package/dist/components/forms/slider/RuiSlider.vue.d.ts +1 -1
  18. package/dist/components/forms/switch/RuiSwitch.vue.d.ts +7 -5
  19. package/dist/components/forms/text-area/RuiTextArea.vue.d.ts +15 -13
  20. package/dist/components/forms/text-field/RuiTextField.vue.d.ts +12 -10
  21. package/dist/components/helpers/RuiFormTextDetail.vue.d.ts +6 -6
  22. package/dist/components/icons/RuiIcon.vue.d.ts +2 -2
  23. package/dist/components/index.es.js +1 -1
  24. package/dist/components/loaders/RuiSkeletonBase.vue.d.ts +1 -1
  25. package/dist/components/loaders/RuiSkeletonLoader.vue.d.ts +2 -2
  26. package/dist/components/logos/RuiLogo.vue.d.ts +1 -1
  27. package/dist/components/overlays/badge/RuiBadge.vue.d.ts +11 -9
  28. package/dist/components/overlays/bottom-sheet/RuiBottomSheet.vue.d.ts +4 -2
  29. package/dist/components/overlays/dialog/RuiDialog.vue.d.ts +19 -13
  30. package/dist/components/overlays/menu/RuiMenu.vue.d.ts +23 -21
  31. package/dist/components/overlays/navigation-drawer/RuiNavigationDrawer.vue.d.ts +17 -15
  32. package/dist/components/overlays/notification/RuiNotification.vue.d.ts +8 -6
  33. package/dist/components/overlays/tooltip/RuiTooltip.vue.d.ts +10 -8
  34. package/dist/components/progress/RuiProgress.vue.d.ts +3 -3
  35. package/dist/components/steppers/RuiFooterStepper.vue.d.ts +1 -1
  36. package/dist/components/steppers/RuiStepper.vue.d.ts +9 -7
  37. package/dist/components/steppers/RuiStepperCustomIcon.vue.d.ts +2 -2
  38. package/dist/components/steppers/RuiStepperIcon.vue.d.ts +2 -2
  39. package/dist/components/tables/RuiDataTable.vue.d.ts +25 -296
  40. package/dist/components/tables/RuiExpandButton.vue.d.ts +7 -5
  41. package/dist/components/tables/RuiTableHead.vue.d.ts +17 -105
  42. package/dist/components/tabs/tab/RuiTab.vue.d.ts +16 -14
  43. package/dist/components/tabs/tab-item/RuiTabItem.vue.d.ts +8 -6
  44. package/dist/components/tabs/tab-items/RuiTabItems.vue.d.ts +10 -23
  45. package/dist/components/tabs/tabs/RuiTabs.vue.d.ts +3 -3
  46. package/dist/composables/dropdown-menu.d.ts +1 -1
  47. package/dist/composables/index.es.js +2 -2
  48. package/dist/composables/popper.d.ts +1 -1
  49. package/dist/index-DIN-6VhY.js +154 -0
  50. package/dist/index.es.js +5 -5
  51. package/dist/style.css +1 -1
  52. package/dist/theme/index.d.ts +1 -1
  53. package/dist/utils/helpers.d.ts +1 -1
  54. package/dist/web-types.json +12 -2
  55. package/package.json +48 -47
  56. package/dist/index-NNlkUY_M.js +0 -161
@@ -65,128 +65,40 @@ export interface Props<T> {
65
65
  columnAttr: keyof TableColumn<T>;
66
66
  dataId?: string;
67
67
  }
68
- declare const _default: <T extends object, K extends keyof T = keyof T>(__VLS_props: {
69
- onSort?: ((value: {
70
- key: TableRowKey<T>;
71
- direction?: "desc" | "asc" | undefined;
72
- }) => any) | undefined;
73
- "onSelect:all"?: ((value: boolean) => any) | undefined;
74
- loading?: boolean | undefined;
75
- stickyHeader?: boolean | undefined;
76
- stick?: boolean | undefined;
77
- selectable?: boolean | undefined;
78
- disableCheckAll?: boolean | undefined;
79
- noData?: boolean | undefined;
80
- colspan?: number | undefined;
81
- columns: TableColumn<T>[];
82
- capitalizeHeaders?: boolean | undefined;
83
- isAllSelected?: boolean | undefined;
84
- indeterminate?: boolean | undefined;
85
- dense?: boolean | undefined;
86
- sortedMap: Partial<Record<TableRowKey<T>, SortColumn<T>>>;
87
- sortData?: TableSortData<T>;
88
- columnAttr: string | number;
89
- dataId?: string | undefined;
90
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
91
- attrs: any;
92
- emit: {
93
- (e: 'select:all', value: boolean): void;
94
- (e: 'sort', value: {
68
+ declare const _default: <T extends object, K extends keyof T = keyof T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_Prettify<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
69
+ props: __VLS_Prettify<Pick<Partial<{}> & Omit<{
70
+ onSort?: ((value: {
95
71
  key: TableRowKey<T>;
96
- direction?: 'asc' | 'desc';
97
- }): void;
98
- };
99
- slots: Partial<Record<`header.${string}`, (_: {
100
- column: TableColumn<T>;
101
- }) => any>> & Partial<Record<`header.text.${string}`, (_: {
102
- column: SortableTableColumn<T>;
103
- }) => any>> & Partial<Record<`header.text.${string}`, (_: {
104
- column: NoneSortableTableColumn<T>;
105
- }) => any>>;
106
- } | undefined, __VLS_expose?: ((exposed: import('vue').ShallowUnwrapRef<{}>) => void) | undefined, __VLS_setup?: Promise<{
107
- props: {
72
+ direction?: "asc" | "desc";
73
+ }) => any) | undefined;
74
+ "onSelect:all"?: ((value: boolean) => any) | undefined;
75
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<globalThis.ExtractPropTypes<{}>> & {
108
76
  onSort?: ((value: {
109
77
  key: TableRowKey<T>;
110
- direction?: "desc" | "asc" | undefined;
78
+ direction?: "asc" | "desc";
111
79
  }) => any) | undefined;
112
80
  "onSelect:all"?: ((value: boolean) => any) | undefined;
113
- loading?: boolean | undefined;
114
- stickyHeader?: boolean | undefined;
115
- stick?: boolean | undefined;
116
- selectable?: boolean | undefined;
117
- disableCheckAll?: boolean | undefined;
118
- noData?: boolean | undefined;
119
- colspan?: number | undefined;
120
- columns: TableColumn<T>[];
121
- capitalizeHeaders?: boolean | undefined;
122
- isAllSelected?: boolean | undefined;
123
- indeterminate?: boolean | undefined;
124
- dense?: boolean | undefined;
125
- sortedMap: Partial<Record<TableRowKey<T>, SortColumn<T>>>;
126
- sortData?: TableSortData<T>;
127
- columnAttr: string | number;
128
- dataId?: string | undefined;
129
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
130
- expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
81
+ }, never>, "onSort" | "onSelect:all"> & Props<T>> & import("vue").PublicProps;
82
+ expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
131
83
  attrs: any;
132
- slots: Partial<Record<`header.${string}`, (_: {
84
+ slots: ReturnType<() => Partial<Record<`header.${string}`, (_: {
133
85
  column: TableColumn<T>;
134
86
  }) => any>> & Partial<Record<`header.text.${string}`, (_: {
135
87
  column: SortableTableColumn<T>;
136
88
  }) => any>> & Partial<Record<`header.text.${string}`, (_: {
137
89
  column: NoneSortableTableColumn<T>;
138
- }) => any>>;
90
+ }) => any>>>;
139
91
  emit: {
140
- (e: 'select:all', value: boolean): void;
141
- (e: 'sort', value: {
92
+ (e: "select:all", value: boolean): void;
93
+ (e: "sort", value: {
142
94
  key: TableRowKey<T>;
143
- direction?: 'asc' | 'desc';
95
+ direction?: "asc" | "desc";
144
96
  }): void;
145
- };
97
+ } & {};
146
98
  }>) => globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
147
99
  [key: string]: any;
148
100
  }> & {
149
- __ctx?: {
150
- props: {
151
- onSort?: ((value: {
152
- key: TableRowKey<T>;
153
- direction?: "desc" | "asc" | undefined;
154
- }) => any) | undefined;
155
- "onSelect:all"?: ((value: boolean) => any) | undefined;
156
- loading?: boolean | undefined;
157
- stickyHeader?: boolean | undefined;
158
- stick?: boolean | undefined;
159
- selectable?: boolean | undefined;
160
- disableCheckAll?: boolean | undefined;
161
- noData?: boolean | undefined;
162
- colspan?: number | undefined;
163
- columns: TableColumn<T>[];
164
- capitalizeHeaders?: boolean | undefined;
165
- isAllSelected?: boolean | undefined;
166
- indeterminate?: boolean | undefined;
167
- dense?: boolean | undefined;
168
- sortedMap: Partial<Record<TableRowKey<T>, SortColumn<T>>>;
169
- sortData?: TableSortData<T>;
170
- columnAttr: string | number;
171
- dataId?: string | undefined;
172
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
173
- expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
174
- attrs: any;
175
- slots: Partial<Record<`header.${string}`, (_: {
176
- column: TableColumn<T>;
177
- }) => any>> & Partial<Record<`header.text.${string}`, (_: {
178
- column: SortableTableColumn<T>;
179
- }) => any>> & Partial<Record<`header.text.${string}`, (_: {
180
- column: NoneSortableTableColumn<T>;
181
- }) => any>>;
182
- emit: {
183
- (e: 'select:all', value: boolean): void;
184
- (e: 'sort', value: {
185
- key: TableRowKey<T>;
186
- direction?: 'asc' | 'desc';
187
- }): void;
188
- };
189
- } | undefined;
101
+ __ctx?: Awaited<typeof __VLS_setup>;
190
102
  };
191
103
  export default _default;
192
104
  type __VLS_Prettify<T> = {
@@ -15,7 +15,16 @@ export interface Props {
15
15
  vertical?: boolean;
16
16
  align?: 'start' | 'center' | 'end';
17
17
  }
18
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
18
+ declare function __VLS_template(): Readonly<{
19
+ default?: (props?: object) => any;
20
+ prepend?: (props?: object) => any;
21
+ append?: (props?: object) => any;
22
+ }> & {
23
+ default?: (props?: object) => any;
24
+ prepend?: (props?: object) => any;
25
+ append?: (props?: object) => any;
26
+ };
27
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
19
28
  color: undefined;
20
29
  disabled: boolean;
21
30
  grow: boolean;
@@ -51,25 +60,18 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
51
60
  active: boolean;
52
61
  vertical: boolean;
53
62
  link: boolean;
54
- value: string | number;
55
- color: "primary" | "secondary" | "error" | "warning" | "info" | "success";
63
+ value: number | string;
64
+ color: ContextColorsType;
56
65
  disabled: boolean;
57
66
  target: string;
58
67
  exact: boolean;
59
- to: string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric;
60
- align: "center" | "end" | "start";
68
+ to: RouteLocationRaw;
69
+ align: "start" | "center" | "end";
61
70
  grow: boolean;
62
71
  activeClass: string;
63
72
  exactPath: boolean;
64
- }, {}>, Readonly<{
65
- default?: ((props?: object | undefined) => any) | undefined;
66
- prepend?: ((props?: object | undefined) => any) | undefined;
67
- append?: ((props?: object | undefined) => any) | undefined;
68
- }> & {
69
- default?: ((props?: object | undefined) => any) | undefined;
70
- prepend?: ((props?: object | undefined) => any) | undefined;
71
- append?: ((props?: object | undefined) => any) | undefined;
72
- }>;
73
+ }, {}>;
74
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
73
75
  export default _default;
74
76
  type __VLS_WithDefaults<P, D> = {
75
77
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
@@ -4,7 +4,11 @@ export interface Props {
4
4
  eager?: boolean;
5
5
  reverse?: boolean;
6
6
  }
7
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
7
+ declare function __VLS_template(): {
8
+ default?(_: {}): any;
9
+ default?(_: {}): any;
10
+ };
11
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
8
12
  value: undefined;
9
13
  eager: boolean;
10
14
  active: boolean;
@@ -17,12 +21,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
17
21
  }>>>, {
18
22
  reverse: boolean;
19
23
  active: boolean;
20
- value: string | number;
24
+ value: number | string;
21
25
  eager: boolean;
22
- }, {}>, {
23
- default?(_: {}): any;
24
- default?(_: {}): any;
25
- }>;
26
+ }, {}>;
27
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
26
28
  export default _default;
27
29
  type __VLS_WithDefaults<P, D> = {
28
30
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
@@ -1,35 +1,22 @@
1
1
  export interface Props<T> {
2
2
  modelValue?: T;
3
3
  }
4
- declare const _default: <T extends string | number>(__VLS_props: {
5
- "onUpdate:modelValue"?: ((modelValue: T | undefined) => any) | undefined;
6
- modelValue?: Props<T>['modelValue'];
7
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
8
- attrs: any;
9
- emit: (evt: "update:modelValue", modelValue: T | undefined) => void;
10
- slots: {};
11
- } | undefined, __VLS_expose?: ((exposed: import('vue').ShallowUnwrapRef<{}>) => void) | undefined, __VLS_setup?: Promise<{
12
- props: {
4
+ declare const _default: <T extends string | number>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_Prettify<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
5
+ props: __VLS_Prettify<Pick<Partial<{}> & Omit<{
6
+ "onUpdate:modelValue"?: ((modelValue: T | undefined) => any) | undefined;
7
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<globalThis.ExtractPropTypes<{}>> & {
13
8
  "onUpdate:modelValue"?: ((modelValue: T | undefined) => any) | undefined;
14
- modelValue?: Props<T>['modelValue'];
15
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
16
- expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
9
+ }, never>, "onUpdate:modelValue"> & {
10
+ modelValue?: Props<T>["modelValue"];
11
+ }> & import("vue").PublicProps;
12
+ expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
17
13
  attrs: any;
18
- slots: {};
14
+ slots: ReturnType<() => {}>;
19
15
  emit: (evt: "update:modelValue", modelValue: T | undefined) => void;
20
16
  }>) => globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
21
17
  [key: string]: any;
22
18
  }> & {
23
- __ctx?: {
24
- props: {
25
- "onUpdate:modelValue"?: ((modelValue: T | undefined) => any) | undefined;
26
- modelValue?: Props<T>['modelValue'];
27
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
28
- expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
29
- attrs: any;
30
- slots: {};
31
- emit: (evt: "update:modelValue", modelValue: T | undefined) => void;
32
- } | undefined;
19
+ __ctx?: Awaited<typeof __VLS_setup>;
33
20
  };
34
21
  export default _default;
35
22
  type __VLS_Prettify<T> = {
@@ -27,10 +27,10 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
27
27
  "onUpdate:modelValue"?: ((modelValue: string | number) => any) | undefined;
28
28
  }, {
29
29
  vertical: boolean;
30
- color: "primary" | "secondary" | "error" | "warning" | "info" | "success";
30
+ color: ContextColorsType;
31
31
  disabled: boolean;
32
- modelValue: string | number;
33
- align: "center" | "end" | "start";
32
+ modelValue: number | string;
33
+ align: "start" | "center" | "end";
34
34
  grow: boolean;
35
35
  }, {}>;
36
36
  export default _default;
@@ -47,7 +47,7 @@ export declare function useDropdownMenu<TValue, TItem>({ appendWidth, autoFocus,
47
47
  item: TItem;
48
48
  }[]>;
49
49
  toggle: (state?: boolean) => void;
50
- valueKey: globalThis.ComputedRef<TItem | TItem[] | TItem[keyof { [P_1 in keyof TItem as TItem[P_1] extends (TValue extends (infer U)[] ? U : TValue) ? P_1 : never]: any; }][] | NonNullable<TItem>[keyof { [P_1 in keyof TItem as TItem[P_1] extends (TValue extends (infer U)[] ? U : TValue) ? P_1 : never]: any; }] | undefined>;
50
+ valueKey: globalThis.ComputedRef<TItem | TItem[] | TItem[keyof { [P in keyof TItem as TItem[P] extends (TValue extends (infer U)[] ? U : TValue) ? P : never]: any; }][] | NonNullable<TItem>[keyof { [P in keyof TItem as TItem[P] extends (TValue extends (infer U)[] ? U : TValue) ? P : never]: any; }] | undefined>;
51
51
  wrapperProps: globalThis.ComputedRef<{
52
52
  style: {
53
53
  width: string;
@@ -1,5 +1,5 @@
1
- import { u as s, a } from "../index-NNlkUY_M.js";
2
- import { u } from "../breakpoint-OTAceaTK.js";
1
+ import { u as s, a } from "../index-DIN-6VhY.js";
2
+ import { u } from "../breakpoint-sPlgsoXp.js";
3
3
  export {
4
4
  u as useBreakpoint,
5
5
  s as useIcons,
@@ -15,7 +15,7 @@ export interface PopperOptions {
15
15
  resize?: boolean;
16
16
  }
17
17
  export declare const DEFAULT_POPPER_OPTIONS: PopperOptions;
18
- export declare const createPopper: <TModifier extends Partial<import("@popperjs/core").Modifier<any, any>>>(reference: Element | VirtualElement, popper: HTMLElement, options?: Partial<import("@popperjs/core").OptionsGeneric<TModifier>> | undefined) => Instance;
18
+ export declare const createPopper: <TModifier extends Partial<import("@popperjs/core").Modifier<any, any>>>(reference: Element | VirtualElement, popper: HTMLElement, options?: Partial<import("@popperjs/core").OptionsGeneric<TModifier>>) => Instance;
19
19
  export declare function usePopper(options: Ref<PopperOptions>, disabled?: Ref<boolean>, openDelay?: Ref<number>, closeDelay?: Ref<number>, virtualReference?: Ref<Element | VirtualElement>): {
20
20
  instance: Ref<Instance | null>;
21
21
  leavePending: Ref<boolean>;
@@ -0,0 +1,154 @@
1
+ import { RiArrowDownLine as F, RiArrowDropDownFill as x, RiArrowLeftDoubleLine as T, RiArrowLeftLine as $, RiArrowLeftSLine as D, RiArrowRightDoubleLine as S, RiArrowRightLine as v, RiArrowRightSLine as I, RiExpandUpDownLine as U } from "./icons/icons_1.es.js";
2
+ import { RiDatabase2Line as M } from "./icons/icons_2.es.js";
3
+ import { RiAlertFill as B, RiAlertLine as _, RiCheckLine as j, RiCheckboxBlankCircleFill as O, RiCheckboxBlankCircleLine as P, RiCheckboxBlankLine as W, RiCheckboxCircleFill as q, RiCheckboxCircleLine as G, RiCheckboxFill as H, RiCheckboxIndeterminateFill as N, RiCloseCircleLine as V, RiCloseFill as z, RiCloseLine as J, RiErrorWarningFill as K, RiErrorWarningLine as Q, RiEyeLine as X, RiEyeOffLine as Y, RiInformationFill as Z, RiInformationLine as ee } from "./icons/icons_5.es.js";
4
+ import { RiRadioButtonLine as ie, RiMoreFill as te } from "./icons/icons_6.es.js";
5
+ import { createGlobalState as re, createSharedComposable as oe, useColorMode as ne } from "@vueuse/core";
6
+ import { ref as w, computed as R, watch as se } from "vue";
7
+ import { set as C, get as s } from "@vueuse/shared";
8
+ import { c as ae } from "./colors-D563Ic3q.js";
9
+ const Ae = re(() => {
10
+ const e = [
11
+ B,
12
+ _,
13
+ F,
14
+ x,
15
+ T,
16
+ $,
17
+ D,
18
+ S,
19
+ v,
20
+ I,
21
+ j,
22
+ O,
23
+ P,
24
+ W,
25
+ q,
26
+ G,
27
+ H,
28
+ N,
29
+ V,
30
+ z,
31
+ J,
32
+ M,
33
+ K,
34
+ Q,
35
+ X,
36
+ Y,
37
+ Z,
38
+ ee,
39
+ ie,
40
+ te,
41
+ U
42
+ ], t = w({});
43
+ return { registeredIcons: t, registerIcons: (r) => {
44
+ C(t, {
45
+ ...s(t),
46
+ ...Object.fromEntries(
47
+ [...e, ...r].map(({ name: i, path: o }) => [i, o])
48
+ )
49
+ });
50
+ } };
51
+ }), n = {
52
+ auto: "auto",
53
+ dark: "dark",
54
+ light: "light"
55
+ };
56
+ function k(e) {
57
+ return Object.fromEntries(
58
+ ae.map((t) => [
59
+ t,
60
+ {
61
+ darker: `var(--rui-${e}-${t}-darker)`,
62
+ DEFAULT: `var(--rui-${e}-${t}-main)`,
63
+ lighter: `var(--rui-${e}-${t}-lighter)`
64
+ }
65
+ ])
66
+ );
67
+ }
68
+ const b = {
69
+ dark: k("dark"),
70
+ light: k("light")
71
+ }, g = w({ ...b }), ye = oe(() => {
72
+ const { state: e, store: t } = ne(), c = R(() => s(t) === n.auto), r = R(() => s(e) === n.light), i = R(() => s(e) === n.dark), o = R(() => s(r) ? s(g).light : s(g).dark), a = (l) => {
73
+ C(t, l || n.auto);
74
+ }, u = () => {
75
+ s(c) ? a(n.light) : s(r) ? a(n.dark) : s(i) && a(n.auto);
76
+ }, m = (l) => {
77
+ C(g, l);
78
+ };
79
+ return {
80
+ config: g,
81
+ init: (l) => {
82
+ a(l.mode ?? n.auto), m(l.config ?? { ...b }), typeof window < "u" && se([r, o], ([A, y]) => {
83
+ const f = /* @__PURE__ */ new Map();
84
+ Object.entries(y).forEach(([h, d]) => {
85
+ f.set(`--rui-${h}-darker`, d.darker), f.set(`--rui-${h}-lighter`, d.lighter), f.set(`--rui-${h}-main`, d.DEFAULT);
86
+ });
87
+ const L = A ? n.light : n.dark;
88
+ f.set("--rui-text-disabled", `var(--rui-${L}-text-disabled)`), f.set("--rui-text-primary", `var(--rui-${L}-text-primary)`), f.set("--rui-text-secondary", `var(--rui-${L}-text-secondary)`);
89
+ const E = document.documentElement.style;
90
+ f.forEach((h, d) => {
91
+ E.setProperty(d, h);
92
+ });
93
+ }, { immediate: !0 });
94
+ },
95
+ isAutoControlled: c,
96
+ isDark: i,
97
+ isLight: r,
98
+ setThemeConfig: m,
99
+ state: e,
100
+ store: t,
101
+ switchThemeScheme: a,
102
+ theme: o,
103
+ toggleThemeMode: u
104
+ };
105
+ }), le = /\d/, ce = ["-", "_", "/", "."];
106
+ function ue(e = "") {
107
+ if (!le.test(e))
108
+ return e !== e.toLowerCase();
109
+ }
110
+ function fe(e, t) {
111
+ const c = ce, r = [];
112
+ if (!e || typeof e != "string")
113
+ return r;
114
+ let i = "", o, a;
115
+ for (const u of e) {
116
+ const m = c.includes(u);
117
+ if (m === !0) {
118
+ r.push(i), i = "", o = void 0;
119
+ continue;
120
+ }
121
+ const p = ue(u);
122
+ if (a === !1) {
123
+ if (o === !1 && p === !0) {
124
+ r.push(i), i = u, o = p;
125
+ continue;
126
+ }
127
+ if (o === !0 && p === !1 && i.length > 1) {
128
+ const l = i.at(-1);
129
+ r.push(i.slice(0, Math.max(0, i.length - 1))), i = l + u, o = p;
130
+ continue;
131
+ }
132
+ }
133
+ i += u, o = p, a = m;
134
+ }
135
+ return r.push(i), r;
136
+ }
137
+ function pe(e) {
138
+ return e ? e[0].toUpperCase() + e.slice(1) : "";
139
+ }
140
+ function me(e) {
141
+ return e ? e[0].toLowerCase() + e.slice(1) : "";
142
+ }
143
+ function he(e, t) {
144
+ return e ? (Array.isArray(e) ? e : fe(e)).map((c) => pe(c)).join("") : "";
145
+ }
146
+ function Ee(e, t) {
147
+ return me(he(e || ""));
148
+ }
149
+ export {
150
+ n as T,
151
+ ye as a,
152
+ Ee as c,
153
+ Ae as u
154
+ };
package/dist/index.es.js CHANGED
@@ -1,8 +1,8 @@
1
- import { u as a, a as r } from "./index-NNlkUY_M.js";
2
- import { T as C } from "./index-NNlkUY_M.js";
3
- import { N as F, T as L } from "./RuiNavigationDrawer-BW1w-fzb.js";
4
- import { I as S, H as g, R as m, a as k, b as B, J as w, c as f, d as P, u as y, v as D, e as M, f as b, K as A, r as T, t as x, D as H, g as U, h as E, _ as v, q as G, F as I, L as W, M as V, i as O, j as N, k as z, l as K, s as q, B as Q, G as j, m as Z, n as X, x as J, z as Y, y as _, A as $, E as ii, w as li, C as ei, o as Ri, p as ni, S as oi } from "./RuiNavigationDrawer-BW1w-fzb.js";
5
- import { u as ri } from "./breakpoint-OTAceaTK.js";
1
+ import { u as a, a as r } from "./index-DIN-6VhY.js";
2
+ import { T as C } from "./index-DIN-6VhY.js";
3
+ import { N as F, T as L } from "./RuiNavigationDrawer-CvcZU8-E.js";
4
+ import { I as S, H as g, R as m, a as k, b as B, J as w, c as f, d as P, u as y, v as D, e as M, f as b, K as A, r as T, t as x, D as H, g as U, h as E, _ as v, q as G, F as I, L as W, M as V, i as O, j as N, k as z, l as K, s as q, B as Q, G as j, m as Z, n as X, x as J, z as Y, y as _, A as $, E as ii, w as li, C as ei, o as Ri, p as ni, S as oi } from "./RuiNavigationDrawer-CvcZU8-E.js";
5
+ import { u as ri } from "./breakpoint-sPlgsoXp.js";
6
6
  import { RuiIcons as Li, isRuiIcon as ti } from "./icons/index.es.js";
7
7
  import { c as di } from "./colors-D563Ic3q.js";
8
8
  import { RiAdvertisementFill as ui, RiAdvertisementLine as pi, RiAlignItemBottomFill as Ci, RiAlignItemBottomLine as hi, RiAlignItemHorizontalCenterFill as Si, RiAlignItemHorizontalCenterLine as gi, RiAlignItemLeftFill as mi, RiAlignItemLeftLine as ki, RiAlignItemRightFill as Bi, RiAlignItemRightLine as wi, RiAlignItemTopFill as fi, RiAlignItemTopLine as Pi, RiAlignItemVerticalCenterFill as yi, RiAlignItemVerticalCenterLine as Di, RiAncientGateFill as Mi, RiAncientGateLine as bi, RiAncientPavilionFill as Ai, RiAncientPavilionLine as Ti, RiAnticlockwise2Fill as xi, RiAnticlockwise2Line as Hi, RiAnticlockwiseFill as Ui, RiAnticlockwiseLine as Ei, RiArchive2Fill as vi, RiArchive2Line as Gi, RiArchiveDrawerFill as Ii, RiArchiveDrawerLine as Wi, RiArchiveFill as Vi, RiArchiveLine as Oi, RiArchiveStackFill as Ni, RiArchiveStackLine as zi, RiArrowDownCircleFill as Ki, RiArrowDownCircleLine as qi, RiArrowDownDoubleFill as Qi, RiArrowDownDoubleLine as ji, RiArrowDownFill as Zi, RiArrowDownLine as Xi, RiArrowDownSFill as Ji, RiArrowDownSLine as Yi, RiArrowDownWideFill as _i, RiArrowDownWideLine as $i, RiArrowDropDownFill as il, RiArrowDropDownLine as ll, RiArrowDropLeftFill as el, RiArrowDropLeftLine as Rl, RiArrowDropRightFill as nl, RiArrowDropRightLine as ol, RiArrowDropUpFill as al, RiArrowDropUpLine as rl, RiArrowGoBackFill as Fl, RiArrowGoBackLine as Ll, RiArrowGoForwardFill as tl, RiArrowGoForwardLine as sl, RiArrowLeftCircleFill as dl, RiArrowLeftCircleLine as cl, RiArrowLeftDoubleFill as ul, RiArrowLeftDoubleLine as pl, RiArrowLeftDownFill as Cl, RiArrowLeftDownLine as hl, RiArrowLeftFill as Sl, RiArrowLeftLine as gl, RiArrowLeftRightFill as ml, RiArrowLeftRightLine as kl, RiArrowLeftSFill as Bl, RiArrowLeftSLine as wl, RiArrowLeftUpFill as fl, RiArrowLeftUpLine as Pl, RiArrowLeftWideFill as yl, RiArrowLeftWideLine as Dl, RiArrowRightCircleFill as Ml, RiArrowRightCircleLine as bl, RiArrowRightDoubleFill as Al, RiArrowRightDoubleLine as Tl, RiArrowRightDownFill as xl, RiArrowRightDownLine as Hl, RiArrowRightFill as Ul, RiArrowRightLine as El, RiArrowRightSFill as vl, RiArrowRightSLine as Gl, RiArrowRightUpFill as Il, RiArrowRightUpLine as Wl, RiArrowRightWideFill as Vl, RiArrowRightWideLine as Ol, RiArrowTurnBackFill as Nl, RiArrowTurnBackLine as zl, RiArrowTurnForwardFill as Kl, RiArrowTurnForwardLine as ql, RiArrowUpCircleFill as Ql, RiArrowUpCircleLine as jl, RiArrowUpDoubleFill as Zl, RiArrowUpDoubleLine as Xl, RiArrowUpDownFill as Jl, RiArrowUpDownLine as Yl, RiArrowUpFill as _l, RiArrowUpLine as $l, RiArrowUpSFill as ie, RiArrowUpSLine as le, RiArrowUpWideFill as ee, RiArrowUpWideLine as Re, RiArtboard2Fill as ne, RiArtboard2Line as oe, RiArtboardFill as ae, RiArtboardLine as re, RiAtFill as Fe, RiAtLine as Le, RiAttachmentFill as te, RiAttachmentLine as se, RiAwardFill as de, RiAwardLine as ce, RiBallPenFill as ue, RiBallPenLine as pe, RiBankFill as Ce, RiBankLine as he, RiBarChart2Fill as Se, RiBarChart2Line as ge, RiBarChartBoxFill as me, RiBarChartBoxLine as ke, RiBarChartFill as Be, RiBarChartGroupedFill as we, RiBarChartGroupedLine as fe, RiBarChartHorizontalFill as Pe, RiBarChartHorizontalLine as ye, RiBarChartLine as De, RiBookmark2Fill as Me, RiBookmark2Line as be, RiBookmark3Fill as Ae, RiBookmark3Line as Te, RiBookmarkFill as xe, RiBookmarkLine as He, RiBriefcase2Fill as Ue, RiBriefcase2Line as Ee, RiBriefcase3Fill as ve, RiBriefcase3Line as Ge, RiBriefcase4Fill as Ie, RiBriefcase4Line as We, RiBriefcase5Fill as Ve, RiBriefcase5Line as Oe, RiBriefcaseFill as Ne, RiBriefcaseLine as ze, RiBubbleChartFill as Ke, RiBubbleChartLine as qe, RiBuilding2Fill as Qe, RiBuilding2Line as je, RiBuilding3Fill as Ze, RiBuilding3Line as Xe, RiBuilding4Fill as Je, RiBuilding4Line as Ye, RiBuildingFill as _e, RiBuildingLine as $e, RiCalculatorFill as iR, RiCalculatorLine as lR, RiCalendar2Fill as eR, RiCalendar2Line as RR, RiCalendarCheckFill as nR, RiCalendarCheckLine as oR, RiCalendarCloseFill as aR, RiCalendarCloseLine as rR, RiCalendarEventFill as FR, RiCalendarEventLine as LR, RiCalendarFill as tR, RiCalendarLine as sR, RiCalendarScheduleFill as dR, RiCalendarScheduleLine as cR, RiCalendarTodoFill as uR, RiCalendarTodoLine as pR, RiChat1Fill as CR, RiChat1Line as hR, RiChat2Fill as SR, RiChat2Line as gR, RiChat3Fill as mR, RiChat3Line as kR, RiChat4Fill as BR, RiChat4Line as wR, RiChatCheckFill as fR, RiChatCheckLine as PR, RiChatDeleteFill as yR, RiChatDeleteLine as DR, RiChatDownloadFill as MR, RiChatDownloadLine as bR, RiChatFollowUpFill as AR, RiChatFollowUpLine as TR, RiChatForwardFill as xR, RiChatForwardLine as HR, RiChatHeartFill as UR, RiChatHeartLine as ER, RiChatHistoryFill as vR, RiChatHistoryLine as GR, RiChatNewFill as IR, RiChatNewLine as WR, RiChatOffFill as VR, RiChatOffLine as OR, RiChatPollFill as NR, RiChatPollLine as zR, RiChatPrivateFill as KR, RiChatPrivateLine as qR, RiChatQuoteFill as QR, RiChatQuoteLine as jR, RiChatSearchFill as ZR, RiChatSearchLine as XR, RiChatSettingsFill as JR, RiChatSettingsLine as YR, RiChatSmile2Fill as _R, RiChatSmile2Line as $R, RiChatSmile3Fill as ln, RiChatSmile3Line as en, RiChatSmileFill as Rn, RiChatSmileLine as nn, RiChatThreadFill as on, RiChatThreadLine as an, RiChatUnreadFill as rn, RiChatUnreadLine as Fn, RiChatUploadFill as Ln, RiChatUploadLine as tn, RiChatVoiceFill as sn, RiChatVoiceLine as dn, RiCloudFill as cn, RiCloudLine as un, RiCloudOffFill as pn, RiCloudOffLine as Cn, RiCollapseDiagonal2Fill as hn, RiCollapseDiagonal2Line as Sn, RiCollapseDiagonalFill as gn, RiCollapseDiagonalLine as mn, RiCollapseHorizontalFill as kn, RiCollapseHorizontalLine as Bn, RiCollapseVerticalFill as wn, RiCollapseVerticalLine as fn, RiCommunityFill as Pn, RiCommunityLine as yn, RiContractLeftFill as Dn, RiContractLeftLine as Mn, RiContractLeftRightFill as bn, RiContractLeftRightLine as An, RiContractRightFill as Tn, RiContractRightLine as xn, RiContractUpDownFill as Hn, RiContractUpDownLine as Un, RiCopyleftFill as En, RiCopyleftLine as vn, RiCopyrightFill as Gn, RiCopyrightLine as In, RiCornerDownLeftFill as Wn, RiCornerDownLeftLine as Vn, RiCornerDownRightFill as On, RiCornerDownRightLine as Nn, RiCornerLeftDownFill as zn, RiCornerLeftDownLine as Kn, RiCornerLeftUpFill as qn, RiCornerLeftUpLine as Qn, RiCornerRightDownFill as jn, RiCornerRightDownLine as Zn, RiCornerRightUpFill as Xn, RiCornerRightUpLine as Jn, RiCornerUpLeftDoubleFill as Yn, RiCornerUpLeftDoubleLine as _n, RiCornerUpLeftFill as $n, RiCornerUpLeftLine as io, RiCornerUpRightDoubleFill as lo, RiCornerUpRightDoubleLine as eo, RiCornerUpRightFill as Ro, RiCornerUpRightLine as no, RiCreativeCommonsByFill as oo, RiCreativeCommonsByLine as ao, RiCreativeCommonsFill as ro, RiCreativeCommonsLine as Fo, RiCreativeCommonsNcFill as Lo, RiCreativeCommonsNcLine as to, RiCreativeCommonsNdFill as so, RiCreativeCommonsNdLine as co, RiCreativeCommonsSaFill as uo, RiCreativeCommonsSaLine as po, RiCreativeCommonsZeroFill as Co, RiCreativeCommonsZeroLine as ho, RiCustomerService2Fill as So, RiCustomerService2Line as go, RiCustomerServiceFill as mo, RiCustomerServiceLine as ko, RiDiscussFill as Bo, RiDiscussLine as wo, RiDonutChartFill as fo, RiDonutChartLine as Po, RiDragMove2Fill as yo, RiDragMove2Line as Do, RiDragMoveFill as Mo, RiDragMoveLine as bo, RiEmojiStickerFill as Ao, RiEmojiStickerLine as To, RiExpandDiagonal2Fill as xo, RiExpandDiagonal2Line as Ho, RiExpandDiagonalFill as Uo, RiExpandDiagonalLine as Eo, RiExpandDiagonalS2Fill as vo, RiExpandDiagonalS2Line as Go, RiExpandDiagonalSFill as Io, RiExpandDiagonalSLine as Wo, RiExpandHeightFill as Vo, RiExpandHeightLine as Oo, RiExpandHorizontalFill as No, RiExpandHorizontalLine as zo, RiExpandHorizontalSFill as Ko, RiExpandHorizontalSLine as qo, RiExpandLeftFill as Qo, RiExpandLeftLine as jo, RiExpandLeftRightFill as Zo, RiExpandLeftRightLine as Xo, RiExpandRightFill as Jo, RiExpandRightLine as Yo, RiExpandUpDownFill as _o, RiExpandUpDownLine as $o, RiExpandVerticalFill as ia, RiExpandVerticalLine as la, RiExpandVerticalSFill as ea, RiExpandVerticalSLine as Ra, RiExpandWidthFill as na, RiExpandWidthLine as oa, RiFeedbackFill as aa, RiFeedbackLine as ra, RiFlag2Fill as Fa, RiFlag2Line as La, RiFlagFill as ta, RiFlagLine as sa, RiGlobalFill as da, RiGlobalLine as ca, RiGovernmentFill as ua, RiGovernmentLine as pa, RiHome2Fill as Ca, RiHome2Line as ha, RiHome3Fill as Sa, RiHome3Line as ga, RiHome4Fill as ma, RiHome4Line as ka, RiHome5Fill as Ba, RiHome5Line as wa, RiHome6Fill as fa, RiHome6Line as Pa, RiHome7Fill as ya, RiHome7Line as Da, RiHome8Fill as Ma, RiHome8Line as ba, RiHomeFill as Aa, RiHomeGearFill as Ta, RiHomeGearLine as xa, RiHomeHeartFill as Ha, RiHomeHeartLine as Ua, RiHomeLine as Ea, RiHomeOfficeFill as va, RiHomeOfficeLine as Ga, RiHomeSmile2Fill as Ia, RiHomeSmile2Line as Wa, RiHomeSmileFill as Va, RiHomeSmileLine as Oa, RiHomeWifiFill as Na, RiHomeWifiLine as za, RiHonourFill as Ka, RiHonourLine as qa, RiHospitalFill as Qa, RiHospitalLine as ja, RiHotelFill as Za, RiHotelLine as Xa, RiIdCardFill as Ja, RiIdCardLine as Ya, RiInbox2Fill as _a, RiInbox2Line as $a, RiInboxArchiveFill as ir, RiInboxArchiveLine as lr, RiInboxFill as er, RiInboxLine as Rr, RiInboxUnarchiveFill as nr, RiInboxUnarchiveLine as or, RiLineChartFill as ar, RiLineChartLine as rr, RiLinksFill as Fr, RiLinksLine as Lr, RiMailAddFill as tr, RiMailAddLine as sr, RiMailCheckFill as dr, RiMailCheckLine as cr, RiMailCloseFill as ur, RiMailCloseLine as pr, RiMailDownloadFill as Cr, RiMailDownloadLine as hr, RiMailFill as Sr, RiMailForbidFill as gr, RiMailForbidLine as mr, RiMailLine as kr, RiMailLockFill as Br, RiMailLockLine as wr, RiMailOpenFill as fr, RiMailOpenLine as Pr, RiMailSendFill as yr, RiMailSendLine as Dr, RiMailSettingsFill as Mr, RiMailSettingsLine as br, RiMailStarFill as Ar, RiMailStarLine as Tr, RiMailUnreadFill as xr, RiMailUnreadLine as Hr, RiMailVolumeFill as Ur, RiMailVolumeLine as Er, RiMedal2Fill as vr, RiMedal2Line as Gr, RiMedalFill as Ir, RiMedalLine as Wr, RiMegaphoneFill as Vr, RiMegaphoneLine as Or, RiMessage2Fill as Nr, RiMessage2Line as zr, RiMessage3Fill as Kr, RiMessage3Line as qr, RiMessageFill as Qr, RiMessageLine as jr, RiPassExpiredFill as Zr, RiPassExpiredLine as Xr, RiPassPendingFill as Jr, RiPassPendingLine as Yr, RiPassValidFill as _r, RiPassValidLine as $r, RiPieChart2Fill as iF, RiPieChart2Line as lF, RiPieChartBoxFill as eF, RiPieChartBoxLine as RF, RiPieChartFill as nF, RiPieChartLine as oF, RiPresentationFill as aF, RiPresentationLine as rF, RiPrinterCloudFill as FF, RiPrinterCloudLine as LF, RiPrinterFill as tF, RiPrinterLine as sF, RiProfileFill as dF, RiProfileLine as cF, RiProjector2Fill as uF, RiProjector2Line as pF, RiProjectorFill as CF, RiProjectorLine as hF, RiQuestionAnswerFill as SF, RiQuestionAnswerLine as gF, RiQuestionnaireFill as mF, RiQuestionnaireLine as kF, RiRecordMailFill as BF, RiRecordMailLine as wF, RiRegisteredFill as fF, RiRegisteredLine as PF, RiReplyAllFill as yF, RiReplyAllLine as DF, RiReplyFill as MF, RiReplyLine as bF, RiSchoolFill as AF, RiSchoolLine as TF, RiScrollToBottomFill as xF, RiScrollToBottomLine as HF, RiSendPlane2Fill as UF, RiSendPlane2Line as EF, RiSendPlaneFill as vF, RiSendPlaneLine as GF, RiSeoFill as IF, RiSeoLine as WF, RiServiceFill as VF, RiServiceLine as OF, RiShakeHandsFill as NF, RiShakeHandsLine as zF, RiSkipDownFill as KF, RiSkipDownLine as qF, RiSkipLeftFill as QF, RiSkipLeftLine as jF, RiSkipRightFill as ZF, RiSkipRightLine as XF, RiSkipUpFill as JF, RiSkipUpLine as YF, RiSlideshow2Fill as _F, RiSlideshow2Line as $F, RiSlideshow3Fill as iL, RiSlideshow3Line as lL, RiSlideshow4Fill as eL, RiSlideshow4Line as RL, RiSlideshowFill as nL, RiSlideshowLine as oL, RiSpeakFill as aL, RiSpeakLine as rL, RiStackFill as FL, RiStackLine as LL, RiStore2Fill as tL, RiStore2Line as sL, RiStore3Fill as dL, RiStore3Line as cL, RiStoreFill as uL, RiStoreLine as pL, RiTentFill as CL, RiTentLine as hL, RiTrademarkFill as SL, RiTrademarkLine as gL, RiTriangularFlagFill as mL, RiTriangularFlagLine as kL, RiVerifiedBadgeFill as BL, RiVerifiedBadgeLine as wL, RiVideoChatFill as fL, RiVideoChatLine as PL, RiWindow2Fill as yL, RiWindow2Line as DL, RiWindowFill as ML, RiWindowLine as bL } from "./icons/icons_1.es.js";