@quaffui/quaff 0.1.0-prealpha14 → 0.1.0-prealpha16

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 (155) hide show
  1. package/dist/components/avatar/QAvatar.svelte +46 -28
  2. package/dist/components/avatar/QAvatar.svelte.d.ts +0 -1
  3. package/dist/components/avatar/docs.d.ts +1 -1
  4. package/dist/components/avatar/docs.js +1 -1
  5. package/dist/components/avatar/docs.props.js +2 -0
  6. package/dist/components/breadcrumbs/QBreadcrumbs.svelte +3 -9
  7. package/dist/components/breadcrumbs/QBreadcrumbsEl.svelte +8 -18
  8. package/dist/components/breadcrumbs/docs.d.ts +1 -1
  9. package/dist/components/breadcrumbs/docs.js +1 -1
  10. package/dist/components/breadcrumbs/docs.props.js +2 -0
  11. package/dist/components/button/QBtn.svelte +15 -20
  12. package/dist/components/button/docs.d.ts +1 -1
  13. package/dist/components/button/docs.js +1 -1
  14. package/dist/components/button/docs.props.js +2 -0
  15. package/dist/components/button/index.scss +6 -1
  16. package/dist/components/card/QCard.svelte +8 -9
  17. package/dist/components/card/QCardActions.svelte +6 -10
  18. package/dist/components/card/QCardSection.svelte +7 -9
  19. package/dist/components/card/docs.d.ts +3 -3
  20. package/dist/components/card/docs.js +3 -3
  21. package/dist/components/card/docs.props.js +2 -0
  22. package/dist/components/checkbox/QCheckbox.svelte +2 -8
  23. package/dist/components/checkbox/docs.d.ts +1 -1
  24. package/dist/components/checkbox/docs.js +1 -1
  25. package/dist/components/checkbox/docs.props.js +2 -0
  26. package/dist/components/chip/QChip.svelte +20 -24
  27. package/dist/components/chip/docs.d.ts +1 -1
  28. package/dist/components/chip/docs.js +1 -1
  29. package/dist/components/chip/docs.props.js +2 -0
  30. package/dist/components/codeBlock/QCodeBlock.svelte +8 -12
  31. package/dist/components/codeBlock/QCodeBlock.svelte.d.ts +1 -0
  32. package/dist/components/codeBlock/docs.props.js +3 -1
  33. package/dist/components/codeBlock/props.d.ts +1 -1
  34. package/dist/components/dialog/QDialog.svelte +38 -47
  35. package/dist/components/dialog/QDialog.svelte.d.ts +6 -5
  36. package/dist/components/dialog/docs.d.ts +1 -1
  37. package/dist/components/dialog/docs.js +1 -1
  38. package/dist/components/dialog/docs.props.js +6 -4
  39. package/dist/components/dialog/index.scss +5 -4
  40. package/dist/components/dialog/props.d.ts +4 -4
  41. package/dist/components/drawer/QDrawer.svelte +1 -4
  42. package/dist/components/drawer/QDrawer.svelte.d.ts +0 -7
  43. package/dist/components/drawer/docs.d.ts +1 -1
  44. package/dist/components/drawer/docs.js +1 -1
  45. package/dist/components/drawer/docs.props.js +2 -0
  46. package/dist/components/footer/QFooter.svelte +7 -5
  47. package/dist/components/footer/docs.d.ts +1 -1
  48. package/dist/components/footer/docs.js +1 -1
  49. package/dist/components/footer/docs.props.js +2 -0
  50. package/dist/components/header/docs.props.js +2 -0
  51. package/dist/components/icon/QIcon.svelte +9 -16
  52. package/dist/components/icon/QIcon.svelte.d.ts +0 -1
  53. package/dist/components/icon/docs.d.ts +1 -1
  54. package/dist/components/icon/docs.js +1 -1
  55. package/dist/components/icon/docs.props.js +4 -2
  56. package/dist/components/icon/props.d.ts +2 -2
  57. package/dist/components/input/docs.d.ts +1 -1
  58. package/dist/components/input/docs.js +1 -1
  59. package/dist/components/input/docs.props.js +2 -0
  60. package/dist/components/layout/docs.d.ts +1 -1
  61. package/dist/components/layout/docs.js +1 -1
  62. package/dist/components/layout/docs.props.js +2 -0
  63. package/dist/components/list/QItem.svelte +25 -25
  64. package/dist/components/list/QItemSection.svelte +3 -9
  65. package/dist/components/list/QList.svelte +13 -13
  66. package/dist/components/list/docs.d.ts +1 -1
  67. package/dist/components/list/docs.js +1 -1
  68. package/dist/components/list/docs.props.js +2 -0
  69. package/dist/components/list/props.d.ts +1 -1
  70. package/dist/components/list/props.js +1 -1
  71. package/dist/components/private/QApi.svelte +14 -7
  72. package/dist/components/private/QApi.svelte.d.ts +1 -1
  73. package/dist/components/private/QDocs.svelte +3 -13
  74. package/dist/components/private/QDocs.svelte.d.ts +1 -1
  75. package/dist/components/private/QDocsSection.svelte +6 -14
  76. package/dist/components/private/QDocsSection.svelte.d.ts +7 -17
  77. package/dist/components/progress/QCircularProgress.svelte +13 -9
  78. package/dist/components/progress/QLinearProgress.svelte +17 -23
  79. package/dist/components/progress/QLinearProgress.svelte.d.ts +0 -1
  80. package/dist/components/progress/docs.d.ts +1 -1
  81. package/dist/components/progress/docs.js +1 -1
  82. package/dist/components/progress/docs.props.js +2 -0
  83. package/dist/components/progress/index.scss +20 -3
  84. package/dist/components/radio/QRadio.svelte +2 -8
  85. package/dist/components/radio/docs.d.ts +1 -1
  86. package/dist/components/radio/docs.js +1 -1
  87. package/dist/components/radio/docs.props.js +3 -1
  88. package/dist/components/radio/props.d.ts +1 -1
  89. package/dist/components/railbar/docs.d.ts +1 -1
  90. package/dist/components/railbar/docs.js +1 -1
  91. package/dist/components/railbar/docs.props.js +2 -0
  92. package/dist/components/select/docs.d.ts +1 -1
  93. package/dist/components/select/docs.js +1 -1
  94. package/dist/components/select/docs.props.js +2 -0
  95. package/dist/components/separator/QSeparator.svelte +38 -44
  96. package/dist/components/separator/docs.d.ts +1 -1
  97. package/dist/components/separator/docs.js +1 -1
  98. package/dist/components/separator/docs.props.js +2 -0
  99. package/dist/components/table/QTable.svelte +8 -15
  100. package/dist/components/table/docs.d.ts +1 -1
  101. package/dist/components/table/docs.js +1 -1
  102. package/dist/components/table/docs.props.js +2 -0
  103. package/dist/components/tabs/QTab.svelte +2 -7
  104. package/dist/components/tabs/QTabs.svelte +2 -6
  105. package/dist/components/tabs/docs.d.ts +1 -1
  106. package/dist/components/tabs/docs.js +1 -1
  107. package/dist/components/tabs/docs.props.js +3 -1
  108. package/dist/components/tabs/props.js +1 -1
  109. package/dist/components/toggle/QToggle.svelte +7 -15
  110. package/dist/components/toggle/docs.d.ts +1 -1
  111. package/dist/components/toggle/docs.js +1 -1
  112. package/dist/components/toggle/docs.props.js +2 -0
  113. package/dist/components/toolbar/QToolbar.svelte +12 -16
  114. package/dist/components/toolbar/QToolbar.svelte.d.ts +0 -1
  115. package/dist/components/toolbar/docs.d.ts +1 -1
  116. package/dist/components/toolbar/docs.js +1 -1
  117. package/dist/components/toolbar/docs.props.js +2 -0
  118. package/dist/components/tooltip/QTooltip.svelte +10 -8
  119. package/dist/components/tooltip/docs.d.ts +1 -1
  120. package/dist/components/tooltip/docs.js +1 -1
  121. package/dist/components/tooltip/docs.props.js +2 -0
  122. package/dist/components/tooltip/index.scss +1 -0
  123. package/dist/composables/index.d.ts +3 -3
  124. package/dist/composables/index.js +3 -3
  125. package/dist/composables/{use-size.d.ts → useSize.d.ts} +1 -1
  126. package/dist/composables/{use-size.js → useSize.js} +1 -1
  127. package/dist/css/fonts.scss +16 -3
  128. package/dist/css/index.css +1 -1
  129. package/dist/css/mixins/field-mixins.scss +9 -8
  130. package/dist/css/mixins.scss +3 -1
  131. package/dist/css/ripple.scss +9 -2
  132. package/dist/css/shared/q-field.scss +62 -49
  133. package/dist/css/theme/colors.module.scss +12 -12
  134. package/dist/global.d.ts +1 -1
  135. package/dist/helpers/clickOutside.d.ts +2 -2
  136. package/dist/helpers/clickOutside.js +3 -3
  137. package/dist/helpers/ripple.js +13 -11
  138. package/dist/helpers/version.d.ts +1 -1
  139. package/dist/helpers/version.js +1 -1
  140. package/dist/stores/QTheme.js +5 -6
  141. package/dist/stores/Quaff.js +1 -1
  142. package/dist/utils/clipboard.js +2 -2
  143. package/dist/utils/colors.js +2 -1
  144. package/dist/utils/dom.js +4 -4
  145. package/dist/utils/props.d.ts +2 -2
  146. package/dist/utils/props.js +5 -5
  147. package/dist/utils/string.js +1 -1
  148. package/dist/utils/types.d.ts +2 -2
  149. package/dist/utils/types.json +24 -1
  150. package/dist/utils/watchable.js +1 -1
  151. package/package.json +7 -7
  152. /package/dist/composables/{use-align.d.ts → useAlign.d.ts} +0 -0
  153. /package/dist/composables/{use-align.js → useAlign.js} +0 -0
  154. /package/dist/composables/{use-router-link.d.ts → useRouterLink.d.ts} +0 -0
  155. /package/dist/composables/{use-router-link.js → useRouterLink.js} +0 -0
@@ -1,3 +1,5 @@
1
+ // AUTO GENERATED FILE - DO NOT MODIFY OR DELETE
2
+ // @quaffHash 709e51aed5c99e14ee5c52eee28c2998
1
3
  export const QSeparatorPropsVertical = [
2
4
  {
3
5
  name: "spacing",
@@ -1,4 +1,4 @@
1
- import type { UseRouterLinkProps } from "../../composables/use-router-link";
1
+ import type { UseRouterLinkProps } from "../../composables/useRouterLink";
2
2
  import type { QSeparatorProps } from "../separator/props";
3
3
  import type { HTMLAnchorAttributes, HTMLAttributes } from "svelte/elements";
4
4
  import type { NativeProps } from "../../utils";
@@ -1,5 +1,5 @@
1
1
  import { NativePropsDefaults } from "../../utils";
2
- import { UseRouterLinkPropsDefaults } from "../../composables/use-router-link";
2
+ import { UseRouterLinkPropsDefaults } from "../../composables/useRouterLink";
3
3
  export const QListPropsDefaults = {
4
4
  bordered: false,
5
5
  roundedBorders: false,
@@ -12,10 +12,10 @@
12
12
  } from "../..";
13
13
  import { capitalize } from "../../utils";
14
14
  import Types from "../../utils/types.json";
15
- export let QComponentDocs;
16
- let api = QComponentDocs.map((_doc) => "props");
15
+ export let componentDocs;
16
+ let api = componentDocs.map(() => "props");
17
17
  let drawer = Object.fromEntries(
18
- QComponentDocs.map((doc) => [
18
+ componentDocs.map((doc) => [
19
19
  doc.name,
20
20
  Object.fromEntries(
21
21
  doc.docs.props.map((prop) => [prop.name, prop.clickableType ? false : void 0])
@@ -53,7 +53,7 @@ function handleDrawer(QDocument, doc, e) {
53
53
  }
54
54
  </script>
55
55
 
56
- {#each QComponentDocs as QDocument, index}
56
+ {#each componentDocs as QDocument, index}
57
57
  <QCard class="q-px-none q-pb-none q-mt-lg">
58
58
  <div slot="title" class="flex justify-between items-center q-px-md">
59
59
  <h5 class="no-margin">
@@ -92,7 +92,7 @@ function handleDrawer(QDocument, doc, e) {
92
92
  {#if isProp(doc, index)}
93
93
  {doc.optional ? "?" : ""}
94
94
  {#if doc.clickableType === true}
95
- <!-- svelte-ignore a11y-click-events-have-key-events -->
95
+ <!-- svelte-ignore a11y-click-events-have-key-events a11y-no-static-element-interactions -->
96
96
  <span
97
97
  class="prop-type clickable"
98
98
  on:click={(e) => isProp(doc, index) && handleDrawer(QDocument, doc, e)}
@@ -113,6 +113,7 @@ function handleDrawer(QDocument, doc, e) {
113
113
  </span>
114
114
  </div>
115
115
  <div slot="line1" class="q-mt-sm prop-description" style="white-space: normal;">
116
+ <!-- eslint-disable-next-line svelte/no-at-html-tags -->
116
117
  {@html doc.description}
117
118
  </div>
118
119
  </QItemSection>
@@ -130,8 +131,14 @@ function handleDrawer(QDocument, doc, e) {
130
131
  color: var(--primary);
131
132
  }
132
133
 
133
- .q-item {
134
- overflow: visible;
134
+ .prop-type {
135
+ opacity: 0.75;
136
+ }
137
+ .prop-type.clickable {
138
+ cursor: pointer;
139
+ }
140
+ .prop-type.clickable:hover {
141
+ opacity: 1;
135
142
  }
136
143
 
137
144
  :global(.q-drawer.api-drawer pre) {
@@ -2,7 +2,7 @@ import { SvelteComponent } from "svelte";
2
2
  import type { QComponentDocs } from "../../utils";
3
3
  declare const __propDef: {
4
4
  props: {
5
- QComponentDocs: QComponentDocs[];
5
+ componentDocs: QComponentDocs[];
6
6
  };
7
7
  events: {
8
8
  [evt: string]: CustomEvent<any>;
@@ -1,10 +1,10 @@
1
1
  <script>import { Quaff } from "../../stores";
2
2
  import { QCard, QCardSection } from "../..";
3
3
  import QApi from "./QApi.svelte";
4
- export let QComponentDocs;
4
+ export let componentDocs;
5
5
  $:
6
6
  isDark = $Quaff.dark.isActive;
7
- let principalDocument = Array.isArray(QComponentDocs) ? QComponentDocs[0] : QComponentDocs;
7
+ let principalDocument = Array.isArray(componentDocs) ? componentDocs[0] : componentDocs;
8
8
  </script>
9
9
 
10
10
  <div class="q-docs" style="margin: 1rem">
@@ -39,7 +39,7 @@ let principalDocument = Array.isArray(QComponentDocs) ? QComponentDocs[0] : QCom
39
39
  </QCard>
40
40
  </div>
41
41
 
42
- <QApi QComponentDocs={Array.isArray(QComponentDocs) ? QComponentDocs : [QComponentDocs]} />
42
+ <QApi componentDocs={Array.isArray(componentDocs) ? componentDocs : [componentDocs]} />
43
43
 
44
44
  {#if $$slots.usage}
45
45
  <div class="s12 q-pa-md">
@@ -78,16 +78,6 @@ let principalDocument = Array.isArray(QComponentDocs) ? QComponentDocs[0] : QCom
78
78
  font-size: 1.75rem;
79
79
  }
80
80
 
81
- .prop-type {
82
- opacity: 0.75;
83
- }
84
- .prop-type.clickable {
85
- cursor: pointer;
86
- }
87
- .prop-type.clickable:hover {
88
- opacity: 1;
89
- }
90
-
91
81
  .heading-usage {
92
82
  display: flex;
93
83
  align-items: center;
@@ -2,7 +2,7 @@ import { SvelteComponent } from "svelte";
2
2
  import type { QComponentDocs } from "../../utils";
3
3
  declare const __propDef: {
4
4
  props: {
5
- QComponentDocs: QComponentDocs | QComponentDocs[];
5
+ componentDocs: QComponentDocs | QComponentDocs[];
6
6
  };
7
7
  events: {
8
8
  [evt: string]: CustomEvent<any>;
@@ -1,9 +1,6 @@
1
- <script>
2
- import { QCodeBlock, QDialog } from "../..";
3
-
4
- export let title, snippets;
5
-
6
- let dialog = false;
1
+ <script>import { QCodeBlock, QDialog } from "../..";
2
+ export let title, snippets = void 0;
3
+ let dialog = false;
7
4
  </script>
8
5
 
9
6
  <div style="margin-bottom:48px">
@@ -13,8 +10,9 @@
13
10
  <QDialog
14
11
  class="snippet-dialog"
15
12
  bind:value={dialog}
16
- btnAttrs={{ outline: true, round: true, icon: "code" }}
17
- on:btnClick={() => (dialog = true)}
13
+ button
14
+ buttonProps={{ outline: true, round: true, icon: "code" }}
15
+ on:buttonClick={() => (dialog = true)}
18
16
  modal
19
17
  >
20
18
  <QCodeBlock code={snippets[title]} language="svelte" {title} copiable />
@@ -23,9 +21,3 @@
23
21
  </div>
24
22
  <slot />
25
23
  </div>
26
-
27
- <style>
28
- pre {
29
- max-height: 400px;
30
- }
31
- </style>
@@ -1,23 +1,8 @@
1
- /** @typedef {typeof __propDef.props} QDocsSectionProps */
2
- /** @typedef {typeof __propDef.events} QDocsSectionEvents */
3
- /** @typedef {typeof __propDef.slots} QDocsSectionSlots */
4
- export default class QDocsSection extends SvelteComponent<{
5
- title: any;
6
- snippets: any;
7
- }, {
8
- [evt: string]: CustomEvent<any>;
9
- }, {
10
- default: {};
11
- }> {
12
- }
13
- export type QDocsSectionProps = typeof __propDef.props;
14
- export type QDocsSectionEvents = typeof __propDef.events;
15
- export type QDocsSectionSlots = typeof __propDef.slots;
16
1
  import { SvelteComponent } from "svelte";
17
2
  declare const __propDef: {
18
3
  props: {
19
- title: any;
20
- snippets: any;
4
+ title: string;
5
+ snippets?: Record<string, string> | undefined;
21
6
  };
22
7
  events: {
23
8
  [evt: string]: CustomEvent<any>;
@@ -26,4 +11,9 @@ declare const __propDef: {
26
11
  default: {};
27
12
  };
28
13
  };
14
+ export type QDocsSectionProps = typeof __propDef.props;
15
+ export type QDocsSectionEvents = typeof __propDef.events;
16
+ export type QDocsSectionSlots = typeof __propDef.slots;
17
+ export default class QDocsSection extends SvelteComponent<QDocsSectionProps, QDocsSectionEvents, QDocsSectionSlots> {
18
+ }
29
19
  export {};
@@ -1,26 +1,28 @@
1
1
  <script>import { useSize } from "../../composables";
2
- import { createClasses } from "../../utils";
3
- export let value = 0, indeterminate = false, size = "2em", color = void 0, thickness = 5, userClasses = void 0;
2
+ export let value = 0, indeterminate = false, size = "2rem", color = void 0, thickness = 5, userClasses = void 0;
4
3
  export { userClasses as class };
5
4
  $:
6
5
  spinnerSize = useSize(size);
6
+ const circumference = 2 * Math.PI * 20;
7
7
  $:
8
- classes = createClasses([indeterminate && "indeterminate"], {
9
- component: "q-circular-progress",
10
- quaffClasses: [color && `text-${color}`],
11
- userClasses
12
- });
8
+ progressOffset = (100 - value) / 100 * circumference;
13
9
  </script>
14
10
 
15
11
  <svg
16
- class={classes}
12
+ class="q-circular-progress {color ? `text-${color}` : ''} {userClasses}"
13
+ class:q-circular-progress--indeterminate={indeterminate}
17
14
  height={spinnerSize.style}
18
15
  width={spinnerSize.style}
19
16
  viewBox="25 25 50 50"
17
+ style="transform: rotate3d(0, 0, 1, -90deg);"
18
+ role="progressbar"
19
+ aria-valuenow={value}
20
+ aria-valuemin={0}
21
+ aria-valuemax={100}
20
22
  {...$$restProps}
21
23
  >
22
24
  <circle
23
- class="path"
25
+ class="q-circular-progress__path"
24
26
  cx="50"
25
27
  cy="50"
26
28
  r="20"
@@ -28,5 +30,7 @@ $:
28
30
  stroke="currentColor"
29
31
  stroke-width={thickness}
30
32
  stroke-miterlimit="10"
33
+ stroke-dasharray={circumference}
34
+ stroke-dashoffset={progressOffset}
31
35
  />
32
36
  </svg>
@@ -1,26 +1,20 @@
1
- <script>import { createClasses, createStyles } from "../../utils";
2
- export let value = 0, from = "left", rounded = false, userClasses = void 0, userStyles = void 0;
3
- export { userClasses as class, userStyles as style };
4
- $:
5
- roundedStyle = {
6
- borderRadius: rounded ? "12px" : "0"
7
- };
8
- $:
9
- containerClasses = createClasses(["small-space", "border"], {
10
- component: "q-linear-progress",
11
- userClasses
12
- });
13
- $:
14
- progressClasses = createClasses([from], {
15
- component: "q-linear-progress",
16
- element: "progress"
17
- });
18
- $:
19
- containerStyle = createStyles(roundedStyle, userStyles);
20
- $:
21
- progressStyle = from === "right" ? `clip-path: polygon(100% 0%, 100% 100%, ${100 - value}% 100%, ${100 - value}% 0%);` : `clip-path: polygon(0% 0%, 0% 100%, ${value}% 100%, ${value}% 0%);`;
1
+ <script>export let value = 0, from = "left", rounded = false, userClasses = "";
2
+ export { userClasses as class };
22
3
  </script>
23
4
 
24
- <div class={containerClasses} style={containerStyle} {...$$restProps}>
25
- <div class={progressClasses} style={progressStyle} />
5
+ <div
6
+ class="q-linear-progress {userClasses}"
7
+ class:q-linear-progress--rounded={rounded}
8
+ class:q-linear-progress--right={from === "right"}
9
+ role="progressbar"
10
+ aria-valuenow={value}
11
+ aria-valuemin={0}
12
+ aria-valuemax={100}
13
+ {...$$restProps}
14
+ >
15
+ <div
16
+ class="q-linear-progress__progress"
17
+ class:q-linear-progress__progress--right={from === "right"}
18
+ style="--progress:{value}%"
19
+ />
26
20
  </div>
@@ -7,7 +7,6 @@ declare const __propDef: {
7
7
  from?: QLinearProgressProps["from"];
8
8
  rounded?: QLinearProgressProps["rounded"];
9
9
  class?: string | null | undefined;
10
- style?: string | null | undefined;
11
10
  };
12
11
  events: {
13
12
  [evt: string]: CustomEvent<any>;
@@ -1,2 +1,2 @@
1
1
  import type { QComponentDocs } from "../../utils";
2
- export declare let QProgressDocs: QComponentDocs;
2
+ export declare const QProgressDocs: QComponentDocs;
@@ -1,5 +1,5 @@
1
1
  import { QLinearProgressDocsProps } from "./docs.props";
2
- export let QProgressDocs = {
2
+ export const QProgressDocs = {
3
3
  name: "QProgress",
4
4
  description: "The QProgress component is used to display a progress bar, indicating the completion status of a task or process.",
5
5
  docs: {
@@ -1,3 +1,5 @@
1
+ // AUTO GENERATED FILE - DO NOT MODIFY OR DELETE
2
+ // @quaffHash 2d797d26b761264825c885770bbaeaf7
1
3
  export const QLinearProgressDocsProps = [
2
4
  {
3
5
  name: "value",
@@ -3,15 +3,28 @@
3
3
  height: 1rem;
4
4
  @include border;
5
5
 
6
+ &--rounded {
7
+ border-radius: 0.75rem;
8
+ }
9
+
6
10
  &__progress {
7
11
  position: absolute;
8
- background-color: var(--active);
12
+ background-color: var(--primary);
9
13
  top: 0;
10
14
  bottom: 0;
11
15
  left: 0;
12
16
  right: 0;
13
17
  transition: var(--speed4) clip-path;
14
- clip-path: polygon(0% 0%, 0% 0%, 0% 0%, 0% 0%);
18
+ clip-path: polygon(0% 0%, 0% 100%, var(--progress) 100%, var(--progress) 0%);
19
+ }
20
+
21
+ &--right &__progress {
22
+ clip-path: polygon(
23
+ 100% 0%,
24
+ 100% 100%,
25
+ calc(100% - var(--progress)) 100%,
26
+ calc(100% - var(--progress)) 0%
27
+ );
15
28
  }
16
29
  }
17
30
 
@@ -19,11 +32,15 @@
19
32
  .q-circular-progress {
20
33
  vertical-align: middle;
21
34
 
35
+ .q-circular-progress__path {
36
+ transition: stroke-dashoffset 0.3s ease;
37
+ }
38
+
22
39
  &--indeterminate {
23
40
  animation: q-spin 2s linear infinite;
24
41
  transform-origin: center center;
25
42
 
26
- & .path {
43
+ .q-circular-progress__path {
27
44
  stroke-dasharray: 1, 200;
28
45
  stroke-dashoffset: 0;
29
46
  animation: q-load 1.5s ease-in-out infinite;
@@ -1,14 +1,8 @@
1
- <script>import { createClasses } from "../../utils";
2
- export let value = "", label = "", selected = void 0, disable = false, userClasses = "";
1
+ <script>export let value = "", label = "", selected = void 0, disable = false, userClasses = "";
3
2
  export { userClasses as class };
4
- $:
5
- classes = createClasses([disable && "disabled"], {
6
- component: "q-radio",
7
- userClasses
8
- });
9
3
  </script>
10
4
 
11
- <label class={classes} {...$$restProps}>
5
+ <label class="q-radio {userClasses}" class:q-radio--disabled={disable} {...$$restProps}>
12
6
  <input type="radio" bind:group={selected} {value} disabled={disable} />
13
7
  <span>{label}</span>
14
8
  </label>
@@ -1,2 +1,2 @@
1
1
  import type { QComponentDocs } from "../../utils";
2
- export declare let QRadioDocs: QComponentDocs;
2
+ export declare const QRadioDocs: QComponentDocs;
@@ -1,4 +1,4 @@
1
- export let QRadioDocs = {
1
+ export const QRadioDocs = {
2
2
  name: "QRadio",
3
3
  description: "Radio buttons allow the user to select one option from a set.",
4
4
  docs: {
@@ -1,3 +1,5 @@
1
+ // AUTO GENERATED FILE - DO NOT MODIFY OR DELETE
2
+ // @quaffHash 023f166466a04ae52838fa2fcbf5b5f9
1
3
  export const QRadioDocsProps = [
2
4
  {
3
5
  name: "value",
@@ -17,7 +19,7 @@ export const QRadioDocsProps = [
17
19
  },
18
20
  {
19
21
  name: "selected",
20
- type: "any",
22
+ type: "unknown",
21
23
  optional: true,
22
24
  clickableType: false,
23
25
  description: "",
@@ -3,7 +3,7 @@ import type { NativeProps } from "../../utils";
3
3
  export interface QRadioProps extends NativeProps, HTMLAttributes<HTMLLabelElement> {
4
4
  value: string;
5
5
  label?: string;
6
- selected?: any;
6
+ selected?: unknown;
7
7
  disable?: boolean;
8
8
  }
9
9
  export declare const QRadioPropsDefaults: QRadioProps;
@@ -1,2 +1,2 @@
1
1
  import type { QComponentDocs } from "../../utils";
2
- export declare let QRailbarDocs: QComponentDocs;
2
+ export declare const QRailbarDocs: QComponentDocs;
@@ -1,5 +1,5 @@
1
1
  import { QRailbarDocsProps } from "./docs.props";
2
- export let QRailbarDocs = {
2
+ export const QRailbarDocs = {
3
3
  name: "QRailbar",
4
4
  description: "Railbars are used to provide navigation between different sections or views within an application.",
5
5
  docs: {
@@ -1,3 +1,5 @@
1
+ // AUTO GENERATED FILE - DO NOT MODIFY OR DELETE
2
+ // @quaffHash 59d32044c3aee07fb108f91f740e8e1a
1
3
  export const QRailbarDocsProps = [
2
4
  {
3
5
  name: "width",
@@ -1,2 +1,2 @@
1
1
  import type { QComponentDocs } from "../../utils";
2
- export declare let QSelectDocs: QComponentDocs;
2
+ export declare const QSelectDocs: QComponentDocs;
@@ -1,4 +1,4 @@
1
- export let QSelectDocs = {
1
+ export const QSelectDocs = {
2
2
  name: "QSelect",
3
3
  description: "QSelect is a form component that allows users to choose from multiple options in a dropdown list. It supports single and multiple selection, as well as different visual styles such as filled, outlined, and rounded.",
4
4
  docs: {
@@ -1,3 +1,5 @@
1
+ // AUTO GENERATED FILE - DO NOT MODIFY OR DELETE
2
+ // @quaffHash 672deee79cbdb08b347a495e2f956037
1
3
  export const QSelectDocsProps = [
2
4
  {
3
5
  name: "value",
@@ -1,58 +1,52 @@
1
1
  <script>import { useSize } from "../../composables";
2
- import { createStyles, createClasses } from "../../utils";
3
- export let spacing = "none", inset = false, vertical = false, color = void 0, size = void 0, text = void 0, textAlign = vertical === true ? "middle" : "center", userClasses = void 0;
2
+ export let spacing = "none", inset = false, vertical = false, color = void 0, size = void 0, text = void 0, textAlign = vertical ? "middle" : "center", userClasses = void 0;
4
3
  export { userClasses as class };
5
4
  let orientation;
6
5
  $:
7
6
  orientation = vertical ? "vertical" : "horizontal";
8
7
  $:
9
- spacingClass = useSize(spacing).class;
8
+ spacingClass = useSize(spacing).class || "";
10
9
  $:
11
- classes = createClasses([
12
- vertical && "vertical",
13
- `spacing-${spacingClass}`
14
- ], {
15
- component: "q-separator",
16
- quaffClasses: [
17
- color && `bg-${color}`
18
- ]
19
- });
10
+ colorClass = color ? `bg-${color}` : "";
20
11
  </script>
21
12
 
22
13
  {#if text}
23
- <div
24
- class="q-separator__wrapper {userClasses || ''}"
25
- class:q-separator--vertical__wrapper={vertical}
26
- class:q-separator--inset__wrapper={inset}
27
- {...$$restProps}
28
- >
29
- {#if (vertical === true && textAlign !== "top") || (vertical === false && textAlign !== "left")}
30
- <hr
31
- class={classes}
32
- style:--q-separator--size={size}
33
- aria-orientation={orientation}
34
- />
35
- {/if}
36
- <div class={vertical ? "q-py-sm" : "q-px-sm"}>{text}</div>
37
- {#if (vertical === true && textAlign !== "bottom") || (vertical === false && textAlign !== "right")}
14
+ <div
15
+ class="q-separator__wrapper {userClasses || ''}"
16
+ class:q-separator--vertical__wrapper={vertical}
17
+ class:q-separator--inset__wrapper={inset}
18
+ {...$$restProps}
19
+ >
20
+ {#if (vertical && textAlign !== "top") || (!vertical && textAlign !== "left")}
21
+ <hr
22
+ class="q-separator {spacingClass} {colorClass}"
23
+ class:q-separator--vertical={vertical}
24
+ style:--q-separator--size={size}
25
+ aria-orientation={orientation}
26
+ />
27
+ {/if}
28
+ <div class={vertical ? "q-py-sm" : "q-px-sm"}>{text}</div>
29
+ {#if (vertical && textAlign !== "bottom") || (!vertical && textAlign !== "right")}
30
+ <hr
31
+ class="q-separator {spacingClass} {colorClass}"
32
+ class:q-separator--vertical={vertical}
33
+ style:--q-separator--size={size}
34
+ aria-orientation={orientation}
35
+ />
36
+ {/if}
37
+ </div>
38
+ {:else}
39
+ <div
40
+ class="q-separator__wrapper {userClasses || ''}"
41
+ class:q-separator--vertical__wrapper={vertical}
42
+ class:q-separator--inset__wrapper={inset}
43
+ {...$$restProps}
44
+ >
38
45
  <hr
39
- class={classes}
46
+ class="q-separator {spacingClass} {colorClass}"
47
+ class:q-separator--vertical={vertical}
40
48
  style:--q-separator--size={size}
41
49
  aria-orientation={orientation}
42
50
  />
43
- {/if}
44
- </div>
45
- {:else}
46
- <div
47
- class="q-separator__wrapper {userClasses || ''}"
48
- class:q-separator--vertical__wrapper={vertical}
49
- class:q-separator--inset__wrapper={inset}
50
- {...$$restProps}
51
- >
52
- <hr
53
- class={classes}
54
- style:--q-separator--size={size}
55
- aria-orientation={orientation}
56
- />
57
- </div>
58
- {/if}
51
+ </div>
52
+ {/if}
@@ -1,2 +1,2 @@
1
1
  import type { QComponentDocs } from "../../utils";
2
- export declare let QSeparatorDocs: QComponentDocs;
2
+ export declare const QSeparatorDocs: QComponentDocs;
@@ -1,5 +1,5 @@
1
1
  import { QSeparatorPropsVertical } from "./docs.props";
2
- export let QSeparatorDocs = {
2
+ export const QSeparatorDocs = {
3
3
  name: "QSeparator",
4
4
  description: "Separators can be used to create a dividing line or space between elements within a layout, offering visual separation and organization.",
5
5
  docs: {
@@ -1,3 +1,5 @@
1
+ // AUTO GENERATED FILE - DO NOT MODIFY OR DELETE
2
+ // @quaffHash 3dc04e42e3fe60388a317edd5035cc9c
1
3
  export const QSeparatorPropsVertical = [
2
4
  {
3
5
  name: "spacing",
@@ -1,5 +1,4 @@
1
- <script>import { createClasses } from "../../utils";
2
- import { QIcon, QSelect, QBtn } from "../..";
1
+ <script>import { QIcon, QSelect, QBtn } from "../..";
3
2
  export let columns = [], rows = [], flat = void 0, bordered = void 0, dense = false, userClasses = "";
4
3
  export { userClasses as class };
5
4
  function getField(fieldRaw, row) {
@@ -11,17 +10,6 @@ let rowsPerPageOptions = [5, 10, 25, 50].map((e) => ({
11
10
  label: e.toString(),
12
11
  value: e.toString()
13
12
  }));
14
- $:
15
- classes = createClasses([], {
16
- component: "q-table",
17
- userClasses
18
- });
19
- $:
20
- classesTable = createClasses([flat && "flat", bordered && "bordered", dense && "dense"], {
21
- component: "q-table",
22
- element: "table",
23
- userClasses
24
- });
25
13
  let sort = null;
26
14
  let rowsSorted = rows;
27
15
  let rowsPaginated = [];
@@ -86,8 +74,13 @@ function setSort(column) {
86
74
  }
87
75
  </script>
88
76
 
89
- <div class={classes} {...$$restProps}>
90
- <table class={classesTable}>
77
+ <div class="q-table" {...$$restProps}>
78
+ <table
79
+ class="q-table__table {userClasses}"
80
+ class:q-table--flat={flat}
81
+ class:q-table--bordered={bordered}
82
+ class:q-table--dense={dense}
83
+ >
91
84
  <thead>
92
85
  <tr>
93
86
  {#each columns as column}
@@ -1,2 +1,2 @@
1
1
  import type { QComponentDocs } from "../../utils";
2
- export declare let QTableDocs: QComponentDocs;
2
+ export declare const QTableDocs: QComponentDocs;
@@ -1,5 +1,5 @@
1
1
  import { QTableDocsProps } from "./docs.props";
2
- export let QTableDocs = {
2
+ export const QTableDocs = {
3
3
  name: "QTable",
4
4
  description: "Tables allow for a clear presentation of data sets.",
5
5
  docs: {
@@ -1,3 +1,5 @@
1
+ // AUTO GENERATED FILE - DO NOT MODIFY OR DELETE
2
+ // @quaffHash 45c443accd2682faeefb3243e9ba5116
1
3
  export const QTableDocsProps = [
2
4
  {
3
5
  name: "columns",