@raxium/vue 0.2.6 → 0.2.8

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.
@@ -148,9 +148,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
148
148
  "class",
149
149
  "as-child"
150
150
  ])) : createCommentVNode("", true),
151
- createVNode(unref(Checkbox).HiddenInput, {
152
- class: "hidden"
153
- })
151
+ createVNode(unref(Checkbox).HiddenInput)
154
152
  ]),
155
153
  _: 3
156
154
  }, 8, [
@@ -110,7 +110,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
110
110
  unmountOnExit: __props.unmountOnExit,
111
111
  lazyMount: __props.lazyMount
112
112
  }));
113
- const theme = useTheme(()=>__props.theme);
113
+ const theme = useTheme(()=>({
114
+ ...datePickerOptions.value?.theme,
115
+ ...__props.theme
116
+ }));
114
117
  __expose({
115
118
  $api: datePicker
116
119
  });
@@ -145,7 +145,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
145
145
  }, {
146
146
  immediate: true
147
147
  });
148
- const theme = useTheme(()=>__props.theme);
148
+ const theme = useTheme(()=>({
149
+ ...dialogConfig.value?.theme,
150
+ ...__props.theme
151
+ }));
149
152
  __expose({
150
153
  $api: dialog
151
154
  });
@@ -55,7 +55,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
55
55
  openDelay: hoverCardConfig.value?.openDelay,
56
56
  closeDelay: hoverCardConfig.value?.closeDelay
57
57
  }, forwarded.value)), emit);
58
- const theme = useTheme(()=>__props.theme);
58
+ const theme = useTheme(()=>({
59
+ ...hoverCardConfig.value?.theme,
60
+ ...__props.theme
61
+ }));
59
62
  __expose({
60
63
  $api: hoverCard
61
64
  });
@@ -66,6 +66,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
66
66
  const emits = __emit;
67
67
  const inputId = useId();
68
68
  const innerValue = ref(__props.modelValue ?? __props.defaultValue ?? "");
69
+ watch(()=>__props.modelValue, (newVal)=>{
70
+ innerValue.value = newVal ?? "";
71
+ });
69
72
  watch(innerValue, (newVal)=>{
70
73
  emits("update:modelValue", newVal);
71
74
  }, {
@@ -83,7 +83,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
83
83
  unmountOnExit: __props.unmountOnExit
84
84
  }));
85
85
  const menu = useMenu(useForwardProps(props), emits);
86
- const theme = useTheme(()=>__props.theme);
86
+ const theme = useTheme(()=>({
87
+ ...menuConfig.value?.theme,
88
+ ...__props.theme
89
+ }));
87
90
  __expose({
88
91
  $api: menu
89
92
  });
@@ -1,9 +1,13 @@
1
- import { computed, createBlock, createPropsRestProxy, createVNode, defineComponent, guardReactiveProps, mergeProps, normalizeClass, normalizeProps, openBlock, renderSlot, unref, withCtx } from "vue";
2
- import { Menu } from "@ark-ui/vue/menu";
1
+ import { computed, createBlock, createElementVNode, createPropsRestProxy, createVNode, defineComponent, guardReactiveProps, mergeProps, normalizeClass, normalizeProps, openBlock, renderSlot, unref, withCtx } from "vue";
2
+ import { Menu, MenuItemIndicator } from "@ark-ui/vue/menu";
3
3
  import { useForwardPropsEmits } from "@ark-ui/vue/utils";
4
4
  import { clsx } from "@raxium/themes/utils";
5
- import { Checkbox } from "../checkbox/index.js";
6
5
  import { useTheme } from "../../composables/useTheme.js";
6
+ import { Check } from "lucide-vue-next";
7
+ const _hoisted_1 = [
8
+ "data-state",
9
+ "data-disabled"
10
+ ];
7
11
  const _sfc_main = /* @__PURE__ */ defineComponent({
8
12
  __name: "MenuCheckboxItem",
9
13
  props: {
@@ -46,6 +50,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
46
50
  const forwarded = useForwardPropsEmits(props, emit);
47
51
  const theme = useTheme(()=>__props.theme);
48
52
  const crafts = computed(()=>theme.value.crafts.tvMenu());
53
+ const checkboxCrafts = computed(()=>theme.value.crafts.tvCheckbox());
49
54
  return (_ctx, _cache)=>(openBlock(), createBlock(unref(Menu).CheckboxItem, mergeProps(unref(forwarded), {
50
55
  class: crafts.value.item({
51
56
  class: unref(clsx)(__props.ui?.root, __props.class),
@@ -53,22 +58,42 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
53
58
  })
54
59
  }), {
55
60
  default: withCtx(()=>[
56
- renderSlot(_ctx.$slots, "indicator", normalizeProps(guardReactiveProps({
57
- checked: unref(forwarded).checked
58
- })), ()=>[
59
- createVNode(unref(Checkbox), {
60
- class: normalizeClass(unref(clsx)(__props.ui?.checkbox)),
61
- checked: unref(forwarded).checked,
62
- theme: unref(theme)
63
- }, null, 8, [
64
- "class",
65
- "checked",
66
- "theme"
67
- ])
68
- ]),
69
- renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps({
70
- checked: unref(forwarded).checked
71
- })))
61
+ createVNode(unref(Menu).ItemContext, null, {
62
+ default: withCtx((context)=>[
63
+ renderSlot(_ctx.$slots, "indicator", normalizeProps(guardReactiveProps(context)), ()=>[
64
+ createElementVNode("span", {
65
+ class: normalizeClass(checkboxCrafts.value.control({
66
+ class: unref(clsx)(__props.ui?.checkbox),
67
+ ...unref(theme)
68
+ })),
69
+ "data-state": context.checked ? "checked" : "unchecked",
70
+ "data-disabled": context.disabled ? "" : void 0,
71
+ "aria-hidden": "true"
72
+ }, [
73
+ createVNode(unref(MenuItemIndicator), {
74
+ class: normalizeClass(checkboxCrafts.value.indicator({
75
+ ...unref(theme)
76
+ }))
77
+ }, {
78
+ default: withCtx(()=>[
79
+ createVNode(unref(Check), {
80
+ class: normalizeClass(checkboxCrafts.value.indicatorChecked({
81
+ ...unref(theme)
82
+ }))
83
+ }, null, 8, [
84
+ "class"
85
+ ])
86
+ ]),
87
+ _: 1
88
+ }, 8, [
89
+ "class"
90
+ ])
91
+ ], 10, _hoisted_1)
92
+ ]),
93
+ renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(context)))
94
+ ]),
95
+ _: 3
96
+ })
72
97
  ]),
73
98
  _: 3
74
99
  }, 16, [
@@ -1,11 +1,9 @@
1
+ import type { UseMenuItemContext } from '@ark-ui/vue/menu';
2
+ import type { UnwrapRef } from 'vue';
1
3
  import type { MenuCheckboxItemProps } from '.';
2
4
  type __VLS_Slots = {
3
- default: (props: {
4
- checked: boolean;
5
- }) => any;
6
- indicator: (props: {
7
- checked: boolean;
8
- }) => any;
5
+ default: (props: UnwrapRef<UseMenuItemContext>) => any;
6
+ indicator: (props: UnwrapRef<UseMenuItemContext>) => any;
9
7
  };
10
8
  declare const __VLS_base: import("vue").DefineComponent<MenuCheckboxItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
9
  "update:checked": (value: boolean) => any;
@@ -68,7 +68,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
68
68
  lazyMount: __props.lazyMount
69
69
  }));
70
70
  const popover = usePopover(useForwardProps(props), emit);
71
- const theme = useTheme(()=>__props.theme);
71
+ const theme = useTheme(()=>({
72
+ ...popoverConfig.value?.theme,
73
+ ...__props.theme
74
+ }));
72
75
  __expose({
73
76
  $api: popover
74
77
  });
@@ -118,9 +118,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
118
118
  "class"
119
119
  ])) : createCommentVNode("", true)
120
120
  ]),
121
- createVNode(unref(RadioGroup).ItemHiddenInput, {
122
- class: "hidden"
123
- })
121
+ createVNode(unref(RadioGroup).ItemHiddenInput)
124
122
  ]),
125
123
  _: 3
126
124
  })
@@ -103,7 +103,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
103
103
  unmountOnExit: __props.unmountOnExit
104
104
  }));
105
105
  const selectRoot = useSelect(useForwardProps(props), emits);
106
- const theme = useTheme(()=>__props.theme);
106
+ const theme = useTheme(()=>({
107
+ ...selectConfig.value?.theme,
108
+ ...__props.theme
109
+ }));
107
110
  const crafts = computed(()=>theme.value.crafts.tvSelect());
108
111
  __expose({
109
112
  $api: selectRoot
@@ -38,7 +38,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
38
38
  })
39
39
  }), {
40
40
  default: withCtx(()=>[
41
- renderSlot(_ctx.$slots, "default", {}, ()=>[
41
+ renderSlot(_ctx.$slots, "default", {
42
+ value: unref(forwarded).value
43
+ }, ()=>[
42
44
  createElementVNode("div", mergeProps({
43
45
  class: crafts.value.markerDot({
44
46
  ...unref(theme)
@@ -48,9 +50,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
48
50
  }, unref(pick)(unref(context).getMarkerProps(unref(forwarded)), [
49
51
  "data-state"
50
52
  ])), null, 16),
51
- createElementVNode("span", normalizeProps(guardReactiveProps(unref(pick)(unref(context).getMarkerProps(unref(forwarded)), [
52
- "data-state"
53
- ]))), toDisplayString(unref(forwarded).value), 17)
53
+ renderSlot(_ctx.$slots, "value", {
54
+ value: unref(forwarded).value
55
+ }, ()=>[
56
+ createElementVNode("span", normalizeProps(guardReactiveProps(unref(pick)(unref(context).getMarkerProps(unref(forwarded)), [
57
+ "data-state"
58
+ ]))), toDisplayString(unref(forwarded).value), 17)
59
+ ])
54
60
  ])
55
61
  ]),
56
62
  _: 3
@@ -1,7 +1,13 @@
1
1
  import type { SliderMarkerProps } from '.';
2
- declare var __VLS_8: {};
2
+ declare var __VLS_8: {
3
+ value: number;
4
+ }, __VLS_10: {
5
+ value: number;
6
+ };
3
7
  type __VLS_Slots = {} & {
4
8
  default?: (props: typeof __VLS_8) => any;
9
+ } & {
10
+ value?: (props: typeof __VLS_10) => any;
5
11
  };
6
12
  declare const __VLS_base: import("vue").DefineComponent<SliderMarkerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SliderMarkerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
13
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -38,9 +38,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
38
38
  "data-theme-size": unref(theme).size
39
39
  }), {
40
40
  default: withCtx(()=>[
41
- createVNode(unref(Slider).HiddenInput, {
42
- class: "hidden"
43
- })
41
+ createVNode(unref(Slider).HiddenInput)
44
42
  ]),
45
43
  _: 1
46
44
  }, 16, [
@@ -84,6 +84,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
84
84
  }
85
85
  }, configs.value, tooltipForwarded.value)));
86
86
  const theme = useTheme(()=>__props.theme);
87
+ const tooltipTheme = useTheme(()=>({
88
+ ...configs.value?.theme,
89
+ ...__props.theme
90
+ }));
87
91
  const crafts = computed(()=>theme.value.crafts.tvSlider());
88
92
  return (_ctx, _cache)=>(openBlock(), createBlock(unref(ThemeProvider), {
89
93
  value: unref(theme)
@@ -122,17 +126,26 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
122
126
  ]),
123
127
  _: 3
124
128
  }),
125
- createVNode(unref(TooltipContent), null, {
129
+ createVNode(unref(ThemeProvider), {
130
+ value: unref(tooltipTheme)
131
+ }, {
126
132
  default: withCtx(()=>[
127
- renderSlot(_ctx.$slots, "arrow", {}, ()=>[
128
- createVNode(unref(TooltipArrow))
129
- ]),
130
- renderSlot(_ctx.$slots, "content", {}, ()=>[
131
- createTextVNode(toDisplayString(__props.value), 1)
132
- ])
133
+ createVNode(unref(TooltipContent), null, {
134
+ default: withCtx(()=>[
135
+ renderSlot(_ctx.$slots, "arrow", {}, ()=>[
136
+ createVNode(unref(TooltipArrow))
137
+ ]),
138
+ renderSlot(_ctx.$slots, "content", {}, ()=>[
139
+ createTextVNode(toDisplayString(__props.value), 1)
140
+ ])
141
+ ]),
142
+ _: 3
143
+ })
133
144
  ]),
134
145
  _: 3
135
- })
146
+ }, 8, [
147
+ "value"
148
+ ])
136
149
  ]),
137
150
  _: 3
138
151
  }, 8, [
@@ -1,11 +1,11 @@
1
1
  import type { SliderTooltipMarkerProps } from '.';
2
- declare var __VLS_26: {}, __VLS_34: {}, __VLS_41: {};
2
+ declare var __VLS_26: {}, __VLS_40: {}, __VLS_47: {};
3
3
  type __VLS_Slots = {} & {
4
4
  default?: (props: typeof __VLS_26) => any;
5
5
  } & {
6
- arrow?: (props: typeof __VLS_34) => any;
6
+ arrow?: (props: typeof __VLS_40) => any;
7
7
  } & {
8
- content?: (props: typeof __VLS_41) => any;
8
+ content?: (props: typeof __VLS_47) => any;
9
9
  };
10
10
  declare const __VLS_base: import("vue").DefineComponent<SliderTooltipMarkerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SliderTooltipMarkerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
11
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -92,6 +92,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
92
92
  tooltip.value.reposition();
93
93
  });
94
94
  const theme = useTheme(()=>__props.theme);
95
+ const tooltipTheme = useTheme(()=>({
96
+ ...configs.value?.theme,
97
+ ...__props.theme
98
+ }));
95
99
  const crafts = computed(()=>theme.value.crafts.tvSlider());
96
100
  const { forwardRef } = useForwardExpose();
97
101
  return (_ctx, _cache)=>(openBlock(), createBlock(unref(ThemeProvider), {
@@ -117,9 +121,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
117
121
  name: __props.name
118
122
  }, {
119
123
  default: withCtx(()=>[
120
- createVNode(unref(Slider).HiddenInput, {
121
- class: "hidden"
122
- })
124
+ createVNode(unref(Slider).HiddenInput)
123
125
  ]),
124
126
  _: 1
125
127
  }, 8, [
@@ -131,34 +133,43 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
131
133
  ]),
132
134
  _: 1
133
135
  }),
134
- unref(tooltipForwarded).positioning?.strategy === "fixed" ? (openBlock(), createBlock(Teleport, {
135
- key: 0,
136
- to: "body"
137
- }, [
138
- createVNode(unref(TooltipContent), normalizeProps(guardReactiveProps(__props.widget?.tooltipContent)), {
139
- default: withCtx(()=>[
140
- renderSlot(_ctx.$slots, "arrow", {}, ()=>[
141
- createVNode(unref(TooltipArrow), normalizeProps(guardReactiveProps(__props.widget?.tooltipArrow)), null, 16)
142
- ]),
143
- renderSlot(_ctx.$slots, "default", {}, ()=>[
144
- createVNode(unref(Slider).ValueText)
145
- ])
146
- ]),
147
- _: 3
148
- }, 16)
149
- ])) : (openBlock(), createBlock(unref(TooltipContent), normalizeProps(mergeProps({
150
- key: 1
151
- }, __props.widget?.tooltipContent)), {
136
+ createVNode(unref(ThemeProvider), {
137
+ value: unref(tooltipTheme)
138
+ }, {
152
139
  default: withCtx(()=>[
153
- renderSlot(_ctx.$slots, "arrow", {}, ()=>[
154
- createVNode(unref(TooltipArrow), normalizeProps(guardReactiveProps(__props.widget?.tooltipArrow)), null, 16)
155
- ]),
156
- renderSlot(_ctx.$slots, "default", {}, ()=>[
157
- createVNode(unref(Slider).ValueText)
158
- ])
140
+ unref(tooltipForwarded).positioning?.strategy === "fixed" ? (openBlock(), createBlock(Teleport, {
141
+ key: 0,
142
+ to: "body"
143
+ }, [
144
+ createVNode(unref(TooltipContent), normalizeProps(guardReactiveProps(__props.widget?.tooltipContent)), {
145
+ default: withCtx(()=>[
146
+ renderSlot(_ctx.$slots, "arrow", {}, ()=>[
147
+ createVNode(unref(TooltipArrow), normalizeProps(guardReactiveProps(__props.widget?.tooltipArrow)), null, 16)
148
+ ]),
149
+ renderSlot(_ctx.$slots, "default", {}, ()=>[
150
+ createVNode(unref(Slider).ValueText)
151
+ ])
152
+ ]),
153
+ _: 3
154
+ }, 16)
155
+ ])) : (openBlock(), createBlock(unref(TooltipContent), normalizeProps(mergeProps({
156
+ key: 1
157
+ }, __props.widget?.tooltipContent)), {
158
+ default: withCtx(()=>[
159
+ renderSlot(_ctx.$slots, "arrow", {}, ()=>[
160
+ createVNode(unref(TooltipArrow), normalizeProps(guardReactiveProps(__props.widget?.tooltipArrow)), null, 16)
161
+ ]),
162
+ renderSlot(_ctx.$slots, "default", {}, ()=>[
163
+ createVNode(unref(Slider).ValueText)
164
+ ])
165
+ ]),
166
+ _: 3
167
+ }, 16))
159
168
  ]),
160
169
  _: 3
161
- }, 16))
170
+ }, 8, [
171
+ "value"
172
+ ])
162
173
  ]),
163
174
  _: 3
164
175
  }, 8, [
@@ -1,13 +1,13 @@
1
1
  import type { SliderTooltipThumbProps } from '.';
2
- declare var __VLS_43: {}, __VLS_50: {}, __VLS_63: {}, __VLS_70: {};
2
+ declare var __VLS_49: {}, __VLS_56: {}, __VLS_69: {}, __VLS_76: {};
3
3
  type __VLS_Slots = {} & {
4
- arrow?: (props: typeof __VLS_43) => any;
4
+ arrow?: (props: typeof __VLS_49) => any;
5
5
  } & {
6
- default?: (props: typeof __VLS_50) => any;
6
+ default?: (props: typeof __VLS_56) => any;
7
7
  } & {
8
- arrow?: (props: typeof __VLS_63) => any;
8
+ arrow?: (props: typeof __VLS_69) => any;
9
9
  } & {
10
- default?: (props: typeof __VLS_70) => any;
10
+ default?: (props: typeof __VLS_76) => any;
11
11
  };
12
12
  declare const __VLS_base: import("vue").DefineComponent<SliderTooltipThumbProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SliderTooltipThumbProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
13
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -95,9 +95,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
95
95
  }, 8, [
96
96
  "class"
97
97
  ]),
98
- createVNode(unref(Switch).HiddenInput, {
99
- class: "hidden"
100
- }),
98
+ createVNode(unref(Switch).HiddenInput),
101
99
  renderSlot(_ctx.$slots, "default")
102
100
  ]),
103
101
  _: 3
@@ -190,9 +190,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
190
190
  }, 8, [
191
191
  "value"
192
192
  ]),
193
- createVNode(unref(TagsInput).HiddenInput, {
194
- class: "hidden"
195
- })
193
+ createVNode(unref(TagsInput).HiddenInput)
196
194
  ]),
197
195
  _: 3
198
196
  }, 8, [
@@ -68,7 +68,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
68
68
  openDelay: tooltipConfig.value?.openDelay,
69
69
  closeDelay: tooltipConfig.value?.closeDelay
70
70
  }, forwarded.value)), emit);
71
- const theme = useTheme(()=>__props.theme);
71
+ const theme = useTheme(()=>({
72
+ ...tooltipConfig.value?.theme,
73
+ ...__props.theme
74
+ }));
72
75
  __expose({
73
76
  $api: tooltip
74
77
  });
@@ -9,6 +9,15 @@ import { injectTreeContext } from "./tree-context.js";
9
9
  function _isSlot(s) {
10
10
  return 'function' == typeof s || '[object Object]' === Object.prototype.toString.call(s) && !isVNode(s);
11
11
  }
12
+ function onCheckableTreeRowSpaceKeydown(e, opts) {
13
+ if (' ' !== e.key) return;
14
+ if (e.defaultPrevented) return;
15
+ if (e.shiftKey || e.ctrlKey || e.metaKey || e.altKey) return;
16
+ if (opts.disabled) return;
17
+ e.preventDefault();
18
+ e.stopPropagation();
19
+ opts.toggle();
20
+ }
12
21
  const tree_TreeCheckboxNode = defineComponent({
13
22
  name: 'TreeCheckboxNode',
14
23
  props: {
@@ -186,7 +195,11 @@ const tree_TreeCheckboxNode = defineComponent({
186
195
  }), {
187
196
  default: ()=>[
188
197
  createVNode(TreeView.BranchControl, {
189
- class: branchClx.value.control
198
+ class: branchClx.value.control,
199
+ onKeydown: (e)=>onCheckableTreeRowSpaceKeydown(e, {
200
+ disabled: !!nodeState.disabled,
201
+ toggle: ()=>treeViewContext.value.toggleChecked(uNode[uKeyMap.id], true)
202
+ })
190
203
  }, {
191
204
  default: ()=>[
192
205
  slots.branch ? slots.branch({
@@ -274,7 +287,11 @@ const tree_TreeCheckboxNode = defineComponent({
274
287
  class: itemClx.value.root,
275
288
  onClick: ()=>{
276
289
  treeViewContext.value.toggleChecked(uNode[uKeyMap.id], false);
277
- }
290
+ },
291
+ onKeydown: (e)=>onCheckableTreeRowSpaceKeydown(e, {
292
+ disabled: !!nodeState.disabled,
293
+ toggle: ()=>treeViewContext.value.toggleChecked(uNode[uKeyMap.id], false)
294
+ })
278
295
  }), {
279
296
  default: ()=>[
280
297
  slots.item ? slots.item({
@@ -24,13 +24,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
24
24
  openDelay: 0,
25
25
  closeDelay: 0,
26
26
  lazyMount: false,
27
- unmountOnExit: false
27
+ unmountOnExit: false,
28
+ theme: void 0
28
29
  })
29
30
  },
30
31
  dialog: {
31
32
  default: ()=>({
32
33
  lazyMount: true,
33
- unmountOnExit: true
34
+ unmountOnExit: true,
35
+ theme: void 0
34
36
  })
35
37
  },
36
38
  hoverCard: {
@@ -38,19 +40,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
38
40
  openDelay: 0,
39
41
  closeDelay: 300,
40
42
  lazyMount: true,
41
- unmountOnExit: true
43
+ unmountOnExit: true,
44
+ theme: void 0
42
45
  })
43
46
  },
44
47
  popover: {
45
48
  default: ()=>({
46
49
  lazyMount: true,
47
- unmountOnExit: true
50
+ unmountOnExit: true,
51
+ theme: void 0
48
52
  })
49
53
  },
50
54
  menu: {
51
55
  default: ()=>({
52
56
  lazyMount: true,
53
- unmountOnExit: true
57
+ unmountOnExit: true,
58
+ theme: void 0
54
59
  })
55
60
  },
56
61
  iconify: {
@@ -117,7 +122,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
117
122
  overlap: ""
118
123
  }, props.messager), {
119
124
  default: withCtx(({ message })=>[
120
- renderSlot(_ctx.$slots, "message", {}, ()=>[
125
+ renderSlot(_ctx.$slots, "message", {
126
+ message
127
+ }, ()=>[
121
128
  createVNode(unref(Message), {
122
129
  options: message
123
130
  }, null, 8, [
@@ -19,10 +19,12 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<RUICon
19
19
  dialog: {
20
20
  lazyMount?: boolean;
21
21
  unmountOnExit?: boolean;
22
+ theme?: import("..").ThemeCrafts<"tvDialog">["theme"];
22
23
  };
23
24
  menu: {
24
25
  lazyMount?: boolean;
25
26
  unmountOnExit?: boolean;
27
+ theme?: import("..").ThemeCrafts<"tvMenu">["theme"];
26
28
  };
27
29
  messager: MessagerProps;
28
30
  tooltip: {
@@ -30,10 +32,12 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<RUICon
30
32
  openDelay?: number;
31
33
  lazyMount?: boolean;
32
34
  unmountOnExit?: boolean;
35
+ theme?: import("..").ThemeCrafts<"tvTooltip">["theme"];
33
36
  };
34
37
  popover: {
35
38
  lazyMount?: boolean;
36
39
  unmountOnExit?: boolean;
40
+ theme?: import("..").ThemeCrafts<"tvPopover">["theme"];
37
41
  };
38
42
  iconify: {
39
43
  addIcons?: Array<[string, import("@iconify/vue").IconifyIcon | null]>;
@@ -45,6 +49,7 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<RUICon
45
49
  openDelay?: number;
46
50
  lazyMount?: boolean;
47
51
  unmountOnExit?: boolean;
52
+ theme?: import("..").ThemeCrafts<"tvHoverCard">["theme"];
48
53
  };
49
54
  toasterManager: ToasterManagerProps;
50
55
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
@@ -54,7 +59,9 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<RUICon
54
59
  } & {
55
60
  toaster?: (props: {}) => any;
56
61
  } & {
57
- message?: (props: {}) => any;
62
+ message?: (props: {
63
+ message: import("../../components/message").MessageOptions<any>;
64
+ }) => any;
58
65
  }>;
59
66
  type __VLS_WithSlots<T, S> = T & {
60
67
  new (): {
@@ -2,7 +2,7 @@ import type { IconifyIcon, IconifyJSON, PartialIconifyAPIConfig } from '@iconify
2
2
  import type { MessagerExpose } from '../../components/message';
3
3
  import type { ToasterManagerExpose } from '../../components/toast';
4
4
  import type { ComputedRef } from 'vue';
5
- import type { ThemeProps } from '../theme/theme-props';
5
+ import type { ThemeCrafts, ThemeProps } from '../theme/theme-props';
6
6
  export interface RUIConfigContext {
7
7
  'theme'?: ThemeProps;
8
8
  'tooltip'?: {
@@ -10,32 +10,39 @@ export interface RUIConfigContext {
10
10
  openDelay?: number;
11
11
  lazyMount?: boolean;
12
12
  unmountOnExit?: boolean;
13
+ theme?: ThemeCrafts<'tvTooltip'>['theme'];
13
14
  };
14
15
  'date-picker'?: {
15
16
  lazyMount?: boolean;
16
17
  unmountOnExit?: boolean;
18
+ theme?: ThemeCrafts<'tvDatePicker'>['theme'];
17
19
  };
18
20
  'hover-card'?: {
19
21
  closeDelay?: number;
20
22
  openDelay?: number;
21
23
  lazyMount?: boolean;
22
24
  unmountOnExit?: boolean;
25
+ theme?: ThemeCrafts<'tvHoverCard'>['theme'];
23
26
  };
24
27
  'dialog'?: {
25
28
  lazyMount?: boolean;
26
29
  unmountOnExit?: boolean;
30
+ theme?: ThemeCrafts<'tvDialog'>['theme'];
27
31
  };
28
32
  'popover'?: {
29
33
  lazyMount?: boolean;
30
34
  unmountOnExit?: boolean;
35
+ theme?: ThemeCrafts<'tvPopover'>['theme'];
31
36
  };
32
37
  'menu'?: {
33
38
  lazyMount?: boolean;
34
39
  unmountOnExit?: boolean;
40
+ theme?: ThemeCrafts<'tvMenu'>['theme'];
35
41
  };
36
42
  'select'?: {
37
43
  lazyMount?: boolean;
38
44
  unmountOnExit?: boolean;
45
+ theme?: ThemeCrafts<'tvSelect'>['theme'];
39
46
  };
40
47
  'iconify'?: {
41
48
  addIcons?: Array<[string, IconifyIcon | null]>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@raxium/vue",
3
3
  "type": "module",
4
- "version": "0.2.6",
4
+ "version": "0.2.8",
5
5
  "description": "Vue core components for Raxium, based on Ark UI",
6
6
  "author": {
7
7
  "name": "Hwacc",
@@ -68,7 +68,7 @@
68
68
  "lucide-vue-next": "^1.0.0",
69
69
  "vue-component-type-helpers": "^3.2.1",
70
70
  "@raxium/shared": "0.1.1",
71
- "@raxium/themes": "0.1.7"
71
+ "@raxium/themes": "0.1.9"
72
72
  },
73
73
  "devDependencies": {
74
74
  "@ark-ui/vue": "5.35.0",
@@ -89,7 +89,7 @@
89
89
  "vitest": "^4.1.1",
90
90
  "vue-tsc": "^3.2.4",
91
91
  "@raxium/shared": "0.1.1",
92
- "@raxium/themes": "0.1.7"
92
+ "@raxium/themes": "0.1.9"
93
93
  },
94
94
  "publishConfig": {
95
95
  "access": "public"