@matteusan/himig 1.4.1 → 1.5.1

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 (85) 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 +3 -3
  10. package/ms-card/_card-extend.scss +1 -1
  11. package/ms-card/_card-styles.scss +6 -1
  12. package/ms-card/_card-theme.scss +8 -3
  13. package/ms-form-field/_form-field-base.scss +6 -2
  14. package/ms-form-field/_form-field-extend.scss +1 -1
  15. package/ms-form-field/_form-field-styles.scss +15 -11
  16. package/ms-form-field/_form-field-theme.scss +20 -8
  17. package/ms-link/_index.scss +24 -0
  18. package/ms-link/_link-base.scss +29 -0
  19. package/ms-link/_link-extend.scss +53 -0
  20. package/ms-link/_link-styles.scss +70 -0
  21. package/ms-link/_link-theme.scss +41 -0
  22. package/ms-list/_list-base.scss +1 -1
  23. package/ms-list/_list-extend.scss +1 -1
  24. package/ms-list/_list-styles.scss +1 -1
  25. package/ms-select-field/_select-field-base.scss +1 -1
  26. package/ms-select-field/_select-field-extend.scss +1 -1
  27. package/ms-select-field/_select-field-styles.scss +18 -10
  28. package/ms-select-field/_select-field-theme.scss +16 -8
  29. package/ms-tick-field/_tick-field-base.scss +1 -1
  30. package/ms-tick-field/_tick-field-extend.scss +1 -1
  31. package/ms-tick-field/_tick-field-styles.scss +3 -14
  32. package/ms-tick-field/_tick-field-theme.scss +5 -0
  33. package/ms-utils/_color-utils.scss +1 -1
  34. package/ms-utils/_consts.scss +1 -1
  35. package/ms-utils/_layout-utils.scss +1 -1
  36. package/ms-utils/_struct-utils.scss +1 -1
  37. package/ms-utils/_typography-utils.scss +1 -1
  38. package/ms-utils/_util-helpers.scss +1 -1
  39. package/package.json +1 -1
  40. package/pintig/README.md +2 -0
  41. package/pintig/_index.scss +77 -0
  42. package/pintig/breakpoint/_breakpoint-sentro.scss +53 -0
  43. package/pintig/breakpoint/_index.scss +23 -0
  44. package/pintig/color/_color-constants.scss +33 -0
  45. package/pintig/color/_color-setters.scss +75 -0
  46. package/pintig/color/_color-utils.scss +62 -0
  47. package/pintig/color/_color-validators.scss +59 -0
  48. package/pintig/color/_index.scss +25 -0
  49. package/pintig/component/_component-extend.scss +56 -0
  50. package/pintig/component/_index.scss +23 -0
  51. package/pintig/component/component-base.ts +81 -0
  52. package/pintig/component/component-properties.ts +25 -0
  53. package/pintig/component/index.ts +29 -0
  54. package/pintig/component/types/ms-component.d.ts +24 -0
  55. package/pintig/index.ts +29 -0
  56. package/pintig/package.json +15 -0
  57. package/pintig/sprite/_index.scss +23 -0
  58. package/pintig/sprite/_sprite-mixins.scss +29 -0
  59. package/pintig/struct/_index.scss +24 -0
  60. package/pintig/struct/_struct-setters.scss +98 -0
  61. package/pintig/struct/_struct-utils.scss +218 -0
  62. package/pintig/struct/_struct-validators.scss +57 -0
  63. package/pintig/theme/_index.scss +30 -0
  64. package/pintig/theme/_theme-get.scss +41 -0
  65. package/pintig/theme/_theme-keys.scss +43 -0
  66. package/pintig/theme/_theme-merge.scss +46 -0
  67. package/pintig/theme/_theme-properties.scss +61 -0
  68. package/pintig/theme/_theme-setters.scss +167 -0
  69. package/pintig/theme/_theme-tokens.scss +57 -0
  70. package/pintig/tokens/_index.scss +23 -0
  71. package/pintig/tokens/_token-data.scss +249 -0
  72. package/pintig/tokens/_token-methods.scss +118 -0
  73. package/pintig/tools/_index.scss +27 -0
  74. package/pintig/tools/_tools-color.scss +79 -0
  75. package/pintig/tools/_tools-helpers.scss +30 -0
  76. package/pintig/tools/_tools-sentro.scss +52 -0
  77. package/pintig/tools/_tools-string.scss +45 -0
  78. package/pintig/tools/_tools-validation.scss +71 -0
  79. package/pintig/typography/_index.scss +24 -0
  80. package/pintig/typography/_typography-setters.scss +78 -0
  81. package/pintig/typography/_typography-utils.scss +76 -0
  82. package/pintig/typography/_typography-validators.scss +47 -0
  83. package/.yarn/cache/@matteusan-pintig-npm-1.4.0-f3aee090a2-725049469f.zip +0 -0
  84. package/.yarn/cache/@matteusan-sentro-npm-0.1.25-9dadcacaf9-2964e33fdc.zip +0 -0
  85. 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(
@@ -51,9 +51,9 @@
51
51
  $icon-size: pintig.theme-get($struct, 'size', 'icon');
52
52
 
53
53
  .ms-card {
54
- // @include pintig.key-bind('card-section-gap', pintig.primitive-token-switch('spacing.#{$section-gap}', $section-gap));
54
+ display: flex;
55
+ flex-flow: column nowrap;
55
56
  @include pintig.struct-gap('card-section', $section-gap, 'bind');
56
- // overflow: hidden;
57
57
 
58
58
  @content;
59
59
 
@@ -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;
@@ -46,6 +46,11 @@
46
46
  ));
47
47
  @include pintig.color-border('card', pintig.theme-get($color, 'border'), 'bind');
48
48
  @include pintig.struct-apply('card', (
49
+ width: (
50
+ default: pintig.theme-get($struct, 'width'),
51
+ min: pintig.theme-get($struct, 'width', 'min'),
52
+ max: pintig.theme-get($struct, 'width', 'max'),
53
+ ),
49
54
  radius: pintig.theme-get($struct, 'radius'),
50
55
  shadow: 'none',
51
56
  ));
@@ -22,14 +22,19 @@
22
22
 
23
23
  $init-color: (
24
24
  fill: (
25
- default: 'surface-200',
25
+ default: 'primary-400',
26
26
  outlined: 'surface-alpha-400'
27
27
  ),
28
- ink: 'surface-ink',
29
- border: 'surface-200',
28
+ ink: 'primary-ink',
29
+ border: 'primary-400',
30
30
  );
31
31
 
32
32
  $init-struct: (
33
+ width: (
34
+ default: 100%,
35
+ min: auto,
36
+ max: auto
37
+ ),
33
38
  radius: 'md',
34
39
  padding: 'lg',
35
40
  border-width: 'xs',
@@ -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
 
@@ -69,7 +69,11 @@
69
69
 
70
70
  .ms-form-field__input {
71
71
  @include pintig.struct-apply('form-field', (
72
- width: 100%,
72
+ width: (
73
+ default: 100%,
74
+ min: inherit,
75
+ max: inherit
76
+ ),
73
77
  margin: 0,
74
78
  radius: 0,
75
79
  border-width: 2px,
@@ -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;
@@ -70,7 +70,11 @@
70
70
 
71
71
  .ms-form-field__input {
72
72
  @include pintig.struct-bind('form-field', (
73
- width: pintig.theme-get($struct, 'width'),
73
+ width: (
74
+ default: pintig.theme-get($struct, 'width'),
75
+ min: pintig.theme-get($struct, 'width', 'min'),
76
+ max: pintig.theme-get($struct, 'width', 'max')
77
+ ),
74
78
  padding: pintig.theme-get($struct, 'padding'),
75
79
  radius: pintig.theme-get($struct, 'radius'),
76
80
  border-width: pintig.theme-get($struct, 'border-width'),
@@ -94,7 +98,7 @@
94
98
 
95
99
  &:focus {
96
100
  @include pintig.color-bind('form-field', (
97
- fill: pintig.theme-get($color, 'fill', 'hover'),
101
+ fill: pintig.theme-get($color, 'fill', 'focus'),
98
102
  border: pintig.theme-get($color, 'border', 'focus'),
99
103
  ));
100
104
  @include pintig.struct-bind('form-field', (
@@ -170,7 +174,7 @@
170
174
  .ms-form-field__input:not(:disabled) {
171
175
  @include pintig.color-bind('form-field', (
172
176
  fill: rgba(0 0 0 / 0) !important,
173
- border: 'error-alpha-600',
177
+ border: pintig.theme-get($color, 'border', 'error'),
174
178
  ));
175
179
  }
176
180
  }
@@ -186,7 +190,7 @@
186
190
  &:has(.ms-form-field__input:not(:read-only):not(:disabled)) {
187
191
  .ms-form-field__label {
188
192
  @include pintig.color-bind('form-field-label', (
189
- ink: 'error-400',
193
+ ink: pintig.theme-get($color, 'ink', 'error'),
190
194
  ));
191
195
  }
192
196
  }
@@ -194,22 +198,22 @@
194
198
  .ms-form-field__input:not(:disabled),
195
199
  .ms-form-field__input:not(:read-only) {
196
200
  @include pintig.color-bind('form-field', (
197
- fill: 'error-alpha-300',
198
- ink: 'error-400',
199
- border: 'error-alpha-400'
201
+ fill: pintig.theme-get($color, 'fill', 'error'),
202
+ ink: pintig.theme-get($color, 'ink', 'error'),
203
+ border: pintig.theme-get($color, 'border', 'error'),
200
204
  ));
201
205
 
202
206
  &:focus {
203
207
  @include pintig.color-bind('form-field', (
204
- fill: 'error-alpha-300',
205
- border: 'error-400'
208
+ fill: pintig.theme-get($color, 'fill', 'error', 'focus'),
209
+ border: pintig.theme-get($color, 'border', 'error', 'focus'),
206
210
  ));
207
211
  }
208
212
  }
209
213
 
210
214
  .ms-form-field__helper {
211
215
  @include pintig.color-bind('form-field-helper', (
212
- ink: 'error-400',
216
+ ink: pintig.theme-get($color, 'ink', 'error'),
213
217
  ));
214
218
  }
215
219
  }
@@ -22,25 +22,37 @@
22
22
 
23
23
  $init-color: (
24
24
  fill: (
25
- default: 'surface-alpha-600',
26
- hover: 'accent-alpha-300',
27
- disabled: 'disabled'
25
+ default: 'surface-alpha-800',
26
+ focus: 'accent-alpha-300',
27
+ disabled: 'disabled',
28
+ error: (
29
+ default: 'error-alpha-300',
30
+ focus: 'error-alpha-400'
31
+ )
28
32
  ),
29
33
  ink: (
30
34
  default: 'surface-ink',
31
35
  helper: 'surface-ink',
32
- disabled: 'disabled-ink'
36
+ disabled: 'disabled-ink',
37
+ error: 'error-400'
33
38
  ),
34
39
  border: (
35
- default: 'surface-600',
36
- hover: 'accent-alpha-600',
40
+ default: 'surface-400',
37
41
  focus: 'accent-400',
38
- disabled: 'disabled'
42
+ disabled: 'disabled',
43
+ error: (
44
+ default: 'error-alpha-800',
45
+ focus: 'error-400'
46
+ )
39
47
  ),
40
48
  );
41
49
 
42
50
  $init-struct: (
43
- width: 100%,
51
+ width: (
52
+ default: 100%,
53
+ min: auto,
54
+ max: auto
55
+ ),
44
56
  padding: ('md', 'lg'),
45
57
  radius: 'small',
46
58
  border-width: (
@@ -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: inherit,
36
+ size: inherit,
37
+ weight: inherit,
38
+ line-height: inherit
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