@pinuts/bsr-uikit-relaunch 0.2.7 → 0.2.8

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.
@@ -1,4 +1,4 @@
1
- @use 'sass:math';
1
+ @use "sass:math";
2
2
  @import "./variables/_variables.scss";
3
3
 
4
4
  /* GENERAL INPUT STYLES */
@@ -9,7 +9,7 @@
9
9
  padding: 0 $base-gap * 4 0 $base-gap * 0.5;
10
10
 
11
11
  .label {
12
- font-family: "TradeGothicNext";
12
+ font-family: "TradeGothicNext", "TradeGothicNextLT", sans-serif;
13
13
  font-size: $input-label-font-size;
14
14
  font-weight: $fontweight-bold;
15
15
  line-height: $input-label-line-height;
@@ -21,7 +21,8 @@
21
21
  margin-inline-start: $base-gap;
22
22
  }
23
23
 
24
- &.labelFocused, .required {
24
+ &.labelFocused,
25
+ .required {
25
26
  color: $bsr-black-90;
26
27
  }
27
28
  }
@@ -31,7 +32,8 @@
31
32
  gap: $base-gap;
32
33
  position: relative;
33
34
 
34
- .info, .success {
35
+ .info,
36
+ .success {
35
37
  display: flex;
36
38
  height: 18px;
37
39
  position: relative;
@@ -104,7 +106,7 @@
104
106
  .input,
105
107
  .select,
106
108
  .textarea {
107
- font-family: "TradeGothicNext";
109
+ font-family: "TradeGothicNext", "TradeGothicNextLT", sans-serif;
108
110
  font-size: $inputField-font-size;
109
111
  font-weight: $fontweight-normal;
110
112
  line-height: $inputField-line-height;
@@ -118,22 +120,23 @@
118
120
  align-items: flex-start;
119
121
  align-self: stretch;
120
122
 
121
- &:focus, &:focus-visible, &:active {
123
+ &:focus,
124
+ &:focus-visible,
125
+ &:active {
122
126
  color: $bsr-black-90;
123
127
  border-color: currentColor;
124
128
  outline: $bsr-border-width-m solid currentColor;
125
129
  }
126
130
  }
127
131
 
128
- /* SELECT INPUT */
132
+ /* SELECT INPUT */
129
133
  .select {
130
- appearance:none;
134
+ appearance: none;
131
135
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='6' viewBox='0 0 12 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.5 0.75L6 5.25L10.5 0.75' stroke='%231E1E1E' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
132
136
  background-position-x: calc(100% - #{$base-gap * 4});
133
137
  background-position-y: center;
134
138
  background-repeat: no-repeat;
135
139
 
136
-
137
140
  &:focus-visible {
138
141
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='6' viewBox='0 0 12 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.5 5.25L6 0.75L10.5 5.25' stroke='%231E1E1E' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
139
142
  }
@@ -145,7 +148,7 @@
145
148
  flex-direction: column;
146
149
  gap: ($base-gap * 2);
147
150
  margin-bottom: $base-gap * 5;
148
- font-family: "TradeGothicNext";
151
+ font-family: "TradeGothicNext", "TradeGothicNextLT", sans-serif;
149
152
 
150
153
  ul {
151
154
  list-style-type: none;
@@ -180,13 +183,14 @@
180
183
  }
181
184
 
182
185
  .helperText {
183
- color: $bsr-black-60;
184
- font-size: $input-label-font-size;
185
- line-height: $input-label-line-height;
186
+ color: $bsr-black-60;
187
+ font-size: $input-label-font-size;
188
+ line-height: $input-label-line-height;
186
189
  }
187
190
 
188
191
  [aria-disabled="true"] {
189
- input, label {
192
+ input,
193
+ label {
190
194
  color: $bsr-black-40;
191
195
  border-color: $bsr-black-40;
192
196
  pointer-events: none;
@@ -248,7 +252,10 @@ input[type="radio"] {
248
252
  outline: 3.4px solid white;
249
253
  outline-offset: $bsr-border-width-m * -1 - 3px;
250
254
 
251
- &:hover, &:active, &:focus-visible, &:focus {
255
+ &:hover,
256
+ &:active,
257
+ &:focus-visible,
258
+ &:focus {
252
259
  cursor: pointer;
253
260
  background-color: $bsr-grey-100;
254
261
  border-width: 2px;
@@ -279,7 +286,7 @@ button {
279
286
  gap: $base-gap * 3;
280
287
  justify-content: center;
281
288
  min-height: $base-gap * 10;
282
- p {
289
+ p {
283
290
  margin: 0;
284
291
  }
285
292
 
@@ -291,7 +298,8 @@ button {
291
298
  justify-content: center;
292
299
  min-height: $base-gap * 10;
293
300
 
294
- &:hover, &:focus-visible {
301
+ &:hover,
302
+ &:focus-visible {
295
303
  background-color: $bsr-brick-100 !important;
296
304
  color: $bsr-white-100 !important;
297
305
  border-color: $bsr-brick-100 !important;
@@ -307,7 +315,6 @@ button {
307
315
  justify-content: center;
308
316
  min-height: $base-gap * 10;
309
317
  }
310
-
311
318
  }
312
319
 
313
320
  button[type="submit"] {
@@ -317,14 +324,16 @@ button[type="submit"] {
317
324
  color: $bsr-white-100;
318
325
  border: $bsr-border-width-m solid $bsr-brick-100;
319
326
 
320
- &:hover, &:focus-visible {
321
- background-color: $bsr-white-100;
322
- color: $bsr-brick-100;
323
- text-decoration-color: currentColor;
327
+ &:hover,
328
+ &:focus-visible {
329
+ background-color: $bsr-white-100;
330
+ color: $bsr-brick-100;
331
+ text-decoration-color: currentColor;
324
332
  }
325
333
 
326
- &:focus, &:focus-visible {
327
- outline: none;
334
+ &:focus,
335
+ &:focus-visible {
336
+ outline: none;
328
337
  }
329
338
  }
330
339
 
@@ -334,37 +343,38 @@ form input[type="checkbox"]:read-only {
334
343
  border-width: 2px;
335
344
  }
336
345
 
337
- form input[type="checkbox"], form input[type="checkbox"] {
346
+ form input[type="checkbox"],
347
+ form input[type="checkbox"] {
338
348
  height: 0;
339
349
  width: 0;
340
350
  position: absolute;
341
351
  opacity: 0;
342
352
  }
343
353
 
344
- form input[type="checkbox"]+label {
354
+ form input[type="checkbox"] + label {
345
355
  padding-left: 0;
346
356
  }
347
357
 
348
- form input[type="checkbox"]:checked+label {
358
+ form input[type="checkbox"]:checked + label {
349
359
  color: #1e1e1e;
350
360
  }
351
361
 
352
- form input[type="checkbox"]:checked+label:before {
362
+ form input[type="checkbox"]:checked + label:before {
353
363
  border-color: #1e1e1e;
354
364
  background-color: #fff;
355
365
  background-image: url("data:image/svg+xml,%3Csvg width=%2716%27 height=%2712%27 viewBox=%270 0 16 12%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M5.75 11.6251C5.57 11.6251 5.38625 11.5613 5.24375 11.4263L0.743749 7.3013C0.439999 7.02005 0.417499 6.54755 0.698749 6.24005C0.979999 5.9363 1.4525 5.9138 1.76 6.19505L5.70875 9.8138L14.2025 0.611304C14.4837 0.307554 14.9562 0.288804 15.2637 0.570054C15.5675 0.851304 15.5862 1.3238 15.305 1.6313L6.305 11.3813C6.15875 11.5426 5.95625 11.6213 5.75375 11.6213L5.75 11.6251Z%27 fill=%27%23D74116%27 stroke=%27%23D74116%27 stroke-width=%270.4%27/%3E%3C/svg%3E%0A");
356
366
  }
357
367
 
358
- form input[type="checkbox"]+label:hover:before{
368
+ form input[type="checkbox"] + label:hover:before {
359
369
  background-image: url("data:image/svg+xml,%3Csvg width=%2716%27 height=%2712%27 viewBox=%270 0 16 12%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M5.75001 11.6251C5.57001 11.6251 5.38626 11.5613 5.24376 11.4263L0.743764 7.3013C0.440014 7.02005 0.417514 6.54755 0.698764 6.24005C0.980014 5.9363 1.45251 5.9138 1.76001 6.19505L5.70876 9.8138L14.2025 0.611304C14.4838 0.307554 14.9563 0.288804 15.2638 0.570054C15.5675 0.851304 15.5863 1.3238 15.305 1.6313L6.30501 11.3813C6.15876 11.5426 5.95626 11.6213 5.75376 11.6213L5.75001 11.6251Z%27 fill=%27%23808080%27 stroke=%27%23808080%27 stroke-width=%270.4%27/%3E%3C/svg%3E%0A");
360
370
  border-width: 2px;
361
371
  }
362
372
 
363
- form input[type="checkbox"]:checked+label:hover:before {
373
+ form input[type="checkbox"]:checked + label:hover:before {
364
374
  background-image: url("data:image/svg+xml,%3Csvg width=%2716%27 height=%2712%27 viewBox=%270 0 16 12%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M5.75 11.6251C5.57 11.6251 5.38625 11.5613 5.24375 11.4263L0.743749 7.3013C0.439999 7.02005 0.417499 6.54755 0.698749 6.24005C0.979999 5.9363 1.4525 5.9138 1.76 6.19505L5.70875 9.8138L14.2025 0.611304C14.4837 0.307554 14.9562 0.288804 15.2637 0.570054C15.5675 0.851304 15.5862 1.3238 15.305 1.6313L6.305 11.3813C6.15875 11.5426 5.95625 11.6213 5.75375 11.6213L5.75 11.6251Z%27 fill=%27%23D74116%27 stroke=%27%23D74116%27 stroke-width=%270.4%27/%3E%3C/svg%3E%0A");
365
375
  }
366
376
 
367
- form input[type="checkbox"]+label:before {
377
+ form input[type="checkbox"] + label:before {
368
378
  content: "";
369
379
  position: relative;
370
380
  height: 24px;
@@ -386,7 +396,7 @@ form input[type="checkbox"]+label:before {
386
396
 
387
397
  /* TAG */
388
398
  .tag {
389
- position:relative;
399
+ position: relative;
390
400
  color: $bsr-grey-100;
391
401
  display: inline-flex;
392
402
  align-items: center;
@@ -413,12 +423,13 @@ form input[type="checkbox"]+label:before {
413
423
  background-color: transparent;
414
424
  color: $text-secondary;
415
425
  }
416
-
426
+
417
427
  &:hover {
418
428
  cursor: pointer;
419
429
  }
420
430
 
421
- &:focus, &:focus-within {
431
+ &:focus,
432
+ &:focus-within {
422
433
  box-shadow: rgba($bsr-brick-100, 0.5) 0px 0px 0px 4px;
423
434
  &:is(button):not(.disabled) {
424
435
  outline: $base-gap solid $bsr-brick-100;
@@ -451,7 +462,8 @@ form input[type="checkbox"]+label:before {
451
462
  }
452
463
  }
453
464
 
454
- &:focus, &:focus-visible {
465
+ &:focus,
466
+ &:focus-visible {
455
467
  outline: none;
456
468
  }
457
469
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pinuts/bsr-uikit-relaunch",
3
- "version": "0.2.7",
3
+ "version": "0.2.8",
4
4
  "private": false,
5
5
  "description": "BSR UI-KIT Relaunch",
6
6
  "main": "dist/index.js",