@quaffui/quaff 0.1.0-prealpha20 → 0.1.0-prealpha22

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 (105) hide show
  1. package/dist/components/avatar/QAvatar.svelte +4 -1
  2. package/dist/components/avatar/QAvatar.svelte.d.ts +14 -2
  3. package/dist/components/breadcrumbs/QBreadcrumbs.svelte +7 -2
  4. package/dist/components/breadcrumbs/QBreadcrumbs.svelte.d.ts +14 -2
  5. package/dist/components/breadcrumbs/QBreadcrumbsEl.svelte +16 -5
  6. package/dist/components/breadcrumbs/QBreadcrumbsEl.svelte.d.ts +14 -2
  7. package/dist/components/button/QBtn.svelte +61 -11
  8. package/dist/components/button/QBtn.svelte.d.ts +14 -2
  9. package/dist/components/button/docs.props.js +37 -5
  10. package/dist/components/button/props.d.ts +24 -4
  11. package/dist/components/card/QCard.svelte +6 -2
  12. package/dist/components/card/QCard.svelte.d.ts +14 -2
  13. package/dist/components/card/QCardActions.svelte +9 -1
  14. package/dist/components/card/QCardActions.svelte.d.ts +14 -2
  15. package/dist/components/card/QCardSection.svelte +3 -1
  16. package/dist/components/card/QCardSection.svelte.d.ts +14 -2
  17. package/dist/components/checkbox/QCheckbox.svelte +8 -1
  18. package/dist/components/checkbox/QCheckbox.svelte.d.ts +14 -3
  19. package/dist/components/chip/QChip.svelte +30 -9
  20. package/dist/components/chip/QChip.svelte.d.ts +14 -3
  21. package/dist/components/codeBlock/QCodeBlock.svelte +37 -8
  22. package/dist/components/codeBlock/QCodeBlock.svelte.d.ts +14 -3
  23. package/dist/components/dialog/QDialog.svelte +20 -5
  24. package/dist/components/dialog/QDialog.svelte.d.ts +21 -7
  25. package/dist/components/drawer/QDrawer.svelte +36 -7
  26. package/dist/components/drawer/QDrawer.svelte.d.ts +21 -7
  27. package/dist/components/footer/QFooter.svelte +24 -6
  28. package/dist/components/footer/QFooter.svelte.d.ts +14 -3
  29. package/dist/components/header/QHeader.svelte +19 -6
  30. package/dist/components/header/QHeader.svelte.d.ts +14 -3
  31. package/dist/components/icon/QIcon.svelte +6 -1
  32. package/dist/components/icon/QIcon.svelte.d.ts +14 -2
  33. package/dist/components/input/QInput.svelte +23 -10
  34. package/dist/components/input/QInput.svelte.d.ts +14 -3
  35. package/dist/components/input/index.scss +1 -1
  36. package/dist/components/layout/QLayout.scss +2 -1
  37. package/dist/components/layout/QLayout.svelte +50 -8
  38. package/dist/components/layout/QLayout.svelte.d.ts +14 -3
  39. package/dist/components/list/QItem.svelte +11 -2
  40. package/dist/components/list/QItem.svelte.d.ts +14 -3
  41. package/dist/components/list/QItemSection.svelte +9 -3
  42. package/dist/components/list/QItemSection.svelte.d.ts +14 -3
  43. package/dist/components/list/QList.svelte +8 -3
  44. package/dist/components/list/QList.svelte.d.ts +14 -3
  45. package/dist/components/private/ContextReseter.svelte +10 -1
  46. package/dist/components/private/ContextReseter.svelte.d.ts +14 -6
  47. package/dist/components/private/QApi.svelte +32 -9
  48. package/dist/components/private/QApi.svelte.d.ts +14 -5
  49. package/dist/components/private/QDocs.svelte +18 -1
  50. package/dist/components/private/QDocs.svelte.d.ts +14 -10
  51. package/dist/components/private/QDocsSection.svelte +14 -2
  52. package/dist/components/private/QDocsSection.svelte.d.ts +14 -7
  53. package/dist/components/private/QIconSnippet.svelte +11 -1
  54. package/dist/components/private/QIconSnippet.svelte.d.ts +14 -8
  55. package/dist/components/progress/QCircularProgress.svelte +19 -3
  56. package/dist/components/progress/QCircularProgress.svelte.d.ts +14 -2
  57. package/dist/components/progress/QLinearProgress.svelte +12 -4
  58. package/dist/components/progress/QLinearProgress.svelte.d.ts +14 -2
  59. package/dist/components/radio/QRadio.svelte +3 -1
  60. package/dist/components/radio/QRadio.svelte.d.ts +14 -3
  61. package/dist/components/railbar/QRailbar.svelte +17 -4
  62. package/dist/components/railbar/QRailbar.svelte.d.ts +14 -3
  63. package/dist/components/select/QSelect.svelte +65 -23
  64. package/dist/components/select/QSelect.svelte.d.ts +14 -3
  65. package/dist/components/select/index.scss +1 -1
  66. package/dist/components/separator/QSeparator.svelte +4 -1
  67. package/dist/components/separator/QSeparator.svelte.d.ts +14 -3
  68. package/dist/components/switch/QSwitch.svelte +20 -6
  69. package/dist/components/switch/QSwitch.svelte.d.ts +14 -3
  70. package/dist/components/table/QTable.svelte +47 -19
  71. package/dist/components/table/QTable.svelte.d.ts +14 -3
  72. package/dist/components/tabs/QTab.svelte +32 -9
  73. package/dist/components/tabs/QTab.svelte.d.ts +14 -3
  74. package/dist/components/tabs/QTabs.svelte +58 -16
  75. package/dist/components/tabs/QTabs.svelte.d.ts +14 -3
  76. package/dist/components/toolbar/QToolbar.svelte +3 -1
  77. package/dist/components/toolbar/QToolbar.svelte.d.ts +14 -3
  78. package/dist/components/toolbar/QToolbarTitle.svelte +3 -1
  79. package/dist/components/toolbar/QToolbarTitle.svelte.d.ts +14 -3
  80. package/dist/components/tooltip/QTooltip.svelte +8 -1
  81. package/dist/components/tooltip/QTooltip.svelte.d.ts +14 -3
  82. package/dist/css/classes/_index.scss +7 -7
  83. package/dist/css/fonts.scss +3 -2
  84. package/dist/css/index.css +1 -1
  85. package/dist/css/index.scss +7 -5
  86. package/dist/css/mixins/_design.scss +5 -4
  87. package/dist/css/mixins/_image.scss +2 -1
  88. package/dist/css/mixins/_index.scss +9 -9
  89. package/dist/css/theme/_index.scss +12 -0
  90. package/dist/css/theme/_page.scss +17 -0
  91. package/dist/css/theme/{palette.scss → _palette.scss} +5 -3
  92. package/dist/helpers/version.d.ts +1 -1
  93. package/dist/helpers/version.js +1 -1
  94. package/dist/utils/types.json +1 -1
  95. package/package.json +32 -31
  96. package/dist/css/flex.scss +0 -41
  97. package/dist/css/theme/page.scss +0 -16
  98. package/dist/css/theme/theme.scss +0 -10
  99. /package/dist/css/theme/{colors.module.scss → _color-classes.scss} +0 -0
  100. /package/dist/css/theme/{css-variables.scss → _css-variables.scss} +0 -0
  101. /package/dist/css/theme/{elevate.scss → _elevate.scss} +0 -0
  102. /package/dist/css/theme/{reset.scss → _reset.scss} +0 -0
  103. /package/dist/css/theme/{typography.module.scss → _typography-classes.scss} +0 -0
  104. /package/dist/css/theme/{tokens.scss → _typography-variables.scss} +0 -0
  105. /package/dist/css/theme/{typography.scss → _typography.scss} +0 -0
@@ -1,3 +1,4 @@
1
+ @use "sass:list";
1
2
  @use "../variables";
2
3
 
3
4
  @mixin elevate($strength, $position: null) {
@@ -11,19 +12,19 @@
11
12
  }
12
13
 
13
14
  @mixin border($color: var(--outline), $position: variables.$border-positions) {
14
- @if index($list: $position, $value: top) {
15
+ @if list.index($list: $position, $value: top) {
15
16
  border-top: 0.0625rem solid $color;
16
17
  }
17
18
 
18
- @if index($list: $position, $value: right) {
19
+ @if list.index($list: $position, $value: right) {
19
20
  border-right: 0.0625rem solid $color;
20
21
  }
21
22
 
22
- @if index($list: $position, $value: bottom) {
23
+ @if list.index($list: $position, $value: bottom) {
23
24
  border-bottom: 0.0625rem solid $color;
24
25
  }
25
26
 
26
- @if index($list: $position, $value: left) {
27
+ @if list.index($list: $position, $value: left) {
27
28
  border-left: 0.0625rem solid $color;
28
29
  }
29
30
  }
@@ -1,4 +1,5 @@
1
1
  @use "$css/variables";
2
+ @use "spaces";
2
3
 
3
4
  @mixin responsive($parent: null) {
4
5
  object-fit: cover;
@@ -10,7 +11,7 @@
10
11
  width: 100%;
11
12
  height: 100%;
12
13
 
13
- @include margin("x-auto");
14
+ @include spaces.margin("x-auto");
14
15
 
15
16
  @if $parent != null {
16
17
  width: 2.5rem;
@@ -1,9 +1,9 @@
1
- @import "design";
2
- @import "field";
3
- @import "image";
4
- @import "layout";
5
- @import "menu";
6
- @import "selection";
7
- @import "spaces";
8
- @import "table";
9
- @import "typography";
1
+ @forward "design";
2
+ @forward "field";
3
+ @forward "image";
4
+ @forward "layout";
5
+ @forward "menu";
6
+ @forward "selection";
7
+ @forward "spaces";
8
+ @forward "table";
9
+ @forward "typography";
@@ -0,0 +1,12 @@
1
+ @forward "reset";
2
+ @forward "css-variables";
3
+ @forward "page";
4
+ @forward "elevate";
5
+
6
+ @forward "colors";
7
+ @forward "color-classes";
8
+ @forward "palette";
9
+
10
+ @forward "typography";
11
+ @forward "typography-classes";
12
+ @forward "typography-variables";
@@ -0,0 +1,17 @@
1
+ @use "sass:map";
2
+ @use "$css/variables";
3
+
4
+ .q-page {
5
+ max-width: 75rem;
6
+ margin: 0 auto;
7
+ padding: 4rem 1.5rem;
8
+ line-height: 1.5;
9
+
10
+ @media only screen and (max-width: #{map.get(variables.$breakpoints, md) - 1px}) {
11
+ padding: 3rem 1.25rem;
12
+ }
13
+
14
+ @media only screen and (min-width: #{map.get(variables.$breakpoints, md)}) and (max-width: #{map.get(variables.$breakpoints, lg) - 1px}) {
15
+ padding: 3.5rem 1.5rem;
16
+ }
17
+ }
@@ -1,3 +1,5 @@
1
+ @use "sass:list";
2
+
1
3
  $red6: #f44336;
2
4
 
3
5
  $red1: #ffebee;
@@ -611,8 +613,8 @@ $colors-list: (
611
613
 
612
614
  :root {
613
615
  @each $color-name, $color-values in $colors-list {
614
- @for $i from 1 through length($color-values) {
615
- $color: nth($color-values, $i);
616
+ @for $i from 1 through list.length($color-values) {
617
+ $color: list.nth($color-values, $i);
616
618
  $var-name: "--color-#{$color-name}-#{$i}";
617
619
  #{$var-name}: $color;
618
620
 
@@ -625,7 +627,7 @@ $colors-list: (
625
627
  }
626
628
 
627
629
  @each $color-name, $color-values in $colors-list {
628
- @for $i from 1 through length($color-values) {
630
+ @for $i from 1 through list.length($color-values) {
629
631
  $var-name: "--color-#{$color-name}-#{$i}";
630
632
  $text-selector: ".text-#{$color-name}-#{$i}";
631
633
  $bg-selector: ".bg-#{$color-name}-#{$i}";
@@ -1,2 +1,2 @@
1
- declare const _default: "0.1.0-prealpha20";
1
+ declare const _default: "0.1.0-prealpha22";
2
2
  export default _default;
@@ -1 +1 @@
1
- export default "0.1.0-prealpha20";
1
+ export default "0.1.0-prealpha22";
@@ -2,8 +2,8 @@
2
2
  "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\"",
3
3
  "QAvatarSizeOptions": "type QAvatarSizeOptions = Q.Size | Q.CssValue | number",
4
4
  "QBreadcrumbsGutterOptions": "type QBreadcrumbsGutterOptions = Exclude<Q.Size, \"xs\" | \"xl\">",
5
- "QBtnDesignOptions": "type QBtnDesignOptions = \"elevated\" | \"filled\" | \"tonal\" | \"outlined\" | \"flat\"",
6
5
  "QBtnSizeOptions": "type QBtnSizeOptions = Exclude<Q.Size, \"xs\">",
6
+ "QBtnVariantOptions": "type QBtnVariantOptions = \"elevated\" | \"filled\" | \"tonal\" | \"outlined\" | \"flat\"",
7
7
  "QCardFillColors": "type QCardFillColors = \"primary\" | \"secondary\" | \"tertiary\"",
8
8
  "QChipFillOptions": "type QChipFillOptions =\n | \"primary\"\n | \"secondary\"\n | \"tertiary\"\n | \"neutral\"\n | \"neutral-variant\"\n | \"error\"",
9
9
  "QChipKindOptions": "type QChipKindOptions = \"assist\" | \"filter\" | \"input\" | \"suggestion\"",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quaffui/quaff",
3
- "version": "0.1.0-prealpha20",
3
+ "version": "0.1.0-prealpha22",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "open": "vite dev --open",
@@ -13,7 +13,7 @@
13
13
  "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
14
14
  "test:unit": "vitest",
15
15
  "lint": "prettier --plugin prettier-plugin-svelte . --check . && eslint .",
16
- "format": "prettier --plugin prettier-plugin-svelte . --write .",
16
+ "format": "prettier --plugin prettier-plugin-svelte . --write . && eslint . --fix",
17
17
  "docgen-props": "bun scripts/docgenProps.ts",
18
18
  "colorgen": "bun scripts/colorgen.ts",
19
19
  "docgen-snippets": "bun scripts/docgenSnippets.ts",
@@ -32,43 +32,44 @@
32
32
  "!dist/**/*.spec.*"
33
33
  ],
34
34
  "peerDependencies": {
35
- "svelte": "^4.0.0"
35
+ "shiki": "^1.23.0"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@fontsource/roboto": "^5.1.0",
39
- "@material/material-color-utilities": "^0.3.0",
40
- "@sveltejs/adapter-auto": "^3.2.5",
41
- "@sveltejs/kit": "^2.5.28",
42
- "@sveltejs/package": "^2.3.5",
43
- "@sveltejs/vite-plugin-svelte": "^3.1.2",
44
- "@types/bun": "^1.1.11",
39
+ "@sveltejs/adapter-auto": "^3.3.1",
40
+ "@sveltejs/kit": "^2.8.2",
41
+ "@sveltejs/package": "^2.3.7",
42
+ "@sveltejs/vite-plugin-svelte": "^4.0.1",
45
43
  "@types/prettier": "^3.0.0",
46
- "@types/prismjs": "^1.26.4",
47
- "@typescript-eslint/eslint-plugin": "^8.7.0",
48
- "@typescript-eslint/parser": "^8.7.0",
49
- "eslint": "^9.11.1",
44
+ "@types/prismjs": "^1.26.5",
45
+ "@typescript-eslint/eslint-plugin": "^8.15.0",
46
+ "@typescript-eslint/parser": "^8.15.0",
47
+ "bun-types": "^1.1.36",
48
+ "eslint": "^9.15.0",
50
49
  "eslint-config-prettier": "^9.1.0",
51
- "eslint-plugin-import-x": "^4.3.0",
52
- "eslint-plugin-svelte": "^2.44.0",
53
- "eslint-plugin-unicorn": "^55.0.0",
50
+ "eslint-plugin-import-x": "^4.4.3",
51
+ "eslint-plugin-svelte": "^2.46.0",
52
+ "eslint-plugin-unicorn": "^56.0.1",
54
53
  "estree-walker": "^3.0.3",
55
- "globals": "^15.9.0",
56
- "magic-string": "^0.30.11",
57
- "material-symbols": "^0.23.0",
54
+ "globals": "^15.12.0",
55
+ "magic-string": "^0.30.13",
56
+ "material-symbols": "^0.27.1",
58
57
  "prettier": "^3.3.3",
59
- "prettier-plugin-svelte": "^3.2.6",
60
- "publint": "^0.2.11",
61
- "sass": "^1.79.3",
62
- "shiki": "^1.21.0",
63
- "svelte": "5.0.0-next.257",
64
- "svelte-check": "^4.0.3",
65
- "svelte-eslint-parser": "^0.41.1",
66
- "tslib": "^2.7.0",
67
- "typescript": "^5.6.2",
68
- "vite": "^5.4.7",
69
- "vitest": "^2.1.1"
58
+ "prettier-plugin-svelte": "^3.3.2",
59
+ "publint": "^0.2.12",
60
+ "sass": "^1.81.0",
61
+ "svelte": "^5.2.7",
62
+ "svelte-check": "^4.1.0",
63
+ "svelte-eslint-parser": "^0.43.0",
64
+ "tslib": "^2.8.1",
65
+ "typescript": "^5.7.2",
66
+ "vite": "^5.4.11",
67
+ "vitest": "^2.1.5"
70
68
  },
71
69
  "svelte": "./dist/index.js",
72
70
  "types": "./dist/index.d.ts",
73
- "type": "module"
71
+ "type": "module",
72
+ "dependencies": {
73
+ "@material/material-color-utilities": "^0.3.0"
74
+ }
74
75
  }
@@ -1,41 +0,0 @@
1
- .flex {
2
- display: flex !important;
3
- flex-wrap: wrap;
4
- }
5
-
6
- .column {
7
- flex-direction: column;
8
- }
9
-
10
- .items-center {
11
- align-items: center;
12
- }
13
-
14
- .justify-center {
15
- justify-content: center;
16
- }
17
-
18
- .justify-start {
19
- justify-content: flex-start;
20
- }
21
-
22
- .justify-end {
23
- justify-content: flex-end;
24
- }
25
-
26
- .justify-between {
27
- justify-content: space-between;
28
- }
29
-
30
- .justify-around {
31
- justify-content: space-around;
32
- }
33
-
34
- .justify-evenly {
35
- justify-content: space-evenly;
36
- }
37
-
38
- .flex-center {
39
- @extend .items-center;
40
- @extend .justify-center;
41
- }
@@ -1,16 +0,0 @@
1
- @use "../variables";
2
-
3
- .q-page {
4
- max-width: 75rem;
5
- margin: 0 auto;
6
- padding: 4rem 1.5rem;
7
- line-height: 1.5;
8
-
9
- @media only screen and (max-width: #{map-get(variables.$breakpoints, md) - 1px}) {
10
- padding: 3rem 1.25rem;
11
- }
12
-
13
- @media only screen and (min-width: #{map-get(variables.$breakpoints, md)}) and (max-width: #{map-get(variables.$breakpoints, lg) - 1px}) {
14
- padding: 3.5rem 1.5rem;
15
- }
16
- }
@@ -1,10 +0,0 @@
1
- @import "$css/theme/colors";
2
- @import "$css/theme/tokens.scss";
3
- @import "$css/theme/colors.module.scss";
4
- @import "$css/theme/palette.scss";
5
- @import "$css/theme/reset.scss";
6
- @import "$css/theme/css-variables.scss";
7
- @import "$css/theme/typography.module.scss";
8
- @import "$css/theme/typography.scss";
9
- @import "$css/theme/elevate.scss";
10
- @import "$css/theme/page.scss";
File without changes
File without changes