prlg-ui 1.8.315 → 1.8.317

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.
@@ -1096,7 +1096,7 @@ const rl = { class: "sleed-deal" }, il = ["onClick"], ul = { class: "sleed-deal-
1096
1096
  w.error && w.errorText ? (d(), m("small", na, H(w.errorText), 1)) : P("", !0)
1097
1097
  ], 2));
1098
1098
  }
1099
- }), ra = /* @__PURE__ */ re(sa, [["__scopeId", "data-v-5f002cbf"]]), ia = {
1099
+ }), ra = /* @__PURE__ */ re(sa, [["__scopeId", "data-v-a265108f"]]), ia = {
1100
1100
  key: 0,
1101
1101
  class: "paginator"
1102
1102
  }, ua = ["disabled"], da = { class: "paginator__pages" }, ca = ["onClick"], va = ["disabled"], fa = {
@@ -2113,7 +2113,7 @@ const rl = { class: "sleed-deal" }, il = ["onClick"], ul = { class: "sleed-deal-
2113
2113
  C.error && C.errorText ? (d(), m("div", to, H(C.errorText), 1)) : P("", !0)
2114
2114
  ], 2));
2115
2115
  }
2116
- }), qs = /* @__PURE__ */ re(lo, [["__scopeId", "data-v-20620bb3"]]), ao = ["for"], oo = { key: 0 }, no = { class: "input__wrapper" }, so = ["id", "placeholder", "name", "disabled", "type", "required", "readonly", "maxlength"], ro = { class: "input__actions" }, io = {
2116
+ }), qs = /* @__PURE__ */ re(lo, [["__scopeId", "data-v-2043281f"]]), ao = ["for"], oo = { key: 0 }, no = { class: "input__wrapper" }, so = ["id", "placeholder", "name", "disabled", "type", "required", "readonly", "maxlength"], ro = { class: "input__actions" }, io = {
2117
2117
  key: 1,
2118
2118
  class: "input__count-char"
2119
2119
  }, uo = {
@@ -5220,7 +5220,7 @@ const lr = {
5220
5220
  }, 8, ["show"])
5221
5221
  ], 2));
5222
5222
  }
5223
- }), ct = /* @__PURE__ */ re(vs, [["__scopeId", "data-v-afa908ce"]]), fs = { class: "shedule-time-pick" }, ms = { class: "shedule-time-pick__inputs" }, ps = {
5223
+ }), ct = /* @__PURE__ */ re(vs, [["__scopeId", "data-v-95a9b2af"]]), fs = { class: "shedule-time-pick" }, ms = { class: "shedule-time-pick__inputs" }, ps = {
5224
5224
  key: 0,
5225
5225
  class: "shedule-time-pick__error"
5226
5226
  }, gs = /* @__PURE__ */ K({
@@ -5494,7 +5494,7 @@ const lr = {
5494
5494
  c.error && c.errorText ? (d(), m("div", Vs, H(c.errorText), 1)) : P("", !0)
5495
5495
  ], 2));
5496
5496
  }
5497
- }), Vr = /* @__PURE__ */ re(Is, [["__scopeId", "data-v-0a294d1b"]]);
5497
+ }), Vr = /* @__PURE__ */ re(Is, [["__scopeId", "data-v-babac8de"]]);
5498
5498
  export {
5499
5499
  mr as Accordion,
5500
5500
  pr as AccordionContent,
@@ -1,3 +1,154 @@
1
+ // Classes animation vue (https://vuejs.org/guide/built-ins/transition#css-based-transitions)
2
+ // 1. v-enter-from
3
+ // 2. v-enter-active
4
+ // 3. v-enter-to
5
+ // 4. v-leave-from
6
+ // 5. v-leave-active
7
+ // 6. v-leave-to
8
+
9
+ //FADE
10
+ .fade-enter-from,
11
+ .fade-leave-to {
12
+ opacity: 0;
13
+ }
14
+
15
+ .fade-enter-active,
16
+ .fade-leave-active {
17
+ transition: opacity var(--animation-duration) ease-in-out;
18
+ }
19
+
20
+ //FADE-IN
21
+ @keyframes fadeIn {
22
+ from {
23
+ opacity: 0;
24
+ }
25
+ to {
26
+ opacity: 1;
27
+ }
28
+ }
29
+
30
+ .fadeIn-enter-from,
31
+ .fadeIn-leave-to {
32
+ opacity: 0;
33
+ }
34
+
35
+ .fadeIn-enter-to,
36
+ .fadeIn-leave-from {
37
+ opacity: 1;
38
+ }
39
+
40
+ .fadeIn-enter-active,
41
+ .fadeIn-leave-active {
42
+ transition: opacity var(--animation-duration) ease-in-out;
43
+ }
44
+
45
+ //FADE-OUT
46
+ @keyframes fadeOut {
47
+ from {
48
+ opacity: 1;
49
+ }
50
+ to {
51
+ opacity: 0;
52
+ }
53
+ }
54
+
55
+ .fadeOut-enter-from,
56
+ .fadeOut-leave-to {
57
+ opacity: 1;
58
+ }
59
+
60
+ .fadeOut-enter-to,
61
+ .fadeOut-leave-from {
62
+ opacity: 0;
63
+ }
64
+
65
+ .fadeOut-enter-active,
66
+ .fadeOut-leave-active {
67
+ transition: opacity var(--animation-duration) ease-in-out;
68
+ }
69
+
70
+ //SLIDE-RIGHT-IN
71
+ @keyframes slideRightIn {
72
+ from {
73
+ transform: translateX(200%);
74
+ }
75
+
76
+ to {
77
+ transform: translateX(0%);
78
+ }
79
+ }
80
+
81
+ @keyframes slideRightOut {
82
+ from {
83
+ transform: translateX(0%);
84
+ }
85
+
86
+ to {
87
+ transform: translateX(200%);
88
+ }
89
+ }
90
+
91
+ @keyframes slideTopIn {
92
+ from {
93
+ transform: translateY(-200%);
94
+ }
95
+
96
+ to {
97
+ transform: translateY(0%);
98
+ }
99
+ }
100
+
101
+ @keyframes slideTopOut {
102
+ from {
103
+ transform: translateY(0%);
104
+ }
105
+
106
+ to {
107
+ transform: translateY(-200%);
108
+ }
109
+ }
110
+
111
+ @keyframes slideLeftIn {
112
+ from {
113
+ transform: translateX(-200%);
114
+ }
115
+
116
+ to {
117
+ transform: translateX(0%);
118
+ }
119
+ }
120
+
121
+ @keyframes slideLeftOut {
122
+ from {
123
+ transform: translateX(0%);
124
+ }
125
+
126
+ to {
127
+ transform: translateX(-200%);
128
+ }
129
+ }
130
+
131
+ @keyframes slideBottomIn {
132
+ from {
133
+ transform: translateY(200%);
134
+ }
135
+
136
+ to {
137
+ transform: translateY(0%);
138
+ }
139
+ }
140
+
141
+ @keyframes slideBottomOut {
142
+ from {
143
+ transform: translateY(0%);
144
+ }
145
+
146
+ to {
147
+ transform: translateY(200%);
148
+ }
149
+ }
150
+
151
+ //Удалить после перехода на reka-ui
1
152
  .slide-fade-smooth-enter-active,
2
153
  .slide-fade-smooth-leave-active {
3
154
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
@@ -27,4 +178,4 @@
27
178
  .slide-fade-vertical-leave-to {
28
179
  transform: translateY(20px);
29
180
  opacity: 0;
30
- }
181
+ }
@@ -1,7 +1,6 @@
1
1
  //GLOBAL
2
2
  :root {
3
3
  --theme-color-m: #e3e9ed;
4
- --animate-duration: 0.3s;
5
4
  }
6
5
 
7
6
  //NEUTRAL
@@ -16,7 +15,6 @@
16
15
  --theme-neutral-400: #bfbfbf;
17
16
  --theme-neutral-400_40: #bfbfbf66;
18
17
  --theme-neutral-500: #a1a1a1; //use btn icon
19
- --theme-neutral-550: #7b7b7b;
20
18
  --theme-neutral-600: #525252;
21
19
  --theme-neutral-700: #3d3d3d;
22
20
  --theme-neutral-800: #292929;
@@ -40,7 +38,7 @@
40
38
  --theme-neutral-icon-primary: #90a4ae;
41
39
  --theme-neutral-icon-secondary: var(--theme-neutral-400);
42
40
  --theme-neutral-icon-caption: var(--theme-neutral-500);
43
- --theme-neutral-icon-disabled: #b5b5b5;
41
+ --theme-neutral-icon-disabled: var(--theme-neutral-300);
44
42
  --theme-neutral-icon-negative: var(--theme-neutral-0);
45
43
 
46
44
  --theme-neutral-border-default: var(--theme-neutral-300);
@@ -105,7 +103,6 @@
105
103
 
106
104
  //WARN
107
105
  :root {
108
- --theme-warn-50: #faf4ee; //use fill
109
106
  --theme-warn-100: #fdf4ea; //use fill
110
107
  --theme-warn-200: #fadfc1; //use stroke
111
108
  --theme-warn-300: #f4c083; //hover
@@ -0,0 +1,53 @@
1
+ @use "./mixins.scss" as *;
2
+
3
+ .overlay {
4
+ position: fixed;
5
+ top: 0;
6
+ right: 0;
7
+ bottom: 0;
8
+ left: 0;
9
+
10
+ width: 100dvw;
11
+ height: 100dvh;
12
+
13
+ background-color: rgba(#000, 0.3);
14
+ z-index: 1000;
15
+
16
+ &[data-state="open"] {
17
+ animation: fadeIn var(--animation-duration) ease-in-out;
18
+ }
19
+
20
+ &[data-state="closed"] {
21
+ animation: fadeOut var(--animation-duration) ease-in-out;
22
+ }
23
+ }
24
+
25
+ .container {
26
+ width: 100%;
27
+ margin: 0 auto;
28
+ padding: 0 10px;
29
+ max-width: 768px; // Базовая ширина для мобильных
30
+
31
+ @include respond(lg) {
32
+ max-width: 991px;
33
+ }
34
+
35
+ @include respond(xl) {
36
+ max-width: 1200px;
37
+ }
38
+
39
+ @include respond(xxl) {
40
+ max-width: 1400px;
41
+ }
42
+
43
+ @include respond(xxxl) {
44
+ max-width: 1600px;
45
+ }
46
+ }
47
+
48
+ .page-title {
49
+ font-weight: 600;
50
+ font-size: 24px;
51
+ line-height: 120%;
52
+ color: var(--theme-neutral-text-title);
53
+ }
@@ -1,35 +1,9 @@
1
- @use "./reset.scss";
1
+ @use "./vars.scss";
2
2
  @use "./colors.scss";
3
- @use "./root-vars.scss";
4
- @use "./mixins.scss" as *;
3
+ @use "./animations.scss";
4
+ @use "./mixins.scss";
5
5
  @use "./fonts.scss";
6
+ @use "./reset.scss";
7
+ @use "./typography.scss";
6
8
 
7
- .container {
8
- width: 100%;
9
- margin: 0 auto;
10
- padding: 0 10px;
11
- max-width: 768px; // Базовая ширина для мобильных
12
-
13
- @include respond(lg) {
14
- max-width: 991px;
15
- }
16
-
17
- @include respond(xl) {
18
- max-width: 1200px;
19
- }
20
-
21
- @include respond(xxl) {
22
- max-width: 1400px;
23
- }
24
-
25
- @include respond(xxxl) {
26
- max-width: 1600px;
27
- }
28
- }
29
-
30
- .page-title {
31
- font-weight: 600;
32
- font-size: 24px;
33
- line-height: 120%;
34
- color: var(--theme-neutral-text-title);
35
- }
9
+ @use "./global.scss";
@@ -19,48 +19,49 @@
19
19
  @mixin font-face($font-family, $weights) {
20
20
  @each $weight in $weights {
21
21
  $weight-name: if(
22
- $weight == 100,
23
- "Thin",
24
- if(
25
- $weight == 200,
26
- "ExtraLight",
27
- if(
28
- $weight == 300,
29
- "Light",
30
- if(
31
- $weight == 400,
32
- "Regular",
33
- if(
34
- $weight == 500,
35
- "Medium",
36
- if(
37
- $weight == 600,
38
- "SemiBold",
39
- if(
40
- $weight == 700,
41
- "Bold",
42
- if(
43
- $weight == 800,
44
- "ExtraBold",
45
- if($weight == 900, "Black", $weight)
46
- )
47
- )
48
- )
49
- )
50
- )
51
- )
52
- )
22
+ $weight == 100,
23
+ "Thin",
24
+ if(
25
+ $weight == 200,
26
+ "ExtraLight",
27
+ if(
28
+ $weight == 300,
29
+ "Light",
30
+ if(
31
+ $weight == 400,
32
+ "Regular",
33
+ if(
34
+ $weight == 500,
35
+ "Medium",
36
+ if(
37
+ $weight == 600,
38
+ "SemiBold",
39
+ if(
40
+ $weight == 700,
41
+ "Bold",
42
+ if(
43
+ $weight == 800,
44
+ "ExtraBold",
45
+ if($weight == 900, "Black", $weight)
46
+ )
47
+ )
48
+ )
49
+ )
50
+ )
51
+ )
52
+ )
53
53
  );
54
54
  @font-face {
55
55
  font-family: "#{$font-family}";
56
56
  font-weight: #{$weight};
57
- src: url("/fonts/#{$font-family}/#{$font-family}-#{$weight-name}.woff2") format("woff2"),
58
- url("/fonts/#{$font-family}/#{$font-family}-#{$weight-name}.woff") format("woff");
57
+ src: url("/fonts/#{$font-family}/#{$font-family}-#{$weight-name}.woff2")
58
+ format("woff2"),
59
+ url("/fonts/#{$font-family}/#{$font-family}-#{$weight-name}.woff")
60
+ format("woff");
59
61
  }
60
62
  }
61
63
  }
62
64
 
63
-
64
65
  /**
65
66
  * Миксин для создания медиа-запросов с минимальной шириной
66
67
  *
@@ -76,7 +77,6 @@
76
77
  * Применит стили для экранов шириной от 768px и больше
77
78
  */
78
79
 
79
-
80
80
  @mixin media-min-width($width) {
81
81
  @media screen and (min-width: $width) {
82
82
  @content;
@@ -119,7 +119,7 @@
119
119
  } @else if $breakpoint == xl {
120
120
  @media (min-width: 1220px) {
121
121
  @content;
122
- }
122
+ }
123
123
  } @else if $breakpoint == xxl {
124
124
  @media (min-width: 1420px) {
125
125
  @content;
@@ -164,14 +164,4 @@
164
164
  &::-webkit-scrollbar-corner {
165
165
  background: transparent;
166
166
  }
167
-
168
- // Add paddings depending on direction
169
- // @if $direction == "right" {
170
- // padding-right: 10px;
171
- // } @else if $direction == "bottom" {
172
- // padding-bottom: 10px;
173
- // } @else if $direction == "both" {
174
- // padding-right: 10px;
175
- // padding-bottom: 10px;
176
- // }
177
- }
167
+ }
@@ -1,53 +1,55 @@
1
1
  * {
2
- margin: 0;
3
- padding: 0;
4
- box-sizing: border-box;
2
+ margin: 0;
3
+ padding: 0;
4
+ box-sizing: border-box;
5
5
  }
6
6
 
7
7
  html,
8
8
  body {
9
- height: 100%;
10
- width: 100%;
9
+ height: 100%;
10
+ width: 100%;
11
+
12
+ font-size: var(--font-size);
13
+ line-height: 1.5;
11
14
  }
12
15
 
13
16
  body {
14
- font-family: 'Inter', sans-serif;
15
- -webkit-font-smoothing: antialiased;
16
- -moz-osx-font-smoothing: grayscale;
17
- font-size: 16px;
18
- line-height: 1.5;
19
- color: #333;
17
+ font-family: "Inter", sans-serif;
18
+ -webkit-font-smoothing: antialiased;
19
+ -moz-osx-font-smoothing: grayscale;
20
+
21
+ color: var(--theme-neutral-950);
20
22
  }
21
23
 
22
24
  a {
23
- text-decoration: none;
24
- color: inherit;
25
+ text-decoration: none;
26
+ color: inherit;
25
27
  }
26
28
 
27
29
  button {
28
- border: none;
29
- background: none;
30
- cursor: pointer;
31
- font: inherit;
30
+ border: none;
31
+ background: none;
32
+ cursor: pointer;
33
+ font: inherit;
32
34
  }
33
35
 
34
36
  ul,
35
37
  ol {
36
- list-style: none;
38
+ list-style: none;
37
39
  }
38
40
 
39
41
  img {
40
- max-width: 100%;
41
- height: auto;
42
- display: block;
42
+ max-width: 100%;
43
+ height: auto;
44
+ display: block;
43
45
  }
44
46
 
45
47
  input,
46
48
  textarea,
47
49
  select {
48
- font: inherit;
49
- border: none;
50
- outline: none;
50
+ font: inherit;
51
+ border: none;
52
+ outline: none;
51
53
  }
52
54
 
53
55
  h1,
@@ -56,5 +58,5 @@ h3,
56
58
  h4,
57
59
  h5,
58
60
  h6 {
59
- font-weight: normal;
61
+ font-weight: normal;
60
62
  }
@@ -0,0 +1,41 @@
1
+ h1 {
2
+ font-size: 1.5rem;
3
+ line-height: 120%;
4
+ color: var(--theme-neutral-text-title);
5
+ }
6
+
7
+ h2 {
8
+ font-size: 1.25rem;
9
+ line-height: 120%;
10
+ color: var(--theme-neutral-text-title);
11
+ }
12
+
13
+ h3 {
14
+ font-size: 1.1875rem;
15
+ line-height: 120%;
16
+ color: var(--theme-neutral-text-title);
17
+ }
18
+
19
+ h4 {
20
+ font-size: 1rem;
21
+ line-height: 120%;
22
+ color: var(--theme-neutral-text-title);
23
+ }
24
+
25
+ h5 {
26
+ font-size: 0.9375rem;
27
+ line-height: 120%;
28
+ color: var(--theme-neutral-text-title);
29
+ }
30
+
31
+ h6 {
32
+ font-size: 0.8125rem;
33
+ line-height: 120%;
34
+ color: var(--theme-neutral-text-title);
35
+ }
36
+
37
+ p {
38
+ font-size: 1rem;
39
+ line-height: 160%;
40
+ color: var(--theme-neutral-text-body);
41
+ }
@@ -0,0 +1,31 @@
1
+ @use "./mixins.scss" as *;
2
+
3
+ //1rem = 16px
4
+
5
+ :root {
6
+ //GLOBAL
7
+ --animation-duration: 0.3s;
8
+ --font-size: 14px;
9
+
10
+ --card-border-box-shadow: 1px 0px 0px 0px #74889c33 inset,
11
+ -1px 0px 0px 0px #74889c33 inset, 0px 1px 0px 0px #74889c33 inset,
12
+ 0px -1px 0px 0px #74889c33 inset;
13
+ }
14
+
15
+ @include respond(md) {
16
+ :root {
17
+ --font-size: 16px;
18
+ }
19
+ }
20
+
21
+ //Удалить после перехода на reka-ui
22
+ :root {
23
+ --modal-z-index: 1000;
24
+ --drawer-z-index: 1000;
25
+ --confirm-z-index: 1008;
26
+ --toast-z-index: 1009;
27
+
28
+ //BOX-SHADOW
29
+ --dropdown-shadow: -1px 1px 10px 0 #8d8f9340;
30
+ --popover-shadow: 0 12px 25px 0 #0000001a, 0 0 8px 0 #0000001a;
31
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "prlg-ui",
3
3
  "private": false,
4
- "version": "1.8.315",
4
+ "version": "1.8.317",
5
5
  "type": "module",
6
6
  "main": "dist/prlg-ui.umd.js",
7
7
  "module": "dist/prlg-ui.es.js",
@@ -1,12 +0,0 @@
1
- //MODAL
2
- :root {
3
- --modal-z-index: 1000;
4
- --drawer-z-index: 1000;
5
- --confirm-z-index: 1008;
6
- --toast-z-index: 1009;
7
-
8
- //BOX-SHADOW
9
- --dropdown-shadow: -1px 1px 10px 0 #8D8F9340;
10
- --popover-shadow: 0 12px 25px 0 #0000001A, 0 0 8px 0 #0000001A;
11
-
12
- }