@tb-dev/vue 0.3.22 → 0.3.24

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.
@@ -0,0 +1,22 @@
1
+ import { HoverCardRootProps } from 'reka-ui';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ default?(_: {}): any;
6
+ };
7
+ refs: {};
8
+ rootEl: any;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: import('vue').DefineComponent<HoverCardRootProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
12
+ "update:open": (value: boolean) => any;
13
+ }, string, import('vue').PublicProps, Readonly<HoverCardRootProps> & Readonly<{
14
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
15
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
16
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
17
+ export default _default;
18
+ type __VLS_WithTemplateSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -0,0 +1,24 @@
1
+ import { HoverCardContentProps } from 'reka-ui';
2
+ import { HTMLAttributes } from 'vue';
3
+ type __VLS_Props = HoverCardContentProps & {
4
+ class?: HTMLAttributes['class'];
5
+ };
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ default?(_: {}): any;
10
+ };
11
+ refs: {};
12
+ rootEl: any;
13
+ };
14
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
16
+ sideOffset: number;
17
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
18
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
19
+ export default _default;
20
+ type __VLS_WithTemplateSlots<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
@@ -0,0 +1,18 @@
1
+ import { HoverCardTriggerProps } from 'reka-ui';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ default?(_: {}): any;
6
+ };
7
+ refs: {};
8
+ rootEl: any;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: import('vue').DefineComponent<HoverCardTriggerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<HoverCardTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
12
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
13
+ export default _default;
14
+ type __VLS_WithTemplateSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -0,0 +1,3 @@
1
+ export { default as HoverCard } from './HoverCard.vue';
2
+ export { default as HoverCardContent } from './HoverCardContent.vue';
3
+ export { default as HoverCardTrigger } from './HoverCardTrigger.vue';
@@ -0,0 +1,12 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ import { SplitterResizeHandleProps } from 'reka-ui';
3
+ type __VLS_Props = SplitterResizeHandleProps & {
4
+ class?: HTMLAttributes['class'];
5
+ withHandle?: boolean;
6
+ };
7
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
8
+ dragging: (isDragging: boolean) => any;
9
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
10
+ onDragging?: ((isDragging: boolean) => any) | undefined;
11
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
12
+ export default _default;
@@ -0,0 +1,26 @@
1
+ import { SplitterPanelProps } from 'reka-ui';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ default?(_: {}): any;
6
+ };
7
+ refs: {};
8
+ rootEl: any;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: import('vue').DefineComponent<SplitterPanelProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
12
+ collapse: () => any;
13
+ expand: () => any;
14
+ resize: (size: number, prevSize: number | undefined) => any;
15
+ }, string, import('vue').PublicProps, Readonly<SplitterPanelProps> & Readonly<{
16
+ onCollapse?: (() => any) | undefined;
17
+ onExpand?: (() => any) | undefined;
18
+ onResize?: ((size: number, prevSize: number | undefined) => any) | undefined;
19
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
20
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
21
+ export default _default;
22
+ type __VLS_WithTemplateSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
@@ -0,0 +1,26 @@
1
+ import { SplitterGroupProps } from 'reka-ui';
2
+ import { HTMLAttributes } from 'vue';
3
+ type __VLS_Props = SplitterGroupProps & {
4
+ class?: HTMLAttributes['class'];
5
+ };
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ default?(_: {}): any;
10
+ };
11
+ refs: {};
12
+ rootEl: any;
13
+ };
14
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
16
+ layout: (val: number[]) => any;
17
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
18
+ onLayout?: ((val: number[]) => any) | undefined;
19
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
20
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
21
+ export default _default;
22
+ type __VLS_WithTemplateSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
@@ -0,0 +1,3 @@
1
+ export { default as ResizableHandle } from './ResizableHandle.vue';
2
+ export { default as ResizablePanel } from './ResizablePanel.vue';
3
+ export { default as ResizablePanelGroup } from './ResizablePanelGroup.vue';
@@ -0,0 +1,13 @@
1
+ import { SliderRootProps } from 'reka-ui';
2
+ import { HTMLAttributes } from 'vue';
3
+ type __VLS_Props = SliderRootProps & {
4
+ class?: HTMLAttributes['class'];
5
+ };
6
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
+ "update:modelValue": (payload: number[] | undefined) => any;
8
+ valueCommit: (payload: number[]) => any;
9
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
10
+ "onUpdate:modelValue"?: ((payload: number[] | undefined) => any) | undefined;
11
+ onValueCommit?: ((payload: number[]) => any) | undefined;
12
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as Slider } from './Slider.vue';
@@ -1,7 +1,11 @@
1
- import { CheckboxProps } from './types';
2
- declare const _default: import('vue').DefineComponent<CheckboxProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
3
- "update:modelValue": (value: boolean) => any;
4
- }, string, import('vue').PublicProps, Readonly<CheckboxProps> & Readonly<{
5
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
1
+ import { CheckboxProps, CheckboxValue } from './types';
2
+ type __VLS_Props = CheckboxProps;
3
+ type __VLS_PublicProps = {
4
+ modelValue?: CheckboxValue;
5
+ } & __VLS_Props;
6
+ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
+ "update:modelValue": (value: boolean | "indeterminate" | null | undefined) => any;
8
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
9
+ "onUpdate:modelValue"?: ((value: boolean | "indeterminate" | null | undefined) => any) | undefined;
6
10
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
7
11
  export default _default;
@@ -1,10 +1,8 @@
1
- import { Option } from '@tb-dev/utils';
1
+ import { CheckboxRootProps } from 'reka-ui';
2
+ export type CheckboxValue = CheckboxRootProps['modelValue'];
2
3
  export interface CheckboxProps {
3
- class?: string;
4
- defaultValue?: boolean;
5
- disabled?: boolean;
4
+ defaultValue?: CheckboxRootProps['defaultValue'];
5
+ disabled?: CheckboxRootProps['disabled'];
6
6
  label?: string;
7
7
  labelClass?: string;
8
- modelValue?: Option<boolean>;
9
- required?: boolean;
10
8
  }
@@ -0,0 +1,22 @@
1
+ import { VNode } from 'vue';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: Readonly<{
5
+ default: () => VNode;
6
+ trigger: () => VNode;
7
+ }> & {
8
+ default: () => VNode;
9
+ trigger: () => VNode;
10
+ };
11
+ refs: {};
12
+ rootEl: any;
13
+ };
14
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
16
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
17
+ export default _default;
18
+ type __VLS_WithTemplateSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -0,0 +1,2 @@
1
+ import { default as HoverCard } from './HoverCard.vue';
2
+ export { HoverCard };
@@ -8,6 +8,7 @@ export * from './combobox';
8
8
  export * from './context-menu';
9
9
  export * from './dialog';
10
10
  export * from './dropdown-menu';
11
+ export * from './hover-card';
11
12
  export * from './input';
12
13
  export * from './input-number';
13
14
  export * from './input-text';
@@ -18,12 +19,14 @@ export * from './pagination';
18
19
  export * from './popover';
19
20
  export * from './progress';
20
21
  export * from './radio-group';
22
+ export * from './resizable';
21
23
  export * from './scroll-area';
22
24
  export * from './select';
23
25
  export * from './separator';
24
26
  export * from './sheet';
25
27
  export * from './sidebar';
26
28
  export * from './skeleton';
29
+ export * from './slider';
27
30
  export * from './sonner';
28
31
  export * from './switch';
29
32
  export * from './table';
@@ -2,7 +2,6 @@ import { InputHTMLAttributes } from 'vue';
2
2
  export interface InputTextProps {
3
3
  autocomplete?: InputHTMLAttributes['autocomplete'];
4
4
  autofocus?: InputHTMLAttributes['autofocus'];
5
- class?: string;
6
5
  disabled?: InputHTMLAttributes['disabled'];
7
6
  label?: string;
8
7
  labelClass?: string;
@@ -1,3 +1,3 @@
1
- import { default as Link } from './Link.vue';
2
1
  import { LinkProps } from './types';
2
+ import { default as Link } from './Link.vue';
3
3
  export { Link, type LinkProps };
@@ -0,0 +1 @@
1
+ export { ResizableHandle, ResizablePanel, ResizablePanelGroup } from '../__base/resizable';
@@ -3,7 +3,6 @@ import { SelectHTMLAttributes } from 'vue';
3
3
  export interface SelectProps {
4
4
  autocomplete?: SelectHTMLAttributes['autocomplete'];
5
5
  autofocus?: SelectHTMLAttributes['autofocus'];
6
- class?: string;
7
6
  contentClass?: string;
8
7
  disabled?: boolean;
9
8
  label?: string;
@@ -0,0 +1 @@
1
+ export { Slider } from '../__base/slider';
@@ -1,5 +1,4 @@
1
1
  export interface SwitchProps {
2
- class?: string;
3
2
  disabled?: boolean;
4
3
  label?: string;
5
4
  labelClass?: string;
package/dist/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /*! tailwindcss v4.1.3 | MIT License | https://tailwindcss.com */
1
+ /*! tailwindcss v4.1.4 | MIT License | https://tailwindcss.com */
2
2
  :root {
3
3
  --background: oklch(1 0 0);
4
4
  --foreground: oklch(.141 .005 285.823);