@weni/unnnic-system 1.2.2 → 1.3.2
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.
- package/README.md +2 -2
- package/dist/img/{icomoon.eba856f3.svg → icomoon.fcc6d2c8.svg} +163 -163
- package/dist/scss/colors.scss +97 -97
- package/dist/scss/fonts.scss +33 -33
- package/dist/scss/grid.scss +51 -51
- package/dist/scss/spacing.scss +92 -92
- package/dist/scss/unnnic.scss +10 -10
- package/dist/unnnic.common.js +220 -27
- package/dist/unnnic.common.js.map +1 -1
- package/dist/unnnic.css +1 -1
- package/dist/unnnic.umd.js +220 -27
- package/dist/unnnic.umd.js.map +1 -1
- package/dist/unnnic.umd.min.js +10 -10
- package/dist/unnnic.umd.min.js.map +1 -1
- package/package-lock.json +27271 -27271
- package/package.json +63 -63
- package/public/index.html +17 -17
- package/src/assets/fonts/fonts/icomoon.svg +163 -163
- package/src/assets/fonts/icons.css +582 -582
- package/src/assets/icons/Brazil.svg +21 -21
- package/src/assets/icons/Spain.svg +498 -498
- package/src/assets/icons/USA.svg +28 -28
- package/src/assets/icons/add-1.svg +3 -3
- package/src/assets/icons/add-circle-1.svg +4 -4
- package/src/assets/icons/alarm-bell-2.svg +4 -4
- package/src/assets/icons/alarm-bell-3.svg +4 -4
- package/src/assets/icons/alert-circle-1-1.svg +3 -3
- package/src/assets/icons/alert-circle-1.svg +5 -5
- package/src/assets/icons/american-express.svg +4 -4
- package/src/assets/icons/app-window-edit-1.svg +4 -4
- package/src/assets/icons/app-window-edit-2.svg +9 -9
- package/src/assets/icons/arrow-button-down-1.svg +3 -3
- package/src/assets/icons/arrow-button-right-1.svg +3 -3
- package/src/assets/icons/arrow-button-up-1.svg +3 -3
- package/src/assets/icons/arrow-down-1-1.svg +3 -3
- package/src/assets/icons/arrow-left-1-1.svg +3 -3
- package/src/assets/icons/arrow-right-1-1.svg +3 -3
- package/src/assets/icons/bin-1-1.svg +5 -5
- package/src/assets/icons/book-address-1-2.svg +4 -4
- package/src/assets/icons/book-address-2.svg +3 -3
- package/src/assets/icons/book-library-1.svg +9 -9
- package/src/assets/icons/book-library-2.svg +3 -3
- package/src/assets/icons/building-2-1.svg +13 -13
- package/src/assets/icons/button-play-1.svg +4 -4
- package/src/assets/icons/button-refresh-arrow-1.svg +3 -3
- package/src/assets/icons/button-refresh-arrows-1.svg +4 -4
- package/src/assets/icons/charger-1.svg +4 -4
- package/src/assets/icons/chat-translate-1.svg +6 -6
- package/src/assets/icons/check-2.svg +3 -3
- package/src/assets/icons/check-circle-1-1-1.svg +3 -3
- package/src/assets/icons/check-circle-1-1.svg +4 -4
- package/src/assets/icons/check-square-1.svg +4 -4
- package/src/assets/icons/check-square-2.svg +4 -4
- package/src/assets/icons/checkbox-default.svg +3 -3
- package/src/assets/icons/checkbox-disable.svg +3 -3
- package/src/assets/icons/checkbox-less.svg +4 -4
- package/src/assets/icons/checkbox-select.svg +4 -4
- package/src/assets/icons/close-1.svg +3 -3
- package/src/assets/icons/cog-1.svg +4 -4
- package/src/assets/icons/cog-2.svg +3 -3
- package/src/assets/icons/copy-paste-1.svg +7 -7
- package/src/assets/icons/currency-dollar-circle-1.svg +4 -4
- package/src/assets/icons/default-avatar.svg +5 -5
- package/src/assets/icons/delete-1-1.svg +4 -4
- package/src/assets/icons/delete-1.svg +3 -3
- package/src/assets/icons/developer-community-github-1-1.svg +3 -3
- package/src/assets/icons/diners-club.svg +6 -6
- package/src/assets/icons/discover.svg +11 -11
- package/src/assets/icons/download-bottom-1.svg +4 -4
- package/src/assets/icons/download-thick-bottom-1.svg +4 -4
- package/src/assets/icons/drag-1.svg +10 -10
- package/src/assets/icons/email-action-unread-1-1.svg +4 -4
- package/src/assets/icons/email-action-unread-1.svg +10 -10
- package/src/assets/icons/expand-8-1.svg +6 -6
- package/src/assets/icons/expand-full-1.svg +7 -7
- package/src/assets/icons/export-1.svg +5 -5
- package/src/assets/icons/filter.svg +3 -3
- package/src/assets/icons/fitness-biceps-1.svg +3 -3
- package/src/assets/icons/flash-1-3.svg +3 -3
- package/src/assets/icons/flash-1-4.svg +3 -3
- package/src/assets/icons/floppy-disk-1.svg +6 -6
- package/src/assets/icons/folder-1.svg +3 -3
- package/src/assets/icons/folder-2.svg +3 -3
- package/src/assets/icons/gauge-dashboard-1.svg +4 -4
- package/src/assets/icons/gauge-dashboard-2.svg +8 -8
- package/src/assets/icons/generic-card.svg +4 -4
- package/src/assets/icons/graph-stats-1.svg +3 -3
- package/src/assets/icons/graph-stats-ascend-2.svg +3 -3
- package/src/assets/icons/graph-stats-circle-1-1.svg +4 -4
- package/src/assets/icons/graph-stats-circle-1.svg +4 -4
- package/src/assets/icons/graph-stats-descend-2.svg +4 -0
- package/src/assets/icons/headphones-customer-support-1.svg +3 -3
- package/src/assets/icons/headphones-customer-support-2.svg +3 -3
- package/src/assets/icons/headphones-customer-support-human-1-1.svg +4 -4
- package/src/assets/icons/hierarchy-3-2.svg +3 -3
- package/src/assets/icons/hierarchy-3-3.svg +3 -3
- package/src/assets/icons/house-1-1.svg +4 -4
- package/src/assets/icons/house-2-2.svg +3 -3
- package/src/assets/icons/icon-script.py +27 -27
- package/src/assets/icons/indicator.svg +3 -3
- package/src/assets/icons/information-circle-4.svg +3 -3
- package/src/assets/icons/jcb.svg +21 -21
- package/src/assets/icons/keyboard-arrow-down-1.svg +3 -3
- package/src/assets/icons/keyboard-arrow-left-1.svg +3 -3
- package/src/assets/icons/keyboard-arrow-right-1.svg +3 -3
- package/src/assets/icons/keyboard-return-1-1.svg +3 -3
- package/src/assets/icons/keyboard-return-1.svg +4 -4
- package/src/assets/icons/layout-dashboard-1.svg +6 -6
- package/src/assets/icons/layout-dashboard-2.svg +6 -6
- package/src/assets/icons/layout-module-1-2.svg +6 -6
- package/src/assets/icons/loading-circle-1.svg +19 -19
- package/src/assets/icons/lock-2-1.svg +4 -4
- package/src/assets/icons/lock-unlock-1-1.svg +4 -4
- package/src/assets/icons/logout-1-1.svg +4 -4
- package/src/assets/icons/mastercard.svg +6 -6
- package/src/assets/icons/messages-bubble-1.svg +3 -3
- package/src/assets/icons/messages-bubble-3.svg +3 -3
- package/src/assets/icons/messages-bubble-4.svg +3 -3
- package/src/assets/icons/messaging-we-chat-2.svg +4 -4
- package/src/assets/icons/messaging-we-chat-3.svg +8 -8
- package/src/assets/icons/messaging-whatsapp-1.svg +4 -4
- package/src/assets/icons/navigation-menu-vertical-1.svg +5 -5
- package/src/assets/icons/notes-1.svg +7 -7
- package/src/assets/icons/office-file-pdf-1-1.svg +6 -6
- package/src/assets/icons/paginate-filter-text-1.svg +7 -7
- package/src/assets/icons/pencil-write-1.svg +4 -4
- package/src/assets/icons/phone-3.svg +3 -3
- package/src/assets/icons/phone-4.svg +3 -3
- package/src/assets/icons/phone-charger-1.svg +3 -3
- package/src/assets/icons/photography-equipment-bag-1.svg +5 -5
- package/src/assets/icons/question-circle-1.svg +5 -5
- package/src/assets/icons/question-circle-2.svg +3 -3
- package/src/assets/icons/radio-default.svg +3 -3
- package/src/assets/icons/radio-disable.svg +3 -3
- package/src/assets/icons/radio-selected.svg +4 -4
- package/src/assets/icons/rating-star-1.svg +3 -3
- package/src/assets/icons/read-email-at-1.svg +10 -10
- package/src/assets/icons/science-fiction-robot-1.svg +8 -8
- package/src/assets/icons/science-fiction-robot-2.svg +5 -5
- package/src/assets/icons/search-1.svg +3 -3
- package/src/assets/icons/send-email-3-1.svg +3 -3
- package/src/assets/icons/single-neutral-2.svg +4 -4
- package/src/assets/icons/single-neutral-actions-1.svg +4 -4
- package/src/assets/icons/social-media-google-1.svg +6 -6
- package/src/assets/icons/sort-asc.svg +4 -4
- package/src/assets/icons/sort-default.svg +4 -4
- package/src/assets/icons/sort-desc.svg +4 -4
- package/src/assets/icons/study-light-idea-1.svg +10 -10
- package/src/assets/icons/subtract-1.svg +3 -3
- package/src/assets/icons/subtract-circle-1.svg +4 -4
- package/src/assets/icons/switch-default-disabled.svg +4 -4
- package/src/assets/icons/switch-default.svg +11 -11
- package/src/assets/icons/switch-selected-disabled.svg +4 -4
- package/src/assets/icons/switch-selected.svg +11 -11
- package/src/assets/icons/synchronize-arrow-clock-4.svg +4 -4
- package/src/assets/icons/synchronize-arrow-clock-5.svg +4 -4
- package/src/assets/icons/task-list-clock-1.svg +9 -9
- package/src/assets/icons/ticket-1.svg +9 -9
- package/src/assets/icons/ticket-2.svg +4 -4
- package/src/assets/icons/time-clock-circle-1.svg +4 -4
- package/src/assets/icons/translate-1.svg +8 -8
- package/src/assets/icons/translate-2.svg +8 -8
- package/src/assets/icons/typing-1.svg +4 -4
- package/src/assets/icons/unionpay.svg +7 -7
- package/src/assets/icons/upload-bottom-1.svg +4 -4
- package/src/assets/icons/video-file-mp4-1.svg +6 -6
- package/src/assets/icons/view-1-1.svg +4 -4
- package/src/assets/icons/view-off-1.svg +7 -7
- package/src/assets/icons/vip-crown-queen-2.svg +4 -4
- package/src/assets/icons/visa.svg +8 -8
- package/src/assets/img/flag/en.svg +28 -28
- package/src/assets/img/flag/pt-br.svg +21 -21
- package/src/assets/scss/colors.scss +97 -97
- package/src/assets/scss/fonts.scss +33 -33
- package/src/assets/scss/grid.scss +51 -51
- package/src/assets/scss/spacing.scss +92 -92
- package/src/assets/scss/unnnic.scss +10 -10
- package/src/components/Card/Card.vue +5 -0
- package/src/components/Card/DashCard.vue +9 -1
- package/src/components/ChartRainbow/ChartRainbow.vue +160 -0
- package/src/components/index.js +3 -0
- package/src/locales/en.json +15 -15
- package/src/locales/es.json +15 -15
- package/src/locales/pt_br.json +15 -15
- package/src/stories/ChartRainbow.stories.js +34 -0
- package/src/stories/Introduction.stories.mdx +207 -207
- package/src/utils/icons.js +6 -0
|
@@ -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>
|
package/src/utils/icons.js
CHANGED
|
@@ -87,6 +87,7 @@ import alarmBell3 from '!!svg-inline-loader!../assets/icons/alarm-bell-3.svg';
|
|
|
87
87
|
import alertCircle1 from '!!svg-inline-loader!../assets/icons/alert-circle-1.svg';
|
|
88
88
|
import bookAddress2 from '!!svg-inline-loader!../assets/icons/book-address-2.svg';
|
|
89
89
|
import graphStatsAscend2 from '!!svg-inline-loader!../assets/icons/graph-stats-ascend-2.svg';
|
|
90
|
+
import graphStatsDescend2 from '!!svg-inline-loader!../assets/icons/graph-stats-descend-2.svg';
|
|
90
91
|
import synchronizeArrowClock5 from '!!svg-inline-loader!../assets/icons/synchronize-arrow-clock-5.svg';
|
|
91
92
|
import emailActionUnread1 from '!!svg-inline-loader!../assets/icons/email-action-unread-1.svg';
|
|
92
93
|
import synchronizeArrowClock4 from '!!svg-inline-loader!../assets/icons/synchronize-arrow-clock-4.svg';
|
|
@@ -135,6 +136,8 @@ import bookLibrary2 from '!!svg-inline-loader!../assets/icons/book-library-2.svg
|
|
|
135
136
|
import notes1 from '!!svg-inline-loader!../assets/icons/notes-1.svg';
|
|
136
137
|
import videoFileMp41 from '!!svg-inline-loader!../assets/icons/video-file-mp4-1.svg';
|
|
137
138
|
import officeFilePdf11 from '!!svg-inline-loader!../assets/icons/office-file-pdf-1-1.svg';
|
|
139
|
+
import fitnessBiceps1 from '!!svg-inline-loader!../assets/icons/fitness-biceps-1.svg';
|
|
140
|
+
import studyLightIdea1 from '!!svg-inline-loader!../assets/icons/study-light-idea-1.svg';
|
|
138
141
|
|
|
139
142
|
export default {
|
|
140
143
|
'app-window-edit-1': appWindowEdit1,
|
|
@@ -227,6 +230,7 @@ export default {
|
|
|
227
230
|
'alert-circle-1': alertCircle1,
|
|
228
231
|
'book-address-2': bookAddress2,
|
|
229
232
|
'graph-stats-ascend-2': graphStatsAscend2,
|
|
233
|
+
'graph-stats-descend-2': graphStatsDescend2,
|
|
230
234
|
'synchronize-arrow-clock-5': synchronizeArrowClock5,
|
|
231
235
|
'email-action-unread-1': emailActionUnread1,
|
|
232
236
|
'synchronize-arrow-clock-4': synchronizeArrowClock4,
|
|
@@ -272,4 +276,6 @@ export default {
|
|
|
272
276
|
'notes-1': notes1,
|
|
273
277
|
'video-file-mp4-1': videoFileMp41,
|
|
274
278
|
'office-file-pdf-1-1': officeFilePdf11,
|
|
279
|
+
'fitness-biceps-1': fitnessBiceps1,
|
|
280
|
+
'study-light-idea-1': studyLightIdea1,
|
|
275
281
|
};
|