@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.
Files changed (90) hide show
  1. package/dist/components/avatar/QAvatar.svelte.d.ts +2 -2
  2. package/dist/components/avatar/props.d.ts +2 -1
  3. package/dist/components/breadcrumbs/QBreadcrumbs.svelte.d.ts +1 -1
  4. package/dist/components/breadcrumbs/QBreadcrumbsEl.svelte.d.ts +1 -1
  5. package/dist/components/breadcrumbs/props.d.ts +3 -2
  6. package/dist/components/button/QBtn.svelte +2 -2
  7. package/dist/components/button/QBtn.svelte.d.ts +2 -1
  8. package/dist/components/button/props.d.ts +12 -1
  9. package/dist/components/card/QCard.svelte.d.ts +1 -1
  10. package/dist/components/card/QCardActions.svelte.d.ts +2 -2
  11. package/dist/components/card/QCardSection.svelte.d.ts +1 -1
  12. package/dist/components/card/props.d.ts +5 -4
  13. package/dist/components/checkbox/QCheckbox.svelte.d.ts +1 -1
  14. package/dist/components/checkbox/props.d.ts +2 -1
  15. package/dist/components/chip/QChip.svelte.d.ts +1 -1
  16. package/dist/components/chip/props.d.ts +2 -1
  17. package/dist/components/codeBlock/props.d.ts +2 -1
  18. package/dist/components/dialog/QDialog.svelte.d.ts +1 -1
  19. package/dist/components/dialog/props.d.ts +2 -1
  20. package/dist/components/drawer/QDrawer.svelte +8 -3
  21. package/dist/components/drawer/QDrawer.svelte.d.ts +2 -2
  22. package/dist/components/drawer/props.d.ts +2 -1
  23. package/dist/components/footer/QFooter.svelte.d.ts +2 -2
  24. package/dist/components/footer/props.d.ts +2 -1
  25. package/dist/components/header/QHeader.svelte.d.ts +2 -2
  26. package/dist/components/header/props.d.ts +2 -2
  27. package/dist/components/icon/QIcon.svelte +1 -1
  28. package/dist/components/icon/QIcon.svelte.d.ts +7 -6
  29. package/dist/components/icon/props.d.ts +6 -5
  30. package/dist/components/input/QInput.svelte.d.ts +7 -7
  31. package/dist/components/input/props.d.ts +8 -7
  32. package/dist/components/layout/QLayout.svelte +1 -1
  33. package/dist/components/layout/QLayout.svelte.d.ts +10 -9
  34. package/dist/components/layout/index.scss +8 -4
  35. package/dist/components/layout/props.d.ts +9 -8
  36. package/dist/components/list/QItem.svelte +22 -19
  37. package/dist/components/list/QItem.svelte.d.ts +9 -12
  38. package/dist/components/list/QItemSection.svelte +23 -19
  39. package/dist/components/list/QItemSection.svelte.d.ts +2 -2
  40. package/dist/components/list/QList.svelte +9 -10
  41. package/dist/components/list/QList.svelte.d.ts +7 -14
  42. package/dist/components/list/index.scss +27 -5
  43. package/dist/components/list/props.d.ts +19 -16
  44. package/dist/components/list/props.js +1 -1
  45. package/dist/components/progress/QCircularProgress.svelte +7 -1
  46. package/dist/components/progress/QCircularProgress.svelte.d.ts +5 -4
  47. package/dist/components/progress/QLinearProgress.svelte.d.ts +4 -4
  48. package/dist/components/progress/props.d.ts +8 -7
  49. package/dist/components/radio/QRadio.svelte.d.ts +3 -3
  50. package/dist/components/radio/props.d.ts +5 -4
  51. package/dist/components/railbar/QRailbar.svelte.d.ts +5 -5
  52. package/dist/components/railbar/props.d.ts +5 -4
  53. package/dist/components/select/QSelect.svelte +4 -2
  54. package/dist/components/select/QSelect.svelte.d.ts +4 -4
  55. package/dist/components/select/props.d.ts +10 -6
  56. package/dist/components/select/props.js +0 -1
  57. package/dist/components/separator/QSeparator.svelte +2 -2
  58. package/dist/components/separator/QSeparator.svelte.d.ts +8 -7
  59. package/dist/components/separator/props.d.ts +11 -10
  60. package/dist/components/table/QTable.svelte +1 -1
  61. package/dist/components/table/QTable.svelte.d.ts +3 -2
  62. package/dist/components/table/props.d.ts +3 -2
  63. package/dist/components/tabs/QTab.svelte.d.ts +1 -1
  64. package/dist/components/tabs/QTabs.svelte.d.ts +4 -4
  65. package/dist/components/tabs/index.scss +3 -2
  66. package/dist/components/tabs/props.d.ts +5 -4
  67. package/dist/components/toggle/QToggle.svelte +9 -1
  68. package/dist/components/toggle/QToggle.svelte.d.ts +1 -1
  69. package/dist/components/toolbar/QToolbar.svelte.d.ts +6 -6
  70. package/dist/components/toolbar/QToolbarTitle.svelte.d.ts +3 -3
  71. package/dist/components/toolbar/props.d.ts +8 -7
  72. package/dist/components/tooltip/QTooltip.svelte.d.ts +2 -2
  73. package/dist/components/tooltip/props.d.ts +3 -2
  74. package/dist/composables/use-router-link.d.ts +2 -2
  75. package/dist/composables/use-router-link.js +2 -2
  76. package/dist/css/index.css +1 -1
  77. package/dist/css/ripple.scss +1 -1
  78. package/dist/css/theme/palette.scss +18 -4
  79. package/dist/css/theme/theme.dark.scss +3 -1
  80. package/dist/css/theme/theme.light.scss +3 -1
  81. package/dist/helpers/ripple.d.ts +1 -0
  82. package/dist/helpers/ripple.js +1 -1
  83. package/dist/helpers/version.d.ts +1 -1
  84. package/dist/helpers/version.js +1 -1
  85. package/dist/stores/QTheme.d.ts +1 -2
  86. package/dist/stores/QTheme.js +22 -15
  87. package/dist/stores/Quaff.js +18 -13
  88. package/dist/utils/props.d.ts +1 -1
  89. package/dist/utils/types.d.ts +2 -2
  90. 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
  }
@@ -8,7 +8,7 @@ declare const __propDef: {
8
8
  flat?: QCardProps["flat"];
9
9
  round?: QCardProps["round"];
10
10
  title?: QCardProps["title"];
11
- class?: string | undefined;
11
+ class?: string | null | undefined;
12
12
  };
13
13
  events: {
14
14
  [evt: string]: CustomEvent<any>;
@@ -4,8 +4,8 @@ declare const __propDef: {
4
4
  props: {
5
5
  [x: string]: any;
6
6
  align?: QCardActionsProps["align"];
7
- vertical?: boolean | undefined;
8
- class?: string | undefined;
7
+ vertical?: QCardActionsProps["vertical"];
8
+ class?: string | null | undefined;
9
9
  };
10
10
  events: {
11
11
  [evt: string]: CustomEvent<any>;
@@ -4,7 +4,7 @@ declare const __propDef: {
4
4
  props: {
5
5
  [x: string]: any;
6
6
  horizontal?: QCardSectionProps["horizontal"];
7
- class?: string | undefined;
7
+ class?: string | null | undefined;
8
8
  };
9
9
  events: {
10
10
  scroll: Event;
@@ -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: boolean;
44
+ vertical?: boolean;
44
45
  }
@@ -6,7 +6,7 @@ declare const __propDef: {
6
6
  value?: boolean | undefined;
7
7
  label?: QCheckboxProps["label"];
8
8
  disable?: QCheckboxProps["disable"];
9
- class?: string | undefined;
9
+ class?: string | null | undefined;
10
10
  };
11
11
  events: {
12
12
  [evt: string]: CustomEvent<any>;
@@ -1,5 +1,6 @@
1
1
  import type { NativeProps } from "../../utils/types";
2
- export interface QCheckboxProps extends NativeProps {
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
  */
@@ -14,7 +14,7 @@ declare const __propDef: {
14
14
  size?: QChipProps["size"];
15
15
  tabindex?: QChipProps["tabindex"];
16
16
  href?: QChipProps["href"];
17
- class?: string | undefined;
17
+ class?: string | null | undefined;
18
18
  };
19
19
  events: {
20
20
  activated: CustomEvent<any>;
@@ -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
@@ -1,4 +1,5 @@
1
- export interface QCodeBlockProps {
1
+ import type { HTMLAttributes } from "svelte/elements";
2
+ export interface QCodeBlockProps extends HTMLAttributes<HTMLDivElement> {
2
3
  /**
3
4
  * Language to use for highlighting.
4
5
  */
@@ -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 = true, 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;
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 && canHideOnClickOutside === 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 use:clickOutside={hide} class={classes} {style} {...$$restProps}>
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
- export interface QFooterProps extends NativeProps {
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>;
@@ -1,5 +1,5 @@
1
- import type { NativeProps } from "../../utils/types";
2
- export interface QHeaderProps extends NativeProps {
1
+ import type { QToolbarProps } from "../toolbar/props";
2
+ export interface QHeaderProps extends QToolbarProps {
3
3
  /**
4
4
  * @default false
5
5
  */
@@ -26,7 +26,7 @@ $:
26
26
  };
27
27
  </script>
28
28
 
29
- <i class={classes} {style}>
29
+ <i class={classes} {style} {...$$restProps}>
30
30
  {#if name !== undefined}
31
31
  {name}
32
32
  {:else if img !== undefined}
@@ -2,16 +2,17 @@ import { SvelteComponent } from "svelte";
2
2
  import type { QIconProps } from "./props";
3
3
  declare const __propDef: {
4
4
  props: {
5
- size?: import("./props").QIconSizeOptions | undefined;
5
+ [x: string]: any;
6
+ size?: QIconProps["size"];
6
7
  name?: QIconProps["name"];
7
- type?: import("./props").QIconTypeOptions | undefined;
8
- filled?: boolean | undefined;
8
+ type?: QIconProps["type"];
9
+ filled?: QIconProps["filled"];
9
10
  svg?: QIconProps["svg"];
10
11
  img?: QIconProps["img"];
11
- imgAttributes?: Record<string, any> | undefined;
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: QIconSizeOptions;
10
+ size?: QIconSizeOptions;
10
11
  /**
11
12
  * The type of the icon.
12
13
  * @default outlined
13
14
  */
14
- type: QIconTypeOptions;
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: boolean;
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: Record<string, any>;
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?: boolean | undefined;
6
+ bordered?: QInputProps["bordered"];
7
7
  dense?: QInputProps["dense"];
8
- disable?: boolean | undefined;
9
- error?: boolean | undefined;
8
+ disable?: QInputProps["disable"];
9
+ error?: QInputProps["error"];
10
10
  errorMessage?: QInputProps["errorMessage"];
11
- filled?: boolean | undefined;
11
+ filled?: QInputProps["filled"];
12
12
  hint?: QInputProps["hint"];
13
13
  label?: QInputProps["label"];
14
- outlined?: boolean | undefined;
15
- rounded?: boolean | undefined;
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
- export interface QInputProps extends NativeProps {
3
- bordered: boolean;
2
+ import type { HTMLAttributes } from "svelte/elements";
3
+ export interface QInputProps extends NativeProps, HTMLAttributes<HTMLDivElement> {
4
+ bordered?: boolean;
4
5
  dense?: boolean;
5
- disable: boolean;
6
- error: boolean;
6
+ disable?: boolean;
7
+ error?: boolean;
7
8
  errorMessage?: string;
8
- filled: boolean;
9
+ filled?: boolean;
9
10
  hint?: string;
10
11
  label?: string;
11
- outlined: boolean;
12
- rounded: boolean;
12
+ outlined?: boolean;
13
+ rounded?: boolean;
13
14
  value: string;
14
15
  }
15
16
  export declare const QInputPropsDefaults: {
@@ -63,7 +63,7 @@ $:
63
63
  setContext("layout", ctx);
64
64
  </script>
65
65
 
66
- <div class={classes} {style} on:scroll on:resize>
66
+ <div class={classes} {style} {...$$restProps} on:scroll on:resize>
67
67
  {#if $$slots.railbarLeft}
68
68
  <slot name="railbarLeft" />
69
69
  {/if}
@@ -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
- view?: "lhh lpr lfr" | "lhh lpr lff" | "lhh lpr lFr" | "lhh lpr lFf" | "lhh lpr ffr" | "lhh lpr fff" | "lhh lpr fFr" | "lhh lpr fFf" | "lhh lpR lfr" | "lhh lpR lff" | "lhh lpR lFr" | "lhh lpR lFf" | "lhh lpR ffr" | "lhh lpR fff" | "lhh lpR fFr" | "lhh lpR fFf" | "lhh Lpr lfr" | "lhh Lpr lff" | "lhh Lpr lFr" | "lhh Lpr lFf" | "lhh Lpr ffr" | "lhh Lpr fff" | "lhh Lpr fFr" | "lhh Lpr fFf" | "lhh LpR lfr" | "lhh LpR lff" | "lhh LpR lFr" | "lhh LpR lFf" | "lhh LpR ffr" | "lhh LpR fff" | "lhh LpR fFr" | "lhh LpR fFf" | "lhr lpr lfr" | "lhr lpr lff" | "lhr lpr lFr" | "lhr lpr lFf" | "lhr lpr ffr" | "lhr lpr fff" | "lhr lpr fFr" | "lhr lpr fFf" | "lhr lpR lfr" | "lhr lpR lff" | "lhr lpR lFr" | "lhr lpR lFf" | "lhr lpR ffr" | "lhr lpR fff" | "lhr lpR fFr" | "lhr lpR fFf" | "lhr Lpr lfr" | "lhr Lpr lff" | "lhr Lpr lFr" | "lhr Lpr lFf" | "lhr Lpr ffr" | "lhr Lpr fff" | "lhr Lpr fFr" | "lhr Lpr fFf" | "lhr LpR lfr" | "lhr LpR lff" | "lhr LpR lFr" | "lhr LpR lFf" | "lhr LpR ffr" | "lhr LpR fff" | "lhr LpR fFr" | "lhr LpR fFf" | "lHh lpr lfr" | "lHh lpr lff" | "lHh lpr lFr" | "lHh lpr lFf" | "lHh lpr ffr" | "lHh lpr fff" | "lHh lpr fFr" | "lHh lpr fFf" | "lHh lpR lfr" | "lHh lpR lff" | "lHh lpR lFr" | "lHh lpR lFf" | "lHh lpR ffr" | "lHh lpR fff" | "lHh lpR fFr" | "lHh lpR fFf" | "lHh Lpr lfr" | "lHh Lpr lff" | "lHh Lpr lFr" | "lHh Lpr lFf" | "lHh Lpr ffr" | "lHh Lpr fff" | "lHh Lpr fFr" | "lHh Lpr fFf" | "lHh LpR lfr" | "lHh LpR lff" | "lHh LpR lFr" | "lHh LpR lFf" | "lHh LpR ffr" | "lHh LpR fff" | "lHh LpR fFr" | "lHh LpR fFf" | "lHr lpr lfr" | "lHr lpr lff" | "lHr lpr lFr" | "lHr lpr lFf" | "lHr lpr ffr" | "lHr lpr fff" | "lHr lpr fFr" | "lHr lpr fFf" | "lHr lpR lfr" | "lHr lpR lff" | "lHr lpR lFr" | "lHr lpR lFf" | "lHr lpR ffr" | "lHr lpR fff" | "lHr lpR fFr" | "lHr lpR fFf" | "lHr Lpr lfr" | "lHr Lpr lff" | "lHr Lpr lFr" | "lHr Lpr lFf" | "lHr Lpr ffr" | "lHr Lpr fff" | "lHr Lpr fFr" | "lHr Lpr fFf" | "lHr LpR lfr" | "lHr LpR lff" | "lHr LpR lFr" | "lHr LpR lFf" | "lHr LpR ffr" | "lHr LpR fff" | "lHr LpR fFr" | "lHr LpR fFf" | "hhh lpr lfr" | "hhh lpr lff" | "hhh lpr lFr" | "hhh lpr lFf" | "hhh lpr ffr" | "hhh lpr fff" | "hhh lpr fFr" | "hhh lpr fFf" | "hhh lpR lfr" | "hhh lpR lff" | "hhh lpR lFr" | "hhh lpR lFf" | "hhh lpR ffr" | "hhh lpR fff" | "hhh lpR fFr" | "hhh lpR fFf" | "hhh Lpr lfr" | "hhh Lpr lff" | "hhh Lpr lFr" | "hhh Lpr lFf" | "hhh Lpr ffr" | "hhh Lpr fff" | "hhh Lpr fFr" | "hhh Lpr fFf" | "hhh LpR lfr" | "hhh LpR lff" | "hhh LpR lFr" | "hhh LpR lFf" | "hhh LpR ffr" | "hhh LpR fff" | "hhh LpR fFr" | "hhh LpR fFf" | "hhr lpr lfr" | "hhr lpr lff" | "hhr lpr lFr" | "hhr lpr lFf" | "hhr lpr ffr" | "hhr lpr fff" | "hhr lpr fFr" | "hhr lpr fFf" | "hhr lpR lfr" | "hhr lpR lff" | "hhr lpR lFr" | "hhr lpR lFf" | "hhr lpR ffr" | "hhr lpR fff" | "hhr lpR fFr" | "hhr lpR fFf" | "hhr Lpr lfr" | "hhr Lpr lff" | "hhr Lpr lFr" | "hhr Lpr lFf" | "hhr Lpr ffr" | "hhr Lpr fff" | "hhr Lpr fFr" | "hhr Lpr fFf" | "hhr LpR lfr" | "hhr LpR lff" | "hhr LpR lFr" | "hhr LpR lFf" | "hhr LpR ffr" | "hhr LpR fff" | "hhr LpR fFr" | "hhr LpR fFf" | "hHh lpr lfr" | "hHh lpr lff" | "hHh lpr lFr" | "hHh lpr lFf" | "hHh lpr ffr" | "hHh lpr fff" | "hHh lpr fFr" | "hHh lpr fFf" | "hHh lpR lfr" | "hHh lpR lff" | "hHh lpR lFr" | "hHh lpR lFf" | "hHh lpR ffr" | "hHh lpR fff" | "hHh lpR fFr" | "hHh lpR fFf" | "hHh Lpr lfr" | "hHh Lpr lff" | "hHh Lpr lFr" | "hHh Lpr lFf" | "hHh Lpr ffr" | "hHh Lpr fff" | "hHh Lpr fFr" | "hHh Lpr fFf" | "hHh LpR lfr" | "hHh LpR lff" | "hHh LpR lFr" | "hHh LpR lFf" | "hHh LpR ffr" | "hHh LpR fff" | "hHh LpR fFr" | "hHh LpR fFf" | "hHr lpr lfr" | "hHr lpr lff" | "hHr lpr lFr" | "hHr lpr lFf" | "hHr lpr ffr" | "hHr lpr fff" | "hHr lpr fFr" | "hHr lpr fFf" | "hHr lpR lfr" | "hHr lpR lff" | "hHr lpR lFr" | "hHr lpR lFf" | "hHr lpR ffr" | "hHr lpR fff" | "hHr lpR fFr" | "hHr lpR fFf" | "hHr Lpr lfr" | "hHr Lpr lff" | "hHr Lpr lFr" | "hHr Lpr lFf" | "hHr Lpr ffr" | "hHr Lpr fff" | "hHr Lpr fFr" | "hHr Lpr fFf" | "hHr LpR lfr" | "hHr LpR lff" | "hHr LpR lFr" | "hHr LpR lFf" | "hHr LpR ffr" | "hHr LpR fff" | "hHr LpR fFr" | "hHr LpR fFf" | undefined;
27
- headerHeight?: string | number | undefined;
28
- footerHeight?: string | number | undefined;
29
- leftDrawerWidth?: string | number | undefined;
30
- rightDrawerWidth?: string | number | undefined;
31
- leftRailbarWidth?: string | number | undefined;
32
- rightRailbarWidth?: string | number | undefined;
33
- class?: string | undefined;
34
- style?: string | undefined;
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
- &.wave::after {
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-inline: 0.25em;
142
+ padding: 0.25rem;
139
143
  }
140
144
 
141
- &:is(:hover, :focus, .active) > i {
145
+ &:is(:hover, :focus, &--active) > i {
142
146
  background-color: var(--secondary-container);
143
147
  color: var(--on-secondary-container);
144
- padding: 0 1rem;
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: QLayoutViewOptions;
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: string | number;
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: string | number;
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: string | number;
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: string | number;
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: string | number;
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: string | number;
40
+ rightRailbarWidth?: string | number;
40
41
  }
41
42
  export type QLayoutEvents = "resize" | "scroll" | "scrollHeight";