procode-vs-theme 1.0.3 → 1.0.4

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 (96) hide show
  1. package/dist/index.esm.js +48 -11
  2. package/dist/index.esm.js.map +1 -1
  3. package/dist/index.js +48 -11
  4. package/dist/index.js.map +1 -1
  5. package/dist/src/{_border.scss → base/_border.scss} +11 -8
  6. package/dist/src/base/_color.scss +41 -0
  7. package/dist/src/base/_custom-properties.scss +102 -0
  8. package/dist/src/base/_font.scss +37 -0
  9. package/dist/src/base/_size.scss +7 -0
  10. package/dist/src/base/_space.scss +27 -0
  11. package/dist/src/base/mixins/_breakpoints.scss +27 -0
  12. package/dist/src/baseExports.ts +35 -0
  13. package/dist/src/components/_buttons.scss +387 -0
  14. package/dist/src/components.ts +20 -0
  15. package/dist/src/index.scss +71 -24
  16. package/dist/src/index.ts +52 -0
  17. package/dist/src/layout.ts +23 -0
  18. package/dist/src/utilities/_cursor.scss +7 -0
  19. package/dist/src/utilities/_display.scss +20 -0
  20. package/dist/src/utilities/_flex.scss +82 -0
  21. package/dist/src/utilities/_opacity.scss +7 -0
  22. package/dist/src/utilities/_overflow.scss +7 -0
  23. package/dist/src/utilities/_position.scss +26 -0
  24. package/dist/src/utilities/_sizing.scss +13 -0
  25. package/dist/src/utilities/_text.scss +49 -0
  26. package/dist/src/utilities/_visibility.scss +2 -0
  27. package/dist/src/utilities/background-color/index.scss +37 -0
  28. package/dist/src/{_border-radius.scss → utilities/border/_border-radius.scss} +29 -17
  29. package/dist/src/utilities/box-shadow/index.scss +17 -0
  30. package/dist/src/utilities/size/index.scss +9 -0
  31. package/dist/src/utilities/spaces/_gap.scss +15 -0
  32. package/dist/src/utilities/spaces/_margin.scss +46 -0
  33. package/dist/src/utilities/spaces/_padding.scss +37 -0
  34. package/dist/src/utilities/typography/_color.scss +51 -0
  35. package/dist/src/utilities.ts +112 -0
  36. package/dist/src/variables.ts +36 -0
  37. package/dist/types/baseExports.d.ts +0 -2
  38. package/dist/types/utilities.d.ts +18 -0
  39. package/dist/types/variables.d.ts +0 -2
  40. package/dist/utilities.esm.js +39 -3
  41. package/dist/utilities.esm.js.map +1 -1
  42. package/dist/utilities.js +47 -2
  43. package/dist/utilities.js.map +1 -1
  44. package/dist/variables.esm.js +1 -4
  45. package/dist/variables.esm.js.map +1 -1
  46. package/dist/variables.js +0 -4
  47. package/dist/variables.js.map +1 -1
  48. package/package.json +2 -2
  49. package/src/base/_border.scss +11 -8
  50. package/src/base/_color.scss +3 -1
  51. package/src/base/_custom-properties.scss +102 -0
  52. package/src/base/_font.scss +37 -26
  53. package/src/base/_size.scss +7 -4
  54. package/src/base/_space.scss +27 -4
  55. package/src/base/mixins/_breakpoints.scss +27 -0
  56. package/src/baseExports.ts +0 -4
  57. package/src/components/_buttons.scss +387 -38
  58. package/src/index.scss +71 -24
  59. package/src/utilities/_cursor.scss +7 -0
  60. package/src/utilities/_display.scss +20 -0
  61. package/src/utilities/_flex.scss +82 -0
  62. package/src/utilities/_opacity.scss +7 -0
  63. package/src/utilities/_overflow.scss +7 -0
  64. package/src/utilities/_position.scss +26 -0
  65. package/src/utilities/_sizing.scss +13 -0
  66. package/src/utilities/_text.scss +49 -0
  67. package/src/utilities/_visibility.scss +2 -0
  68. package/src/utilities/border/_border-radius.scss +29 -17
  69. package/src/utilities/box-shadow/index.scss +17 -8
  70. package/src/utilities/spaces/_gap.scss +15 -20
  71. package/src/utilities/spaces/_margin.scss +46 -69
  72. package/src/utilities/spaces/_padding.scss +37 -69
  73. package/src/utilities/typography/_color.scss +51 -35
  74. package/src/utilities.ts +112 -67
  75. package/src/variables.ts +1 -5
  76. package/dist/src/_apply-theme.scss +0 -28
  77. package/dist/src/_buttons.scss +0 -38
  78. package/dist/src/_color.scss +0 -35
  79. package/dist/src/_gap.scss +0 -20
  80. package/dist/src/_margin.scss +0 -69
  81. package/dist/src/_padding.scss +0 -69
  82. package/dist/src/_size.scss +0 -4
  83. package/dist/src/_space.scss +0 -4
  84. package/src/base/mixins/_apply-theme.scss +0 -28
  85. /package/dist/src/{_font_size-mx.scss → base/mixins/_font_size-mx.scss} +0 -0
  86. /package/dist/src/{_media-query-mx.scss → base/mixins/_media-query-mx.scss} +0 -0
  87. /package/dist/src/{_cards.scss → components/_cards.scss} +0 -0
  88. /package/dist/src/{_input.scss → components/_input.scss} +0 -0
  89. /package/dist/src/{_drawer.scss → layout/_drawer.scss} +0 -0
  90. /package/dist/src/{_footer.scss → layout/_footer.scss} +0 -0
  91. /package/dist/src/{_header.scss → layout/_header.scss} +0 -0
  92. /package/dist/src/{_sidebar.scss → layout/_sidebar.scss} +0 -0
  93. /package/dist/src/{_reset.scss → utilities/_reset.scss} +0 -0
  94. /package/dist/src/{_border-color.scss → utilities/border/_border-color.scss} +0 -0
  95. /package/dist/src/{_border-size.scss → utilities/border/_border-size.scss} +0 -0
  96. /package/dist/src/{_font.scss → utilities/typography/_font.scss} +0 -0
package/src/variables.ts CHANGED
@@ -11,18 +11,15 @@ export const sizes = './base/_size.scss';
11
11
  // Mixins
12
12
  export const mediaQueryMixins = './base/mixins/_media-query-mx.scss';
13
13
  export const fontSizeMixins = './base/mixins/_font_size-mx.scss';
14
- export const applyThemeMixins = './base/mixins/_apply-theme.scss';
15
-
16
14
  // All base variables combined
17
15
  export const allVariables = [
18
16
  colors,
19
17
  fonts,
20
- spacing,
18
+ spacing,
21
19
  borders,
22
20
  sizes,
23
21
  mediaQueryMixins,
24
22
  fontSizeMixins,
25
- applyThemeMixins
26
23
  ];
27
24
 
28
25
  export default {
@@ -34,7 +31,6 @@ export default {
34
31
  mixins: {
35
32
  mediaQuery: mediaQueryMixins,
36
33
  fontSize: fontSizeMixins,
37
- applyTheme: applyThemeMixins
38
34
  },
39
35
  all: allVariables
40
36
  };
@@ -1,28 +0,0 @@
1
- // /abstracts/_mixins.scss
2
-
3
- @mixin apply-theme($name) {
4
- $theme: tf.get-theme($name);
5
-
6
- background-color: mdg.map-deep-get($theme, "colors", "background", "main");
7
- color: mdg.map-deep-get($theme, "colors", "text", "primary");
8
-
9
- font-family: mdg.map-deep-get($theme, "typography", "font-family", "primary");
10
- font-size: mdg.map-deep-get($theme, "typography", "font-size", "md");
11
- line-height: mdg.map-deep-get($theme, "typography", "line-height", "normal");
12
-
13
- .btn {
14
- background-color: mdg.map-deep-get($theme, "colors", "primary");
15
- color: mdg.map-deep-get($theme, "colors", "text", "primary");
16
- padding: mdg.map-deep-get($theme, "spacing", "sm");
17
- border-radius: mdg.map-deep-get($theme, "border-radius", "md");
18
- transition: all mdg.map-deep-get($theme, "transitions", "speed", "normal")
19
- mdg.map-deep-get($theme, "transitions", "easing", "ease-in-out");
20
- }
21
-
22
- .card {
23
- background-color: mdg.map-deep-get($theme, "colors", "background", "paper");
24
- box-shadow: 0 2px 8px mdg.map-deep-get($theme, "colors", "shadow");
25
- padding: mdg.map-deep-get($theme, "spacing", "md");
26
- border-radius: mdg.map-deep-get($theme, "border-radius", "lg");
27
- }
28
- }
@@ -1,38 +0,0 @@
1
- @use "../base/mixins/font_size-mx" as mx;
2
- @use "../base/font" as ft;
3
- @use "../base/color" as cl;
4
- @use "../base/border" as bo;
5
-
6
- $btn-padding-xs: 5.5px !default;
7
- $btn-padding-md: 8px !default;
8
- $btn-padding-xl: 16px !default;
9
-
10
- .qo-btn {
11
- display: inline-block;
12
- border-radius: bo.$border-radius-sm;
13
- }
14
- .qo-btn-full {
15
- display: block;
16
- border-radius: bo.$border-radius-sm;
17
- width: 100%;
18
- padding: $btn-padding-xl;
19
- @include mx.font-size(ft.$font-size-md, ft.$line-height-md);
20
- }
21
- .qo-btn-xs {
22
- padding: $btn-padding-xs;
23
- @include mx.font-size(ft.$font-size-xs, ft.$line-height-xs);
24
- }
25
- .qo-btn-md {
26
- padding: $btn-padding-md;
27
- @include mx.font-size(ft.$font-size-md, ft.$line-height-md);
28
- }
29
- .qo-btn-primary {
30
- background-color: cl.$background-primary !important;
31
- border: bo.$border-width-sm solid cl.$border-primary;
32
- color: cl.$text-light !important;
33
- }
34
- .qo-btn-default {
35
- background-color: cl.$background-default;
36
- border: bo.$border-width-sm solid cl.$border-default;
37
- color: cl.$text-dark !important;
38
- }
@@ -1,35 +0,0 @@
1
- @use "../../base/color" as cl;
2
- .qo-text-primary {
3
- color: cl.$text-primary;
4
- }
5
- .qo-text-secondary {
6
- color: cl.$text-secondary;
7
- }
8
- .qo-text-success {
9
- color: cl.$text-success;
10
- }
11
- .qo-text-warning {
12
- color: cl.$text-warning;
13
- }
14
- .qo-text-danger {
15
- color: cl.$text-danger;
16
- }
17
- .qo-text-info {
18
- color: cl.$text-info;
19
- }
20
- .qo-text-default {
21
- color: cl.$text-default;
22
- }
23
- .qo-text-dark {
24
- color: cl.$text-dark;
25
- }
26
- .qo-text-light {
27
- color: cl.$text-light !important;
28
- }
29
- .qo-text-tertiary {
30
- color: cl.$text-tertiary;
31
- }
32
-
33
- .qo-validation{
34
- color: cl.$text-danger;
35
- }
@@ -1,20 +0,0 @@
1
- @use "../../base/space" as sp;
2
-
3
- .qo-gap-sm {
4
- gap: sp.$space-sm;
5
- }
6
- .qo-gap-md {
7
- gap: sp.$space-md;
8
- }
9
- .qo-gap-md-y {
10
- gap: sp.$space-md 0;
11
- }
12
- .qo-gap-md-x {
13
- gap: 0 sp.$space-md;
14
- }
15
- .qo-gap-lg {
16
- gap: sp.$space-lg;
17
- }
18
- .qo-gap-xl {
19
- gap: sp.$space-xl;
20
- }
@@ -1,69 +0,0 @@
1
- @use "../../base/space" as sp;
2
-
3
- //small
4
- .qo-margin-sm {
5
- margin: sp.$space-sm;
6
- }
7
- .qo-margin-top-sm {
8
- margin-top: sp.$space-sm;
9
- }
10
- .qo-margin-right-sm {
11
- margin-right: sp.$space-sm;
12
- }
13
- .qo-margin-botttom-sm {
14
- margin-bottom: sp.$space-sm;
15
- }
16
- .qo-margin-left-sm {
17
- margin-left: sp.$space-sm;
18
- }
19
-
20
- //medium
21
- .qo-margin-md {
22
- margin: sp.$space-md;
23
- }
24
- .qo-margin-top-md {
25
- margin-top: sp.$space-md;
26
- }
27
- .qo-margin-right-md {
28
- margin-right: sp.$space-md;
29
- }
30
- .qo-margin-botttom-md {
31
- margin-bottom: sp.$space-md;
32
- }
33
- .qo-margin-left-md {
34
- margin-left: sp.$space-md;
35
- }
36
-
37
- //large
38
- .qo-margin-lg {
39
- margin: sp.$space-lg;
40
- }
41
- .qo-margin-top-lg {
42
- margin-top: sp.$space-lg;
43
- }
44
- .qo-margin-right-lg {
45
- margin-right: sp.$space-lg;
46
- }
47
- .qo-margin-botttom-lg {
48
- margin-bottom: sp.$space-lg;
49
- }
50
- .qo-margin-left-lg {
51
- margin-left: sp.$space-lg;
52
- }
53
-
54
- //extra large
55
- .qo-margin-xl {
56
- margin: sp.$space-xl;
57
- }
58
- .qo-margin-top-xl {
59
- margin-top: sp.$space-xl;
60
- }
61
- .qo-margin-right-xl {
62
- margin-right: sp.$space-xl;
63
- }
64
- .qo-margin-botttom-xl {
65
- margin-bottom: sp.$space-xl;
66
- }
67
- .qo-margin-left-xl {
68
- margin-left: sp.$space-xl;
69
- }
@@ -1,69 +0,0 @@
1
- @use "../../base/space" as sp;
2
-
3
- //small
4
- .qo-padding-sm {
5
- padding: sp.$space-sm;
6
- }
7
- .qo-padding-top-sm {
8
- padding-top: sp.$space-sm;
9
- }
10
- .qo-padding-right-sm {
11
- padding-right: sp.$space-sm;
12
- }
13
- .qo-padding-botttom-sm {
14
- padding-bottom: sp.$space-sm;
15
- }
16
- .qo-padding-left-sm {
17
- padding-left: sp.$space-sm;
18
- }
19
-
20
- //medium
21
- .qo-padding-md {
22
- padding: sp.$space-md;
23
- }
24
- .qo-padding-top-md {
25
- padding-top: sp.$space-md;
26
- }
27
- .qo-padding-right-md {
28
- padding-right: sp.$space-md;
29
- }
30
- .qo-padding-botttom-md {
31
- padding-bottom: sp.$space-md;
32
- }
33
- .qo-padding-left-md {
34
- padding-left: sp.$space-md;
35
- }
36
-
37
- //large
38
- .qo-padding-lg {
39
- padding: sp.$space-lg;
40
- }
41
- .qo-padding-top-lg {
42
- padding-top: sp.$space-lg;
43
- }
44
- .qo-padding-right-lg {
45
- padding-right: sp.$space-lg;
46
- }
47
- .qo-padding-botttom-lg {
48
- padding-bottom: sp.$space-lg;
49
- }
50
- .qo-padding-left-lg {
51
- padding-left: sp.$space-lg;
52
- }
53
-
54
- //extra large
55
- .qo-padding-xl {
56
- padding: sp.$space-xl;
57
- }
58
- .qo-padding-top-xl {
59
- padding-top: sp.$space-xl;
60
- }
61
- .qo-padding-right-xl {
62
- padding-right: sp.$space-xl;
63
- }
64
- .qo-padding-botttom-xl {
65
- padding-bottom: sp.$space-xl;
66
- }
67
- .qo-padding-left-xl {
68
- padding-left: sp.$space-xl;
69
- }
@@ -1,4 +0,0 @@
1
- $menu-size: 32px;
2
-
3
- $size-sm: 16px;
4
- $size-md: 32px;
@@ -1,4 +0,0 @@
1
- $space-sm: 5px !default;
2
- $space-md: 12.5px !default;
3
- $space-lg: 16.5px !default;
4
- $space-xl: 21px !default;
@@ -1,28 +0,0 @@
1
- // /abstracts/_mixins.scss
2
-
3
- @mixin apply-theme($name) {
4
- $theme: tf.get-theme($name);
5
-
6
- background-color: mdg.map-deep-get($theme, "colors", "background", "main");
7
- color: mdg.map-deep-get($theme, "colors", "text", "primary");
8
-
9
- font-family: mdg.map-deep-get($theme, "typography", "font-family", "primary");
10
- font-size: mdg.map-deep-get($theme, "typography", "font-size", "md");
11
- line-height: mdg.map-deep-get($theme, "typography", "line-height", "normal");
12
-
13
- .btn {
14
- background-color: mdg.map-deep-get($theme, "colors", "primary");
15
- color: mdg.map-deep-get($theme, "colors", "text", "primary");
16
- padding: mdg.map-deep-get($theme, "spacing", "sm");
17
- border-radius: mdg.map-deep-get($theme, "border-radius", "md");
18
- transition: all mdg.map-deep-get($theme, "transitions", "speed", "normal")
19
- mdg.map-deep-get($theme, "transitions", "easing", "ease-in-out");
20
- }
21
-
22
- .card {
23
- background-color: mdg.map-deep-get($theme, "colors", "background", "paper");
24
- box-shadow: 0 2px 8px mdg.map-deep-get($theme, "colors", "shadow");
25
- padding: mdg.map-deep-get($theme, "spacing", "md");
26
- border-radius: mdg.map-deep-get($theme, "border-radius", "lg");
27
- }
28
- }
File without changes
File without changes
File without changes
File without changes