@quaffui/quaff 0.1.0-prealpha → 0.1.0-prealpha3

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 (80) hide show
  1. package/dist/components/avatar/QAvatar.svelte.d.ts +4 -4
  2. package/dist/components/avatar/docs.d.ts +1 -1
  3. package/dist/components/avatar/index.scss +4 -1
  4. package/dist/components/breadcrumbs/QBreadcrumbs.svelte.d.ts +4 -4
  5. package/dist/components/breadcrumbs/QBreadcrumbsEl.svelte.d.ts +4 -4
  6. package/dist/components/breadcrumbs/docs.d.ts +1 -1
  7. package/dist/components/button/QBtn.svelte.d.ts +4 -4
  8. package/dist/components/button/docs.d.ts +1 -1
  9. package/dist/components/button/index.scss +4 -1
  10. package/dist/components/button/props.d.ts +1 -1
  11. package/dist/components/card/QCard.svelte +1 -1
  12. package/dist/components/card/QCard.svelte.d.ts +4 -4
  13. package/dist/components/card/QCardActions.svelte +1 -1
  14. package/dist/components/card/QCardActions.svelte.d.ts +4 -4
  15. package/dist/components/card/QCardSection.svelte +1 -1
  16. package/dist/components/card/QCardSection.svelte.d.ts +4 -4
  17. package/dist/components/card/index.scss +4 -1
  18. package/dist/components/checkbox/QCheckbox.svelte.d.ts +4 -4
  19. package/dist/components/chip/QChip.svelte.d.ts +4 -4
  20. package/dist/components/chip/docs.d.ts +1 -1
  21. package/dist/components/chip/index.scss +4 -1
  22. package/dist/components/codeBlock/QCodeBlock.svelte.d.ts +4 -4
  23. package/dist/components/dialog/QDialog.svelte.d.ts +4 -4
  24. package/dist/components/dialog/docs.d.ts +1 -1
  25. package/dist/components/drawer/QDrawer.svelte.d.ts +4 -4
  26. package/dist/components/drawer/docs.d.ts +1 -1
  27. package/dist/components/drawer/index.scss +3 -1
  28. package/dist/components/footer/QFooter.svelte.d.ts +4 -4
  29. package/dist/components/footer/docs.d.ts +1 -1
  30. package/dist/components/icon/QIcon.svelte.d.ts +4 -4
  31. package/dist/components/icon/docs.d.ts +1 -1
  32. package/dist/components/input/QInput.svelte.d.ts +4 -4
  33. package/dist/components/input/docs.d.ts +1 -1
  34. package/dist/components/input/props.d.ts +1 -1
  35. package/dist/components/layout/QLayout.svelte.d.ts +4 -4
  36. package/dist/components/layout/docs.d.ts +1 -1
  37. package/dist/components/layout/index.scss +4 -1
  38. package/dist/components/list/QItem.svelte.d.ts +4 -4
  39. package/dist/components/list/QItemSection.svelte.d.ts +4 -4
  40. package/dist/components/list/QList.svelte.d.ts +4 -4
  41. package/dist/components/private/ContextReseter.svelte.d.ts +2 -2
  42. package/dist/components/private/QApi.svelte +1 -1
  43. package/dist/components/private/QApi.svelte.d.ts +2 -2
  44. package/dist/components/private/QDocs.svelte.d.ts +3 -3
  45. package/dist/components/private/QDocsSection.svelte.d.ts +2 -2
  46. package/dist/components/progress/QCircularProgress.svelte.d.ts +4 -4
  47. package/dist/components/progress/QLinearProgress.svelte.d.ts +4 -4
  48. package/dist/components/progress/props.d.ts +1 -1
  49. package/dist/components/progress/props.js +1 -1
  50. package/dist/components/radio/QRadio.svelte.d.ts +4 -4
  51. package/dist/components/radio/docs.d.ts +1 -1
  52. package/dist/components/railbar/QRailbar.svelte.d.ts +4 -4
  53. package/dist/components/select/QSelect.svelte.d.ts +4 -4
  54. package/dist/components/select/docs.d.ts +1 -1
  55. package/dist/components/select/index.scss +8 -2
  56. package/dist/components/select/props.d.ts +1 -1
  57. package/dist/components/separator/QSeparator.svelte +1 -1
  58. package/dist/components/separator/QSeparator.svelte.d.ts +4 -4
  59. package/dist/components/separator/props.d.ts +1 -1
  60. package/dist/components/table/QTable.svelte.d.ts +4 -4
  61. package/dist/components/table/docs.d.ts +1 -1
  62. package/dist/components/tabs/QTab.svelte +1 -1
  63. package/dist/components/tabs/QTab.svelte.d.ts +4 -4
  64. package/dist/components/tabs/QTabs.svelte.d.ts +4 -4
  65. package/dist/components/toggle/QToggle.svelte.d.ts +4 -4
  66. package/dist/components/toggle/docs.d.ts +1 -1
  67. package/dist/components/toggle/props.d.ts +1 -1
  68. package/dist/components/toggle/props.js +1 -1
  69. package/dist/components/toolbar/QToolbar.svelte.d.ts +4 -4
  70. package/dist/components/tooltip/QTooltip.svelte.d.ts +4 -4
  71. package/dist/css/mixins/field.scss +3 -1
  72. package/dist/css/mixins/menu.scss +3 -1
  73. package/dist/css/mixins.scss +4 -1
  74. package/dist/css/states.scss +3 -2
  75. package/dist/index.d.ts +1 -1
  76. package/dist/index.js +1 -1
  77. package/dist/stores/QTheme.d.ts +2 -1
  78. package/dist/stores/Quaff.d.ts +6 -5
  79. package/dist/utils/watchable.d.ts +1 -0
  80. package/package.json +23 -23
@@ -1,4 +1,4 @@
1
- import { SvelteComponentTyped } from "svelte";
1
+ import { SvelteComponent } from "svelte";
2
2
  import type { QCircularProgressProps } from "./props";
3
3
  declare const __propDef: {
4
4
  props: {
@@ -14,9 +14,9 @@ declare const __propDef: {
14
14
  };
15
15
  slots: {};
16
16
  };
17
- export type QCircularProgressProps = typeof __propDef.props;
17
+ type QCircularProgressProps_ = typeof __propDef.props;
18
+ export { QCircularProgressProps_ as QCircularProgressProps };
18
19
  export type QCircularProgressEvents = typeof __propDef.events;
19
20
  export type QCircularProgressSlots = typeof __propDef.slots;
20
- export default class QCircularProgress extends SvelteComponentTyped<QCircularProgressProps, QCircularProgressEvents, QCircularProgressSlots> {
21
+ export default class QCircularProgress extends SvelteComponent<QCircularProgressProps, QCircularProgressEvents, QCircularProgressSlots> {
21
22
  }
22
- export {};
@@ -1,4 +1,4 @@
1
- import { SvelteComponentTyped } from "svelte";
1
+ import { SvelteComponent } from "svelte";
2
2
  import type { QLinearProgressProps } from "./props";
3
3
  declare const __propDef: {
4
4
  props: {
@@ -14,9 +14,9 @@ declare const __propDef: {
14
14
  };
15
15
  slots: {};
16
16
  };
17
- export type QLinearProgressProps = typeof __propDef.props;
17
+ type QLinearProgressProps_ = typeof __propDef.props;
18
+ export { QLinearProgressProps_ as QLinearProgressProps };
18
19
  export type QLinearProgressEvents = typeof __propDef.events;
19
20
  export type QLinearProgressSlots = typeof __propDef.slots;
20
- export default class QLinearProgress extends SvelteComponentTyped<QLinearProgressProps, QLinearProgressEvents, QLinearProgressSlots> {
21
+ export default class QLinearProgress extends SvelteComponent<QLinearProgressProps, QLinearProgressEvents, QLinearProgressSlots> {
21
22
  }
22
- export {};
@@ -1,4 +1,4 @@
1
- import { type NativeProps } from "$utils/types";
1
+ import { type NativeProps } from "../../utils/types";
2
2
  export interface QLinearProgressProps extends NativeProps {
3
3
  value: number;
4
4
  from: "left" | "right";
@@ -1,4 +1,4 @@
1
- import { NativePropsDefaults } from "$utils/types";
1
+ import { NativePropsDefaults } from "../../utils/types";
2
2
  export const QLinearProgressPropsDefaults = {
3
3
  value: 0,
4
4
  from: "left",
@@ -1,4 +1,4 @@
1
- import { SvelteComponentTyped } from "svelte";
1
+ import { SvelteComponent } from "svelte";
2
2
  import type { QRadioProps } from "./props";
3
3
  declare const __propDef: {
4
4
  props: {
@@ -14,9 +14,9 @@ declare const __propDef: {
14
14
  };
15
15
  slots: {};
16
16
  };
17
- export type QRadioProps = typeof __propDef.props;
17
+ type QRadioProps_ = typeof __propDef.props;
18
+ export { QRadioProps_ as QRadioProps };
18
19
  export type QRadioEvents = typeof __propDef.events;
19
20
  export type QRadioSlots = typeof __propDef.slots;
20
- export default class QRadio extends SvelteComponentTyped<QRadioProps, QRadioEvents, QRadioSlots> {
21
+ export default class QRadio extends SvelteComponent<QRadioProps, QRadioEvents, QRadioSlots> {
21
22
  }
22
- export {};
@@ -1,2 +1,2 @@
1
- import type { QComponentDocs } from "$utils/types";
1
+ import type { QComponentDocs } from "../../utils/types";
2
2
  export declare let QRadioDocs: QComponentDocs;
@@ -1,4 +1,4 @@
1
- import { SvelteComponentTyped } from "svelte";
1
+ import { SvelteComponent } from "svelte";
2
2
  import type { QRailbarProps } from "./props";
3
3
  declare const __propDef: {
4
4
  props: {
@@ -15,9 +15,9 @@ declare const __propDef: {
15
15
  default: {};
16
16
  };
17
17
  };
18
- export type QRailbarProps = typeof __propDef.props;
18
+ type QRailbarProps_ = typeof __propDef.props;
19
+ export { QRailbarProps_ as QRailbarProps };
19
20
  export type QRailbarEvents = typeof __propDef.events;
20
21
  export type QRailbarSlots = typeof __propDef.slots;
21
- export default class QRailbar extends SvelteComponentTyped<QRailbarProps, QRailbarEvents, QRailbarSlots> {
22
+ export default class QRailbar extends SvelteComponent<QRailbarProps, QRailbarEvents, QRailbarSlots> {
22
23
  }
23
- export {};
@@ -1,4 +1,4 @@
1
- import { SvelteComponentTyped } from "svelte";
1
+ import { SvelteComponent } from "svelte";
2
2
  import type { QSelectProps } from "./props";
3
3
  declare const __propDef: {
4
4
  props: {
@@ -26,9 +26,9 @@ declare const __propDef: {
26
26
  append: {};
27
27
  };
28
28
  };
29
- export type QSelectProps = typeof __propDef.props;
29
+ type QSelectProps_ = typeof __propDef.props;
30
+ export { QSelectProps_ as QSelectProps };
30
31
  export type QSelectEvents = typeof __propDef.events;
31
32
  export type QSelectSlots = typeof __propDef.slots;
32
- export default class QSelect extends SvelteComponentTyped<QSelectProps, QSelectEvents, QSelectSlots> {
33
+ export default class QSelect extends SvelteComponent<QSelectProps, QSelectEvents, QSelectSlots> {
33
34
  }
34
- export {};
@@ -1,2 +1,2 @@
1
- import type { QComponentDocs } from "$utils/types";
1
+ import type { QComponentDocs } from "../../utils/types";
2
2
  export declare let QSelectDocs: QComponentDocs;
@@ -14,13 +14,19 @@
14
14
  opacity: 0;
15
15
  visibility: hidden;
16
16
  transform: scale(0.8) translateY(120%);
17
- transition: opacity var(--speed2), transform var(--speed2), visibility 0s var(--speed2);
17
+ transition:
18
+ opacity var(--speed2),
19
+ transform var(--speed2),
20
+ visibility 0s var(--speed2);
18
21
 
19
22
  &--active {
20
23
  opacity: 1;
21
24
  visibility: visible;
22
25
  transform: scale(1) translateY(100%);
23
- transition: opacity var(--speed2), transform var(--speed2), visibility 0s 0s;
26
+ transition:
27
+ opacity var(--speed2),
28
+ transform var(--speed2),
29
+ visibility 0s 0s;
24
30
  }
25
31
  }
26
32
 
@@ -1,4 +1,4 @@
1
- import { type NativeProps } from "$utils/types";
1
+ import { type NativeProps } from "../../utils/types";
2
2
  export type QSelectOption = string | {
3
3
  label: string;
4
4
  value: string;
@@ -1,4 +1,4 @@
1
- <script>import { createClasses, createStyles } from "$utils/props";
1
+ <script>import { createClasses, createStyles } from "../../utils/props";
2
2
  export let spacing = "none", inset = false, vertical = false, color = void 0, size = "1px", text = void 0, textAlign = vertical === true ? "middle" : "center", userClasses = void 0, userStyles = void 0;
3
3
  export { userClasses as class };
4
4
  export { userStyles as style };
@@ -1,4 +1,4 @@
1
- import { SvelteComponentTyped } from "svelte";
1
+ import { SvelteComponent } from "svelte";
2
2
  import type { QSeparatorProps } from "./props";
3
3
  declare const __propDef: {
4
4
  props: {
@@ -17,9 +17,9 @@ declare const __propDef: {
17
17
  };
18
18
  slots: {};
19
19
  };
20
- export type QSeparatorProps = typeof __propDef.props;
20
+ type QSeparatorProps_ = typeof __propDef.props;
21
+ export { QSeparatorProps_ as QSeparatorProps };
21
22
  export type QSeparatorEvents = typeof __propDef.events;
22
23
  export type QSeparatorSlots = typeof __propDef.slots;
23
- export default class QSeparator extends SvelteComponentTyped<QSeparatorProps, QSeparatorEvents, QSeparatorSlots> {
24
+ export default class QSeparator extends SvelteComponent<QSeparatorProps, QSeparatorEvents, QSeparatorSlots> {
24
25
  }
25
- export {};
@@ -1,4 +1,4 @@
1
- import type { NativeProps } from "$utils/types";
1
+ import type { NativeProps } from "../../utils/types";
2
2
  interface QSeparatorPropsVertical extends NativeProps {
3
3
  spacing: "none" | "sm" | "md" | "lg";
4
4
  inset: boolean;
@@ -1,4 +1,4 @@
1
- import { SvelteComponentTyped } from "svelte";
1
+ import { SvelteComponent } from "svelte";
2
2
  import type { QTableProps } from "./props";
3
3
  import type { QTableColumn, QTableRow } from "./props";
4
4
  declare const __propDef: {
@@ -21,9 +21,9 @@ declare const __propDef: {
21
21
  };
22
22
  };
23
23
  };
24
- export type QTableProps = typeof __propDef.props;
24
+ type QTableProps_ = typeof __propDef.props;
25
+ export { QTableProps_ as QTableProps };
25
26
  export type QTableEvents = typeof __propDef.events;
26
27
  export type QTableSlots = typeof __propDef.slots;
27
- export default class QTable extends SvelteComponentTyped<QTableProps, QTableEvents, QTableSlots> {
28
+ export default class QTable extends SvelteComponent<QTableProps, QTableEvents, QTableSlots> {
28
29
  }
29
- export {};
@@ -1,2 +1,2 @@
1
- import type { QComponentDocs } from "$utils/types";
1
+ import type { QComponentDocs } from "../../utils/types";
2
2
  export declare let QTableDocs: QComponentDocs;
@@ -1,4 +1,4 @@
1
- <script>import { Quaff } from "$stores/Quaff";
1
+ <script>import { Quaff } from "../../stores/Quaff";
2
2
  import { getContext, hasContext } from "svelte";
3
3
  import { createClasses } from "../../utils/props";
4
4
  import QIcon from "../icon/QIcon.svelte";
@@ -1,4 +1,4 @@
1
- import { SvelteComponentTyped } from "svelte";
1
+ import { SvelteComponent } from "svelte";
2
2
  import type { QTabProps } from "./props";
3
3
  declare const __propDef: {
4
4
  props: {
@@ -20,9 +20,9 @@ declare const __propDef: {
20
20
  default: {};
21
21
  };
22
22
  };
23
- export type QTabProps = typeof __propDef.props;
23
+ type QTabProps_ = typeof __propDef.props;
24
+ export { QTabProps_ as QTabProps };
24
25
  export type QTabEvents = typeof __propDef.events;
25
26
  export type QTabSlots = typeof __propDef.slots;
26
- export default class QTab extends SvelteComponentTyped<QTabProps, QTabEvents, QTabSlots> {
27
+ export default class QTab extends SvelteComponent<QTabProps, QTabEvents, QTabSlots> {
27
28
  }
28
- export {};
@@ -1,4 +1,4 @@
1
- import { SvelteComponentTyped } from "svelte";
1
+ import { SvelteComponent } from "svelte";
2
2
  import type { QTabsProps } from "./props";
3
3
  declare const __propDef: {
4
4
  props: {
@@ -15,9 +15,9 @@ declare const __propDef: {
15
15
  default: {};
16
16
  };
17
17
  };
18
- export type QTabsProps = typeof __propDef.props;
18
+ type QTabsProps_ = typeof __propDef.props;
19
+ export { QTabsProps_ as QTabsProps };
19
20
  export type QTabsEvents = typeof __propDef.events;
20
21
  export type QTabsSlots = typeof __propDef.slots;
21
- export default class QTabs extends SvelteComponentTyped<QTabsProps, QTabsEvents, QTabsSlots> {
22
+ export default class QTabs extends SvelteComponent<QTabsProps, QTabsEvents, QTabsSlots> {
22
23
  }
23
- export {};
@@ -1,4 +1,4 @@
1
- import { SvelteComponentTyped } from "svelte";
1
+ import { SvelteComponent } from "svelte";
2
2
  import type { QToggleProps } from "./props";
3
3
  declare const __propDef: {
4
4
  props: {
@@ -15,9 +15,9 @@ declare const __propDef: {
15
15
  };
16
16
  slots: {};
17
17
  };
18
- export type QToggleProps = typeof __propDef.props;
18
+ type QToggleProps_ = typeof __propDef.props;
19
+ export { QToggleProps_ as QToggleProps };
19
20
  export type QToggleEvents = typeof __propDef.events;
20
21
  export type QToggleSlots = typeof __propDef.slots;
21
- export default class QToggle extends SvelteComponentTyped<QToggleProps, QToggleEvents, QToggleSlots> {
22
+ export default class QToggle extends SvelteComponent<QToggleProps, QToggleEvents, QToggleSlots> {
22
23
  }
23
- export {};
@@ -1,2 +1,2 @@
1
- import type { QComponentDocs } from "$utils/types";
1
+ import type { QComponentDocs } from "../../utils/types";
2
2
  export declare let QToggleDocs: QComponentDocs;
@@ -1,4 +1,4 @@
1
- import { type NativeProps } from "$utils/types";
1
+ import { type NativeProps } from "../../utils/types";
2
2
  export interface QToggleProps extends NativeProps {
3
3
  value?: boolean;
4
4
  label?: string;
@@ -1,4 +1,4 @@
1
- import { NativePropsDefaults } from "$utils/types";
1
+ import { NativePropsDefaults } from "../../utils/types";
2
2
  export const QTogglePropsDefaults = {
3
3
  value: false,
4
4
  label: undefined,
@@ -1,4 +1,4 @@
1
- import { SvelteComponentTyped } from "svelte";
1
+ import { SvelteComponent } from "svelte";
2
2
  import type { QToolbarProps } from "./props";
3
3
  declare const __propDef: {
4
4
  props: {
@@ -15,9 +15,9 @@ declare const __propDef: {
15
15
  default: {};
16
16
  };
17
17
  };
18
- export type QToolbarProps = typeof __propDef.props;
18
+ type QToolbarProps_ = typeof __propDef.props;
19
+ export { QToolbarProps_ as QToolbarProps };
19
20
  export type QToolbarEvents = typeof __propDef.events;
20
21
  export type QToolbarSlots = typeof __propDef.slots;
21
- export default class QToolbar extends SvelteComponentTyped<QToolbarProps, QToolbarEvents, QToolbarSlots> {
22
+ export default class QToolbar extends SvelteComponent<QToolbarProps, QToolbarEvents, QToolbarSlots> {
22
23
  }
23
- export {};
@@ -1,4 +1,4 @@
1
- import { SvelteComponentTyped } from "svelte";
1
+ import { SvelteComponent } from "svelte";
2
2
  import type { QTooltipProps } from "./props";
3
3
  declare const __propDef: {
4
4
  props: {
@@ -14,9 +14,9 @@ declare const __propDef: {
14
14
  default: {};
15
15
  };
16
16
  };
17
- export type QTooltipProps = typeof __propDef.props;
17
+ type QTooltipProps_ = typeof __propDef.props;
18
+ export { QTooltipProps_ as QTooltipProps };
18
19
  export type QTooltipEvents = typeof __propDef.events;
19
20
  export type QTooltipSlots = typeof __propDef.slots;
20
- export default class QTooltip extends SvelteComponentTyped<QTooltipProps, QTooltipEvents, QTooltipSlots> {
21
+ export default class QTooltip extends SvelteComponent<QTooltipProps, QTooltipEvents, QTooltipSlots> {
21
22
  }
22
- export {};
@@ -291,7 +291,9 @@
291
291
  left: 1rem;
292
292
  font-size: 1rem;
293
293
  transform: translateY(-50%);
294
- transition: var(--speed2) all, 0s background-color;
294
+ transition:
295
+ var(--speed2) all,
296
+ 0s background-color;
295
297
  z-index: 0;
296
298
  }
297
299
  }
@@ -22,7 +22,9 @@
22
22
  text-align: left;
23
23
  border-radius: 0.25rem;
24
24
  transform: scale(0.8) translateY(120%);
25
- transition: var(--speed2) all, 0s background-color;
25
+ transition:
26
+ var(--speed2) all,
27
+ 0s background-color;
26
28
 
27
29
  &--active {
28
30
  opacity: 1;
@@ -77,7 +77,10 @@
77
77
  @mixin responsive($parent: null) {
78
78
  object-fit: cover;
79
79
  object-position: center;
80
- transition: var(--speed3) transform, var(--speed3) border-radius, var(--speed3) padding;
80
+ transition:
81
+ var(--speed3) transform,
82
+ var(--speed3) border-radius,
83
+ var(--speed3) padding;
81
84
  width: 100%;
82
85
  height: 100%;
83
86
 
@@ -2,8 +2,9 @@
2
2
  .disabled {
3
3
  opacity: 0.5;
4
4
  cursor: not-allowed;
5
-
6
- &::before, &::after {
5
+
6
+ &::before,
7
+ &::after {
7
8
  all: unset;
8
9
  }
9
10
  }
package/dist/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from "$components";
1
+ export * from "./components";
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // Reexport your entry components here
2
- export * from "$components";
2
+ export * from "./components";
@@ -1,3 +1,4 @@
1
+ /// <reference types="svelte" />
1
2
  interface IMaterialDynamicColorsThemeColorFormatted {
2
3
  primary: string;
3
4
  "on-primary": string;
@@ -33,7 +34,7 @@ interface IMaterialDynamicColorsThemeFormatted {
33
34
  }
34
35
  type CSSDynamicColor = `${keyof IMaterialDynamicColorsThemeColorFormatted}-${keyof IMaterialDynamicColorsThemeFormatted}`;
35
36
  export declare const QTheme: {
36
- subscribe: (this: void, run: import("svelte/store").Subscriber<Record<"error-dark" | "error-light" | "outline-dark" | "outline-light" | "primary-dark" | "primary-light" | "secondary-dark" | "secondary-light" | "tertiary-dark" | "tertiary-light" | "surface-dark" | "surface-light" | "surface-variant-dark" | "surface-variant-light" | "on-primary-dark" | "on-primary-light" | "primary-container-dark" | "primary-container-light" | "on-primary-container-dark" | "on-primary-container-light" | "on-secondary-dark" | "on-secondary-light" | "secondary-container-dark" | "secondary-container-light" | "on-secondary-container-dark" | "on-secondary-container-light" | "on-tertiary-dark" | "on-tertiary-light" | "tertiary-container-dark" | "tertiary-container-light" | "on-tertiary-container-dark" | "on-tertiary-container-light" | "error-container-dark" | "error-container-light" | "on-error-dark" | "on-error-light" | "on-error-container-dark" | "on-error-container-light" | "background-dark" | "background-light" | "on-background-dark" | "on-background-light" | "on-surface-dark" | "on-surface-light" | "on-surface-variant-dark" | "on-surface-variant-light" | "inverse-on-surface-dark" | "inverse-on-surface-light" | "inverse-surface-dark" | "inverse-surface-light" | "inverse-primary-dark" | "inverse-primary-light" | "shadow-dark" | "shadow-light", string>>, invalidate?: ((value?: Record<"error-dark" | "error-light" | "outline-dark" | "outline-light" | "primary-dark" | "primary-light" | "secondary-dark" | "secondary-light" | "tertiary-dark" | "tertiary-light" | "surface-dark" | "surface-light" | "surface-variant-dark" | "surface-variant-light" | "on-primary-dark" | "on-primary-light" | "primary-container-dark" | "primary-container-light" | "on-primary-container-dark" | "on-primary-container-light" | "on-secondary-dark" | "on-secondary-light" | "secondary-container-dark" | "secondary-container-light" | "on-secondary-container-dark" | "on-secondary-container-light" | "on-tertiary-dark" | "on-tertiary-light" | "tertiary-container-dark" | "tertiary-container-light" | "on-tertiary-container-dark" | "on-tertiary-container-light" | "error-container-dark" | "error-container-light" | "on-error-dark" | "on-error-light" | "on-error-container-dark" | "on-error-container-light" | "background-dark" | "background-light" | "on-background-dark" | "on-background-light" | "on-surface-dark" | "on-surface-light" | "on-surface-variant-dark" | "on-surface-variant-light" | "inverse-on-surface-dark" | "inverse-on-surface-light" | "inverse-surface-dark" | "inverse-surface-light" | "inverse-primary-dark" | "inverse-primary-light" | "shadow-dark" | "shadow-light", string> | undefined) => void) | undefined) => import("svelte/store").Unsubscriber;
37
+ subscribe: (this: void, run: import("svelte/store").Subscriber<Record<"error-dark" | "error-light" | "outline-dark" | "outline-light" | "primary-dark" | "primary-light" | "secondary-dark" | "secondary-light" | "tertiary-dark" | "tertiary-light" | "surface-dark" | "surface-light" | "surface-variant-dark" | "surface-variant-light" | "on-primary-dark" | "on-primary-light" | "primary-container-dark" | "primary-container-light" | "on-primary-container-dark" | "on-primary-container-light" | "on-secondary-dark" | "on-secondary-light" | "secondary-container-dark" | "secondary-container-light" | "on-secondary-container-dark" | "on-secondary-container-light" | "on-tertiary-dark" | "on-tertiary-light" | "tertiary-container-dark" | "tertiary-container-light" | "on-tertiary-container-dark" | "on-tertiary-container-light" | "error-container-dark" | "error-container-light" | "on-error-dark" | "on-error-light" | "on-error-container-dark" | "on-error-container-light" | "background-dark" | "background-light" | "on-background-dark" | "on-background-light" | "on-surface-dark" | "on-surface-light" | "on-surface-variant-dark" | "on-surface-variant-light" | "inverse-on-surface-dark" | "inverse-on-surface-light" | "inverse-surface-dark" | "inverse-surface-light" | "inverse-primary-dark" | "inverse-primary-light" | "shadow-dark" | "shadow-light", string>>, invalidate?: import("svelte/store").Invalidator<Record<"error-dark" | "error-light" | "outline-dark" | "outline-light" | "primary-dark" | "primary-light" | "secondary-dark" | "secondary-light" | "tertiary-dark" | "tertiary-light" | "surface-dark" | "surface-light" | "surface-variant-dark" | "surface-variant-light" | "on-primary-dark" | "on-primary-light" | "primary-container-dark" | "primary-container-light" | "on-primary-container-dark" | "on-primary-container-light" | "on-secondary-dark" | "on-secondary-light" | "secondary-container-dark" | "secondary-container-light" | "on-secondary-container-dark" | "on-secondary-container-light" | "on-tertiary-dark" | "on-tertiary-light" | "tertiary-container-dark" | "tertiary-container-light" | "on-tertiary-container-dark" | "on-tertiary-container-light" | "error-container-dark" | "error-container-light" | "on-error-dark" | "on-error-light" | "on-error-container-dark" | "on-error-container-light" | "background-dark" | "background-light" | "on-background-dark" | "on-background-light" | "on-surface-dark" | "on-surface-light" | "on-surface-variant-dark" | "on-surface-variant-light" | "inverse-on-surface-dark" | "inverse-on-surface-light" | "inverse-surface-dark" | "inverse-surface-light" | "inverse-primary-dark" | "inverse-primary-light" | "shadow-dark" | "shadow-light", string>> | undefined) => import("svelte/store").Unsubscriber;
37
38
  setThemeColors: (from: string) => Promise<void>;
38
39
  updateThemeColor: (color: CSSDynamicColor, newValue: string) => void;
39
40
  apply: () => void;
@@ -1,12 +1,13 @@
1
+ /// <reference types="svelte" />
1
2
  /// <reference types="@sveltejs/kit" />
2
3
  export declare const quaffStore: {
3
4
  subscribe: (this: void, run: import("svelte/store").Subscriber<{
4
5
  version: string;
5
6
  dark: boolean;
6
- }>, invalidate?: ((value?: {
7
+ }>, invalidate?: import("svelte/store").Invalidator<{
7
8
  version: string;
8
9
  dark: boolean;
9
- } | undefined) => void) | undefined) => import("svelte/store").Unsubscriber;
10
+ }> | undefined) => import("svelte/store").Unsubscriber;
10
11
  setDarkMode: (newVal: boolean) => void;
11
12
  toggleDarkMode: () => void;
12
13
  };
@@ -22,10 +23,10 @@ export declare const Quaff: import("svelte/store").Readable<{
22
23
  quaff: (this: void, run: import("svelte/store").Subscriber<{
23
24
  version: string;
24
25
  dark: boolean;
25
- }>, invalidate?: ((value?: {
26
+ }>, invalidate?: import("svelte/store").Invalidator<{
26
27
  version: string;
27
28
  dark: boolean;
28
- } | undefined) => void) | undefined) => import("svelte/store").Unsubscriber;
29
- page: (this: void, run: import("svelte/store").Subscriber<import("@sveltejs/kit").Page<Record<string, string>, string | null>>, invalidate?: ((value?: import("@sveltejs/kit").Page<Record<string, string>, string | null> | undefined) => void) | undefined) => import("svelte/store").Unsubscriber;
29
+ }> | undefined) => import("svelte/store").Unsubscriber;
30
+ page: (this: void, run: import("svelte/store").Subscriber<import("@sveltejs/kit").Page<Record<string, string>, string | null>>, invalidate?: import("svelte/store").Invalidator<import("@sveltejs/kit").Page<Record<string, string>, string | null>> | undefined) => import("svelte/store").Unsubscriber;
30
31
  };
31
32
  }>;
@@ -1,2 +1,3 @@
1
+ /// <reference types="svelte" />
1
2
  import { Readable, Writable } from "svelte/store";
2
3
  export declare function watchable<T>(value: T): readonly [Writable<T>, Readable<T | null>];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quaffui/quaff",
3
- "version": "0.1.0-prealpha",
3
+ "version": "0.1.0-prealpha3",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "open": "vite dev --open",
@@ -28,38 +28,38 @@
28
28
  "!dist/**/*.spec.*"
29
29
  ],
30
30
  "peerDependencies": {
31
- "svelte": "^3.54.0"
31
+ "svelte": "^4.0.0"
32
32
  },
33
33
  "devDependencies": {
34
- "@sveltejs/adapter-auto": "^2.0.0",
35
- "@sveltejs/kit": "^1.5.0",
36
- "@sveltejs/package": "^2.0.0",
37
- "@types/node": "^20.3.1",
34
+ "@sveltejs/adapter-auto": "^2.1.0",
35
+ "@sveltejs/kit": "^1.22.4",
36
+ "@sveltejs/package": "^2.2.0",
37
+ "@types/node": "^20.4.6",
38
38
  "@types/prettier": "^2.7.3",
39
39
  "@types/prismjs": "^1.26.0",
40
- "@typescript-eslint/eslint-plugin": "^5.45.0",
41
- "@typescript-eslint/parser": "^5.45.0",
42
- "eslint": "^8.28.0",
43
- "eslint-config-prettier": "^8.5.0",
44
- "eslint-plugin-svelte": "^2.26.0",
45
- "prettier": "^2.8.0",
46
- "prettier-plugin-svelte": "^2.8.1",
47
- "publint": "^0.1.9",
48
- "sass": "^1.62.1",
49
- "svelte": "^3.54.0",
50
- "svelte-check": "^3.0.1",
40
+ "@typescript-eslint/eslint-plugin": "^6.2.1",
41
+ "@typescript-eslint/parser": "^6.2.1",
42
+ "eslint": "^8.46.0",
43
+ "eslint-config-prettier": "^8.9.0",
44
+ "eslint-plugin-svelte": "^2.32.4",
45
+ "prettier": "^3.0.0",
46
+ "prettier-plugin-svelte": "^3.0.3",
47
+ "publint": "^0.2.0",
48
+ "sass": "^1.64.2",
49
+ "svelte": "^4.1.2",
50
+ "svelte-check": "^3.4.6",
51
51
  "ts-node": "^10.9.1",
52
- "tslib": "^2.4.1",
53
- "typescript": "^5.0.0",
54
- "vite": "^4.3.0",
55
- "vitest": "^0.25.3"
52
+ "tslib": "^2.6.1",
53
+ "typescript": "^5.1.6",
54
+ "vite": "^4.4.8",
55
+ "vitest": "^0.34.1"
56
56
  },
57
57
  "svelte": "./dist/index.js",
58
58
  "types": "./dist/index.d.ts",
59
59
  "type": "module",
60
60
  "dependencies": {
61
- "beercss": "^3.2.6",
62
- "material-dynamic-colors": "^0.1.7",
61
+ "beercss": "^3.2.13",
62
+ "material-dynamic-colors": "^1.0.1",
63
63
  "prism-svelte": "0.5.0",
64
64
  "prismjs": "^1.29.0"
65
65
  }