@quaffui/quaff 0.1.0-prealpha6 → 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 (115) 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 -1
  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 +1 -1
  113. package/dist/helpers/version.js +1 -1
  114. package/dist/utils/types.json +1 -1
  115. package/package.json +5 -1
@@ -0,0 +1,40 @@
1
+ * {
2
+ -webkit-tap-highlight-color: transparent;
3
+ position: relative;
4
+ vertical-align: middle;
5
+ color: inherit;
6
+ margin: 0;
7
+ padding: 0;
8
+ border-radius: inherit;
9
+ box-sizing: border-box;
10
+ }
11
+
12
+ body {
13
+ color: var(--on-background);
14
+ background-color: var(--body);
15
+ overflow-x: hidden;
16
+ }
17
+
18
+ label {
19
+ font-size: 0.75rem;
20
+ vertical-align: baseline;
21
+ }
22
+
23
+ a,
24
+ b,
25
+ i,
26
+ span {
27
+ vertical-align: bottom;
28
+ }
29
+
30
+ a,
31
+ button {
32
+ cursor: pointer;
33
+ text-decoration: none;
34
+ display: inline-flex;
35
+ align-items: center;
36
+ border: none;
37
+ font-family: inherit;
38
+ outline: inherit;
39
+ justify-content: center;
40
+ }
@@ -1,4 +1,5 @@
1
1
  body.dark {
2
+ --body: #000;
2
3
  --primary: rgba(var(--primary-dark));
3
4
  --on-primary: rgba(var(--on-primary-dark));
4
5
  --primary-container: rgba(var(--primary-container-dark));
@@ -1,4 +1,5 @@
1
1
  body.light {
2
+ --body: #fff;
2
3
  --primary: rgba(var(--primary-light));
3
4
  --on-primary: rgba(var(--on-primary-light));
4
5
  --primary-container: rgba(var(--primary-container-light));
@@ -1,5 +1,11 @@
1
1
  @import "$css/theme/tokens.scss";
2
2
  @import "$css/theme/colors.module.scss";
3
+ @import "$css/theme/palette.scss";
4
+ @import "$css/theme/reset.scss";
5
+ @import "$css/theme/bridge.scss";
3
6
  @import "$css/theme/typography.module.scss";
7
+ @import "$css/theme/typography.scss";
8
+ @import "$css/theme/elevate.scss";
4
9
  @import "$css/theme/theme.light.scss";
5
10
  @import "$css/theme/theme.dark.scss";
11
+ @import "$css/theme/page.scss";
@@ -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-prealpha7";
2
2
  export default _default;
@@ -1 +1 @@
1
- export default "0.1.0-prealpha6";
1
+ export default "0.1.0-prealpha7";
@@ -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-prealpha7",
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",