@returnless/focus-ui 0.0.14 → 0.0.16
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.
- package/dist/components/ActionList/ActionList.vue.d.ts +2 -2
- package/dist/components/Alert/types.d.ts +1 -1
- package/dist/components/Button/Button.vue.d.ts +3 -0
- package/dist/components/Button/types.d.ts +2 -0
- package/dist/components/Link/Link.vue.d.ts +4 -5
- package/dist/components/Popper/Popper.vue.d.ts +21 -3
- package/dist/components/Popper/PopperArrow.vue.d.ts +2 -0
- package/dist/components/Popper/index.d.ts +2 -1
- package/dist/components/Stepper/Stepper.vue.d.ts +6 -0
- package/dist/components/index.d.ts +0 -1
- package/dist/focus-ui.js +4061 -5727
- package/dist/focus-ui.umd.cjs +11 -23
- package/dist/style.css +1 -1
- package/package.json +5 -3
- package/dist/components/BarChart/BarChart.vue.d.ts +0 -27
- package/dist/components/BarChart/BarChartContainer.vue.d.ts +0 -9
- package/dist/components/BarChart/BarChartStacked.vue.d.ts +0 -27
- package/dist/components/BarChart/index.d.ts +0 -3
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Alignment } from '@floating-ui/vue';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
3
3
|
/** The alignment of the popover. */
|
|
4
|
-
alignment
|
|
4
|
+
alignment?: Alignment | undefined;
|
|
5
5
|
}>, {
|
|
6
6
|
alignment: string;
|
|
7
7
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
8
8
|
/** The alignment of the popover. */
|
|
9
|
-
alignment
|
|
9
|
+
alignment?: Alignment | undefined;
|
|
10
10
|
}>, {
|
|
11
11
|
alignment: string;
|
|
12
12
|
}>>>, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type AlertVariant = 'default' | 'destructive' | 'warning';
|
|
1
|
+
export type AlertVariant = 'default' | 'informative' | 'destructive' | 'warning';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ButtonProps } from './types';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ButtonProps>, {
|
|
3
|
+
align: string;
|
|
3
4
|
disabled: boolean;
|
|
4
5
|
disclosure: boolean;
|
|
5
6
|
external: boolean;
|
|
@@ -12,6 +13,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
12
13
|
variant: string;
|
|
13
14
|
native: boolean;
|
|
14
15
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ButtonProps>, {
|
|
16
|
+
align: string;
|
|
15
17
|
disabled: boolean;
|
|
16
18
|
disclosure: boolean;
|
|
17
19
|
external: boolean;
|
|
@@ -26,6 +28,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
26
28
|
}>>>, {
|
|
27
29
|
type: "button" | "reset" | "submit";
|
|
28
30
|
href: string | null;
|
|
31
|
+
align: "right" | "left" | "center";
|
|
29
32
|
disabled: boolean;
|
|
30
33
|
disclosure: boolean;
|
|
31
34
|
external: boolean;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export type ButtonVariant = 'primary' | 'secondary' | 'destructive' | 'ghost';
|
|
2
2
|
export interface ButtonProps {
|
|
3
|
+
/** The button's content alignment. */
|
|
4
|
+
align?: 'left' | 'center' | 'right';
|
|
3
5
|
/** Whether the button is disabled. */
|
|
4
6
|
disabled?: boolean;
|
|
5
7
|
/** Displays the button with a disclosure icon. Defaults to `down` when set to true. */
|
|
@@ -1,25 +1,24 @@
|
|
|
1
1
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
2
2
|
/** The aria-label attribute to be applied to the link */
|
|
3
3
|
accessibilityLabel?: string | null | undefined;
|
|
4
|
+
/** Whether the link should open in a new tab. */
|
|
5
|
+
external?: boolean | undefined;
|
|
4
6
|
/** The href attribute to be applied to the link */
|
|
5
7
|
href: string;
|
|
6
|
-
/** Whether the link should be rendered as a native anchor element */
|
|
7
|
-
native?: boolean | undefined;
|
|
8
8
|
}>, {
|
|
9
9
|
accessibilityLabel: null;
|
|
10
10
|
native: boolean;
|
|
11
11
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
12
12
|
/** The aria-label attribute to be applied to the link */
|
|
13
13
|
accessibilityLabel?: string | null | undefined;
|
|
14
|
+
/** Whether the link should open in a new tab. */
|
|
15
|
+
external?: boolean | undefined;
|
|
14
16
|
/** The href attribute to be applied to the link */
|
|
15
17
|
href: string;
|
|
16
|
-
/** Whether the link should be rendered as a native anchor element */
|
|
17
|
-
native?: boolean | undefined;
|
|
18
18
|
}>, {
|
|
19
19
|
accessibilityLabel: null;
|
|
20
20
|
native: boolean;
|
|
21
21
|
}>>>, {
|
|
22
|
-
native: boolean;
|
|
23
22
|
accessibilityLabel: string | null;
|
|
24
23
|
}, {}>, {
|
|
25
24
|
default?(_: {}): any;
|
|
@@ -1,18 +1,36 @@
|
|
|
1
1
|
import { Placement } from '@floating-ui/vue';
|
|
2
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
3
3
|
/** The trigger event of the popper */
|
|
4
4
|
trigger: "click" | "hover";
|
|
5
5
|
/** The placement of the popper */
|
|
6
6
|
placement: Placement;
|
|
7
|
-
|
|
7
|
+
/** The delay in milliseconds before hiding the popper */
|
|
8
|
+
timeout?: number | undefined;
|
|
9
|
+
}>, {
|
|
10
|
+
timeout: number;
|
|
11
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
8
12
|
/** The trigger event of the popper */
|
|
9
13
|
trigger: "click" | "hover";
|
|
10
14
|
/** The placement of the popper */
|
|
11
15
|
placement: Placement;
|
|
12
|
-
|
|
16
|
+
/** The delay in milliseconds before hiding the popper */
|
|
17
|
+
timeout?: number | undefined;
|
|
18
|
+
}>, {
|
|
19
|
+
timeout: number;
|
|
20
|
+
}>>>, {
|
|
21
|
+
timeout: number;
|
|
22
|
+
}, {}>, {
|
|
13
23
|
default?(_: {}): any;
|
|
14
24
|
}>;
|
|
15
25
|
export default _default;
|
|
26
|
+
type __VLS_WithDefaults<P, D> = {
|
|
27
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
28
|
+
default: D[K];
|
|
29
|
+
}> : P[K];
|
|
30
|
+
};
|
|
31
|
+
type __VLS_Prettify<T> = {
|
|
32
|
+
[K in keyof T]: T[K];
|
|
33
|
+
} & {};
|
|
16
34
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
17
35
|
new (): {
|
|
18
36
|
$slots: S;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export { default as PopperBody } from './PopperBody.vue';
|
|
2
1
|
export { default as Popper } from './Popper.vue';
|
|
2
|
+
export { default as PopperArrow } from './PopperArrow.vue';
|
|
3
|
+
export { default as PopperBody } from './PopperBody.vue';
|
|
3
4
|
export { default as PopperTrigger } from './PopperTrigger.vue';
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
import { TailwindColor } from '../../composables';
|
|
1
2
|
declare let __VLS_typeProps: {
|
|
3
|
+
/** The color of the stepper. */
|
|
4
|
+
color?: TailwindColor | null;
|
|
2
5
|
/** The label for the stepper. */
|
|
3
6
|
label: string;
|
|
4
7
|
/** The maximum value of the stepper. */
|
|
@@ -10,16 +13,19 @@ type __VLS_PublicProps = {
|
|
|
10
13
|
modelValue?: number;
|
|
11
14
|
} & typeof __VLS_typeProps;
|
|
12
15
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
|
|
16
|
+
color: null;
|
|
13
17
|
min: undefined;
|
|
14
18
|
max: undefined;
|
|
15
19
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
20
|
"update:modelValue": (modelValue: number) => void;
|
|
17
21
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
|
|
22
|
+
color: null;
|
|
18
23
|
min: undefined;
|
|
19
24
|
max: undefined;
|
|
20
25
|
}>>> & {
|
|
21
26
|
"onUpdate:modelValue"?: ((modelValue: number) => any) | undefined;
|
|
22
27
|
}, {
|
|
28
|
+
color: "slate" | "gray" | "zinc" | "neutral" | "stone" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" | "lightBlue" | "warmGray" | "trueGray" | "coolGray" | "blueGray" | null;
|
|
23
29
|
max: number;
|
|
24
30
|
min: number;
|
|
25
31
|
}, {}>;
|
|
@@ -5,7 +5,6 @@ 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 { BarChart, BarChartContainer, BarChartStacked } from './BarChart';
|
|
9
8
|
export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, } from './Breadcrumbs';
|
|
10
9
|
export { type ButtonVariant, Button, ButtonBadge, ButtonContent, ButtonIcon, } from './Button';
|
|
11
10
|
export { ButtonGroup } from './ButtonGroup';
|