@quaffui/quaff 0.1.0-prealpha5 → 0.1.0-prealpha7

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 (116) hide show
  1. package/dist/components/button/QBtn.svelte +2 -2
  2. package/dist/components/button/QBtn.svelte.d.ts +1 -0
  3. package/dist/components/button/docs.props.js +8 -0
  4. package/dist/components/button/index.scss +1 -1
  5. package/dist/components/button/props.d.ts +5 -0
  6. package/dist/components/card/docs.props.js +1 -1
  7. package/dist/components/checkbox/index.scss +4 -0
  8. package/dist/components/chip/docs.props.js +3 -3
  9. package/dist/components/codeBlock/QCodeBlock.svelte +1 -1
  10. package/dist/components/dialog/QDialog.svelte +7 -8
  11. package/dist/components/dialog/docs.props.js +10 -2
  12. package/dist/components/dialog/index.scss +150 -3
  13. package/dist/components/drawer/QDrawer.svelte +1 -1
  14. package/dist/components/drawer/QDrawer.svelte.d.ts +1 -0
  15. package/dist/components/icon/QIcon.svelte +19 -14
  16. package/dist/components/icon/QIcon.svelte.d.ts +1 -1
  17. package/dist/components/icon/docs.props.js +1 -1
  18. package/dist/components/icon/index.scss +63 -6
  19. package/dist/components/icon/props.d.ts +1 -1
  20. package/dist/components/index.d.ts +2 -1
  21. package/dist/components/index.js +2 -1
  22. package/dist/components/list/QItem.svelte +1 -1
  23. package/dist/components/list/docs.d.ts +2 -0
  24. package/dist/components/list/docs.js +11 -0
  25. package/dist/components/list/docs.props.js +1 -1
  26. package/dist/components/list/index.scss +6 -0
  27. package/dist/components/private/QApi.svelte +21 -20
  28. package/dist/components/private/QDocs.svelte +38 -10
  29. package/dist/components/private/QDocsSection.svelte +2 -2
  30. package/dist/components/progress/QLinearProgress.svelte +8 -2
  31. package/dist/components/progress/docs.d.ts +2 -0
  32. package/dist/components/progress/docs.js +11 -0
  33. package/dist/components/progress/docs.props.d.ts +8 -0
  34. package/dist/components/progress/docs.props.js +42 -0
  35. package/dist/components/progress/index.scss +15 -0
  36. package/dist/components/railbar/docs.d.ts +2 -0
  37. package/dist/components/railbar/docs.js +11 -0
  38. package/dist/components/select/QSelect.svelte +6 -4
  39. package/dist/components/select/docs.props.js +2 -2
  40. package/dist/components/separator/docs.d.ts +2 -0
  41. package/dist/components/separator/docs.js +11 -0
  42. package/dist/components/tabs/docs.d.ts +2 -0
  43. package/dist/components/tabs/docs.js +11 -0
  44. package/dist/components/tabs/docs.props.js +3 -11
  45. package/dist/components/toolbar/QToolbarTitle.svelte +10 -0
  46. package/dist/components/toolbar/QToolbarTitle.svelte.d.ts +22 -0
  47. package/dist/components/toolbar/docs.d.ts +2 -0
  48. package/dist/components/toolbar/docs.js +11 -0
  49. package/dist/components/toolbar/docs.props.d.ts +8 -0
  50. package/dist/components/toolbar/docs.props.js +10 -0
  51. package/dist/components/toolbar/index.scss +27 -0
  52. package/dist/components/toolbar/props.d.ts +4 -0
  53. package/dist/components/toolbar/props.js +4 -0
  54. package/dist/components/tooltip/QTooltip.svelte +3 -5
  55. package/dist/components/tooltip/docs.d.ts +2 -0
  56. package/dist/components/tooltip/docs.js +11 -0
  57. package/dist/components/tooltip/index.scss +77 -2
  58. package/dist/composables/use-align.js +17 -6
  59. package/dist/composables/use-size.d.ts +3 -5
  60. package/dist/composables/use-size.js +2 -0
  61. package/dist/css/flex.scss +41 -0
  62. package/dist/css/fonts.scss +4 -0
  63. package/dist/css/grid.scss +1 -16
  64. package/dist/css/index.css +1 -0
  65. package/dist/css/index.scss +4 -22
  66. package/dist/css/material-symbols-outlined-latin-100-normal.woff +0 -0
  67. package/dist/css/material-symbols-outlined-latin-100-normal.woff2 +0 -0
  68. package/dist/css/material-symbols-outlined-latin-200-normal.woff +0 -0
  69. package/dist/css/material-symbols-outlined-latin-200-normal.woff2 +0 -0
  70. package/dist/css/material-symbols-outlined-latin-300-normal.woff +0 -0
  71. package/dist/css/material-symbols-outlined-latin-300-normal.woff2 +0 -0
  72. package/dist/css/material-symbols-outlined-latin-400-normal.woff +0 -0
  73. package/dist/css/material-symbols-outlined-latin-400-normal.woff2 +0 -0
  74. package/dist/css/material-symbols-rounded-latin-100-normal.woff +0 -0
  75. package/dist/css/material-symbols-rounded-latin-100-normal.woff2 +0 -0
  76. package/dist/css/material-symbols-rounded-latin-200-normal.woff +0 -0
  77. package/dist/css/material-symbols-rounded-latin-200-normal.woff2 +0 -0
  78. package/dist/css/material-symbols-rounded-latin-300-normal.woff +0 -0
  79. package/dist/css/material-symbols-rounded-latin-300-normal.woff2 +0 -0
  80. package/dist/css/material-symbols-rounded-latin-400-normal.woff +0 -0
  81. package/dist/css/material-symbols-rounded-latin-400-normal.woff2 +0 -0
  82. package/dist/css/material-symbols-sharp-latin-100-normal.woff +0 -0
  83. package/dist/css/material-symbols-sharp-latin-100-normal.woff2 +0 -0
  84. package/dist/css/material-symbols-sharp-latin-200-normal.woff +0 -0
  85. package/dist/css/material-symbols-sharp-latin-200-normal.woff2 +0 -0
  86. package/dist/css/material-symbols-sharp-latin-300-normal.woff +0 -0
  87. package/dist/css/material-symbols-sharp-latin-300-normal.woff2 +0 -0
  88. package/dist/css/material-symbols-sharp-latin-400-normal.woff +0 -0
  89. package/dist/css/material-symbols-sharp-latin-400-normal.woff2 +0 -0
  90. package/dist/css/roboto-cyrillic-400-normal.woff +0 -0
  91. package/dist/css/roboto-cyrillic-400-normal.woff2 +0 -0
  92. package/dist/css/roboto-cyrillic-ext-400-normal.woff +0 -0
  93. package/dist/css/roboto-cyrillic-ext-400-normal.woff2 +0 -0
  94. package/dist/css/roboto-greek-400-normal.woff +0 -0
  95. package/dist/css/roboto-greek-400-normal.woff2 +0 -0
  96. package/dist/css/roboto-latin-400-normal.woff +0 -0
  97. package/dist/css/roboto-latin-400-normal.woff2 +0 -0
  98. package/dist/css/roboto-latin-ext-400-normal.woff +0 -0
  99. package/dist/css/roboto-latin-ext-400-normal.woff2 +0 -0
  100. package/dist/css/roboto-vietnamese-400-normal.woff +0 -0
  101. package/dist/css/roboto-vietnamese-400-normal.woff2 +0 -0
  102. package/dist/css/theme/bridge.scss +15 -0
  103. package/dist/css/theme/elevate.scss +57 -0
  104. package/dist/css/theme/page.scss +16 -0
  105. package/dist/css/theme/palette.scss +633 -0
  106. package/dist/css/theme/reset.scss +40 -0
  107. package/dist/css/theme/theme.dark.scss +1 -0
  108. package/dist/css/theme/theme.light.scss +1 -0
  109. package/dist/css/theme/theme.scss +6 -0
  110. package/dist/css/theme/typography.scss +111 -0
  111. package/dist/css/variables-sass.scss +16 -0
  112. package/dist/helpers/version.d.ts +2 -0
  113. package/dist/helpers/version.js +1 -0
  114. package/dist/stores/Quaff.d.ts +5 -5
  115. package/dist/utils/types.json +1 -1
  116. package/package.json +7 -3
@@ -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
+ );
@@ -0,0 +1,2 @@
1
+ declare const _default: "0.1.0-prealpha7";
2
+ export default _default;
@@ -0,0 +1 @@
1
+ export default "0.1.0-prealpha7";
@@ -2,17 +2,17 @@
2
2
  /// <reference types="@sveltejs/kit" />
3
3
  export declare const quaffStore: {
4
4
  subscribe: (this: void, run: import("svelte/store").Subscriber<{
5
- version: any;
5
+ version: string;
6
6
  dark: boolean;
7
7
  }>, invalidate?: import("svelte/store").Invalidator<{
8
- version: any;
8
+ version: string;
9
9
  dark: boolean;
10
10
  }> | undefined) => import("svelte/store").Unsubscriber;
11
11
  setDarkMode: (newVal: boolean) => void;
12
12
  toggleDarkMode: () => void;
13
13
  };
14
14
  export declare const Quaff: import("svelte/store").Readable<{
15
- version: any;
15
+ version: string;
16
16
  router: import("@sveltejs/kit").Page<Record<string, string>, string | null>;
17
17
  dark: {
18
18
  isActive: boolean;
@@ -21,10 +21,10 @@ export declare const Quaff: import("svelte/store").Readable<{
21
21
  };
22
22
  subscribe: {
23
23
  quaff: (this: void, run: import("svelte/store").Subscriber<{
24
- version: any;
24
+ version: string;
25
25
  dark: boolean;
26
26
  }>, invalidate?: import("svelte/store").Invalidator<{
27
- version: any;
27
+ version: string;
28
28
  dark: boolean;
29
29
  }> | undefined) => import("svelte/store").Unsubscriber;
30
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;
@@ -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-prealpha5",
3
+ "version": "0.1.0-prealpha7",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "open": "vite dev --open",
@@ -8,7 +8,7 @@
8
8
  "build:css": "vite build --config vite.config.scss.ts",
9
9
  "preview": "vite preview",
10
10
  "package": "svelte-kit sync && svelte-package && publint",
11
- "prepublishOnly": "npm run package",
11
+ "prepublishOnly": "npm run build",
12
12
  "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
13
13
  "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
14
14
  "test:unit": "vitest",
@@ -22,7 +22,7 @@
22
22
  "types": "./dist/index.d.ts",
23
23
  "svelte": "./dist/index.js"
24
24
  },
25
- "./css/": "./dist/css/"
25
+ "./css/*": "./dist/css/*"
26
26
  },
27
27
  "files": [
28
28
  "dist",
@@ -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",