@rotki/ui-library 0.3.0 → 0.4.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.
@@ -8,6 +8,7 @@ export interface Props {
8
8
  variant?: 'default' | 'outlined' | 'text' | 'fab';
9
9
  icon?: boolean;
10
10
  size?: 'sm' | 'lg';
11
+ tag?: 'button' | 'a';
11
12
  }
12
13
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
13
14
  variant: {
@@ -42,6 +43,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
42
43
  type: globalThis.PropType<boolean>;
43
44
  default: boolean;
44
45
  };
46
+ tag: {
47
+ type: globalThis.PropType<"a" | "button">;
48
+ default: string;
49
+ };
45
50
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
46
51
  variant: {
47
52
  type: globalThis.PropType<"default" | "text" | "outlined" | "fab">;
@@ -75,6 +80,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
75
80
  type: globalThis.PropType<boolean>;
76
81
  default: boolean;
77
82
  };
83
+ tag: {
84
+ type: globalThis.PropType<"a" | "button">;
85
+ default: string;
86
+ };
78
87
  }>>, {
79
88
  variant: "default" | "text" | "outlined" | "fab";
80
89
  color: "primary" | "secondary" | "error" | "warning" | "info" | "success";
@@ -84,6 +93,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
84
93
  loading: boolean;
85
94
  rounded: boolean;
86
95
  icon: boolean;
96
+ tag: "a" | "button";
87
97
  }, {}>, {
88
98
  prepend?(_: {}): any;
89
99
  default?(_: {}): any;
@@ -69,6 +69,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
69
69
  dismissible: boolean;
70
70
  }, {}>, {
71
71
  prepend?(_: {}): any;
72
+ default?(_: {}): any;
72
73
  }>;
73
74
  export default _default;
74
75
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -14,6 +14,7 @@ export interface Props {
14
14
  hideDetails?: boolean;
15
15
  prependIcon?: RuiIcons;
16
16
  appendIcon?: RuiIcons;
17
+ readonly?: boolean;
17
18
  }
18
19
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
19
20
  variant: {
@@ -36,6 +37,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
36
37
  type: globalThis.PropType<boolean>;
37
38
  default: boolean;
38
39
  };
40
+ readonly: {
41
+ type: globalThis.PropType<boolean>;
42
+ default: boolean;
43
+ };
39
44
  modelValue: {
40
45
  type: globalThis.PropType<string>;
41
46
  default: string;
@@ -94,6 +99,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
94
99
  type: globalThis.PropType<boolean>;
95
100
  default: boolean;
96
101
  };
102
+ readonly: {
103
+ type: globalThis.PropType<boolean>;
104
+ default: boolean;
105
+ };
97
106
  modelValue: {
98
107
  type: globalThis.PropType<string>;
99
108
  default: string;
@@ -137,6 +146,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
137
146
  label: string;
138
147
  placeholder: string;
139
148
  disabled: boolean;
149
+ readonly: boolean;
140
150
  modelValue: string;
141
151
  dense: boolean;
142
152
  hint: string;
@@ -18,4 +18,8 @@ import { default as RuiLogo } from '../components/logos/Logo.vue';
18
18
  import { default as RuiSimpleSelect, type Props as SimpleSelectProps } from '../components/forms/select/SimpleSelect.vue';
19
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
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, };
21
+ import { default as RuiTabs } from '../components/tabs/tabs/Tabs.vue';
22
+ import { default as RuiTab } from '../components/tabs/tab/Tab.vue';
23
+ import { default as RuiTabItems } from '../components/tabs/tab-items/TabItems.vue';
24
+ import { default as RuiTabItem } from '../components/tabs/tab-item/TabItem.vue';
25
+ export { RuiAlert, RuiAutoComplete, RuiButton, RuiButtonGroup, RuiCheckbox, RuiChip, RuiFooterStepper, RuiIcon, RuiLogo, RuiProgress, RuiRadio, RuiRadioGroup, RuiRevealableTextField, RuiStepper, RuiTextField, RuiTooltip, RuiDataTable, RuiSimpleSelect, RuiDialog, RuiCard, RuiTabs, RuiTab, RuiTabItems, RuiTabItem, AutoCompleteProps, ChipProps, TooltipProps, SimpleSelectProps, DataTableProps, DataTableColumn, DataTableSortColumn, DataTableOptions, DialogProps, ButtonProps, CardProps, };
@@ -1,29 +1,34 @@
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";
1
+ import { A as r, a as m, B as l, b as T, j as b, C as d, c as C, D as c, i as g, F as n, I as x, _ as F, P as I, R as S, d as h, e as A, h as B, f as D, l as f, n as k, m as G, k as P, g as j, T as v } from "../index-65c6da26.js";
2
2
  import "vue";
3
3
  import "@vueuse/shared";
4
- import "../index-2304aade.js";
4
+ import "../index-393a0e94.js";
5
5
  import "../all-icons.es.js";
6
6
  import "@vueuse/core";
7
7
  import "../colors-01d79c7b.js";
8
+ import "vue-router";
8
9
  export {
9
- p as RuiAlert,
10
- r as RuiAutoComplete,
10
+ r as RuiAlert,
11
+ m as RuiAutoComplete,
11
12
  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,
13
+ T as RuiButtonGroup,
14
+ b as RuiCard,
15
+ d as RuiCheckbox,
16
+ C as RuiChip,
17
+ c as RuiDataTable,
18
+ g as RuiDialog,
19
+ n as RuiFooterStepper,
19
20
  x as RuiIcon,
20
21
  F as RuiLogo,
21
- S as RuiProgress,
22
- h as RuiRadio,
23
- n as RuiRadioGroup,
22
+ I as RuiProgress,
23
+ S as RuiRadio,
24
+ h as RuiRadioGroup,
24
25
  A as RuiRevealableTextField,
25
26
  B as RuiSimpleSelect,
26
27
  D as RuiStepper,
27
- f as RuiTextField,
28
- G as RuiTooltip
28
+ f as RuiTab,
29
+ k as RuiTabItem,
30
+ G as RuiTabItems,
31
+ P as RuiTabs,
32
+ j as RuiTextField,
33
+ v as RuiTooltip
29
34
  };
@@ -6,6 +6,7 @@ export interface Props {
6
6
  openDelay?: number;
7
7
  closeDelay?: number;
8
8
  popper?: PopperOptions;
9
+ tooltipClass?: string;
9
10
  }
10
11
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
11
12
  text: {
@@ -32,6 +33,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
32
33
  type: globalThis.PropType<number>;
33
34
  default: number;
34
35
  };
36
+ tooltipClass: {
37
+ type: globalThis.PropType<string>;
38
+ default: string;
39
+ };
35
40
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
36
41
  text: {
37
42
  type: globalThis.PropType<string | null>;
@@ -57,6 +62,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
57
62
  type: globalThis.PropType<number>;
58
63
  default: number;
59
64
  };
65
+ tooltipClass: {
66
+ type: globalThis.PropType<string>;
67
+ default: string;
68
+ };
60
69
  }>>, {
61
70
  text: string | null;
62
71
  disabled: boolean;
@@ -64,11 +73,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
64
73
  hideArrow: boolean;
65
74
  openDelay: number;
66
75
  closeDelay: number;
76
+ tooltipClass: string;
67
77
  }, {}>, {
68
- default?(_: {
78
+ activator?(_: {
69
79
  open: boolean;
70
80
  }): any;
71
- text?(_: {}): any;
81
+ default?(_: {}): any;
72
82
  }>;
73
83
  export default _default;
74
84
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -3,8 +3,9 @@ export interface TableColumn {
3
3
  key: string;
4
4
  sortable?: boolean;
5
5
  direction?: 'asc' | 'desc';
6
- align?: 'left' | 'right';
6
+ align?: 'start' | 'center' | 'end';
7
7
  class?: string;
8
+ cellClass?: string;
8
9
  [key: string]: any;
9
10
  }
10
11
  export interface SortColumn {
@@ -0,0 +1,136 @@
1
+ import { type ContextColorsType } from '../../../consts/colors';
2
+ export interface Props {
3
+ color?: ContextColorsType;
4
+ disabled?: boolean;
5
+ grow?: boolean;
6
+ tabValue: number | string;
7
+ active?: boolean;
8
+ link?: boolean;
9
+ target?: string;
10
+ to?: string;
11
+ exact?: boolean;
12
+ exactPath?: boolean;
13
+ vertical?: boolean;
14
+ align?: 'start' | 'center' | 'end';
15
+ }
16
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
17
+ color: {
18
+ type: globalThis.PropType<"primary" | "secondary" | "error" | "warning" | "info" | "success">;
19
+ default: undefined;
20
+ };
21
+ link: {
22
+ type: globalThis.PropType<boolean>;
23
+ default: boolean;
24
+ };
25
+ target: {
26
+ type: globalThis.PropType<string>;
27
+ default: string;
28
+ };
29
+ to: {
30
+ type: globalThis.PropType<string>;
31
+ default: string;
32
+ };
33
+ disabled: {
34
+ type: globalThis.PropType<boolean>;
35
+ default: boolean;
36
+ };
37
+ active: {
38
+ type: globalThis.PropType<boolean>;
39
+ default: boolean;
40
+ };
41
+ vertical: {
42
+ type: globalThis.PropType<boolean>;
43
+ default: boolean;
44
+ };
45
+ align: {
46
+ type: globalThis.PropType<"end" | "center" | "start">;
47
+ default: string;
48
+ };
49
+ grow: {
50
+ type: globalThis.PropType<boolean>;
51
+ default: boolean;
52
+ };
53
+ tabValue: {
54
+ type: globalThis.PropType<string | number>;
55
+ required: true;
56
+ };
57
+ exact: {
58
+ type: globalThis.PropType<boolean>;
59
+ default: boolean;
60
+ };
61
+ exactPath: {
62
+ type: globalThis.PropType<boolean>;
63
+ default: boolean;
64
+ };
65
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
66
+ click: (tabValue: string | number) => void;
67
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
68
+ color: {
69
+ type: globalThis.PropType<"primary" | "secondary" | "error" | "warning" | "info" | "success">;
70
+ default: undefined;
71
+ };
72
+ link: {
73
+ type: globalThis.PropType<boolean>;
74
+ default: boolean;
75
+ };
76
+ target: {
77
+ type: globalThis.PropType<string>;
78
+ default: string;
79
+ };
80
+ to: {
81
+ type: globalThis.PropType<string>;
82
+ default: string;
83
+ };
84
+ disabled: {
85
+ type: globalThis.PropType<boolean>;
86
+ default: boolean;
87
+ };
88
+ active: {
89
+ type: globalThis.PropType<boolean>;
90
+ default: boolean;
91
+ };
92
+ vertical: {
93
+ type: globalThis.PropType<boolean>;
94
+ default: boolean;
95
+ };
96
+ align: {
97
+ type: globalThis.PropType<"end" | "center" | "start">;
98
+ default: string;
99
+ };
100
+ grow: {
101
+ type: globalThis.PropType<boolean>;
102
+ default: boolean;
103
+ };
104
+ tabValue: {
105
+ type: globalThis.PropType<string | number>;
106
+ required: true;
107
+ };
108
+ exact: {
109
+ type: globalThis.PropType<boolean>;
110
+ default: boolean;
111
+ };
112
+ exactPath: {
113
+ type: globalThis.PropType<boolean>;
114
+ default: boolean;
115
+ };
116
+ }>> & {
117
+ onClick?: ((tabValue: string | number) => any) | undefined;
118
+ }, {
119
+ color: "primary" | "secondary" | "error" | "warning" | "info" | "success";
120
+ link: boolean;
121
+ target: string;
122
+ to: string;
123
+ disabled: boolean;
124
+ active: boolean;
125
+ vertical: boolean;
126
+ align: "end" | "center" | "start";
127
+ grow: boolean;
128
+ exact: boolean;
129
+ exactPath: boolean;
130
+ }, {}>, Partial<Record<NonNullable<string | number>, (_: any) => any>> & Partial<Record<NonNullable<string | number>, (_: any) => any>> & Partial<Record<NonNullable<string | number>, (_: any) => any>>>;
131
+ export default _default;
132
+ type __VLS_WithTemplateSlots<T, S> = T & {
133
+ new (): {
134
+ $slots: S;
135
+ };
136
+ };
@@ -0,0 +1,53 @@
1
+ export interface Props {
2
+ active?: boolean;
3
+ value: number | string;
4
+ eager?: boolean;
5
+ reverse?: boolean;
6
+ }
7
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
8
+ reverse: {
9
+ type: globalThis.PropType<boolean>;
10
+ default: boolean;
11
+ };
12
+ value: {
13
+ type: globalThis.PropType<string | number>;
14
+ required: true;
15
+ };
16
+ active: {
17
+ type: globalThis.PropType<boolean>;
18
+ default: boolean;
19
+ };
20
+ eager: {
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
+ reverse: {
26
+ type: globalThis.PropType<boolean>;
27
+ default: boolean;
28
+ };
29
+ value: {
30
+ type: globalThis.PropType<string | number>;
31
+ required: true;
32
+ };
33
+ active: {
34
+ type: globalThis.PropType<boolean>;
35
+ default: boolean;
36
+ };
37
+ eager: {
38
+ type: globalThis.PropType<boolean>;
39
+ default: boolean;
40
+ };
41
+ }>>, {
42
+ reverse: boolean;
43
+ active: boolean;
44
+ eager: boolean;
45
+ }, {}>, {
46
+ default?(_: {}): any;
47
+ }>;
48
+ export default _default;
49
+ type __VLS_WithTemplateSlots<T, S> = T & {
50
+ new (): {
51
+ $slots: S;
52
+ };
53
+ };
@@ -0,0 +1,17 @@
1
+ export interface Props {
2
+ modelValue?: number | string;
3
+ }
4
+ declare const _default: import("vue").DefineComponent<{
5
+ modelValue: {
6
+ type: globalThis.PropType<string | number>;
7
+ default: undefined;
8
+ };
9
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
10
+ modelValue: {
11
+ type: globalThis.PropType<string | number>;
12
+ default: undefined;
13
+ };
14
+ }>>, {
15
+ modelValue: string | number;
16
+ }, {}>;
17
+ export default _default;
@@ -0,0 +1,72 @@
1
+ import { type ContextColorsType } from '../../../consts/colors';
2
+ export interface Props {
3
+ color?: ContextColorsType;
4
+ vertical?: boolean;
5
+ disabled?: boolean;
6
+ grow?: boolean;
7
+ modelValue?: number | string;
8
+ align?: 'start' | 'center' | 'end';
9
+ }
10
+ declare const _default: import("vue").DefineComponent<{
11
+ color: {
12
+ type: globalThis.PropType<"primary" | "secondary" | "error" | "warning" | "info" | "success">;
13
+ default: undefined;
14
+ };
15
+ disabled: {
16
+ type: globalThis.PropType<boolean>;
17
+ default: boolean;
18
+ };
19
+ vertical: {
20
+ type: globalThis.PropType<boolean>;
21
+ default: boolean;
22
+ };
23
+ modelValue: {
24
+ type: globalThis.PropType<string | number>;
25
+ default: undefined;
26
+ };
27
+ align: {
28
+ type: globalThis.PropType<"end" | "center" | "start">;
29
+ default: string;
30
+ };
31
+ grow: {
32
+ type: globalThis.PropType<boolean>;
33
+ default: boolean;
34
+ };
35
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
36
+ "update:modelValue": (modelValue: string | number) => void;
37
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
38
+ color: {
39
+ type: globalThis.PropType<"primary" | "secondary" | "error" | "warning" | "info" | "success">;
40
+ default: undefined;
41
+ };
42
+ disabled: {
43
+ type: globalThis.PropType<boolean>;
44
+ default: boolean;
45
+ };
46
+ vertical: {
47
+ type: globalThis.PropType<boolean>;
48
+ default: boolean;
49
+ };
50
+ modelValue: {
51
+ type: globalThis.PropType<string | number>;
52
+ default: undefined;
53
+ };
54
+ align: {
55
+ type: globalThis.PropType<"end" | "center" | "start">;
56
+ default: string;
57
+ };
58
+ grow: {
59
+ type: globalThis.PropType<boolean>;
60
+ default: boolean;
61
+ };
62
+ }>> & {
63
+ "onUpdate:modelValue"?: ((modelValue: string | number) => any) | undefined;
64
+ }, {
65
+ color: "primary" | "secondary" | "error" | "warning" | "info" | "success";
66
+ disabled: boolean;
67
+ vertical: boolean;
68
+ modelValue: string | number;
69
+ align: "end" | "center" | "start";
70
+ grow: boolean;
71
+ }, {}>;
72
+ export default _default;
@@ -1,4 +1,4 @@
1
- import { u as s, a } from "../index-2304aade.js";
1
+ import { u as s, a } from "../index-393a0e94.js";
2
2
  import "../all-icons.es.js";
3
3
  import "@vueuse/core";
4
4
  import "vue";
@@ -1,15 +1,15 @@
1
- import { RiAlertFill as A, RiAlertLine as y, RiArrowDownLine as E, RiArrowDropDownFill as T, RiArrowLeftLine as D, RiArrowLeftSLine as I, RiArrowRightLine as v, RiArrowRightSLine as B, RiCheckLine as M, RiCheckboxBlankCircleFill as S, RiCheckboxBlankCircleLine as O, RiCheckboxBlankLine as j, RiCheckboxCircleFill as U, RiCheckboxCircleLine as V, RiCheckboxFill as W, RiCheckboxIndeterminateFill as q, RiCloseCircleLine as G, RiCloseFill as P, RiCloseLine as z, RiDatabase2Line as H, RiErrorWarningFill as J, RiErrorWarningLine as K, RiEyeLine as N, RiEyeOffLine as Q, RiInformationFill as X, RiInformationLine as Y, RiRadioButtonLine as Z, RiMoreFill as _ } from "./all-icons.es.js";
2
- import { createGlobalState as ee, useColorMode as ie } from "@vueuse/core";
3
- import { ref as C, computed as m, watch as re } from "vue";
1
+ import { RiAlertFill as $, RiAlertLine as y, RiArrowDownLine as D, RiArrowDropDownFill as E, RiArrowLeftDoubleLine as T, RiArrowLeftLine as I, RiArrowLeftSLine as v, RiArrowRightDoubleLine as B, RiArrowRightLine as M, RiArrowRightSLine as S, RiCheckLine as O, RiCheckboxBlankCircleFill as j, RiCheckboxBlankCircleLine as U, RiCheckboxBlankLine as V, RiCheckboxCircleFill as W, RiCheckboxCircleLine as q, RiCheckboxFill as G, RiCheckboxIndeterminateFill as P, RiCloseCircleLine as z, RiCloseFill as H, RiCloseLine as J, RiDatabase2Line as K, RiErrorWarningFill as N, RiErrorWarningLine as Q, RiEyeLine as X, RiEyeOffLine as Y, RiInformationFill as Z, RiInformationLine as _, RiRadioButtonLine as ee, RiMoreFill as ie } from "./all-icons.es.js";
2
+ import { createGlobalState as re, useColorMode as te } from "@vueuse/core";
3
+ import { ref as C, computed as d, watch as oe } from "vue";
4
4
  import { set as f, get as e } from "@vueuse/shared";
5
- import { c as te } from "./colors-01d79c7b.js";
6
- const de = ee(() => {
5
+ import { c as ne } from "./colors-01d79c7b.js";
6
+ const me = re(() => {
7
7
  const t = [
8
- A,
8
+ $,
9
9
  y,
10
+ D,
10
11
  E,
11
12
  T,
12
- D,
13
13
  I,
14
14
  v,
15
15
  B,
@@ -32,13 +32,15 @@ const de = ee(() => {
32
32
  X,
33
33
  Y,
34
34
  Z,
35
- _
35
+ _,
36
+ ee,
37
+ ie
36
38
  ], i = C({});
37
39
  return { registeredIcons: i, registerIcons: (a) => {
38
40
  f(i, {
39
41
  ...e(i),
40
42
  ...Object.fromEntries(
41
- [...t, ...a].map(({ name: s, path: d }) => [s, d])
43
+ [...t, ...a].map(({ name: s, path: u }) => [s, u])
42
44
  )
43
45
  });
44
46
  } };
@@ -47,7 +49,7 @@ const de = ee(() => {
47
49
  light: "light",
48
50
  dark: "dark"
49
51
  }, L = (t) => Object.fromEntries(
50
- te.map((i) => [
52
+ ne.map((i) => [
51
53
  i,
52
54
  {
53
55
  DEFAULT: `var(--rui-${t}-${i}-main)`,
@@ -58,44 +60,44 @@ const de = ee(() => {
58
60
  ), b = {
59
61
  light: L("light"),
60
62
  dark: L("dark")
61
- }, u = C({ ...b }), me = () => {
62
- const { store: t, state: i, system: h } = ie(), a = m(
63
+ }, m = C({ ...b }), he = () => {
64
+ const { store: t, state: i, system: h } = te(), a = d(
63
65
  () => e(t) === r.auto
64
- ), s = m(
66
+ ), s = d(
65
67
  () => e(a) && e(h) === r.light || e(i) === r.light
66
- ), d = m(
68
+ ), u = d(
67
69
  () => e(a) && e(h) === r.dark || e(i) === r.dark
68
- ), g = m(() => e(s) ? e(u).light : e(u).dark), c = (l) => {
70
+ ), g = d(() => e(s) ? e(m).light : e(m).dark), c = (l) => {
69
71
  f(t, l || r.auto);
70
72
  }, p = () => {
71
- e(a) ? c(r.light) : e(s) ? c(r.dark) : e(d) && c(r.auto);
73
+ e(a) ? c(r.light) : e(s) ? c(r.dark) : e(u) && c(r.auto);
72
74
  }, k = (l) => {
73
- f(u, l);
75
+ f(m, l);
74
76
  };
75
77
  return {
76
78
  isAutoControlled: a,
77
79
  isLight: s,
78
- isDark: d,
79
- config: u,
80
+ isDark: u,
81
+ config: m,
80
82
  theme: g,
81
83
  store: t,
82
84
  state: i,
83
85
  init: (l) => {
84
- c(l.mode ?? r.auto), k(l.config ?? { ...b }), typeof window < "u" && re(
86
+ c(l.mode ?? r.auto), k(l.config ?? { ...b }), typeof window < "u" && oe(
85
87
  [s, g],
86
- ([x, w]) => {
87
- const F = Object.entries(w).map(([o, n]) => ({
88
+ ([w, x]) => {
89
+ const A = Object.entries(x).map(([o, n]) => ({
88
90
  [`--rui-${o}-main`]: n.DEFAULT,
89
91
  [`--rui-${o}-lighter`]: n.lighter,
90
92
  [`--rui-${o}-darker`]: n.darker
91
- })).reduce((o, n) => ({ ...o, ...n }), {}), R = x ? r.light : r.dark, $ = {
93
+ })).reduce((o, n) => ({ ...o, ...n }), {}), R = w ? r.light : r.dark, F = {
92
94
  "--rui-text-primary": `var(--rui-${R}-text-primary)`,
93
95
  "--rui-text-secondary": `var(--rui-${R}-text-secondary)`,
94
96
  "--rui-text-disabled": `var(--rui-${R}-text-disabled)`
95
97
  };
96
98
  Object.entries({
97
- ...F,
98
- ...$
99
+ ...A,
100
+ ...F
99
101
  }).forEach(([o, n]) => {
100
102
  document.documentElement.style.setProperty(o, n);
101
103
  });
@@ -110,6 +112,6 @@ const de = ee(() => {
110
112
  };
111
113
  export {
112
114
  r as T,
113
- me as a,
114
- de as u
115
+ he as a,
116
+ me as u
115
117
  };