@matteusan/himig 1.5.0 → 1.7.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 (82) hide show
  1. package/README.md +2 -2
  2. package/_index.scss +5 -23
  3. package/ms-badge/_badge-base.scss +1 -1
  4. package/ms-badge/_badge-extend.scss +1 -1
  5. package/ms-badge/_badge-styles.scss +1 -1
  6. package/ms-button/_button-base.scss +1 -1
  7. package/ms-button/_button-extend.scss +1 -1
  8. package/ms-button/_button-mixins.scss +1 -1
  9. package/ms-button/_button-styles.scss +26 -26
  10. package/ms-card/_card-base.scss +3 -3
  11. package/ms-card/_card-extend.scss +1 -1
  12. package/ms-card/_card-styles.scss +6 -1
  13. package/ms-card/_card-theme.scss +8 -3
  14. package/ms-form-field/_form-field-base.scss +6 -2
  15. package/ms-form-field/_form-field-extend.scss +1 -1
  16. package/ms-form-field/_form-field-styles.scss +15 -11
  17. package/ms-form-field/_form-field-theme.scss +20 -8
  18. package/ms-link/_link-base.scss +1 -1
  19. package/ms-link/_link-extend.scss +1 -1
  20. package/ms-link/_link-styles.scss +1 -1
  21. package/ms-link/_link-theme.scss +4 -4
  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 +11 -3
  40. package/pintig/README.md +0 -2
  41. package/pintig/_index.scss +0 -77
  42. package/pintig/breakpoint/_breakpoint-sentro.scss +0 -53
  43. package/pintig/breakpoint/_index.scss +0 -23
  44. package/pintig/color/_color-constants.scss +0 -33
  45. package/pintig/color/_color-setters.scss +0 -75
  46. package/pintig/color/_color-utils.scss +0 -62
  47. package/pintig/color/_color-validators.scss +0 -59
  48. package/pintig/color/_index.scss +0 -25
  49. package/pintig/component/_component-extend.scss +0 -56
  50. package/pintig/component/_index.scss +0 -23
  51. package/pintig/component/component-base.ts +0 -81
  52. package/pintig/component/component-properties.ts +0 -25
  53. package/pintig/component/index.ts +0 -29
  54. package/pintig/component/types/ms-component.d.ts +0 -24
  55. package/pintig/index.ts +0 -29
  56. package/pintig/package.json +0 -15
  57. package/pintig/sprite/_index.scss +0 -23
  58. package/pintig/sprite/_sprite-mixins.scss +0 -29
  59. package/pintig/struct/_index.scss +0 -24
  60. package/pintig/struct/_struct-setters.scss +0 -98
  61. package/pintig/struct/_struct-utils.scss +0 -218
  62. package/pintig/struct/_struct-validators.scss +0 -57
  63. package/pintig/theme/_index.scss +0 -30
  64. package/pintig/theme/_theme-get.scss +0 -41
  65. package/pintig/theme/_theme-keys.scss +0 -43
  66. package/pintig/theme/_theme-merge.scss +0 -46
  67. package/pintig/theme/_theme-properties.scss +0 -61
  68. package/pintig/theme/_theme-setters.scss +0 -167
  69. package/pintig/theme/_theme-tokens.scss +0 -57
  70. package/pintig/tokens/_index.scss +0 -23
  71. package/pintig/tokens/_token-data.scss +0 -249
  72. package/pintig/tokens/_token-methods.scss +0 -118
  73. package/pintig/tools/_index.scss +0 -27
  74. package/pintig/tools/_tools-color.scss +0 -79
  75. package/pintig/tools/_tools-helpers.scss +0 -30
  76. package/pintig/tools/_tools-sentro.scss +0 -52
  77. package/pintig/tools/_tools-string.scss +0 -45
  78. package/pintig/tools/_tools-validation.scss +0 -71
  79. package/pintig/typography/_index.scss +0 -24
  80. package/pintig/typography/_typography-setters.scss +0 -78
  81. package/pintig/typography/_typography-utils.scss +0 -76
  82. package/pintig/typography/_typography-validators.scss +0 -47
package/README.md CHANGED
@@ -15,8 +15,8 @@ $ yarn add @matteusan/himig
15
15
  ```scss
16
16
  // main.scss
17
17
 
18
- @use 'node_modules/@matteusan/himig';
19
- @use 'node_modules/@matteusan/himig/ms-button';
18
+ @use 'pkg:@matteusan/himig';
19
+ @use 'pkg:@matteusan/himig/ms-button';
20
20
 
21
21
  @include himig.init {
22
22
  @include ms-button.render();
package/_index.scss CHANGED
@@ -1,31 +1,13 @@
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
- //---------------------------------------------------
1
+ // @license
2
+ // Copyright (c) 2025 MatteuSan
3
+ // SPDX-License-Identifier: MIT
22
4
 
23
5
  $expressive-inks: false !default;
24
6
  $module-mode: false !default;
25
7
  $test-mode: $module-mode !default;
26
8
  $vue-mode: $test-mode !default;
27
9
 
28
- @use 'pintig' with (
10
+ @use 'pkg:@matteusan/pintig' with (
29
11
  $expressive-inks: $expressive-inks,
30
12
  $module-mode: $module-mode,
31
13
  $test-mode: $test-mode,
@@ -35,7 +17,7 @@ $vue-mode: $test-mode !default;
35
17
  @use 'init-font-pack' as font-pack;
36
18
 
37
19
  // For accessing core lib from the main himig module.
38
- @forward 'pintig';
20
+ @forward 'pkg:@matteusan/pintig';
39
21
 
40
22
  @mixin init(
41
23
  $theme: (),
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '../pintig';
23
+ @use 'pkg:@matteusan/pintig';
24
24
 
25
25
  @mixin init() {
26
26
  .ms-badge {
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '../pintig';
23
+ @use 'pkg:@matteusan/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 '../pintig';
23
+ @use 'pkg:@matteusan/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 '../pintig';
23
+ @use 'pkg:@matteusan/pintig';
24
24
 
25
25
  @mixin init() {
26
26
  .ms-button {
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '../pintig';
23
+ @use 'pkg:@matteusan/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 '../pintig';
23
+ @use 'pkg:@matteusan/pintig';
24
24
  @use 'sass:map';
25
25
  @use 'sass:string';
26
26
 
@@ -1,26 +1,8 @@
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';
1
+ // @license
2
+ // Copyright (c) 2025 MatteuSan
3
+ // SPDX-License-Identifier: MIT
4
+
5
+ @use 'pkg:@matteusan/pintig';
24
6
  @use 'sass:list';
25
7
  @use 'button-base' as base;
26
8
  @use 'button-theme' as theme;
@@ -67,9 +49,9 @@ $_states: ('error');
67
49
  @include pintig.struct-apply('button', $struct);
68
50
  @include pintig.typography-apply('button', $typography);
69
51
  @include pintig.color-apply('button', (
70
- fill: 'ms-grey.400',
71
- ink: 'ms-grey.800',
72
- border: 'ms-grey.400',
52
+ fill: 'ms-black.800',
53
+ ink: 'ms-white.200',
54
+ border: 'ms-black.800',
73
55
  ));
74
56
  @include style.text(
75
57
  $fills: $fills,
@@ -93,6 +75,24 @@ $_states: ('error');
93
75
  }
94
76
  }
95
77
 
78
+ &:where(.is-small) {
79
+ @include pintig.struct-bind('button', (
80
+ 'padding': ('sm' 'md')
81
+ ));
82
+ @include pintig.typography-apply('button', (
83
+ 'size': pintig.to-rem(12px)
84
+ ));
85
+ }
86
+
87
+ &:where(.is-large) {
88
+ @include pintig.struct-bind('button', (
89
+ 'padding': ('md' 'lg')
90
+ ));
91
+ @include pintig.typography-apply('button', (
92
+ 'size': 'md'
93
+ ));
94
+ }
95
+
96
96
  @each $state in $_states {
97
97
  &:where(.is-#{$state}) {
98
98
  @include style.text(
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '../pintig';
23
+ @use 'pkg:@matteusan/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 '../pintig';
23
+ @use 'pkg:@matteusan/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 '../pintig';
23
+ @use 'pkg:@matteusan/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 '../pintig';
23
+ @use 'pkg:@matteusan/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 '../pintig';
23
+ @use 'pkg:@matteusan/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 '../pintig';
23
+ @use 'pkg:@matteusan/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: (
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '../pintig';
23
+ @use 'pkg:@matteusan/pintig';
24
24
 
25
25
  @mixin init() {
26
26
  .ms-link {
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '../pintig';
23
+ @use 'pkg:@matteusan/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 '../pintig';
23
+ @use 'pkg:@matteusan/pintig';
24
24
  @use 'link-base' as base;
25
25
  @use 'link-theme' as theme;
26
26
 
@@ -32,10 +32,10 @@ $init-color: (
32
32
  $init-struct: ();
33
33
 
34
34
  $init-typography: (
35
- family: 'global',
36
- size: 'body',
37
- weight: 'normal',
38
- line-height: 'normal'
35
+ family: inherit,
36
+ size: inherit,
37
+ weight: inherit,
38
+ line-height: inherit
39
39
  );
40
40
 
41
41
  $init-settings: ();
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '../pintig';
23
+ @use 'pkg:@matteusan/pintig';
24
24
 
25
25
  @mixin init() {
26
26
  .ms-list {
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '../pintig';
23
+ @use 'pkg:@matteusan/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 '../pintig';
23
+ @use 'pkg:@matteusan/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 '../pintig';
23
+ @use 'pkg:@matteusan/pintig';
24
24
 
25
25
  @use 'sass:math';
26
26
 
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '../pintig';
23
+ @use 'pkg:@matteusan/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 '../pintig';
23
+ @use 'pkg:@matteusan/pintig';
24
24
  @use 'sass:list';
25
25
  @use 'select-field-base' as base;
26
26
  @use 'select-field-theme' as theme;
@@ -44,7 +44,7 @@
44
44
  pintig.primitive-token-switch('padding.#{list.nth(pintig.theme-get($struct, 'padding'), 1)}', list.nth(pintig.theme-get($struct, 'padding'), 1)),
45
45
  ) {
46
46
  @include pintig.color-bind('select-field-label', (
47
- ink: pintig.theme-get($color, 'ink', 'disabled'),
47
+ ink: pintig.theme-get($color, 'ink'),
48
48
  ));
49
49
  @include pintig.typography-bind('select-field-label', (
50
50
  family: pintig.theme-get($typography, 'family'),
@@ -80,14 +80,22 @@
80
80
 
81
81
  &:has(.ms-select-field__input:not(:read-only):not(:disabled)) {
82
82
  .ms-select-field__label {
83
- @include pintig.color-bind('select-field-label', (
84
- ink: pintig.theme-get($color, 'ink'),
85
- ));
83
+ @include pintig.color-ink('select-field-label', pintig.theme-get($color, 'ink'), 'bind');
84
+ }
85
+
86
+ .ms-select-field__helper {
87
+ @include pintig.color-ink('select-field-helper', pintig.theme-get($color, 'ink', 'helper'), 'bind');
86
88
  }
87
89
  }
88
90
 
89
91
  &:has(.ms-select-field__input:read-only:disabled) {
90
- @include pintig.color-ink('select-field-helper', pintig.theme-get($color, 'ink', 'disabled'), 'bind');
92
+ .ms-select-field__label {
93
+ @include pintig.color-ink('select-field-label', pintig.theme-get($color, 'ink', 'disabled'), 'bind');
94
+ }
95
+
96
+ .ms-select-field__helper {
97
+ @include pintig.color-ink('select-field-helper', pintig.theme-get($color, 'ink', 'disabled'), 'bind');
98
+ }
91
99
  }
92
100
 
93
101
  .ms-select-field__input {
@@ -96,12 +104,12 @@
96
104
  @include pintig.color-bind('select-field', (
97
105
  fill: pintig.theme-get($color, 'fill'),
98
106
  ink: pintig.theme-get($color, 'ink'),
99
- border: pintig.theme-get($color, 'fill'),
107
+ border: pintig.theme-get($color, 'border'),
100
108
  ));
101
109
 
102
110
  &:focus {
103
111
  @include pintig.color-bind('select-field', (
104
- fill: pintig.theme-get($color, 'fill', 'hover'),
112
+ fill: pintig.theme-get($color, 'fill', 'focus'),
105
113
  border: pintig.theme-get($color, 'border', 'focus'),
106
114
  ));
107
115
  @include pintig.struct-bind('select-field', (
@@ -114,7 +122,7 @@
114
122
  @include pintig.color-bind('select-field', (
115
123
  fill: pintig.theme-get($color, 'fill', 'disabled'),
116
124
  ink: pintig.theme-get($color, 'ink', 'disabled'),
117
- border: pintig.theme-get($color, 'fill', 'disabled'),
125
+ border: pintig.theme-get($color, 'border', 'disabled'),
118
126
  ));
119
127
  cursor: not-allowed;
120
128
  }
@@ -131,7 +139,7 @@
131
139
  @include pintig.color-bind('select-field', (
132
140
  fill: transparent,
133
141
  ink: pintig.theme-get($color, 'ink'),
134
- border: pintig.theme-get($color, 'fill'),
142
+ border: pintig.theme-get($color, 'border'),
135
143
  ));
136
144
 
137
145
  &:focus {
@@ -22,26 +22,34 @@
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
51
  width: 100%,
44
- padding: ('md' 'lg'),
52
+ padding: ('md', 'lg'),
45
53
  radius: 'small',
46
54
  border-width: (
47
55
  'default': 2px,
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '../pintig';
23
+ @use 'pkg:@matteusan/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 '../pintig';
23
+ @use 'pkg:@matteusan/pintig';
24
24
 
25
25
  /// Component variant maker.
26
26
  /// @param {string} $variants