mediacube-ui 0.1.113 → 0.1.116

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/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.1.116](https://github.com/MediaCubeCo/mcui/compare/v0.1.115...v0.1.116) (2023-08-17)
6
+
7
+ ### [0.1.115](https://github.com/MediaCubeCo/mcui/compare/v0.1.114...v0.1.115) (2023-08-16)
8
+
9
+ ### [0.1.114](https://github.com/MediaCubeCo/mcui/compare/v0.1.113...v0.1.114) (2023-08-16)
10
+
5
11
  ### [0.1.113](https://github.com/MediaCubeCo/mcui/compare/v0.1.112...v0.1.113) (2023-08-16)
6
12
 
7
13
  ### [0.1.112](https://github.com/MediaCubeCo/mcui/compare/v0.1.111...v0.1.112) (2023-08-16)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mediacube-ui",
3
- "version": "0.1.113",
3
+ "version": "0.1.116",
4
4
  "description": "Design system for Mediacube services",
5
5
  "author": "Mediacube",
6
6
  "private": false,
@@ -12,6 +12,10 @@
12
12
  <rect width="20" height="15" fill="white" transform="translate(2 4)"/>
13
13
  </clipPath>
14
14
 
15
+ <clipPath id="clip0_10761_44560">
16
+ <rect width="20" height="15" fill="white" transform="translate(2 4)"/>
17
+ </clipPath>
18
+
15
19
  <clipPath id="clip0_10494_49603">
16
20
  <rect width="24" height="24" fill="white"/>
17
21
  </clipPath>
@@ -1458,23 +1462,17 @@
1458
1462
  <path fill-rule="evenodd" clip-rule="evenodd" d="M2 4H22V6.57812H2V4ZM2 16.5H22V19H2V16.5Z" fill="#A51931"/>
1459
1463
  </g>
1460
1464
 
1461
- </symbol><symbol id="flag_vi">
1465
+ </symbol><symbol id="flag_vi" viewBox="0 0 24 24">
1466
+ <g clip-path="url(#clip0_10761_44560)">
1467
+ <mask id="mask0_10761_44560" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="2" y="4" width="20" height="15">
1468
+ <path d="M2.00098 4H21.999V19H2.00098V4Z" fill="white"/>
1469
+ </mask>
1470
+ <g mask="url(#mask0_10761_44560)">
1471
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M0.75 4H23.25V19H0.75V4Z" fill="#EC0015"/>
1472
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M14.7422 15.1621L12.1172 13.208L9.50977 15.1797L10.4766 11.9688L7.86914 9.98535L11.0947 9.95605L12.0967 6.75098L13.1133 9.94727L16.3389 9.9502L13.7461 11.9541L14.7393 15.165L14.7422 15.1621Z" fill="#FFFF00"/>
1473
+ </g>
1474
+ </g>
1462
1475
 
1463
- <g>
1464
- <g stroke="null" id="svg_1">
1465
- <path stroke="null" id="svg_2" fill="#DA251D" d="m-3.04441,2.56249l29.90382,0c1.00957,0.00486 1.8306,0.66519 1.8306,1.4712l0,15.69762c0,0.806 -0.82103,1.46634 -1.8306,1.4712l-29.90382,0c-1.00957,0 -1.8306,-0.66034 -1.8306,-1.46634l0,-15.70247c0,-0.806 0.82103,-1.46634 1.8306,-1.4712l0,0z" class="st0"/>
1466
- <path stroke="null" id="svg_3" fill="#FFFF00" d="m11.91054,8.08462l-1.44137,3.72551l2.9618,0.80634l-1.52043,-4.53186l0,0zm0,0l0,0l0,0l0,0z" class="st1"/>
1467
- <path stroke="null" id="svg_4" fill="#FFFF00" d="m11.91054,8.08462l1.44137,3.72551l-2.9618,0.80634l1.52043,-4.53186l0,0zm0,0l0,0l0,0l0,0z" class="st1"/>
1468
- <path stroke="null" id="svg_5" fill="#FFFF00" d="m16.3502,10.79455l-4.67076,0l0,2.61296l4.67076,-2.61296l0,0zm0,0l0,0l0,0l0,0z" class="st1"/>
1469
- <path stroke="null" id="svg_6" fill="#FFFF00" d="m16.3502,10.79455l-3.77675,2.30165l-1.8306,-2.11283l5.60735,-0.18883l0,0zm0,0l0,0l0,0l0,0z" class="st1"/>
1470
- <path stroke="null" id="svg_7" fill="#FFFF00" d="m14.6534,15.1733l-1.44137,-3.72551l-2.9618,0.80634l4.40317,2.91917l0,0zm0,0l0,0l0,0l0,0z" class="st1"/>
1471
- <path stroke="null" id="svg_8" fill="#FFFF00" d="m14.6534,15.1733l-3.77675,-2.30165l1.8306,-2.11283l1.94615,4.41448l0,0zm0,0l0,0l0,0l0,0z" class="st1"/>
1472
- <path stroke="null" id="svg_9" fill="#FFFF00" d="m7.47089,10.79455l4.67076,0l0,2.61296l-4.67076,-2.61296l0,0zm0,0l0,0l0,0l0,0z" class="st1"/>
1473
- <path stroke="null" id="svg_10" fill="#FFFF00" d="m7.47089,10.79455l3.77675,2.30165l1.8306,-2.11283l-5.60735,-0.18883l0,0zm0,0l0,0l0,0l0,0z" class="st1"/>
1474
- <path stroke="null" id="svg_11" fill="#FFFF00" d="m9.16769,15.1733l1.44137,-3.72551l2.9618,0.80634l-4.40317,2.91917l0,0zm0,0l0,0l0,0l0,0z" class="st1"/>
1475
- <path stroke="null" id="svg_12" fill="#FFFF00" d="m9.16769,15.1733l3.77675,-2.30165l-1.8306,-2.11283l-1.94615,4.41448l0,0zm0,0l0,0l0,0l0,0z" class="st1"/>
1476
- </g>
1477
- </g>
1478
1476
  </symbol><symbol id="fly_dollar" viewBox="0 0 24 24">
1479
1477
  <path d="M23.7305 11.3262C22.0073 8.92112 18.4447 12.4607 11.9428 13.1801C9.53552 13.4461 7.36646 15.3723 4.57003 15.1887C3.42343 15.1133 1.82233 11.9523 0.623675 12.4562C0.00699442 12.7158 -0.275985 13.5823 0.358049 14.2333L7.39782 22.282C7.39782 22.282 7.75555 22.6772 8.96088 22.4035C9.25788 22.4872 13.7228 20.7728 16.3043 17.3406C16.9223 16.5189 17.6592 15.8346 18.422 15.2629C20.8987 13.5082 23.591 12.8968 23.591 12.8968C23.9354 12.6244 24.0162 12.3347 23.9975 12.0834C24.0202 11.6639 23.7305 11.3262 23.7305 11.3262Z" fill="#218321"/>
1480
1478
  <path d="M7.53588 6.97545C4.94703 10.3899 0.413302 12.0074 0.413302 12.0074C-0.432538 12.6883 0.281909 13.4909 0.281909 13.4909L7.42502 21.5288C7.42502 21.5288 7.78224 21.9301 8.9853 21.6517C8.9853 21.6517 13.519 20.0375 16.1072 16.623C18.7754 13.1045 23.587 11.9937 23.587 11.9937C24.4322 11.3128 23.7184 10.5089 23.7184 10.5089L16.5753 2.47229C16.5753 2.47229 16.2181 2.07036 15.015 2.34742C15.015 2.34742 10.2041 3.45565 7.53588 6.97545Z" fill="#A7D28B"/>
@@ -1,9 +1,9 @@
1
1
  <template>
2
2
  <div class="mc-field-select" :class="classes" :style="styles" ref="field">
3
- <div :for="name" class="mc-field-select__header" :class="{ required }">
3
+ <div :for="name" class="mc-field-select__header">
4
4
  <!-- @slot Слот заголовка -->
5
5
  <slot name="header">
6
- <mc-title v-if="title" :ellipsis="false" max-width="100%" weight="medium">{{ title }}</mc-title>
6
+ <mc-title v-if="title" :ellipsis="false" max-width="100%" weight="medium">{{ computedTitle }}</mc-title>
7
7
  </slot>
8
8
  </div>
9
9
  <div class="mc-field-select__main">
@@ -335,6 +335,9 @@ export default {
335
335
  'mc-field-select--max-height': this.maxHeight,
336
336
  }
337
337
  },
338
+ computedTitle() {
339
+ return `${this.title}${this.required ? ' *' : ''}`
340
+ },
338
341
  styles() {
339
342
  return {
340
343
  '--max-height': this.maxHeight,
@@ -449,17 +452,6 @@ $text-white: scale-color($color-white, $alpha: -10%);
449
452
  &:empty {
450
453
  display: none;
451
454
  }
452
- &.required {
453
- * {
454
- display: inline;
455
- }
456
- & > * {
457
- &::after {
458
- content: '*';
459
- position: absolute;
460
- }
461
- }
462
- }
463
455
  }
464
456
 
465
457
  &__footer {
@@ -532,16 +524,11 @@ $text-white: scale-color($color-white, $alpha: -10%);
532
524
  }
533
525
 
534
526
  &__select {
535
- overflow: hidden;
536
- height: $size-300;
537
- width: $size-300;
538
- top: $space-100;
539
- right: $space-100;
527
+ height: $size-500 - 2px;
540
528
  &::before {
541
529
  direction: ltr;
542
530
  width: 0;
543
531
  height: 0;
544
- top: 80%;
545
532
  border-left: 5px solid transparent;
546
533
  border-right: 5px solid transparent;
547
534
  border-bottom: 5px solid transparent;
@@ -872,11 +859,6 @@ $text-white: scale-color($color-white, $alpha: -10%);
872
859
  }
873
860
  html[direction='rtl'] {
874
861
  .mc-field-select {
875
- &__header {
876
- &.required {
877
- text-align: right;
878
- }
879
- }
880
862
  &__single-label {
881
863
  @include child-indent-right(0);
882
864
  @include child-indent-left-rtl($space-50);
@@ -1,9 +1,9 @@
1
1
  <template>
2
2
  <div ref="field" class="mc-field-text" :class="classes">
3
- <label :for="name" class="mc-field-text__header" :class="{ required }">
3
+ <label :for="name" class="mc-field-text__header">
4
4
  <!-- @slot Слот заголовка -->
5
5
  <slot name="header">
6
- <mc-title v-if="title" :ellipsis="false" max-width="100%" weight="medium">{{ title }}</mc-title>
6
+ <mc-title v-if="title" :ellipsis="false" max-width="100%" weight="medium">{{ computedTitle }}</mc-title>
7
7
  </slot>
8
8
  </label>
9
9
  <div class="mc-field-text__inner">
@@ -379,7 +379,9 @@ export default {
379
379
  'mc-field-text--rtl': ['ar'].includes(this.locale),
380
380
  }
381
381
  },
382
-
382
+ computedTitle() {
383
+ return `${this.title}${this.required ? ' *' : ''}`
384
+ },
383
385
  isMaskVisible() {
384
386
  return this.mask || this.maskOptions || this.prettyType === 'date'
385
387
  },
@@ -696,17 +698,6 @@ export default {
696
698
  &:empty {
697
699
  display: none;
698
700
  }
699
- &.required {
700
- * {
701
- display: inline;
702
- }
703
- & > * {
704
- &::after {
705
- content: '*';
706
- position: absolute;
707
- }
708
- }
709
- }
710
701
  }
711
702
 
712
703
  &__inner {
@@ -873,12 +864,6 @@ export default {
873
864
  }
874
865
  html[direction='rtl'] {
875
866
  .mc-field-text {
876
- &__header {
877
- &.required {
878
- text-align: right;
879
- }
880
- }
881
-
882
867
  &__char-counter {
883
868
  right: unset;
884
869
  left: $space-150;