adata-ui 0.1.2 → 0.1.6

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 (49) hide show
  1. package/README.md +3 -20
  2. package/dist/adata-ui.common.js +4478 -290
  3. package/dist/adata-ui.common.js.map +1 -1
  4. package/dist/adata-ui.css +1 -1
  5. package/dist/adata-ui.umd.js +4478 -290
  6. package/dist/adata-ui.umd.js.map +1 -1
  7. package/dist/adata-ui.umd.min.js +1 -1
  8. package/dist/adata-ui.umd.min.js.map +1 -1
  9. package/package-lock.json +25791 -12100
  10. package/package.json +71 -52
  11. package/src/App.vue +23 -28
  12. package/src/components/Alert/Alert.stories.js +17 -0
  13. package/src/components/Alert/Alert.vue +63 -0
  14. package/src/components/Button/BaseButton.vue +241 -0
  15. package/src/components/Button/Button.stories.js +23 -0
  16. package/src/components/Footer/Footer.stories.js +20 -0
  17. package/src/components/Footer/Footer.vue +233 -0
  18. package/src/components/Header/Header.stories.js +55 -0
  19. package/src/components/Header/Header.vue +315 -0
  20. package/src/components/Header/Profile.vue +806 -0
  21. package/src/components/PasswordField/PasswordField.stories.js +16 -0
  22. package/src/components/PasswordField/PasswordField.vue +68 -0
  23. package/src/components/TextField/TextField.stories.js +17 -0
  24. package/src/components/TextField/TextField.vue +355 -0
  25. package/src/components/index.js +12 -5
  26. package/src/components/transitions/SlideToggle.vue +55 -0
  27. package/src/components/transitions/VerticalMobileToggle.vue +76 -0
  28. package/src/configs/navigationBarConfig.js +22 -0
  29. package/src/configs/profileDropDown.js +101 -0
  30. package/src/stories/Button.stories.js +46 -0
  31. package/src/stories/Button.vue +54 -0
  32. package/src/stories/Header.stories.js +21 -0
  33. package/src/stories/Header.vue +59 -0
  34. package/src/stories/Introduction.stories.mdx +211 -0
  35. package/src/stories/Page.stories.js +25 -0
  36. package/src/stories/Page.vue +88 -0
  37. package/src/stories/assets/code-brackets.svg +1 -0
  38. package/src/stories/assets/colors.svg +1 -0
  39. package/src/stories/assets/comments.svg +1 -0
  40. package/src/stories/assets/direction.svg +1 -0
  41. package/src/stories/assets/flow.svg +1 -0
  42. package/src/stories/assets/plugin.svg +1 -0
  43. package/src/stories/assets/repo.svg +1 -0
  44. package/src/stories/assets/stackalt.svg +1 -0
  45. package/src/stories/button.css +30 -0
  46. package/src/stories/header.css +26 -0
  47. package/src/stories/page.css +69 -0
  48. package/src/components/Button.vue +0 -18
  49. package/src/components/HelloWorld.vue +0 -58
@@ -0,0 +1,30 @@
1
+ .storybook-button {
2
+ font-family: 'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
3
+ font-weight: 700;
4
+ border: 0;
5
+ border-radius: 3em;
6
+ cursor: pointer;
7
+ display: inline-block;
8
+ line-height: 1;
9
+ }
10
+ .storybook-button--primary {
11
+ color: white;
12
+ background-color: #1ea7fd;
13
+ }
14
+ .storybook-button--secondary {
15
+ color: #333;
16
+ background-color: transparent;
17
+ box-shadow: rgba(0, 0, 0, 0.15) 0px 0px 0px 1px inset;
18
+ }
19
+ .storybook-button--small {
20
+ font-size: 12px;
21
+ padding: 10px 16px;
22
+ }
23
+ .storybook-button--medium {
24
+ font-size: 14px;
25
+ padding: 11px 20px;
26
+ }
27
+ .storybook-button--large {
28
+ font-size: 16px;
29
+ padding: 12px 24px;
30
+ }
@@ -0,0 +1,26 @@
1
+ .wrapper {
2
+ font-family: 'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
3
+ border-bottom: 1px solid rgba(0, 0, 0, 0.1);
4
+ padding: 15px 20px;
5
+ display: flex;
6
+ align-items: center;
7
+ justify-content: space-between;
8
+ }
9
+
10
+ svg {
11
+ display: inline-block;
12
+ vertical-align: top;
13
+ }
14
+
15
+ h1 {
16
+ font-weight: 900;
17
+ font-size: 20px;
18
+ line-height: 1;
19
+ margin: 6px 0 6px 10px;
20
+ display: inline-block;
21
+ vertical-align: top;
22
+ }
23
+
24
+ button + button {
25
+ margin-left: 10px;
26
+ }
@@ -0,0 +1,69 @@
1
+ section {
2
+ font-family: 'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
3
+ font-size: 14px;
4
+ line-height: 24px;
5
+ padding: 48px 20px;
6
+ margin: 0 auto;
7
+ max-width: 600px;
8
+ color: #333;
9
+ }
10
+
11
+ section h2 {
12
+ font-weight: 900;
13
+ font-size: 32px;
14
+ line-height: 1;
15
+ margin: 0 0 4px;
16
+ display: inline-block;
17
+ vertical-align: top;
18
+ }
19
+
20
+ section p {
21
+ margin: 1em 0;
22
+ }
23
+
24
+ section a {
25
+ text-decoration: none;
26
+ color: #1ea7fd;
27
+ }
28
+
29
+ section ul {
30
+ padding-left: 30px;
31
+ margin: 1em 0;
32
+ }
33
+
34
+ section li {
35
+ margin-bottom: 8px;
36
+ }
37
+
38
+ section .tip {
39
+ display: inline-block;
40
+ border-radius: 1em;
41
+ font-size: 11px;
42
+ line-height: 12px;
43
+ font-weight: 700;
44
+ background: #e7fdd8;
45
+ color: #66bf3c;
46
+ padding: 4px 12px;
47
+ margin-right: 10px;
48
+ vertical-align: top;
49
+ }
50
+
51
+ section .tip-wrapper {
52
+ font-size: 13px;
53
+ line-height: 20px;
54
+ margin-top: 40px;
55
+ margin-bottom: 40px;
56
+ }
57
+
58
+ section .tip-wrapper svg {
59
+ display: inline-block;
60
+ height: 12px;
61
+ width: 12px;
62
+ margin-right: 4px;
63
+ vertical-align: top;
64
+ margin-top: 3px;
65
+ }
66
+
67
+ section .tip-wrapper svg path {
68
+ fill: #1ea7fd;
69
+ }
@@ -1,18 +0,0 @@
1
- <template>
2
- <div class="red">
3
- hello
4
- </div>
5
- </template>
6
-
7
- <script>
8
- export default {
9
- name: "AdataButton"
10
- }
11
- </script>
12
-
13
- <style scoped>
14
- .red {
15
- background: red;
16
- padding: 8px 16px;
17
- }
18
- </style>
@@ -1,58 +0,0 @@
1
- <template>
2
- <div class="hello">
3
- <h1>{{ msg }}</h1>
4
- <p>
5
- For a guide and recipes on how to configure / customize this project,<br>
6
- check out the
7
- <a href="https://cli.vuejs.org" target="_blank" rel="noopener">vue-cli documentation</a>.
8
- </p>
9
- <h3>Installed CLI Plugins</h3>
10
- <ul>
11
- <li><a href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-babel" target="_blank" rel="noopener">babel</a></li>
12
- <li><a href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-eslint" target="_blank" rel="noopener">eslint</a></li>
13
- </ul>
14
- <h3>Essential Links</h3>
15
- <ul>
16
- <li><a href="https://vuejs.org" target="_blank" rel="noopener">Core Docs</a></li>
17
- <li><a href="https://forum.vuejs.org" target="_blank" rel="noopener">Forum</a></li>
18
- <li><a href="https://chat.vuejs.org" target="_blank" rel="noopener">Community Chat</a></li>
19
- <li><a href="https://twitter.com/vuejs" target="_blank" rel="noopener">Twitter</a></li>
20
- <li><a href="https://news.vuejs.org" target="_blank" rel="noopener">News</a></li>
21
- </ul>
22
- <h3>Ecosystem</h3>
23
- <ul>
24
- <li><a href="https://router.vuejs.org" target="_blank" rel="noopener">vue-router</a></li>
25
- <li><a href="https://vuex.vuejs.org" target="_blank" rel="noopener">vuex</a></li>
26
- <li><a href="https://github.com/vuejs/vue-devtools#vue-devtools" target="_blank" rel="noopener">vue-devtools</a></li>
27
- <li><a href="https://vue-loader.vuejs.org" target="_blank" rel="noopener">vue-loader</a></li>
28
- <li><a href="https://github.com/vuejs/awesome-vue" target="_blank" rel="noopener">awesome-vue</a></li>
29
- </ul>
30
- </div>
31
- </template>
32
-
33
- <script>
34
- export default {
35
- name: 'HelloWorld',
36
- props: {
37
- msg: String
38
- }
39
- }
40
- </script>
41
-
42
- <!-- Add "scoped" attribute to limit CSS to this component only -->
43
- <style scoped>
44
- h3 {
45
- margin: 40px 0 0;
46
- }
47
- ul {
48
- list-style-type: none;
49
- padding: 0;
50
- }
51
- li {
52
- display: inline-block;
53
- margin: 0 10px;
54
- }
55
- a {
56
- color: #42b983;
57
- }
58
- </style>