@returnless/focus-ui 0.0.27 → 0.0.28

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,41 @@
1
+ import { type BarChartCategory } from './types';
2
+ declare const _default: <T extends Record<string, any>>(__VLS_props: {
3
+ categories: BarChartCategory<T>[];
4
+ data: T[];
5
+ labelAccessorKey: keyof T;
6
+ stacked?: boolean | undefined;
7
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
8
+ attrs: any;
9
+ slots: {};
10
+ emit: {};
11
+ } | undefined, __VLS_expose?: ((exposed: import('vue').ShallowUnwrapRef<{}>) => void) | undefined, __VLS_setup?: Promise<{
12
+ props: {
13
+ categories: BarChartCategory<T>[];
14
+ data: T[];
15
+ labelAccessorKey: keyof T;
16
+ stacked?: boolean | undefined;
17
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
18
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
19
+ attrs: any;
20
+ slots: {};
21
+ emit: {};
22
+ }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
23
+ [key: string]: any;
24
+ }> & {
25
+ __ctx?: {
26
+ props: {
27
+ categories: BarChartCategory<T>[];
28
+ data: T[];
29
+ labelAccessorKey: keyof T;
30
+ stacked?: boolean | undefined;
31
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
32
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
33
+ attrs: any;
34
+ slots: {};
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,25 @@
1
+ declare const _default: <T>(__VLS_props: {} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
2
+ attrs: any;
3
+ slots: {};
4
+ emit: {};
5
+ } | undefined, __VLS_expose?: ((exposed: import('vue').ShallowUnwrapRef<{}>) => void) | undefined, __VLS_setup?: Promise<{
6
+ props: {} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
7
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
8
+ attrs: any;
9
+ slots: {};
10
+ emit: {};
11
+ }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
12
+ [key: string]: any;
13
+ }> & {
14
+ __ctx?: {
15
+ props: {} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
16
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
17
+ attrs: any;
18
+ slots: {};
19
+ emit: {};
20
+ } | undefined;
21
+ };
22
+ export default _default;
23
+ type __VLS_Prettify<T> = {
24
+ [K in keyof T]: T[K];
25
+ } & {};
@@ -0,0 +1,32 @@
1
+ import { Ref } from 'vue';
2
+ declare const _default: <T>(__VLS_props: {} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
3
+ attrs: any;
4
+ slots: {};
5
+ emit: {};
6
+ } | undefined, __VLS_expose?: ((exposed: import("vue").ShallowUnwrapRef<{
7
+ $tooltip: Ref<HTMLElement | undefined>;
8
+ }>) => void) | undefined, __VLS_setup?: Promise<{
9
+ props: {} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
10
+ expose(exposed: import("vue").ShallowUnwrapRef<{
11
+ $tooltip: Ref<HTMLElement | undefined>;
12
+ }>): void;
13
+ attrs: any;
14
+ slots: {};
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<{
22
+ $tooltip: Ref<HTMLElement | undefined>;
23
+ }>): void;
24
+ attrs: any;
25
+ slots: {};
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,2 @@
1
+ export type { BarChartCategory } from './types';
2
+ export { default as BarChart } from './BarChart.vue';
@@ -0,0 +1,6 @@
1
+ import { type TailwindColor } from '../../composables';
2
+ export type BarChartCategory<T> = {
3
+ accessorKey: keyof T;
4
+ label: string;
5
+ color: TailwindColor;
6
+ };
@@ -1,18 +1,17 @@
1
- import CardHelp from './CardHelp.vue';
2
- type CardHelp = {
1
+ type CardHelpProps = {
3
2
  label: string;
4
3
  href: string;
5
4
  };
6
5
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
7
- cardHelp?: CardHelp | null | undefined;
6
+ cardHelp?: CardHelpProps | null | undefined;
8
7
  }>, {
9
8
  cardHelp: null;
10
9
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
11
- cardHelp?: CardHelp | null | undefined;
10
+ cardHelp?: CardHelpProps | null | undefined;
12
11
  }>, {
13
12
  cardHelp: null;
14
13
  }>>>, {
15
- cardHelp: CardHelp | null;
14
+ cardHelp: CardHelpProps | null;
16
15
  }, {}>, {
17
16
  default?(_: {}): any;
18
17
  }>;
@@ -0,0 +1,16 @@
1
+ import { CategoryBarCategory } from './types';
2
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
3
+ categories: CategoryBarCategory[];
4
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
5
+ categories: CategoryBarCategory[];
6
+ }>>>, {}, {}>;
7
+ export default _default;
8
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
9
+ type __VLS_TypePropsToOption<T> = {
10
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
11
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
12
+ } : {
13
+ type: import('vue').PropType<T[K]>;
14
+ required: true;
15
+ };
16
+ };
@@ -0,0 +1,2 @@
1
+ export type { CategoryBarCategory } from './types';
2
+ export { default as CategoryBar } from './CategoryBar.vue';
@@ -0,0 +1,6 @@
1
+ import type { TailwindColor } from '../../composables';
2
+ export type CategoryBarCategory = {
3
+ color: TailwindColor;
4
+ value: number;
5
+ label: string;
6
+ };
@@ -0,0 +1,36 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
2
+ label?: string | null | undefined;
3
+ }>, {
4
+ label: null;
5
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
6
+ label?: string | null | undefined;
7
+ }>, {
8
+ label: null;
9
+ }>>>, {
10
+ label: string | null;
11
+ }, {}>, {
12
+ default?(_: {}): any;
13
+ }>;
14
+ export default _default;
15
+ type __VLS_WithDefaults<P, D> = {
16
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
17
+ default: D[K];
18
+ }> : P[K];
19
+ };
20
+ type __VLS_Prettify<T> = {
21
+ [K in keyof T]: T[K];
22
+ } & {};
23
+ type __VLS_WithTemplateSlots<T, S> = T & {
24
+ new (): {
25
+ $slots: S;
26
+ };
27
+ };
28
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
29
+ type __VLS_TypePropsToOption<T> = {
30
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
31
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
32
+ } : {
33
+ type: import('vue').PropType<T[K]>;
34
+ required: true;
35
+ };
36
+ };
@@ -1 +1,2 @@
1
1
  export { default as Checkbox } from './Checkbox.vue';
2
+ export { default as CheckboxGroup } from './CheckboxGroup.vue';
@@ -1,4 +1,6 @@
1
1
  declare let __VLS_typeProps: {
2
+ /** Whether the input is disabled. */
3
+ disabled?: boolean;
2
4
  /** The error to display below the input. */
3
5
  error?: string | null;
4
6
  /** The help text to display below the input. */
@@ -16,6 +18,7 @@ type __VLS_PublicProps = {
16
18
  modelValue?: string;
17
19
  } & typeof __VLS_typeProps;
18
20
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
21
+ disabled: boolean;
19
22
  error: null;
20
23
  helpText: null;
21
24
  id: null;
@@ -23,6 +26,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
23
26
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
24
27
  "update:modelValue": (modelValue: string) => void;
25
28
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
29
+ disabled: boolean;
26
30
  error: null;
27
31
  helpText: null;
28
32
  id: null;
@@ -32,6 +36,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
32
36
  }, {
33
37
  id: string | null;
34
38
  error: string | null;
39
+ disabled: boolean;
35
40
  labelHidden: boolean;
36
41
  helpText: string | null;
37
42
  }, {}>;
@@ -1,12 +1,16 @@
1
1
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
2
- sortable: boolean;
2
+ sortable?: boolean | undefined;
3
3
  }>, {
4
4
  sortable: boolean;
5
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
6
- sortable: boolean;
5
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
+ sort: (args_0: string[]) => void;
7
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
8
+ sortable?: boolean | undefined;
7
9
  }>, {
8
10
  sortable: boolean;
9
- }>>>, {
11
+ }>>> & {
12
+ onSort?: ((args_0: string[]) => any) | undefined;
13
+ }, {
10
14
  sortable: boolean;
11
15
  }, {}>, {
12
16
  default?(_: {}): any;
@@ -1,4 +1,8 @@
1
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>, {
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<{
2
+ id?: string | undefined;
3
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
4
+ id?: string | undefined;
5
+ }>>>, {}, {}>, {
2
6
  default?(_: {}): any;
3
7
  }>;
4
8
  export default _default;
@@ -7,3 +11,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
7
11
  $slots: S;
8
12
  };
9
13
  };
14
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
15
+ type __VLS_TypePropsToOption<T> = {
16
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
17
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
18
+ } : {
19
+ type: import('vue').PropType<T[K]>;
20
+ required: true;
21
+ };
22
+ };
@@ -1,29 +1,12 @@
1
- declare let __VLS_typeProps: {
2
- locale?: string;
3
- };
4
1
  type __VLS_PublicProps = {
5
2
  modelValue: string;
6
- } & typeof __VLS_typeProps;
7
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
8
- locale: string;
9
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
+ };
4
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<__VLS_PublicProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
5
  "update:modelValue": (modelValue: string) => void;
11
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
12
- locale: string;
13
- }>>> & {
6
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_PublicProps>>> & {
14
7
  "onUpdate:modelValue"?: ((modelValue: string) => any) | undefined;
15
- }, {
16
- locale: string;
17
- }, {}>;
8
+ }, {}, {}>;
18
9
  export default _default;
19
- type __VLS_WithDefaults<P, D> = {
20
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
21
- default: D[K];
22
- }> : P[K];
23
- };
24
- type __VLS_Prettify<T> = {
25
- [K in keyof T]: T[K];
26
- } & {};
27
10
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
28
11
  type __VLS_TypePropsToOption<T> = {
29
12
  [K in keyof T]-?: {} extends Pick<T, K> ? {
@@ -1,2 +1 @@
1
1
  export { default as DatePicker } from './DatePicker.vue';
2
- export { default as DatePickerCard } from './DatePickerCard.vue';
@@ -28,6 +28,8 @@ declare let __VLS_typeProps: {
28
28
  required?: boolean;
29
29
  /** The type of the input. */
30
30
  type?: 'text' | 'email' | 'number' | 'password' | 'search' | 'tel' | 'url' | 'date' | 'datetime-local' | 'month' | 'time' | 'week' | 'currency';
31
+ /** The maximum number of characters allowed in the input. */
32
+ maxLength?: number | null;
31
33
  };
32
34
  type __VLS_PublicProps = {
33
35
  modelValue?: string;
@@ -45,6 +47,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
45
47
  readonly: boolean;
46
48
  required: boolean;
47
49
  type: string;
50
+ maxLength: null;
48
51
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
49
52
  "update:modelValue": (modelValue: string) => void;
50
53
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
@@ -60,10 +63,11 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
60
63
  readonly: boolean;
61
64
  required: boolean;
62
65
  type: string;
66
+ maxLength: null;
63
67
  }>>> & {
64
68
  "onUpdate:modelValue"?: ((modelValue: string) => any) | undefined;
65
69
  }, {
66
- type: "number" | "search" | "time" | "text" | "date" | "datetime-local" | "email" | "month" | "password" | "tel" | "url" | "week" | "currency";
70
+ type: "number" | "search" | "time" | "text" | "month" | "date" | "datetime-local" | "email" | "password" | "tel" | "url" | "week" | "currency";
67
71
  readonly: boolean;
68
72
  id: string | null;
69
73
  error: string | null;
@@ -72,9 +76,10 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
72
76
  icon: string | FunctionalComponent<HTMLAttributes & VNodeProps, {}, any, {}>;
73
77
  labelHidden: boolean;
74
78
  helpText: string | null;
75
- placeholder: string | null;
76
79
  autoComplete: string | null;
77
80
  multiline: boolean;
81
+ placeholder: string | null;
82
+ maxLength: number | null;
78
83
  }, {}>;
79
84
  export default _default;
80
85
  type __VLS_WithDefaults<P, D> = {
@@ -5,15 +5,17 @@ export { AlertDialog, AlertDialogActionButton, AlertDialogCancelButton, AlertDia
5
5
  export { AspectRatio } from './AspectRatio';
6
6
  export { Avatar } from './Avatar';
7
7
  export { Badge, BadgeContent, BadgeIcon } from './Badge';
8
+ export { type BarChartCategory, BarChart } from './BarChart';
8
9
  export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, } from './Breadcrumbs';
9
10
  export { type ButtonVariant, Button, ButtonBadge, ButtonContent, ButtonIcon, } from './Button';
10
11
  export { ButtonGroup } from './ButtonGroup';
11
12
  export { Card, CardDescription, CardFooter, CardHeader, CardHelp, CardIcon, CardLayout, CardMedia, CardSection, CardTitle, } from './Card';
12
- export { Checkbox } from './Checkbox';
13
+ export { type CategoryBarCategory, CategoryBar } from './CategoryBar';
14
+ export { Checkbox, CheckboxGroup } from './Checkbox';
13
15
  export { Collapsible } from './Collapsible';
14
16
  export { ColorInput } from './ColorInput';
15
17
  export { DataList, DataListContent, DataListItem, DataListItemLine, } from './DataList';
16
- export { DatePicker, DatePickerCard, } from './DatePicker';
18
+ export { DatePicker, } from './DatePicker';
17
19
  export { DescriptionList, DescriptionListDescription, DescriptionListItem, DescriptionListTerm, } from './DescriptionList';
18
20
  export { Dialog, DialogCancelButton, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogIcon, DialogSection, DialogTitle, } from './Dialog';
19
21
  export { DropZone } from './DropZone';
@@ -1,4 +1,6 @@
1
1
  export { type TailwindColor, useTailwindColor } from './useTailwindColor';
2
+ export { useCalendar } from './useCalendar';
3
+ export { useDateFormatter } from './useDateFormatter';
2
4
  export { useTheme } from './useTheme';
3
5
  export { useToastNotifications } from './useToastNotifications';
4
6
  export { useUniqueId } from './useUniqueId';
@@ -0,0 +1,16 @@
1
+ import { Ref } from 'vue';
2
+ export type CalendarDate = {
3
+ day: number;
4
+ selected: boolean;
5
+ inCurrentMonth: boolean;
6
+ value: string;
7
+ isToday: boolean;
8
+ };
9
+ export declare function useCalendar(locale: Ref<string>, dateString: Ref<string>): {
10
+ displayDate: import("vue").ComputedRef<string>;
11
+ grid: import("vue").ComputedRef<CalendarDate[]>;
12
+ monthName: import("vue").ComputedRef<string>;
13
+ next: () => void;
14
+ previous: () => void;
15
+ weekDays: import("vue").ComputedRef<string[]>;
16
+ };
@@ -0,0 +1,11 @@
1
+ import { Ref } from 'vue';
2
+ import { DateValue } from '@internationalized/date';
3
+ export interface DateFormatterOptions extends Intl.DateTimeFormatOptions {
4
+ calendar?: string;
5
+ }
6
+ export type Formatter = {
7
+ format: (date: DateValue, options: Intl.DateTimeFormatOptions) => string;
8
+ dayOfWeek: (date: Date, length?: DateFormatterOptions['weekday']) => string;
9
+ fullMonthAndYear: (date: DateValue, options?: DateFormatterOptions) => string;
10
+ };
11
+ export declare function useDateFormatter(locale: Ref<string>): Formatter;