@quaffui/quaff 0.1.0-prealpha10 → 0.1.0-prealpha12
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/avatar/QAvatar.svelte.d.ts +2 -2
- package/dist/components/avatar/props.d.ts +2 -1
- package/dist/components/breadcrumbs/QBreadcrumbs.svelte.d.ts +1 -1
- package/dist/components/breadcrumbs/QBreadcrumbsEl.svelte.d.ts +1 -1
- package/dist/components/breadcrumbs/props.d.ts +3 -2
- package/dist/components/button/QBtn.svelte +2 -2
- package/dist/components/button/QBtn.svelte.d.ts +2 -1
- package/dist/components/button/props.d.ts +12 -1
- package/dist/components/card/QCard.svelte.d.ts +1 -1
- package/dist/components/card/QCardActions.svelte.d.ts +2 -2
- package/dist/components/card/QCardSection.svelte.d.ts +1 -1
- package/dist/components/card/props.d.ts +5 -4
- package/dist/components/checkbox/QCheckbox.svelte.d.ts +1 -1
- package/dist/components/checkbox/props.d.ts +2 -1
- package/dist/components/chip/QChip.svelte.d.ts +1 -1
- package/dist/components/chip/props.d.ts +2 -1
- package/dist/components/codeBlock/props.d.ts +2 -1
- package/dist/components/dialog/QDialog.svelte.d.ts +1 -1
- package/dist/components/dialog/props.d.ts +2 -1
- package/dist/components/drawer/QDrawer.svelte +8 -3
- package/dist/components/drawer/QDrawer.svelte.d.ts +2 -2
- package/dist/components/drawer/props.d.ts +2 -1
- package/dist/components/footer/QFooter.svelte.d.ts +2 -2
- package/dist/components/footer/props.d.ts +2 -1
- package/dist/components/header/QHeader.svelte.d.ts +2 -2
- package/dist/components/header/props.d.ts +2 -2
- package/dist/components/icon/QIcon.svelte +1 -1
- package/dist/components/icon/QIcon.svelte.d.ts +7 -6
- package/dist/components/icon/props.d.ts +6 -5
- package/dist/components/input/QInput.svelte.d.ts +7 -7
- package/dist/components/input/props.d.ts +8 -7
- package/dist/components/layout/QLayout.svelte +1 -1
- package/dist/components/layout/QLayout.svelte.d.ts +10 -9
- package/dist/components/layout/index.scss +8 -4
- package/dist/components/layout/props.d.ts +9 -8
- package/dist/components/list/QItem.svelte +22 -19
- package/dist/components/list/QItem.svelte.d.ts +9 -12
- package/dist/components/list/QItemSection.svelte +23 -19
- package/dist/components/list/QItemSection.svelte.d.ts +2 -2
- package/dist/components/list/QList.svelte +9 -10
- package/dist/components/list/QList.svelte.d.ts +7 -14
- package/dist/components/list/index.scss +27 -5
- package/dist/components/list/props.d.ts +19 -16
- package/dist/components/list/props.js +1 -1
- package/dist/components/progress/QCircularProgress.svelte +7 -1
- package/dist/components/progress/QCircularProgress.svelte.d.ts +5 -4
- package/dist/components/progress/QLinearProgress.svelte.d.ts +4 -4
- package/dist/components/progress/props.d.ts +8 -7
- package/dist/components/radio/QRadio.svelte.d.ts +3 -3
- package/dist/components/radio/props.d.ts +5 -4
- package/dist/components/railbar/QRailbar.svelte.d.ts +5 -5
- package/dist/components/railbar/props.d.ts +5 -4
- package/dist/components/select/QSelect.svelte +4 -2
- package/dist/components/select/QSelect.svelte.d.ts +4 -4
- package/dist/components/select/props.d.ts +10 -6
- package/dist/components/select/props.js +0 -1
- package/dist/components/separator/QSeparator.svelte +2 -2
- package/dist/components/separator/QSeparator.svelte.d.ts +8 -7
- package/dist/components/separator/props.d.ts +11 -10
- package/dist/components/table/QTable.svelte +1 -1
- package/dist/components/table/QTable.svelte.d.ts +3 -2
- package/dist/components/table/props.d.ts +3 -2
- package/dist/components/tabs/QTab.svelte.d.ts +1 -1
- package/dist/components/tabs/QTabs.svelte.d.ts +4 -4
- package/dist/components/tabs/index.scss +3 -2
- package/dist/components/tabs/props.d.ts +5 -4
- package/dist/components/toggle/QToggle.svelte +9 -1
- package/dist/components/toggle/QToggle.svelte.d.ts +1 -1
- package/dist/components/toolbar/QToolbar.svelte.d.ts +6 -6
- package/dist/components/toolbar/QToolbarTitle.svelte.d.ts +3 -3
- package/dist/components/toolbar/props.d.ts +8 -7
- package/dist/components/tooltip/QTooltip.svelte.d.ts +2 -2
- package/dist/components/tooltip/props.d.ts +3 -2
- package/dist/composables/use-router-link.d.ts +2 -2
- package/dist/composables/use-router-link.js +2 -2
- package/dist/css/index.css +1 -1
- package/dist/css/ripple.scss +1 -1
- package/dist/css/theme/palette.scss +18 -4
- package/dist/css/theme/theme.dark.scss +3 -1
- package/dist/css/theme/theme.light.scss +3 -1
- package/dist/helpers/ripple.d.ts +1 -0
- package/dist/helpers/ripple.js +1 -1
- package/dist/helpers/version.d.ts +1 -1
- package/dist/helpers/version.js +1 -1
- package/dist/stores/QTheme.d.ts +1 -2
- package/dist/stores/QTheme.js +22 -15
- package/dist/stores/Quaff.js +18 -13
- package/dist/utils/props.d.ts +1 -1
- package/dist/utils/types.d.ts +2 -2
- package/package.json +1 -1
|
@@ -7,8 +7,8 @@ declare const __propDef: {
|
|
|
7
7
|
size?: QAvatarProps["size"];
|
|
8
8
|
src?: QAvatarProps["src"];
|
|
9
9
|
video?: QAvatarProps["video"];
|
|
10
|
-
class?: string | undefined;
|
|
11
|
-
style?: string | undefined;
|
|
10
|
+
class?: string | null | undefined;
|
|
11
|
+
style?: string | null | undefined;
|
|
12
12
|
};
|
|
13
13
|
events: {
|
|
14
14
|
click: MouseEvent;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { QuaffSizes, CssValue, NativeProps } from "../../utils/types";
|
|
2
|
+
import type { HTMLAttributes } from "svelte/elements";
|
|
2
3
|
export type QAvatarShapeOptions = "circle" | "rounded" | "top-round" | "left-round" | "right-round" | "bottom-round" | "top-left-round" | "top-right-round" | "bottom-left-round" | "bottom-right-round";
|
|
3
4
|
export type QAvatarSizeOptions = QuaffSizes | CssValue | number;
|
|
4
|
-
export interface QAvatarProps extends NativeProps {
|
|
5
|
+
export interface QAvatarProps extends NativeProps, HTMLAttributes<HTMLElement> {
|
|
5
6
|
/**
|
|
6
7
|
* Shape of the avatar.
|
|
7
8
|
* @default circle
|
|
@@ -6,7 +6,7 @@ declare const __propDef: {
|
|
|
6
6
|
gutter?: QBreadcrumbsProps["gutter"];
|
|
7
7
|
activeColor?: QBreadcrumbsProps["activeColor"];
|
|
8
8
|
separatorColor?: QBreadcrumbsProps["separatorColor"];
|
|
9
|
-
class?: string | undefined;
|
|
9
|
+
class?: string | null | undefined;
|
|
10
10
|
};
|
|
11
11
|
events: {
|
|
12
12
|
[evt: string]: CustomEvent<any>;
|
|
@@ -8,7 +8,7 @@ declare const __propDef: {
|
|
|
8
8
|
to?: QBreadcrumbsElProps["to"];
|
|
9
9
|
href?: QBreadcrumbsElProps["href"];
|
|
10
10
|
activeClass?: QBreadcrumbsElProps["activeClass"];
|
|
11
|
-
class?: string | undefined;
|
|
11
|
+
class?: string | null | undefined;
|
|
12
12
|
};
|
|
13
13
|
events: {
|
|
14
14
|
[evt: string]: CustomEvent<any>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { NativeProps } from "../../utils/types";
|
|
2
|
+
import type { HTMLAttributes } from "svelte/elements";
|
|
2
3
|
export type QBreadcrumbsGutterOptions = "none" | "sm" | "md" | "lg";
|
|
3
|
-
export interface QBreadcrumbsProps extends NativeProps {
|
|
4
|
+
export interface QBreadcrumbsProps extends NativeProps, HTMLAttributes<HTMLDivElement> {
|
|
4
5
|
/**
|
|
5
6
|
* Separator to use between the breadcrumb elements. To use an icon, prefix with "icon:" followed by the name of the icon.
|
|
6
7
|
* @default /
|
|
@@ -22,7 +23,7 @@ export interface QBreadcrumbsProps extends NativeProps {
|
|
|
22
23
|
*/
|
|
23
24
|
separatorColor?: string;
|
|
24
25
|
}
|
|
25
|
-
export interface QBreadcrumbsElProps extends NativeProps {
|
|
26
|
+
export interface QBreadcrumbsElProps extends NativeProps, HTMLAttributes<HTMLElement> {
|
|
26
27
|
/**
|
|
27
28
|
* Text to use for the breadcrumb element. If default slot is defined, the label will be overwritten by it.
|
|
28
29
|
* @default ""
|
|
@@ -5,7 +5,7 @@ import QCircularProgress from "../progress/QCircularProgress.svelte";
|
|
|
5
5
|
import { useSize } from "../../composables/use-size";
|
|
6
6
|
import { isActivationKey } from "../../utils/events";
|
|
7
7
|
import { ripple } from "../../helpers/ripple";
|
|
8
|
-
export let icon = void 0, label = void 0, disable = false, loading = false, unelevated = false, outline = false, round = false, rectangle = false, flat = false, to = void 0, size = void 0, userClasses = void 0;
|
|
8
|
+
export let icon = void 0, label = void 0, disable = false, loading = false, unelevated = false, outline = false, round = false, rectangle = false, noRipple = false, flat = false, to = void 0, size = void 0, userClasses = void 0;
|
|
9
9
|
export { userClasses as class };
|
|
10
10
|
let qBtn;
|
|
11
11
|
let tag;
|
|
@@ -40,7 +40,7 @@ function onKeyDown(e) {
|
|
|
40
40
|
<svelte:element
|
|
41
41
|
this={tag}
|
|
42
42
|
bind:this={qBtn}
|
|
43
|
-
use:ripple
|
|
43
|
+
use:ripple={{ disable: noRipple || disable }}
|
|
44
44
|
role={tag === "a" ? "button" : undefined}
|
|
45
45
|
href={to}
|
|
46
46
|
class={classes}
|
|
@@ -11,10 +11,11 @@ declare const __propDef: {
|
|
|
11
11
|
outline?: QBtnProps["outline"];
|
|
12
12
|
round?: QBtnProps["round"];
|
|
13
13
|
rectangle?: QBtnProps["rectangle"];
|
|
14
|
+
noRipple?: QBtnProps["noRipple"];
|
|
14
15
|
flat?: QBtnProps["flat"];
|
|
15
16
|
to?: QBtnProps["to"];
|
|
16
17
|
size?: QBtnProps["size"];
|
|
17
|
-
class?: string | undefined;
|
|
18
|
+
class?: string | null | undefined;
|
|
18
19
|
};
|
|
19
20
|
events: {
|
|
20
21
|
click: MouseEvent;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { NativeProps, QuaffSizes } from "../../utils/types";
|
|
2
|
+
import type { HTMLAnchorAttributes, HTMLAttributes } from "svelte/elements";
|
|
2
3
|
export type QBtnSizeOptions = Exclude<QuaffSizes, "xs">;
|
|
3
|
-
export interface QBtnProps extends NativeProps {
|
|
4
|
+
export interface QBtnProps extends NativeProps, HTMLAttributes<HTMLElement> {
|
|
4
5
|
/**
|
|
5
6
|
* Puts the button in a disabled state, making it unclickable.
|
|
6
7
|
* @default false
|
|
@@ -36,6 +37,11 @@ export interface QBtnProps extends NativeProps {
|
|
|
36
37
|
* @default false
|
|
37
38
|
*/
|
|
38
39
|
rectangle?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Disable the ripple effect for the button.
|
|
42
|
+
* @default false
|
|
43
|
+
*/
|
|
44
|
+
noRipple?: boolean;
|
|
39
45
|
/**
|
|
40
46
|
* Use round design for the button, giving it a circular shape.
|
|
41
47
|
* @default false
|
|
@@ -56,4 +62,9 @@ export interface QBtnProps extends NativeProps {
|
|
|
56
62
|
* @default md
|
|
57
63
|
*/
|
|
58
64
|
size?: QBtnSizeOptions;
|
|
65
|
+
/**
|
|
66
|
+
* For "a" (anchor) tag only, apply the target attribute.
|
|
67
|
+
* @default undefined
|
|
68
|
+
*/
|
|
69
|
+
target?: HTMLAnchorAttributes["target"];
|
|
59
70
|
}
|
|
@@ -4,8 +4,8 @@ declare const __propDef: {
|
|
|
4
4
|
props: {
|
|
5
5
|
[x: string]: any;
|
|
6
6
|
align?: QCardActionsProps["align"];
|
|
7
|
-
vertical?:
|
|
8
|
-
class?: string | undefined;
|
|
7
|
+
vertical?: QCardActionsProps["vertical"];
|
|
8
|
+
class?: string | null | undefined;
|
|
9
9
|
};
|
|
10
10
|
events: {
|
|
11
11
|
[evt: string]: CustomEvent<any>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { UseAlignProps } from "../../composables/use-align";
|
|
2
2
|
import type { NativeProps } from "../../utils/types";
|
|
3
|
+
import type { HTMLAttributes } from "svelte/elements";
|
|
3
4
|
export type QCardFillColors = "primary" | "secondary" | "tertiary";
|
|
4
|
-
export interface QCardProps extends NativeProps {
|
|
5
|
+
export interface QCardProps extends NativeProps, HTMLAttributes<HTMLElement> {
|
|
5
6
|
/**
|
|
6
7
|
* Puts a border around the card.
|
|
7
8
|
* @default false
|
|
@@ -28,17 +29,17 @@ export interface QCardProps extends NativeProps {
|
|
|
28
29
|
*/
|
|
29
30
|
title?: string;
|
|
30
31
|
}
|
|
31
|
-
export interface QCardSectionProps extends NativeProps {
|
|
32
|
+
export interface QCardSectionProps extends NativeProps, HTMLAttributes<HTMLDivElement> {
|
|
32
33
|
/**
|
|
33
34
|
* Lays out the section content horizontally.
|
|
34
35
|
* @default false
|
|
35
36
|
*/
|
|
36
37
|
horizontal?: boolean;
|
|
37
38
|
}
|
|
38
|
-
export interface QCardActionsProps extends UseAlignProps, NativeProps {
|
|
39
|
+
export interface QCardActionsProps extends UseAlignProps, NativeProps, HTMLAttributes<HTMLElement> {
|
|
39
40
|
/**
|
|
40
41
|
* Lays out the action items vertically.
|
|
41
42
|
* @default false
|
|
42
43
|
*/
|
|
43
|
-
vertical
|
|
44
|
+
vertical?: boolean;
|
|
44
45
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { NativeProps } from "../../utils/types";
|
|
2
|
-
|
|
2
|
+
import type { HTMLAttributes } from "svelte/elements";
|
|
3
|
+
export interface QCheckboxProps extends NativeProps, HTMLAttributes<HTMLLabelElement> {
|
|
3
4
|
/**
|
|
4
5
|
* Controls the checked state of the checkbox.
|
|
5
6
|
*/
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { NativeProps, QuaffSizes } from "../../utils/types";
|
|
2
|
+
import type { HTMLAttributes } from "svelte/elements";
|
|
2
3
|
export type QChipSizeOptions = Exclude<QuaffSizes, "xs" | "xl">;
|
|
3
|
-
export interface QChipProps extends NativeProps {
|
|
4
|
+
export interface QChipProps extends NativeProps, HTMLAttributes<HTMLAnchorElement> {
|
|
4
5
|
/**
|
|
5
6
|
* The content inside the chip. Will overwrite the default slot.
|
|
6
7
|
* @default undefined
|
|
@@ -10,7 +10,7 @@ declare const __propDef: {
|
|
|
10
10
|
modal?: QDialogProps["modal"];
|
|
11
11
|
fullscreen?: QDialogProps["fullscreen"];
|
|
12
12
|
persistent?: QDialogProps["persistent"];
|
|
13
|
-
class?: string | undefined;
|
|
13
|
+
class?: string | null | undefined;
|
|
14
14
|
hide?: (() => void) | undefined;
|
|
15
15
|
show?: (() => void) | undefined;
|
|
16
16
|
toggle?: ((e: MouseEvent) => void) | undefined;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { NativeProps } from "../../utils/types";
|
|
2
|
+
import type { HTMLAttributes } from "svelte/elements";
|
|
2
3
|
import type { QBtnProps } from "../button/props";
|
|
3
4
|
export type QDialogPositionOptions = "default" | "top" | "right" | "bottom" | "left";
|
|
4
|
-
export interface QDialogProps extends NativeProps {
|
|
5
|
+
export interface QDialogProps extends NativeProps, HTMLAttributes<HTMLDialogElement> {
|
|
5
6
|
/**
|
|
6
7
|
* The value indicating whether the dialog is visible or hidden.
|
|
7
8
|
* @default true
|
|
@@ -4,7 +4,7 @@ import { getContext } from "svelte";
|
|
|
4
4
|
import { clickOutside } from "../../helpers";
|
|
5
5
|
import { useSize } from "../../composables/use-size";
|
|
6
6
|
import { derived } from "svelte/store";
|
|
7
|
-
export let value =
|
|
7
|
+
export let value = false, side = "left", width = 300, breakpoint = 1023, showIfAbove = false, behavior = "default", bordered = false, elevated = false, overlay = false, persistent = false, noSwipeOpen = false, noSwipeClose = false, noSwipeBackdrop = false, userClasses = void 0, userStyles = void 0;
|
|
8
8
|
export { userClasses as class, userStyles as style };
|
|
9
9
|
$:
|
|
10
10
|
canHideOnClickOutside = value === true && persistent === false || overlay === true;
|
|
@@ -22,7 +22,7 @@ export const show = (e) => {
|
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
24
|
export const hide = () => {
|
|
25
|
-
if (value === true
|
|
25
|
+
if (value === true) {
|
|
26
26
|
value = false;
|
|
27
27
|
}
|
|
28
28
|
};
|
|
@@ -94,6 +94,11 @@ $:
|
|
|
94
94
|
});
|
|
95
95
|
</script>
|
|
96
96
|
|
|
97
|
-
<div
|
|
97
|
+
<div
|
|
98
|
+
use:clickOutside={() => canHideOnClickOutside && hide()}
|
|
99
|
+
class={classes}
|
|
100
|
+
{style}
|
|
101
|
+
{...$$restProps}
|
|
102
|
+
>
|
|
98
103
|
<slot />
|
|
99
104
|
</div>
|
|
@@ -16,8 +16,8 @@ declare const __propDef: {
|
|
|
16
16
|
noSwipeOpen?: QDrawerProps["noSwipeOpen"];
|
|
17
17
|
noSwipeClose?: QDrawerProps["noSwipeClose"];
|
|
18
18
|
noSwipeBackdrop?: QDrawerProps["noSwipeBackdrop"];
|
|
19
|
-
class?: string | undefined;
|
|
20
|
-
style?: string | undefined;
|
|
19
|
+
class?: string | null | undefined;
|
|
20
|
+
style?: string | null | undefined;
|
|
21
21
|
show?: ((e?: MouseEvent) => void) | undefined;
|
|
22
22
|
hide?: (() => void) | undefined;
|
|
23
23
|
toggle?: ((e?: MouseEvent) => void) | undefined;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { CssValue, NativeProps } from "../../utils/types";
|
|
2
|
+
import type { HTMLAttributes } from "svelte/elements";
|
|
2
3
|
export type QDrawerSideOptions = "left" | "right";
|
|
3
4
|
export type QDrawerBehaviorOptions = "default" | "desktop" | "mobile";
|
|
4
|
-
export interface QDrawerProps extends NativeProps {
|
|
5
|
+
export interface QDrawerProps extends NativeProps, HTMLAttributes<HTMLDivElement> {
|
|
5
6
|
/**
|
|
6
7
|
* The value indicating whether the drawer is visible or hidden.
|
|
7
8
|
* @default true
|
|
@@ -6,8 +6,8 @@ declare const __propDef: {
|
|
|
6
6
|
border?: QFooterProps["border"];
|
|
7
7
|
elevate?: QFooterProps["elevate"];
|
|
8
8
|
height?: QFooterProps["height"];
|
|
9
|
-
class?: string | undefined;
|
|
10
|
-
style?: string | undefined;
|
|
9
|
+
class?: string | null | undefined;
|
|
10
|
+
style?: string | null | undefined;
|
|
11
11
|
};
|
|
12
12
|
events: {
|
|
13
13
|
[evt: string]: CustomEvent<any>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { CssValue, NativeProps } from "../../utils/types";
|
|
2
|
-
|
|
2
|
+
import type { HTMLAttributes } from "svelte/elements";
|
|
3
|
+
export interface QFooterProps extends NativeProps, HTMLAttributes<HTMLElement> {
|
|
3
4
|
/**
|
|
4
5
|
* The value indicating whether the footer is visible or hidden. (not supported yet)
|
|
5
6
|
* @default true
|
|
@@ -6,8 +6,8 @@ declare const __propDef: {
|
|
|
6
6
|
inset?: QHeaderProps["inset"];
|
|
7
7
|
elevate?: QHeaderProps["elevate"];
|
|
8
8
|
border?: QHeaderProps["border"];
|
|
9
|
-
class?: string | undefined;
|
|
10
|
-
style?: string | undefined;
|
|
9
|
+
class?: string | null | undefined;
|
|
10
|
+
style?: string | null | undefined;
|
|
11
11
|
};
|
|
12
12
|
events: {
|
|
13
13
|
[evt: string]: CustomEvent<any>;
|
|
@@ -2,16 +2,17 @@ import { SvelteComponent } from "svelte";
|
|
|
2
2
|
import type { QIconProps } from "./props";
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
|
-
|
|
5
|
+
[x: string]: any;
|
|
6
|
+
size?: QIconProps["size"];
|
|
6
7
|
name?: QIconProps["name"];
|
|
7
|
-
type?:
|
|
8
|
-
filled?:
|
|
8
|
+
type?: QIconProps["type"];
|
|
9
|
+
filled?: QIconProps["filled"];
|
|
9
10
|
svg?: QIconProps["svg"];
|
|
10
11
|
img?: QIconProps["img"];
|
|
11
|
-
imgAttributes?:
|
|
12
|
+
imgAttributes?: QIconProps["imgAttributes"];
|
|
12
13
|
color?: QIconProps["color"];
|
|
13
|
-
class?: string | undefined;
|
|
14
|
-
style?: string | undefined;
|
|
14
|
+
class?: string | null | undefined;
|
|
15
|
+
style?: string | null | undefined;
|
|
15
16
|
};
|
|
16
17
|
events: {
|
|
17
18
|
[evt: string]: CustomEvent<any>;
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import type { CssValue, NativeProps, QuaffSizes } from "../../utils/types";
|
|
2
|
+
import type { HTMLAttributes } from "svelte/elements";
|
|
2
3
|
export type QIconSizeOptions = QuaffSizes | CssValue | number;
|
|
3
4
|
export type QIconTypeOptions = "outlined" | "sharp" | "rounded";
|
|
4
|
-
export interface QIconProps extends NativeProps {
|
|
5
|
+
export interface QIconProps extends NativeProps, HTMLAttributes<HTMLElement> {
|
|
5
6
|
/**
|
|
6
7
|
* The size of the icon. Can be specified with CSS units. If no unit is specified, "px" will be used.
|
|
7
8
|
* @default md
|
|
8
9
|
*/
|
|
9
|
-
size
|
|
10
|
+
size?: QIconSizeOptions;
|
|
10
11
|
/**
|
|
11
12
|
* The type of the icon.
|
|
12
13
|
* @default outlined
|
|
13
14
|
*/
|
|
14
|
-
type
|
|
15
|
+
type?: QIconTypeOptions;
|
|
15
16
|
/**
|
|
16
17
|
* The name of the Material Symbols icon.
|
|
17
18
|
* @default undefined
|
|
@@ -21,7 +22,7 @@ export interface QIconProps extends NativeProps {
|
|
|
21
22
|
* Determines whether the icon should be filled.
|
|
22
23
|
* @default false
|
|
23
24
|
*/
|
|
24
|
-
filled
|
|
25
|
+
filled?: boolean;
|
|
25
26
|
/**
|
|
26
27
|
* The SVG content for the icon.
|
|
27
28
|
* @default undefined
|
|
@@ -36,7 +37,7 @@ export interface QIconProps extends NativeProps {
|
|
|
36
37
|
* Additional attributes for the image element when using the `img` prop, as for example the "alt" attribute.
|
|
37
38
|
* @default {}
|
|
38
39
|
*/
|
|
39
|
-
imgAttributes
|
|
40
|
+
imgAttributes?: Record<string, any>;
|
|
40
41
|
/**
|
|
41
42
|
* The color of the icon.
|
|
42
43
|
* @default undefined
|
|
@@ -3,18 +3,18 @@ import type { QInputProps } from "./props";
|
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
5
|
[x: string]: any;
|
|
6
|
-
bordered?:
|
|
6
|
+
bordered?: QInputProps["bordered"];
|
|
7
7
|
dense?: QInputProps["dense"];
|
|
8
|
-
disable?:
|
|
9
|
-
error?:
|
|
8
|
+
disable?: QInputProps["disable"];
|
|
9
|
+
error?: QInputProps["error"];
|
|
10
10
|
errorMessage?: QInputProps["errorMessage"];
|
|
11
|
-
filled?:
|
|
11
|
+
filled?: QInputProps["filled"];
|
|
12
12
|
hint?: QInputProps["hint"];
|
|
13
13
|
label?: QInputProps["label"];
|
|
14
|
-
outlined?:
|
|
15
|
-
rounded?:
|
|
14
|
+
outlined?: QInputProps["outlined"];
|
|
15
|
+
rounded?: QInputProps["rounded"];
|
|
16
16
|
value: QInputProps["value"];
|
|
17
|
-
class?: string | undefined;
|
|
17
|
+
class?: string | null | undefined;
|
|
18
18
|
};
|
|
19
19
|
events: {
|
|
20
20
|
[evt: string]: CustomEvent<any>;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import type { NativeProps } from "../../utils/types";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import type { HTMLAttributes } from "svelte/elements";
|
|
3
|
+
export interface QInputProps extends NativeProps, HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
bordered?: boolean;
|
|
4
5
|
dense?: boolean;
|
|
5
|
-
disable
|
|
6
|
-
error
|
|
6
|
+
disable?: boolean;
|
|
7
|
+
error?: boolean;
|
|
7
8
|
errorMessage?: string;
|
|
8
|
-
filled
|
|
9
|
+
filled?: boolean;
|
|
9
10
|
hint?: string;
|
|
10
11
|
label?: string;
|
|
11
|
-
outlined
|
|
12
|
-
rounded
|
|
12
|
+
outlined?: boolean;
|
|
13
|
+
rounded?: boolean;
|
|
13
14
|
value: string;
|
|
14
15
|
}
|
|
15
16
|
export declare const QInputPropsDefaults: {
|
|
@@ -23,15 +23,16 @@ import type { QLayoutProps } from "./props";
|
|
|
23
23
|
import type { Readable } from "svelte/store";
|
|
24
24
|
declare const __propDef: {
|
|
25
25
|
props: {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
26
|
+
[x: string]: any;
|
|
27
|
+
view?: QLayoutProps["view"];
|
|
28
|
+
headerHeight?: QLayoutProps["headerHeight"];
|
|
29
|
+
footerHeight?: QLayoutProps["footerHeight"];
|
|
30
|
+
leftDrawerWidth?: QLayoutProps["leftDrawerWidth"];
|
|
31
|
+
rightDrawerWidth?: QLayoutProps["rightDrawerWidth"];
|
|
32
|
+
leftRailbarWidth?: QLayoutProps["leftRailbarWidth"];
|
|
33
|
+
rightRailbarWidth?: QLayoutProps["rightDrawerWidth"];
|
|
34
|
+
class?: string | null | undefined;
|
|
35
|
+
style?: string | null | undefined;
|
|
35
36
|
};
|
|
36
37
|
events: {
|
|
37
38
|
scroll: Event;
|
|
@@ -117,6 +117,10 @@ $contentSlot: ":not(.q-header, .q-footer, .q-railbar, .q-drawer)";
|
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
+
& > .q-list {
|
|
121
|
+
gap: 0.5rem;
|
|
122
|
+
}
|
|
123
|
+
|
|
120
124
|
& > .q-list > .q-item {
|
|
121
125
|
flex-direction: column;
|
|
122
126
|
border-radius: 2rem;
|
|
@@ -125,7 +129,7 @@ $contentSlot: ":not(.q-header, .q-footer, .q-railbar, .q-drawer)";
|
|
|
125
129
|
padding: 0 8px;
|
|
126
130
|
gap: 0.25em;
|
|
127
131
|
|
|
128
|
-
&.
|
|
132
|
+
&.q-link::after {
|
|
129
133
|
all: unset;
|
|
130
134
|
}
|
|
131
135
|
|
|
@@ -135,13 +139,13 @@ $contentSlot: ":not(.q-header, .q-footer, .q-railbar, .q-drawer)";
|
|
|
135
139
|
|
|
136
140
|
& > i {
|
|
137
141
|
transition: var(--speed1) padding linear;
|
|
138
|
-
padding
|
|
142
|
+
padding: 0.25rem;
|
|
139
143
|
}
|
|
140
144
|
|
|
141
|
-
&:is(:hover, :focus,
|
|
145
|
+
&:is(:hover, :focus, &--active) > i {
|
|
142
146
|
background-color: var(--secondary-container);
|
|
143
147
|
color: var(--on-secondary-container);
|
|
144
|
-
padding:
|
|
148
|
+
padding-inline: 1.5rem;
|
|
145
149
|
font-variation-settings:
|
|
146
150
|
"FILL" 1,
|
|
147
151
|
"wght" 400,
|
|
@@ -1,41 +1,42 @@
|
|
|
1
1
|
import type { NativeProps } from "../../utils/types";
|
|
2
|
+
import type { HTMLAttributes } from "svelte/elements";
|
|
2
3
|
export type QLayoutViewOptions = `${"l" | "h"}${"h" | "H"}${"r" | "h"} ${"l" | "L"}${"p"}${"r" | "R"} ${"l" | "f"}${"f" | "F"}${"r" | "f"}`;
|
|
3
|
-
export interface QLayoutProps extends NativeProps {
|
|
4
|
+
export interface QLayoutProps extends NativeProps, HTMLAttributes<HTMLDivElement> {
|
|
4
5
|
/**
|
|
5
6
|
* The layout view configuration, which defines how layout components (header, railbars, drawers, footer) should be displayed on screen.
|
|
6
7
|
* See <a href="https://quasar.dev/layout/layout/#understanding-the-view-prop" target="_blank">Quasar's explanation on the view prop</a>.
|
|
7
8
|
* @default "hhh lpr fff"
|
|
8
9
|
*/
|
|
9
|
-
view
|
|
10
|
+
view?: QLayoutViewOptions;
|
|
10
11
|
/**
|
|
11
12
|
* The height of the header. Can be specified with CSS units. If no unit is specified, "px" will be used.
|
|
12
13
|
* @default 64px
|
|
13
14
|
*/
|
|
14
|
-
headerHeight
|
|
15
|
+
headerHeight?: string | number;
|
|
15
16
|
/**
|
|
16
17
|
* The height of the footer. Can be specified with CSS units. If no unit is specified, "px" will be used.
|
|
17
18
|
* @default 80px
|
|
18
19
|
*/
|
|
19
|
-
footerHeight
|
|
20
|
+
footerHeight?: string | number;
|
|
20
21
|
/**
|
|
21
22
|
* The width of the left drawer. Can be specified with CSS units. If no unit is specified, "px" will be used.
|
|
22
23
|
* @default 300px
|
|
23
24
|
*/
|
|
24
|
-
leftDrawerWidth
|
|
25
|
+
leftDrawerWidth?: string | number;
|
|
25
26
|
/**
|
|
26
27
|
* The width of the right drawer. Can be specified with CSS units. If no unit is specified, "px" will be used.
|
|
27
28
|
* @default 300px
|
|
28
29
|
*/
|
|
29
|
-
rightDrawerWidth
|
|
30
|
+
rightDrawerWidth?: string | number;
|
|
30
31
|
/**
|
|
31
32
|
* The width of the left railbar. Can be specified with CSS units. If no unit is specified, "px" will be used.
|
|
32
33
|
* @default 88px
|
|
33
34
|
*/
|
|
34
|
-
leftRailbarWidth
|
|
35
|
+
leftRailbarWidth?: string | number;
|
|
35
36
|
/**
|
|
36
37
|
* The width of the right railbar. Can be specified with CSS units. If no unit is specified, "px" will be used.
|
|
37
38
|
* @default 88px
|
|
38
39
|
*/
|
|
39
|
-
rightRailbarWidth
|
|
40
|
+
rightRailbarWidth?: string | number;
|
|
40
41
|
}
|
|
41
42
|
export type QLayoutEvents = "resize" | "scroll" | "scrollHeight";
|