@woosmap/ui 4.31.4 → 4.32.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/Flash/Flash.stories.js +3 -3
- package/src/components/Icon/Icon.js +1 -81
- package/src/components/Icon/Icon.stories.js +1 -1
- package/src/components/Icon/Icon.test.js +3 -3
- package/src/components/Label/Label.js +1 -7
- package/src/components/Select/LanguageSelect.js +15 -13
- package/src/components/Select/Select.stories.js +1 -1
- package/src/components/Tab/Tab.stories.js +1 -1
- package/src/styles/console/select.styl +0 -3
- package/src/styles/website/mixins.styl +33 -17
- package/src/styles/website/select.styl +0 -5
- package/.idea/encodings.xml +0 -6
- package/.idea/inspectionProfiles/Project_Default.xml +0 -18
- package/.idea/inspectionProfiles/profiles_settings.xml +0 -6
- package/.idea/misc.xml +0 -4
- package/.idea/modules.xml +0 -8
- package/.idea/prettier.xml +0 -6
- package/.idea/ui.iml +0 -15
- package/.idea/vcs.xml +0 -6
- package/src/icons/clock-reversed.svg +0 -1
- package/src/icons/star-fiiled.svg +0 -1
- package/src/icons/time.svg +0 -1
- package/src/icons/tool.svg +0 -1
- package/src/icons/view-card.svg +0 -1
- package/src/icons/view-list.svg +0 -1
- package/src/icons/view-mini-card.svg +0 -1
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="marker" 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="marker" 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="marker" type="link-flex-info" />
|
|
119
119
|
</span>
|
|
120
120
|
<span>
|
|
121
121
|
There is a labeled flexed-info button link here :
|
|
@@ -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="marker">
|
|
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="marker">
|
|
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="marker">
|
|
80
80
|
Success flash inverse iconed
|
|
81
81
|
</Flash>
|
|
82
82
|
</div>
|
|
@@ -122,44 +122,26 @@ import { ReactComponent as AdminKey } from '../../icons/admin-key.svg';
|
|
|
122
122
|
import { ReactComponent as AdminTool } from '../../icons/admin-tool.svg';
|
|
123
123
|
import { ReactComponent as Agenda } from '../../icons/agenda.svg';
|
|
124
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';
|
|
127
125
|
import { ReactComponent as ArrowBotton } from '../../icons/arrow-bottom.svg';
|
|
128
126
|
import { ReactComponent as ArrowLeft } from '../../icons/arrow-left.svg';
|
|
129
127
|
import { ReactComponent as ArrowRight } from '../../icons/arrow-right.svg';
|
|
130
128
|
import { ReactComponent as ArrowTop } from '../../icons/arrow-top.svg';
|
|
131
|
-
import { ReactComponent as ArrowLink } from '../../icons/arrow-link.svg';
|
|
132
129
|
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';
|
|
138
130
|
import { ReactComponent as BigCommerce } from '../../icons/big-commerce.svg';
|
|
139
|
-
import { ReactComponent as Bookmark } from '../../icons/bookmark.svg';
|
|
140
131
|
import { ReactComponent as Bulb } from '../../icons/bulb.svg';
|
|
141
132
|
import { ReactComponent as CaretBotton } from '../../icons/caret-bottom.svg';
|
|
142
133
|
import { ReactComponent as CaretLeft } from '../../icons/caret-left.svg';
|
|
143
134
|
import { ReactComponent as CaretRight } from '../../icons/caret-right.svg';
|
|
144
135
|
import { ReactComponent as CaretTop } from '../../icons/caret-top.svg';
|
|
145
136
|
import { ReactComponent as Charts } from '../../icons/charts.svg';
|
|
146
|
-
import { ReactComponent as Chat } from '../../icons/chat.svg';
|
|
147
137
|
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';
|
|
151
138
|
import { ReactComponent as Clock } from '../../icons/clock.svg';
|
|
152
|
-
import { ReactComponent as ClockReversed } from '../../icons/clock-reversed.svg';
|
|
153
139
|
import { ReactComponent as Close } from '../../icons/close.svg';
|
|
154
|
-
import { ReactComponent as CloseThick } from '../../icons/close-thick.svg';
|
|
155
140
|
import { ReactComponent as Code } from '../../icons/code.svg';
|
|
156
141
|
import { ReactComponent as Company } from '../../icons/company.svg';
|
|
157
142
|
import { ReactComponent as Copy } from '../../icons/copy.svg';
|
|
158
|
-
import { ReactComponent as CreditCard } from '../../icons/credit-card.svg';
|
|
159
|
-
import { ReactComponent as Cube } from '../../icons/cube.svg';
|
|
160
143
|
import { ReactComponent as Dashboard } from '../../icons/dashboard.svg';
|
|
161
144
|
import { ReactComponent as Delete } from '../../icons/delete.svg';
|
|
162
|
-
import { ReactComponent as Details } from '../../icons/details.svg';
|
|
163
145
|
import { ReactComponent as Documentation } from '../../icons/documentation.svg';
|
|
164
146
|
import { ReactComponent as Dollar } from '../../icons/dollar.svg';
|
|
165
147
|
import { ReactComponent as DotFill } from '../../icons/dot-fill.svg';
|
|
@@ -167,49 +149,32 @@ import { ReactComponent as Dot } from '../../icons/dot.svg';
|
|
|
167
149
|
import { ReactComponent as Download } from '../../icons/download.svg';
|
|
168
150
|
import { ReactComponent as Edit } from '../../icons/edit.svg';
|
|
169
151
|
import { ReactComponent as Email } from '../../icons/email.svg';
|
|
170
|
-
import { ReactComponent as Enter } from '../../icons/enter.svg';
|
|
171
152
|
import { ReactComponent as Eye } from '../../icons/eye.svg';
|
|
172
153
|
import { ReactComponent as EyeCrossedOut } from '../../icons/eye-crossed-out.svg';
|
|
173
|
-
import { ReactComponent as Exchange } from '../../icons/exchange.svg';
|
|
174
154
|
import { ReactComponent as Expand } from '../../icons/expand.svg';
|
|
175
155
|
import { ReactComponent as Export } from '../../icons/export.svg';
|
|
176
156
|
import { ReactComponent as Flag } from '../../icons/flag.svg';
|
|
177
157
|
import { ReactComponent as Forbidden } from '../../icons/forbidden.svg';
|
|
178
158
|
|
|
179
159
|
import { ReactComponent as Globe } from '../../icons/globe.svg';
|
|
180
|
-
import { ReactComponent as Home } from '../../icons/home.svg';
|
|
181
|
-
import { ReactComponent as Hourglass } from '../../icons/hourglass.svg';
|
|
182
160
|
import { ReactComponent as HomeUser } from '../../icons/home-user.svg';
|
|
161
|
+
import { ReactComponent as Hourglass } from '../../icons/hourglass.svg';
|
|
183
162
|
import { ReactComponent as Import } from '../../icons/import.svg';
|
|
184
163
|
import { ReactComponent as Info } from '../../icons/info.svg';
|
|
185
|
-
import { ReactComponent as Label } from '../../icons/label.svg';
|
|
186
164
|
import { ReactComponent as Latitude } from '../../icons/latitude.svg';
|
|
187
165
|
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';
|
|
190
166
|
import { ReactComponent as Longitude } from '../../icons/longitude.svg';
|
|
191
167
|
import { ReactComponent as Manage } from '../../icons/manage.svg';
|
|
192
168
|
import { ReactComponent as Marker } from '../../icons/marker.svg';
|
|
193
169
|
import { ReactComponent as Members } from '../../icons/members.svg';
|
|
194
170
|
import { ReactComponent as Member } from '../../icons/member.svg';
|
|
195
171
|
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';
|
|
203
172
|
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';
|
|
206
173
|
import { ReactComponent as ProductActivated } from '../../icons/product-activated.svg';
|
|
207
174
|
import { ReactComponent as ProductAdd } from '../../icons/product-add.svg';
|
|
208
175
|
import { ReactComponent as Products } from '../../icons/products.svg';
|
|
209
176
|
import { ReactComponent as Projects } from '../../icons/projects.svg';
|
|
210
|
-
import { ReactComponent as Puzzle } from '../../icons/puzzle.svg';
|
|
211
177
|
import { ReactComponent as Question } from '../../icons/question.svg';
|
|
212
|
-
import { ReactComponent as Receipt } from '../../icons/receipt.svg';
|
|
213
178
|
import { ReactComponent as Search } from '../../icons/search.svg';
|
|
214
179
|
import { ReactComponent as SeePage } from '../../icons/see-page.svg';
|
|
215
180
|
import { ReactComponent as Settings } from '../../icons/settings.svg';
|
|
@@ -220,12 +185,7 @@ import { ReactComponent as StarFilled } from '../../icons/star-filled.svg';
|
|
|
220
185
|
import { ReactComponent as Support } from '../../icons/support.svg';
|
|
221
186
|
import { ReactComponent as Switch } from '../../icons/switch.svg';
|
|
222
187
|
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';
|
|
225
188
|
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';
|
|
229
189
|
import { ReactComponent as Warning } from '../../icons/warning.svg';
|
|
230
190
|
import { ReactComponent as Woosmap } from '../../icons/woosmap.svg';
|
|
231
191
|
import { ReactComponent as Address } from '../../icons/address.svg';
|
|
@@ -473,45 +433,27 @@ const ConsoleIcons = {
|
|
|
473
433
|
'administration-tool': AdministrationTool,
|
|
474
434
|
administration: Administration,
|
|
475
435
|
agenda: Agenda,
|
|
476
|
-
'alphabetical-order-reversed': AlphabeticalOrderReversed,
|
|
477
436
|
'alphabetical-order': AlphabeticalOrder,
|
|
478
|
-
archive: Archive,
|
|
479
437
|
'arrow-bottom': ArrowBotton,
|
|
480
438
|
'arrow-left': ArrowLeft,
|
|
481
|
-
'arrow-link': ArrowLink,
|
|
482
439
|
'arrow-right': ArrowRight,
|
|
483
440
|
'arrow-top': ArrowTop,
|
|
484
|
-
'asset-add-file': AssetAddFile,
|
|
485
|
-
'asset-add': AssetAdd,
|
|
486
441
|
asset: Asset,
|
|
487
|
-
bank: Bank,
|
|
488
|
-
beaker: Beaker,
|
|
489
|
-
bell: Bell,
|
|
490
442
|
'big-commerce': BigCommerce,
|
|
491
|
-
bookmark: Bookmark,
|
|
492
443
|
bulb: Bulb,
|
|
493
444
|
'caret-bottom': CaretBotton,
|
|
494
445
|
'caret-left': CaretLeft,
|
|
495
446
|
'caret-right': CaretRight,
|
|
496
447
|
'caret-top': CaretTop,
|
|
497
448
|
charts: Charts,
|
|
498
|
-
chat: Chat,
|
|
499
|
-
'check-circle': CheckCircle,
|
|
500
|
-
'check-square': CheckSquare,
|
|
501
449
|
check: Check,
|
|
502
|
-
checked: Checked,
|
|
503
|
-
'clock-reversed': ClockReversed,
|
|
504
450
|
clock: Clock,
|
|
505
|
-
'close-thick': CloseThick,
|
|
506
451
|
close: Close,
|
|
507
452
|
code: Code,
|
|
508
453
|
company: Company,
|
|
509
454
|
copy: Copy,
|
|
510
|
-
'credit-card': CreditCard,
|
|
511
|
-
cube: Cube,
|
|
512
455
|
dashboard: Dashboard,
|
|
513
456
|
delete: Delete,
|
|
514
|
-
details: Details,
|
|
515
457
|
documentation: Documentation,
|
|
516
458
|
dollar: Dollar,
|
|
517
459
|
'dot-fill': DotFill,
|
|
@@ -519,8 +461,6 @@ const ConsoleIcons = {
|
|
|
519
461
|
download: Download,
|
|
520
462
|
edit: Edit,
|
|
521
463
|
email: Email,
|
|
522
|
-
enter: Enter,
|
|
523
|
-
exchange: Exchange,
|
|
524
464
|
expand: Expand,
|
|
525
465
|
export: Export,
|
|
526
466
|
'eye-crossed-out': EyeCrossedOut,
|
|
@@ -529,38 +469,23 @@ const ConsoleIcons = {
|
|
|
529
469
|
forbidden: Forbidden,
|
|
530
470
|
globe: Globe,
|
|
531
471
|
'home-user': HomeUser,
|
|
532
|
-
home: Home,
|
|
533
472
|
hourglass: Hourglass,
|
|
534
473
|
import: Import,
|
|
535
474
|
info: Info,
|
|
536
|
-
label: Label,
|
|
537
475
|
latitude: Latitude,
|
|
538
|
-
leave: Leave,
|
|
539
476
|
load: Load,
|
|
540
|
-
location: Location,
|
|
541
477
|
longitude: Longitude,
|
|
542
478
|
manage: Manage,
|
|
543
479
|
marker: Marker,
|
|
544
480
|
member: Member,
|
|
545
481
|
members: Members,
|
|
546
|
-
'menu-circle-horizontal': MenuCircleHorizontal,
|
|
547
|
-
'menu-circle-vertical': MenuCircleVertical,
|
|
548
|
-
'menu-horizontal': MenuHorizontal,
|
|
549
482
|
'menu-vertical': MenuVertical,
|
|
550
|
-
metrics: Metrics,
|
|
551
|
-
more: More,
|
|
552
|
-
organization: Organization,
|
|
553
|
-
organizations: Organizations,
|
|
554
483
|
phone: Phone,
|
|
555
|
-
platform: Platform,
|
|
556
|
-
prize: Prize,
|
|
557
484
|
'product-activated': ProductActivated,
|
|
558
485
|
'product-add': ProductAdd,
|
|
559
486
|
products: Products,
|
|
560
487
|
projects: Projects,
|
|
561
|
-
puzzle: Puzzle,
|
|
562
488
|
question: Question,
|
|
563
|
-
receipt: Receipt,
|
|
564
489
|
search: Search,
|
|
565
490
|
'see-page': SeePage,
|
|
566
491
|
settings: Settings,
|
|
@@ -576,12 +501,7 @@ const ConsoleIcons = {
|
|
|
576
501
|
support: Support,
|
|
577
502
|
switch: Switch,
|
|
578
503
|
team: Team,
|
|
579
|
-
time: Time,
|
|
580
|
-
tool: Tool,
|
|
581
504
|
user: User,
|
|
582
|
-
'view-card': ViewCard,
|
|
583
|
-
'view-list': ViewList,
|
|
584
|
-
'view-mini-card': ViewMiniCard,
|
|
585
505
|
warning: Warning,
|
|
586
506
|
woosmap: Woosmap,
|
|
587
507
|
|
|
@@ -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="marker" size={64} />);
|
|
9
9
|
|
|
10
|
-
const result = getByTestId('icon-
|
|
10
|
+
const result = getByTestId('icon-marker');
|
|
11
11
|
|
|
12
12
|
expect(result).toHaveClass('icon');
|
|
13
13
|
expect(result).toHaveAttribute('width', '64');
|
|
14
|
-
expect(result).toHaveTextContent('
|
|
14
|
+
expect(result).toHaveTextContent('marker');
|
|
15
15
|
});
|
|
16
16
|
|
|
17
17
|
const isIconRendered = (icon) => {
|
|
@@ -41,13 +41,7 @@ export default class Label extends Component {
|
|
|
41
41
|
</span>
|
|
42
42
|
)}
|
|
43
43
|
{closable && (
|
|
44
|
-
<Button
|
|
45
|
-
type="link-flex"
|
|
46
|
-
iconSize={12}
|
|
47
|
-
icon="close-thick"
|
|
48
|
-
onClick={closeCb}
|
|
49
|
-
testId={`${testId}-button`}
|
|
50
|
-
/>
|
|
44
|
+
<Button type="link-flex" iconSize={12} icon="close" onClick={closeCb} testId={`${testId}-button`} />
|
|
51
45
|
)}
|
|
52
46
|
</span>
|
|
53
47
|
);
|
|
@@ -222,10 +222,9 @@ export default class LanguageSelect extends Component {
|
|
|
222
222
|
constructor(props) {
|
|
223
223
|
super(props);
|
|
224
224
|
const { defaultValue } = props;
|
|
225
|
-
const defaultLanguage =
|
|
226
|
-
defaultValue && defaultValue.map((language) => languageOptions.find((item) => item.value === language));
|
|
225
|
+
const defaultLanguage = defaultValue && languageOptions.find((item) => item.value === defaultValue);
|
|
227
226
|
this.state = {
|
|
228
|
-
languages: defaultLanguage,
|
|
227
|
+
languages: [defaultLanguage],
|
|
229
228
|
};
|
|
230
229
|
}
|
|
231
230
|
|
|
@@ -240,16 +239,19 @@ export default class LanguageSelect extends Component {
|
|
|
240
239
|
};
|
|
241
240
|
|
|
242
241
|
onChange = (newValue, actionMeta) => {
|
|
243
|
-
const { minimumLength, isMulti
|
|
242
|
+
const { minimumLength, isMulti } = this.props;
|
|
244
243
|
const newLanguages = newValue;
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
244
|
+
switch (actionMeta.action) {
|
|
245
|
+
case 'remove-value':
|
|
246
|
+
case 'pop-value':
|
|
247
|
+
if (newValue.length < minimumLength && isMulti) {
|
|
248
|
+
return;
|
|
249
|
+
}
|
|
250
|
+
break;
|
|
251
|
+
default:
|
|
252
|
+
break;
|
|
251
253
|
}
|
|
252
|
-
|
|
254
|
+
|
|
253
255
|
this.setState({ languages: newLanguages });
|
|
254
256
|
};
|
|
255
257
|
|
|
@@ -261,7 +263,7 @@ export default class LanguageSelect extends Component {
|
|
|
261
263
|
return (
|
|
262
264
|
<Select
|
|
263
265
|
isMulti={isMulti}
|
|
264
|
-
className="select__item
|
|
266
|
+
className="select__item"
|
|
265
267
|
classNamePrefix="select"
|
|
266
268
|
options={this.getOptions()}
|
|
267
269
|
components={{ MultiValueLabel, MultiValueRemove, Option }}
|
|
@@ -320,7 +322,7 @@ LanguageSelect.propTypes = {
|
|
|
320
322
|
isMulti: PropTypes.bool,
|
|
321
323
|
placeholder: PropTypes.string,
|
|
322
324
|
value: PropTypes.string,
|
|
323
|
-
defaultValue: PropTypes.
|
|
325
|
+
defaultValue: PropTypes.string,
|
|
324
326
|
minimumLength: PropTypes.number,
|
|
325
327
|
onChange: PropTypes.func,
|
|
326
328
|
className: PropTypes.string,
|
|
@@ -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="marker" iconSize="30">
|
|
39
39
|
My 5th tab content
|
|
40
40
|
</div>
|
|
41
41
|
<div title="Localized names" icon="asset" iconSize="30">
|
|
@@ -177,40 +177,56 @@ darkgradient()
|
|
|
177
177
|
dark()
|
|
178
178
|
background $darkGradient1
|
|
179
179
|
|
|
180
|
+
white()
|
|
181
|
+
background-color $light
|
|
182
|
+
whiteHover()
|
|
183
|
+
background-color darken($dark3, 10%)
|
|
184
|
+
|
|
180
185
|
light()
|
|
181
|
-
background $
|
|
186
|
+
background-color $bodyColor
|
|
187
|
+
lightHover()
|
|
188
|
+
background-color darken($bodyColor, 10%)
|
|
189
|
+
|
|
182
190
|
|
|
183
191
|
color1()
|
|
184
|
-
background $logo1
|
|
185
|
-
|
|
192
|
+
background-color $logo1
|
|
193
|
+
color1Hover()
|
|
194
|
+
background-color darken($logo1, 10%)
|
|
186
195
|
|
|
187
196
|
color2()
|
|
188
|
-
background $logo2
|
|
189
|
-
|
|
197
|
+
background-color $logo2
|
|
198
|
+
color2Hover()
|
|
199
|
+
background-color darken($logo2, 10%)
|
|
190
200
|
|
|
191
201
|
color3()
|
|
192
|
-
background $logo3
|
|
193
|
-
|
|
202
|
+
background-color $logo3
|
|
203
|
+
color3Hover()
|
|
204
|
+
background-color darken($logo3, 10%)
|
|
194
205
|
|
|
195
206
|
color4()
|
|
196
|
-
background $logo4
|
|
197
|
-
|
|
207
|
+
background-color $logo4
|
|
208
|
+
color4Hover()
|
|
209
|
+
background-color darken($logo4, 10%)
|
|
198
210
|
|
|
199
211
|
color5()
|
|
200
|
-
background $logo5
|
|
201
|
-
|
|
212
|
+
background-color $logo5
|
|
213
|
+
color5Hover()
|
|
214
|
+
background-color darken($logo5, 10%)
|
|
202
215
|
|
|
203
216
|
color6()
|
|
204
|
-
background $logo6
|
|
205
|
-
|
|
217
|
+
background-color $logo6
|
|
218
|
+
color6Hover()
|
|
219
|
+
background-color darken($logo6, 10%)
|
|
206
220
|
|
|
207
221
|
color7()
|
|
208
|
-
background $logo7
|
|
209
|
-
|
|
222
|
+
background-color $logo7
|
|
223
|
+
color7Hover()
|
|
224
|
+
background-color darken($logo7, 10%)
|
|
210
225
|
|
|
211
226
|
color8()
|
|
212
|
-
background $logo8
|
|
213
|
-
|
|
227
|
+
background-color $logo8
|
|
228
|
+
color8Hover()
|
|
229
|
+
background-color darken($logo8, 10%)
|
|
214
230
|
|
|
215
231
|
placeholder($c)
|
|
216
232
|
&::-webkit-input-placeholder
|
|
@@ -33,9 +33,6 @@
|
|
|
33
33
|
fill $secondary
|
|
34
34
|
&__value-container
|
|
35
35
|
padding-left 1rem !important
|
|
36
|
-
.select__item--language &
|
|
37
|
-
overflow-y auto !important
|
|
38
|
-
max-height 7rem
|
|
39
36
|
&__single-value
|
|
40
37
|
color $secondary !important
|
|
41
38
|
&__indicator
|
|
@@ -87,8 +84,6 @@
|
|
|
87
84
|
&__label
|
|
88
85
|
padding-right .2rem !important
|
|
89
86
|
color $light !important
|
|
90
|
-
&:only-child
|
|
91
|
-
margin-right .3rem !important
|
|
92
87
|
&__remove
|
|
93
88
|
cursor pointer
|
|
94
89
|
svg
|
package/.idea/encodings.xml
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<component name="InspectionProjectProfileManager">
|
|
2
|
-
<profile version="1.0">
|
|
3
|
-
<option name="myName" value="Project Default" />
|
|
4
|
-
<inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" />
|
|
5
|
-
<inspection_tool class="PyPackageRequirementsInspection" enabled="true" level="WARNING" enabled_by_default="true">
|
|
6
|
-
<option name="ignoredPackages">
|
|
7
|
-
<value>
|
|
8
|
-
<list size="4">
|
|
9
|
-
<item index="0" class="java.lang.String" itemvalue="Fabric" />
|
|
10
|
-
<item index="1" class="java.lang.String" itemvalue="PyYAML" />
|
|
11
|
-
<item index="2" class="java.lang.String" itemvalue="Jinja2" />
|
|
12
|
-
<item index="3" class="java.lang.String" itemvalue="github3.py" />
|
|
13
|
-
</list>
|
|
14
|
-
</value>
|
|
15
|
-
</option>
|
|
16
|
-
</inspection_tool>
|
|
17
|
-
</profile>
|
|
18
|
-
</component>
|
package/.idea/misc.xml
DELETED
package/.idea/modules.xml
DELETED
package/.idea/prettier.xml
DELETED
package/.idea/ui.iml
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<module type="PYTHON_MODULE" version="4">
|
|
3
|
-
<component name="NewModuleRootManager">
|
|
4
|
-
<content url="file://$MODULE_DIR$" />
|
|
5
|
-
<orderEntry type="inheritedJdk" />
|
|
6
|
-
<orderEntry type="sourceFolder" forTests="false" />
|
|
7
|
-
</component>
|
|
8
|
-
<component name="TemplatesService">
|
|
9
|
-
<option name="TEMPLATE_FOLDERS">
|
|
10
|
-
<list>
|
|
11
|
-
<option value="$MODULE_DIR$/node_modules/@storybook/core/dist/server/templates" />
|
|
12
|
-
</list>
|
|
13
|
-
</option>
|
|
14
|
-
</component>
|
|
15
|
-
</module>
|
package/.idea/vcs.xml
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12.037 13.911a.555.555 0 0 0 .312-.095l4.1-2.745a.56.56 0 0 0-.623-.931l-3.716 2.488-4.172-4.217a.56.56 0 0 0-.8.788l4.5 4.546a.561.561 0 0 0 .399.166z"/><path d="M3.456 13.057c0 4.746 4.872 7.582 9.582 7.582a6.516 6.516 0 0 0 4.468-1.767l1.38 1.379a1.01 1.01 0 0 0 .717.3 1.015 1.015 0 0 0 1.016-1.016v-4.258a1.016 1.016 0 0 0-1.019-1.015h-4.252A1.015 1.015 0 0 0 14.63 16l2.084 2.084a5.413 5.413 0 0 1-3.676 1.439c-4.16 0-8.463-2.417-8.463-6.462C4.575 8.9 6.993 4.6 11.038 4.6c4.162 0 8.462 2.412 8.462 6.457a.56.56 0 1 0 1.119 0c0-4.746-4.871-7.582-9.581-7.582-4.746 0-7.582 4.872-7.582 9.582zM17.9 17.679l-2.3-2.3h3.9v3.9z"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="m54.479 12.769 9.053 18.342a5 5 0 0 0 3.761 2.733l20.242 2.941a5 5 0 0 1 2.765 8.521L75.656 59.583a5 5 0 0 0-1.436 4.422l3.458 20.16a5 5 0 0 1-7.248 5.266l-18.106-9.518a4.988 4.988 0 0 0-4.648 0L29.57 89.431a5 5 0 0 1-7.248-5.266l3.458-20.16a5 5 0 0 0-1.436-4.422L9.7 45.306a5 5 0 0 1 2.769-8.521l20.242-2.941a5 5 0 0 0 3.761-2.733l9.053-18.342a4.994 4.994 0 0 1 8.954 0Z"/></svg>
|
package/src/icons/time.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12.037 13.911a.561.561 0 0 1-.4-.166L7.142 9.2a.56.56 0 0 1 .8-.788l4.172 4.217 3.716-2.488a.56.56 0 0 1 .623.931l-4.1 2.745a.555.555 0 0 1-.316.094z"/><path d="M11 20.983c-5 0-7.982-5.076-7.982-9.983 0-5 5.075-7.983 9.982-7.983 5 0 7.982 5.076 7.982 9.983 0 5-5.075 7.983-9.982 7.983zm2-16.846C8.644 4.137 4.137 6.7 4.137 11c0 4.356 2.567 8.863 6.863 8.863 4.356 0 8.863-2.567 8.863-6.863 0-4.356-2.563-8.863-6.863-8.863z"/></svg>
|
package/src/icons/tool.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5.833 20.242a2.078 2.078 0 0 1-1.47-3.542l6.1-6.1a5.047 5.047 0 0 1 6.873-6.36.56.56 0 0 1 .157.9l-2.55 2.549a.967.967 0 0 0 0 1.366.99.99 0 0 0 1.366 0l2.548-2.55a.56.56 0 0 1 .9.158 5.057 5.057 0 0 1-6.376 6.883L7.3 19.633a2.063 2.063 0 0 1-1.467.609zm9.35-15.363a3.944 3.944 0 0 0-2.794 1.156 3.992 3.992 0 0 0-.761 4.459.56.56 0 0 1-.113.628l-6.359 6.367a.958.958 0 0 0 0 1.352.978.978 0 0 0 1.353 0l6.351-6.351a.558.558 0 0 1 .635-.111 3.935 3.935 0 0 0 5.526-4.449L17.1 9.85a2.086 2.086 0 1 1-2.95-2.95l1.919-1.919a3.935 3.935 0 0 0-.886-.102z"/></svg>
|
package/src/icons/view-card.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 18.558a53.14 53.14 0 0 1-6.61-.412 2.222 2.222 0 0 1-1.945-2.2V9.082a2.224 2.224 0 0 1 1.944-2.2 53.367 53.367 0 0 1 13.221 0 2.224 2.224 0 0 1 1.945 2.2v6.862a2.222 2.222 0 0 1-1.944 2.2 53.14 53.14 0 0 1-6.611.414zm6.541-.967zM12 7.588a52.076 52.076 0 0 0-6.472.4 1.1 1.1 0 0 0-.963 1.091v6.862a1.1 1.1 0 0 0 .963 1.091 52.2 52.2 0 0 0 12.944 0 1.1 1.1 0 0 0 .963-1.091V9.082a1.1 1.1 0 0 0-.963-1.091A52.076 52.076 0 0 0 12 7.588zM4.219 5.369a.56.56 0 0 1-.072-1.115L5.3 4.105a53.281 53.281 0 0 1 13.4-.022l1.364.17a.56.56 0 1 1-.14 1.112l-1.363-.171a52.172 52.172 0 0 0-13.119.022l-1.152.148a.443.443 0 0 1-.071.005z"/></svg>
|
package/src/icons/view-list.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 11.88a53.332 53.332 0 0 1-6.61-.411 2.223 2.223 0 0 1-1.945-2.2v-.187a2.224 2.224 0 0 1 1.944-2.2 53.367 53.367 0 0 1 13.221 0 2.224 2.224 0 0 1 1.945 2.2v.184a2.223 2.223 0 0 1-1.944 2.2A53.332 53.332 0 0 1 12 11.88zm6.541-.966zM12 7.588a52.076 52.076 0 0 0-6.472.4 1.1 1.1 0 0 0-.963 1.091v.184a1.1 1.1 0 0 0 .963 1.092 52.2 52.2 0 0 0 12.944 0 1.1 1.1 0 0 0 .963-1.092v-.181a1.1 1.1 0 0 0-.963-1.091A52.076 52.076 0 0 0 12 7.588zM4.219 5.369a.56.56 0 0 1-.072-1.115L5.3 4.105a53.281 53.281 0 0 1 13.4-.022l1.364.17a.561.561 0 0 1 .486.626.555.555 0 0 1-.626.486l-1.363-.171a52.172 52.172 0 0 0-13.119.022l-1.152.148a.443.443 0 0 1-.071.005z"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 14.892a53.333 53.333 0 0 1-6.61-.412 2.222 2.222 0 0 1-1.945-2.2v-3.2a2.224 2.224 0 0 1 1.944-2.2 53.367 53.367 0 0 1 13.221 0 2.224 2.224 0 0 1 1.945 2.2v3.2a2.222 2.222 0 0 1-1.944 2.2 53.333 53.333 0 0 1-6.611.412zm6.541-.967zM12 7.588a52.076 52.076 0 0 0-6.472.4 1.1 1.1 0 0 0-.963 1.091v3.2a1.1 1.1 0 0 0 .963 1.091 52.2 52.2 0 0 0 12.944 0 1.1 1.1 0 0 0 .963-1.091v-3.2a1.1 1.1 0 0 0-.963-1.091 52.076 52.076 0 0 0-6.472-.4zM4.219 5.369a.56.56 0 0 1-.072-1.115L5.3 4.105a53.281 53.281 0 0 1 13.4-.022l1.364.17a.56.56 0 1 1-.14 1.112l-1.363-.171a52.172 52.172 0 0 0-13.119.022l-1.152.148a.443.443 0 0 1-.071.005z"/></svg>
|