@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:string';
|
|
25
25
|
@use 'sass:list';
|
|
26
26
|
@use 'consts';
|
|
@@ -75,7 +75,7 @@ $_gaps: (
|
|
|
75
75
|
|
|
76
76
|
@each $breakpoint in $_breakpoints {
|
|
77
77
|
.\@#{$breakpoint}\:#{$display} {
|
|
78
|
-
@include
|
|
78
|
+
@include pintig.breakpoint-create($breakpoint) {
|
|
79
79
|
display: string.unquote($display) !important;
|
|
80
80
|
}
|
|
81
81
|
}
|
|
@@ -91,7 +91,7 @@ $_gaps: (
|
|
|
91
91
|
|
|
92
92
|
@each $breakpoint in $_breakpoints {
|
|
93
93
|
.\@#{$breakpoint}\:#{$position} {
|
|
94
|
-
@include
|
|
94
|
+
@include pintig.breakpoint-create($breakpoint) {
|
|
95
95
|
position: string.unquote($position) !important;
|
|
96
96
|
}
|
|
97
97
|
}
|
|
@@ -107,7 +107,7 @@ $_gaps: (
|
|
|
107
107
|
|
|
108
108
|
@each $breakpoint in $_breakpoints {
|
|
109
109
|
.\@#{$breakpoint}\:flow-#{$flow} {
|
|
110
|
-
@include
|
|
110
|
+
@include pintig.breakpoint-create($breakpoint) {
|
|
111
111
|
flex-flow: string.unquote($flow) !important;
|
|
112
112
|
}
|
|
113
113
|
}
|
|
@@ -130,13 +130,13 @@ $_gaps: (
|
|
|
130
130
|
@each $breakpoint in $_breakpoints {
|
|
131
131
|
@if $wrap == 'default' {
|
|
132
132
|
.\@#{$breakpoint}\:wrap {
|
|
133
|
-
@include
|
|
133
|
+
@include pintig.breakpoint-create($breakpoint) {
|
|
134
134
|
flex-wrap: string.unquote($value) !important;
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
} @else {
|
|
138
138
|
.\@#{$breakpoint}\:wrap-#{$wrap} {
|
|
139
|
-
@include
|
|
139
|
+
@include pintig.breakpoint-create($breakpoint) {
|
|
140
140
|
flex-wrap: string.unquote($value) !important;
|
|
141
141
|
}
|
|
142
142
|
}
|
|
@@ -153,7 +153,7 @@ $_gaps: (
|
|
|
153
153
|
|
|
154
154
|
@each $breakpoint in $_breakpoints {
|
|
155
155
|
.\@#{$breakpoint}\:jc-#{$alignment} {
|
|
156
|
-
@include
|
|
156
|
+
@include pintig.breakpoint-create($breakpoint) {
|
|
157
157
|
justify-content: string.unquote($alignment) !important;
|
|
158
158
|
}
|
|
159
159
|
}
|
|
@@ -167,7 +167,7 @@ $_gaps: (
|
|
|
167
167
|
|
|
168
168
|
@each $breakpoint in $_breakpoints {
|
|
169
169
|
.\@#{$breakpoint}\:ji-#{$alignment} {
|
|
170
|
-
@include
|
|
170
|
+
@include pintig.breakpoint-create($breakpoint) {
|
|
171
171
|
justify-items: string.unquote($alignment) !important;
|
|
172
172
|
}
|
|
173
173
|
}
|
|
@@ -181,7 +181,7 @@ $_gaps: (
|
|
|
181
181
|
|
|
182
182
|
@each $breakpoint in $_breakpoints {
|
|
183
183
|
.\@#{$breakpoint}\:ac-#{$alignment} {
|
|
184
|
-
@include
|
|
184
|
+
@include pintig.breakpoint-create($breakpoint) {
|
|
185
185
|
align-content: string.unquote($alignment) !important;
|
|
186
186
|
}
|
|
187
187
|
}
|
|
@@ -195,7 +195,7 @@ $_gaps: (
|
|
|
195
195
|
|
|
196
196
|
@each $breakpoint in $_breakpoints {
|
|
197
197
|
.\@#{$breakpoint}\:ai-#{$alignment} {
|
|
198
|
-
@include
|
|
198
|
+
@include pintig.breakpoint-create($breakpoint) {
|
|
199
199
|
align-items: string.unquote($alignment) !important;
|
|
200
200
|
}
|
|
201
201
|
}
|
|
@@ -209,7 +209,7 @@ $_gaps: (
|
|
|
209
209
|
|
|
210
210
|
@each $breakpoint in $_breakpoints {
|
|
211
211
|
.\@#{$breakpoint}\:pc-#{$alignment} {
|
|
212
|
-
@include
|
|
212
|
+
@include pintig.breakpoint-create($breakpoint) {
|
|
213
213
|
place-content: string.unquote($alignment) !important;
|
|
214
214
|
}
|
|
215
215
|
}
|
|
@@ -223,7 +223,7 @@ $_gaps: (
|
|
|
223
223
|
|
|
224
224
|
@each $breakpoint in $_breakpoints {
|
|
225
225
|
.\@#{$breakpoint}\:pi-#{$alignment} {
|
|
226
|
-
@include
|
|
226
|
+
@include pintig.breakpoint-create($breakpoint) {
|
|
227
227
|
place-items: string.unquote($alignment) !important;
|
|
228
228
|
}
|
|
229
229
|
}
|
|
@@ -239,7 +239,7 @@ $_gaps: (
|
|
|
239
239
|
|
|
240
240
|
@each $breakpoint in $_breakpoints {
|
|
241
241
|
.\@#{$breakpoint}\:cols-#{$i} {
|
|
242
|
-
@include
|
|
242
|
+
@include pintig.breakpoint-create($breakpoint) {
|
|
243
243
|
grid-template-columns: repeat($i, 1fr) !important;
|
|
244
244
|
}
|
|
245
245
|
}
|
|
@@ -253,7 +253,7 @@ $_gaps: (
|
|
|
253
253
|
|
|
254
254
|
@each $breakpoint in $_breakpoints {
|
|
255
255
|
.\@#{$breakpoint}\:rows-#{$i} {
|
|
256
|
-
@include
|
|
256
|
+
@include pintig.breakpoint-create($breakpoint) {
|
|
257
257
|
grid-template-rows: repeat($i, 1fr) !important;
|
|
258
258
|
}
|
|
259
259
|
}
|
|
@@ -267,7 +267,7 @@ $_gaps: (
|
|
|
267
267
|
|
|
268
268
|
@each $breakpoint in $_breakpoints {
|
|
269
269
|
.\@#{$breakpoint}\:start-#{$i} {
|
|
270
|
-
@include
|
|
270
|
+
@include pintig.breakpoint-create($breakpoint) {
|
|
271
271
|
grid-column-start: $i !important;
|
|
272
272
|
}
|
|
273
273
|
}
|
|
@@ -281,7 +281,7 @@ $_gaps: (
|
|
|
281
281
|
|
|
282
282
|
@each $breakpoint in $_breakpoints {
|
|
283
283
|
.\@#{$breakpoint}\:end-#{$i} {
|
|
284
|
-
@include
|
|
284
|
+
@include pintig.breakpoint-create($breakpoint) {
|
|
285
285
|
grid-column-end: $i + 1 !important;
|
|
286
286
|
}
|
|
287
287
|
}
|
|
@@ -292,13 +292,13 @@ $_gaps: (
|
|
|
292
292
|
@if list.index($utils-to-render, 'gap') {
|
|
293
293
|
@each $gap in $_gaps {
|
|
294
294
|
.gap-#{$gap} {
|
|
295
|
-
gap:
|
|
295
|
+
gap: pintig.primitive-token-get('gap.#{$gap}');
|
|
296
296
|
}
|
|
297
297
|
|
|
298
298
|
@each $breakpoint in $_breakpoints {
|
|
299
299
|
.\@#{$breakpoint}\:gap-#{$gap} {
|
|
300
|
-
@include
|
|
301
|
-
gap:
|
|
300
|
+
@include pintig.breakpoint-create($breakpoint) {
|
|
301
|
+
gap: pintig.primitive-token-get('gap.#{$gap}') !important;
|
|
302
302
|
}
|
|
303
303
|
}
|
|
304
304
|
}
|
|
@@ -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:meta';
|
|
26
26
|
@use 'sass:list';
|
|
@@ -101,39 +101,39 @@ $_stroke-style: (
|
|
|
101
101
|
@if list.index($utils-to-render, 'w') {
|
|
102
102
|
// Width
|
|
103
103
|
.w-#{$dimension} {
|
|
104
|
-
width:
|
|
104
|
+
width: pintig.primitive-token-get('width.#{$dimension}');
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
@each $breakpoint in $_breakpoints {
|
|
108
108
|
.\@#{$breakpoint}\:w-#{$dimension} {
|
|
109
|
-
@include
|
|
110
|
-
width:
|
|
109
|
+
@include pintig.breakpoint-create($breakpoint) {
|
|
110
|
+
width: pintig.primitive-token-get('width.#{$dimension}') !important;
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
// Min Width
|
|
116
116
|
.min-w-#{$dimension} {
|
|
117
|
-
min-width:
|
|
117
|
+
min-width: pintig.primitive-token-get('width.#{$dimension}');
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
@each $breakpoint in $_breakpoints {
|
|
121
121
|
.\@#{$breakpoint}\:min-w-#{$dimension} {
|
|
122
|
-
@include
|
|
123
|
-
min-width:
|
|
122
|
+
@include pintig.breakpoint-create($breakpoint) {
|
|
123
|
+
min-width: pintig.primitive-token-get('width.#{$dimension}') !important;
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
|
|
128
128
|
// Max Width
|
|
129
129
|
.max-w-#{$dimension} {
|
|
130
|
-
max-width:
|
|
130
|
+
max-width: pintig.primitive-token-get('width.#{$dimension}');
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
@each $breakpoint in $_breakpoints {
|
|
134
134
|
.\@#{$breakpoint}\:max-w-#{$dimension} {
|
|
135
|
-
@include
|
|
136
|
-
max-width:
|
|
135
|
+
@include pintig.breakpoint-create($breakpoint) {
|
|
136
|
+
max-width: pintig.primitive-token-get('width.#{$dimension}') !important;
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
139
|
}
|
|
@@ -142,39 +142,39 @@ $_stroke-style: (
|
|
|
142
142
|
@if list.index($utils-to-render, 'h') {
|
|
143
143
|
// Height
|
|
144
144
|
.h-#{$dimension} {
|
|
145
|
-
height:
|
|
145
|
+
height: pintig.primitive-token-get('height.#{$dimension}');
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
@each $breakpoint in $_breakpoints {
|
|
149
149
|
.\@#{$breakpoint}\:h-#{$dimension} {
|
|
150
|
-
@include
|
|
151
|
-
height:
|
|
150
|
+
@include pintig.breakpoint-create($breakpoint) {
|
|
151
|
+
height: pintig.primitive-token-get('height.#{$dimension}') !important;
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
// Min Height
|
|
157
157
|
.min-h-#{$dimension} {
|
|
158
|
-
min-height:
|
|
158
|
+
min-height: pintig.primitive-token-get('height.#{$dimension}');
|
|
159
159
|
}
|
|
160
160
|
|
|
161
161
|
@each $breakpoint in $_breakpoints {
|
|
162
162
|
.\@#{$breakpoint}\:min-h-#{$dimension} {
|
|
163
|
-
@include
|
|
164
|
-
min-height:
|
|
163
|
+
@include pintig.breakpoint-create($breakpoint) {
|
|
164
|
+
min-height: pintig.primitive-token-get('height.#{$dimension}') !important;
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
|
|
169
169
|
// Max Height
|
|
170
170
|
.max-h-#{$dimension} {
|
|
171
|
-
max-height:
|
|
171
|
+
max-height: pintig.primitive-token-get('height.#{$dimension}');
|
|
172
172
|
}
|
|
173
173
|
|
|
174
174
|
@each $breakpoint in $_breakpoints {
|
|
175
175
|
.\@#{$breakpoint}\:max-h-#{$dimension} {
|
|
176
|
-
@include
|
|
177
|
-
max-height:
|
|
176
|
+
@include pintig.breakpoint-create($breakpoint) {
|
|
177
|
+
max-height: pintig.primitive-token-get('height.#{$dimension}') !important;
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
180
|
}
|
|
@@ -185,13 +185,13 @@ $_stroke-style: (
|
|
|
185
185
|
@if list.index($utils-to-render, 'p') {
|
|
186
186
|
// Padding
|
|
187
187
|
.p-#{$variant} {
|
|
188
|
-
padding:
|
|
188
|
+
padding: pintig.primitive-token-get('padding.#{$variant}');
|
|
189
189
|
}
|
|
190
190
|
|
|
191
191
|
@each $breakpoint in $_breakpoints {
|
|
192
192
|
.\@#{$breakpoint}\:p-#{$variant} {
|
|
193
|
-
@include
|
|
194
|
-
padding:
|
|
193
|
+
@include pintig.breakpoint-create($breakpoint) {
|
|
194
|
+
padding: pintig.primitive-token-get('padding.#{$variant}') !important;
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
197
|
}
|
|
@@ -199,15 +199,15 @@ $_stroke-style: (
|
|
|
199
199
|
@each $direction, $direction-val in $_directions {
|
|
200
200
|
.p#{$direction}-#{$variant} {
|
|
201
201
|
@each $sub-direction in $direction-val {
|
|
202
|
-
padding-#{$sub-direction}:
|
|
202
|
+
padding-#{$sub-direction}: pintig.primitive-token-get('padding.#{$variant}');
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
|
|
206
206
|
@each $breakpoint in $_breakpoints {
|
|
207
207
|
.\@#{$breakpoint}\:p#{$direction}-#{$variant} {
|
|
208
|
-
@include
|
|
208
|
+
@include pintig.breakpoint-create($breakpoint) {
|
|
209
209
|
@each $sub-direction in $direction-val {
|
|
210
|
-
padding-#{$sub-direction}:
|
|
210
|
+
padding-#{$sub-direction}: pintig.primitive-token-get('padding.#{$variant}') !important;
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
213
|
}
|
|
@@ -218,13 +218,13 @@ $_stroke-style: (
|
|
|
218
218
|
@if list.index($utils-to-render, 'm') {
|
|
219
219
|
// Margin
|
|
220
220
|
.m-#{$variant} {
|
|
221
|
-
margin:
|
|
221
|
+
margin: pintig.primitive-token-get('margin.#{$variant}');
|
|
222
222
|
}
|
|
223
223
|
|
|
224
224
|
@each $breakpoint in $_breakpoints {
|
|
225
225
|
.\@#{$breakpoint}\:m-#{$variant} {
|
|
226
|
-
@include
|
|
227
|
-
margin:
|
|
226
|
+
@include pintig.breakpoint-create($breakpoint) {
|
|
227
|
+
margin: pintig.primitive-token-get('margin.#{$variant}') !important;
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
230
|
}
|
|
@@ -232,15 +232,15 @@ $_stroke-style: (
|
|
|
232
232
|
@each $direction, $direction-val in $_directions {
|
|
233
233
|
.m#{$direction}-#{$variant} {
|
|
234
234
|
@each $sub-direction in $direction-val {
|
|
235
|
-
margin-#{$sub-direction}:
|
|
235
|
+
margin-#{$sub-direction}: pintig.primitive-token-get('margin.#{$variant}');
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
238
|
|
|
239
239
|
@each $breakpoint in $_breakpoints {
|
|
240
240
|
.\@#{$breakpoint}\:m#{$direction}-#{$variant} {
|
|
241
|
-
@include
|
|
241
|
+
@include pintig.breakpoint-create($breakpoint) {
|
|
242
242
|
@each $sub-direction in $direction-val {
|
|
243
|
-
margin-#{$sub-direction}:
|
|
243
|
+
margin-#{$sub-direction}: pintig.primitive-token-get('margin.#{$variant}') !important;
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
246
|
}
|
|
@@ -254,13 +254,13 @@ $_stroke-style: (
|
|
|
254
254
|
// Do nothing
|
|
255
255
|
} @else {
|
|
256
256
|
.r-#{$variant} {
|
|
257
|
-
border-radius:
|
|
257
|
+
border-radius: pintig.primitive-token-get('radius.#{$variant}');
|
|
258
258
|
}
|
|
259
259
|
|
|
260
260
|
@each $breakpoint in $_breakpoints {
|
|
261
261
|
.\@#{$breakpoint}\:r-#{$variant} {
|
|
262
|
-
@include
|
|
263
|
-
border-radius:
|
|
262
|
+
@include pintig.breakpoint-create($breakpoint) {
|
|
263
|
+
border-radius: pintig.primitive-token-get('radius.#{$variant}') !important;
|
|
264
264
|
}
|
|
265
265
|
}
|
|
266
266
|
}
|
|
@@ -268,15 +268,15 @@ $_stroke-style: (
|
|
|
268
268
|
@each $direction, $direction-val in $_r-directions {
|
|
269
269
|
.r#{$direction}-#{$variant} {
|
|
270
270
|
@each $sub-direction in $direction-val {
|
|
271
|
-
border-#{$sub-direction}-radius:
|
|
271
|
+
border-#{$sub-direction}-radius: pintig.primitive-token-get('radius.#{$variant}');
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
274
|
|
|
275
275
|
@each $breakpoint in $_breakpoints {
|
|
276
276
|
.\@#{$breakpoint}\:r#{$direction}-#{$variant} {
|
|
277
|
-
@include
|
|
277
|
+
@include pintig.breakpoint-create($breakpoint) {
|
|
278
278
|
@each $sub-direction in $direction-val {
|
|
279
|
-
border-#{$sub-direction}-radius:
|
|
279
|
+
border-#{$sub-direction}-radius: pintig.primitive-token-get('radius.#{$variant}') !important;
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
282
|
}
|
|
@@ -290,13 +290,13 @@ $_stroke-style: (
|
|
|
290
290
|
@each $variant in $_stroke-size {
|
|
291
291
|
// Border Width
|
|
292
292
|
.border-#{$variant} {
|
|
293
|
-
border-width:
|
|
293
|
+
border-width: pintig.primitive-token-get('border.#{$variant}');
|
|
294
294
|
}
|
|
295
295
|
|
|
296
296
|
@each $breakpoint in $_breakpoints {
|
|
297
297
|
.\@#{$breakpoint}\:border-#{$variant} {
|
|
298
|
-
@include
|
|
299
|
-
border-width:
|
|
298
|
+
@include pintig.breakpoint-create($breakpoint) {
|
|
299
|
+
border-width: pintig.primitive-token-get('border.#{$variant}') !important;
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
302
|
}
|
|
@@ -312,7 +312,7 @@ $_stroke-style: (
|
|
|
312
312
|
|
|
313
313
|
@each $breakpoint in $_breakpoints {
|
|
314
314
|
.\@#{$breakpoint}\:border-#{$variant} {
|
|
315
|
-
@include
|
|
315
|
+
@include pintig.breakpoint-create($breakpoint) {
|
|
316
316
|
border-style: $variant !important;
|
|
317
317
|
}
|
|
318
318
|
}
|
|
@@ -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:meta';
|
|
26
26
|
@use 'sass:list';
|
|
@@ -69,6 +69,7 @@ $_presets: (
|
|
|
69
69
|
$_sizes: ('xs', 'sm', 'md', 'lg', 'xl', '2xl', '3xl', '4xl', '5xl', '6xl');
|
|
70
70
|
$_weights: ('black', 'bold', 'normal', 'light');
|
|
71
71
|
$_line-heights: ('broad', 'normal', 'condensed');
|
|
72
|
+
$_alignments: ('center', 'left', 'right', 'justify', 'justify-all');
|
|
72
73
|
|
|
73
74
|
@mixin typography($include: (), $exclude: ()) {
|
|
74
75
|
$utils-to-render: helpers.handle-include-exclude((
|
|
@@ -77,24 +78,25 @@ $_line-heights: ('broad', 'normal', 'condensed');
|
|
|
77
78
|
'size',
|
|
78
79
|
'weight',
|
|
79
80
|
'line-height',
|
|
81
|
+
'alignment'
|
|
80
82
|
), $include, $exclude);
|
|
81
83
|
|
|
82
84
|
@if list.index($utils-to-render, 'preset') {
|
|
83
85
|
@each $preset, $values in $_presets {
|
|
84
86
|
.#{$preset} {
|
|
85
|
-
font-family:
|
|
86
|
-
font-size:
|
|
87
|
-
font-weight:
|
|
88
|
-
line-height:
|
|
87
|
+
font-family: pintig.token-get('family-#{map.get($values, 'family')}');
|
|
88
|
+
font-size: pintig.token-get('size-#{map.get($values, 'size')}');
|
|
89
|
+
font-weight: pintig.token-switch('weight-#{map.get($values, 'weight')}', pintig.primitive-token-switch('weight.#{map.get($values, 'weight')}', $values));
|
|
90
|
+
line-height: pintig.token-switch('line-height-#{map.get($values, 'weight')}', pintig.primitive-token-switch('line-height.#{map.get($values, 'line-height')}', $values));
|
|
89
91
|
}
|
|
90
92
|
|
|
91
93
|
@each $breakpoint in $_breakpoints {
|
|
92
94
|
.\@#{$breakpoint}\:#{$preset} {
|
|
93
|
-
@include
|
|
94
|
-
font-family:
|
|
95
|
-
font-size:
|
|
96
|
-
font-weight:
|
|
97
|
-
line-height:
|
|
95
|
+
@include pintig.breakpoint-create($breakpoint) {
|
|
96
|
+
font-family: pintig.token-get('family-#{map.get($values, 'family')}') !important;
|
|
97
|
+
font-size: pintig.token-get('size-#{map.get($values, 'size')}') !important;
|
|
98
|
+
font-weight: pintig.token-switch('weight-#{map.get($values, 'weight')}', pintig.primitive-token-switch('weight.#{map.get($values, 'weight')}', $values));
|
|
99
|
+
line-height: pintig.token-switch('line-height-#{map.get($values, 'weight')}', pintig.primitive-token-switch('line-height.#{map.get($values, 'line-height')}', $values));
|
|
98
100
|
}
|
|
99
101
|
}
|
|
100
102
|
}
|
|
@@ -104,13 +106,13 @@ $_line-heights: ('broad', 'normal', 'condensed');
|
|
|
104
106
|
@if list.index($utils-to-render, 'family') {
|
|
105
107
|
@each $preset, $values in $_presets {
|
|
106
108
|
.family-#{$preset} {
|
|
107
|
-
font-family:
|
|
109
|
+
font-family: pintig.token-get('family-#{$preset}');
|
|
108
110
|
}
|
|
109
111
|
|
|
110
112
|
@each $breakpoint in $_breakpoints {
|
|
111
113
|
.\@#{$breakpoint}\:family-#{$preset} {
|
|
112
|
-
@include
|
|
113
|
-
font-family:
|
|
114
|
+
@include pintig.breakpoint-create($breakpoint) {
|
|
115
|
+
font-family: pintig.token-get('family-#{$preset}') !important;
|
|
114
116
|
}
|
|
115
117
|
}
|
|
116
118
|
}
|
|
@@ -120,13 +122,13 @@ $_line-heights: ('broad', 'normal', 'condensed');
|
|
|
120
122
|
@if list.index($utils-to-render, 'size') {
|
|
121
123
|
@each $size in $_sizes {
|
|
122
124
|
.size-#{$size} {
|
|
123
|
-
font-size:
|
|
125
|
+
font-size: pintig.primitive-token-get('size.#{$size}');
|
|
124
126
|
}
|
|
125
127
|
|
|
126
128
|
@each $breakpoint in $_breakpoints {
|
|
127
129
|
.\@#{$breakpoint}\:size-#{$size} {
|
|
128
|
-
@include
|
|
129
|
-
font-size:
|
|
130
|
+
@include pintig.breakpoint-create($breakpoint) {
|
|
131
|
+
font-size: pintig.primitive-token-get('size.#{$size}') !important;
|
|
130
132
|
}
|
|
131
133
|
}
|
|
132
134
|
}
|
|
@@ -136,13 +138,13 @@ $_line-heights: ('broad', 'normal', 'condensed');
|
|
|
136
138
|
@if list.index($utils-to-render, 'weight') {
|
|
137
139
|
@each $weight in $_weights {
|
|
138
140
|
.weight-#{$weight} {
|
|
139
|
-
font-weight:
|
|
141
|
+
font-weight: pintig.primitive-token-get('weight.#{$weight}');
|
|
140
142
|
}
|
|
141
143
|
|
|
142
144
|
@each $breakpoint in $_breakpoints {
|
|
143
145
|
.\@#{$breakpoint}\:weight-#{$weight} {
|
|
144
|
-
@include
|
|
145
|
-
font-weight:
|
|
146
|
+
@include pintig.breakpoint-create($breakpoint) {
|
|
147
|
+
font-weight: pintig.primitive-token-get('weight.#{$weight}') !important;
|
|
146
148
|
}
|
|
147
149
|
}
|
|
148
150
|
}
|
|
@@ -152,13 +154,29 @@ $_line-heights: ('broad', 'normal', 'condensed');
|
|
|
152
154
|
@if list.index($utils-to-render, 'line-height') {
|
|
153
155
|
@each $line-height in $_line-heights {
|
|
154
156
|
.line-height-#{$line-height} {
|
|
155
|
-
line-height:
|
|
157
|
+
line-height: pintig.primitive-token-get('line-height.#{$line-height}');
|
|
156
158
|
}
|
|
157
159
|
|
|
158
160
|
@each $breakpoint in $_breakpoints {
|
|
159
161
|
.\@#{$breakpoint}\:line-height-#{$line-height} {
|
|
160
|
-
@include
|
|
161
|
-
line-height:
|
|
162
|
+
@include pintig.breakpoint-create($breakpoint) {
|
|
163
|
+
line-height: pintig.primitive-token-get('line-height.#{$line-height}') !important;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
@if list.index($utils-to-render, 'alignment') {
|
|
171
|
+
@each $alignment in $_alignments {
|
|
172
|
+
.align-#{$alignment} {
|
|
173
|
+
text-align: unquote($alignment);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
@each $breakpoint in $_breakpoints {
|
|
177
|
+
.\@#{$breakpoint}\:align-#{$alignment} {
|
|
178
|
+
@include pintig.breakpoint-create($breakpoint) {
|
|
179
|
+
text-align: unquote($alignment) !important;
|
|
162
180
|
}
|
|
163
181
|
}
|
|
164
182
|
}
|
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
// SOFTWARE.
|
|
21
21
|
//---------------------------------------------------
|
|
22
22
|
|
|
23
|
-
@use '
|
|
23
|
+
@use '@matteusan/pintig';
|
|
24
24
|
@use 'sass:list';
|
|
25
25
|
|
|
26
26
|
@function handle-include-exclude($default-utils, $include: (), $exclude: ()) {
|
|
27
27
|
$resolved-utils: $default-utils;
|
|
28
28
|
|
|
29
|
-
@if not
|
|
29
|
+
@if not pintig.is-empty($include) and not pintig.is-empty($exclude) {
|
|
30
30
|
@error 'Cannot use $include and $exclude at the same time. Please only use one or the other.';
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
@if not
|
|
33
|
+
@if not pintig.is-empty($include) {
|
|
34
34
|
@each $included in $include {
|
|
35
35
|
@if not list.index($default-utils, $included) {
|
|
36
36
|
@error 'Invalid utility key: #{$included}. Expecting a valid util key: #{$default-utils}.';
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
@return $resolved-utils;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
@if not
|
|
43
|
+
@if not pintig.is-empty($exclude) {
|
|
44
44
|
@each $excluded in $exclude {
|
|
45
45
|
@if not list.index($default-utils, $excluded) {
|
|
46
46
|
@error 'Invalid utility key: #{$excluded}. Expecting a valid util key: #{$default-utils}.';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@matteusan/himig",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.1",
|
|
4
4
|
"description": "Matteu's personal design system for building user interfaces.",
|
|
5
5
|
"repository": "https://github.com/MatteuSan/himig",
|
|
6
6
|
"author": "Matteu <matteugt@gmail.com>",
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"access": "public"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
+
"@matteusan/pintig": "1.4.0",
|
|
12
13
|
"@matteusan/sentro": "0.1.25"
|
|
13
14
|
}
|
|
14
15
|
}
|
package/ms-core/README.md
DELETED
package/ms-core/_index.scss
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
//---------------------------------------------------
|
|
2
|
-
// Copyright (c) 2024 MatteuSan
|
|
3
|
-
//
|
|
4
|
-
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
|
-
// of this software and associated documentation files (the "Software"), to deal
|
|
6
|
-
// in the Software without restriction, including without limitation the rights
|
|
7
|
-
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
8
|
-
// copies of the Software, and to permit persons to whom the Software is
|
|
9
|
-
// furnished to do so, subject to the following conditions:
|
|
10
|
-
//
|
|
11
|
-
// The above copyright notice and this permission notice shall be included in all
|
|
12
|
-
// copies or substantial portions of the Software.
|
|
13
|
-
//
|
|
14
|
-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
-
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
-
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
|
-
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
|
-
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
-
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
20
|
-
// SOFTWARE.
|
|
21
|
-
//---------------------------------------------------
|
|
22
|
-
|
|
23
|
-
$module-mode: false !default;
|
|
24
|
-
$test-mode: $module-mode !default;
|
|
25
|
-
$vue-mode: $test-mode !default;
|
|
26
|
-
$validation: if($vue-mode == true, false, true);
|
|
27
|
-
$expressive-inks: false !default;
|
|
28
|
-
|
|
29
|
-
/// @type map
|
|
30
|
-
/// @description helper variable for inheriting values for all color properties
|
|
31
|
-
$color-inherit-template: (
|
|
32
|
-
fill: inherit,
|
|
33
|
-
ink: inherit,
|
|
34
|
-
border: inherit
|
|
35
|
-
);
|
|
36
|
-
|
|
37
|
-
/// @type map
|
|
38
|
-
/// @description helper variable for inheriting values for all struct properties
|
|
39
|
-
$struct-inherit-template: (
|
|
40
|
-
width: inherit,
|
|
41
|
-
height: inherit,
|
|
42
|
-
radius: inherit,
|
|
43
|
-
padding: inherit,
|
|
44
|
-
margin: inherit,
|
|
45
|
-
gap: inherit,
|
|
46
|
-
border-width: inherit,
|
|
47
|
-
border-style: inherit,
|
|
48
|
-
shadow: inherit
|
|
49
|
-
);
|
|
50
|
-
|
|
51
|
-
/// @type map
|
|
52
|
-
/// @description helper variable for inheriting values for all typography properties
|
|
53
|
-
$type-inherit-template: (
|
|
54
|
-
family: inherit,
|
|
55
|
-
size: inherit,
|
|
56
|
-
weight: inherit,
|
|
57
|
-
line-height: inherit
|
|
58
|
-
);
|
|
59
|
-
|
|
60
|
-
@use 'node_modules/@matteusan/sentro' with (
|
|
61
|
-
$prefix: 'ms',
|
|
62
|
-
$context: 'theme',
|
|
63
|
-
$token-validation: $validation,
|
|
64
|
-
$key-validation: $validation,
|
|
65
|
-
$breakpoint-validation: $validation,
|
|
66
|
-
);
|
|
67
|
-
|
|
68
|
-
@forward 'tokens';
|
|
69
|
-
@forward 'theme' with ($expressive-inks: $expressive-inks);
|
|
70
|
-
@forward 'tools';
|
|
71
|
-
@forward 'breakpoint' as breakpoint-*;
|
|
72
|
-
|
|
73
|
-
@forward 'color' as color-*;
|
|
74
|
-
@forward 'struct' as struct-*;
|
|
75
|
-
@forward 'sprite' as sprite-*;
|
|
76
|
-
@forward 'typography' as typography-*;
|
|
77
|
-
@forward 'component' as component-*;
|