@quaffui/quaff 0.1.0-prealpha6 → 0.1.0-prealpha8

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 (99) hide show
  1. package/dist/components/avatar/QAvatar.svelte +8 -7
  2. package/dist/components/avatar/props.d.ts +2 -2
  3. package/dist/components/button/QBtn.svelte +6 -3
  4. package/dist/components/button/QBtn.svelte.d.ts +1 -0
  5. package/dist/components/button/docs.props.js +8 -0
  6. package/dist/components/button/index.scss +1 -1
  7. package/dist/components/button/props.d.ts +7 -2
  8. package/dist/components/card/docs.props.js +1 -1
  9. package/dist/components/checkbox/index.scss +4 -0
  10. package/dist/components/chip/QChip.svelte +8 -2
  11. package/dist/components/chip/docs.props.js +3 -3
  12. package/dist/components/chip/props.d.ts +2 -2
  13. package/dist/components/codeBlock/QCodeBlock.svelte +1 -1
  14. package/dist/components/dialog/QDialog.svelte +7 -8
  15. package/dist/components/dialog/docs.props.js +10 -2
  16. package/dist/components/dialog/index.scss +150 -3
  17. package/dist/components/drawer/QDrawer.svelte +3 -2
  18. package/dist/components/drawer/QDrawer.svelte.d.ts +1 -0
  19. package/dist/components/drawer/props.d.ts +2 -2
  20. package/dist/components/footer/QFooter.svelte +13 -3
  21. package/dist/components/footer/props.d.ts +2 -2
  22. package/dist/components/icon/QIcon.svelte +11 -13
  23. package/dist/components/icon/QIcon.svelte.d.ts +1 -1
  24. package/dist/components/icon/docs.props.js +1 -1
  25. package/dist/components/icon/index.scss +63 -6
  26. package/dist/components/icon/props.d.ts +3 -3
  27. package/dist/components/index.d.ts +2 -1
  28. package/dist/components/index.js +2 -1
  29. package/dist/components/list/QItem.svelte +1 -1
  30. package/dist/components/list/docs.d.ts +2 -0
  31. package/dist/components/list/docs.js +11 -0
  32. package/dist/components/list/docs.props.js +1 -1
  33. package/dist/components/list/index.scss +6 -0
  34. package/dist/components/private/QApi.svelte +21 -20
  35. package/dist/components/private/QDocs.svelte +38 -10
  36. package/dist/components/private/QDocsSection.svelte +2 -2
  37. package/dist/components/progress/QCircularProgress.svelte +4 -3
  38. package/dist/components/progress/QCircularProgress.svelte.d.ts +1 -1
  39. package/dist/components/progress/QLinearProgress.svelte +8 -2
  40. package/dist/components/progress/docs.d.ts +2 -0
  41. package/dist/components/progress/docs.js +11 -0
  42. package/dist/components/progress/docs.props.d.ts +8 -0
  43. package/dist/components/progress/docs.props.js +42 -0
  44. package/dist/components/progress/index.scss +15 -0
  45. package/dist/components/progress/props.d.ts +26 -9
  46. package/dist/components/progress/props.js +1 -7
  47. package/dist/components/railbar/QRailbar.svelte +2 -1
  48. package/dist/components/railbar/QRailbar.svelte.d.ts +1 -1
  49. package/dist/components/railbar/docs.d.ts +2 -0
  50. package/dist/components/railbar/docs.js +11 -0
  51. package/dist/components/railbar/props.d.ts +11 -3
  52. package/dist/components/railbar/props.js +1 -7
  53. package/dist/components/select/QSelect.svelte +6 -4
  54. package/dist/components/select/docs.props.js +2 -2
  55. package/dist/components/separator/docs.d.ts +2 -0
  56. package/dist/components/separator/docs.js +11 -0
  57. package/dist/components/tabs/docs.d.ts +2 -0
  58. package/dist/components/tabs/docs.js +11 -0
  59. package/dist/components/tabs/docs.props.js +3 -11
  60. package/dist/components/toolbar/QToolbar.svelte +2 -1
  61. package/dist/components/toolbar/QToolbar.svelte.d.ts +1 -1
  62. package/dist/components/toolbar/QToolbarTitle.svelte +10 -0
  63. package/dist/components/toolbar/QToolbarTitle.svelte.d.ts +22 -0
  64. package/dist/components/toolbar/docs.d.ts +2 -0
  65. package/dist/components/toolbar/docs.js +11 -0
  66. package/dist/components/toolbar/docs.props.d.ts +8 -0
  67. package/dist/components/toolbar/docs.props.js +10 -0
  68. package/dist/components/toolbar/index.scss +27 -0
  69. package/dist/components/toolbar/props.d.ts +14 -3
  70. package/dist/components/toolbar/props.js +1 -6
  71. package/dist/components/tooltip/QTooltip.svelte +3 -5
  72. package/dist/components/tooltip/docs.d.ts +2 -0
  73. package/dist/components/tooltip/docs.js +11 -0
  74. package/dist/components/tooltip/index.scss +77 -2
  75. package/dist/composables/use-align.js +17 -6
  76. package/dist/composables/use-size.d.ts +8 -10
  77. package/dist/composables/use-size.js +24 -12
  78. package/dist/css/flex.scss +41 -0
  79. package/dist/css/fonts.scss +4 -0
  80. package/dist/css/grid.scss +1 -16
  81. package/dist/css/index.css +1 -1
  82. package/dist/css/index.scss +3 -22
  83. package/dist/css/theme/bridge.scss +15 -0
  84. package/dist/css/theme/elevate.scss +57 -0
  85. package/dist/css/theme/page.scss +16 -0
  86. package/dist/css/theme/palette.scss +633 -0
  87. package/dist/css/theme/reset.scss +40 -0
  88. package/dist/css/theme/theme.dark.scss +1 -0
  89. package/dist/css/theme/theme.light.scss +1 -0
  90. package/dist/css/theme/theme.scss +6 -0
  91. package/dist/css/theme/typography.scss +111 -0
  92. package/dist/css/variables-sass.scss +16 -0
  93. package/dist/helpers/version.d.ts +1 -1
  94. package/dist/helpers/version.js +1 -1
  95. package/dist/index.d.ts +1 -0
  96. package/dist/index.js +1 -0
  97. package/dist/utils/types.d.ts +3 -0
  98. package/dist/utils/types.json +1 -1
  99. package/package.json +5 -1
@@ -0,0 +1,111 @@
1
+ html {
2
+ font-size: var(--size);
3
+ }
4
+
5
+ body {
6
+ font-family: var(--font);
7
+ font-size: 0.875rem;
8
+ line-height: 1.25;
9
+ }
10
+
11
+ h1,
12
+ h2,
13
+ h3,
14
+ h4,
15
+ h5,
16
+ h6 {
17
+ font-weight: 400;
18
+ display: flex;
19
+ align-items: center;
20
+ margin-bottom: 0.5rem;
21
+ line-height: normal;
22
+ }
23
+
24
+ * + h1,
25
+ * + h2,
26
+ * + h3,
27
+ * + h4,
28
+ * + h5,
29
+ * + h6 {
30
+ margin-top: 1rem;
31
+ }
32
+
33
+ h1 {
34
+ font-size: 3.5625rem;
35
+ }
36
+
37
+ h2 {
38
+ font-size: 2.8125rem;
39
+ }
40
+
41
+ h3 {
42
+ font-size: 2.25rem;
43
+ }
44
+
45
+ h4 {
46
+ font-size: 2rem;
47
+ }
48
+
49
+ h5 {
50
+ font-size: 1.75rem;
51
+ }
52
+
53
+ h6 {
54
+ font-size: 1.5rem;
55
+ }
56
+
57
+ h1.small {
58
+ font-size: 3.0625rem;
59
+ }
60
+
61
+ h2.small {
62
+ font-size: 2.3125rem;
63
+ }
64
+
65
+ h3.small {
66
+ font-size: 1.75rem;
67
+ }
68
+
69
+ h4.small {
70
+ font-size: 1.5rem;
71
+ }
72
+
73
+ h5.small {
74
+ font-size: 1.25rem;
75
+ }
76
+
77
+ h6.small {
78
+ font-size: 1rem;
79
+ }
80
+
81
+ h1.large {
82
+ font-size: 4.0625rem;
83
+ }
84
+
85
+ h2.large {
86
+ font-size: 3.3125rem;
87
+ }
88
+
89
+ h3.large {
90
+ font-size: 2.75rem;
91
+ }
92
+
93
+ h4.large {
94
+ font-size: 2.5rem;
95
+ }
96
+
97
+ h5.large {
98
+ font-size: 2.25rem;
99
+ }
100
+
101
+ h6.large {
102
+ font-size: 2rem;
103
+ }
104
+
105
+ p {
106
+ margin: 0.5rem 0;
107
+ }
108
+
109
+ .text-center {
110
+ text-align: center;
111
+ }
@@ -0,0 +1,16 @@
1
+ // Grid variables
2
+ $grid-columns: 12;
3
+ $gutter-xs: 4px;
4
+ $gutter-sm: 8px;
5
+ $gutter-md: 16px;
6
+ $gutter-lg: 24px;
7
+ $gutter-xl: 48px;
8
+
9
+ // Responsive breakpoints
10
+ $breakpoints: (
11
+ xs: 0px,
12
+ sm: 600px,
13
+ md: 960px,
14
+ lg: 1280px,
15
+ xl: 1920px,
16
+ );
@@ -1,2 +1,2 @@
1
- declare const _default: "0.1.0-prealpha6";
1
+ declare const _default: "0.1.0-prealpha8";
2
2
  export default _default;
@@ -1 +1 @@
1
- export default "0.1.0-prealpha6";
1
+ export default "0.1.0-prealpha8";
package/dist/index.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export * from "./components";
2
+ export { Quaff } from "./stores/Quaff.js";
package/dist/index.js CHANGED
@@ -1,2 +1,3 @@
1
1
  // Reexport your entry components here
2
2
  export * from "./components";
3
+ export { Quaff } from "./stores/Quaff.js";
@@ -3,6 +3,9 @@ export interface NativeProps {
3
3
  userStyles?: string;
4
4
  }
5
5
  export declare const NativePropsDefaults: NativeProps;
6
+ export type QuaffSizes = "xs" | "sm" | "md" | "lg" | "xl";
7
+ export type CssUnit = "px" | "%" | "em" | "ex" | "ch" | "rem" | "vw" | "vh" | "vmin" | "vmax";
8
+ export type CssValue = `${number}${CssUnit}`;
6
9
  export interface QComponentDocs {
7
10
  name: string;
8
11
  description: string;
@@ -1 +1 @@
1
- {"QAvatarShapeOptions":"type QAvatarShapeOptions =\r\n | \"circle\"\r\n | \"rounded\"\r\n | \"top-round\"\r\n | \"left-round\"\r\n | \"right-round\"\r\n | \"bottom-round\"\r\n | \"top-left-round\"\r\n | \"top-right-round\"\r\n | \"bottom-left-round\"\r\n | \"bottom-right-round\"","QAvatarSizeOptions":"type QAvatarSizeOptions = \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\" | string","QBreadcrumbsGutterOptions":"type QBreadcrumbsGutterOptions = \"none\" | \"sm\" | \"md\" | \"lg\"","QLayoutEvents":"type QLayoutEvents = \"resize\" | \"scroll\" | \"scrollHeight\"","QSelectOption":"type QSelectOption = string | { label: string, value: string }","QItemSectionTypes":"type QItemSectionTypes =\r\n | \"thumbnail\"\r\n | \"video\"\r\n | \"avatar\"\r\n | \"icon\"\r\n | \"trailingIcon\"\r\n | \"trailingText\"\r\n | \"content\"","QBtnSizeOptions":"type QBtnSizeOptions = \"sm\" | \"md\" | \"lg\" | \"xl\"","QDialogPositionOptions":"type QDialogPositionOptions = \"default\" | \"top\" | \"right\" | \"bottom\" | \"left\"","QDrawerSideOptions":"type QDrawerSideOptions = \"left\" | \"right\"","QDrawerBehaviorOptions":"type QDrawerBehaviorOptions = \"default\" | \"desktop\" | \"mobile\"","QIconSizeOptions":"type QIconSizeOptions = \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\" | string | number","QIconTypeOptions":"type QIconTypeOptions = \"outlined\" | \"sharp\" | \"rounded\"","QLayoutViewOptions":"type QLayoutViewOptions = `${\"l\"|\"h\"}${\"h\"|\"H\"}${\"r\"|\"h\"} ${\"l\"|\"L\"}${\"p\"}${\"r\"|\"R\"} ${\"l\"|\"f\"}${\"f\"|\"F\"}${\"r\"|\"f\"}`","QTableColumn":"type QTableColumn = {\r\n name: string\r\n required?: boolean;\r\n label: string;\r\n align?: \"left\" | \"center\" | \"right\";\r\n field: string | ((row: QTableRow) => string);\r\n format?: (val: string) => string;\r\n sortable?: boolean;\r\n sort?: (a: string, b: string) => number;\r\n};","QTableRow":"type QTableRow = {\r\n [key: string]: string | number\r\n};","QTableSort":"type QTableSort = {\r\n columnField: string | ((row: QTableRow) => string)\r\n type: \"asc\" | \"desc\";\r\n} | null;"}
1
+ {"QAvatarShapeOptions":"type QAvatarShapeOptions =\n | \"circle\"\n | \"rounded\"\n | \"top-round\"\n | \"left-round\"\n | \"right-round\"\n | \"bottom-round\"\n | \"top-left-round\"\n | \"top-right-round\"\n | \"bottom-left-round\"\n | \"bottom-right-round\"","QAvatarSizeOptions":"type QAvatarSizeOptions = \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\" | string","QBreadcrumbsGutterOptions":"type QBreadcrumbsGutterOptions = \"none\" | \"sm\" | \"md\" | \"lg\"","QLayoutEvents":"type QLayoutEvents = \"resize\" | \"scroll\" | \"scrollHeight\"","QSelectOption":"type QSelectOption = string | { label: string, value: string }","QItemSectionTypes":"type QItemSectionTypes =\n | \"thumbnail\"\n | \"video\"\n | \"avatar\"\n | \"toggle\"\n | \"icon\"\n | \"trailingIcon\"\n | \"trailingText\"\n | \"content\"","QBtnSizeOptions":"type QBtnSizeOptions = \"sm\" | \"md\" | \"lg\" | \"xl\"","QDialogPositionOptions":"type QDialogPositionOptions = \"default\" | \"top\" | \"right\" | \"bottom\" | \"left\"","QDrawerSideOptions":"type QDrawerSideOptions = \"left\" | \"right\"","QDrawerBehaviorOptions":"type QDrawerBehaviorOptions = \"default\" | \"desktop\" | \"mobile\"","QIconSizeOptions":"type QIconSizeOptions = \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\" | string | number","QIconTypeOptions":"type QIconTypeOptions = \"outlined\" | \"sharp\" | \"rounded\"","QLayoutViewOptions":"type QLayoutViewOptions = `${\"l\"|\"h\"}${\"h\"|\"H\"}${\"r\"|\"h\"} ${\"l\"|\"L\"}${\"p\"}${\"r\"|\"R\"} ${\"l\"|\"f\"}${\"f\"|\"F\"}${\"r\"|\"f\"}`","QTableColumn":"type QTableColumn = {\n name: string\n required?: boolean;\n label: string;\n align?: \"left\" | \"center\" | \"right\";\n field: string | ((row: QTableRow) => string);\n format?: (val: string) => string;\n sortable?: boolean;\n sort?: (a: string, b: string) => number;\n};","QTableRow":"type QTableRow = {\n [key: string]: string | number\n};","QTableSort":"type QTableSort = {\n columnField: string | ((row: QTableRow) => string)\n type: \"asc\" | \"desc\";\n} | null;","QCardFillColors":"type QCardFillColors = \"primary\" | \"secondary\" | \"tertiary\"","QChipSizeOptions":"type QChipSizeOptions = \"sm\" | \"md\" | \"lg\"","QTabsVariants":"type QTabsVariants = \"primary\" | \"secondary\" | \"vertical\""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quaffui/quaff",
3
- "version": "0.1.0-prealpha6",
3
+ "version": "0.1.0-prealpha8",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "open": "vite dev --open",
@@ -33,6 +33,10 @@
33
33
  "svelte": "^4.0.0"
34
34
  },
35
35
  "devDependencies": {
36
+ "@fontsource/material-symbols-outlined": "^5.0.6",
37
+ "@fontsource/material-symbols-rounded": "^5.0.6",
38
+ "@fontsource/material-symbols-sharp": "^5.0.6",
39
+ "@fontsource/roboto": "^5.0.7",
36
40
  "@sveltejs/adapter-auto": "^2.1.0",
37
41
  "@sveltejs/kit": "^1.22.4",
38
42
  "@sveltejs/package": "^2.2.0",