@woosmap/ui 4.34.0 → 4.35.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.
- package/package.json +1 -1
- package/src/components/Button/Button.stories.js +3 -3
- package/src/components/Card/Card.styl +2 -2
- package/src/components/Card/SimpleCard.styl +1 -1
- package/src/components/Demo/skeletondemo.styl +1 -1
- package/src/components/Flash/Flash.stories.js +3 -3
- package/src/components/Flash/Flash.styl +7 -7
- package/src/components/Icon/Icon.js +92 -6
- package/src/components/Icon/Icon.stories.js +2 -2
- package/src/components/Icon/Icon.test.js +3 -3
- package/src/components/Icon/icon-story.styl +1 -12
- package/src/components/Label/Label.js +7 -1
- package/src/components/Label/Label.styl +5 -5
- package/src/components/Modal/Modal.styl +1 -1
- package/src/components/ServiceMessage/ServiceMessage.styl +2 -2
- package/src/components/SnackBar/SnackBar.styl +1 -1
- package/src/components/Stepper/Stepper.styl +1 -1
- package/src/components/Tab/Tab.stories.js +1 -1
- package/src/icons/access.svg +1 -0
- package/src/icons/add-circle.svg +1 -1
- package/src/icons/add.svg +1 -1
- package/src/icons/admin-key.svg +1 -1
- package/src/icons/admin-tool.svg +1 -1
- package/src/icons/administration-tool.svg +1 -1
- package/src/icons/administration.svg +1 -0
- package/src/icons/agenda.svg +1 -1
- package/src/icons/alphabetical-order-reversed.svg +1 -0
- package/src/icons/alphabetical-order.svg +1 -1
- package/src/icons/archive.svg +1 -0
- package/src/icons/arrow-bottom.svg +1 -1
- package/src/icons/arrow-left.svg +1 -1
- package/src/icons/arrow-link.svg +1 -0
- package/src/icons/arrow-right.svg +1 -1
- package/src/icons/arrow-top.svg +1 -1
- package/src/icons/asset-add-file.svg +1 -0
- package/src/icons/asset-add.svg +1 -0
- package/src/icons/asset.svg +1 -1
- package/src/icons/bank.svg +1 -0
- package/src/icons/beaker.svg +1 -0
- package/src/icons/bell.svg +1 -0
- package/src/icons/big-commerce.svg +1 -1
- package/src/icons/bookmark.svg +1 -0
- package/src/icons/bulb.svg +1 -1
- package/src/icons/caret-bottom.svg +1 -1
- package/src/icons/caret-left.svg +1 -1
- package/src/icons/caret-right.svg +1 -1
- package/src/icons/caret-top.svg +1 -1
- package/src/icons/charts.svg +1 -1
- package/src/icons/chat.svg +1 -0
- package/src/icons/check-circle.svg +1 -0
- package/src/icons/check-square.svg +1 -0
- package/src/icons/check.svg +1 -1
- package/src/icons/checked.svg +1 -0
- package/src/icons/clock-reversed.svg +1 -0
- package/src/icons/clock.svg +1 -1
- package/src/icons/close-thick.svg +1 -0
- package/src/icons/close.svg +1 -1
- package/src/icons/code.svg +1 -1
- package/src/icons/company.svg +1 -1
- package/src/icons/copy.svg +1 -1
- package/src/icons/credit-card.svg +1 -0
- package/src/icons/dashboard.svg +1 -1
- package/src/icons/delete.svg +1 -1
- package/src/icons/details.svg +1 -0
- package/src/icons/documentation.svg +1 -1
- package/src/icons/dollar.svg +1 -1
- package/src/icons/dot-fill.svg +1 -1
- package/src/icons/dot.svg +1 -0
- package/src/icons/download.svg +1 -0
- package/src/icons/edit.svg +1 -1
- package/src/icons/email.svg +1 -1
- package/src/icons/enter.svg +1 -0
- package/src/icons/exchange.svg +1 -0
- package/src/icons/expand.svg +1 -1
- package/src/icons/export.svg +1 -1
- package/src/icons/eye-crossed-out.svg +1 -1
- package/src/icons/eye.svg +1 -1
- package/src/icons/flag.svg +1 -1
- package/src/icons/forbidden.svg +1 -1
- package/src/icons/globe.svg +1 -1
- package/src/icons/home-user.svg +1 -0
- package/src/icons/hourglass.svg +1 -1
- package/src/icons/import.svg +1 -1
- package/src/icons/info.svg +1 -1
- package/src/icons/label.svg +1 -0
- package/src/icons/latitude.svg +1 -1
- package/src/icons/leave.svg +1 -0
- package/src/icons/location.svg +1 -0
- package/src/icons/longitude.svg +1 -1
- package/src/icons/manage.svg +1 -1
- package/src/icons/marker.svg +1 -1
- package/src/icons/member.svg +1 -1
- package/src/icons/members.svg +1 -1
- package/src/icons/menu-circle-horizontal.svg +1 -0
- package/src/icons/menu-circle-vertical.svg +1 -0
- package/src/icons/menu-horizontal.svg +1 -0
- package/src/icons/menu-vertical.svg +1 -1
- package/src/icons/metrics.svg +1 -0
- package/src/icons/more.svg +1 -0
- package/src/icons/organization.svg +1 -0
- package/src/icons/organizations.svg +1 -0
- package/src/icons/phone.svg +1 -1
- package/src/icons/platform.svg +1 -0
- package/src/icons/prize.svg +1 -0
- package/src/icons/product-activated.svg +1 -1
- package/src/icons/product-add.svg +1 -1
- package/src/icons/products.svg +1 -1
- package/src/icons/projects.svg +1 -1
- package/src/icons/puzzle.svg +1 -0
- package/src/icons/question.svg +1 -1
- package/src/icons/receipt.svg +1 -0
- package/src/icons/search.svg +1 -1
- package/src/icons/see-page.svg +1 -1
- package/src/icons/settings.svg +1 -1
- package/src/icons/shield.svg +1 -1
- package/src/icons/shortcut.svg +1 -1
- package/src/icons/social-facebook.svg +1 -1
- package/src/icons/social-github.svg +1 -1
- package/src/icons/social-google.svg +1 -1
- package/src/icons/social-linkedin.svg +1 -1
- package/src/icons/social-twitter.svg +1 -1
- package/src/icons/star-fiiled.svg +1 -0
- package/src/icons/star-filled.svg +1 -1
- package/src/icons/star.svg +1 -1
- package/src/icons/support.svg +1 -1
- package/src/icons/switch.svg +1 -1
- package/src/icons/time.svg +1 -0
- package/src/icons/tool.svg +1 -0
- package/src/icons/user.svg +1 -1
- package/src/icons/view-card.svg +1 -0
- package/src/icons/view-list.svg +1 -0
- package/src/icons/view-mini-card.svg +1 -0
- package/src/icons/warning.svg +1 -1
- package/src/icons/woosmap.svg +1 -1
- package/src/styles/console/button.styl +38 -38
- package/src/styles/console/icon.styl +1 -11
- package/src/styles/console/input.styl +1 -1
- package/src/styles/console/mixins.styl +1 -1
- package/src/styles/console/select.styl +3 -3
package/package.json
CHANGED
|
@@ -28,7 +28,7 @@ const Template = (args) => {
|
|
|
28
28
|
<Button label={label} disabled />
|
|
29
29
|
</div>
|
|
30
30
|
<div className="flex mbi">
|
|
31
|
-
<Button icon="
|
|
31
|
+
<Button icon="puzzle" isNotification label="4" type="secondary" />
|
|
32
32
|
<Button label={label} type="secondary" />
|
|
33
33
|
<Button label={label} type="secondary" icon="marker" />
|
|
34
34
|
<Button label={label} type="secondary" isLoading />
|
|
@@ -105,7 +105,7 @@ const Template = (args) => {
|
|
|
105
105
|
<div className="flex-column mbi">
|
|
106
106
|
<span>
|
|
107
107
|
There is a no-labeled flexed button link here :
|
|
108
|
-
<Button icon="
|
|
108
|
+
<Button icon="label" type="link-flex" />
|
|
109
109
|
</span>
|
|
110
110
|
<span>
|
|
111
111
|
There is a labeled flexed button link here :
|
|
@@ -115,7 +115,7 @@ const Template = (args) => {
|
|
|
115
115
|
<div className="flex-column mbi">
|
|
116
116
|
<span>
|
|
117
117
|
There is a no-labeled flexed-info button link here :
|
|
118
|
-
<Button icon="
|
|
118
|
+
<Button icon="label" type="link-flex-info" />
|
|
119
119
|
</span>
|
|
120
120
|
<span>
|
|
121
121
|
There is a labeled flexed-info button link here :
|
|
@@ -191,7 +191,7 @@
|
|
|
191
191
|
font-size $fontSizeSmall - .1
|
|
192
192
|
margin-top -.5rem
|
|
193
193
|
.icon
|
|
194
|
-
|
|
194
|
+
fill $logo5
|
|
195
195
|
&__footer
|
|
196
196
|
color $dark40
|
|
197
197
|
&--small
|
|
@@ -272,7 +272,7 @@
|
|
|
272
272
|
.card--traffic &
|
|
273
273
|
background $traffic
|
|
274
274
|
.icon
|
|
275
|
-
|
|
275
|
+
fill $light
|
|
276
276
|
&__image
|
|
277
277
|
flex-grow 1
|
|
278
278
|
flex-shrink 0
|
|
@@ -51,7 +51,7 @@ const Template = () => (
|
|
|
51
51
|
<div className="flex mbib mbi--large">
|
|
52
52
|
<div className="flex mbi">
|
|
53
53
|
<Flash type="howto">Tip Howto</Flash>
|
|
54
|
-
<Flash type="howto" icon="
|
|
54
|
+
<Flash type="howto" icon="tool">
|
|
55
55
|
Howto flash iconed
|
|
56
56
|
</Flash>
|
|
57
57
|
</div>
|
|
@@ -68,7 +68,7 @@ const Template = () => (
|
|
|
68
68
|
<div className="flex mbib mbi--large">
|
|
69
69
|
<div className="flex mbi">
|
|
70
70
|
<Flash type="success">Success flash</Flash>
|
|
71
|
-
<Flash type="success" icon="
|
|
71
|
+
<Flash type="success" icon="enter">
|
|
72
72
|
Success flash iconed
|
|
73
73
|
</Flash>
|
|
74
74
|
</div>
|
|
@@ -76,7 +76,7 @@ const Template = () => (
|
|
|
76
76
|
<Flash type="success" inverse>
|
|
77
77
|
Success flash inverse
|
|
78
78
|
</Flash>
|
|
79
|
-
<Flash type="success" inverse icon="
|
|
79
|
+
<Flash type="success" inverse icon="enter">
|
|
80
80
|
Success flash inverse iconed
|
|
81
81
|
</Flash>
|
|
82
82
|
</div>
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
min-height $buttonHeight
|
|
12
12
|
padding .9rem $padding
|
|
13
13
|
.icon
|
|
14
|
-
|
|
14
|
+
fill $secondary
|
|
15
15
|
flex-shrink 0
|
|
16
16
|
&--shadowed
|
|
17
17
|
box-shadow 0 0 1rem $dark8
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
&.flash--inverse
|
|
31
31
|
color $flashSuccess
|
|
32
32
|
.icon
|
|
33
|
-
|
|
33
|
+
fill $flashSuccess
|
|
34
34
|
|
|
35
35
|
&--tip
|
|
36
36
|
&:not(.flash--inverse)
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
&.flash--inverse
|
|
40
40
|
color $flashTipInverse
|
|
41
41
|
.icon
|
|
42
|
-
|
|
42
|
+
fill $flashTipInverse
|
|
43
43
|
|
|
44
44
|
&--howto
|
|
45
45
|
&:not(.flash--inverse)
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
&.flash--inverse
|
|
49
49
|
color $flashHowto
|
|
50
50
|
.icon
|
|
51
|
-
|
|
51
|
+
fill $flashHowto
|
|
52
52
|
|
|
53
53
|
&--warning
|
|
54
54
|
&:not(.flash--inverse)
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
&.flash--inverse
|
|
58
58
|
color $flashWarning
|
|
59
59
|
.icon
|
|
60
|
-
|
|
60
|
+
fill $flashWarning
|
|
61
61
|
|
|
62
62
|
&--error
|
|
63
63
|
&:not(.flash--inverse)
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
&.flash--inverse
|
|
67
67
|
color $flashError
|
|
68
68
|
.icon
|
|
69
|
-
|
|
69
|
+
fill $flashError
|
|
70
70
|
|
|
71
71
|
&--info
|
|
72
72
|
&:not(.flash--inverse)
|
|
@@ -75,4 +75,4 @@
|
|
|
75
75
|
&.flash--inverse
|
|
76
76
|
color $flashInfo
|
|
77
77
|
.icon
|
|
78
|
-
|
|
78
|
+
fill $flashInfo
|
|
@@ -113,64 +113,103 @@ import { ReactComponent as WorldTime } from '../../icons/world-time.svg';
|
|
|
113
113
|
import { ReactComponent as WinPrize } from '../../icons/win-prize.svg';
|
|
114
114
|
import { ReactComponent as Zoom } from '../../icons/zoom.svg';
|
|
115
115
|
|
|
116
|
+
import { ReactComponent as Access } from '../../icons/access.svg';
|
|
116
117
|
import { ReactComponent as Add } from '../../icons/add.svg';
|
|
117
118
|
import { ReactComponent as AddCircle } from '../../icons/add-circle.svg';
|
|
119
|
+
import { ReactComponent as Administration } from '../../icons/administration.svg';
|
|
118
120
|
import { ReactComponent as AdministrationTool } from '../../icons/administration-tool.svg';
|
|
119
121
|
import { ReactComponent as AdminKey } from '../../icons/admin-key.svg';
|
|
120
122
|
import { ReactComponent as AdminTool } from '../../icons/admin-tool.svg';
|
|
121
123
|
import { ReactComponent as Agenda } from '../../icons/agenda.svg';
|
|
122
124
|
import { ReactComponent as AlphabeticalOrder } from '../../icons/alphabetical-order.svg';
|
|
125
|
+
import { ReactComponent as AlphabeticalOrderReversed } from '../../icons/alphabetical-order-reversed.svg';
|
|
126
|
+
import { ReactComponent as Archive } from '../../icons/archive.svg';
|
|
123
127
|
import { ReactComponent as ArrowBotton } from '../../icons/arrow-bottom.svg';
|
|
124
128
|
import { ReactComponent as ArrowLeft } from '../../icons/arrow-left.svg';
|
|
125
129
|
import { ReactComponent as ArrowRight } from '../../icons/arrow-right.svg';
|
|
126
130
|
import { ReactComponent as ArrowTop } from '../../icons/arrow-top.svg';
|
|
131
|
+
import { ReactComponent as ArrowLink } from '../../icons/arrow-link.svg';
|
|
127
132
|
import { ReactComponent as Asset } from '../../icons/asset.svg';
|
|
133
|
+
import { ReactComponent as AssetAddFile } from '../../icons/asset-add-file.svg';
|
|
134
|
+
import { ReactComponent as AssetAdd } from '../../icons/asset-add.svg';
|
|
135
|
+
import { ReactComponent as Bank } from '../../icons/bank.svg';
|
|
136
|
+
import { ReactComponent as Beaker } from '../../icons/beaker.svg';
|
|
137
|
+
import { ReactComponent as Bell } from '../../icons/bell.svg';
|
|
128
138
|
import { ReactComponent as BigCommerce } from '../../icons/big-commerce.svg';
|
|
139
|
+
import { ReactComponent as Bookmark } from '../../icons/bookmark.svg';
|
|
129
140
|
import { ReactComponent as Bulb } from '../../icons/bulb.svg';
|
|
130
141
|
import { ReactComponent as CaretBotton } from '../../icons/caret-bottom.svg';
|
|
131
142
|
import { ReactComponent as CaretLeft } from '../../icons/caret-left.svg';
|
|
132
143
|
import { ReactComponent as CaretRight } from '../../icons/caret-right.svg';
|
|
133
144
|
import { ReactComponent as CaretTop } from '../../icons/caret-top.svg';
|
|
134
145
|
import { ReactComponent as Charts } from '../../icons/charts.svg';
|
|
146
|
+
import { ReactComponent as Chat } from '../../icons/chat.svg';
|
|
135
147
|
import { ReactComponent as Check } from '../../icons/check.svg';
|
|
148
|
+
import { ReactComponent as Checked } from '../../icons/checked.svg';
|
|
149
|
+
import { ReactComponent as CheckCircle } from '../../icons/check-circle.svg';
|
|
150
|
+
import { ReactComponent as CheckSquare } from '../../icons/check-square.svg';
|
|
136
151
|
import { ReactComponent as Clock } from '../../icons/clock.svg';
|
|
152
|
+
import { ReactComponent as ClockReversed } from '../../icons/clock-reversed.svg';
|
|
137
153
|
import { ReactComponent as Close } from '../../icons/close.svg';
|
|
154
|
+
import { ReactComponent as CloseThick } from '../../icons/close-thick.svg';
|
|
138
155
|
import { ReactComponent as Code } from '../../icons/code.svg';
|
|
139
156
|
import { ReactComponent as Company } from '../../icons/company.svg';
|
|
140
157
|
import { ReactComponent as Copy } from '../../icons/copy.svg';
|
|
158
|
+
import { ReactComponent as CreditCard } from '../../icons/credit-card.svg';
|
|
141
159
|
import { ReactComponent as Cube } from '../../icons/cube.svg';
|
|
142
160
|
import { ReactComponent as Dashboard } from '../../icons/dashboard.svg';
|
|
143
161
|
import { ReactComponent as Delete } from '../../icons/delete.svg';
|
|
162
|
+
import { ReactComponent as Details } from '../../icons/details.svg';
|
|
144
163
|
import { ReactComponent as Documentation } from '../../icons/documentation.svg';
|
|
145
164
|
import { ReactComponent as Dollar } from '../../icons/dollar.svg';
|
|
146
165
|
import { ReactComponent as DotFill } from '../../icons/dot-fill.svg';
|
|
166
|
+
import { ReactComponent as Dot } from '../../icons/dot.svg';
|
|
167
|
+
import { ReactComponent as Download } from '../../icons/download.svg';
|
|
147
168
|
import { ReactComponent as Edit } from '../../icons/edit.svg';
|
|
148
169
|
import { ReactComponent as Email } from '../../icons/email.svg';
|
|
170
|
+
import { ReactComponent as Enter } from '../../icons/enter.svg';
|
|
149
171
|
import { ReactComponent as Eye } from '../../icons/eye.svg';
|
|
150
172
|
import { ReactComponent as EyeCrossedOut } from '../../icons/eye-crossed-out.svg';
|
|
173
|
+
import { ReactComponent as Exchange } from '../../icons/exchange.svg';
|
|
151
174
|
import { ReactComponent as Expand } from '../../icons/expand.svg';
|
|
152
175
|
import { ReactComponent as Export } from '../../icons/export.svg';
|
|
153
176
|
import { ReactComponent as Flag } from '../../icons/flag.svg';
|
|
154
177
|
import { ReactComponent as Forbidden } from '../../icons/forbidden.svg';
|
|
155
178
|
|
|
156
179
|
import { ReactComponent as Globe } from '../../icons/globe.svg';
|
|
180
|
+
import { ReactComponent as Home } from '../../icons/home.svg';
|
|
157
181
|
import { ReactComponent as Hourglass } from '../../icons/hourglass.svg';
|
|
182
|
+
import { ReactComponent as HomeUser } from '../../icons/home-user.svg';
|
|
158
183
|
import { ReactComponent as Import } from '../../icons/import.svg';
|
|
159
184
|
import { ReactComponent as Info } from '../../icons/info.svg';
|
|
185
|
+
import { ReactComponent as Label } from '../../icons/label.svg';
|
|
160
186
|
import { ReactComponent as Latitude } from '../../icons/latitude.svg';
|
|
161
187
|
import { ReactComponent as Load } from '../../icons/load.svg';
|
|
188
|
+
import { ReactComponent as Leave } from '../../icons/leave.svg';
|
|
189
|
+
import { ReactComponent as Location } from '../../icons/location.svg';
|
|
162
190
|
import { ReactComponent as Longitude } from '../../icons/longitude.svg';
|
|
163
191
|
import { ReactComponent as Manage } from '../../icons/manage.svg';
|
|
164
192
|
import { ReactComponent as Marker } from '../../icons/marker.svg';
|
|
165
193
|
import { ReactComponent as Members } from '../../icons/members.svg';
|
|
166
194
|
import { ReactComponent as Member } from '../../icons/member.svg';
|
|
167
195
|
import { ReactComponent as MenuVertical } from '../../icons/menu-vertical.svg';
|
|
196
|
+
import { ReactComponent as MenuCircleVertical } from '../../icons/menu-circle-vertical.svg';
|
|
197
|
+
import { ReactComponent as MenuHorizontal } from '../../icons/menu-horizontal.svg';
|
|
198
|
+
import { ReactComponent as MenuCircleHorizontal } from '../../icons/menu-circle-horizontal.svg';
|
|
199
|
+
import { ReactComponent as Metrics } from '../../icons/metrics.svg';
|
|
200
|
+
import { ReactComponent as More } from '../../icons/more.svg';
|
|
201
|
+
import { ReactComponent as Organization } from '../../icons/organization.svg';
|
|
202
|
+
import { ReactComponent as Organizations } from '../../icons/organizations.svg';
|
|
168
203
|
import { ReactComponent as Phone } from '../../icons/phone.svg';
|
|
204
|
+
import { ReactComponent as Platform } from '../../icons/platform.svg';
|
|
205
|
+
import { ReactComponent as Prize } from '../../icons/prize.svg';
|
|
169
206
|
import { ReactComponent as ProductActivated } from '../../icons/product-activated.svg';
|
|
170
207
|
import { ReactComponent as ProductAdd } from '../../icons/product-add.svg';
|
|
171
208
|
import { ReactComponent as Products } from '../../icons/products.svg';
|
|
172
209
|
import { ReactComponent as Projects } from '../../icons/projects.svg';
|
|
210
|
+
import { ReactComponent as Puzzle } from '../../icons/puzzle.svg';
|
|
173
211
|
import { ReactComponent as Question } from '../../icons/question.svg';
|
|
212
|
+
import { ReactComponent as Receipt } from '../../icons/receipt.svg';
|
|
174
213
|
import { ReactComponent as Search } from '../../icons/search.svg';
|
|
175
214
|
import { ReactComponent as SeePage } from '../../icons/see-page.svg';
|
|
176
215
|
import { ReactComponent as Settings } from '../../icons/settings.svg';
|
|
@@ -181,7 +220,12 @@ import { ReactComponent as StarFilled } from '../../icons/star-filled.svg';
|
|
|
181
220
|
import { ReactComponent as Support } from '../../icons/support.svg';
|
|
182
221
|
import { ReactComponent as Switch } from '../../icons/switch.svg';
|
|
183
222
|
import { ReactComponent as Team } from '../../icons/team.svg';
|
|
223
|
+
import { ReactComponent as Time } from '../../icons/time.svg';
|
|
224
|
+
import { ReactComponent as Tool } from '../../icons/tool.svg';
|
|
184
225
|
import { ReactComponent as User } from '../../icons/user.svg';
|
|
226
|
+
import { ReactComponent as ViewCard } from '../../icons/view-card.svg';
|
|
227
|
+
import { ReactComponent as ViewList } from '../../icons/view-list.svg';
|
|
228
|
+
import { ReactComponent as ViewMiniCard } from '../../icons/view-mini-card.svg';
|
|
185
229
|
import { ReactComponent as Warning } from '../../icons/warning.svg';
|
|
186
230
|
import { ReactComponent as Woosmap } from '../../icons/woosmap.svg';
|
|
187
231
|
import { ReactComponent as Address } from '../../icons/address.svg';
|
|
@@ -421,39 +465,62 @@ const WebsiteIcons = {
|
|
|
421
465
|
};
|
|
422
466
|
|
|
423
467
|
const ConsoleIcons = {
|
|
468
|
+
access: Access,
|
|
424
469
|
'add-circle': AddCircle,
|
|
425
470
|
add: Add,
|
|
426
471
|
'admin-key': AdminKey,
|
|
427
472
|
'admin-tool': AdminTool,
|
|
428
473
|
'administration-tool': AdministrationTool,
|
|
474
|
+
administration: Administration,
|
|
429
475
|
agenda: Agenda,
|
|
476
|
+
'alphabetical-order-reversed': AlphabeticalOrderReversed,
|
|
430
477
|
'alphabetical-order': AlphabeticalOrder,
|
|
478
|
+
archive: Archive,
|
|
431
479
|
'arrow-bottom': ArrowBotton,
|
|
432
480
|
'arrow-left': ArrowLeft,
|
|
481
|
+
'arrow-link': ArrowLink,
|
|
433
482
|
'arrow-right': ArrowRight,
|
|
434
483
|
'arrow-top': ArrowTop,
|
|
484
|
+
'asset-add-file': AssetAddFile,
|
|
485
|
+
'asset-add': AssetAdd,
|
|
435
486
|
asset: Asset,
|
|
487
|
+
bank: Bank,
|
|
488
|
+
beaker: Beaker,
|
|
489
|
+
bell: Bell,
|
|
436
490
|
'big-commerce': BigCommerce,
|
|
491
|
+
bookmark: Bookmark,
|
|
437
492
|
bulb: Bulb,
|
|
438
493
|
'caret-bottom': CaretBotton,
|
|
439
494
|
'caret-left': CaretLeft,
|
|
440
495
|
'caret-right': CaretRight,
|
|
441
496
|
'caret-top': CaretTop,
|
|
442
497
|
charts: Charts,
|
|
498
|
+
chat: Chat,
|
|
499
|
+
'check-circle': CheckCircle,
|
|
500
|
+
'check-square': CheckSquare,
|
|
443
501
|
check: Check,
|
|
502
|
+
checked: Checked,
|
|
503
|
+
'clock-reversed': ClockReversed,
|
|
444
504
|
clock: Clock,
|
|
505
|
+
'close-thick': CloseThick,
|
|
445
506
|
close: Close,
|
|
446
507
|
code: Code,
|
|
447
508
|
company: Company,
|
|
448
509
|
copy: Copy,
|
|
510
|
+
'credit-card': CreditCard,
|
|
449
511
|
cube: Cube,
|
|
450
512
|
dashboard: Dashboard,
|
|
451
513
|
delete: Delete,
|
|
514
|
+
details: Details,
|
|
452
515
|
documentation: Documentation,
|
|
453
516
|
dollar: Dollar,
|
|
454
517
|
'dot-fill': DotFill,
|
|
518
|
+
dot: Dot,
|
|
519
|
+
download: Download,
|
|
455
520
|
edit: Edit,
|
|
456
521
|
email: Email,
|
|
522
|
+
enter: Enter,
|
|
523
|
+
exchange: Exchange,
|
|
457
524
|
expand: Expand,
|
|
458
525
|
export: Export,
|
|
459
526
|
'eye-crossed-out': EyeCrossedOut,
|
|
@@ -461,23 +528,39 @@ const ConsoleIcons = {
|
|
|
461
528
|
flag: Flag,
|
|
462
529
|
forbidden: Forbidden,
|
|
463
530
|
globe: Globe,
|
|
531
|
+
'home-user': HomeUser,
|
|
532
|
+
home: Home,
|
|
464
533
|
hourglass: Hourglass,
|
|
465
534
|
import: Import,
|
|
466
535
|
info: Info,
|
|
536
|
+
label: Label,
|
|
467
537
|
latitude: Latitude,
|
|
538
|
+
leave: Leave,
|
|
468
539
|
load: Load,
|
|
540
|
+
location: Location,
|
|
469
541
|
longitude: Longitude,
|
|
470
542
|
manage: Manage,
|
|
471
543
|
marker: Marker,
|
|
472
544
|
member: Member,
|
|
473
545
|
members: Members,
|
|
546
|
+
'menu-circle-horizontal': MenuCircleHorizontal,
|
|
547
|
+
'menu-circle-vertical': MenuCircleVertical,
|
|
548
|
+
'menu-horizontal': MenuHorizontal,
|
|
474
549
|
'menu-vertical': MenuVertical,
|
|
550
|
+
metrics: Metrics,
|
|
551
|
+
more: More,
|
|
552
|
+
organization: Organization,
|
|
553
|
+
organizations: Organizations,
|
|
475
554
|
phone: Phone,
|
|
555
|
+
platform: Platform,
|
|
556
|
+
prize: Prize,
|
|
476
557
|
'product-activated': ProductActivated,
|
|
477
558
|
'product-add': ProductAdd,
|
|
478
559
|
products: Products,
|
|
479
560
|
projects: Projects,
|
|
561
|
+
puzzle: Puzzle,
|
|
480
562
|
question: Question,
|
|
563
|
+
receipt: Receipt,
|
|
481
564
|
search: Search,
|
|
482
565
|
'see-page': SeePage,
|
|
483
566
|
settings: Settings,
|
|
@@ -493,7 +576,12 @@ const ConsoleIcons = {
|
|
|
493
576
|
support: Support,
|
|
494
577
|
switch: Switch,
|
|
495
578
|
team: Team,
|
|
579
|
+
time: Time,
|
|
580
|
+
tool: Tool,
|
|
496
581
|
user: User,
|
|
582
|
+
'view-card': ViewCard,
|
|
583
|
+
'view-list': ViewList,
|
|
584
|
+
'view-mini-card': ViewMiniCard,
|
|
497
585
|
warning: Warning,
|
|
498
586
|
woosmap: Woosmap,
|
|
499
587
|
|
|
@@ -624,12 +712,12 @@ const Icons = {
|
|
|
624
712
|
|
|
625
713
|
class Icon extends Component {
|
|
626
714
|
render() {
|
|
627
|
-
const { icon, size, className,
|
|
715
|
+
const { icon, size, className, title, testId } = this.props;
|
|
628
716
|
const IconComponent = Object.keys(Icons).includes(icon) ? Icons[icon] : Woosmap;
|
|
629
|
-
|
|
717
|
+
|
|
630
718
|
return (
|
|
631
719
|
<IconComponent
|
|
632
|
-
className={
|
|
720
|
+
className={cl('icon', className)}
|
|
633
721
|
data-testid={`${testId}-${icon}`}
|
|
634
722
|
width={size}
|
|
635
723
|
height={size}
|
|
@@ -640,18 +728,16 @@ class Icon extends Component {
|
|
|
640
728
|
}
|
|
641
729
|
|
|
642
730
|
Icon.defaultProps = {
|
|
643
|
-
size:
|
|
731
|
+
size: 24,
|
|
644
732
|
className: null,
|
|
645
733
|
title: null,
|
|
646
734
|
testId: 'icon',
|
|
647
|
-
isFill: false,
|
|
648
735
|
};
|
|
649
736
|
|
|
650
737
|
Icon.propTypes = {
|
|
651
738
|
size: PropTypes.number,
|
|
652
739
|
className: PropTypes.string,
|
|
653
740
|
icon: PropTypes.string.isRequired,
|
|
654
|
-
isFill: PropTypes.bool,
|
|
655
741
|
title: PropTypes.string,
|
|
656
742
|
testId: PropTypes.string,
|
|
657
743
|
};
|
|
@@ -10,7 +10,7 @@ export default Story;
|
|
|
10
10
|
|
|
11
11
|
const Template = () => (
|
|
12
12
|
<div>
|
|
13
|
-
<Icon size={64} icon="
|
|
13
|
+
<Icon size={64} icon="home" />
|
|
14
14
|
</div>
|
|
15
15
|
);
|
|
16
16
|
|
|
@@ -30,6 +30,6 @@ const drawIcon = (icon) => (
|
|
|
30
30
|
|
|
31
31
|
export const All = () => <div className="flex-wrap">{Object.keys(Icons).map(drawIcon)}</div>;
|
|
32
32
|
export const Website = () => <div className="flex-wrap">{Object.keys(WebsiteIcons).map(drawIcon)}</div>;
|
|
33
|
-
export const Console = () => <div className="flex-wrap
|
|
33
|
+
export const Console = () => <div className="flex-wrap">{Object.keys(ConsoleIcons).map(drawIcon)}</div>;
|
|
34
34
|
export const Products = () => <div className="flex-wrap">{Object.keys(ProductsIcons).map(drawIcon)}</div>;
|
|
35
35
|
export const NotExisting = () => <div className="flex-wrap">{drawIcon('not-existing-icon')}</div>;
|
|
@@ -5,13 +5,13 @@ import '@testing-library/jest-dom/extend-expect';
|
|
|
5
5
|
import Icon from './Icon';
|
|
6
6
|
|
|
7
7
|
it('renders an icon component', () => {
|
|
8
|
-
const { getByTestId } = render(<Icon icon="
|
|
8
|
+
const { getByTestId } = render(<Icon icon="home" size={64} />);
|
|
9
9
|
|
|
10
|
-
const result = getByTestId('icon-
|
|
10
|
+
const result = getByTestId('icon-home');
|
|
11
11
|
|
|
12
12
|
expect(result).toHaveClass('icon');
|
|
13
13
|
expect(result).toHaveAttribute('width', '64');
|
|
14
|
-
expect(result).toHaveTextContent('
|
|
14
|
+
expect(result).toHaveTextContent('home');
|
|
15
15
|
});
|
|
16
16
|
|
|
17
17
|
const isIconRendered = (icon) => {
|
|
@@ -15,15 +15,4 @@
|
|
|
15
15
|
&__name
|
|
16
16
|
margin-top 1rem
|
|
17
17
|
&:hover
|
|
18
|
-
background-color $primary10
|
|
19
|
-
.icon-console
|
|
20
|
-
.icon
|
|
21
|
-
trans()
|
|
22
|
-
stroke $secondary
|
|
23
|
-
stroke-linecap round
|
|
24
|
-
stroke-linejoin round
|
|
25
|
-
&--fill
|
|
26
|
-
stroke-width: 0
|
|
27
|
-
stroke $secondary
|
|
28
|
-
&:not(.icon--social-github):not(.icon--social-linkedin):not(.icon--social-facefook):not(.icon--big-commerce):not(.icon--fill)
|
|
29
|
-
fill: none
|
|
18
|
+
background-color $primary10
|
|
@@ -41,7 +41,13 @@ export default class Label extends Component {
|
|
|
41
41
|
</span>
|
|
42
42
|
)}
|
|
43
43
|
{closable && (
|
|
44
|
-
<Button
|
|
44
|
+
<Button
|
|
45
|
+
type="link-flex"
|
|
46
|
+
iconSize={12}
|
|
47
|
+
icon="close-thick"
|
|
48
|
+
onClick={closeCb}
|
|
49
|
+
testId={`${testId}-button`}
|
|
50
|
+
/>
|
|
45
51
|
)}
|
|
46
52
|
</span>
|
|
47
53
|
);
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
margin .2rem 0
|
|
13
13
|
word-break break-all
|
|
14
14
|
.icon
|
|
15
|
-
|
|
15
|
+
fill $light
|
|
16
16
|
&--round
|
|
17
17
|
br(50)
|
|
18
18
|
sq($buttonHeight)
|
|
@@ -134,10 +134,10 @@
|
|
|
134
134
|
text-shadow none
|
|
135
135
|
.btn
|
|
136
136
|
.icon
|
|
137
|
-
|
|
137
|
+
fill $secondary70
|
|
138
138
|
&:hover
|
|
139
139
|
.icon
|
|
140
|
-
|
|
140
|
+
fill $secondary70 !important
|
|
141
141
|
&--white
|
|
142
142
|
background-color $light
|
|
143
143
|
color $secondary
|
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
border .1rem solid $borderColor
|
|
146
146
|
.btn
|
|
147
147
|
.icon
|
|
148
|
-
|
|
148
|
+
fill $secondary40
|
|
149
149
|
&:hover
|
|
150
150
|
.icon
|
|
151
|
-
|
|
151
|
+
fill $secondary40 !important
|
|
@@ -35,7 +35,7 @@ const Template = () => (
|
|
|
35
35
|
<div title="Types & tags" icon="shield" iconSize="30">
|
|
36
36
|
My 4th tab content
|
|
37
37
|
</div>
|
|
38
|
-
<div title="Custom fields" icon="
|
|
38
|
+
<div title="Custom fields" icon="home" iconSize="30">
|
|
39
39
|
My 5th tab content
|
|
40
40
|
</div>
|
|
41
41
|
<div title="Localized names" icon="asset" iconSize="30">
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19.069 4.142a21.261 21.261 0 0 0-14.139 0A3.246 3.246 0 0 0 2.77 7.2v9.69a3.231 3.231 0 0 0 2.258 3.089A22.956 22.956 0 0 0 12 21.066a22.956 22.956 0 0 0 6.972-1.089 3.231 3.231 0 0 0 2.258-3.089V7.2a3.246 3.246 0 0 0-2.161-3.058zM3.89 16.888V7.2a2.126 2.126 0 0 1 1.41-2c.189-.067.383-.114.574-.175V19.05c-.17-.049-.341-.087-.51-.141a2.115 2.115 0 0 1-1.474-2.021zm16.22 0a2.115 2.115 0 0 1-1.478 2.021A21.728 21.728 0 0 1 7 19.361v-6.755a.442.442 0 0 0 .05.01h9.14a12.423 12.423 0 0 1-2.545 2.44l-.309.221a.56.56 0 0 0 .652.911l.309-.221a13.61 13.61 0 0 0 2.807-2.7 1.983 1.983 0 0 0 0-2.442 13.6 13.6 0 0 0-2.815-2.7L14 7.924a.56.56 0 1 0-.651.911l.288.206A12.455 12.455 0 0 1 16.2 11.5H7.048c-.017 0-.033.009-.05.01V4.684A20.134 20.134 0 0 1 18.7 5.2a2.126 2.126 0 0 1 1.414 2z"/></svg>
|
package/src/icons/add-circle.svg
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13 3.017C8.093 3.017 3.018 6 3.018 11c0 4.907 2.982 9.983 7.982 9.983 4.907 0 9.982-2.986 9.982-7.983C20.982 8.093 18 3.017 13 3.017zm-2 16.846c-4.3 0-6.863-4.507-6.863-8.863 0-4.3 4.507-6.863 8.863-6.863 4.3 0 6.863 4.507 6.863 8.863 0 4.3-4.507 6.863-8.863 6.863z"/><path d="M16.018 11.446H12.7V8.13a.56.56 0 1 0-1.119 0v3.315H8.266a.56.56 0 0 0 0 1.12h3.316v3.316a.56.56 0 1 0 1.119 0v-3.315h3.317a.56.56 0 0 0 0-1.12z"/></svg>
|
package/src/icons/add.svg
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19.888 11.306H12.7V4.113a.7.7 0 0 0-1.4 0v7.193H4.1a.7.7 0 1 0 0 1.4h7.2V19.9a.7.7 0 1 0 1.4 0v-7.194h7.192a.7.7 0 0 0 0-1.4z"/></svg>
|
package/src/icons/admin-key.svg
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16.711 20.817H7.289a.559.559 0 0 1-.485-.28l-4.712-8.161a.558.558 0 0 1 0-.559L6.8 3.656a.559.559 0 0 1 .485-.28h6.1a.56.56 0 1 1 0 1.12H7.612L3.223 12.1l4.389 7.6h8.776l4.389-7.6-1.3-2.259a.56.56 0 0 1 .97-.561l1.466 2.539a.56.56 0 0 1 0 .56L17.2 20.537a.559.559 0 0 1-.489.28z"/><path d="M11.163 16.743A4.169 4.169 0 1 1 12.3 8.565l6.723-6.723a.55.55 0 0 1 .5-.154.557.557 0 0 1 .41.32l1.242 2.748a.56.56 0 0 1-.347.766l-1.359.415-.116.983a.561.561 0 0 1-.5.491l-.734.077-.062.711a.563.563 0 0 1-.162.347l-2.762 2.762a4.168 4.168 0 0 1-3.971 5.435zm0-7.217a3.049 3.049 0 1 0 2.809 1.857.56.56 0 0 1 .119-.614L16.96 7.9l.085-.967a.559.559 0 0 1 .5-.508l.748-.079.106-.9a.56.56 0 0 1 .394-.469l1.1-.336-.646-1.429L12.851 9.6a.559.559 0 0 1-.6.127 3.07 3.07 0 0 0-1.091-.201z"/><circle cx="10.913" cy="12.822" r="1.203"/></svg>
|
package/src/icons/admin-tool.svg
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4.564 21.143a1.811 1.811 0 0 1-1.28-3.09l4.981-4.988a4.258 4.258 0 0 1 5.825-5.3.561.561 0 0 1 .158.9l-2.1 2.1a.7.7 0 0 0 0 .986.712.712 0 0 0 .986 0l2.1-2.1a.566.566 0 0 1 .493-.155.558.558 0 0 1 .41.313 4.268 4.268 0 0 1-5.32 5.83l-4.972 4.973a1.8 1.8 0 0 1-1.281.531zm7.709-12.665a3.154 3.154 0 0 0-2.234.923 3.194 3.194 0 0 0-.608 3.566.56.56 0 0 1-.113.628l-5.241 5.249a.69.69 0 1 0 .976.976l5.237-5.237a.558.558 0 0 1 .635-.11 3.147 3.147 0 0 0 4.452-3.38l-1.453 1.453a1.859 1.859 0 0 1-2.57 0 1.815 1.815 0 0 1 0-2.57l1.452-1.453a3.187 3.187 0 0 0-.533-.045z"/><path d="M16.711 20.721H9.272a.56.56 0 0 1 0-1.12h7.116L20.777 12l-4.389-7.6H7.612L3.223 12l1.107 1.917a.56.56 0 0 1-.97.56l-1.268-2.2a.56.56 0 0 1 0-.56L6.8 3.56a.558.558 0 0 1 .485-.281h9.422a.558.558 0 0 1 .485.281l4.712 8.16a.56.56 0 0 1 0 .56L17.2 20.44a.558.558 0 0 1-.489.281z"/></svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19.069 4.142a21.261 21.261 0 0 0-14.139 0A3.246 3.246 0 0 0 2.77 7.2v9.69a3.231 3.231 0 0 0 2.258 3.089A22.956 22.956 0 0 0 12 21.066a22.956 22.956 0 0 0 6.972-1.089 3.231 3.231 0 0 0 2.258-3.089V7.2a3.246 3.246 0 0 0-2.161-3.058zM5.368 18.909a2.1 2.1 0 0 1-.943-.641L8.4 14.286a.56.56 0 0 0 .112-.628 4.323 4.323 0 0 1 4.976-6.045l-2.15 2.15a2.22 2.22 0 0 0 3.135 3.137l2.151-2.15a4.331 4.331 0 0 1-6.058 4.981.56.56 0 0 0-.636.111l-3.39 3.39c-.392-.1-.784-.199-1.172-.323zm14.742-2.021a2.115 2.115 0 0 1-1.478 2.021 21.7 21.7 0 0 1-10.8.615l2.621-2.62a5.453 5.453 0 0 0 6.9-7.41.561.561 0 0 0-.9-.158l-2.772 2.774a1.1 1.1 0 0 1-1.555-1.555L14.9 7.781a.56.56 0 0 0-.158-.9 5.441 5.441 0 0 0-7.4 6.881l-3.4 3.413a1.932 1.932 0 0 1-.046-.284V7.2a2.126 2.126 0 0 1 1.404-2 20.152 20.152 0 0 1 13.4 0 2.126 2.126 0 0 1 1.414 2z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19.069 4.147a21.264 21.264 0 0 0-14.138 0A3.248 3.248 0 0 0 2.771 7.2v9.69a3.229 3.229 0 0 0 2.256 3.088A22.933 22.933 0 0 0 12 21.072a22.933 22.933 0 0 0 6.973-1.09 3.229 3.229 0 0 0 2.256-3.088V7.2a3.248 3.248 0 0 0-2.16-3.053zm1.041 12.747a2.114 2.114 0 0 1-1.477 2.021 21.734 21.734 0 0 1-13.266 0 2.113 2.113 0 0 1-1.477-2.021V7.2a2.125 2.125 0 0 1 1.41-2 20.152 20.152 0 0 1 13.4 0 2.125 2.125 0 0 1 1.414 2z"/><path d="m17.135 9.184-.127-.222a2.105 2.105 0 0 0-2.6-.914l-.163.064-.026-.174a2.105 2.105 0 0 0-2.092-1.794h-.254a2.105 2.105 0 0 0-2.092 1.794l-.026.174-.163-.064a2.107 2.107 0 0 0-2.6.916l-.125.218a2.1 2.1 0 0 0 .507 2.709L7.51 12l-.137.11a2.1 2.1 0 0 0-.508 2.706l.127.222a2.106 2.106 0 0 0 2.6.914l.163-.064.026.174a2.105 2.105 0 0 0 2.092 1.794h.254a2.105 2.105 0 0 0 2.092-1.794l.026-.174.163.064a2.107 2.107 0 0 0 2.6-.916l.125-.218a2.1 2.1 0 0 0-.507-2.709L16.49 12l.137-.11a2.1 2.1 0 0 0 .508-2.706zM15.243 12v.144a.562.562 0 0 0 .209.457l.478.382a.993.993 0 0 1 .238 1.277l-.125.218a.994.994 0 0 1-1.225.43l-.569-.221a.558.558 0 0 0-.48.035l-.288.166a.56.56 0 0 0-.273.4l-.093.6a.991.991 0 0 1-.984.845h-.254a.991.991 0 0 1-.984-.844l-.093-.6a.56.56 0 0 0-.273-.4l-.284-.164a.562.562 0 0 0-.281-.076.551.551 0 0 0-.2.039l-.569.221a.989.989 0 0 1-1.224-.429l-.127-.221a.992.992 0 0 1 .239-1.275l.478-.382a.562.562 0 0 0 .209-.457v-.288a.562.562 0 0 0-.209-.457l-.478-.382a.993.993 0 0 1-.245-1.278l.125-.218a.991.991 0 0 1 1.225-.43l.569.221a.561.561 0 0 0 .484-.037l.284-.164a.56.56 0 0 0 .273-.4l.093-.6a.991.991 0 0 1 .984-.845h.254a.991.991 0 0 1 .984.844l.093.6a.725.725 0 0 0 .339.438l.222.128a.558.558 0 0 0 .48.035l.569-.221a.991.991 0 0 1 1.224.429l.127.221a.992.992 0 0 1-.239 1.275l-.478.382a.562.562 0 0 0-.209.457z"/><circle cx="12" cy="12" r="1.788"/></svg>
|