procode-vs-theme 1.0.5 → 1.0.7

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 (70) hide show
  1. package/dist/components.esm.js +4 -1
  2. package/dist/components.esm.js.map +1 -1
  3. package/dist/components.js +4 -0
  4. package/dist/components.js.map +1 -1
  5. package/dist/index.esm.js +5 -1
  6. package/dist/index.esm.js.map +1 -1
  7. package/dist/index.js +5 -1
  8. package/dist/index.js.map +1 -1
  9. package/dist/src/base/_border.scss +1 -0
  10. package/dist/src/base/_color.scss +6 -2
  11. package/dist/src/base/_custom-properties.scss +6 -0
  12. package/dist/src/base/_size.scss +13 -3
  13. package/dist/src/base/_space.scss +2 -0
  14. package/dist/src/base/mixins/_meta-class.scss +26 -0
  15. package/dist/src/components/_disabled.scss +8 -0
  16. package/dist/src/components/_placeholder.scss +46 -0
  17. package/dist/src/components.ts +23 -20
  18. package/dist/src/index.scss +2 -2
  19. package/dist/src/utilities/_cursor.scss +3 -3
  20. package/dist/src/utilities/_display.scss +3 -6
  21. package/dist/src/utilities/_flex.scss +60 -59
  22. package/dist/src/utilities/_opacity.scss +3 -3
  23. package/dist/src/utilities/_overflow.scss +5 -3
  24. package/dist/src/utilities/_position.scss +14 -18
  25. package/dist/src/utilities/_sizing.scss +21 -10
  26. package/dist/src/utilities/_text.scss +24 -30
  27. package/dist/src/utilities/_visibility.scss +4 -2
  28. package/dist/src/utilities/background-color/index.scss +16 -37
  29. package/dist/src/utilities/border/_border-color.scss +11 -33
  30. package/dist/src/utilities/border/_border-radius.scss +9 -28
  31. package/dist/src/utilities/border/_border-size.scss +8 -10
  32. package/dist/src/utilities/box-shadow/index.scss +6 -15
  33. package/dist/src/utilities/spaces/_gap.scss +4 -11
  34. package/dist/src/utilities/spaces/_margin.scss +14 -22
  35. package/dist/src/utilities/spaces/_padding.scss +7 -15
  36. package/dist/src/utilities/typography/_color.scss +12 -30
  37. package/dist/src/utilities/typography/_font.scss +35 -63
  38. package/dist/types/components.d.ts +2 -0
  39. package/package.json +1 -1
  40. package/src/base/_border.scss +1 -0
  41. package/src/base/_color.scss +6 -2
  42. package/src/base/_custom-properties.scss +6 -0
  43. package/src/base/_size.scss +13 -3
  44. package/src/base/_space.scss +2 -0
  45. package/src/base/mixins/_meta-class.scss +26 -0
  46. package/src/components/_disabled.scss +8 -0
  47. package/src/components/_placeholder.scss +46 -0
  48. package/src/components.ts +23 -20
  49. package/src/index.scss +2 -2
  50. package/src/utilities/_cursor.scss +3 -3
  51. package/src/utilities/_display.scss +3 -6
  52. package/src/utilities/_flex.scss +60 -59
  53. package/src/utilities/_opacity.scss +3 -3
  54. package/src/utilities/_overflow.scss +5 -3
  55. package/src/utilities/_position.scss +14 -18
  56. package/src/utilities/_sizing.scss +21 -10
  57. package/src/utilities/_text.scss +24 -30
  58. package/src/utilities/_visibility.scss +4 -2
  59. package/src/utilities/background-color/index.scss +16 -37
  60. package/src/utilities/border/_border-color.scss +11 -33
  61. package/src/utilities/border/_border-radius.scss +9 -28
  62. package/src/utilities/border/_border-size.scss +8 -10
  63. package/src/utilities/box-shadow/index.scss +6 -15
  64. package/src/utilities/spaces/_gap.scss +4 -11
  65. package/src/utilities/spaces/_margin.scss +14 -22
  66. package/src/utilities/spaces/_padding.scss +7 -15
  67. package/src/utilities/typography/_color.scss +12 -30
  68. package/src/utilities/typography/_font.scss +35 -63
  69. package/dist/src/utilities/size/index.scss +0 -9
  70. package/src/utilities/size/index.scss +0 -9
@@ -1,33 +1,11 @@
1
- @use "../../base/color" as cl;
2
-
3
- .qo-border-primary {
4
- border-color: cl.$border-primary;
5
- }
6
-
7
- .qo-border-secondary {
8
- border-color: cl.$border-secondary;
9
- }
10
-
11
- .qo-border-success {
12
- border-color: cl.$border-success;
13
- }
14
-
15
- .qo-border-warning {
16
- border-color: cl.$border-warning;
17
- }
18
-
19
- .qo-border-danger {
20
- border-color: cl.$border-danger;
21
- }
22
-
23
- .qo-border-info {
24
- border-color: cl.$border-info;
25
- }
26
-
27
- .qo-border-light {
28
- border-color: cl.$border-light;
29
- }
30
-
31
- .qo-border-dark {
32
- border-color: cl.$border-dark;
33
- }
1
+ @use "../../base/color" as cl;
2
+ @use "../../base/mixins/meta-class" as mc;
3
+
4
+ @include mc.meta("qo-border-primary", (border-color: cl.$border-primary));
5
+ @include mc.meta("qo-border-secondary", (border-color: cl.$border-secondary));
6
+ @include mc.meta("qo-border-success", (border-color: cl.$border-success));
7
+ @include mc.meta("qo-border-warning", (border-color: cl.$border-warning));
8
+ @include mc.meta("qo-border-danger", (border-color: cl.$border-danger));
9
+ @include mc.meta("qo-border-info", (border-color: cl.$border-info));
10
+ @include mc.meta("qo-border-light", (border-color: cl.$border-light));
11
+ @include mc.meta("qo-border-dark", (border-color: cl.$border-dark));
@@ -1,29 +1,10 @@
1
1
  @use "../../base/border" as bo;
2
-
3
- .qo-border-radius-0 {
4
- border-radius: bo.$border-radius-0;
5
- }
6
-
7
- .qo-border-radius-sm {
8
- border-radius: bo.$border-radius-sm;
9
- }
10
-
11
- .qo-border-radius-md {
12
- border-radius: bo.$border-radius-md;
13
- }
14
-
15
- .qo-border-radius-lg {
16
- border-radius: bo.$border-radius-lg;
17
- }
18
-
19
- .qo-border-radius-xl {
20
- border-radius: bo.$border-radius-xl;
21
- }
22
-
23
- .qo-border-radius-pill {
24
- border-radius: bo.$border-radius-pill;
25
- }
26
-
27
- .qo-border-radius-full {
28
- border-radius: bo.$border-radius-full;
29
- }
2
+ @use "../../base/mixins/meta-class" as mc;
3
+
4
+ @include mc.meta("qo-border-radius-0", (border-radius: bo.$border-radius-0));
5
+ @include mc.meta("qo-border-radius-sm", (border-radius: bo.$border-radius-sm));
6
+ @include mc.meta("qo-border-radius-md", (border-radius: bo.$border-radius-md));
7
+ @include mc.meta("qo-border-radius-lg", (border-radius: bo.$border-radius-lg));
8
+ @include mc.meta("qo-border-radius-xl", (border-radius: bo.$border-radius-xl));
9
+ @include mc.meta("qo-border-radius-pill", (border-radius: bo.$border-radius-pill));
10
+ @include mc.meta("qo-border-radius-full", (border-radius: bo.$border-radius-full));
@@ -1,10 +1,8 @@
1
- @use "../../base/border" as bo;
2
- .qo-border-sm {
3
- border-width: bo.$border-width-sm;
4
- }
5
- .qo-border-md {
6
- border-width: bo.$border-width-md;
7
- }
8
- .qo-border-lg {
9
- border-width: bo.$border-width-lg;
10
- }
1
+ @use "../../base/border" as bo;
2
+ @use "../../base/mixins/meta-class" as mc;
3
+
4
+
5
+ @include mc.meta("qo-border-none", (border-width: bo.$border-width-none));
6
+ @include mc.meta("qo-border-sm", (border-width: bo.$border-width-sm));
7
+ @include mc.meta("qo-border-md", (border-width: bo.$border-width-md));
8
+ @include mc.meta("qo-border-lg", (border-width: bo.$border-width-lg));
@@ -1,17 +1,8 @@
1
1
  @use "../../base/color" as cl;
2
+ @use "../../base/mixins/meta-class" as mc;
2
3
 
3
- .qo-boxshadow-none {
4
- box-shadow: none;
5
- }
6
- .qo-boxshadow-sm {
7
- box-shadow: 0 1px 2px 0 cl.$boxshadow-primary;
8
- }
9
- .qo-boxshadow-md {
10
- box-shadow: 0 4px 8px 0 cl.$boxshadow-primary;
11
- }
12
- .qo-boxshadow-lg {
13
- box-shadow: 0 8px 16px 0 cl.$boxshadow-primary;
14
- }
15
- .qo-boxshadow-xl {
16
- box-shadow: 0 12px 24px 0 cl.$boxshadow-primary;
17
- }
4
+ @include mc.meta("qo-boxshadow-none", (box-shadow: none));
5
+ @include mc.meta("qo-boxshadow-sm", (box-shadow: 0 1px 2px 0 cl.$boxshadow-primary));
6
+ @include mc.meta("qo-boxshadow-md", (box-shadow: 0 4px 8px 0 cl.$boxshadow-primary));
7
+ @include mc.meta("qo-boxshadow-lg", (box-shadow: 0 8px 16px 0 cl.$boxshadow-primary));
8
+ @include mc.meta("qo-boxshadow-xl", (box-shadow: 0 12px 24px 0 cl.$boxshadow-primary));
@@ -1,15 +1,8 @@
1
1
  @use "../../base/space" as sp;
2
+ @use "../../base/mixins/meta-class" as mc;
2
3
 
3
4
  @each $key, $value in sp.$spacers {
4
- .qo-gap-#{$key} {
5
- gap: $value;
6
- }
7
-
8
- .qo-gap-x-#{$key} {
9
- column-gap: $value;
10
- }
11
-
12
- .qo-gap-y-#{$key} {
13
- row-gap: $value;
14
- }
5
+ @include mc.meta("qo-gap-#{$key}", (gap: $value));
6
+ @include mc.meta("qo-gap-x-#{$key}", (column-gap: $value));
7
+ @include mc.meta("qo-gap-y-#{$key}", (row-gap: $value));
15
8
  }
@@ -1,4 +1,5 @@
1
1
  @use "../../base/space" as sp;
2
+ @use "../../base/mixins/meta-class" as mc;
2
3
 
3
4
  $_directions: (
4
5
  "": "",
@@ -10,34 +11,25 @@ $_directions: (
10
11
 
11
12
  @each $key, $value in sp.$spacers {
12
13
  @each $dir-name, $dir-prop in $_directions {
13
- .qo-margin-#{$dir-name}#{$key} {
14
- @if $dir-prop == "" {
15
- margin: $value;
16
- } @else {
17
- margin-#{$dir-prop}: $value;
18
- }
14
+ @if $dir-prop == "" {
15
+ @include mc.meta("qo-margin-#{$dir-name}#{$key}", (margin: $value));
16
+ } @else {
17
+ @include mc.meta("qo-margin-#{$dir-name}#{$key}", (margin-#{$dir-prop}: $value));
19
18
  }
20
19
  }
21
20
 
22
- .qo-margin-x-#{$key} {
23
- margin-left: $value;
24
- margin-right: $value;
25
- }
26
-
27
- .qo-margin-y-#{$key} {
28
- margin-top: $value;
29
- margin-bottom: $value;
30
- }
21
+ @include mc.meta("qo-margin-x-#{$key}", (margin-left: $value, margin-right: $value));
22
+ @include mc.meta("qo-margin-y-#{$key}", (margin-top: $value, margin-bottom: $value));
31
23
  }
32
24
 
33
25
  // Auto margins
34
- .qo-margin-auto { margin: auto; }
35
- .qo-margin-x-auto { margin-left: auto; margin-right: auto; }
36
- .qo-margin-y-auto { margin-top: auto; margin-bottom: auto; }
37
- .qo-margin-top-auto { margin-top: auto; }
38
- .qo-margin-bottom-auto { margin-bottom: auto; }
39
- .qo-margin-left-auto { margin-left: auto; }
40
- .qo-margin-right-auto { margin-right: auto; }
26
+ @include mc.meta("qo-margin-auto", (margin: auto));
27
+ @include mc.meta("qo-margin-x-auto", (margin-left: auto, margin-right: auto));
28
+ @include mc.meta("qo-margin-y-auto", (margin-top: auto, margin-bottom: auto));
29
+ @include mc.meta("qo-margin-top-auto", (margin-top: auto));
30
+ @include mc.meta("qo-margin-bottom-auto", (margin-bottom: auto));
31
+ @include mc.meta("qo-margin-left-auto", (margin-left: auto));
32
+ @include mc.meta("qo-margin-right-auto", (margin-right: auto));
41
33
 
42
34
  // @deprecated — typo aliases kept for backwards compatibility
43
35
  .qo-margin-botttom-sm { margin-bottom: sp.$space-sm; }
@@ -1,4 +1,5 @@
1
1
  @use "../../base/space" as sp;
2
+ @use "../../base/mixins/meta-class" as mc;
2
3
 
3
4
  $_directions: (
4
5
  "": "",
@@ -10,24 +11,15 @@ $_directions: (
10
11
 
11
12
  @each $key, $value in sp.$spacers {
12
13
  @each $dir-name, $dir-prop in $_directions {
13
- .qo-padding-#{$dir-name}#{$key} {
14
- @if $dir-prop == "" {
15
- padding: $value;
16
- } @else {
17
- padding-#{$dir-prop}: $value;
18
- }
14
+ @if $dir-prop == "" {
15
+ @include mc.meta("qo-padding-#{$dir-name}#{$key}", (padding: $value));
16
+ } @else {
17
+ @include mc.meta("qo-padding-#{$dir-name}#{$key}", (padding-#{$dir-prop}: $value));
19
18
  }
20
19
  }
21
20
 
22
- .qo-padding-x-#{$key} {
23
- padding-left: $value;
24
- padding-right: $value;
25
- }
26
-
27
- .qo-padding-y-#{$key} {
28
- padding-top: $value;
29
- padding-bottom: $value;
30
- }
21
+ @include mc.meta("qo-padding-x-#{$key}", (padding-left: $value, padding-right: $value));
22
+ @include mc.meta("qo-padding-y-#{$key}", (padding-top: $value, padding-bottom: $value));
31
23
  }
32
24
 
33
25
  // @deprecated — typo aliases kept for backwards compatibility
@@ -1,38 +1,20 @@
1
1
  @use "sass:color";
2
2
  @use "../../base/color" as cl;
3
+ @use "../../base/mixins/meta-class" as mc;
3
4
 
4
- .qo-text-primary {
5
- color: cl.$text-primary;
6
- }
7
- .qo-text-secondary {
8
- color: cl.$text-secondary;
9
- }
10
- .qo-text-success {
11
- color: cl.$text-success;
12
- }
13
- .qo-text-warning {
14
- color: cl.$text-warning;
15
- }
16
- .qo-text-danger {
17
- color: cl.$text-danger;
18
- }
19
- .qo-text-info {
20
- color: cl.$text-info;
21
- }
22
- .qo-text-default {
23
- color: cl.$text-default;
24
- }
25
- .qo-text-dark {
26
- color: cl.$text-dark;
27
- }
28
- .qo-text-light {
29
- color: cl.$text-light;
30
- }
31
- .qo-text-tertiary {
32
- color: cl.$text-tertiary;
33
- }
5
+ @include mc.meta("qo-text-primary", (color: cl.$text-primary));
6
+ @include mc.meta("qo-text-secondary", (color: cl.$text-secondary));
7
+ @include mc.meta("qo-text-success", (color: cl.$text-success));
8
+ @include mc.meta("qo-text-warning", (color: cl.$text-warning));
9
+ @include mc.meta("qo-text-danger", (color: cl.$text-danger));
10
+ @include mc.meta("qo-text-info", (color: cl.$text-info));
11
+ @include mc.meta("qo-text-default", (color: cl.$text-default));
12
+ @include mc.meta("qo-text-dark", (color: cl.$text-dark));
13
+ @include mc.meta("qo-text-light", (color: cl.$text-light));
14
+ @include mc.meta("qo-text-tertiary", (color: cl.$text-tertiary));
34
15
 
35
16
  // Higher specificity variants when used with .qo-btn (beats Kendo .k-button-* selectors)
17
+ // Intentionally NOT wrapped in meta() — button overrides must stay high specificity
36
18
  .qo-btn {
37
19
  &.qo-text-primary { color: cl.$text-primary; &:hover, &:focus, &:active { color: cl.$text-primary-hover; } }
38
20
  &.qo-text-secondary { color: cl.$text-secondary; &:hover, &:focus, &:active { color: cl.$text-dark; } }
@@ -1,63 +1,35 @@
1
- @use "../../base/font" as ft;
2
- @use "../../base/mixins/font_size-mx" as mx;
3
- @import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100..700;1,100..700&display=swap");
4
-
5
- .qo-font-family-primary {
6
- font-family: ft.$font-family-primary;
7
- }
8
-
9
- .qo-font-family-secondary {
10
- font-family: ft.$font-family-secondary;
11
- }
12
-
13
- .qo-font-xxs {
14
- @include mx.font-size(ft.$font-size-xxs, ft.$line-height-xxs);
15
- }
16
- .qo-font-xs {
17
- @include mx.font-size(ft.$font-size-xs, ft.$line-height-xs);
18
- }
19
- .qo-font-sm {
20
- @include mx.font-size(ft.$font-size-sm, ft.$line-height-sm);
21
- }
22
- .qo-font-md {
23
- @include mx.font-size(ft.$font-size-md, ft.$line-height-md);
24
- }
25
- .qo-font-lg {
26
- @include mx.font-size(ft.$font-size-lg, ft.$line-height-lg);
27
- }
28
- .qo-font-xl {
29
- @include mx.font-size(ft.$font-size-xl, ft.$line-height-xl);
30
- }
31
- .qo-font-xxl {
32
- @include mx.font-size(ft.$font-size-xxl, ft.$line-height-xxl);
33
- }
34
-
35
- .qo-font-weight-light {
36
- font-weight: ft.$font-weight-light;
37
- }
38
- .qo-font-weight-regular {
39
- font-weight: ft.$font-weight-regular;
40
- }
41
- .qo-font-weight-medium {
42
- font-weight: ft.$font-weight-medium;
43
- }
44
- .qo-font-weight-semibold {
45
- font-weight: ft.$font-weight-semibold;
46
- }
47
- .qo-font-weight-bold {
48
- font-weight: ft.$font-weight-bold;
49
- }
50
- .qo-font-weight-extrabold {
51
- font-weight: ft.$font-weight-extrabold;
52
- }
53
- .qo-validation {
54
- @include mx.font-size(ft.$font-size-md, ft.$line-height-md);
55
- font-weight: ft.$font-weight-light;
56
- margin-top: 2px;
57
- }
58
-
59
- h4 {
60
- @include mx.font-size(ft.$font-size-md, ft.$line-height-md);
61
- font-family: ft.$font-family-primary;
62
- font-weight: ft.$font-weight-medium;
63
- }
1
+ @use "../../base/font" as ft;
2
+ @use "../../base/mixins/meta-class" as mc;
3
+ @import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100..700;1,100..700&display=swap");
4
+
5
+ @include mc.meta("qo-font-family-primary", (font-family: ft.$font-family-primary));
6
+ @include mc.meta("qo-font-family-secondary", (font-family: ft.$font-family-secondary));
7
+
8
+ @include mc.meta("qo-font-xxs", (font-size: ft.$font-size-xxs, line-height: ft.$line-height-xxs));
9
+ @include mc.meta("qo-font-xs", (font-size: ft.$font-size-xs, line-height: ft.$line-height-xs));
10
+ @include mc.meta("qo-font-sm", (font-size: ft.$font-size-sm, line-height: ft.$line-height-sm));
11
+ @include mc.meta("qo-font-md", (font-size: ft.$font-size-md, line-height: ft.$line-height-md));
12
+ @include mc.meta("qo-font-lg", (font-size: ft.$font-size-lg, line-height: ft.$line-height-lg));
13
+ @include mc.meta("qo-font-xl", (font-size: ft.$font-size-xl, line-height: ft.$line-height-xl));
14
+ @include mc.meta("qo-font-xxl", (font-size: ft.$font-size-xxl, line-height: ft.$line-height-xxl));
15
+
16
+ @include mc.meta("qo-font-weight-light", (font-weight: ft.$font-weight-light));
17
+ @include mc.meta("qo-font-weight-regular", (font-weight: ft.$font-weight-regular));
18
+ @include mc.meta("qo-font-weight-medium", (font-weight: ft.$font-weight-medium));
19
+ @include mc.meta("qo-font-weight-semibold", (font-weight: ft.$font-weight-semibold));
20
+ @include mc.meta("qo-font-weight-bold", (font-weight: ft.$font-weight-bold));
21
+ @include mc.meta("qo-font-weight-extrabold", (font-weight: ft.$font-weight-extrabold));
22
+
23
+ .qo-validation {
24
+ font-size: ft.$font-size-md;
25
+ line-height: ft.$line-height-md;
26
+ font-weight: ft.$font-weight-light;
27
+ margin-top: 2px;
28
+ }
29
+
30
+ h4 {
31
+ font-size: ft.$font-size-md;
32
+ line-height: ft.$line-height-md;
33
+ font-family: ft.$font-family-primary;
34
+ font-weight: ft.$font-weight-medium;
35
+ }
@@ -1,9 +0,0 @@
1
- @use "../../base/size" as sz;
2
-
3
- .qo-size-sm {
4
- height: sz.$size-sm;
5
- }
6
-
7
- .qo-size-md {
8
- height: sz.$size-md;
9
- }
@@ -1,9 +0,0 @@
1
- @use "../../base/size" as sz;
2
-
3
- .qo-size-sm {
4
- height: sz.$size-sm;
5
- }
6
-
7
- .qo-size-md {
8
- height: sz.$size-md;
9
- }