@matteusan/himig 1.7.3 → 1.8.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.
- package/.yarn/cache/{@matteusan-pintig-npm-1.8.0-fbcf4469f0-f83672ea90.zip → @matteusan-pintig-npm-1.9.0-c7e5b3fb64-9c9493bbb5.zip} +0 -0
- package/.yarn/install-state.gz +0 -0
- package/_index.scss +126 -106
- package/_init-font-pack.scss +1 -1
- package/ms-badge/_badge-styles.scss +12 -10
- package/ms-button/_button-base.scss +1 -1
- package/ms-button/_button-mixins.scss +16 -23
- package/ms-button/_button-styles.scss +121 -117
- package/ms-card/_card-base.scss +179 -143
- package/ms-card/_card-styles.scss +48 -29
- package/ms-card/_card-theme.scss +13 -8
- package/ms-form-field/_form-field-base.scss +4 -4
- package/ms-form-field/_form-field-styles.scss +75 -136
- package/ms-form-field/_form-field-theme.scss +7 -7
- package/ms-link/_link-styles.scss +29 -27
- package/ms-link/_link-theme.scss +3 -3
- package/ms-list/_list-base.scss +1 -1
- package/ms-list/_list-styles.scss +36 -34
- package/ms-select-field/_select-field-base.scss +5 -4
- package/ms-select-field/_select-field-styles.scss +85 -118
- package/ms-select-field/_select-field-theme.scss +7 -7
- package/ms-tick-field/_tick-field-base.scss +2 -2
- package/ms-tick-field/_tick-field-styles.scss +58 -56
- package/ms-tick-field/_tick-field-theme.scss +5 -5
- package/ms-utils/_color-utils.scss +37 -35
- package/ms-utils/_layout-utils.scss +164 -153
- package/ms-utils/_struct-utils.scss +150 -148
- package/ms-utils/_typography-utils.scss +100 -72
- package/package.json +29 -5
|
Binary file
|
package/.yarn/install-state.gz
CHANGED
|
Binary file
|
package/_index.scss
CHANGED
|
@@ -58,56 +58,60 @@ $vue-mode: $test-mode !default;
|
|
|
58
58
|
$breakpoints: pintig.prioritize(map.get($theme, 'breakpoints'), $breakpoints);
|
|
59
59
|
$extend: pintig.prioritize(map.get($theme, 'extend'), $extend);
|
|
60
60
|
|
|
61
|
-
$_init-family: 'family.sans-serif';
|
|
62
|
-
$_init-line-height: 'line-height.normal';
|
|
63
|
-
|
|
64
61
|
$_init-type-global: (
|
|
65
|
-
'family':
|
|
62
|
+
'family': 'family.sans-serif',
|
|
66
63
|
'size': 'size.sm',
|
|
67
64
|
'weight': 'weight.normal',
|
|
68
|
-
'line-height':
|
|
65
|
+
'line-height': 'line-height.normal',
|
|
66
|
+
'squeeze': 'squeeze.normal',
|
|
69
67
|
);
|
|
70
68
|
|
|
71
69
|
$_init-type-supertitle: (
|
|
72
|
-
'family':
|
|
73
|
-
'size': 'size.
|
|
74
|
-
'weight': 'weight.
|
|
75
|
-
'line-height':
|
|
70
|
+
'family': 'family.serif',
|
|
71
|
+
'size': 'size.3xl',
|
|
72
|
+
'weight': 'weight.normal',
|
|
73
|
+
'line-height': 'line-height.short',
|
|
74
|
+
'squeeze': 'squeeze.tight',
|
|
76
75
|
);
|
|
77
76
|
|
|
78
77
|
$_init-type-title: (
|
|
79
|
-
'family':
|
|
80
|
-
'size': 'size.
|
|
81
|
-
'weight': 'weight.
|
|
82
|
-
'line-height':
|
|
78
|
+
'family': 'family.serif',
|
|
79
|
+
'size': 'size.xl',
|
|
80
|
+
'weight': 'weight.normal',
|
|
81
|
+
'line-height': 'line-height.short',
|
|
82
|
+
'squeeze': 'squeeze.tight',
|
|
83
83
|
);
|
|
84
84
|
|
|
85
85
|
$_init-type-subtitle: (
|
|
86
|
-
'family':
|
|
86
|
+
'family': 'family.sans-serif',
|
|
87
87
|
'size': 'size.md',
|
|
88
|
-
'weight': 'weight.
|
|
89
|
-
'line-height':
|
|
88
|
+
'weight': 'weight.light',
|
|
89
|
+
'line-height': 'line-height.normal',
|
|
90
|
+
'squeeze': 'squeeze.normal',
|
|
90
91
|
);
|
|
91
92
|
|
|
92
93
|
$_init-type-body: (
|
|
93
|
-
'family':
|
|
94
|
+
'family': 'family.sans-serif',
|
|
94
95
|
'size': 'size.sm',
|
|
95
96
|
'weight': 'weight.normal',
|
|
96
|
-
'line-height':
|
|
97
|
+
'line-height': 'line-height.normal',
|
|
98
|
+
'squeeze': 'squeeze.normal',
|
|
97
99
|
);
|
|
98
100
|
|
|
99
101
|
$_init-type-mono: (
|
|
100
102
|
'family': 'family.mono',
|
|
101
103
|
'size': 'size.sm',
|
|
102
104
|
'weight': 'weight.normal',
|
|
103
|
-
'line-height':
|
|
105
|
+
'line-height': 'line-height.normal',
|
|
106
|
+
'squeeze': 'squeeze.normal',
|
|
104
107
|
);
|
|
105
108
|
|
|
106
109
|
$_init-type-small: (
|
|
107
|
-
'family':
|
|
110
|
+
'family': 'family.sans-serif',
|
|
108
111
|
'size': 'size.xs',
|
|
109
112
|
'weight': 'weight.light',
|
|
110
|
-
'line-height':
|
|
113
|
+
'line-height': 'line-height.tall',
|
|
114
|
+
'squeeze': 'squeeze.normal',
|
|
111
115
|
);
|
|
112
116
|
|
|
113
117
|
$_init-breakpoints: (
|
|
@@ -117,37 +121,6 @@ $vue-mode: $test-mode !default;
|
|
|
117
121
|
'xlarge': pintig.primitive-token-get('breakpoint.xl'),
|
|
118
122
|
);
|
|
119
123
|
|
|
120
|
-
:root {
|
|
121
|
-
@include pintig.theme-config(
|
|
122
|
-
$primary: $primary,
|
|
123
|
-
$accent: $accent,
|
|
124
|
-
$surface: $surface,
|
|
125
|
-
$background: $background,
|
|
126
|
-
$error: $error,
|
|
127
|
-
$disabled: $disabled,
|
|
128
|
-
$radius: $radius,
|
|
129
|
-
$breakpoints: $breakpoints,
|
|
130
|
-
$global: map.merge($_init-type-global, $global),
|
|
131
|
-
$supertitle: map.merge($_init-type-supertitle, $supertitle),
|
|
132
|
-
$title: map.merge($_init-type-title, $title),
|
|
133
|
-
$subtitle: map.merge($_init-type-subtitle, $subtitle),
|
|
134
|
-
$body: map.merge($_init-type-body, $body),
|
|
135
|
-
$mono: map.merge($_init-type-mono, $mono),
|
|
136
|
-
$small: map.merge($_init-type-small, $small),
|
|
137
|
-
$extend: $extend,
|
|
138
|
-
);
|
|
139
|
-
|
|
140
|
-
// Immutables
|
|
141
|
-
--ms-shadow-color: rgba(0, 0, 0, 0.25);
|
|
142
|
-
--ms-sprite-size: 32px;
|
|
143
|
-
--ms-transition-time: 0.2s;
|
|
144
|
-
|
|
145
|
-
font-family: pintig.token-get('family-global');
|
|
146
|
-
line-height: pintig.token-get('line-height-global');
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
@include pintig.breakpoint-config(map.merge($_init-breakpoints, $breakpoints));
|
|
150
|
-
|
|
151
124
|
@include font-pack.load((
|
|
152
125
|
'global': map.get(map.merge($_init-type-global, $global), 'family'),
|
|
153
126
|
'supertitle': map.get(map.merge($_init-type-supertitle, $supertitle), 'family'),
|
|
@@ -158,67 +131,114 @@ $vue-mode: $test-mode !default;
|
|
|
158
131
|
'small': map.get(map.merge($_init-type-small, $small), 'family'),
|
|
159
132
|
));
|
|
160
133
|
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
134
|
+
@layer init, components, utils;
|
|
135
|
+
|
|
136
|
+
@layer init {
|
|
137
|
+
:root {
|
|
138
|
+
@include pintig.theme-config(
|
|
139
|
+
$primary: $primary,
|
|
140
|
+
$accent: $accent,
|
|
141
|
+
$surface: $surface,
|
|
142
|
+
$background: $background,
|
|
143
|
+
$error: $error,
|
|
144
|
+
$disabled: $disabled,
|
|
145
|
+
$radius: $radius,
|
|
146
|
+
$breakpoints: $breakpoints,
|
|
147
|
+
$global: map.merge($_init-type-global, $global),
|
|
148
|
+
$supertitle: map.merge($_init-type-supertitle, $supertitle),
|
|
149
|
+
$title: map.merge($_init-type-title, $title),
|
|
150
|
+
$subtitle: map.merge($_init-type-subtitle, $subtitle),
|
|
151
|
+
$body: map.merge($_init-type-body, $body),
|
|
152
|
+
$mono: map.merge($_init-type-mono, $mono),
|
|
153
|
+
$small: map.merge($_init-type-small, $small),
|
|
154
|
+
$extend: $extend,
|
|
155
|
+
);
|
|
156
|
+
|
|
157
|
+
@include pintig.token-config((
|
|
158
|
+
'shadow-color': rgba(0, 0, 0, 0.25),
|
|
159
|
+
'easing': (
|
|
160
|
+
'default': ease-in-out,
|
|
161
|
+
'smooth': cubic-bezier(0.83, 0, 0.17, 1)
|
|
162
|
+
),
|
|
163
|
+
'time': (
|
|
164
|
+
'short': 0.2s,
|
|
165
|
+
'default': 0.4s,
|
|
166
|
+
'long': 0.6s
|
|
167
|
+
)
|
|
168
|
+
));
|
|
169
|
+
|
|
170
|
+
// Immutables
|
|
171
|
+
--ms-shadow-color: rgba(0, 0, 0, 0.25);
|
|
172
|
+
--ms-transition-time: 0.2s;
|
|
173
|
+
|
|
174
|
+
font-family: pintig.token-get('family-global');
|
|
175
|
+
line-height: pintig.token-get('line-height-global');
|
|
176
|
+
}
|
|
169
177
|
|
|
170
|
-
|
|
171
|
-
box-sizing: border-box;
|
|
172
|
-
font-size: 100%;
|
|
173
|
-
}
|
|
178
|
+
@include pintig.breakpoint-config(map.merge($_init-breakpoints, $breakpoints));
|
|
174
179
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
180
|
+
*,
|
|
181
|
+
:before,
|
|
182
|
+
:after {
|
|
183
|
+
margin: 0;
|
|
184
|
+
padding: 0;
|
|
185
|
+
box-sizing: inherit;
|
|
186
|
+
color: inherit;
|
|
187
|
+
}
|
|
179
188
|
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
189
|
+
html {
|
|
190
|
+
box-sizing: border-box;
|
|
191
|
+
font-size: 100%;
|
|
192
|
+
}
|
|
184
193
|
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
font-family: inherit;
|
|
195
|
-
font-size: inherit;
|
|
196
|
-
font-weight: inherit;
|
|
197
|
-
line-height: inherit;
|
|
198
|
-
}
|
|
194
|
+
body {
|
|
195
|
+
background: pintig.key-create('body-fill', pintig.token-get('background'));
|
|
196
|
+
color: pintig.key-create('body-ink', pintig.token-get('background-ink'));
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
a {
|
|
200
|
+
text-decoration: none;
|
|
201
|
+
color: inherit;
|
|
202
|
+
}
|
|
199
203
|
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
// If grid
|
|
214
|
-
grid-template-columns: repeat(pintig.key-create('content-wrap-cols', 4), 1fr);
|
|
215
|
-
|
|
216
|
-
@include pintig.breakpoint-create('medium') {
|
|
217
|
-
@include pintig.key-bind('content-wrap-cols', repeat(8, 1fr));
|
|
204
|
+
h1,
|
|
205
|
+
h2,
|
|
206
|
+
h3,
|
|
207
|
+
h4,
|
|
208
|
+
h5,
|
|
209
|
+
h6,
|
|
210
|
+
p,
|
|
211
|
+
span,
|
|
212
|
+
a {
|
|
213
|
+
font-family: inherit;
|
|
214
|
+
font-size: inherit;
|
|
215
|
+
font-weight: inherit;
|
|
216
|
+
line-height: inherit;
|
|
218
217
|
}
|
|
219
218
|
|
|
220
|
-
|
|
221
|
-
|
|
219
|
+
main.content-wrap {
|
|
220
|
+
$margin: 15px;
|
|
221
|
+
width: calc(100% - #{$margin * 2});
|
|
222
|
+
max-width: pintig.key-create('content-wrap-max-width', pintig.primitive-token-get('dimension.xl'));
|
|
223
|
+
height: 100%;
|
|
224
|
+
display: pintig.key-create('content-wrap-display', flex);
|
|
225
|
+
flex-flow: column nowrap;
|
|
226
|
+
gap: pintig.key-create('content-wrap-gap', pintig.primitive-token-get('spacing.md'));
|
|
227
|
+
margin: 0 auto;
|
|
228
|
+
padding:
|
|
229
|
+
pintig.key-create('content-wrap-padding-y', pintig.primitive-token-get('spacing.lg'))
|
|
230
|
+
pintig.key-create('content-wrap-padding-x', pintig.primitive-token-get('spacing.none'));
|
|
231
|
+
|
|
232
|
+
// If grid
|
|
233
|
+
grid-template-columns: repeat(pintig.key-create('content-wrap-cols', 4), 1fr);
|
|
234
|
+
|
|
235
|
+
@include pintig.breakpoint-create('medium') {
|
|
236
|
+
@include pintig.key-bind('content-wrap-cols', repeat(8, 1fr));
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
@include pintig.breakpoint-create('large') {
|
|
240
|
+
@include pintig.key-bind('content-wrap-cols', repeat(12, 1fr));
|
|
241
|
+
}
|
|
222
242
|
}
|
|
223
243
|
}
|
|
224
244
|
|
package/_init-font-pack.scss
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
@if list.index($family-list, 'family.sans-serif') {
|
|
15
|
-
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');
|
|
15
|
+
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
@if list.index($family-list, 'family.serif') {
|
|
@@ -17,17 +17,19 @@
|
|
|
17
17
|
$typography: pintig.theme-merge(theme.$init-typography, $typography);
|
|
18
18
|
$settings: pintig.theme-merge(theme.$init-settings, $settings);
|
|
19
19
|
|
|
20
|
-
@
|
|
21
|
-
@include
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
@layer components {
|
|
21
|
+
@include base.init() {
|
|
22
|
+
@include pintig.color-apply('badge', $color);
|
|
23
|
+
@include pintig.struct-apply('badge', $struct);
|
|
24
|
+
@include pintig.typography-bind('badge', $typography);
|
|
24
25
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
26
|
+
&:where(.is-outlined) {
|
|
27
|
+
@include pintig.color-bind('badge', (
|
|
28
|
+
fill: transparent,
|
|
29
|
+
ink: pintig.theme-get($color, 'fill'),
|
|
30
|
+
border: pintig.theme-get($color, 'border')
|
|
31
|
+
));
|
|
32
|
+
}
|
|
31
33
|
}
|
|
32
34
|
}
|
|
33
35
|
}
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
outline: pintig.key-create('button-outline', none);
|
|
21
21
|
|
|
22
22
|
-webkit-appearance: caret;
|
|
23
|
-
@include pintig.prefix(transition, all
|
|
23
|
+
@include pintig.prefix(transition, all pintig.token-get('time-short') pintig.token-get('easing'));
|
|
24
24
|
|
|
25
25
|
@content;
|
|
26
26
|
|
|
@@ -17,30 +17,30 @@
|
|
|
17
17
|
ink: $fill,
|
|
18
18
|
border: transparent
|
|
19
19
|
));
|
|
20
|
-
@include pintig.key-bind('button-outline', 2px solid
|
|
20
|
+
@include pintig.key-bind('button-outline', 2px solid rgb(from _raw($fill) r g b / pintig.$color-fill-default-opacity));
|
|
21
21
|
|
|
22
22
|
&:hover {
|
|
23
23
|
@include pintig.color-bind('button', (
|
|
24
|
-
fill:
|
|
24
|
+
fill: _alpha($fill, pintig.$color-fill-hover-opacity),
|
|
25
25
|
ink: $fill,
|
|
26
|
-
border:
|
|
26
|
+
border: _alpha($border, pintig.$color-border-hover-opacity, $type: 'border')
|
|
27
27
|
));
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
&:focus {
|
|
31
31
|
@include pintig.color-bind('button', (
|
|
32
|
-
fill:
|
|
32
|
+
fill: _alpha($fill, pintig.$color-fill-focus-opacity),
|
|
33
33
|
ink: $fill,
|
|
34
|
-
border:
|
|
34
|
+
border: _alpha($border, pintig.$color-border-focus-opacity, $type: 'border')
|
|
35
35
|
));
|
|
36
|
-
@include pintig.key-bind('button-outline', 2px solid
|
|
36
|
+
@include pintig.key-bind('button-outline', 2px solid rgb(from _raw($fill) r g b / pintig.$color-outline-focus-opacity));
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
&:active {
|
|
40
40
|
@include pintig.color-bind('button', (
|
|
41
|
-
fill:
|
|
41
|
+
fill: _alpha($fill, pintig.$color-fill-active-opacity),
|
|
42
42
|
ink: $fill,
|
|
43
|
-
border:
|
|
43
|
+
border: _alpha($border, pintig.$color-border-active-opacity, $type: 'border')
|
|
44
44
|
));
|
|
45
45
|
}
|
|
46
46
|
}
|
|
@@ -74,15 +74,15 @@
|
|
|
74
74
|
ink: $fill,
|
|
75
75
|
border: $border
|
|
76
76
|
));
|
|
77
|
-
@include pintig.key-bind('button-outline', 2px solid
|
|
77
|
+
@include pintig.key-bind('button-outline', 2px solid rgb(from _raw($fill) r g b / pintig.$color-fill-default-opacity));
|
|
78
78
|
|
|
79
79
|
&:focus {
|
|
80
80
|
@include pintig.color-bind('button', (
|
|
81
|
-
fill:
|
|
81
|
+
fill: _alpha($fill, pintig.$color-fill-focus-opacity),
|
|
82
82
|
ink: $fill,
|
|
83
83
|
border: $border
|
|
84
84
|
));
|
|
85
|
-
@include pintig.key-bind('button-outline', 2px solid
|
|
85
|
+
@include pintig.key-bind('button-outline', 2px solid rgb(from _raw($fill) r g b / pintig.$color-outline-focus-opacity));
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
&:hover {
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
ink: $ink,
|
|
132
132
|
border: $border
|
|
133
133
|
));
|
|
134
|
-
@include pintig.key-bind('button-outline', 2px solid
|
|
134
|
+
@include pintig.key-bind('button-outline', 2px solid rgb(from _raw($fill) r g b / pintig.$color-fill-default-opacity));
|
|
135
135
|
|
|
136
136
|
&:hover {
|
|
137
137
|
@include pintig.color-bind('button', (
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
ink: $ink,
|
|
148
148
|
border: $border-focus
|
|
149
149
|
));
|
|
150
|
-
@include pintig.key-bind('button-outline', 2px solid
|
|
150
|
+
@include pintig.key-bind('button-outline', 2px solid rgb(from _raw($fill) r g b / pintig.$color-outline-focus-opacity));
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
&:active {
|
|
@@ -168,17 +168,10 @@
|
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
-
@function
|
|
172
|
-
|
|
173
|
-
$_color: string.slice($query, 1, (string.length($query) - 4));
|
|
174
|
-
// $_tone: string.slice($query, (string.length($_color) + 2), (string.length($query)));
|
|
175
|
-
@if $type == 'border' { @return rgba(#fff, 0%); }
|
|
176
|
-
@if pintig.token-check('#{$_color}-alpha-#{map.get($_tones, $state)}') {
|
|
177
|
-
@return pintig.token-get('#{$_color}-alpha-#{map.get($_tones, $state)}');
|
|
178
|
-
}
|
|
179
|
-
@return _raw($query, $opacity);
|
|
171
|
+
@function _alpha($query, $opacity, $type: 'fill', $state: 'hover') {
|
|
172
|
+
@return rgb(from _raw($query) r g b / $opacity);
|
|
180
173
|
}
|
|
181
174
|
|
|
182
175
|
@function _raw($query) {
|
|
183
|
-
@return pintig.token-switch
|
|
176
|
+
@return pintig.token-switch($query);
|
|
184
177
|
}
|