@matteusan/himig 1.4.0 → 1.5.0

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 (81) hide show
  1. package/_index.scss +2 -2
  2. package/ms-badge/_badge-base.scss +1 -1
  3. package/ms-badge/_badge-extend.scss +1 -1
  4. package/ms-badge/_badge-styles.scss +1 -1
  5. package/ms-button/_button-base.scss +1 -1
  6. package/ms-button/_button-extend.scss +1 -1
  7. package/ms-button/_button-mixins.scss +1 -1
  8. package/ms-button/_button-styles.scss +1 -1
  9. package/ms-card/_card-base.scss +1 -1
  10. package/ms-card/_card-extend.scss +1 -1
  11. package/ms-card/_card-styles.scss +1 -1
  12. package/ms-form-field/_form-field-base.scss +1 -1
  13. package/ms-form-field/_form-field-extend.scss +1 -1
  14. package/ms-form-field/_form-field-styles.scss +1 -1
  15. package/ms-link/_index.scss +24 -0
  16. package/ms-link/_link-base.scss +29 -0
  17. package/ms-link/_link-extend.scss +53 -0
  18. package/ms-link/_link-styles.scss +70 -0
  19. package/ms-link/_link-theme.scss +41 -0
  20. package/ms-list/_list-base.scss +1 -1
  21. package/ms-list/_list-extend.scss +1 -1
  22. package/ms-list/_list-styles.scss +1 -1
  23. package/ms-select-field/_select-field-base.scss +1 -1
  24. package/ms-select-field/_select-field-extend.scss +1 -1
  25. package/ms-select-field/_select-field-styles.scss +1 -1
  26. package/ms-tick-field/_tick-field-base.scss +1 -1
  27. package/ms-tick-field/_tick-field-extend.scss +1 -1
  28. package/ms-tick-field/_tick-field-styles.scss +1 -1
  29. package/ms-utils/_color-utils.scss +1 -1
  30. package/ms-utils/_consts.scss +1 -1
  31. package/ms-utils/_layout-utils.scss +1 -1
  32. package/ms-utils/_struct-utils.scss +1 -1
  33. package/ms-utils/_typography-utils.scss +1 -1
  34. package/ms-utils/_util-helpers.scss +1 -1
  35. package/package.json +2 -2
  36. package/pintig/README.md +2 -0
  37. package/pintig/_index.scss +77 -0
  38. package/pintig/breakpoint/_breakpoint-sentro.scss +53 -0
  39. package/pintig/breakpoint/_index.scss +23 -0
  40. package/pintig/color/_color-constants.scss +33 -0
  41. package/pintig/color/_color-setters.scss +75 -0
  42. package/pintig/color/_color-utils.scss +62 -0
  43. package/pintig/color/_color-validators.scss +59 -0
  44. package/pintig/color/_index.scss +25 -0
  45. package/pintig/component/_component-extend.scss +56 -0
  46. package/pintig/component/_index.scss +23 -0
  47. package/pintig/component/component-base.ts +81 -0
  48. package/pintig/component/component-properties.ts +25 -0
  49. package/pintig/component/index.ts +29 -0
  50. package/pintig/component/types/ms-component.d.ts +24 -0
  51. package/pintig/index.ts +29 -0
  52. package/pintig/package.json +15 -0
  53. package/pintig/sprite/_index.scss +23 -0
  54. package/pintig/sprite/_sprite-mixins.scss +29 -0
  55. package/pintig/struct/_index.scss +24 -0
  56. package/pintig/struct/_struct-setters.scss +98 -0
  57. package/pintig/struct/_struct-utils.scss +218 -0
  58. package/pintig/struct/_struct-validators.scss +57 -0
  59. package/pintig/theme/_index.scss +30 -0
  60. package/pintig/theme/_theme-get.scss +41 -0
  61. package/pintig/theme/_theme-keys.scss +43 -0
  62. package/pintig/theme/_theme-merge.scss +46 -0
  63. package/pintig/theme/_theme-properties.scss +61 -0
  64. package/pintig/theme/_theme-setters.scss +167 -0
  65. package/pintig/theme/_theme-tokens.scss +57 -0
  66. package/pintig/tokens/_index.scss +23 -0
  67. package/pintig/tokens/_token-data.scss +249 -0
  68. package/pintig/tokens/_token-methods.scss +118 -0
  69. package/pintig/tools/_index.scss +27 -0
  70. package/pintig/tools/_tools-color.scss +79 -0
  71. package/pintig/tools/_tools-helpers.scss +30 -0
  72. package/pintig/tools/_tools-sentro.scss +52 -0
  73. package/pintig/tools/_tools-string.scss +45 -0
  74. package/pintig/tools/_tools-validation.scss +71 -0
  75. package/pintig/typography/_index.scss +24 -0
  76. package/pintig/typography/_typography-setters.scss +78 -0
  77. package/pintig/typography/_typography-utils.scss +76 -0
  78. package/pintig/typography/_typography-validators.scss +47 -0
  79. package/.yarn/cache/@matteusan-pintig-file-c8b932c391-8cba90ad6a.zip +0 -0
  80. package/.yarn/cache/@matteusan-sentro-npm-0.1.25-9dadcacaf9-2964e33fdc.zip +0 -0
  81. package/.yarn/install-state.gz +0 -0
package/_index.scss CHANGED
@@ -25,7 +25,7 @@ $module-mode: false !default;
25
25
  $test-mode: $module-mode !default;
26
26
  $vue-mode: $test-mode !default;
27
27
 
28
- @use '@matteusan/pintig' with (
28
+ @use 'pintig' with (
29
29
  $expressive-inks: $expressive-inks,
30
30
  $module-mode: $module-mode,
31
31
  $test-mode: $test-mode,
@@ -35,7 +35,7 @@ $vue-mode: $test-mode !default;
35
35
  @use 'init-font-pack' as font-pack;
36
36
 
37
37
  // For accessing core lib from the main himig module.
38
- @forward '@matteusan/pintig';
38
+ @forward 'pintig';
39
39
 
40
40
  @mixin init(
41
41
  $theme: (),
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '@matteusan/pintig';
23
+ @use '../pintig';
24
24
 
25
25
  @mixin init() {
26
26
  .ms-badge {
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '@matteusan/pintig';
23
+ @use '../pintig';
24
24
 
25
25
  /// Component variant maker.
26
26
  /// @param {string} $variants
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '@matteusan/pintig';
23
+ @use '../pintig';
24
24
  @use 'badge-base' as base;
25
25
  @use 'badge-theme' as theme;
26
26
 
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '@matteusan/pintig';
23
+ @use '../pintig';
24
24
 
25
25
  @mixin init() {
26
26
  .ms-button {
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '@matteusan/pintig';
23
+ @use '../pintig';
24
24
 
25
25
  /// Component variant maker.
26
26
  /// @param {string} $variants
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '@matteusan/pintig';
23
+ @use '../pintig';
24
24
  @use 'sass:map';
25
25
  @use 'sass:string';
26
26
 
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '@matteusan/pintig';
23
+ @use '../pintig';
24
24
  @use 'sass:list';
25
25
  @use 'button-base' as base;
26
26
  @use 'button-theme' as theme;
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '@matteusan/pintig';
23
+ @use '../pintig';
24
24
  @use 'sass:map';
25
25
 
26
26
  @mixin init(
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '@matteusan/pintig';
23
+ @use '../pintig';
24
24
 
25
25
  /// Component variant maker.
26
26
  /// @param {string} $variants
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '@matteusan/pintig';
23
+ @use '../pintig';
24
24
  @use 'sass:list';
25
25
  @use 'card-base' as base;
26
26
  @use 'card-theme' as theme;
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '@matteusan/pintig';
23
+ @use '../pintig';
24
24
 
25
25
  @use 'sass:math';
26
26
 
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '@matteusan/pintig';
23
+ @use '../pintig';
24
24
 
25
25
  /// Component variant maker.
26
26
  /// @param {string} $variants
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '@matteusan/pintig';
23
+ @use '../pintig';
24
24
  @use 'sass:list';
25
25
  @use 'form-field-base' as base;
26
26
  @use 'form-field-theme' as theme;
@@ -0,0 +1,24 @@
1
+ //---------------------------------------------------
2
+ // Copyright (c) 2024 MatteuSan
3
+ //
4
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ // of this software and associated documentation files (the "Software"), to deal
6
+ // in the Software without restriction, including without limitation the rights
7
+ // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ // copies of the Software, and to permit persons to whom the Software is
9
+ // furnished to do so, subject to the following conditions:
10
+ //
11
+ // The above copyright notice and this permission notice shall be included in all
12
+ // copies or substantial portions of the Software.
13
+ //
14
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ // SOFTWARE.
21
+ //---------------------------------------------------
22
+
23
+ @forward 'link-styles';
24
+ @forward 'link-extend';
@@ -0,0 +1,29 @@
1
+ //---------------------------------------------------
2
+ // Copyright (c) 2024 MatteuSan
3
+ //
4
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ // of this software and associated documentation files (the "Software"), to deal
6
+ // in the Software without restriction, including without limitation the rights
7
+ // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ // copies of the Software, and to permit persons to whom the Software is
9
+ // furnished to do so, subject to the following conditions:
10
+ //
11
+ // The above copyright notice and this permission notice shall be included in all
12
+ // copies or substantial portions of the Software.
13
+ //
14
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ // SOFTWARE.
21
+ //---------------------------------------------------
22
+
23
+ @use '../pintig';
24
+
25
+ @mixin init() {
26
+ .ms-link {
27
+ @content;
28
+ }
29
+ }
@@ -0,0 +1,53 @@
1
+ //---------------------------------------------------
2
+ // Copyright (c) 2024 MatteuSan
3
+ //
4
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ // of this software and associated documentation files (the "Software"), to deal
6
+ // in the Software without restriction, including without limitation the rights
7
+ // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ // copies of the Software, and to permit persons to whom the Software is
9
+ // furnished to do so, subject to the following conditions:
10
+ //
11
+ // The above copyright notice and this permission notice shall be included in all
12
+ // copies or substantial portions of the Software.
13
+ //
14
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ // SOFTWARE.
21
+ //---------------------------------------------------
22
+
23
+ @use '../pintig';
24
+
25
+ /// Component variant maker.
26
+ /// @param {string} $variants
27
+ /// @return {*} extension class.
28
+ @mixin extend($variants) {
29
+ @include pintig.component-extend('link', $variants) {
30
+ @content;
31
+ }
32
+ }
33
+
34
+ /// Color variant map.
35
+ /// @param {map} $color-map
36
+ /// @return {*} color styles.
37
+ @mixin color($color-map) {
38
+ @include pintig.color-bind('link', $color-map);
39
+ }
40
+
41
+ /// Structure variant mixin.
42
+ /// @param {map} $struct-map
43
+ /// @return {*} struct styles.
44
+ @mixin struct($struct-map) {
45
+ @include pintig.struct-bind('link', $struct-map);
46
+ }
47
+
48
+ /// Typography variant mixin.
49
+ /// @param {map} $type-map
50
+ /// @return {*} typography styles.
51
+ @mixin typography($type-map) {
52
+ @include pintig.typography-bind('link', $type-map);
53
+ }
@@ -0,0 +1,70 @@
1
+ //---------------------------------------------------
2
+ // Copyright (c) 2024 MatteuSan
3
+ //
4
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ // of this software and associated documentation files (the "Software"), to deal
6
+ // in the Software without restriction, including without limitation the rights
7
+ // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ // copies of the Software, and to permit persons to whom the Software is
9
+ // furnished to do so, subject to the following conditions:
10
+ //
11
+ // The above copyright notice and this permission notice shall be included in all
12
+ // copies or substantial portions of the Software.
13
+ //
14
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ // SOFTWARE.
21
+ //---------------------------------------------------
22
+
23
+ @use '../pintig';
24
+ @use 'link-base' as base;
25
+ @use 'link-theme' as theme;
26
+
27
+ @mixin render(
28
+ $color: (),
29
+ $struct: (),
30
+ $typography: (),
31
+ $settings: ()
32
+ ) {
33
+ $color: pintig.theme-merge(theme.$init-color, $color);
34
+ $struct: pintig.theme-merge(theme.$init-struct, $struct);
35
+ $typography: pintig.theme-merge(theme.$init-typography, $typography);
36
+ $settings: pintig.theme-merge(theme.$init-settings, $settings);
37
+
38
+ @include base.init() {
39
+ @include pintig.color-apply('link', (
40
+ fill: transparent,
41
+ ink: pintig.theme-get($color, 'ink')
42
+ ));
43
+ @include pintig.typography-apply('link', (
44
+ family: pintig.theme-get($typography, 'family'),
45
+ size: pintig.theme-get($typography, 'size'),
46
+ weight: pintig.theme-get($typography, 'weight'),
47
+ line-height: pintig.theme-get($typography, 'line-height')
48
+ ));
49
+ text-decoration: underline;
50
+ @include pintig.prefix(transition, all var(--ms-transition-time) ease);
51
+
52
+ &:hover {
53
+ @include pintig.color-bind('link', (
54
+ fill: pintig.theme-get($color, 'fill', 'hover')
55
+ ));
56
+ }
57
+
58
+ &:focus {
59
+ @include pintig.color-bind('link', (
60
+ fill: pintig.theme-get($color, 'fill', 'focus')
61
+ ));
62
+ }
63
+
64
+ &:active {
65
+ @include pintig.color-bind('link', (
66
+ fill: pintig.theme-get($color, 'fill', 'active')
67
+ ));
68
+ }
69
+ }
70
+ }
@@ -0,0 +1,41 @@
1
+ //---------------------------------------------------
2
+ // Copyright (c) 2024 MatteuSan
3
+ //
4
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ // of this software and associated documentation files (the "Software"), to deal
6
+ // in the Software without restriction, including without limitation the rights
7
+ // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ // copies of the Software, and to permit persons to whom the Software is
9
+ // furnished to do so, subject to the following conditions:
10
+ //
11
+ // The above copyright notice and this permission notice shall be included in all
12
+ // copies or substantial portions of the Software.
13
+ //
14
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ // SOFTWARE.
21
+ //---------------------------------------------------
22
+
23
+ $init-color: (
24
+ fill: (
25
+ hover: 'accent-alpha-300',
26
+ focus: 'accent-alpha-300',
27
+ active: 'accent-alpha-400'
28
+ ),
29
+ ink: 'accent-400',
30
+ );
31
+
32
+ $init-struct: ();
33
+
34
+ $init-typography: (
35
+ family: 'global',
36
+ size: 'body',
37
+ weight: 'normal',
38
+ line-height: 'normal'
39
+ );
40
+
41
+ $init-settings: ();
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '@matteusan/pintig';
23
+ @use '../pintig';
24
24
 
25
25
  @mixin init() {
26
26
  .ms-list {
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '@matteusan/pintig';
23
+ @use '../pintig';
24
24
 
25
25
  /// Component variant maker.
26
26
  /// @param {string} $variants
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '@matteusan/pintig';
23
+ @use '../pintig';
24
24
  @use 'list-base' as base;
25
25
  @use 'list-theme' as theme;
26
26
 
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '@matteusan/pintig';
23
+ @use '../pintig';
24
24
 
25
25
  @use 'sass:math';
26
26
 
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '@matteusan/pintig';
23
+ @use '../pintig';
24
24
 
25
25
  /// Component variant maker.
26
26
  /// @param {string} $variants
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '@matteusan/pintig';
23
+ @use '../pintig';
24
24
  @use 'sass:list';
25
25
  @use 'select-field-base' as base;
26
26
  @use 'select-field-theme' as theme;
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '@matteusan/pintig';
23
+ @use '../pintig';
24
24
 
25
25
  @mixin init() {
26
26
  .ms-tick-field {
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '@matteusan/pintig';
23
+ @use '../pintig';
24
24
 
25
25
  /// Component variant maker.
26
26
  /// @param {string} $variants
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '@matteusan/pintig';
23
+ @use '../pintig';
24
24
  @use 'sass:list';
25
25
  @use 'tick-field-base' as base;
26
26
  @use 'tick-field-theme' as theme;
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '@matteusan/pintig';
23
+ @use '../pintig';
24
24
  @use 'sass:map';
25
25
  @use 'sass:list';
26
26
  @use 'consts';
@@ -20,6 +20,6 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '@matteusan/pintig';
23
+ @use '../pintig';
24
24
 
25
25
  $breakpoints: ('small', 'medium', 'large', 'xlarge');
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '@matteusan/pintig';
23
+ @use '../pintig';
24
24
  @use 'sass:string';
25
25
  @use 'sass:list';
26
26
  @use 'consts';
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '@matteusan/pintig';
23
+ @use '../pintig';
24
24
  @use 'sass:map';
25
25
  @use 'sass:meta';
26
26
  @use 'sass:list';
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '@matteusan/pintig';
23
+ @use '../pintig';
24
24
  @use 'sass:map';
25
25
  @use 'sass:meta';
26
26
  @use 'sass:list';
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '@matteusan/pintig';
23
+ @use '../pintig';
24
24
  @use 'sass:list';
25
25
 
26
26
  @function handle-include-exclude($default-utils, $include: (), $exclude: ()) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@matteusan/himig",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "description": "Matteu's personal design system for building user interfaces.",
5
5
  "repository": "https://github.com/MatteuSan/himig",
6
6
  "author": "Matteu <matteugt@gmail.com>",
@@ -9,7 +9,7 @@
9
9
  "access": "public"
10
10
  },
11
11
  "dependencies": {
12
- "@matteusan/pintig": "file:../pintig",
12
+ "@matteusan/pintig": "1.4.0",
13
13
  "@matteusan/sentro": "0.1.25"
14
14
  }
15
15
  }
@@ -0,0 +1,2 @@
1
+ # pintig
2
+ The core library for the Himig Design System. For internal use only.
@@ -0,0 +1,77 @@
1
+ //---------------------------------------------------
2
+ // Copyright (c) 2024 MatteuSan
3
+ //
4
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ // of this software and associated documentation files (the "Software"), to deal
6
+ // in the Software without restriction, including without limitation the rights
7
+ // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ // copies of the Software, and to permit persons to whom the Software is
9
+ // furnished to do so, subject to the following conditions:
10
+ //
11
+ // The above copyright notice and this permission notice shall be included in all
12
+ // copies or substantial portions of the Software.
13
+ //
14
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ // SOFTWARE.
21
+ //---------------------------------------------------
22
+
23
+ $module-mode: false !default;
24
+ $test-mode: $module-mode !default;
25
+ $vue-mode: $test-mode !default;
26
+ $validation: if($vue-mode == true, false, true);
27
+ $expressive-inks: false !default;
28
+
29
+ /// @type map
30
+ /// @description helper variable for inheriting values for all color properties
31
+ $color-inherit-template: (
32
+ fill: inherit,
33
+ ink: inherit,
34
+ border: inherit
35
+ );
36
+
37
+ /// @type map
38
+ /// @description helper variable for inheriting values for all struct properties
39
+ $struct-inherit-template: (
40
+ width: inherit,
41
+ height: inherit,
42
+ radius: inherit,
43
+ padding: inherit,
44
+ margin: inherit,
45
+ gap: inherit,
46
+ border-width: inherit,
47
+ border-style: inherit,
48
+ shadow: inherit
49
+ );
50
+
51
+ /// @type map
52
+ /// @description helper variable for inheriting values for all typography properties
53
+ $type-inherit-template: (
54
+ family: inherit,
55
+ size: inherit,
56
+ weight: inherit,
57
+ line-height: inherit
58
+ );
59
+
60
+ @use 'node_modules/@matteusan/sentro' with (
61
+ $prefix: 'ms',
62
+ $context: 'theme',
63
+ $token-validation: $validation,
64
+ $key-validation: $validation,
65
+ $breakpoint-validation: $validation,
66
+ );
67
+
68
+ @forward 'tokens';
69
+ @forward 'theme' with ($expressive-inks: $expressive-inks);
70
+ @forward 'tools';
71
+ @forward 'breakpoint' as breakpoint-*;
72
+
73
+ @forward 'color' as color-*;
74
+ @forward 'struct' as struct-*;
75
+ @forward 'sprite' as sprite-*;
76
+ @forward 'typography' as typography-*;
77
+ @forward 'component' as component-*;