@matteusan/himig 1.3.4 → 1.4.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 (75) hide show
  1. package/.yarn/cache/@matteusan-pintig-npm-1.4.0-f3aee090a2-725049469f.zip +0 -0
  2. package/.yarn/install-state.gz +0 -0
  3. package/_index.scss +38 -38
  4. package/ms-badge/_badge-base.scss +2 -2
  5. package/ms-badge/_badge-extend.scss +5 -5
  6. package/ms-badge/_badge-styles.scss +11 -11
  7. package/ms-button/_button-base.scss +13 -13
  8. package/ms-button/_button-extend.scss +5 -5
  9. package/ms-button/_button-mixins.scss +32 -32
  10. package/ms-button/_button-styles.scss +29 -29
  11. package/ms-card/_card-base.scss +50 -50
  12. package/ms-card/_card-extend.scss +5 -5
  13. package/ms-card/_card-styles.scss +16 -16
  14. package/ms-form-field/_form-field-base.scss +16 -16
  15. package/ms-form-field/_form-field-extend.scss +5 -5
  16. package/ms-form-field/_form-field-styles.scss +72 -72
  17. package/ms-list/_list-base.scss +5 -5
  18. package/ms-list/_list-extend.scss +5 -5
  19. package/ms-list/_list-styles.scss +20 -20
  20. package/ms-select-field/_select-field-base.scss +13 -13
  21. package/ms-select-field/_select-field-extend.scss +5 -5
  22. package/ms-select-field/_select-field-styles.scss +69 -69
  23. package/ms-tick-field/_tick-field-base.scss +10 -10
  24. package/ms-tick-field/_tick-field-extend.scss +5 -5
  25. package/ms-tick-field/_tick-field-styles.scss +46 -46
  26. package/ms-utils/_color-utils.scss +10 -10
  27. package/ms-utils/_consts.scss +1 -1
  28. package/ms-utils/_layout-utils.scss +19 -19
  29. package/ms-utils/_struct-utils.scss +41 -41
  30. package/ms-utils/_typography-utils.scss +40 -22
  31. package/ms-utils/_util-helpers.scss +4 -4
  32. package/package.json +2 -1
  33. package/ms-core/README.md +0 -2
  34. package/ms-core/_index.scss +0 -77
  35. package/ms-core/breakpoint/_breakpoint-sentro.scss +0 -53
  36. package/ms-core/breakpoint/_index.scss +0 -23
  37. package/ms-core/color/_color-constants.scss +0 -33
  38. package/ms-core/color/_color-setters.scss +0 -75
  39. package/ms-core/color/_color-utils.scss +0 -62
  40. package/ms-core/color/_color-validators.scss +0 -59
  41. package/ms-core/color/_index.scss +0 -25
  42. package/ms-core/component/_component-extend.scss +0 -56
  43. package/ms-core/component/_index.scss +0 -23
  44. package/ms-core/component/component-base.ts +0 -81
  45. package/ms-core/component/component-properties.ts +0 -25
  46. package/ms-core/component/index.ts +0 -29
  47. package/ms-core/component/types/ms-component.d.ts +0 -24
  48. package/ms-core/index.ts +0 -29
  49. package/ms-core/package.json +0 -15
  50. package/ms-core/sprite/_index.scss +0 -23
  51. package/ms-core/sprite/_sprite-mixins.scss +0 -29
  52. package/ms-core/struct/_index.scss +0 -24
  53. package/ms-core/struct/_struct-setters.scss +0 -98
  54. package/ms-core/struct/_struct-utils.scss +0 -218
  55. package/ms-core/struct/_struct-validators.scss +0 -57
  56. package/ms-core/theme/_index.scss +0 -30
  57. package/ms-core/theme/_theme-get.scss +0 -41
  58. package/ms-core/theme/_theme-keys.scss +0 -43
  59. package/ms-core/theme/_theme-merge.scss +0 -46
  60. package/ms-core/theme/_theme-properties.scss +0 -61
  61. package/ms-core/theme/_theme-setters.scss +0 -167
  62. package/ms-core/theme/_theme-tokens.scss +0 -57
  63. package/ms-core/tokens/_index.scss +0 -23
  64. package/ms-core/tokens/_token-data.scss +0 -249
  65. package/ms-core/tokens/_token-methods.scss +0 -118
  66. package/ms-core/tools/_index.scss +0 -27
  67. package/ms-core/tools/_tools-color.scss +0 -79
  68. package/ms-core/tools/_tools-helpers.scss +0 -30
  69. package/ms-core/tools/_tools-sentro.scss +0 -52
  70. package/ms-core/tools/_tools-string.scss +0 -45
  71. package/ms-core/tools/_tools-validation.scss +0 -71
  72. package/ms-core/typography/_index.scss +0 -24
  73. package/ms-core/typography/_typography-setters.scss +0 -78
  74. package/ms-core/typography/_typography-utils.scss +0 -76
  75. package/ms-core/typography/_typography-validators.scss +0 -47
Binary file
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 'ms-core' with (
28
+ @use '@matteusan/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 'ms-core';
38
+ @forward '@matteusan/pintig';
39
39
 
40
40
  @mixin init(
41
41
  $theme: (),
@@ -59,22 +59,22 @@ $vue-mode: $test-mode !default;
59
59
  $breakpoints: (),
60
60
  $extend: (),
61
61
  ) {
62
- $primary: ms-core.prioritize(map.get($theme, 'primary'), $primary);
63
- $accent: ms-core.prioritize(map.get($theme, 'accent'), $accent);
64
- $surface: ms-core.prioritize(map.get($theme, 'surface'), $surface);
65
- $background: ms-core.prioritize(map.get($theme, 'background'), $background);
66
- $error: ms-core.prioritize(map.get($theme, 'error'), $error);
67
- $disabled: ms-core.prioritize(map.get($theme, 'disabled'), $disabled);
68
- $radius: ms-core.prioritize(map.get($theme, 'radius'), $radius);
69
- $global: ms-core.prioritize(map.get($theme, 'global'), $global);
70
- $supertitle: ms-core.prioritize(map.get($theme, 'supertitle'), $supertitle);
71
- $title: ms-core.prioritize(map.get($theme, 'title'), $title);
72
- $subtitle: ms-core.prioritize(map.get($theme, 'subtitle'), $subtitle);
73
- $body: ms-core.prioritize(map.get($theme, 'body'), $body);
74
- $mono: ms-core.prioritize(map.get($theme, 'mono'), $mono);
75
- $small: ms-core.prioritize(map.get($theme, 'small'), $small);
76
- $breakpoints: ms-core.prioritize(map.get($theme, 'breakpoints'), $breakpoints);
77
- $extend: ms-core.prioritize(map.get($theme, 'extend'), $extend);
62
+ $primary: pintig.prioritize(map.get($theme, 'primary'), $primary);
63
+ $accent: pintig.prioritize(map.get($theme, 'accent'), $accent);
64
+ $surface: pintig.prioritize(map.get($theme, 'surface'), $surface);
65
+ $background: pintig.prioritize(map.get($theme, 'background'), $background);
66
+ $error: pintig.prioritize(map.get($theme, 'error'), $error);
67
+ $disabled: pintig.prioritize(map.get($theme, 'disabled'), $disabled);
68
+ $radius: pintig.prioritize(map.get($theme, 'radius'), $radius);
69
+ $global: pintig.prioritize(map.get($theme, 'global'), $global);
70
+ $supertitle: pintig.prioritize(map.get($theme, 'supertitle'), $supertitle);
71
+ $title: pintig.prioritize(map.get($theme, 'title'), $title);
72
+ $subtitle: pintig.prioritize(map.get($theme, 'subtitle'), $subtitle);
73
+ $body: pintig.prioritize(map.get($theme, 'body'), $body);
74
+ $mono: pintig.prioritize(map.get($theme, 'mono'), $mono);
75
+ $small: pintig.prioritize(map.get($theme, 'small'), $small);
76
+ $breakpoints: pintig.prioritize(map.get($theme, 'breakpoints'), $breakpoints);
77
+ $extend: pintig.prioritize(map.get($theme, 'extend'), $extend);
78
78
 
79
79
  $_init-family: 'family.sans-serif';
80
80
  $_init-line-height: 'line-height.normal';
@@ -129,14 +129,14 @@ $vue-mode: $test-mode !default;
129
129
  );
130
130
 
131
131
  $_init-breakpoints: (
132
- 'small': ms-core.primitive-token-get('breakpoint.sm'),
133
- 'medium': ms-core.primitive-token-get('breakpoint.md'),
134
- 'large': ms-core.primitive-token-get('breakpoint.lg'),
135
- 'xlarge': ms-core.primitive-token-get('breakpoint.xl'),
132
+ 'small': pintig.primitive-token-get('breakpoint.sm'),
133
+ 'medium': pintig.primitive-token-get('breakpoint.md'),
134
+ 'large': pintig.primitive-token-get('breakpoint.lg'),
135
+ 'xlarge': pintig.primitive-token-get('breakpoint.xl'),
136
136
  );
137
137
 
138
138
  :root {
139
- @include ms-core.theme-config(
139
+ @include pintig.theme-config(
140
140
  $primary: $primary,
141
141
  $accent: $accent,
142
142
  $surface: $surface,
@@ -160,11 +160,11 @@ $vue-mode: $test-mode !default;
160
160
  --ms-sprite-size: 32px;
161
161
  --ms-transition-time: 0.2s;
162
162
 
163
- font-family: ms-core.token-get('family-global');
164
- line-height: ms-core.token-get('line-height-global');
163
+ font-family: pintig.token-get('family-global');
164
+ line-height: pintig.token-get('line-height-global');
165
165
  }
166
166
 
167
- @include ms-core.breakpoint-config(map.merge($_init-breakpoints, $breakpoints));
167
+ @include pintig.breakpoint-config(map.merge($_init-breakpoints, $breakpoints));
168
168
 
169
169
  @include font-pack.load((
170
170
  'global': map.get(map.merge($_init-type-global, $global), 'family'),
@@ -191,8 +191,8 @@ $vue-mode: $test-mode !default;
191
191
  }
192
192
 
193
193
  body {
194
- background: ms-core.key-create('body-fill', ms-core.token-get('background'));
195
- color: ms-core.key-create('body-ink', ms-core.token-get('background-ink'));
194
+ background: pintig.key-create('body-fill', pintig.token-get('background'));
195
+ color: pintig.key-create('body-ink', pintig.token-get('background-ink'));
196
196
  }
197
197
 
198
198
  a {
@@ -218,25 +218,25 @@ $vue-mode: $test-mode !default;
218
218
  main.content-wrap {
219
219
  $margin: 15px;
220
220
  width: calc(100% - #{$margin * 2});
221
- max-width: ms-core.key-create('content-wrap-max-width', ms-core.primitive-token-get('dimension.xl'));
221
+ max-width: pintig.key-create('content-wrap-max-width', pintig.primitive-token-get('dimension.xl'));
222
222
  height: 100%;
223
- display: ms-core.key-create('content-wrap-display', flex);
223
+ display: pintig.key-create('content-wrap-display', flex);
224
224
  flex-flow: column nowrap;
225
- gap: ms-core.key-create('content-wrap-gap', ms-core.primitive-token-get('spacing.md'));
225
+ gap: pintig.key-create('content-wrap-gap', pintig.primitive-token-get('spacing.md'));
226
226
  margin: 0 auto;
227
227
  padding:
228
- ms-core.key-create('content-wrap-padding-y', ms-core.primitive-token-get('spacing.lg'))
229
- ms-core.key-create('content-wrap-padding-x', ms-core.primitive-token-get('spacing.none'));
228
+ pintig.key-create('content-wrap-padding-y', pintig.primitive-token-get('spacing.lg'))
229
+ pintig.key-create('content-wrap-padding-x', pintig.primitive-token-get('spacing.none'));
230
230
 
231
231
  // If grid
232
- grid-template-columns: repeat(ms-core.key-create('content-wrap-cols', 4), 1fr);
232
+ grid-template-columns: repeat(pintig.key-create('content-wrap-cols', 4), 1fr);
233
233
 
234
- @include ms-core.breakpoint-create('medium') {
235
- @include ms-core.key-bind('content-wrap-cols', repeat(8, 1fr));
234
+ @include pintig.breakpoint-create('medium') {
235
+ @include pintig.key-bind('content-wrap-cols', repeat(8, 1fr));
236
236
  }
237
237
 
238
- @include ms-core.breakpoint-create('large') {
239
- @include ms-core.key-bind('content-wrap-cols', repeat(12, 1fr));
238
+ @include pintig.breakpoint-create('large') {
239
+ @include pintig.key-bind('content-wrap-cols', repeat(12, 1fr));
240
240
  }
241
241
  }
242
242
 
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '../ms-core';
23
+ @use '@matteusan/pintig';
24
24
 
25
25
  @mixin init() {
26
26
  .ms-badge {
@@ -34,7 +34,7 @@
34
34
  }
35
35
 
36
36
  .ms-badge__label {
37
- @include ms-core.typography-apply('badge', (
37
+ @include pintig.typography-apply('badge', (
38
38
  family: inherit,
39
39
  size: inherit,
40
40
  weight: inherit,
@@ -20,13 +20,13 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '../ms-core';
23
+ @use '@matteusan/pintig';
24
24
 
25
25
  /// Component variant maker.
26
26
  /// @param {string} $variants
27
27
  /// @return {*} extension class.
28
28
  @mixin extend($variants) {
29
- @include ms-core.component-extend('badge', $variants) {
29
+ @include pintig.component-extend('badge', $variants) {
30
30
  @content;
31
31
  }
32
32
  }
@@ -35,19 +35,19 @@
35
35
  /// @param {map} $color-map
36
36
  /// @return {*} color styles.
37
37
  @mixin color($color-map) {
38
- @include ms-core.color-bind('badge', $color-map);
38
+ @include pintig.color-bind('badge', $color-map);
39
39
  }
40
40
 
41
41
  /// Structure variant mixin.
42
42
  /// @param {map} $struct-map
43
43
  /// @return {*} struct styles.
44
44
  @mixin struct($struct-map) {
45
- @include ms-core.struct-bind('badge', $struct-map);
45
+ @include pintig.struct-bind('badge', $struct-map);
46
46
  }
47
47
 
48
48
  /// Typography variant mixin.
49
49
  /// @param {map} $type-map
50
50
  /// @return {*} typography styles.
51
51
  @mixin typography($type-map) {
52
- @include ms-core.typography-bind('badge', $type-map);
52
+ @include pintig.typography-bind('badge', $type-map);
53
53
  }
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '../ms-core';
23
+ @use '@matteusan/pintig';
24
24
  @use 'badge-base' as base;
25
25
  @use 'badge-theme' as theme;
26
26
 
@@ -30,21 +30,21 @@
30
30
  $typography: (),
31
31
  $settings: ()
32
32
  ) {
33
- $color: ms-core.theme-merge(theme.$init-color, $color);
34
- $struct: ms-core.theme-merge(theme.$init-struct, $struct);
35
- $typography: ms-core.theme-merge(theme.$init-typography, $typography);
36
- $settings: ms-core.theme-merge(theme.$init-settings, $settings);
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
37
 
38
38
  @include base.init() {
39
- @include ms-core.color-apply('badge', $color);
40
- @include ms-core.struct-apply('badge', $struct);
41
- @include ms-core.typography-bind('badge', $typography);
39
+ @include pintig.color-apply('badge', $color);
40
+ @include pintig.struct-apply('badge', $struct);
41
+ @include pintig.typography-bind('badge', $typography);
42
42
 
43
43
  &:where(.is-outlined) {
44
- @include ms-core.color-bind('badge', (
44
+ @include pintig.color-bind('badge', (
45
45
  fill: transparent,
46
- ink: ms-core.theme-get($color, 'fill'),
47
- border: ms-core.theme-get($color, 'border')
46
+ ink: pintig.theme-get($color, 'fill'),
47
+ border: pintig.theme-get($color, 'border')
48
48
  ));
49
49
  }
50
50
  }
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '../ms-core';
23
+ @use '@matteusan/pintig';
24
24
 
25
25
  @mixin init() {
26
26
  .ms-button {
@@ -35,36 +35,36 @@
35
35
  vertical-align: middle;
36
36
 
37
37
  cursor: pointer;
38
- outline: ms-core.key-create('button-outline', none);
38
+ outline: pintig.key-create('button-outline', none);
39
39
 
40
40
  -webkit-appearance: caret;
41
- @include ms-core.prefix(transition, all var(--ms-transition-time) ease);
41
+ @include pintig.prefix(transition, all var(--ms-transition-time) ease);
42
42
 
43
43
  @content;
44
44
 
45
45
  .ms-button__icon {
46
46
  position: relative;
47
- @include ms-core.color-ink('button-icon', inherit);
48
- @include ms-core.typography-size('button-icon', 'size.md');
47
+ @include pintig.color-ink('button-icon', inherit);
48
+ @include pintig.typography-size('button-icon', 'size.md');
49
49
  /* @fallback */
50
- width: ms-core.key-create('button-icon-size', ms-core.primitive-token-get('size.md'));
50
+ width: pintig.key-create('button-icon-size', pintig.primitive-token-get('size.md'));
51
51
  max-width: max-content;
52
- height: ms-core.key-create('button-icon-size', ms-core.primitive-token-get('size.md'));
52
+ height: pintig.key-create('button-icon-size', pintig.primitive-token-get('size.md'));
53
53
 
54
54
  > * {
55
55
  position: relative;
56
- @include ms-core.color-ink('button-icon', inherit);
57
- @include ms-core.typography-size('button-icon', 'size.md');
56
+ @include pintig.color-ink('button-icon', inherit);
57
+ @include pintig.typography-size('button-icon', 'size.md');
58
58
  /* @fallback */
59
- width: ms-core.key-create('button-icon-size', ms-core.primitive-token-get('size.md'));
59
+ width: pintig.key-create('button-icon-size', pintig.primitive-token-get('size.md'));
60
60
  max-width: max-content;
61
- height: ms-core.key-create('button-icon-size', ms-core.primitive-token-get('size.md'));
61
+ height: pintig.key-create('button-icon-size', pintig.primitive-token-get('size.md'));
62
62
  }
63
63
  }
64
64
 
65
65
  .ms-button__label {
66
- @include ms-core.color-ink('button-label', inherit);
67
- @include ms-core.typography-apply('button-label', (
66
+ @include pintig.color-ink('button-label', inherit);
67
+ @include pintig.typography-apply('button-label', (
68
68
  family: inherit,
69
69
  size: inherit,
70
70
  weight: inherit,
@@ -20,13 +20,13 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '../ms-core';
23
+ @use '@matteusan/pintig';
24
24
 
25
25
  /// Component variant maker.
26
26
  /// @param {string} $variants
27
27
  /// @return {*} extension class.
28
28
  @mixin extend($variants) {
29
- @include ms-core.component-extend('button', $variants) {
29
+ @include pintig.component-extend('button', $variants) {
30
30
  @content;
31
31
  }
32
32
  }
@@ -35,19 +35,19 @@
35
35
  /// @param {map} $color-map
36
36
  /// @return {*} color styles.
37
37
  @mixin color($color-map) {
38
- @include ms-core.color-bind('button', $color-map);
38
+ @include pintig.color-bind('button', $color-map);
39
39
  }
40
40
 
41
41
  /// Structure variant mixin.
42
42
  /// @param {map} $struct-map
43
43
  /// @return {*} struct styles.
44
44
  @mixin struct($struct-map) {
45
- @include ms-core.struct-bind('button', $struct-map);
45
+ @include pintig.struct-bind('button', $struct-map);
46
46
  }
47
47
 
48
48
  /// Typography variant mixin.
49
49
  /// @param {map} $type-map
50
50
  /// @return {*} typography styles.
51
51
  @mixin typography($type-map) {
52
- @include ms-core.typography-bind('button', $type-map);
52
+ @include pintig.typography-bind('button', $type-map);
53
53
  }
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '../ms-core';
23
+ @use '@matteusan/pintig';
24
24
  @use 'sass:map';
25
25
  @use 'sass:string';
26
26
 
@@ -30,41 +30,41 @@
30
30
  $border: map.get($borders, 'default');
31
31
 
32
32
  &:not(:disabled) {
33
- @include ms-core.color-bind('button', (
33
+ @include pintig.color-bind('button', (
34
34
  fill: transparent,
35
35
  ink: $fill,
36
36
  border: transparent
37
37
  ));
38
- @include ms-core.key-bind('button-outline', 2px solid rgba(_raw($fill), ms-core.$color-fill-default-opacity));
38
+ @include pintig.key-bind('button-outline', 2px solid rgba(_raw($fill), pintig.$color-fill-default-opacity));
39
39
 
40
40
  &:hover {
41
- @include ms-core.color-bind('button', (
42
- fill: _smart-alpha-color($fill, ms-core.$color-fill-hover-opacity),
41
+ @include pintig.color-bind('button', (
42
+ fill: _smart-alpha-color($fill, pintig.$color-fill-hover-opacity),
43
43
  ink: $fill,
44
- border: _smart-alpha-color($border, ms-core.$color-border-hover-opacity, $type: 'border')
44
+ border: _smart-alpha-color($border, pintig.$color-border-hover-opacity, $type: 'border')
45
45
  ));
46
46
  }
47
47
 
48
48
  &:focus {
49
- @include ms-core.color-bind('button', (
50
- fill: _smart-alpha-color($fill, ms-core.$color-fill-focus-opacity),
49
+ @include pintig.color-bind('button', (
50
+ fill: _smart-alpha-color($fill, pintig.$color-fill-focus-opacity),
51
51
  ink: $fill,
52
- border: _smart-alpha-color($border, ms-core.$color-border-focus-opacity, $type: 'border')
52
+ border: _smart-alpha-color($border, pintig.$color-border-focus-opacity, $type: 'border')
53
53
  ));
54
- @include ms-core.key-bind('button-outline', 2px solid rgba(_raw($fill), ms-core.$color-outline-focus-opacity));
54
+ @include pintig.key-bind('button-outline', 2px solid rgba(_raw($fill), pintig.$color-outline-focus-opacity));
55
55
  }
56
56
 
57
57
  &:active {
58
- @include ms-core.color-bind('button', (
59
- fill: _smart-alpha-color($fill, ms-core.$color-fill-active-opacity),
58
+ @include pintig.color-bind('button', (
59
+ fill: _smart-alpha-color($fill, pintig.$color-fill-active-opacity),
60
60
  ink: $fill,
61
- border: _smart-alpha-color($border, ms-core.$color-border-active-opacity, $type: 'border')
61
+ border: _smart-alpha-color($border, pintig.$color-border-active-opacity, $type: 'border')
62
62
  ));
63
63
  }
64
64
  }
65
65
 
66
66
  &:disabled {
67
- @include ms-core.color-bind('button', (
67
+ @include pintig.color-bind('button', (
68
68
  fill: transparent,
69
69
  ink: $ink-disabled,
70
70
  border: transparent
@@ -87,24 +87,24 @@
87
87
  $border-disabled: map.get($borders, 'disabled');
88
88
 
89
89
  &:not(:disabled) {
90
- @include ms-core.color-bind('button', (
90
+ @include pintig.color-bind('button', (
91
91
  fill: transparent,
92
92
  ink: $fill,
93
93
  border: $border
94
94
  ));
95
- @include ms-core.key-bind('button-outline', 2px solid rgba(_raw($fill), ms-core.$color-fill-default-opacity));
95
+ @include pintig.key-bind('button-outline', 2px solid rgba(_raw($fill), pintig.$color-fill-default-opacity));
96
96
 
97
97
  &:focus {
98
- @include ms-core.color-bind('button', (
99
- fill: _smart-alpha-color($fill, ms-core.$color-fill-focus-opacity),
98
+ @include pintig.color-bind('button', (
99
+ fill: _smart-alpha-color($fill, pintig.$color-fill-focus-opacity),
100
100
  ink: $fill,
101
101
  border: $border
102
102
  ));
103
- @include ms-core.key-bind('button-outline', 2px solid rgba(_raw($fill), ms-core.$color-outline-focus-opacity));
103
+ @include pintig.key-bind('button-outline', 2px solid rgba(_raw($fill), pintig.$color-outline-focus-opacity));
104
104
  }
105
105
 
106
106
  &:hover {
107
- @include ms-core.color-bind('button', (
107
+ @include pintig.color-bind('button', (
108
108
  fill: $fill-hover,
109
109
  ink: $ink,
110
110
  border: $border-hover
@@ -112,7 +112,7 @@
112
112
  }
113
113
 
114
114
  &:active {
115
- @include ms-core.color-bind('button', (
115
+ @include pintig.color-bind('button', (
116
116
  fill: $fill-active,
117
117
  ink: $ink,
118
118
  border: $border-active
@@ -121,7 +121,7 @@
121
121
  }
122
122
 
123
123
  &:disabled {
124
- @include ms-core.color-bind('button', (
124
+ @include pintig.color-bind('button', (
125
125
  fill: transparent,
126
126
  ink: $ink-disabled,
127
127
  border: $border-disabled
@@ -144,15 +144,15 @@
144
144
  $border-disabled: map.get($borders, 'disabled');
145
145
 
146
146
  &:not(:disabled) {
147
- @include ms-core.color-bind('button', (
147
+ @include pintig.color-bind('button', (
148
148
  fill: $fill,
149
149
  ink: $ink,
150
150
  border: $border
151
151
  ));
152
- @include ms-core.key-bind('button-outline', 2px solid rgba(_raw($fill), ms-core.$color-fill-default-opacity));
152
+ @include pintig.key-bind('button-outline', 2px solid rgba(_raw($fill), pintig.$color-fill-default-opacity));
153
153
 
154
154
  &:hover {
155
- @include ms-core.color-bind('button', (
155
+ @include pintig.color-bind('button', (
156
156
  fill: $fill-hover,
157
157
  ink: $ink,
158
158
  border: $border-hover
@@ -160,16 +160,16 @@
160
160
  }
161
161
 
162
162
  &:focus {
163
- @include ms-core.color-bind('button', (
163
+ @include pintig.color-bind('button', (
164
164
  fill: $fill-focus,
165
165
  ink: $ink,
166
166
  border: $border-focus
167
167
  ));
168
- @include ms-core.key-bind('button-outline', 2px solid rgba(_raw($fill), ms-core.$color-outline-focus-opacity));
168
+ @include pintig.key-bind('button-outline', 2px solid rgba(_raw($fill), pintig.$color-outline-focus-opacity));
169
169
  }
170
170
 
171
171
  &:active {
172
- @include ms-core.color-bind('button', (
172
+ @include pintig.color-bind('button', (
173
173
  fill: $fill-active,
174
174
  ink: $ink,
175
175
  border: $border-active
@@ -178,7 +178,7 @@
178
178
  }
179
179
 
180
180
  &:disabled {
181
- @include ms-core.color-bind('button', (
181
+ @include pintig.color-bind('button', (
182
182
  fill: $fill-disabled,
183
183
  ink: $ink-disabled,
184
184
  border: $border-disabled
@@ -191,12 +191,12 @@
191
191
  $_color: string.slice($query, 1, (string.length($query) - 4));
192
192
  // $_tone: string.slice($query, (string.length($_color) + 2), (string.length($query)));
193
193
  @if $type == 'border' { @return rgba(#fff, 0%); }
194
- @if ms-core.token-check('#{$_color}-alpha-#{map.get($_tones, $state)}') {
195
- @return ms-core.token-get('#{$_color}-alpha-#{map.get($_tones, $state)}');
194
+ @if pintig.token-check('#{$_color}-alpha-#{map.get($_tones, $state)}') {
195
+ @return pintig.token-get('#{$_color}-alpha-#{map.get($_tones, $state)}');
196
196
  }
197
197
  @return _raw($query, $opacity);
198
198
  }
199
199
 
200
200
  @function _raw($query) {
201
- @return ms-core.token-switch-raw($query);
201
+ @return pintig.token-switch-raw($query);
202
202
  }
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '../ms-core';
23
+ @use '@matteusan/pintig';
24
24
  @use 'sass:list';
25
25
  @use 'button-base' as base;
26
26
  @use 'button-theme' as theme;
@@ -34,39 +34,39 @@ $_states: ('error');
34
34
  $typography: (),
35
35
  $settings: ()
36
36
  ) {
37
- $color: ms-core.theme-merge(theme.$init-color, $color);
38
- $struct: ms-core.theme-merge(theme.$init-struct, $struct);
39
- $typography: ms-core.theme-merge(theme.$init-typography, $typography);
40
- $settings: ms-core.theme-merge(theme.$init-settings, $settings);
37
+ $color: pintig.theme-merge(theme.$init-color, $color);
38
+ $struct: pintig.theme-merge(theme.$init-struct, $struct);
39
+ $typography: pintig.theme-merge(theme.$init-typography, $typography);
40
+ $settings: pintig.theme-merge(theme.$init-settings, $settings);
41
41
 
42
42
  $fills: (
43
- default: ms-core.theme-get($color, 'fill'),
44
- hover: ms-core.theme-get($color, 'fill', 'hover'),
45
- focus: ms-core.theme-get($color, 'fill', 'focus'),
46
- active: ms-core.theme-get($color, 'fill', 'active'),
47
- disabled: ms-core.theme-get($color, 'fill', 'disabled'),
43
+ default: pintig.theme-get($color, 'fill'),
44
+ hover: pintig.theme-get($color, 'fill', 'hover'),
45
+ focus: pintig.theme-get($color, 'fill', 'focus'),
46
+ active: pintig.theme-get($color, 'fill', 'active'),
47
+ disabled: pintig.theme-get($color, 'fill', 'disabled'),
48
48
  );
49
49
 
50
50
  $inks: (
51
- default: ms-core.theme-get($color, 'ink'),
52
- hover: ms-core.theme-get($color, 'ink', 'hover'),
53
- focus: ms-core.theme-get($color, 'ink', 'focus'),
54
- active: ms-core.theme-get($color, 'ink', 'active'),
55
- disabled: ms-core.theme-get($color, 'ink', 'disabled'),
51
+ default: pintig.theme-get($color, 'ink'),
52
+ hover: pintig.theme-get($color, 'ink', 'hover'),
53
+ focus: pintig.theme-get($color, 'ink', 'focus'),
54
+ active: pintig.theme-get($color, 'ink', 'active'),
55
+ disabled: pintig.theme-get($color, 'ink', 'disabled'),
56
56
  );
57
57
 
58
58
  $borders: (
59
- default: ms-core.theme-get($color, 'border'),
60
- hover: ms-core.theme-get($color, 'border', 'hover'),
61
- focus: ms-core.theme-get($color, 'border', 'focus'),
62
- active: ms-core.theme-get($color, 'border', 'active'),
63
- disabled: ms-core.theme-get($color, 'border', 'disabled'),
59
+ default: pintig.theme-get($color, 'border'),
60
+ hover: pintig.theme-get($color, 'border', 'hover'),
61
+ focus: pintig.theme-get($color, 'border', 'focus'),
62
+ active: pintig.theme-get($color, 'border', 'active'),
63
+ disabled: pintig.theme-get($color, 'border', 'disabled'),
64
64
  );
65
65
 
66
66
  @include base.init() {
67
- @include ms-core.struct-apply('button', $struct);
68
- @include ms-core.typography-apply('button', $typography);
69
- @include ms-core.color-apply('button', (
67
+ @include pintig.struct-apply('button', $struct);
68
+ @include pintig.typography-apply('button', $typography);
69
+ @include pintig.color-apply('button', (
70
70
  fill: 'ms-grey.400',
71
71
  ink: 'ms-grey.800',
72
72
  border: 'ms-grey.400',
@@ -83,9 +83,9 @@ $_states: ('error');
83
83
  }
84
84
 
85
85
  &:where(.is-icon-only) {
86
- @include ms-core.struct-bind('button', (
86
+ @include pintig.struct-bind('button', (
87
87
  width: (min: auto),
88
- padding: list.nth(ms-core.theme-get($struct, 'padding'), 1)
88
+ padding: list.nth(pintig.theme-get($struct, 'padding'), 1)
89
89
  ));
90
90
 
91
91
  > .ms-button__label {
@@ -119,7 +119,7 @@ $_states: ('error');
119
119
  }
120
120
 
121
121
  &:where(.is-fullwidth) {
122
- @include ms-core.struct-width('button', (
122
+ @include pintig.struct-width('button', (
123
123
  default: 100%,
124
124
  min: auto,
125
125
  max: 100%
@@ -193,15 +193,15 @@ $_states: ('error');
193
193
 
194
194
  &:where(.is-raised) {
195
195
  &:not(:disabled) {
196
- @include ms-core.struct-shadow('button', 'xs');
196
+ @include pintig.struct-shadow('button', 'xs');
197
197
 
198
198
  &:hover,
199
199
  &:focus {
200
- @include ms-core.struct-shadow('button', 'xs');
200
+ @include pintig.struct-shadow('button', 'xs');
201
201
  }
202
202
 
203
203
  &:active {
204
- @include ms-core.struct-shadow('button', 'sm');
204
+ @include pintig.struct-shadow('button', 'sm');
205
205
  }
206
206
  }
207
207
  }