@weni/unnnic-system 1.10.19 → 1.10.21

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 (210) hide show
  1. package/.eslintrc.js +3 -8
  2. package/.prettierrc.json +3 -0
  3. package/README.md +2 -2
  4. package/dist/scss/colors.scss +97 -97
  5. package/dist/scss/fonts.scss +33 -33
  6. package/dist/scss/grid.scss +51 -51
  7. package/dist/scss/spacing.scss +92 -92
  8. package/dist/scss/unnnic.scss +10 -10
  9. package/dist/unnnic.common.js +87 -27
  10. package/dist/unnnic.common.js.map +1 -1
  11. package/dist/unnnic.css +1 -1
  12. package/dist/unnnic.umd.js +87 -27
  13. package/dist/unnnic.umd.js.map +1 -1
  14. package/dist/unnnic.umd.min.js +8 -8
  15. package/dist/unnnic.umd.min.js.map +1 -1
  16. package/package-lock.json +27271 -27271
  17. package/package.json +1 -1
  18. package/public/index.html +17 -17
  19. package/src/assets/fonts/fonts/icomoon.svg +163 -163
  20. package/src/assets/fonts/icons.css +582 -582
  21. package/src/assets/icons/Brazil.svg +21 -21
  22. package/src/assets/icons/Spain.svg +498 -498
  23. package/src/assets/icons/USA.svg +28 -28
  24. package/src/assets/icons/add-1.svg +3 -3
  25. package/src/assets/icons/add-circle-1.svg +4 -4
  26. package/src/assets/icons/alarm-bell-2.svg +4 -4
  27. package/src/assets/icons/alarm-bell-3.svg +4 -4
  28. package/src/assets/icons/alarm-bell-ring.svg +8 -0
  29. package/src/assets/icons/alert-circle-1-1.svg +3 -3
  30. package/src/assets/icons/alert-circle-1.svg +5 -5
  31. package/src/assets/icons/american-express.svg +4 -4
  32. package/src/assets/icons/app-window-edit-1.svg +4 -4
  33. package/src/assets/icons/app-window-edit-2.svg +9 -9
  34. package/src/assets/icons/arrow-button-down-1.svg +3 -3
  35. package/src/assets/icons/arrow-button-up-1.svg +3 -3
  36. package/src/assets/icons/arrow-down-1-1.svg +3 -3
  37. package/src/assets/icons/arrow-left-1-1.svg +3 -3
  38. package/src/assets/icons/arrow-redo.svg +3 -3
  39. package/src/assets/icons/arrow-right-1-1.svg +3 -3
  40. package/src/assets/icons/arrow-undo.svg +3 -3
  41. package/src/assets/icons/attachment.svg +3 -3
  42. package/src/assets/icons/bin-1-1.svg +5 -5
  43. package/src/assets/icons/book-address-1-2.svg +4 -4
  44. package/src/assets/icons/book-address-2.svg +3 -3
  45. package/src/assets/icons/book-library-1.svg +9 -9
  46. package/src/assets/icons/book-library-2.svg +3 -3
  47. package/src/assets/icons/building-2-1.svg +13 -13
  48. package/src/assets/icons/button-play-1.svg +4 -4
  49. package/src/assets/icons/button-refresh-arrow-1.svg +3 -3
  50. package/src/assets/icons/button-refresh-arrows-1.svg +4 -4
  51. package/src/assets/icons/charger-1.svg +4 -4
  52. package/src/assets/icons/chat-translate-1.svg +6 -6
  53. package/src/assets/icons/check-2.svg +3 -3
  54. package/src/assets/icons/check-circle-1-1-1.svg +3 -3
  55. package/src/assets/icons/check-circle-1-1.svg +4 -4
  56. package/src/assets/icons/check-double.svg +3 -0
  57. package/src/assets/icons/check-square-1.svg +4 -4
  58. package/src/assets/icons/check-square-2.svg +4 -4
  59. package/src/assets/icons/checkbox-default.svg +3 -3
  60. package/src/assets/icons/checkbox-disable.svg +3 -3
  61. package/src/assets/icons/checkbox-less.svg +4 -4
  62. package/src/assets/icons/checkbox-select.svg +4 -4
  63. package/src/assets/icons/close-1.svg +3 -3
  64. package/src/assets/icons/cog-1.svg +4 -4
  65. package/src/assets/icons/cog-2.svg +3 -3
  66. package/src/assets/icons/common-file-empty-1.svg +3 -3
  67. package/src/assets/icons/common-file-horizontal-image-1.svg +5 -5
  68. package/src/assets/icons/controls-pause-1.svg +4 -4
  69. package/src/assets/icons/controls-play-1.svg +3 -3
  70. package/src/assets/icons/copy-paste-1.svg +7 -7
  71. package/src/assets/icons/currency-dollar-circle-1.svg +4 -4
  72. package/src/assets/icons/default-avatar.svg +5 -5
  73. package/src/assets/icons/delete-1-1.svg +4 -4
  74. package/src/assets/icons/delete-1.svg +3 -3
  75. package/src/assets/icons/delete-2-1.svg +3 -3
  76. package/src/assets/icons/developer-community-github-1-1.svg +3 -3
  77. package/src/assets/icons/diners-club.svg +6 -6
  78. package/src/assets/icons/discover.svg +11 -11
  79. package/src/assets/icons/download-bottom-1.svg +4 -4
  80. package/src/assets/icons/download-thick-bottom-1.svg +4 -4
  81. package/src/assets/icons/drag-1.svg +10 -10
  82. package/src/assets/icons/email-action-unread-1-1.svg +4 -4
  83. package/src/assets/icons/email-action-unread-1.svg +10 -10
  84. package/src/assets/icons/expand-8-1.svg +6 -6
  85. package/src/assets/icons/expand-full-1.svg +7 -7
  86. package/src/assets/icons/export-1.svg +5 -5
  87. package/src/assets/icons/filter.svg +3 -3
  88. package/src/assets/icons/fitness-biceps-1.svg +3 -3
  89. package/src/assets/icons/flash-1-3.svg +3 -3
  90. package/src/assets/icons/flash-1-4.svg +3 -3
  91. package/src/assets/icons/floppy-disk-1.svg +6 -6
  92. package/src/assets/icons/folder-1.svg +3 -3
  93. package/src/assets/icons/folder-2.svg +3 -3
  94. package/src/assets/icons/gauge-dashboard-1.svg +4 -4
  95. package/src/assets/icons/gauge-dashboard-2.svg +8 -8
  96. package/src/assets/icons/generic-card.svg +4 -4
  97. package/src/assets/icons/graph-stats-1.svg +3 -3
  98. package/src/assets/icons/graph-stats-ascend-2.svg +3 -3
  99. package/src/assets/icons/graph-stats-circle-1-1.svg +4 -4
  100. package/src/assets/icons/graph-stats-circle-1.svg +4 -4
  101. package/src/assets/icons/graph-stats-descend-2.svg +4 -4
  102. package/src/assets/icons/headphones-customer-support-1.svg +3 -3
  103. package/src/assets/icons/headphones-customer-support-2.svg +3 -3
  104. package/src/assets/icons/headphones-customer-support-human-1-1.svg +4 -4
  105. package/src/assets/icons/hierarchy-3-2.svg +3 -3
  106. package/src/assets/icons/hierarchy-3-3.svg +3 -3
  107. package/src/assets/icons/house-1-1.svg +4 -4
  108. package/src/assets/icons/house-2-2.svg +3 -3
  109. package/src/assets/icons/icon-script.py +27 -27
  110. package/src/assets/icons/indicator.svg +3 -3
  111. package/src/assets/icons/information-circle-4.svg +3 -3
  112. package/src/assets/icons/jcb.svg +21 -21
  113. package/src/assets/icons/keyboard-arrow-down-1.svg +3 -3
  114. package/src/assets/icons/keyboard-arrow-left-1.svg +3 -3
  115. package/src/assets/icons/keyboard-arrow-right-1.svg +3 -3
  116. package/src/assets/icons/keyboard-return-1-1.svg +3 -3
  117. package/src/assets/icons/keyboard-return-1.svg +4 -4
  118. package/src/assets/icons/layout-dashboard-1.svg +6 -6
  119. package/src/assets/icons/layout-dashboard-2.svg +6 -6
  120. package/src/assets/icons/layout-module-1-2.svg +6 -6
  121. package/src/assets/icons/loading-circle-1.svg +19 -19
  122. package/src/assets/icons/lock-2-1.svg +4 -4
  123. package/src/assets/icons/lock-2-2.svg +3 -3
  124. package/src/assets/icons/lock-unlock-1-1.svg +4 -4
  125. package/src/assets/icons/logout-1-1.svg +4 -4
  126. package/src/assets/icons/mastercard.svg +6 -6
  127. package/src/assets/icons/messages-bubble-1.svg +3 -3
  128. package/src/assets/icons/messages-bubble-3.svg +3 -3
  129. package/src/assets/icons/messages-bubble-4.svg +3 -3
  130. package/src/assets/icons/messaging-we-chat-2.svg +4 -4
  131. package/src/assets/icons/messaging-we-chat-3.svg +8 -8
  132. package/src/assets/icons/messaging-whatsapp-1.svg +4 -4
  133. package/src/assets/icons/microphone.svg +4 -4
  134. package/src/assets/icons/navigation-menu-vertical-1.svg +5 -5
  135. package/src/assets/icons/notes-1.svg +7 -7
  136. package/src/assets/icons/office-file-pdf-1-1.svg +6 -6
  137. package/src/assets/icons/paginate-filter-text-1.svg +7 -7
  138. package/src/assets/icons/pencil-write-1.svg +4 -4
  139. package/src/assets/icons/phone-3.svg +3 -3
  140. package/src/assets/icons/phone-4.svg +3 -3
  141. package/src/assets/icons/phone-charger-1.svg +3 -3
  142. package/src/assets/icons/photography-equipment-bag-1.svg +5 -5
  143. package/src/assets/icons/pie-line-graph-1.svg +7 -7
  144. package/src/assets/icons/question-circle-1.svg +5 -5
  145. package/src/assets/icons/question-circle-2.svg +3 -3
  146. package/src/assets/icons/radio-default.svg +3 -3
  147. package/src/assets/icons/radio-disable.svg +3 -3
  148. package/src/assets/icons/radio-selected.svg +4 -4
  149. package/src/assets/icons/rating-star-1-1.svg +3 -0
  150. package/src/assets/icons/rating-star-1.svg +3 -3
  151. package/src/assets/icons/read-email-at-1.svg +10 -10
  152. package/src/assets/icons/science-fiction-robot-1.svg +8 -8
  153. package/src/assets/icons/science-fiction-robot-2.svg +5 -5
  154. package/src/assets/icons/search-1.svg +3 -3
  155. package/src/assets/icons/send-email-3-1.svg +3 -3
  156. package/src/assets/icons/single-neutral-2.svg +4 -4
  157. package/src/assets/icons/single-neutral-actions-1.svg +4 -4
  158. package/src/assets/icons/social-media-google-1.svg +6 -6
  159. package/src/assets/icons/sort-asc.svg +4 -4
  160. package/src/assets/icons/sort-default.svg +4 -4
  161. package/src/assets/icons/sort-desc.svg +4 -4
  162. package/src/assets/icons/study-light-idea-1.svg +10 -10
  163. package/src/assets/icons/subtract-1.svg +3 -3
  164. package/src/assets/icons/subtract-circle-1.svg +4 -4
  165. package/src/assets/icons/switch-default-disabled.svg +4 -4
  166. package/src/assets/icons/switch-default.svg +11 -11
  167. package/src/assets/icons/switch-selected-disabled.svg +4 -4
  168. package/src/assets/icons/switch-selected.svg +11 -11
  169. package/src/assets/icons/synchronize-arrow-clock-4.svg +4 -4
  170. package/src/assets/icons/synchronize-arrow-clock-5.svg +4 -4
  171. package/src/assets/icons/task-checklist-1.svg +4 -4
  172. package/src/assets/icons/task-list-clock-1.svg +9 -9
  173. package/src/assets/icons/text-bold.svg +3 -3
  174. package/src/assets/icons/text-center.svg +7 -7
  175. package/src/assets/icons/text-italic.svg +3 -3
  176. package/src/assets/icons/text-justified.svg +7 -7
  177. package/src/assets/icons/text-left.svg +7 -7
  178. package/src/assets/icons/text-right.svg +7 -7
  179. package/src/assets/icons/text-underline.svg +4 -4
  180. package/src/assets/icons/ticket-1.svg +9 -9
  181. package/src/assets/icons/ticket-2.svg +4 -4
  182. package/src/assets/icons/time-clock-circle-1.svg +4 -4
  183. package/src/assets/icons/translate-1.svg +8 -8
  184. package/src/assets/icons/translate-2.svg +8 -8
  185. package/src/assets/icons/typing-1.svg +4 -4
  186. package/src/assets/icons/unionpay.svg +7 -7
  187. package/src/assets/icons/unordered-list.svg +8 -8
  188. package/src/assets/icons/upload-bottom-1.svg +4 -4
  189. package/src/assets/icons/video-file-mp4-1.svg +6 -6
  190. package/src/assets/icons/view-1-1.svg +4 -4
  191. package/src/assets/icons/view-off-1.svg +7 -7
  192. package/src/assets/icons/vip-crown-queen-2.svg +4 -4
  193. package/src/assets/icons/visa.svg +8 -8
  194. package/src/assets/img/flag/en.svg +28 -28
  195. package/src/assets/img/flag/pt-br.svg +21 -21
  196. package/src/assets/scss/colors.scss +97 -97
  197. package/src/assets/scss/fonts.scss +33 -33
  198. package/src/assets/scss/grid.scss +51 -51
  199. package/src/assets/scss/spacing.scss +92 -92
  200. package/src/assets/scss/unnnic.scss +10 -10
  201. package/src/components/TextArea/TextArea.vue +56 -3
  202. package/src/locales/en.json +15 -15
  203. package/src/locales/es.json +15 -15
  204. package/src/locales/pt_br.json +15 -15
  205. package/src/stories/AudioRecorder.stories.js +1 -1
  206. package/src/stories/Introduction.stories.mdx +207 -207
  207. package/src/stories/TextArea.stories.js +3 -0
  208. package/src/utils/icons.js +6 -0
  209. package/src/assets/1667509049894.mp3 +0 -0
  210. package/src/assets/sample-3s.mp3 +0 -0
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div :class="['unnnic-text-area', { disabled }, size]">
2
+ <div :class="['unnnic-text-area', { disabled }, size, type]">
3
3
  <div v-if="label" class="label">{{ label }}</div>
4
4
 
5
5
  <textarea
@@ -10,7 +10,14 @@
10
10
  @input="$emit('input', $event.srcElement.value)"
11
11
  ></textarea>
12
12
 
13
- <div v-if="maxLength" class="helper">{{ value.length }}/{{ maxLength }}</div>
13
+ <div v-if="(maxLength && type === 'normal')" class="helper">
14
+ {{ value.length }}/{{ maxLength }}
15
+ </div>
16
+ <div v-if="type === 'error'" class="error-list">
17
+ <span v-for="(error, index) in errors" :key="index">
18
+ {{ error }}
19
+ </span>
20
+ </div>
14
21
  </div>
15
22
  </template>
16
23
 
@@ -41,12 +48,25 @@ export default {
41
48
  disabled: {
42
49
  type: Boolean,
43
50
  },
51
+
52
+ type: {
53
+ type: String,
54
+ default: 'normal',
55
+ validator(value) {
56
+ return ['normal', 'error'].indexOf(value) !== -1;
57
+ },
58
+ },
59
+
60
+ errors: {
61
+ type: Array,
62
+ default: () => [],
63
+ },
44
64
  },
45
65
  };
46
66
  </script>
47
67
 
48
68
  <style lang="scss" scoped>
49
- @import "../../assets/scss/unnnic.scss";
69
+ @import '../../assets/scss/unnnic.scss';
50
70
 
51
71
  .unnnic-text-area {
52
72
  .label {
@@ -136,5 +156,38 @@ export default {
136
156
  color: $unnnic-color-neutral-cleanest;
137
157
  }
138
158
  }
159
+
160
+ &.error {
161
+ .label {
162
+ color: $unnnic-color-feedback-red;
163
+ }
164
+
165
+ textarea {
166
+ border-color: $unnnic-color-feedback-red;
167
+ &::placeholder {
168
+ color: $unnnic-color-feedback-red;
169
+ }
170
+ }
171
+
172
+ .error-list {
173
+ display: flex;
174
+ flex-direction: column;
175
+ align-items: flex-end;
176
+ width: 100%;
177
+
178
+ color: $unnnic-color-feedback-red;
179
+ font-family: $unnnic-font-family-secondary;
180
+ font-size: $unnnic-font-size-body-md;
181
+ line-height: $unnnic-font-size-body-md + $unnnic-line-height-md;
182
+ font-weight: $unnnic-font-weight-regular;
183
+ margin-top: $unnnic-spacing-stack-nano;
184
+
185
+ span {
186
+ max-width: 100%;
187
+ word-wrap: break-word;
188
+ text-align: right;
189
+ }
190
+ }
191
+ }
139
192
  }
140
193
  </style>
@@ -1,15 +1,15 @@
1
- {
2
- "upload_area": {
3
- "title": {
4
- "text": "Drag your file here or",
5
- "highlight": "search it"
6
- },
7
- "invalid": {
8
- "subtitle": "File not supported, select supported formats:"
9
- },
10
- "subtitle": "Supported formats:"
11
- },
12
- "import_card": {
13
- "importing": "Importing"
14
- }
15
- }
1
+ {
2
+ "upload_area": {
3
+ "title": {
4
+ "text": "Drag your file here or",
5
+ "highlight": "search it"
6
+ },
7
+ "invalid": {
8
+ "subtitle": "File not supported, select supported formats:"
9
+ },
10
+ "subtitle": "Supported formats:"
11
+ },
12
+ "import_card": {
13
+ "importing": "Importing"
14
+ }
15
+ }
@@ -1,15 +1,15 @@
1
- {
2
- "upload_area": {
3
- "title": {
4
- "text": "Arrastra tu archivo aquí o",
5
- "highlight": "búscalo"
6
- },
7
- "invalid": {
8
- "subtitle": "Archivo no compatible, seleccione los formatos compatibles:"
9
- },
10
- "subtitle": "Formatos compatibles:"
11
- },
12
- "import_card": {
13
- "importing": "Importando"
14
- }
15
- }
1
+ {
2
+ "upload_area": {
3
+ "title": {
4
+ "text": "Arrastra tu archivo aquí o",
5
+ "highlight": "búscalo"
6
+ },
7
+ "invalid": {
8
+ "subtitle": "Archivo no compatible, seleccione los formatos compatibles:"
9
+ },
10
+ "subtitle": "Formatos compatibles:"
11
+ },
12
+ "import_card": {
13
+ "importing": "Importando"
14
+ }
15
+ }
@@ -1,15 +1,15 @@
1
- {
2
- "upload_area": {
3
- "title": {
4
- "text": "Arraste seu arquivo aqui, ou",
5
- "highlight": "procure-o"
6
- },
7
- "invalid": {
8
- "subtitle": "Arquivo não compatível, selecione formatos suportados:"
9
- },
10
- "subtitle": "Formatos suportados:"
11
- },
12
- "import_card": {
13
- "importing": "Importando"
14
- }
15
- }
1
+ {
2
+ "upload_area": {
3
+ "title": {
4
+ "text": "Arraste seu arquivo aqui, ou",
5
+ "highlight": "procure-o"
6
+ },
7
+ "invalid": {
8
+ "subtitle": "Arquivo não compatível, selecione formatos suportados:"
9
+ },
10
+ "subtitle": "Formatos suportados:"
11
+ },
12
+ "import_card": {
13
+ "importing": "Importando"
14
+ }
15
+ }
@@ -38,5 +38,5 @@ Default.args = {
38
38
  export const Player = Template.bind({});
39
39
 
40
40
  Player.args = {
41
- src: 'http://127.0.0.1:8081/1667509049894.mp3',
41
+ src: 'http://172.17.32.1:8080/sample-3s.mp3',
42
42
  };
@@ -1,207 +1,207 @@
1
- import { Meta } from '@storybook/addon-docs/blocks';
2
- import Code from './assets/code-brackets.svg';
3
- import Colors from './assets/colors.svg';
4
- import Comments from './assets/comments.svg';
5
- import Direction from './assets/direction.svg';
6
- import Flow from './assets/flow.svg';
7
- import Plugin from './assets/plugin.svg';
8
- import Repo from './assets/repo.svg';
9
- import StackAlt from './assets/stackalt.svg';
10
-
11
- <Meta title="Example/Introduction" />
12
-
13
- <style>{`
14
- .subheading {
15
- --mediumdark: '#999999';
16
- font-weight: 900;
17
- font-size: 13px;
18
- color: #999;
19
- letter-spacing: 6px;
20
- line-height: 24px;
21
- text-transform: uppercase;
22
- margin-bottom: 12px;
23
- margin-top: 40px;
24
- }
25
-
26
- .link-list {
27
- display: grid;
28
- grid-template-columns: 1fr;
29
- grid-template-rows: 1fr 1fr;
30
- row-gap: 10px;
31
- }
32
-
33
- @media (min-width: 620px) {
34
- .link-list {
35
- row-gap: 20px;
36
- column-gap: 20px;
37
- grid-template-columns: 1fr 1fr;
38
- }
39
- }
40
-
41
- @media all and (-ms-high-contrast:none) {
42
- .link-list {
43
- display: -ms-grid;
44
- -ms-grid-columns: 1fr 1fr;
45
- -ms-grid-rows: 1fr 1fr;
46
- }
47
- }
48
-
49
- .link-item {
50
- display: block;
51
- padding: 20px 30px 20px 15px;
52
- border: 1px solid #00000010;
53
- border-radius: 5px;
54
- transition: background 150ms ease-out, border 150ms ease-out, transform 150ms ease-out;
55
- color: #333333;
56
- display: flex;
57
- align-items: flex-start;
58
- }
59
-
60
- .link-item:hover {
61
- border-color: #1EA7FD50;
62
- transform: translate3d(0, -3px, 0);
63
- box-shadow: rgba(0, 0, 0, 0.08) 0 3px 10px 0;
64
- }
65
-
66
- .link-item:active {
67
- border-color: #1EA7FD;
68
- transform: translate3d(0, 0, 0);
69
- }
70
-
71
- .link-item strong {
72
- font-weight: 700;
73
- display: block;
74
- margin-bottom: 2px;
75
- }
76
-
77
- .link-item img {
78
- height: 40px;
79
- width: 40px;
80
- margin-right: 15px;
81
- flex: none;
82
- }
83
-
84
- .link-item span {
85
- font-size: 14px;
86
- line-height: 20px;
87
- }
88
-
89
- .tip {
90
- display: inline-block;
91
- border-radius: 1em;
92
- font-size: 11px;
93
- line-height: 12px;
94
- font-weight: 700;
95
- background: #E7FDD8;
96
- color: #66BF3C;
97
- padding: 4px 12px;
98
- margin-right: 10px;
99
- vertical-align: top;
100
- }
101
-
102
- .tip-wrapper {
103
- font-size: 13px;
104
- line-height: 20px;
105
- margin-top: 40px;
106
- margin-bottom: 40px;
107
- }
108
-
109
- .tip-wrapper code {
110
- font-size: 12px;
111
- display: inline-block;
112
- }
113
-
114
-
115
- `}</style>
116
-
117
- # Welcome to Storybook
118
-
119
- Storybook helps you build UI components in isolation from your app's business logic, data, and context.
120
- That makes it easy to develop hard-to-reach states. Save these UI states as **stories** to revisit during development, testing, or QA.
121
-
122
- Browse example stories now by navigating to them in the sidebar.
123
- View their code in the `src/storybook-examples` directory to learn how they work.
124
- We recommend building UIs with a [**component-driven**](https://componentdriven.org) process starting with atomic components and ending with pages.
125
-
126
- <div className="subheading">Configure</div>
127
-
128
- <div className="link-list">
129
- <a className="link-item" href="https://storybook.js.org/docs/react/api/presets" target="_blank">
130
- <img src={Plugin} alt="plugin" />
131
- <span>
132
- <strong>Presets for popular tools</strong>
133
- Easy setup for TypeScript, SCSS and more.
134
- </span>
135
- </a>
136
- <a
137
- className="link-item"
138
- href="https://storybook.js.org/docs/react/configure/webpack"
139
- target="_blank"
140
- >
141
- <img src={StackAlt} alt="Build" />
142
- <span>
143
- <strong>Build configuration</strong>
144
- How to customize webpack and Babel
145
- </span>
146
- </a>
147
- <a
148
- className="link-item"
149
- href="https://storybook.js.org/docs/react/configure/styling-and-css"
150
- target="_blank"
151
- >
152
- <img src={Colors} alt="colors" />
153
- <span>
154
- <strong>Styling</strong>
155
- How to load and configure CSS libraries
156
- </span>
157
- </a>
158
- <a
159
- className="link-item"
160
- href="https://storybook.js.org/docs/react/get-started/setup#configure-storybook-for-your-stack"
161
- target="_blank"
162
- >
163
- <img src={Flow} alt="flow" />
164
- <span>
165
- <strong>Data</strong>
166
- Providers and mocking for data libraries
167
- </span>
168
- </a>
169
- </div>
170
-
171
- <div className="subheading">Learn</div>
172
-
173
- <div className="link-list">
174
- <a className="link-item" href="https://storybook.js.org/docs" target="_blank">
175
- <img src={Repo} alt="repo" />
176
- <span>
177
- <strong>Storybook documentation</strong>
178
- Configure, customize, and extend
179
- </span>
180
- </a>
181
- <a className="link-item" href="https://www.learnstorybook.com" target="_blank">
182
- <img src={Direction} alt="direction" />
183
- <span>
184
- <strong>In-depth guides</strong>
185
- Best practices from leading teams
186
- </span>
187
- </a>
188
- <a className="link-item" href="https://github.com/storybookjs/storybook" target="_blank">
189
- <img src={Code} alt="code" />
190
- <span>
191
- <strong>GitHub project</strong>
192
- View the source and add issues
193
- </span>
194
- </a>
195
- <a className="link-item" href="https://discord.gg/UUt2PJb" target="_blank">
196
- <img src={Comments} alt="comments" />
197
- <span>
198
- <strong>Discord chat</strong>
199
- Chat with maintainers and the community
200
- </span>
201
- </a>
202
- </div>
203
-
204
- <div className="tip-wrapper">
205
- <span className="tip">Tip</span>Edit the Markdown in{' '}
206
- <code>src/storybook-examples/welcome.mdx</code>
207
- </div>
1
+ import { Meta } from '@storybook/addon-docs/blocks';
2
+ import Code from './assets/code-brackets.svg';
3
+ import Colors from './assets/colors.svg';
4
+ import Comments from './assets/comments.svg';
5
+ import Direction from './assets/direction.svg';
6
+ import Flow from './assets/flow.svg';
7
+ import Plugin from './assets/plugin.svg';
8
+ import Repo from './assets/repo.svg';
9
+ import StackAlt from './assets/stackalt.svg';
10
+
11
+ <Meta title="Example/Introduction" />
12
+
13
+ <style>{`
14
+ .subheading {
15
+ --mediumdark: '#999999';
16
+ font-weight: 900;
17
+ font-size: 13px;
18
+ color: #999;
19
+ letter-spacing: 6px;
20
+ line-height: 24px;
21
+ text-transform: uppercase;
22
+ margin-bottom: 12px;
23
+ margin-top: 40px;
24
+ }
25
+
26
+ .link-list {
27
+ display: grid;
28
+ grid-template-columns: 1fr;
29
+ grid-template-rows: 1fr 1fr;
30
+ row-gap: 10px;
31
+ }
32
+
33
+ @media (min-width: 620px) {
34
+ .link-list {
35
+ row-gap: 20px;
36
+ column-gap: 20px;
37
+ grid-template-columns: 1fr 1fr;
38
+ }
39
+ }
40
+
41
+ @media all and (-ms-high-contrast:none) {
42
+ .link-list {
43
+ display: -ms-grid;
44
+ -ms-grid-columns: 1fr 1fr;
45
+ -ms-grid-rows: 1fr 1fr;
46
+ }
47
+ }
48
+
49
+ .link-item {
50
+ display: block;
51
+ padding: 20px 30px 20px 15px;
52
+ border: 1px solid #00000010;
53
+ border-radius: 5px;
54
+ transition: background 150ms ease-out, border 150ms ease-out, transform 150ms ease-out;
55
+ color: #333333;
56
+ display: flex;
57
+ align-items: flex-start;
58
+ }
59
+
60
+ .link-item:hover {
61
+ border-color: #1EA7FD50;
62
+ transform: translate3d(0, -3px, 0);
63
+ box-shadow: rgba(0, 0, 0, 0.08) 0 3px 10px 0;
64
+ }
65
+
66
+ .link-item:active {
67
+ border-color: #1EA7FD;
68
+ transform: translate3d(0, 0, 0);
69
+ }
70
+
71
+ .link-item strong {
72
+ font-weight: 700;
73
+ display: block;
74
+ margin-bottom: 2px;
75
+ }
76
+
77
+ .link-item img {
78
+ height: 40px;
79
+ width: 40px;
80
+ margin-right: 15px;
81
+ flex: none;
82
+ }
83
+
84
+ .link-item span {
85
+ font-size: 14px;
86
+ line-height: 20px;
87
+ }
88
+
89
+ .tip {
90
+ display: inline-block;
91
+ border-radius: 1em;
92
+ font-size: 11px;
93
+ line-height: 12px;
94
+ font-weight: 700;
95
+ background: #E7FDD8;
96
+ color: #66BF3C;
97
+ padding: 4px 12px;
98
+ margin-right: 10px;
99
+ vertical-align: top;
100
+ }
101
+
102
+ .tip-wrapper {
103
+ font-size: 13px;
104
+ line-height: 20px;
105
+ margin-top: 40px;
106
+ margin-bottom: 40px;
107
+ }
108
+
109
+ .tip-wrapper code {
110
+ font-size: 12px;
111
+ display: inline-block;
112
+ }
113
+
114
+
115
+ `}</style>
116
+
117
+ # Welcome to Storybook
118
+
119
+ Storybook helps you build UI components in isolation from your app's business logic, data, and context.
120
+ That makes it easy to develop hard-to-reach states. Save these UI states as **stories** to revisit during development, testing, or QA.
121
+
122
+ Browse example stories now by navigating to them in the sidebar.
123
+ View their code in the `src/storybook-examples` directory to learn how they work.
124
+ We recommend building UIs with a [**component-driven**](https://componentdriven.org) process starting with atomic components and ending with pages.
125
+
126
+ <div className="subheading">Configure</div>
127
+
128
+ <div className="link-list">
129
+ <a className="link-item" href="https://storybook.js.org/docs/react/api/presets" target="_blank">
130
+ <img src={Plugin} alt="plugin" />
131
+ <span>
132
+ <strong>Presets for popular tools</strong>
133
+ Easy setup for TypeScript, SCSS and more.
134
+ </span>
135
+ </a>
136
+ <a
137
+ className="link-item"
138
+ href="https://storybook.js.org/docs/react/configure/webpack"
139
+ target="_blank"
140
+ >
141
+ <img src={StackAlt} alt="Build" />
142
+ <span>
143
+ <strong>Build configuration</strong>
144
+ How to customize webpack and Babel
145
+ </span>
146
+ </a>
147
+ <a
148
+ className="link-item"
149
+ href="https://storybook.js.org/docs/react/configure/styling-and-css"
150
+ target="_blank"
151
+ >
152
+ <img src={Colors} alt="colors" />
153
+ <span>
154
+ <strong>Styling</strong>
155
+ How to load and configure CSS libraries
156
+ </span>
157
+ </a>
158
+ <a
159
+ className="link-item"
160
+ href="https://storybook.js.org/docs/react/get-started/setup#configure-storybook-for-your-stack"
161
+ target="_blank"
162
+ >
163
+ <img src={Flow} alt="flow" />
164
+ <span>
165
+ <strong>Data</strong>
166
+ Providers and mocking for data libraries
167
+ </span>
168
+ </a>
169
+ </div>
170
+
171
+ <div className="subheading">Learn</div>
172
+
173
+ <div className="link-list">
174
+ <a className="link-item" href="https://storybook.js.org/docs" target="_blank">
175
+ <img src={Repo} alt="repo" />
176
+ <span>
177
+ <strong>Storybook documentation</strong>
178
+ Configure, customize, and extend
179
+ </span>
180
+ </a>
181
+ <a className="link-item" href="https://www.learnstorybook.com" target="_blank">
182
+ <img src={Direction} alt="direction" />
183
+ <span>
184
+ <strong>In-depth guides</strong>
185
+ Best practices from leading teams
186
+ </span>
187
+ </a>
188
+ <a className="link-item" href="https://github.com/storybookjs/storybook" target="_blank">
189
+ <img src={Code} alt="code" />
190
+ <span>
191
+ <strong>GitHub project</strong>
192
+ View the source and add issues
193
+ </span>
194
+ </a>
195
+ <a className="link-item" href="https://discord.gg/UUt2PJb" target="_blank">
196
+ <img src={Comments} alt="comments" />
197
+ <span>
198
+ <strong>Discord chat</strong>
199
+ Chat with maintainers and the community
200
+ </span>
201
+ </a>
202
+ </div>
203
+
204
+ <div className="tip-wrapper">
205
+ <span className="tip">Tip</span>Edit the Markdown in{' '}
206
+ <code>src/storybook-examples/welcome.mdx</code>
207
+ </div>
@@ -5,6 +5,7 @@ export default {
5
5
  component: unnnicTextArea,
6
6
  argTypes: {
7
7
  size: { control: { type: 'select', options: ['md', 'sm'] } },
8
+ type: { control: { type: 'select', options: ['normal', 'error'] } },
8
9
  },
9
10
  };
10
11
 
@@ -37,4 +38,6 @@ Default.args = {
37
38
  placeholder: 'Placeholder',
38
39
  maxLength: 150,
39
40
  disabled: false,
41
+ type: 'normal',
42
+ errors: [],
40
43
  };
@@ -4,6 +4,7 @@ import add1 from '!!svg-inline-loader!../assets/icons/add-1.svg';
4
4
  import addCircle1 from '!!svg-inline-loader!../assets/icons/add-circle-1.svg';
5
5
  import alarmBell2 from '!!svg-inline-loader!../assets/icons/alarm-bell-2.svg';
6
6
  import alarmBell3 from '!!svg-inline-loader!../assets/icons/alarm-bell-3.svg';
7
+ import alarmBellRing from '!!svg-inline-loader!../assets/icons/alarm-bell-ring.svg';
7
8
  import alertCircle1 from '!!svg-inline-loader!../assets/icons/alert-circle-1.svg';
8
9
  import alertCircle11 from '!!svg-inline-loader!../assets/icons/alert-circle-1-1.svg';
9
10
  import americanExpress from '!!svg-inline-loader!../assets/icons/american-express.svg';
@@ -36,6 +37,7 @@ import checkboxLess from '!!svg-inline-loader!../assets/icons/checkbox-less.svg'
36
37
  import checkboxSelect from '!!svg-inline-loader!../assets/icons/checkbox-select.svg';
37
38
  import checkCircle11 from '!!svg-inline-loader!../assets/icons/check-circle-1-1.svg';
38
39
  import checkCircle111 from '!!svg-inline-loader!../assets/icons/check-circle-1-1-1.svg';
40
+ import checkDouble from '!!svg-inline-loader!../assets/icons/check-double.svg';
39
41
  import checkSquare1 from '!!svg-inline-loader!../assets/icons/check-square-1.svg';
40
42
  import checkSquare2 from '!!svg-inline-loader!../assets/icons/check-square-2.svg';
41
43
  import close1 from '!!svg-inline-loader!../assets/icons/close-1.svg';
@@ -121,6 +123,7 @@ import radioDefault from '!!svg-inline-loader!../assets/icons/radio-default.svg'
121
123
  import radioDisable from '!!svg-inline-loader!../assets/icons/radio-disable.svg';
122
124
  import radioSelected from '!!svg-inline-loader!../assets/icons/radio-selected.svg';
123
125
  import ratingStar1 from '!!svg-inline-loader!../assets/icons/rating-star-1.svg';
126
+ import ratingStar11 from '!!svg-inline-loader!../assets/icons/rating-star-1-1.svg';
124
127
  import readEmailAt1 from '!!svg-inline-loader!../assets/icons/read-email-at-1.svg';
125
128
  import scienceFictionRobot1 from '!!svg-inline-loader!../assets/icons/science-fiction-robot-1.svg';
126
129
  import scienceFictionRobot2 from '!!svg-inline-loader!../assets/icons/science-fiction-robot-2.svg';
@@ -170,6 +173,7 @@ export default {
170
173
  'add-circle-1': addCircle1,
171
174
  'alarm-bell-2': alarmBell2,
172
175
  'alarm-bell-3': alarmBell3,
176
+ 'alarm-bell-ring': alarmBellRing,
173
177
  'alert-circle-1-1': alertCircle11,
174
178
  'alert-circle-1': alertCircle1,
175
179
  'american-express': americanExpress,
@@ -198,6 +202,7 @@ export default {
198
202
  'check-2': check2,
199
203
  'check-circle-1-1-1': checkCircle111,
200
204
  'check-circle-1-1': checkCircle11,
205
+ 'check-double': checkDouble,
201
206
  'check-square-1': checkSquare1,
202
207
  'check-square-2': checkSquare2,
203
208
  'checkbox-default': checkboxDefault,
@@ -287,6 +292,7 @@ export default {
287
292
  'radio-disable': radioDisable,
288
293
  'radio-selected': radioSelected,
289
294
  'rating-star-1': ratingStar1,
295
+ 'rating-star-1-1': ratingStar11,
290
296
  'read-email-at-1': readEmailAt1,
291
297
  'science-fiction-robot-1': scienceFictionRobot1,
292
298
  'science-fiction-robot-2': scienceFictionRobot2,
Binary file
Binary file