adata-ui 0.3.73 → 0.3.75

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 (95) hide show
  1. package/README.md +7 -7
  2. package/babel.config.js +5 -5
  3. package/dist/adata-ui.common.js +6810 -9332
  4. package/dist/adata-ui.common.js.map +1 -1
  5. package/dist/adata-ui.css +1 -1
  6. package/dist/adata-ui.umd.js +6810 -9332
  7. package/dist/adata-ui.umd.js.map +1 -1
  8. package/dist/adata-ui.umd.min.js +3 -3
  9. package/dist/adata-ui.umd.min.js.map +1 -1
  10. package/dist/img/{facebook.797d820f.svg → facebook.990fd0ba.svg} +4 -4
  11. package/dist/img/{instagram.8a77381c.svg → instagram.90311e74.svg} +6 -6
  12. package/dist/img/{logo-desktop-main.4d169395.svg → logo-desktop-main.bb1899e0.svg} +8 -8
  13. package/dist/img/{logo-mobile-main.397bce24.svg → logo-mobile-main.3e2fc59e.svg} +4 -4
  14. package/dist/img/{logo-white-desktop.7d0e3481.svg → logo-white-desktop.0827cb20.svg} +8 -8
  15. package/dist/img/{telegram.be0d1008.svg → telegram.da3d2408.svg} +4 -4
  16. package/dist/img/{tiktok.eaeb39cb.svg → tiktok.91223b77.svg} +4 -4
  17. package/dist/img/{up-down.e2b28f72.svg → up-down.de7b3a68.svg} +3 -3
  18. package/dist/img/{youtube.125aace6.svg → youtube.96e7b076.svg} +5 -5
  19. package/package.json +76 -76
  20. package/public/index.html +17 -17
  21. package/public/logo.svg +4 -4
  22. package/src/App.vue +25 -25
  23. package/src/assets/_text_field.scss +224 -224
  24. package/src/assets/facebook.svg +4 -4
  25. package/src/assets/instagram.svg +6 -6
  26. package/src/assets/logo-desktop-main.svg +8 -8
  27. package/src/assets/logo-desktop.svg +9 -9
  28. package/src/assets/logo-mobile-main.svg +4 -4
  29. package/src/assets/logo-mobile.svg +9 -9
  30. package/src/assets/logo-white-desktop.svg +8 -8
  31. package/src/assets/style.scss +1 -1
  32. package/src/assets/telegram.svg +4 -4
  33. package/src/assets/tiktok.svg +4 -4
  34. package/src/assets/up-down.svg +3 -3
  35. package/src/assets/youtube.svg +5 -5
  36. package/src/components/Alert/Alert.stories.js +17 -17
  37. package/src/components/Alert/Alert.vue +63 -63
  38. package/src/components/BottomNavigationBar/ABottomNavigationBar.vue +160 -160
  39. package/src/components/BottomNavigationBar/BottomNavigationBar.stories.js +24 -24
  40. package/src/components/Button/AButton.vue +231 -231
  41. package/src/components/Button/Button.stories.js +23 -23
  42. package/src/components/Checkbox/ACheckbox.vue +114 -114
  43. package/src/components/Checkbox/Checkbox.stories.js +15 -15
  44. package/src/components/CheckboxMenu/CheckboxMenu.stories.js +23 -23
  45. package/src/components/CheckboxMenu/CheckboxMenu.vue +108 -108
  46. package/src/components/ErrorPages/BadGateway.vue +224 -224
  47. package/src/components/ErrorPages/Forbidden.vue +468 -468
  48. package/src/components/ErrorPages/InternalServerError.vue +275 -275
  49. package/src/components/ErrorPages/NotFound.vue +995 -995
  50. package/src/components/ErrorPages/Unavailable.vue +3705 -3705
  51. package/src/components/Footer/Footer.stories.js +20 -20
  52. package/src/components/Footer/Footer.vue +292 -292
  53. package/src/components/Header/ChildLinks.vue +141 -122
  54. package/src/components/Header/Header.stories.js +56 -56
  55. package/src/components/Header/Header.vue +1289 -1289
  56. package/src/components/Header/InfoHeader.vue +319 -319
  57. package/src/components/Header/Profile.vue +670 -670
  58. package/src/components/Header/ProfileMenu.vue +291 -276
  59. package/src/components/Header/ProfileMobile.vue +308 -308
  60. package/src/components/Header/ProfileOld.vue +781 -781
  61. package/src/components/InternalServerError/InternalServerError.stories.js +16 -16
  62. package/src/components/InternalServerError/InternalServerError.vue +262 -262
  63. package/src/components/Introduction.stories.mdx +7 -7
  64. package/src/components/Loader/Loader.stories.js +24 -24
  65. package/src/components/Loader/Loader.vue +325 -325
  66. package/src/components/MailTo/MailTo.stories.js +14 -14
  67. package/src/components/MailTo/MailTo.vue +258 -258
  68. package/src/components/NavIcon/ANavIcon.vue +49 -49
  69. package/src/components/NavIcon/NavIcon.stories.js +14 -14
  70. package/src/components/PasswordField/PasswordField.stories.js +16 -16
  71. package/src/components/PasswordField/PasswordField.vue +77 -77
  72. package/src/components/SearchTextField/SearchTextField.stories.js +77 -77
  73. package/src/components/SearchTextField/SearchTextField.vue +230 -230
  74. package/src/components/ServiceSlider/AServiceSlider.vue +782 -782
  75. package/src/components/ServiceSlider/ServiceSlider.stories.js +20 -20
  76. package/src/components/Table/ATable.vue +117 -117
  77. package/src/components/Table/Table.stories.js +15 -15
  78. package/src/components/TextArea/TextArea.stories.js +17 -17
  79. package/src/components/TextArea/TextArea.vue +116 -116
  80. package/src/components/TextError/TextError.stories.js +15 -15
  81. package/src/components/TextError/TextError.vue +57 -57
  82. package/src/components/TextField/TextField.stories.js +17 -17
  83. package/src/components/TextField/TextField.vue +107 -107
  84. package/src/components/index.js +54 -54
  85. package/src/components/newComponents/FooterNew/FooterBottom.vue +153 -153
  86. package/src/components/newComponents/FooterNew/FooterItem.vue +113 -113
  87. package/src/components/newComponents/FooterNew/FooterNew.stories.js +20 -20
  88. package/src/components/newComponents/FooterNew/FooterNew.vue +39 -39
  89. package/src/components/newComponents/FooterNew/FooterTop.vue +321 -321
  90. package/src/components/transitions/SlideToggle.vue +55 -55
  91. package/src/components/transitions/VerticalMobileToggle.vue +75 -75
  92. package/src/configs/icons.js +112 -112
  93. package/src/configs/profileDropDown.js +134 -134
  94. package/src/main.js +12 -12
  95. package/package-lock.json +0 -26218
@@ -1,57 +1,57 @@
1
- <template>
2
- <div class="adt-text-error">
3
- <div class="adt-text-error__icon">
4
- <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
5
- <g clip-path="url(#clip0_508_13640)">
6
- <path
7
- d="M8.00016 14.6666C11.6821 14.6666 14.6668 11.6818 14.6668 7.99992C14.6668 4.31802 11.6821 1.33325 8.00016 1.33325C4.31826 1.33325 1.3335 4.31802 1.3335 7.99992C1.3335 11.6818 4.31826 14.6666 8.00016 14.6666Z"
8
- stroke="white" stroke-linecap="round" stroke-linejoin="round"/>
9
- <path d="M8 10.6667H8.00667" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
10
- <path d="M8 5.33325V7.99992" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
11
- </g>
12
- <defs>
13
- <clipPath id="clip0_508_13640">
14
- <rect width="16" height="16" fill="white"/>
15
- </clipPath>
16
- </defs>
17
- </svg>
18
- </div>
19
- <p class="adt-text-error__text">{{ errorText }}</p>
20
- </div>
21
- </template>
22
-
23
- <script>
24
- export default {
25
- name: "TextError",
26
- props: {
27
- errorText: {
28
- type: String,
29
- default: ""
30
- },
31
- },
32
- };
33
- </script>
34
-
35
- <style lang="scss" scoped>
36
- .adt-text-error {
37
- display: flex;
38
- background: rgba(255, 46, 67, 0.12);
39
- border-radius: 4px;
40
- overflow: hidden;
41
- color: #2c3e50;
42
- margin-top: 8px;
43
-
44
- &__icon {
45
- background: #FF2E43;
46
- padding: 4px 8px;
47
- display: grid;
48
- place-content: center;
49
- }
50
-
51
- &__text {
52
- font-size: 12px;
53
- line-height: 20px;
54
- padding: 2px 16px;
55
- }
56
- }
57
- </style>
1
+ <template>
2
+ <div class="adt-text-error">
3
+ <div class="adt-text-error__icon">
4
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
5
+ <g clip-path="url(#clip0_508_13640)">
6
+ <path
7
+ d="M8.00016 14.6666C11.6821 14.6666 14.6668 11.6818 14.6668 7.99992C14.6668 4.31802 11.6821 1.33325 8.00016 1.33325C4.31826 1.33325 1.3335 4.31802 1.3335 7.99992C1.3335 11.6818 4.31826 14.6666 8.00016 14.6666Z"
8
+ stroke="white" stroke-linecap="round" stroke-linejoin="round"/>
9
+ <path d="M8 10.6667H8.00667" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
10
+ <path d="M8 5.33325V7.99992" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
11
+ </g>
12
+ <defs>
13
+ <clipPath id="clip0_508_13640">
14
+ <rect width="16" height="16" fill="white"/>
15
+ </clipPath>
16
+ </defs>
17
+ </svg>
18
+ </div>
19
+ <p class="adt-text-error__text">{{ errorText }}</p>
20
+ </div>
21
+ </template>
22
+
23
+ <script>
24
+ export default {
25
+ name: "TextError",
26
+ props: {
27
+ errorText: {
28
+ type: String,
29
+ default: ""
30
+ },
31
+ },
32
+ };
33
+ </script>
34
+
35
+ <style lang="scss" scoped>
36
+ .adt-text-error {
37
+ display: flex;
38
+ background: rgba(255, 46, 67, 0.12);
39
+ border-radius: 4px;
40
+ overflow: hidden;
41
+ color: #2c3e50;
42
+ margin-top: 8px;
43
+
44
+ &__icon {
45
+ background: #FF2E43;
46
+ padding: 4px 8px;
47
+ display: grid;
48
+ place-content: center;
49
+ }
50
+
51
+ &__text {
52
+ font-size: 12px;
53
+ line-height: 20px;
54
+ padding: 2px 16px;
55
+ }
56
+ }
57
+ </style>
@@ -1,17 +1,17 @@
1
- import ATextField from "./TextField.vue";
2
-
3
- export default {
4
- title: 'TextField',
5
- component: ATextField,
6
- data: () => ({ value: "" }),
7
- template: "<a-text-field @input='(val) => {this.value = val}' label='Example'></a-text-field>>"
8
- }
9
-
10
- const Template = (args, { argTypes }) => ({
11
- components: { ATextField },
12
- props: Object.keys(argTypes),
13
- template: '<a-text-field v-bind="$props"></a-text-field>'
14
- })
15
-
16
- export const Clearable = Template.bind({});
17
- Clearable.args = {label: 'Clearable', clearable: true}
1
+ import ATextField from "./TextField.vue";
2
+
3
+ export default {
4
+ title: 'TextField',
5
+ component: ATextField,
6
+ data: () => ({ value: "" }),
7
+ template: "<a-text-field @input='(val) => {this.value = val}' label='Example'></a-text-field>>"
8
+ }
9
+
10
+ const Template = (args, { argTypes }) => ({
11
+ components: { ATextField },
12
+ props: Object.keys(argTypes),
13
+ template: '<a-text-field v-bind="$props"></a-text-field>'
14
+ })
15
+
16
+ export const Clearable = Template.bind({});
17
+ Clearable.args = {label: 'Clearable', clearable: true}
@@ -1,107 +1,107 @@
1
- <template>
2
- <div class="adt-text-block">
3
- <div :class="['adt-text-block__field', { error: !!errorText }]">
4
- <input
5
- :id="id"
6
- ref="input"
7
- :type="type"
8
- :value="value"
9
- :placeholder="placeholder"
10
- required
11
- @input="$emit('input', $event.target.value)"
12
- @keyup.enter="enterPressed"
13
- class="adt-text-block__input"
14
- :class="{ error: !!errorText }"
15
- />
16
- <label :for="id" class="adt-text-block__label">
17
- {{ label }}
18
- <span v-if="required" class="adt-text-block__required">*</span>
19
- </label>
20
- <div
21
- class="adt-text-block__icon desktop"
22
- v-if="clearable && value && value.length > 0"
23
- @click="$emit('input', '')"
24
- >
25
- <svg
26
- width="12"
27
- height="12"
28
- fill="none"
29
- xmlns="http://www.w3.org/2000/svg"
30
- viewBox="0 0 16 16"
31
- id="clearIcon"
32
- >
33
- <path
34
- d="M2 2l12 12m0-12L2 14"
35
- stroke="#2C3E50"
36
- stroke-linecap="round"
37
- stroke-linejoin="round"
38
- ></path>
39
- </svg>
40
- </div>
41
- </div>
42
- <text-error v-if="!!errorText" :errorText="errorText" />
43
- </div>
44
- </template>
45
- <script>
46
- import "@/assets/style.scss";
47
- import TextError from "@/components/TextError/TextError";
48
-
49
- export default {
50
- name: "TextField",
51
- components: {
52
- TextError
53
- },
54
- props: {
55
- id: {
56
- type: String,
57
- default: ""
58
- },
59
- errorText: {
60
- type: String,
61
- default: "",
62
- },
63
- label: {
64
- type: String,
65
- required: true,
66
- },
67
- type: {
68
- type: String,
69
- default: "text",
70
- },
71
- value: {
72
- type: String,
73
- default: "",
74
- },
75
- placeholder: {
76
- type: String,
77
- default: "",
78
- },
79
- clearable: {
80
- type: Boolean,
81
- default: false,
82
- },
83
- required: {
84
- type: Boolean,
85
- default: false,
86
- },
87
- },
88
- data() {
89
- return {
90
- showPlaceholder: false,
91
- };
92
- },
93
- computed: {
94
- inputPlaceholder() {
95
- return this.showPlaceholder ? this.placeholder : "";
96
- },
97
- },
98
- methods: {
99
- enterPressed() {
100
- this.$emit("enterPressed", this.value);
101
- },
102
- inputHandler(e) {
103
- this.$emit("input", e.target.value);
104
- },
105
- },
106
- };
107
- </script>
1
+ <template>
2
+ <div class="adt-text-block">
3
+ <div :class="['adt-text-block__field', { error: !!errorText }]">
4
+ <input
5
+ :id="id"
6
+ ref="input"
7
+ :type="type"
8
+ :value="value"
9
+ :placeholder="placeholder"
10
+ required
11
+ @input="$emit('input', $event.target.value)"
12
+ @keyup.enter="enterPressed"
13
+ class="adt-text-block__input"
14
+ :class="{ error: !!errorText }"
15
+ />
16
+ <label :for="id" class="adt-text-block__label">
17
+ {{ label }}
18
+ <span v-if="required" class="adt-text-block__required">*</span>
19
+ </label>
20
+ <div
21
+ class="adt-text-block__icon desktop"
22
+ v-if="clearable && value && value.length > 0"
23
+ @click="$emit('input', '')"
24
+ >
25
+ <svg
26
+ width="12"
27
+ height="12"
28
+ fill="none"
29
+ xmlns="http://www.w3.org/2000/svg"
30
+ viewBox="0 0 16 16"
31
+ id="clearIcon"
32
+ >
33
+ <path
34
+ d="M2 2l12 12m0-12L2 14"
35
+ stroke="#2C3E50"
36
+ stroke-linecap="round"
37
+ stroke-linejoin="round"
38
+ ></path>
39
+ </svg>
40
+ </div>
41
+ </div>
42
+ <text-error v-if="!!errorText" :errorText="errorText" />
43
+ </div>
44
+ </template>
45
+ <script>
46
+ import "@/assets/style.scss";
47
+ import TextError from "@/components/TextError/TextError";
48
+
49
+ export default {
50
+ name: "TextField",
51
+ components: {
52
+ TextError
53
+ },
54
+ props: {
55
+ id: {
56
+ type: String,
57
+ default: ""
58
+ },
59
+ errorText: {
60
+ type: String,
61
+ default: "",
62
+ },
63
+ label: {
64
+ type: String,
65
+ required: true,
66
+ },
67
+ type: {
68
+ type: String,
69
+ default: "text",
70
+ },
71
+ value: {
72
+ type: String,
73
+ default: "",
74
+ },
75
+ placeholder: {
76
+ type: String,
77
+ default: "",
78
+ },
79
+ clearable: {
80
+ type: Boolean,
81
+ default: false,
82
+ },
83
+ required: {
84
+ type: Boolean,
85
+ default: false,
86
+ },
87
+ },
88
+ data() {
89
+ return {
90
+ showPlaceholder: false,
91
+ };
92
+ },
93
+ computed: {
94
+ inputPlaceholder() {
95
+ return this.showPlaceholder ? this.placeholder : "";
96
+ },
97
+ },
98
+ methods: {
99
+ enterPressed() {
100
+ this.$emit("enterPressed", this.value);
101
+ },
102
+ inputHandler(e) {
103
+ this.$emit("input", e.target.value);
104
+ },
105
+ },
106
+ };
107
+ </script>
@@ -1,54 +1,54 @@
1
- import Vue from "vue";
2
- import ACheckbox from "./Checkbox/ACheckbox";
3
- import ACheckboxMenu from "./CheckboxMenu/CheckboxMenu";
4
- import AButton from "./Button/AButton";
5
- import ATextField from "./TextField/TextField";
6
- import ATextArea from "./TextArea/TextArea";
7
- import APasswordField from "./PasswordField/PasswordField";
8
- import AAlert from "./Alert/Alert";
9
- import AHeader from "./Header/Header";
10
- import AFooter from "./Footer/Footer";
11
- import AFooterNew from "./newComponents/FooterNew/FooterNew";
12
- import ASearchTextField from "./SearchTextField/SearchTextField";
13
- import AMailTo from "./MailTo/MailTo";
14
- import ATable from "./Table/ATable";
15
- import ALoader from "./Loader/Loader";
16
- import ABottomNavigationBar from "./BottomNavigationBar/ABottomNavigationBar";
17
- import ANavIcon from "./NavIcon/ANavIcon";
18
- import AServiceSlider from "./ServiceSlider/AServiceSlider";
19
- // import ABadGateway from "./ErrorPages/BadGateway";
20
- // import AForbidden from "./ErrorPages/Forbidden";
21
- // import AInternalServerError from "./ErrorPages/InternalServerError";
22
- // import ANotFound from "./ErrorPages/NotFound";
23
- // import AUnavailable from "./ErrorPages/Unavailable";
24
-
25
- const Components = {
26
- ACheckbox,
27
- AButton,
28
- ATextField,
29
- ATextArea,
30
- APasswordField,
31
- AAlert,
32
- AHeader,
33
- AFooter,
34
- AFooterNew,
35
- ASearchTextField,
36
- AMailTo,
37
- ATable,
38
- ALoader,
39
- ACheckboxMenu,
40
- ABottomNavigationBar,
41
- ANavIcon,
42
- AServiceSlider
43
- // ABadGateway,
44
- // AForbidden,
45
- // AInternalServerError,
46
- // ANotFound,
47
- // AUnavailable,
48
- };
49
-
50
- Object.keys(Components).forEach((name) => {
51
- Vue.component(name, Components[name]);
52
- });
53
-
54
- export default Components;
1
+ import Vue from "vue";
2
+ import ACheckbox from "./Checkbox/ACheckbox";
3
+ import ACheckboxMenu from "./CheckboxMenu/CheckboxMenu";
4
+ import AButton from "./Button/AButton";
5
+ import ATextField from "./TextField/TextField";
6
+ import ATextArea from "./TextArea/TextArea";
7
+ import APasswordField from "./PasswordField/PasswordField";
8
+ import AAlert from "./Alert/Alert";
9
+ import AHeader from "./Header/Header";
10
+ import AFooter from "./Footer/Footer";
11
+ import AFooterNew from "./newComponents/FooterNew/FooterNew";
12
+ import ASearchTextField from "./SearchTextField/SearchTextField";
13
+ import AMailTo from "./MailTo/MailTo";
14
+ import ATable from "./Table/ATable";
15
+ import ALoader from "./Loader/Loader";
16
+ import ABottomNavigationBar from "./BottomNavigationBar/ABottomNavigationBar";
17
+ import ANavIcon from "./NavIcon/ANavIcon";
18
+ import AServiceSlider from "./ServiceSlider/AServiceSlider";
19
+ // import ABadGateway from "./ErrorPages/BadGateway";
20
+ // import AForbidden from "./ErrorPages/Forbidden";
21
+ // import AInternalServerError from "./ErrorPages/InternalServerError";
22
+ // import ANotFound from "./ErrorPages/NotFound";
23
+ // import AUnavailable from "./ErrorPages/Unavailable";
24
+
25
+ const Components = {
26
+ ACheckbox,
27
+ AButton,
28
+ ATextField,
29
+ ATextArea,
30
+ APasswordField,
31
+ AAlert,
32
+ AHeader,
33
+ AFooter,
34
+ AFooterNew,
35
+ ASearchTextField,
36
+ AMailTo,
37
+ ATable,
38
+ ALoader,
39
+ ACheckboxMenu,
40
+ ABottomNavigationBar,
41
+ ANavIcon,
42
+ AServiceSlider
43
+ // ABadGateway,
44
+ // AForbidden,
45
+ // AInternalServerError,
46
+ // ANotFound,
47
+ // AUnavailable,
48
+ };
49
+
50
+ Object.keys(Components).forEach((name) => {
51
+ Vue.component(name, Components[name]);
52
+ });
53
+
54
+ export default Components;