@shwfed/nuxt 0.1.29 → 0.1.31

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/module.json +1 -1
  2. package/dist/runtime/components/app.d.vue.ts +2 -0
  3. package/dist/runtime/components/app.vue +4 -0
  4. package/dist/runtime/components/app.vue.d.ts +2 -0
  5. package/dist/runtime/components/query.d.vue.ts +68 -8
  6. package/dist/runtime/components/query.vue +103 -42
  7. package/dist/runtime/components/query.vue.d.ts +68 -8
  8. package/dist/runtime/components/table.d.vue.ts +2 -2
  9. package/dist/runtime/components/table.vue +105 -15
  10. package/dist/runtime/components/table.vue.d.ts +2 -2
  11. package/dist/runtime/components/ui/field/index.js +3 -3
  12. package/dist/runtime/components/ui/input/Input.d.vue.ts +1 -0
  13. package/dist/runtime/components/ui/input/Input.vue +4 -3
  14. package/dist/runtime/components/ui/input/Input.vue.d.ts +1 -0
  15. package/dist/runtime/components/ui/input-group/InputGroup.d.vue.ts +1 -1
  16. package/dist/runtime/components/ui/input-group/InputGroup.vue +4 -0
  17. package/dist/runtime/components/ui/input-group/InputGroup.vue.d.ts +1 -1
  18. package/dist/runtime/components/ui/input-group/InputGroupCombobox.d.vue.ts +14 -0
  19. package/dist/runtime/components/ui/input-group/InputGroupCombobox.vue +84 -0
  20. package/dist/runtime/components/ui/input-group/InputGroupCombobox.vue.d.ts +14 -0
  21. package/dist/runtime/components/ui/input-group/InputGroupInput.d.vue.ts +1 -0
  22. package/dist/runtime/components/ui/input-group/InputGroupInput.vue +3 -1
  23. package/dist/runtime/components/ui/input-group/InputGroupInput.vue.d.ts +1 -0
  24. package/dist/runtime/components/ui/input-group/InputGroupNumberField.d.vue.ts +12 -0
  25. package/dist/runtime/components/ui/input-group/InputGroupNumberField.vue +45 -0
  26. package/dist/runtime/components/ui/input-group/InputGroupNumberField.vue.d.ts +12 -0
  27. package/dist/runtime/components/ui/input-group/index.d.ts +4 -1
  28. package/dist/runtime/components/ui/input-group/index.js +4 -1
  29. package/dist/runtime/components/ui/navigation-menu/NavigationMenu.d.vue.ts +27 -0
  30. package/dist/runtime/components/ui/navigation-menu/NavigationMenu.vue +41 -0
  31. package/dist/runtime/components/ui/navigation-menu/NavigationMenu.vue.d.ts +27 -0
  32. package/dist/runtime/components/ui/navigation-menu/NavigationMenuContent.d.vue.ts +28 -0
  33. package/dist/runtime/components/ui/navigation-menu/NavigationMenuContent.vue +32 -0
  34. package/dist/runtime/components/ui/navigation-menu/NavigationMenuContent.vue.d.ts +28 -0
  35. package/dist/runtime/components/ui/navigation-menu/NavigationMenuIndicator.d.vue.ts +8 -0
  36. package/dist/runtime/components/ui/navigation-menu/NavigationMenuIndicator.vue +23 -0
  37. package/dist/runtime/components/ui/navigation-menu/NavigationMenuIndicator.vue.d.ts +8 -0
  38. package/dist/runtime/components/ui/navigation-menu/NavigationMenuItem.d.vue.ts +18 -0
  39. package/dist/runtime/components/ui/navigation-menu/NavigationMenuItem.vue +22 -0
  40. package/dist/runtime/components/ui/navigation-menu/NavigationMenuItem.vue.d.ts +18 -0
  41. package/dist/runtime/components/ui/navigation-menu/NavigationMenuLink.d.vue.ts +26 -0
  42. package/dist/runtime/components/ui/navigation-menu/NavigationMenuLink.vue +27 -0
  43. package/dist/runtime/components/ui/navigation-menu/NavigationMenuLink.vue.d.ts +26 -0
  44. package/dist/runtime/components/ui/navigation-menu/NavigationMenuList.d.vue.ts +18 -0
  45. package/dist/runtime/components/ui/navigation-menu/NavigationMenuList.vue +27 -0
  46. package/dist/runtime/components/ui/navigation-menu/NavigationMenuList.vue.d.ts +18 -0
  47. package/dist/runtime/components/ui/navigation-menu/NavigationMenuTrigger.d.vue.ts +18 -0
  48. package/dist/runtime/components/ui/navigation-menu/NavigationMenuTrigger.vue +33 -0
  49. package/dist/runtime/components/ui/navigation-menu/NavigationMenuTrigger.vue.d.ts +18 -0
  50. package/dist/runtime/components/ui/navigation-menu/NavigationMenuViewport.d.vue.ts +8 -0
  51. package/dist/runtime/components/ui/navigation-menu/NavigationMenuViewport.vue +32 -0
  52. package/dist/runtime/components/ui/navigation-menu/NavigationMenuViewport.vue.d.ts +8 -0
  53. package/dist/runtime/components/ui/navigation-menu/index.d.ts +9 -0
  54. package/dist/runtime/components/ui/navigation-menu/index.js +12 -0
  55. package/dist/runtime/components/ui/number-field/NumberField.d.vue.ts +25 -0
  56. package/dist/runtime/components/ui/number-field/NumberField.vue +39 -0
  57. package/dist/runtime/components/ui/number-field/NumberField.vue.d.ts +25 -0
  58. package/dist/runtime/components/ui/number-field/NumberFieldContent.d.vue.ts +17 -0
  59. package/dist/runtime/components/ui/number-field/NumberFieldContent.vue +12 -0
  60. package/dist/runtime/components/ui/number-field/NumberFieldContent.vue.d.ts +17 -0
  61. package/dist/runtime/components/ui/number-field/NumberFieldDecrement.d.vue.ts +18 -0
  62. package/dist/runtime/components/ui/number-field/NumberFieldDecrement.vue +29 -0
  63. package/dist/runtime/components/ui/number-field/NumberFieldDecrement.vue.d.ts +18 -0
  64. package/dist/runtime/components/ui/number-field/NumberFieldIncrement.d.vue.ts +18 -0
  65. package/dist/runtime/components/ui/number-field/NumberFieldIncrement.vue +29 -0
  66. package/dist/runtime/components/ui/number-field/NumberFieldIncrement.vue.d.ts +18 -0
  67. package/dist/runtime/components/ui/number-field/NumberFieldInput.d.vue.ts +7 -0
  68. package/dist/runtime/components/ui/number-field/NumberFieldInput.vue +14 -0
  69. package/dist/runtime/components/ui/number-field/NumberFieldInput.vue.d.ts +7 -0
  70. package/dist/runtime/components/ui/number-field/index.d.ts +5 -0
  71. package/dist/runtime/components/ui/number-field/index.js +5 -0
  72. package/dist/runtime/components/ui/popover/PopoverContent.vue +1 -1
  73. package/dist/runtime/plugins/cel/index.js +2 -4
  74. package/package.json +2 -1
  75. package/dist/runtime/components/ui/input-group/InputCombobox.d.vue.ts +0 -13
  76. package/dist/runtime/components/ui/input-group/InputCombobox.vue +0 -56
  77. package/dist/runtime/components/ui/input-group/InputCombobox.vue.d.ts +0 -13
  78. /package/dist/runtime/components/ui/input-group/{InputComboboxInput.d.vue.ts → InputGroupComboboxInput.d.vue.ts} +0 -0
  79. /package/dist/runtime/components/ui/input-group/{InputComboboxInput.vue → InputGroupComboboxInput.vue} +0 -0
  80. /package/dist/runtime/components/ui/input-group/{InputComboboxInput.vue.d.ts → InputGroupComboboxInput.vue.d.ts} +0 -0
@@ -0,0 +1,26 @@
1
+ import type { NavigationMenuLinkProps } from 'reka-ui';
2
+ import type { HTMLAttributes } from 'vue';
3
+ type __VLS_Props = NavigationMenuLinkProps & {
4
+ class?: HTMLAttributes['class'];
5
+ };
6
+ declare var __VLS_8: {};
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_8) => any;
9
+ };
10
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
+ select: (payload: CustomEvent<{
12
+ originalEvent: Event;
13
+ }>) => any;
14
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
15
+ onSelect?: ((payload: CustomEvent<{
16
+ originalEvent: Event;
17
+ }>) => any) | undefined;
18
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
19
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
20
+ declare const _default: typeof __VLS_export;
21
+ export default _default;
22
+ type __VLS_WithSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
@@ -0,0 +1,27 @@
1
+ <script setup>
2
+ import { reactiveOmit } from "@vueuse/core";
3
+ import {
4
+ NavigationMenuLink,
5
+ useForwardPropsEmits
6
+ } from "reka-ui";
7
+ import { cn } from "../../../utils/cn";
8
+ const props = defineProps({
9
+ active: { type: Boolean, required: false },
10
+ asChild: { type: Boolean, required: false },
11
+ as: { type: null, required: false },
12
+ class: { type: null, required: false }
13
+ });
14
+ const emits = defineEmits(["select"]);
15
+ const delegatedProps = reactiveOmit(props, "class");
16
+ const forwarded = useForwardPropsEmits(delegatedProps, emits);
17
+ </script>
18
+
19
+ <template>
20
+ <NavigationMenuLink
21
+ data-slot="navigation-menu-link"
22
+ v-bind="forwarded"
23
+ :class="cn('data-active:focus:bg-slate-100 data-active:hover:bg-slate-100 data-active:bg-slate-100 data-active:text-slate-900 hover:bg-slate-100 hover:text-slate-900 focus:bg-slate-100 focus:text-slate-900 ring-ring/10 dark:ring-ring/20 dark:outline-ring/40 outline-ring/50 [&_svg:not([class*=\'text-\'])]:text-muted-foreground flex flex-col gap-1 rounded-sm p-2 text-sm transition-[color,box-shadow] focus-visible:ring-4 focus-visible:outline-1 [&_svg:not([class*=\'size-\'])]:size-4', props.class)"
24
+ >
25
+ <slot />
26
+ </NavigationMenuLink>
27
+ </template>
@@ -0,0 +1,26 @@
1
+ import type { NavigationMenuLinkProps } from 'reka-ui';
2
+ import type { HTMLAttributes } from 'vue';
3
+ type __VLS_Props = NavigationMenuLinkProps & {
4
+ class?: HTMLAttributes['class'];
5
+ };
6
+ declare var __VLS_8: {};
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_8) => any;
9
+ };
10
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
+ select: (payload: CustomEvent<{
12
+ originalEvent: Event;
13
+ }>) => any;
14
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
15
+ onSelect?: ((payload: CustomEvent<{
16
+ originalEvent: Event;
17
+ }>) => any) | undefined;
18
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
19
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
20
+ declare const _default: typeof __VLS_export;
21
+ export default _default;
22
+ type __VLS_WithSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
@@ -0,0 +1,18 @@
1
+ import type { NavigationMenuListProps } from 'reka-ui';
2
+ import type { HTMLAttributes } from 'vue';
3
+ type __VLS_Props = NavigationMenuListProps & {
4
+ class?: HTMLAttributes['class'];
5
+ };
6
+ declare var __VLS_8: {};
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_8) => any;
9
+ };
10
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
14
+ type __VLS_WithSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -0,0 +1,27 @@
1
+ <script setup>
2
+ import { reactiveOmit } from "@vueuse/core";
3
+ import { NavigationMenuList, useForwardProps } from "reka-ui";
4
+ import { cn } from "../../../utils/cn";
5
+ const props = defineProps({
6
+ asChild: { type: Boolean, required: false },
7
+ as: { type: null, required: false },
8
+ class: { type: null, required: false }
9
+ });
10
+ const delegatedProps = reactiveOmit(props, "class");
11
+ const forwardedProps = useForwardProps(delegatedProps);
12
+ </script>
13
+
14
+ <template>
15
+ <NavigationMenuList
16
+ data-slot="navigation-menu-list"
17
+ v-bind="forwardedProps"
18
+ :class="
19
+ cn(
20
+ 'group flex flex-1 list-none items-center justify-center gap-1',
21
+ props.class
22
+ )
23
+ "
24
+ >
25
+ <slot />
26
+ </NavigationMenuList>
27
+ </template>
@@ -0,0 +1,18 @@
1
+ import type { NavigationMenuListProps } from 'reka-ui';
2
+ import type { HTMLAttributes } from 'vue';
3
+ type __VLS_Props = NavigationMenuListProps & {
4
+ class?: HTMLAttributes['class'];
5
+ };
6
+ declare var __VLS_8: {};
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_8) => any;
9
+ };
10
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
14
+ type __VLS_WithSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -0,0 +1,18 @@
1
+ import type { NavigationMenuTriggerProps } from 'reka-ui';
2
+ import type { HTMLAttributes } from 'vue';
3
+ type __VLS_Props = NavigationMenuTriggerProps & {
4
+ class?: HTMLAttributes['class'];
5
+ };
6
+ declare var __VLS_8: {};
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_8) => any;
9
+ };
10
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
14
+ type __VLS_WithSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -0,0 +1,33 @@
1
+ <script setup>
2
+ import { Icon } from "@iconify/vue";
3
+ import { reactiveOmit } from "@vueuse/core";
4
+ import {
5
+ NavigationMenuTrigger,
6
+ useForwardProps
7
+ } from "reka-ui";
8
+ import { cn } from "../../../utils/cn";
9
+ import { navigationMenuTriggerStyle } from ".";
10
+ const props = defineProps({
11
+ disabled: { type: Boolean, required: false },
12
+ asChild: { type: Boolean, required: false },
13
+ as: { type: null, required: false },
14
+ class: { type: null, required: false }
15
+ });
16
+ const delegatedProps = reactiveOmit(props, "class");
17
+ const forwardedProps = useForwardProps(delegatedProps);
18
+ </script>
19
+
20
+ <template>
21
+ <NavigationMenuTrigger
22
+ data-slot="navigation-menu-trigger"
23
+ v-bind="forwardedProps"
24
+ :class="cn(navigationMenuTriggerStyle(), 'group', props.class)"
25
+ >
26
+ <slot />
27
+ <Icon
28
+ icon="fluent:chevron-down-20-regular"
29
+ class="relative top-0.5 ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180"
30
+ aria-hidden="true"
31
+ />
32
+ </NavigationMenuTrigger>
33
+ </template>
@@ -0,0 +1,18 @@
1
+ import type { NavigationMenuTriggerProps } from 'reka-ui';
2
+ import type { HTMLAttributes } from 'vue';
3
+ type __VLS_Props = NavigationMenuTriggerProps & {
4
+ class?: HTMLAttributes['class'];
5
+ };
6
+ declare var __VLS_8: {};
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_8) => any;
9
+ };
10
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
14
+ type __VLS_WithSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -0,0 +1,8 @@
1
+ import type { NavigationMenuViewportProps } from 'reka-ui';
2
+ import type { HTMLAttributes } from 'vue';
3
+ type __VLS_Props = NavigationMenuViewportProps & {
4
+ class?: HTMLAttributes['class'];
5
+ };
6
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
@@ -0,0 +1,32 @@
1
+ <script setup>
2
+ import { reactiveOmit } from "@vueuse/core";
3
+ import {
4
+ NavigationMenuViewport,
5
+ useForwardProps
6
+ } from "reka-ui";
7
+ import { cn } from "../../../utils/cn";
8
+ const props = defineProps({
9
+ forceMount: { type: Boolean, required: false },
10
+ align: { type: String, required: false },
11
+ asChild: { type: Boolean, required: false },
12
+ as: { type: null, required: false },
13
+ class: { type: null, required: false }
14
+ });
15
+ const delegatedProps = reactiveOmit(props, "class");
16
+ const forwardedProps = useForwardProps(delegatedProps);
17
+ </script>
18
+
19
+ <template>
20
+ <div class="absolute top-full left-0 isolate z-50 flex justify-center">
21
+ <NavigationMenuViewport
22
+ data-slot="navigation-menu-viewport"
23
+ v-bind="forwardedProps"
24
+ :class="
25
+ cn(
26
+ 'origin-top-center bg-white text-slate-700 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-(--reka-navigation-menu-viewport-height) w-full overflow-hidden rounded-md border shadow md:w-(--reka-navigation-menu-viewport-width) left-(--reka-navigation-menu-viewport-left)',
27
+ props.class
28
+ )
29
+ "
30
+ />
31
+ </div>
32
+ </template>
@@ -0,0 +1,8 @@
1
+ import type { NavigationMenuViewportProps } from 'reka-ui';
2
+ import type { HTMLAttributes } from 'vue';
3
+ type __VLS_Props = NavigationMenuViewportProps & {
4
+ class?: HTMLAttributes['class'];
5
+ };
6
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
@@ -0,0 +1,9 @@
1
+ export { default as NavigationMenu } from './NavigationMenu.vue.js';
2
+ export { default as NavigationMenuContent } from './NavigationMenuContent.vue.js';
3
+ export { default as NavigationMenuIndicator } from './NavigationMenuIndicator.vue.js';
4
+ export { default as NavigationMenuItem } from './NavigationMenuItem.vue.js';
5
+ export { default as NavigationMenuLink } from './NavigationMenuLink.vue.js';
6
+ export { default as NavigationMenuList } from './NavigationMenuList.vue.js';
7
+ export { default as NavigationMenuTrigger } from './NavigationMenuTrigger.vue.js';
8
+ export { default as NavigationMenuViewport } from './NavigationMenuViewport.vue.js';
9
+ export declare const navigationMenuTriggerStyle: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
@@ -0,0 +1,12 @@
1
+ import { cva } from "class-variance-authority";
2
+ export { default as NavigationMenu } from "./NavigationMenu.vue";
3
+ export { default as NavigationMenuContent } from "./NavigationMenuContent.vue";
4
+ export { default as NavigationMenuIndicator } from "./NavigationMenuIndicator.vue";
5
+ export { default as NavigationMenuItem } from "./NavigationMenuItem.vue";
6
+ export { default as NavigationMenuLink } from "./NavigationMenuLink.vue";
7
+ export { default as NavigationMenuList } from "./NavigationMenuList.vue";
8
+ export { default as NavigationMenuTrigger } from "./NavigationMenuTrigger.vue";
9
+ export { default as NavigationMenuViewport } from "./NavigationMenuViewport.vue";
10
+ export const navigationMenuTriggerStyle = cva(
11
+ "group inline-flex h-9 w-max items-center justify-center rounded-md bg-white text-slate-700 border border-slate-200 px-4 py-2 text-sm font-medium hover:bg-slate-100 hover:text-slate-900 focus:bg-slate-100 focus:text-slate-900 disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-slate-100 data-[state=open]:text-slate-900 data-[state=open]:focus:bg-slate-100 outline-none transition-[color,box-shadow] focus-visible:outline-1"
12
+ );
@@ -0,0 +1,25 @@
1
+ import type { NumberFieldRootProps } from 'reka-ui';
2
+ import type { HTMLAttributes } from 'vue';
3
+ type __VLS_Props = NumberFieldRootProps & {
4
+ class?: HTMLAttributes['class'];
5
+ };
6
+ declare var __VLS_8: {
7
+ modelValue: number | undefined;
8
+ textValue: string;
9
+ };
10
+ type __VLS_Slots = {} & {
11
+ default?: (props: typeof __VLS_8) => any;
12
+ };
13
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
+ "update:modelValue": (val: number) => any;
15
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
16
+ "onUpdate:modelValue"?: ((val: number) => any) | undefined;
17
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
19
+ declare const _default: typeof __VLS_export;
20
+ export default _default;
21
+ type __VLS_WithSlots<T, S> = T & {
22
+ new (): {
23
+ $slots: S;
24
+ };
25
+ };
@@ -0,0 +1,39 @@
1
+ <script setup>
2
+ import { reactiveOmit } from "@vueuse/core";
3
+ import { NumberFieldRoot, useForwardPropsEmits } from "reka-ui";
4
+ import { cn } from "../../../utils/cn";
5
+ const props = defineProps({
6
+ defaultValue: { type: Number, required: false },
7
+ modelValue: { type: [Number, null], required: false },
8
+ min: { type: Number, required: false },
9
+ max: { type: Number, required: false },
10
+ step: { type: Number, required: false },
11
+ stepSnapping: { type: Boolean, required: false },
12
+ focusOnChange: { type: Boolean, required: false },
13
+ formatOptions: { type: null, required: false },
14
+ locale: { type: String, required: false },
15
+ disabled: { type: Boolean, required: false },
16
+ readonly: { type: Boolean, required: false },
17
+ disableWheelChange: { type: Boolean, required: false },
18
+ invertWheelChange: { type: Boolean, required: false },
19
+ id: { type: String, required: false },
20
+ asChild: { type: Boolean, required: false },
21
+ as: { type: null, required: false },
22
+ name: { type: String, required: false },
23
+ required: { type: Boolean, required: false },
24
+ class: { type: null, required: false }
25
+ });
26
+ const emits = defineEmits(["update:modelValue"]);
27
+ const delegatedProps = reactiveOmit(props, "class");
28
+ const forwarded = useForwardPropsEmits(delegatedProps, emits);
29
+ </script>
30
+
31
+ <template>
32
+ <NumberFieldRoot
33
+ v-slot="slotProps"
34
+ v-bind="forwarded"
35
+ :class="cn('grid gap-1.5', props.class)"
36
+ >
37
+ <slot v-bind="slotProps" />
38
+ </NumberFieldRoot>
39
+ </template>
@@ -0,0 +1,25 @@
1
+ import type { NumberFieldRootProps } from 'reka-ui';
2
+ import type { HTMLAttributes } from 'vue';
3
+ type __VLS_Props = NumberFieldRootProps & {
4
+ class?: HTMLAttributes['class'];
5
+ };
6
+ declare var __VLS_8: {
7
+ modelValue: number | undefined;
8
+ textValue: string;
9
+ };
10
+ type __VLS_Slots = {} & {
11
+ default?: (props: typeof __VLS_8) => any;
12
+ };
13
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
+ "update:modelValue": (val: number) => any;
15
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
16
+ "onUpdate:modelValue"?: ((val: number) => any) | undefined;
17
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
19
+ declare const _default: typeof __VLS_export;
20
+ export default _default;
21
+ type __VLS_WithSlots<T, S> = T & {
22
+ new (): {
23
+ $slots: S;
24
+ };
25
+ };
@@ -0,0 +1,17 @@
1
+ import type { HTMLAttributes } from 'vue';
2
+ type __VLS_Props = {
3
+ class?: HTMLAttributes['class'];
4
+ };
5
+ declare var __VLS_1: {};
6
+ type __VLS_Slots = {} & {
7
+ default?: (props: typeof __VLS_1) => any;
8
+ };
9
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
+ declare const _default: typeof __VLS_export;
12
+ export default _default;
13
+ type __VLS_WithSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
@@ -0,0 +1,12 @@
1
+ <script setup>
2
+ import { cn } from "../../../utils/cn";
3
+ const props = defineProps({
4
+ class: { type: null, required: false }
5
+ });
6
+ </script>
7
+
8
+ <template>
9
+ <div :class="cn('relative *:data-[slot=input]:has-*:data-[slot=increment]:pr-5 *:data-[slot=input]:has-*:data-[slot=decrement]:pl-5', props.class)">
10
+ <slot />
11
+ </div>
12
+ </template>
@@ -0,0 +1,17 @@
1
+ import type { HTMLAttributes } from 'vue';
2
+ type __VLS_Props = {
3
+ class?: HTMLAttributes['class'];
4
+ };
5
+ declare var __VLS_1: {};
6
+ type __VLS_Slots = {} & {
7
+ default?: (props: typeof __VLS_1) => any;
8
+ };
9
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
+ declare const _default: typeof __VLS_export;
12
+ export default _default;
13
+ type __VLS_WithSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
@@ -0,0 +1,18 @@
1
+ import type { NumberFieldDecrementProps } from 'reka-ui';
2
+ import type { HTMLAttributes } from 'vue';
3
+ type __VLS_Props = NumberFieldDecrementProps & {
4
+ class?: HTMLAttributes['class'];
5
+ };
6
+ declare var __VLS_8: {};
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_8) => any;
9
+ };
10
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
14
+ type __VLS_WithSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -0,0 +1,29 @@
1
+ <script setup>
2
+ import { reactiveOmit } from "@vueuse/core";
3
+ import { Icon } from "@iconify/vue";
4
+ import { NumberFieldDecrement, useForwardProps } from "reka-ui";
5
+ import { cn } from "../../../utils/cn";
6
+ const props = defineProps({
7
+ disabled: { type: Boolean, required: false },
8
+ asChild: { type: Boolean, required: false },
9
+ as: { type: null, required: false },
10
+ class: { type: null, required: false }
11
+ });
12
+ const delegatedProps = reactiveOmit(props, "class");
13
+ const forwarded = useForwardProps(delegatedProps);
14
+ </script>
15
+
16
+ <template>
17
+ <NumberFieldDecrement
18
+ data-slot="decrement"
19
+ v-bind="forwarded"
20
+ :class="cn('absolute top-1/2 -translate-y-1/2 left-0 p-3 disabled:cursor-not-allowed disabled:opacity-20', props.class)"
21
+ >
22
+ <slot>
23
+ <Icon
24
+ icon="radix-icons:minus"
25
+ class="size-4"
26
+ />
27
+ </slot>
28
+ </NumberFieldDecrement>
29
+ </template>
@@ -0,0 +1,18 @@
1
+ import type { NumberFieldDecrementProps } from 'reka-ui';
2
+ import type { HTMLAttributes } from 'vue';
3
+ type __VLS_Props = NumberFieldDecrementProps & {
4
+ class?: HTMLAttributes['class'];
5
+ };
6
+ declare var __VLS_8: {};
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_8) => any;
9
+ };
10
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
14
+ type __VLS_WithSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -0,0 +1,18 @@
1
+ import type { NumberFieldIncrementProps } from 'reka-ui';
2
+ import type { HTMLAttributes } from 'vue';
3
+ type __VLS_Props = NumberFieldIncrementProps & {
4
+ class?: HTMLAttributes['class'];
5
+ };
6
+ declare var __VLS_8: {};
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_8) => any;
9
+ };
10
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
14
+ type __VLS_WithSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -0,0 +1,29 @@
1
+ <script setup>
2
+ import { reactiveOmit } from "@vueuse/core";
3
+ import { Icon } from "@iconify/vue";
4
+ import { NumberFieldIncrement, useForwardProps } from "reka-ui";
5
+ import { cn } from "../../../utils/cn";
6
+ const props = defineProps({
7
+ disabled: { type: Boolean, required: false },
8
+ asChild: { type: Boolean, required: false },
9
+ as: { type: null, required: false },
10
+ class: { type: null, required: false }
11
+ });
12
+ const delegatedProps = reactiveOmit(props, "class");
13
+ const forwarded = useForwardProps(delegatedProps);
14
+ </script>
15
+
16
+ <template>
17
+ <NumberFieldIncrement
18
+ data-slot="increment"
19
+ v-bind="forwarded"
20
+ :class="cn('absolute top-1/2 -translate-y-1/2 right-0 disabled:cursor-not-allowed disabled:opacity-20 p-3', props.class)"
21
+ >
22
+ <slot>
23
+ <Icon
24
+ icon="radix-icons:plus"
25
+ class="size-4"
26
+ />
27
+ </slot>
28
+ </NumberFieldIncrement>
29
+ </template>
@@ -0,0 +1,18 @@
1
+ import type { NumberFieldIncrementProps } from 'reka-ui';
2
+ import type { HTMLAttributes } from 'vue';
3
+ type __VLS_Props = NumberFieldIncrementProps & {
4
+ class?: HTMLAttributes['class'];
5
+ };
6
+ declare var __VLS_8: {};
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_8) => any;
9
+ };
10
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
14
+ type __VLS_WithSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -0,0 +1,7 @@
1
+ import type { HTMLAttributes } from 'vue';
2
+ type __VLS_Props = {
3
+ class?: HTMLAttributes['class'];
4
+ };
5
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
+ declare const _default: typeof __VLS_export;
7
+ export default _default;
@@ -0,0 +1,14 @@
1
+ <script setup>
2
+ import { NumberFieldInput } from "reka-ui";
3
+ import { cn } from "../../../utils/cn";
4
+ const props = defineProps({
5
+ class: { type: null, required: false }
6
+ });
7
+ </script>
8
+
9
+ <template>
10
+ <NumberFieldInput
11
+ data-slot="input"
12
+ :class="cn('flex h-9 w-full rounded border border-zinc-200 hover:border-zinc-300 focus-visible:border-[color-mix(in_srgb,var(--primary)_60%,white)] bg-transparent py-1 text-sm text-center shadow-sm transition-colors duration-180 placeholder:text-zinc-700 outline-none disabled:cursor-not-allowed disabled:opacity-50', props.class)"
13
+ />
14
+ </template>
@@ -0,0 +1,7 @@
1
+ import type { HTMLAttributes } from 'vue';
2
+ type __VLS_Props = {
3
+ class?: HTMLAttributes['class'];
4
+ };
5
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
+ declare const _default: typeof __VLS_export;
7
+ export default _default;
@@ -0,0 +1,5 @@
1
+ export { default as NumberField } from './NumberField.vue.js';
2
+ export { default as NumberFieldContent } from './NumberFieldContent.vue.js';
3
+ export { default as NumberFieldDecrement } from './NumberFieldDecrement.vue.js';
4
+ export { default as NumberFieldIncrement } from './NumberFieldIncrement.vue.js';
5
+ export { default as NumberFieldInput } from './NumberFieldInput.vue.js';
@@ -0,0 +1,5 @@
1
+ export { default as NumberField } from "./NumberField.vue";
2
+ export { default as NumberFieldContent } from "./NumberFieldContent.vue";
3
+ export { default as NumberFieldDecrement } from "./NumberFieldDecrement.vue";
4
+ export { default as NumberFieldIncrement } from "./NumberFieldIncrement.vue";
5
+ export { default as NumberFieldInput } from "./NumberFieldInput.vue";
@@ -46,7 +46,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits);
46
46
  v-bind="{ ...$attrs, ...forwarded }"
47
47
  :class="
48
48
  cn(
49
- 'bg-white text-zinc-700 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 rounded border border-zinc-200 p-4 shadow-md origin-(--reka-popover-content-transform-origin) outline-hidden',
49
+ 'bg-white text-zinc-700 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 rounded border border-zinc-200 shadow-md origin-(--reka-popover-content-transform-origin) outline-hidden',
50
50
  props.class
51
51
  )
52
52
  "