adata-ui 0.3.91 → 3.0.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.
Files changed (106) hide show
  1. package/README.md +84 -7
  2. package/dist/module.d.mts +8 -0
  3. package/dist/module.json +9 -0
  4. package/dist/module.mjs +16 -0
  5. package/dist/runtime/plugin.d.ts +2 -0
  6. package/dist/runtime/plugin.js +4 -0
  7. package/dist/runtime/server/tsconfig.json +3 -0
  8. package/dist/types.d.mts +3 -0
  9. package/package.json +55 -76
  10. package/babel.config.js +0 -5
  11. package/dist/adata-ui.common.js +0 -10489
  12. package/dist/adata-ui.common.js.map +0 -1
  13. package/dist/adata-ui.css +0 -1
  14. package/dist/adata-ui.umd.js +0 -10499
  15. package/dist/adata-ui.umd.js.map +0 -1
  16. package/dist/adata-ui.umd.min.js +0 -7
  17. package/dist/adata-ui.umd.min.js.map +0 -1
  18. package/dist/demo.html +0 -10
  19. package/dist/img/facebook.797d820f.svg +0 -4
  20. package/dist/img/instagram.8a77381c.svg +0 -6
  21. package/dist/img/logo-desktop-main.4d169395.svg +0 -8
  22. package/dist/img/logo-mobile-main.397bce24.svg +0 -4
  23. package/dist/img/logo-white-desktop.7d0e3481.svg +0 -8
  24. package/dist/img/telegram.be0d1008.svg +0 -4
  25. package/dist/img/tiktok.eaeb39cb.svg +0 -4
  26. package/dist/img/up-down.e2b28f72.svg +0 -3
  27. package/dist/img/youtube.125aace6.svg +0 -5
  28. package/package-lock.json +0 -27138
  29. package/public/favicon.ico +0 -0
  30. package/public/index.html +0 -17
  31. package/public/logo.svg +0 -4
  32. package/src/App.vue +0 -28
  33. package/src/assets/_text_field.scss +0 -225
  34. package/src/assets/facebook.svg +0 -4
  35. package/src/assets/instagram.svg +0 -6
  36. package/src/assets/logo-desktop-main.svg +0 -8
  37. package/src/assets/logo-desktop.svg +0 -9
  38. package/src/assets/logo-desktop.webp +0 -0
  39. package/src/assets/logo-mobile-main.svg +0 -4
  40. package/src/assets/logo-mobile.svg +0 -9
  41. package/src/assets/logo-mobile.webp +0 -0
  42. package/src/assets/logo-white-desktop.svg +0 -8
  43. package/src/assets/style.scss +0 -1
  44. package/src/assets/telegram.svg +0 -4
  45. package/src/assets/tiktok.svg +0 -4
  46. package/src/assets/up-down.svg +0 -3
  47. package/src/assets/youtube.svg +0 -5
  48. package/src/components/Alert/Alert.stories.js +0 -17
  49. package/src/components/Alert/Alert.vue +0 -63
  50. package/src/components/BottomNavigationBar/ABottomNavigationBar.vue +0 -160
  51. package/src/components/BottomNavigationBar/BottomNavigationBar.stories.js +0 -25
  52. package/src/components/Button/AButton.vue +0 -231
  53. package/src/components/Button/Button.stories.js +0 -23
  54. package/src/components/Checkbox/ACheckbox.vue +0 -114
  55. package/src/components/Checkbox/Checkbox.stories.js +0 -15
  56. package/src/components/CheckboxMenu/CheckboxMenu.stories.js +0 -24
  57. package/src/components/CheckboxMenu/CheckboxMenu.vue +0 -108
  58. package/src/components/ErrorPages/BadGateway.vue +0 -224
  59. package/src/components/ErrorPages/Forbidden.vue +0 -468
  60. package/src/components/ErrorPages/InternalServerError.vue +0 -275
  61. package/src/components/ErrorPages/NotFound.vue +0 -995
  62. package/src/components/ErrorPages/Unavailable.vue +0 -3705
  63. package/src/components/Footer/Footer.stories.js +0 -20
  64. package/src/components/Footer/Footer.vue +0 -292
  65. package/src/components/Header/ChildLinks.vue +0 -144
  66. package/src/components/Header/Header.stories.js +0 -56
  67. package/src/components/Header/Header.vue +0 -1308
  68. package/src/components/Header/InfoHeader.vue +0 -319
  69. package/src/components/Header/Profile.vue +0 -670
  70. package/src/components/Header/ProfileMenu.vue +0 -293
  71. package/src/components/Header/ProfileMobile.vue +0 -308
  72. package/src/components/Header/ProfileOld.vue +0 -781
  73. package/src/components/InternalServerError/InternalServerError.stories.js +0 -17
  74. package/src/components/InternalServerError/InternalServerError.vue +0 -262
  75. package/src/components/Introduction.stories.mdx +0 -7
  76. package/src/components/Loader/Loader.stories.js +0 -25
  77. package/src/components/Loader/Loader.vue +0 -325
  78. package/src/components/MailTo/MailTo.stories.js +0 -15
  79. package/src/components/MailTo/MailTo.vue +0 -258
  80. package/src/components/NavIcon/ANavIcon.vue +0 -50
  81. package/src/components/NavIcon/NavIcon.stories.js +0 -15
  82. package/src/components/PasswordField/PasswordField.stories.js +0 -16
  83. package/src/components/PasswordField/PasswordField.vue +0 -77
  84. package/src/components/SearchTextField/SearchTextField.stories.js +0 -78
  85. package/src/components/SearchTextField/SearchTextField.vue +0 -230
  86. package/src/components/ServiceSlider/AServiceSlider.vue +0 -793
  87. package/src/components/ServiceSlider/ServiceSlider.stories.js +0 -20
  88. package/src/components/Table/ATable.vue +0 -117
  89. package/src/components/Table/Table.stories.js +0 -15
  90. package/src/components/TextArea/TextArea.stories.js +0 -17
  91. package/src/components/TextArea/TextArea.vue +0 -116
  92. package/src/components/TextError/TextError.stories.js +0 -15
  93. package/src/components/TextError/TextError.vue +0 -57
  94. package/src/components/TextField/TextField.stories.js +0 -17
  95. package/src/components/TextField/TextField.vue +0 -107
  96. package/src/components/index.js +0 -54
  97. package/src/components/newComponents/FooterNew/FooterBottom.vue +0 -153
  98. package/src/components/newComponents/FooterNew/FooterItem.vue +0 -114
  99. package/src/components/newComponents/FooterNew/FooterNew.stories.js +0 -20
  100. package/src/components/newComponents/FooterNew/FooterNew.vue +0 -39
  101. package/src/components/newComponents/FooterNew/FooterTop.vue +0 -321
  102. package/src/components/transitions/SlideToggle.vue +0 -55
  103. package/src/components/transitions/VerticalMobileToggle.vue +0 -75
  104. package/src/configs/icons.js +0 -112
  105. package/src/configs/profileDropDown.js +0 -134
  106. package/src/main.js +0 -12
@@ -1,20 +0,0 @@
1
- import AFooter from './Footer.vue'
2
-
3
- export default {
4
- title: 'Footer',
5
- component: AFooter,
6
- template: '<a-footer></a-footer>'
7
- };
8
-
9
- const Template = (args, { argTypes }) => ({
10
- components: { AFooter },
11
- props: Object.keys(argTypes),
12
- template: '<a-footer v-bind="$props"></a-footer>'
13
- });
14
-
15
- export const MainFooter = Template.bind({});
16
-
17
- export const WithBottomMenu = Template.bind({});
18
- WithBottomMenu.args = {
19
- hasBottomMenu: true
20
- }
@@ -1,292 +0,0 @@
1
- <template>
2
- <footer class="a-footer" :class="[{'paddinged': hasBottomMenu}]">
3
- <div class="a-footer__top">
4
- <div class="nav">
5
- <a class="adata-logo" href="https://adata.kz">
6
- <svg fill="#2C3E50" xmlns="http://www.w3.org/2000/svg"
7
- viewBox="0 0 166 48" version="1.1">
8
- <path
9
- d="M62.926 38.22v-28h10.316c10.342 0 15.511 4.55 15.508 13.652 0 4.36-1.41 7.843-4.232 10.448-2.822 2.605-6.58 3.907-11.276 3.904l-10.316-.004zm6.56-22.868v17.752h3.248c2.839 0 5.069-.82 6.69-2.46 1.622-1.64 2.43-3.873 2.424-6.7 0-2.667-.8-4.767-2.403-6.3-1.602-1.533-3.853-2.297-6.752-2.292h-3.206zM118.5 38.22h-7.131l-2.079-6.228H98.958l-2.079 6.228h-7.093l10.598-28h7.775l10.341 28zm-10.723-11.072l-3.127-9.416a11.94 11.94 0 01-.486-2.516h-.162c-.07.83-.24 1.649-.508 2.44l-3.168 9.492h7.451zm31.833-11.796h-8.316V38.22h-6.557V15.352h-8.274v-5.136h23.147v5.136zM166 38.22h-7.143l-2.079-6.228h-10.349l-2.05 6.228h-7.106l10.598-28h7.776l10.353 28zm-10.719-11.072l-3.127-9.416a11.94 11.94 0 01-.486-2.516h-.163c-.069.83-.239 1.649-.507 2.44l-3.168 9.492h7.451zM24.553 15.252h-.163c-.069.83-.24 1.649-.507 2.44L20.715 27.2h7.45l-3.126-9.412a12.02 12.02 0 01-.486-2.536z"></path>
10
- <path
11
- d="M44.905 0H4.99a5.091 5.091 0 00-3.528 1.406A4.71 4.71 0 000 4.8v38.4a4.71 4.71 0 001.461 3.394A5.091 5.091 0 004.99 48h39.916a5.091 5.091 0 003.528-1.406 4.71 4.71 0 001.462-3.394V4.8a4.71 4.71 0 00-1.462-3.394A5.091 5.091 0 0044.905 0zM31.737 38.26l-2.079-6.232H19.305l-2.05 6.232h-7.097l10.598-28h7.776l10.353 28h-7.148z"></path>
12
- </svg>
13
- </a>
14
- <div class="social">
15
- <a target="_blank" rel="nofollow"
16
- href="https://www.facebook.com/adata.kz">
17
- <svg fill="none" xmlns="http://www.w3.org/2000/svg"
18
- viewBox="0 0 16 16" class="social__icon">
19
- <path
20
- d="M13.6562 0H2.34375C1.05151 0 0 1.05151 0 2.34375V13.6562C0 14.9485 1.05151 16 2.34375 16H7.0625V10.3438H5.1875V7.53125H7.0625V5.625C7.0625 4.0741 8.3241 2.8125 9.875 2.8125H12.7188V5.625H9.875V7.53125H12.7188L12.25 10.3438H9.875V16H13.6562C14.9485 16 16 14.9485 16 13.6562V2.34375C16 1.05151 14.9485 0 13.6562 0Z"
21
- fill="#2C3E50"></path>
22
- </svg>
23
-
24
- </a>
25
- <a target="_blank" rel="nofollow"
26
- href="https://www.instagram.com/adata.kz/?igshid=253i4qxg3els">
27
- <svg fill="none" xmlns="http://www.w3.org/2000/svg"
28
- viewBox="0 0 16 16" class="social__icon">
29
- <path fill-rule="evenodd" clip-rule="evenodd"
30
- d="M3.01562 0.0166016C1.35877 0.0166016 0.015625 1.35975 0.015625 3.0166V13.001C0.015625 14.6578 1.35877 16.001 3.01562 16.001H13C14.6569 16.001 16 14.6578 16 13.001V3.0166C16 1.35975 14.6569 0.0166016 13 0.0166016H3.01562ZM14.3891 3.20021C14.3891 3.6416 14.0313 3.99943 13.5899 3.99943C13.1485 3.99943 12.7906 3.6416 12.7906 3.20021C12.7906 2.75881 13.1485 2.40099 13.5899 2.40099C14.0313 2.40099 14.3891 2.75881 14.3891 3.20021ZM8.01132 11.5982C9.99761 11.5982 11.6078 9.98805 11.6078 8.00176C11.6078 6.01548 9.99761 4.40528 8.01132 4.40528C6.02504 4.40528 4.41484 6.01548 4.41484 8.00176C4.41484 9.98805 6.02504 11.5982 8.01132 11.5982ZM8.01132 12.7971C10.6597 12.7971 12.8066 10.6501 12.8066 8.00176C12.8066 5.35339 10.6597 3.20645 8.01132 3.20645C5.36295 3.20645 3.21601 5.35339 3.21601 8.00176C3.21601 10.6501 5.36295 12.7971 8.01132 12.7971Z"
31
- fill="#2C3E50"></path>
32
- </svg>
33
- </a>
34
- <a target="_blank" rel="nofollow"
35
- href="https://www.youtube.com/channel/UCPkbtgwgTZbMJXjmTi3R8Uw/featured">
36
- <svg fill="none" xmlns="http://www.w3.org/2000/svg"
37
- viewBox="0 0 16 16" class="social__icon">
38
- <path fill-rule="evenodd" clip-rule="evenodd"
39
- d="M2 0C0.895431 0 0 0.895431 0 2V14C0 15.1046 0.895431 16 2 16H14C15.1046 16 16 15.1046 16 14V2C16 0.895431 15.1046 0 14 0H2ZM13.7528 4.98132C13.6144 4.46732 13.2092 4.06205 12.6952 3.92367C11.7561 3.66667 7.99997 3.66667 7.99997 3.66667C7.99997 3.66667 4.24381 3.66667 3.30477 3.91378C2.80066 4.05217 2.3855 4.46732 2.24712 4.98132C2 5.92036 2 7.86764 2 7.86764C2 7.86764 2 9.82479 2.24712 10.7539C2.3855 11.268 2.79077 11.6732 3.30477 11.8116C4.2537 12.0686 7.99997 12.0686 7.99997 12.0686C7.99997 12.0686 11.7561 12.0686 12.6952 11.8215C13.2092 11.6831 13.6144 11.2778 13.7528 10.7638C13.9999 9.82479 13.9999 7.87752 13.9999 7.87752C13.9999 7.87752 14.0098 5.92036 13.7528 4.98132ZM6.80392 9.59801L9.92747 7.799L6.80392 6V9.59801Z"
40
- fill="#2C3E50"></path>
41
- </svg>
42
- </a>
43
- <a target="_blank" rel="nofollow"
44
- href="https://www.tiktok.com/@adata.kz?lang=ru-RU">
45
- <svg fill="none" xmlns="http://www.w3.org/2000/svg"
46
- viewBox="0 0 16 16" class="social__icon">
47
- <path fill-rule="evenodd" clip-rule="evenodd"
48
- d="M2 0C0.895431 0 0 0.895431 0 2V14C0 15.1046 0.895431 16 2 16H14C15.1046 16 16 15.1046 16 14V2C16 0.895431 15.1046 0 14 0H2ZM8.27136 9.89447C8.27136 10.8688 7.54987 11.506 6.65988 11.506C5.76988 11.506 5.04839 10.7845 5.04839 9.89447C5.04839 9.0988 5.7895 8.37096 6.68689 8.40404C6.86305 8.40404 7.06987 8.44599 7.15006 8.47436V6.62331C5.55588 6.30091 3.14893 7.62001 3.14893 9.89447C3.14893 11.506 4.38899 13.3333 6.65988 13.3333C8.93076 13.3333 10.1985 11.506 10.1985 9.89447V6.23373C10.5643 6.52374 11.6152 7.04631 12.8511 7.04631V5.229C11.406 5.25812 10.0956 3.98482 10.204 2.66667H8.27136V9.89447Z"
49
- fill="#2C3E50"></path>
50
- </svg>
51
- </a>
52
- </div>
53
- <a href="https://adata.kz/tariffs" class="nav__item nav__link">
54
- Тарифы
55
- </a>
56
- <a href="https://adata.kz/about" class="nav__item nav__link">
57
- Полезное
58
- </a>
59
- <a href="https://adata.kz/apiInfo" class="nav__item nav__link">
60
- Описание API
61
- </a>
62
- <a href="https://adata.kz/user-agreements" class="nav__item nav__link">
63
- Пользовательское соглашение
64
- </a>
65
- <a href="https://adata.kz/vacancy" class="nav__item nav__link">
66
- Вакансии
67
- </a>
68
- <a href="https://pk.adata.kz/counterparty" class="nav__item nav__link">
69
- Каталог предприятий
70
- </a>
71
- <a href="https://adata.kz/contacts" class="nav__item nav__link">
72
- Контакты
73
- </a>
74
- </div>
75
- </div>
76
- <div class="a-footer__bottom">
77
- <span>2024 © ТОО "Alldata"</span>
78
- </div>
79
- </footer>
80
- </template>
81
-
82
- <script>
83
- export default {
84
- name: "Footer",
85
- props: {
86
- hasBottomMenu: {
87
- type: Boolean,
88
- default: false
89
- }
90
- }
91
- };
92
- </script>
93
- <style lang="scss">
94
- ul, li {
95
- list-style: none;
96
- text-decoration: none;
97
- }
98
-
99
- a {
100
- text-decoration: none;
101
- background-color: transparent;
102
- }
103
-
104
- * {
105
- font-family: "Open Sans", sans-serif;
106
- box-sizing: border-box;
107
- margin: 0;
108
- padding: 0;
109
- }
110
-
111
- .a-footer {
112
- background: #BDC7CE4C;
113
- font-size: 14px;
114
- margin-top: 20px;
115
- width: 100%;
116
- @media(max-width: 1025px) {
117
- background: #F6F6F7;
118
- &.paddinged {
119
- padding-bottom: 64px;
120
- }
121
- }
122
-
123
- &__top {
124
-
125
- margin: 0 auto;
126
- padding: 20px 24px;
127
- @media(max-width: 1025px) {
128
- flex-direction: column;
129
- padding: 16px 16px;
130
- }
131
-
132
- .adata-logo {
133
- display: none;
134
- @media(max-width: 1025px) {
135
- display: flex;
136
- svg {
137
- width: 77px;
138
- height: 24px;
139
- }
140
- }
141
- }
142
-
143
-
144
- .nav {
145
- width: 100%;
146
- display: flex;
147
- justify-content: center;
148
- align-items: center;
149
- gap: 16px;
150
- @media(max-width: 1025px) {
151
- display: grid;
152
- grid-template-columns: 0.7fr 1fr;
153
- column-gap: 15px;
154
- row-gap: 15px;
155
- }
156
-
157
- &__link {
158
- line-height: 19px;
159
- color: #2c3e50;
160
- @media(max-width: 1025px) {
161
- font-size: 12px;
162
- }
163
- &:hover {
164
- color: #9da3ac;
165
- }
166
-
167
- }
168
- .desktop {
169
- display: block;
170
- @media(max-width: 1025px) {
171
- display: none;
172
- }
173
-
174
- &:active {
175
- color: #c4c4c4;
176
- }
177
- }
178
- }
179
-
180
- .social {
181
- $self: &;
182
- display: flex;
183
- align-items: center;
184
- margin-left: 15px;
185
- order: 1;
186
- @media (max-width: 1025px) {
187
- margin-left: 0;
188
- order: 0;
189
- }
190
-
191
- a {
192
- display: flex;
193
- align-items: center;
194
- line-height: 19px;
195
- text-decoration-line: none;
196
- color: #007aff;
197
-
198
- .social__icon {
199
- margin: 2px 10px 2px 2px;
200
- @media (max-width: 1025px) {
201
- margin: 0 8px 0 0;
202
- }
203
- }
204
-
205
- @media(max-width: 1025px) {
206
- margin-left: 0;
207
- &:not(:first-child) {
208
- margin-left: 8px;
209
- }
210
- }
211
-
212
- &:hover {
213
- text-decoration: underline;
214
- }
215
-
216
- &:active {
217
- color: #0055bb;
218
- text-decoration-line: none;
219
- }
220
- }
221
-
222
- svg {
223
- width: 16px;
224
- height: 16px;
225
- fill: #2C3E50;
226
- @media(max-width: 1025px) {
227
- width: 20px;
228
- height: 20px;
229
- }
230
-
231
- &#{$self}__icon {
232
- cursor: pointer;
233
- }
234
-
235
- &:hover {
236
- fill: #9da3ac !important;
237
- }
238
-
239
- &:active {
240
- fill: #c4c4c4 !important;
241
- }
242
- }
243
- }
244
- }
245
-
246
- &__bottom {
247
- text-align: center;
248
- padding: 11.5px 0 13px;
249
- border: 1px solid #BDC7CE;
250
- @media(max-width: 1025px) {
251
- background: #EFEFF0;
252
- border: none;
253
- border-top: 1px solid #bdc7ce;
254
- display: grid;
255
- gap: 8px;
256
- }
257
-
258
- span {
259
- font-size: 10px;
260
- line-height: 12px;
261
- color: #71757a;
262
- @media(max-width: 1025px) {
263
- font-size: 12px;
264
- line-height: 20px;
265
-
266
- }
267
- }
268
-
269
- &__link {
270
- font-size: 12px;
271
- line-height: 20px;
272
- color: #71757a;
273
-
274
-
275
- }
276
- .mobile {
277
- display: none;
278
- @media(max-width: 1025px) {
279
- display: block;
280
- }
281
- }
282
- }
283
-
284
- }
285
-
286
- .mobile-head-wrapper {
287
- display: flex;
288
- justify-content: space-between;
289
- align-items: center;
290
- }
291
-
292
- </style>
@@ -1,144 +0,0 @@
1
- <template>
2
- <ul class="child-links">
3
- <li v-for="(link, i) in links.children" :key="i">
4
- <div class="child-links__info">
5
- <component
6
- class="child-links__info__item"
7
- exact-active-class="active"
8
- :is="module === links.key? 'nuxt-link': 'a'"
9
- :href="module === links.key ? links.to: `${links[mode]}${link.to}`"
10
- :to="module === links.key ? link.to: null"
11
- >
12
- <span v-html="serviceIcons[link.icon]" class="child-links__info__item__icon"></span>
13
- <p>
14
- <span class="child-links__info__item__name">{{ link.name }}</span>
15
- <span class="child-links__info__item__subtitle">{{ link.subtitle }}</span>
16
- </p>
17
- </component>
18
- <component
19
- :is="module === links.key? 'nuxt-link': 'a'"
20
- :to="module === links.key ? link.to: null"
21
- :href="module === links.key ? links.to: `${links[mode]}${link.to}`" class="child-links__info-arrow">
22
- <svg width="24" height="24" class="ic-24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
23
- <path d="M9 18L15 12L9 6" stroke="#007AFF" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"/>
24
- </svg>
25
- </component>
26
- </div>
27
- </li>
28
- </ul>
29
- </template>
30
-
31
- <script>
32
- import {serviceIcons} from "@/configs/icons";
33
-
34
- export default {
35
- name: "ChildLinks",
36
- props: {
37
- links: {
38
- type: Object,
39
- default: () => ({})
40
- },
41
- module: {
42
- type: String,
43
- default: 'counterparty'
44
- },
45
- mode: {
46
- type: String,
47
- required: true
48
- }
49
- },
50
- data() {
51
- return {
52
- serviceIcons
53
- }
54
- },
55
- }
56
- </script>
57
-
58
- <style scoped lang="scss">
59
- .child-links {
60
- position: absolute;
61
- z-index: 1;
62
- left: 0;
63
- background: #FFFFFF;
64
- padding: 16px;
65
- box-shadow: 0 10px 70px rgba(0, 0, 0, 0.08);
66
- border-radius: 8px;
67
- $self: &;
68
-
69
-
70
-
71
- .active {
72
- background: rgba(189, 199, 206, 0.2);
73
- }
74
-
75
- li {
76
- #{ $self }__info {
77
- display: flex;
78
- align-items: center;
79
- justify-content: space-between;
80
- gap: 12px;
81
- cursor: pointer;
82
- &-arrow {
83
- visibility: hidden;
84
- svg{
85
- transition: 0s;
86
- }
87
- }
88
- &:hover {
89
- #{ $self }__info-arrow {
90
- visibility: visible;
91
-
92
- }
93
- }
94
-
95
- .ic-24 {
96
- min-width: 24px;
97
- height: 24px;
98
- }
99
-
100
- &__item {
101
- text-transform: none;
102
- display: flex;
103
- align-items: center;
104
- gap: 16px;
105
- min-width: 336px;
106
- padding: 14px 8px;
107
- border-radius: 8px;
108
- transition: 0.2s ease;
109
-
110
- &:hover {
111
- background: rgba(189, 199, 206, 0.2);
112
- }
113
-
114
-
115
- &__icon {
116
- display: grid;
117
- place-content: center;
118
- width: 40px;
119
- height: 40px;
120
- min-width: 40px;
121
- background: rgba(189, 199, 206, 0.2);
122
- border-radius: 4px;
123
- }
124
-
125
- &__name {
126
- display: block;
127
- font-weight: 600;
128
- font-size: 14px;
129
- line-height: 20px;
130
- color: #2C3E50;
131
- }
132
-
133
- &__subtitle {
134
- display: block;
135
- font-weight: 400;
136
- font-size: 12px;
137
- line-height: 20px;
138
- color: #71757A;
139
- }
140
- }
141
- }
142
- }
143
- }
144
- </style>
@@ -1,56 +0,0 @@
1
- import AHeader from './Header.vue'
2
- import {action} from "@storybook/addon-actions";
3
-
4
- export default {
5
- title: 'Header',
6
- component: AHeader,
7
- template: '<a-header></a-header>'
8
- };
9
-
10
- const Template = (args, { argTypes }) => ({
11
- components: { AHeader },
12
- props: Object.keys(argTypes),
13
- template: '<a-header @menuOpen="openMenu' +
14
- '" @showBalanceModal="showBalance"' +
15
- ' @setShowModal="showModal"' +
16
- ' @logout="logoutClick"' +
17
- ' @setIsReplenishModal="setReplenishModal" v-bind="$props"' +
18
- '></a-header>',
19
- methods: {
20
- openMenu(val) {
21
- console.log(val);
22
- },
23
- showBalance(val) {
24
- console.log(val);
25
- console.log(val);
26
- },
27
- showModal(val) {
28
- console.log(val);
29
- },
30
- logoutClick() {
31
- console.log("logout");
32
- },
33
- setReplenishModal(val) {
34
- console.log(val);
35
- },
36
- }
37
- });
38
-
39
- export const MainHeader = Template.bind({});
40
-
41
- export const devHeader = Template.bind({});
42
- devHeader.args = {
43
- isDev: true
44
- }
45
-
46
- export const headerAuthenticated = Template.bind({});
47
- headerAuthenticated.args = {
48
- isDev: true,
49
- isAuthenticated: true,
50
- requestCount: 1000,
51
- daysRemaining: "11 ч 23 мин",
52
- email: "sboranbayeva@gmail.com",
53
- loginUrl: "https://id.adtdev.kz/auth/signin?url=https://pk.adata.kz/auth",
54
- activeTabKey: 'work',
55
- balance: 1954900
56
- }