@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
|
@@ -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 'select-field-base' as base;
|
|
26
26
|
@use 'select-field-theme' as theme;
|
|
@@ -31,124 +31,124 @@
|
|
|
31
31
|
$typography: (),
|
|
32
32
|
$settings: ()
|
|
33
33
|
) {
|
|
34
|
-
$color:
|
|
35
|
-
$struct:
|
|
36
|
-
$typography:
|
|
37
|
-
$settings:
|
|
34
|
+
$color: pintig.theme-merge(theme.$init-color, $color);
|
|
35
|
+
$struct: pintig.theme-merge(theme.$init-struct, $struct);
|
|
36
|
+
$typography: pintig.theme-merge(theme.$init-typography, $typography);
|
|
37
|
+
$settings: pintig.theme-merge(theme.$init-settings, $settings);
|
|
38
38
|
|
|
39
|
-
$resolve-padding: if(list.length(
|
|
39
|
+
$resolve-padding: if(list.length(pintig.theme-get($struct, 'padding')) >= 2, list.nth(pintig.theme-get($struct, 'padding'), 2), list.nth(pintig.theme-get($struct, 'padding'), 1));
|
|
40
40
|
|
|
41
41
|
@include base.init(
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
pintig.primitive-token-switch('padding.#{$resolve-padding}', $resolve-padding),
|
|
43
|
+
pintig.primitive-token-switch('padding.#{$resolve-padding}', $resolve-padding),
|
|
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
|
-
@include
|
|
47
|
-
ink:
|
|
46
|
+
@include pintig.color-bind('select-field-label', (
|
|
47
|
+
ink: pintig.theme-get($color, 'ink', 'disabled'),
|
|
48
48
|
));
|
|
49
|
-
@include
|
|
50
|
-
family:
|
|
51
|
-
size:
|
|
52
|
-
weight:
|
|
53
|
-
line-height:
|
|
49
|
+
@include pintig.typography-bind('select-field-label', (
|
|
50
|
+
family: pintig.theme-get($typography, 'family'),
|
|
51
|
+
size: pintig.theme-get($typography, 'size', 'label'),
|
|
52
|
+
weight: pintig.theme-get($typography, 'weight'),
|
|
53
|
+
line-height: pintig.theme-get($typography, 'height'),
|
|
54
54
|
));
|
|
55
55
|
|
|
56
|
-
@include
|
|
57
|
-
width:
|
|
58
|
-
padding:
|
|
59
|
-
radius:
|
|
60
|
-
border-width:
|
|
61
|
-
border-style:
|
|
62
|
-
gap:
|
|
56
|
+
@include pintig.struct-bind('select-field', (
|
|
57
|
+
width: pintig.theme-get($struct, 'width'),
|
|
58
|
+
padding: pintig.theme-get($struct, 'padding'),
|
|
59
|
+
radius: pintig.theme-get($struct, 'radius'),
|
|
60
|
+
border-width: pintig.theme-get($struct, 'border-width'),
|
|
61
|
+
border-style: pintig.theme-get($struct, 'border-style'),
|
|
62
|
+
gap: pintig.theme-get($struct, 'gap'),
|
|
63
63
|
));
|
|
64
|
-
@include
|
|
65
|
-
family:
|
|
66
|
-
size:
|
|
67
|
-
weight:
|
|
68
|
-
line-height:
|
|
64
|
+
@include pintig.typography-bind('select-field', (
|
|
65
|
+
family: pintig.theme-get($typography, 'family'),
|
|
66
|
+
size: pintig.theme-get($typography, 'size', 'default'),
|
|
67
|
+
weight: pintig.theme-get($typography, 'weight'),
|
|
68
|
+
line-height: pintig.theme-get($typography, 'height'),
|
|
69
69
|
));
|
|
70
70
|
|
|
71
|
-
@include
|
|
72
|
-
ink:
|
|
71
|
+
@include pintig.color-bind('select-field-helper', (
|
|
72
|
+
ink: pintig.theme-get($color, 'ink', 'helper'),
|
|
73
73
|
));
|
|
74
|
-
@include
|
|
75
|
-
family:
|
|
76
|
-
size:
|
|
77
|
-
weight:
|
|
78
|
-
line-height:
|
|
74
|
+
@include pintig.typography-bind('select-field-helper', (
|
|
75
|
+
family: pintig.theme-get($typography, 'family'),
|
|
76
|
+
size: pintig.theme-get($typography, 'size', 'helper'),
|
|
77
|
+
weight: pintig.theme-get($typography, 'weight'),
|
|
78
|
+
line-height: pintig.theme-get($typography, 'height'),
|
|
79
79
|
));
|
|
80
80
|
|
|
81
81
|
&:has(.ms-select-field__input:not(:read-only):not(:disabled)) {
|
|
82
82
|
.ms-select-field__label {
|
|
83
|
-
@include
|
|
84
|
-
ink:
|
|
83
|
+
@include pintig.color-bind('select-field-label', (
|
|
84
|
+
ink: pintig.theme-get($color, 'ink'),
|
|
85
85
|
));
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
&:has(.ms-select-field__input:read-only:disabled) {
|
|
90
|
-
@include
|
|
90
|
+
@include pintig.color-ink('select-field-helper', pintig.theme-get($color, 'ink', 'disabled'), 'bind');
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
.ms-select-field__input {
|
|
94
94
|
&:not(:disabled),
|
|
95
95
|
&:not(:read-only) {
|
|
96
|
-
@include
|
|
97
|
-
fill:
|
|
98
|
-
ink:
|
|
99
|
-
border:
|
|
96
|
+
@include pintig.color-bind('select-field', (
|
|
97
|
+
fill: pintig.theme-get($color, 'fill'),
|
|
98
|
+
ink: pintig.theme-get($color, 'ink'),
|
|
99
|
+
border: pintig.theme-get($color, 'fill'),
|
|
100
100
|
));
|
|
101
101
|
|
|
102
102
|
&:focus {
|
|
103
|
-
@include
|
|
104
|
-
fill:
|
|
105
|
-
border:
|
|
103
|
+
@include pintig.color-bind('select-field', (
|
|
104
|
+
fill: pintig.theme-get($color, 'fill', 'hover'),
|
|
105
|
+
border: pintig.theme-get($color, 'border', 'focus'),
|
|
106
106
|
));
|
|
107
|
-
@include
|
|
108
|
-
border-width:
|
|
107
|
+
@include pintig.struct-bind('select-field', (
|
|
108
|
+
border-width: pintig.theme-get($struct, 'border-width', 'focus'),
|
|
109
109
|
));
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
&:disabled {
|
|
114
|
-
@include
|
|
115
|
-
fill:
|
|
116
|
-
ink:
|
|
117
|
-
border:
|
|
114
|
+
@include pintig.color-bind('select-field', (
|
|
115
|
+
fill: pintig.theme-get($color, 'fill', 'disabled'),
|
|
116
|
+
ink: pintig.theme-get($color, 'ink', 'disabled'),
|
|
117
|
+
border: pintig.theme-get($color, 'fill', 'disabled'),
|
|
118
118
|
));
|
|
119
119
|
cursor: not-allowed;
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
.ms-select-field__helper {
|
|
124
|
-
padding: 0.3rem
|
|
124
|
+
padding: 0.3rem pintig.primitive-token-switch('padding.#{$resolve-padding}', $resolve-padding) 0;
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
&:where(.is-outlined) {
|
|
128
128
|
.ms-select-field__input {
|
|
129
129
|
&:not(:disabled),
|
|
130
130
|
&:not(:read-only) {
|
|
131
|
-
@include
|
|
131
|
+
@include pintig.color-bind('select-field', (
|
|
132
132
|
fill: transparent,
|
|
133
|
-
ink:
|
|
134
|
-
border:
|
|
133
|
+
ink: pintig.theme-get($color, 'ink'),
|
|
134
|
+
border: pintig.theme-get($color, 'fill'),
|
|
135
135
|
));
|
|
136
136
|
|
|
137
137
|
&:focus {
|
|
138
|
-
@include
|
|
139
|
-
border:
|
|
138
|
+
@include pintig.color-bind('select-field', (
|
|
139
|
+
border: pintig.theme-get($color, 'border', 'focus'),
|
|
140
140
|
));
|
|
141
|
-
@include
|
|
142
|
-
border-width:
|
|
141
|
+
@include pintig.struct-bind('select-field', (
|
|
142
|
+
border-width: pintig.theme-get($struct, 'border-width', 'focus'),
|
|
143
143
|
));
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
&:disabled {
|
|
148
|
-
@include
|
|
148
|
+
@include pintig.color-bind('select-field', (
|
|
149
149
|
fill: transparent,
|
|
150
|
-
ink:
|
|
151
|
-
border:
|
|
150
|
+
ink: pintig.theme-get($color, 'ink', 'disabled'),
|
|
151
|
+
border: pintig.theme-get($color, 'fill', 'disabled'),
|
|
152
152
|
));
|
|
153
153
|
}
|
|
154
154
|
}
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
&:where(.is-error) {
|
|
157
157
|
.ms-select-field__input:not(:disabled),
|
|
158
158
|
.ms-select-field__input:not(:read-only) {
|
|
159
|
-
@include
|
|
159
|
+
@include pintig.color-bind('select-field', (
|
|
160
160
|
fill: rgba(0 0 0 / 0) !important,
|
|
161
161
|
border: 'error-alpha-400',
|
|
162
162
|
));
|
|
@@ -167,35 +167,35 @@
|
|
|
167
167
|
&:where(.is-error) {
|
|
168
168
|
.ms-select-field__input:not(:disabled),
|
|
169
169
|
.ms-select-field__input:not(:read-only) {
|
|
170
|
-
@include
|
|
170
|
+
@include pintig.color-bind('select-field', (
|
|
171
171
|
fill: 'error-alpha-300',
|
|
172
172
|
ink: 'error-400',
|
|
173
173
|
border: 'error-alpha-400'
|
|
174
174
|
));
|
|
175
175
|
|
|
176
176
|
&:focus {
|
|
177
|
-
@include
|
|
177
|
+
@include pintig.color-bind('select-field', (
|
|
178
178
|
fill: 'error-alpha-300',
|
|
179
179
|
border: 'error-400'
|
|
180
180
|
));
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
+ .ms-select-field__helper {
|
|
184
|
-
@include
|
|
184
|
+
@include pintig.color-bind('select-field-helper', (
|
|
185
185
|
ink: 'error-400',
|
|
186
186
|
));
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
189
|
|
|
190
190
|
.ms-select-field__helper {
|
|
191
|
-
@include
|
|
192
|
-
ink:
|
|
191
|
+
@include pintig.color-bind('select-field-helper', (
|
|
192
|
+
ink: pintig.theme-get($color, 'ink', 'helper'),
|
|
193
193
|
));
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
196
|
|
|
197
197
|
&:where(.is-raised) {
|
|
198
|
-
@include
|
|
198
|
+
@include pintig.struct-bind('select-field', (
|
|
199
199
|
shadow: 'xs',
|
|
200
200
|
));
|
|
201
201
|
}
|
|
@@ -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-tick-field {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
display: flex;
|
|
29
29
|
flex-flow: row nowrap;
|
|
30
30
|
align-items: center;
|
|
31
|
-
gap:
|
|
31
|
+
gap: pintig.key-create('tick-field-gap', 0.5rem);
|
|
32
32
|
transition: all var(--ms-transition-time) ease;
|
|
33
33
|
|
|
34
34
|
@content;
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
.ms-tick-field__input {
|
|
37
37
|
display: grid;
|
|
38
38
|
place-content: center;
|
|
39
|
-
@include
|
|
40
|
-
@include
|
|
39
|
+
@include pintig.struct-radius('tick-field-input', inherit);
|
|
40
|
+
@include pintig.color-apply('tick-field-input', pintig.$color-inherit-template);
|
|
41
41
|
transition: all var(--ms-transition-time) ease;
|
|
42
|
-
@include
|
|
42
|
+
@include pintig.prefix('appearance', none);
|
|
43
43
|
outline: none;
|
|
44
44
|
|
|
45
45
|
&::before {
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
height: 0.65rem;
|
|
49
49
|
transform: scale(0);
|
|
50
50
|
transition: 120ms transform ease-in-out;
|
|
51
|
-
box-shadow: inset 1em 1em
|
|
52
|
-
color:
|
|
51
|
+
box-shadow: inset 1em 1em pintig.key-get('tick-field-input-fill');
|
|
52
|
+
color: pintig.key-get('tick-field-input-ink');
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
&:checked {
|
|
@@ -63,15 +63,15 @@
|
|
|
63
63
|
display: flex;
|
|
64
64
|
flex-flow: column;
|
|
65
65
|
align-items: center;
|
|
66
|
-
@include
|
|
66
|
+
@include pintig.struct-gap('tick-field-text', inherit);
|
|
67
67
|
|
|
68
68
|
.ms-tick-field__label {
|
|
69
69
|
user-select: none;
|
|
70
|
-
@include
|
|
70
|
+
@include pintig.typography-apply('tick-field', pintig.$type-inherit-template);
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
.ms-tick-field__helper {
|
|
74
|
-
@include
|
|
74
|
+
@include pintig.typography-apply('tick-field-helper', pintig.$type-inherit-template);
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
}
|
|
@@ -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('tick-field', $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('tick-field', $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('tick-field', $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('tick-field', $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:list';
|
|
25
25
|
@use 'tick-field-base' as base;
|
|
26
26
|
@use 'tick-field-theme' as theme;
|
|
@@ -31,89 +31,89 @@
|
|
|
31
31
|
$typography: (),
|
|
32
32
|
$settings: ()
|
|
33
33
|
) {
|
|
34
|
-
$color:
|
|
35
|
-
$struct:
|
|
36
|
-
$typography:
|
|
37
|
-
$settings:
|
|
34
|
+
$color: pintig.theme-merge(theme.$init-color, $color);
|
|
35
|
+
$struct: pintig.theme-merge(theme.$init-struct, $struct);
|
|
36
|
+
$typography: pintig.theme-merge(theme.$init-typography, $typography);
|
|
37
|
+
$settings: pintig.theme-merge(theme.$init-settings, $settings);
|
|
38
38
|
|
|
39
39
|
@include base.init() {
|
|
40
|
-
@include
|
|
41
|
-
fill:
|
|
42
|
-
ink:
|
|
43
|
-
border:
|
|
40
|
+
@include pintig.color-apply('tick-field', (
|
|
41
|
+
fill: pintig.theme-get($color, 'fill'),
|
|
42
|
+
ink: pintig.theme-get($color, 'ink'),
|
|
43
|
+
border: pintig.theme-get($color, 'border'),
|
|
44
44
|
));
|
|
45
|
-
@include
|
|
46
|
-
radius:
|
|
47
|
-
padding:
|
|
48
|
-
gap:
|
|
49
|
-
border-width:
|
|
50
|
-
border-style:
|
|
45
|
+
@include pintig.struct-apply('tick-field', (
|
|
46
|
+
radius: pintig.theme-get($struct, 'radius'),
|
|
47
|
+
padding: pintig.theme-get($struct, 'padding'),
|
|
48
|
+
gap: pintig.theme-get($struct, 'gap'),
|
|
49
|
+
border-width: pintig.theme-get($struct, 'border-width'),
|
|
50
|
+
border-style: pintig.theme-get($struct, 'border-style'),
|
|
51
51
|
));
|
|
52
|
-
@include
|
|
53
|
-
family:
|
|
54
|
-
size:
|
|
55
|
-
weight:
|
|
56
|
-
line-height:
|
|
52
|
+
@include pintig.typography-bind('tick-field', (
|
|
53
|
+
family: pintig.theme-get($typography, 'family'),
|
|
54
|
+
size: pintig.theme-get($typography, 'size'),
|
|
55
|
+
weight: pintig.theme-get($typography, 'weight'),
|
|
56
|
+
line-height: pintig.theme-get($typography, 'line-height'),
|
|
57
57
|
));
|
|
58
|
-
@include
|
|
59
|
-
family:
|
|
60
|
-
size:
|
|
61
|
-
weight:
|
|
62
|
-
line-height:
|
|
58
|
+
@include pintig.typography-bind('tick-field-helper', (
|
|
59
|
+
family: pintig.theme-get($typography, 'family'),
|
|
60
|
+
size: pintig.theme-get($typography, 'size', 'helper'),
|
|
61
|
+
weight: pintig.theme-get($typography, 'weight'),
|
|
62
|
+
line-height: pintig.theme-get($typography, 'line-height'),
|
|
63
63
|
));
|
|
64
64
|
|
|
65
|
-
@include
|
|
66
|
-
gap:
|
|
65
|
+
@include pintig.struct-bind('tick-field-text', (
|
|
66
|
+
gap: pintig.theme-get($struct, 'gap', 'text'),
|
|
67
67
|
));
|
|
68
68
|
|
|
69
69
|
&:hover,
|
|
70
70
|
&:has(.ms-tick-field__input:focus) {
|
|
71
|
-
@include
|
|
72
|
-
fill:
|
|
73
|
-
border:
|
|
71
|
+
@include pintig.color-bind('tick-field', (
|
|
72
|
+
fill: pintig.theme-get($color, 'fill', 'hover'),
|
|
73
|
+
border: pintig.theme-get($color, 'border', 'hover'),
|
|
74
74
|
));
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
&:has(.ms-tick-field__input:checked) {
|
|
78
|
-
@include
|
|
79
|
-
fill:
|
|
80
|
-
border:
|
|
78
|
+
@include pintig.color-bind('tick-field', (
|
|
79
|
+
fill: pintig.theme-get($color, 'fill', 'checked'),
|
|
80
|
+
border: pintig.theme-get($color, 'border', 'checked'),
|
|
81
81
|
));
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
.ms-tick-field__input {
|
|
85
|
-
@include
|
|
85
|
+
@include pintig.struct-apply('tick-field-input', (
|
|
86
86
|
width: 1.5rem,
|
|
87
87
|
height: 1.5rem,
|
|
88
88
|
margin: 0,
|
|
89
89
|
border-width: 'sm',
|
|
90
90
|
border-style: 'solid'
|
|
91
91
|
));
|
|
92
|
-
@include
|
|
93
|
-
fill:
|
|
94
|
-
ink:
|
|
95
|
-
border:
|
|
92
|
+
@include pintig.color-bind('tick-field-input', (
|
|
93
|
+
fill: pintig.theme-get($color, 'fill', 'input'),
|
|
94
|
+
ink: pintig.theme-get($color, 'ink', 'input'),
|
|
95
|
+
border: pintig.theme-get($color, 'border', 'input'),
|
|
96
96
|
));
|
|
97
97
|
|
|
98
98
|
&[type='checkbox'] {
|
|
99
|
-
@include
|
|
99
|
+
@include pintig.struct-radius('tick-field-input', pintig.theme-get($struct, 'radius', 'input', 'checkbox'), 'bind');
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
&[type='radio'] {
|
|
103
|
-
@include
|
|
103
|
+
@include pintig.struct-radius('tick-field-input', pintig.theme-get($struct, 'radius', 'input', 'radio'), 'bind');
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
&:hover,
|
|
107
107
|
&:focus {
|
|
108
|
-
@include
|
|
109
|
-
@include
|
|
108
|
+
@include pintig.color-fill('tick-field-input', pintig.theme-get($color, 'fill', 'input', 'hover'), 'bind');
|
|
109
|
+
@include pintig.color-border('tick-field-input', pintig.theme-get($color, 'border', 'input', 'hover'), 'bind');
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
&:checked {
|
|
113
|
-
@include
|
|
114
|
-
fill:
|
|
115
|
-
ink:
|
|
116
|
-
border:
|
|
113
|
+
@include pintig.color-bind('tick-field-input', (
|
|
114
|
+
fill: pintig.theme-get($color, 'fill', 'input', 'checked'),
|
|
115
|
+
ink: pintig.theme-get($color, 'ink', 'input'),
|
|
116
|
+
border: pintig.theme-get($color, 'border', 'input', 'checked'),
|
|
117
117
|
));
|
|
118
118
|
}
|
|
119
119
|
}
|
|
@@ -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:list';
|
|
26
26
|
@use 'consts';
|
|
@@ -43,13 +43,13 @@ $_tones: (200, 300, 400, 600, 800, 'ink');
|
|
|
43
43
|
@each $color in $_colors {
|
|
44
44
|
@each $tone in $_tones {
|
|
45
45
|
.fill-#{$color}-#{$tone} {
|
|
46
|
-
background-color:
|
|
46
|
+
background-color: pintig.token-get('#{$color}-#{$tone}');
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
@each $breakpoint in $_breakpoints {
|
|
50
50
|
.\@#{$breakpoint}\:fill-#{$color}-#{$tone} {
|
|
51
|
-
@include
|
|
52
|
-
background-color:
|
|
51
|
+
@include pintig.breakpoint-create($breakpoint) {
|
|
52
|
+
background-color: pintig.token-get('#{$color}-#{$tone}') !important;
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
}
|
|
@@ -62,13 +62,13 @@ $_tones: (200, 300, 400, 600, 800, 'ink');
|
|
|
62
62
|
@each $color in $_colors {
|
|
63
63
|
@each $tone in $_tones {
|
|
64
64
|
.ink-#{$color}-#{$tone} {
|
|
65
|
-
color:
|
|
65
|
+
color: pintig.token-get('#{$color}-#{$tone}');
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
@each $breakpoint in $_breakpoints {
|
|
69
69
|
.\@#{$breakpoint}\:ink-#{$color}-#{$tone} {
|
|
70
|
-
@include
|
|
71
|
-
color:
|
|
70
|
+
@include pintig.breakpoint-create($breakpoint) {
|
|
71
|
+
color: pintig.token-get('#{$color}-#{$tone}') !important;
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
}
|
|
@@ -81,13 +81,13 @@ $_tones: (200, 300, 400, 600, 800, 'ink');
|
|
|
81
81
|
@each $color in $_colors {
|
|
82
82
|
@each $tone in $_tones {
|
|
83
83
|
.border-#{$color}-#{$tone} {
|
|
84
|
-
border-color:
|
|
84
|
+
border-color: pintig.token-get('#{$color}-#{$tone}');
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
@each $breakpoint in $_breakpoints {
|
|
88
88
|
.\@#{$breakpoint}\:border-#{$color}-#{$tone} {
|
|
89
|
-
@include
|
|
90
|
-
border-color:
|
|
89
|
+
@include pintig.breakpoint-create($breakpoint) {
|
|
90
|
+
border-color: pintig.token-get('#{$color}-#{$tone}') !important;
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
}
|