@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.
- package/.yarn/cache/@matteusan-pintig-npm-1.4.0-f3aee090a2-725049469f.zip +0 -0
- package/.yarn/install-state.gz +0 -0
- package/_index.scss +38 -38
- package/ms-badge/_badge-base.scss +2 -2
- package/ms-badge/_badge-extend.scss +5 -5
- package/ms-badge/_badge-styles.scss +11 -11
- package/ms-button/_button-base.scss +13 -13
- package/ms-button/_button-extend.scss +5 -5
- package/ms-button/_button-mixins.scss +32 -32
- package/ms-button/_button-styles.scss +29 -29
- package/ms-card/_card-base.scss +50 -50
- package/ms-card/_card-extend.scss +5 -5
- package/ms-card/_card-styles.scss +16 -16
- package/ms-form-field/_form-field-base.scss +16 -16
- package/ms-form-field/_form-field-extend.scss +5 -5
- package/ms-form-field/_form-field-styles.scss +72 -72
- package/ms-list/_list-base.scss +5 -5
- package/ms-list/_list-extend.scss +5 -5
- package/ms-list/_list-styles.scss +20 -20
- package/ms-select-field/_select-field-base.scss +13 -13
- package/ms-select-field/_select-field-extend.scss +5 -5
- package/ms-select-field/_select-field-styles.scss +69 -69
- package/ms-tick-field/_tick-field-base.scss +10 -10
- package/ms-tick-field/_tick-field-extend.scss +5 -5
- package/ms-tick-field/_tick-field-styles.scss +46 -46
- package/ms-utils/_color-utils.scss +10 -10
- package/ms-utils/_consts.scss +1 -1
- package/ms-utils/_layout-utils.scss +19 -19
- package/ms-utils/_struct-utils.scss +41 -41
- package/ms-utils/_typography-utils.scss +40 -22
- package/ms-utils/_util-helpers.scss +4 -4
- package/package.json +2 -1
- package/ms-core/README.md +0 -2
- package/ms-core/_index.scss +0 -77
- package/ms-core/breakpoint/_breakpoint-sentro.scss +0 -53
- package/ms-core/breakpoint/_index.scss +0 -23
- package/ms-core/color/_color-constants.scss +0 -33
- package/ms-core/color/_color-setters.scss +0 -75
- package/ms-core/color/_color-utils.scss +0 -62
- package/ms-core/color/_color-validators.scss +0 -59
- package/ms-core/color/_index.scss +0 -25
- package/ms-core/component/_component-extend.scss +0 -56
- package/ms-core/component/_index.scss +0 -23
- package/ms-core/component/component-base.ts +0 -81
- package/ms-core/component/component-properties.ts +0 -25
- package/ms-core/component/index.ts +0 -29
- package/ms-core/component/types/ms-component.d.ts +0 -24
- package/ms-core/index.ts +0 -29
- package/ms-core/package.json +0 -15
- package/ms-core/sprite/_index.scss +0 -23
- package/ms-core/sprite/_sprite-mixins.scss +0 -29
- package/ms-core/struct/_index.scss +0 -24
- package/ms-core/struct/_struct-setters.scss +0 -98
- package/ms-core/struct/_struct-utils.scss +0 -218
- package/ms-core/struct/_struct-validators.scss +0 -57
- package/ms-core/theme/_index.scss +0 -30
- package/ms-core/theme/_theme-get.scss +0 -41
- package/ms-core/theme/_theme-keys.scss +0 -43
- package/ms-core/theme/_theme-merge.scss +0 -46
- package/ms-core/theme/_theme-properties.scss +0 -61
- package/ms-core/theme/_theme-setters.scss +0 -167
- package/ms-core/theme/_theme-tokens.scss +0 -57
- package/ms-core/tokens/_index.scss +0 -23
- package/ms-core/tokens/_token-data.scss +0 -249
- package/ms-core/tokens/_token-methods.scss +0 -118
- package/ms-core/tools/_index.scss +0 -27
- package/ms-core/tools/_tools-color.scss +0 -79
- package/ms-core/tools/_tools-helpers.scss +0 -30
- package/ms-core/tools/_tools-sentro.scss +0 -52
- package/ms-core/tools/_tools-string.scss +0 -45
- package/ms-core/tools/_tools-validation.scss +0 -71
- package/ms-core/typography/_index.scss +0 -24
- package/ms-core/typography/_typography-setters.scss +0 -78
- package/ms-core/typography/_typography-utils.scss +0 -76
- package/ms-core/typography/_typography-validators.scss +0 -47
package/.yarn/install-state.gz
CHANGED
|
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 '
|
|
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 '
|
|
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:
|
|
63
|
-
$accent:
|
|
64
|
-
$surface:
|
|
65
|
-
$background:
|
|
66
|
-
$error:
|
|
67
|
-
$disabled:
|
|
68
|
-
$radius:
|
|
69
|
-
$global:
|
|
70
|
-
$supertitle:
|
|
71
|
-
$title:
|
|
72
|
-
$subtitle:
|
|
73
|
-
$body:
|
|
74
|
-
$mono:
|
|
75
|
-
$small:
|
|
76
|
-
$breakpoints:
|
|
77
|
-
$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':
|
|
133
|
-
'medium':
|
|
134
|
-
'large':
|
|
135
|
-
'xlarge':
|
|
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
|
|
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:
|
|
164
|
-
line-height:
|
|
163
|
+
font-family: pintig.token-get('family-global');
|
|
164
|
+
line-height: pintig.token-get('line-height-global');
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
-
@include
|
|
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:
|
|
195
|
-
color:
|
|
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:
|
|
221
|
+
max-width: pintig.key-create('content-wrap-max-width', pintig.primitive-token-get('dimension.xl'));
|
|
222
222
|
height: 100%;
|
|
223
|
-
display:
|
|
223
|
+
display: pintig.key-create('content-wrap-display', flex);
|
|
224
224
|
flex-flow: column nowrap;
|
|
225
|
-
gap:
|
|
225
|
+
gap: pintig.key-create('content-wrap-gap', pintig.primitive-token-get('spacing.md'));
|
|
226
226
|
margin: 0 auto;
|
|
227
227
|
padding:
|
|
228
|
-
|
|
229
|
-
|
|
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(
|
|
232
|
+
grid-template-columns: repeat(pintig.key-create('content-wrap-cols', 4), 1fr);
|
|
233
233
|
|
|
234
|
-
@include
|
|
235
|
-
@include
|
|
234
|
+
@include pintig.breakpoint-create('medium') {
|
|
235
|
+
@include pintig.key-bind('content-wrap-cols', repeat(8, 1fr));
|
|
236
236
|
}
|
|
237
237
|
|
|
238
|
-
@include
|
|
239
|
-
@include
|
|
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 '
|
|
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
|
|
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 '
|
|
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
|
|
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
|
|
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
|
|
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
|
|
52
|
+
@include pintig.typography-bind('badge', $type-map);
|
|
53
53
|
}
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
// SOFTWARE.
|
|
21
21
|
//---------------------------------------------------
|
|
22
22
|
|
|
23
|
-
@use '
|
|
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:
|
|
34
|
-
$struct:
|
|
35
|
-
$typography:
|
|
36
|
-
$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
|
|
40
|
-
@include
|
|
41
|
-
@include
|
|
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
|
|
44
|
+
@include pintig.color-bind('badge', (
|
|
45
45
|
fill: transparent,
|
|
46
|
-
ink:
|
|
47
|
-
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 '
|
|
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:
|
|
38
|
+
outline: pintig.key-create('button-outline', none);
|
|
39
39
|
|
|
40
40
|
-webkit-appearance: caret;
|
|
41
|
-
@include
|
|
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
|
|
48
|
-
@include
|
|
47
|
+
@include pintig.color-ink('button-icon', inherit);
|
|
48
|
+
@include pintig.typography-size('button-icon', 'size.md');
|
|
49
49
|
/* @fallback */
|
|
50
|
-
width:
|
|
50
|
+
width: pintig.key-create('button-icon-size', pintig.primitive-token-get('size.md'));
|
|
51
51
|
max-width: max-content;
|
|
52
|
-
height:
|
|
52
|
+
height: pintig.key-create('button-icon-size', pintig.primitive-token-get('size.md'));
|
|
53
53
|
|
|
54
54
|
> * {
|
|
55
55
|
position: relative;
|
|
56
|
-
@include
|
|
57
|
-
@include
|
|
56
|
+
@include pintig.color-ink('button-icon', inherit);
|
|
57
|
+
@include pintig.typography-size('button-icon', 'size.md');
|
|
58
58
|
/* @fallback */
|
|
59
|
-
width:
|
|
59
|
+
width: pintig.key-create('button-icon-size', pintig.primitive-token-get('size.md'));
|
|
60
60
|
max-width: max-content;
|
|
61
|
-
height:
|
|
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
|
|
67
|
-
@include
|
|
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 '
|
|
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
|
|
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
|
|
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
|
|
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
|
|
52
|
+
@include pintig.typography-bind('button', $type-map);
|
|
53
53
|
}
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
// SOFTWARE.
|
|
21
21
|
//---------------------------------------------------
|
|
22
22
|
|
|
23
|
-
@use '
|
|
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
|
|
33
|
+
@include pintig.color-bind('button', (
|
|
34
34
|
fill: transparent,
|
|
35
35
|
ink: $fill,
|
|
36
36
|
border: transparent
|
|
37
37
|
));
|
|
38
|
-
@include
|
|
38
|
+
@include pintig.key-bind('button-outline', 2px solid rgba(_raw($fill), pintig.$color-fill-default-opacity));
|
|
39
39
|
|
|
40
40
|
&:hover {
|
|
41
|
-
@include
|
|
42
|
-
fill: _smart-alpha-color($fill,
|
|
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,
|
|
44
|
+
border: _smart-alpha-color($border, pintig.$color-border-hover-opacity, $type: 'border')
|
|
45
45
|
));
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
&:focus {
|
|
49
|
-
@include
|
|
50
|
-
fill: _smart-alpha-color($fill,
|
|
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,
|
|
52
|
+
border: _smart-alpha-color($border, pintig.$color-border-focus-opacity, $type: 'border')
|
|
53
53
|
));
|
|
54
|
-
@include
|
|
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
|
|
59
|
-
fill: _smart-alpha-color($fill,
|
|
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,
|
|
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
|
|
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
|
|
90
|
+
@include pintig.color-bind('button', (
|
|
91
91
|
fill: transparent,
|
|
92
92
|
ink: $fill,
|
|
93
93
|
border: $border
|
|
94
94
|
));
|
|
95
|
-
@include
|
|
95
|
+
@include pintig.key-bind('button-outline', 2px solid rgba(_raw($fill), pintig.$color-fill-default-opacity));
|
|
96
96
|
|
|
97
97
|
&:focus {
|
|
98
|
-
@include
|
|
99
|
-
fill: _smart-alpha-color($fill,
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
147
|
+
@include pintig.color-bind('button', (
|
|
148
148
|
fill: $fill,
|
|
149
149
|
ink: $ink,
|
|
150
150
|
border: $border
|
|
151
151
|
));
|
|
152
|
-
@include
|
|
152
|
+
@include pintig.key-bind('button-outline', 2px solid rgba(_raw($fill), pintig.$color-fill-default-opacity));
|
|
153
153
|
|
|
154
154
|
&:hover {
|
|
155
|
-
@include
|
|
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
|
|
163
|
+
@include pintig.color-bind('button', (
|
|
164
164
|
fill: $fill-focus,
|
|
165
165
|
ink: $ink,
|
|
166
166
|
border: $border-focus
|
|
167
167
|
));
|
|
168
|
-
@include
|
|
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
|
|
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
|
|
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
|
|
195
|
-
@return
|
|
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
|
|
201
|
+
@return pintig.token-switch-raw($query);
|
|
202
202
|
}
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
// SOFTWARE.
|
|
21
21
|
//---------------------------------------------------
|
|
22
22
|
|
|
23
|
-
@use '
|
|
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:
|
|
38
|
-
$struct:
|
|
39
|
-
$typography:
|
|
40
|
-
$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:
|
|
44
|
-
hover:
|
|
45
|
-
focus:
|
|
46
|
-
active:
|
|
47
|
-
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:
|
|
52
|
-
hover:
|
|
53
|
-
focus:
|
|
54
|
-
active:
|
|
55
|
-
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:
|
|
60
|
-
hover:
|
|
61
|
-
focus:
|
|
62
|
-
active:
|
|
63
|
-
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
|
|
68
|
-
@include
|
|
69
|
-
@include
|
|
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
|
|
86
|
+
@include pintig.struct-bind('button', (
|
|
87
87
|
width: (min: auto),
|
|
88
|
-
padding: list.nth(
|
|
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
|
|
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
|
|
196
|
+
@include pintig.struct-shadow('button', 'xs');
|
|
197
197
|
|
|
198
198
|
&:hover,
|
|
199
199
|
&:focus {
|
|
200
|
-
@include
|
|
200
|
+
@include pintig.struct-shadow('button', 'xs');
|
|
201
201
|
}
|
|
202
202
|
|
|
203
203
|
&:active {
|
|
204
|
-
@include
|
|
204
|
+
@include pintig.struct-shadow('button', 'sm');
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
207
|
}
|