@returnless/focus-ui 0.0.28 → 0.0.30

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.
@@ -1,4 +1,4 @@
1
- export type ButtonVariant = 'primary' | 'secondary' | 'destructive' | 'ghost';
1
+ export type ButtonVariant = 'primary' | 'secondary' | 'destructive' | 'ghost' | 'outline';
2
2
  export interface ButtonProps {
3
3
  /** The button's content alignment. */
4
4
  align?: 'left' | 'center' | 'right';
@@ -0,0 +1,32 @@
1
+ import { RowDef } from './types';
2
+ declare const _default: <T>(__VLS_props: {} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
3
+ attrs: any;
4
+ slots: Partial<Record<NonNullable<keyof T>, (_: {
5
+ row: RowDef<T>;
6
+ }) => any>>;
7
+ emit: {};
8
+ } | undefined, __VLS_expose?: ((exposed: import('vue').ShallowUnwrapRef<{}>) => void) | undefined, __VLS_setup?: Promise<{
9
+ props: {} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
10
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
11
+ attrs: any;
12
+ slots: Partial<Record<NonNullable<keyof T>, (_: {
13
+ row: RowDef<T>;
14
+ }) => any>>;
15
+ emit: {};
16
+ }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
17
+ [key: string]: any;
18
+ }> & {
19
+ __ctx?: {
20
+ props: {} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
21
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
22
+ attrs: any;
23
+ slots: Partial<Record<NonNullable<keyof T>, (_: {
24
+ row: RowDef<T>;
25
+ }) => any>>;
26
+ emit: {};
27
+ } | undefined;
28
+ };
29
+ export default _default;
30
+ type __VLS_Prettify<T> = {
31
+ [K in keyof T]: T[K];
32
+ } & {};
@@ -0,0 +1,41 @@
1
+ import { ColumnDef } from '@/components/DataTable/types';
2
+ declare const _default: <T>(__VLS_props: {
3
+ as?: "td" | "th" | undefined;
4
+ column: ColumnDef<T>;
5
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
6
+ attrs: any;
7
+ slots: {
8
+ default?(_: {}): any;
9
+ };
10
+ emit: {};
11
+ } | undefined, __VLS_expose?: ((exposed: import('vue').ShallowUnwrapRef<{}>) => void) | undefined, __VLS_setup?: Promise<{
12
+ props: {
13
+ as?: "td" | "th" | undefined;
14
+ column: ColumnDef<T>;
15
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
16
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
17
+ attrs: any;
18
+ slots: {
19
+ default?(_: {}): any;
20
+ };
21
+ emit: {};
22
+ }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
23
+ [key: string]: any;
24
+ }> & {
25
+ __ctx?: {
26
+ props: {
27
+ as?: "td" | "th" | undefined;
28
+ column: ColumnDef<T>;
29
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
30
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
31
+ attrs: any;
32
+ slots: {
33
+ default?(_: {}): any;
34
+ };
35
+ emit: {};
36
+ } | undefined;
37
+ };
38
+ export default _default;
39
+ type __VLS_Prettify<T> = {
40
+ [K in keyof T]: T[K];
41
+ } & {};
@@ -0,0 +1,41 @@
1
+ import type { ColumnDef } from './types';
2
+ declare const _default: <T>(__VLS_props: {
3
+ columns: ColumnDef<T>[];
4
+ rows: T[];
5
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
6
+ attrs: any;
7
+ slots: {
8
+ default?(_: {}): any;
9
+ };
10
+ emit: {};
11
+ } | undefined, __VLS_expose?: ((exposed: import('vue').ShallowUnwrapRef<{}>) => void) | undefined, __VLS_setup?: Promise<{
12
+ props: {
13
+ columns: ColumnDef<T>[];
14
+ rows: T[];
15
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
16
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
17
+ attrs: any;
18
+ slots: {
19
+ default?(_: {}): any;
20
+ };
21
+ emit: {};
22
+ }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
23
+ [key: string]: any;
24
+ }> & {
25
+ __ctx?: {
26
+ props: {
27
+ columns: ColumnDef<T>[];
28
+ rows: T[];
29
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
30
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
31
+ attrs: any;
32
+ slots: {
33
+ default?(_: {}): any;
34
+ };
35
+ emit: {};
36
+ } | undefined;
37
+ };
38
+ export default _default;
39
+ type __VLS_Prettify<T> = {
40
+ [K in keyof T]: T[K];
41
+ } & {};
@@ -0,0 +1,9 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>, {
2
+ default?(_: {}): any;
3
+ }>;
4
+ export default _default;
5
+ type __VLS_WithTemplateSlots<T, S> = T & {
6
+ new (): {
7
+ $slots: S;
8
+ };
9
+ };
@@ -0,0 +1,5 @@
1
+ export type { ColumnDef, RowDef } from './types';
2
+ export { default as DataTable } from './DataTable.vue';
3
+ export { default as DataTableCell } from './DataTableCell.vue';
4
+ export { default as DataTableRoot } from './DataTableRoot.vue';
5
+ export { default as DataTableRow } from './DataTableRow.vue';
@@ -0,0 +1,8 @@
1
+ export type ColumnDef<T> = {
2
+ accessorKey: keyof T;
3
+ columnType?: 'text' | 'numeric';
4
+ header: string;
5
+ };
6
+ export type RowDef<T> = T & {
7
+ id: string;
8
+ };
@@ -15,6 +15,7 @@ export { Checkbox, CheckboxGroup } from './Checkbox';
15
15
  export { Collapsible } from './Collapsible';
16
16
  export { ColorInput } from './ColorInput';
17
17
  export { DataList, DataListContent, DataListItem, DataListItemLine, } from './DataList';
18
+ export { DataTable, DataTableCell, DataTableRoot, DataTableRow, } from './DataTable';
18
19
  export { DatePicker, } from './DatePicker';
19
20
  export { DescriptionList, DescriptionListDescription, DescriptionListItem, DescriptionListTerm, } from './DescriptionList';
20
21
  export { Dialog, DialogCancelButton, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogIcon, DialogSection, DialogTitle, } from './Dialog';