@itcase/ui 1.8.36 → 1.8.38
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/dist/{Avatar_cjs_DBoMi2WA.js → Avatar_cjs_nMPCDjk8.js} +1 -1
- package/dist/{Avatar_es_DHREqfOD.js → Avatar_es_B73a6TzA.js} +1 -1
- package/dist/{Button_cjs_djJUZATX.js → Button_cjs_plv5-qcj.js} +10 -1
- package/dist/{Button_es_X1DzVhok.js → Button_es_BigB2Wz6.js} +10 -1
- package/dist/{ChipsGroup_cjs_5xsEchPo.js → ChipsGroup_cjs_DrOhD-Fc.js} +2 -4
- package/dist/{ChipsGroup_es_4TOkv-fm.js → ChipsGroup_es_B9m4l0wN.js} +2 -4
- package/dist/{DatePicker_cjs_DffhgUnQ.js → DatePicker_cjs_DKoF73mp.js} +17 -17
- package/dist/{DatePicker_es_GmkagjKf.js → DatePicker_es_CdEYxtwj.js} +17 -17
- package/dist/{DropdownItem_cjs_DxBpJAi9.js → DropdownItem_cjs_DQvByLbN.js} +1 -1
- package/dist/{DropdownItem_es_Loneq6M7.js → DropdownItem_es_KppIfto7.js} +1 -1
- package/dist/{Label_cjs_C88e2CIP.js → Label_cjs_BGJfyrOL.js} +50 -48
- package/dist/{Label_es_Bn2aRjLl.js → Label_es_C4Px7b-N.js} +50 -48
- package/dist/{Tooltip_cjs_oS1iOamX.js → Tooltip_cjs_DHduWa-v.js} +72 -68
- package/dist/{Tooltip_es_LV5ZNg3B.js → Tooltip_es_ltCY-w4M.js} +72 -68
- package/dist/cjs/components/Accordion.js +1 -1
- package/dist/cjs/components/Avatar.js +2 -2
- package/dist/cjs/components/AvatarStack.js +2 -2
- package/dist/cjs/components/Badge.js +1 -1
- package/dist/cjs/components/Breadcrumbs/stories/__mock__.js +32 -48
- package/dist/cjs/components/Breadcrumbs.js +38 -120
- package/dist/cjs/components/Button.js +2 -2
- package/dist/cjs/components/Cell.js +2 -2
- package/dist/cjs/components/Chips/stories/__mock__.js +2 -2
- package/dist/cjs/components/Chips.js +2 -2
- package/dist/cjs/components/Choice.js +16 -14
- package/dist/cjs/components/CookiesWarning.js +2 -2
- package/dist/cjs/components/DatePeriod.js +25 -21
- package/dist/cjs/components/DatePicker.js +4 -4
- package/dist/cjs/components/Drawer.js +1 -1
- package/dist/cjs/components/Dropdown/stories/__mock__.js +103 -33
- package/dist/cjs/components/Dropdown.js +2 -2
- package/dist/cjs/components/HeroTitle.js +1 -1
- package/dist/cjs/components/Icon.js +1 -1
- package/dist/cjs/components/InputPassword.js +1 -1
- package/dist/cjs/components/Label.js +2 -2
- package/dist/cjs/components/MenuItem.js +7 -9
- package/dist/cjs/components/Modal.js +1 -1
- package/dist/cjs/components/Notification.js +3 -9
- package/dist/cjs/components/Pagination.js +2 -2
- package/dist/cjs/components/Response.js +2 -2
- package/dist/cjs/components/Search.js +1 -1
- package/dist/cjs/components/Segmented/stories/__mock__.js +11 -11
- package/dist/cjs/components/Segmented.js +28 -25
- package/dist/cjs/components/Select.js +1 -1
- package/dist/cjs/components/Swiper.js +1 -1
- package/dist/cjs/components/Switch.js +0 -1
- package/dist/cjs/components/Tab.js +1 -1
- package/dist/cjs/components/Tile.js +1 -1
- package/dist/cjs/components/Title.js +1 -1
- package/dist/cjs/components/Tooltip.js +1 -1
- package/dist/components/Accordion.js +1 -1
- package/dist/components/Avatar.js +2 -2
- package/dist/components/AvatarStack.js +2 -2
- package/dist/components/Badge.js +1 -1
- package/dist/components/Breadcrumbs/stories/__mock__.js +33 -48
- package/dist/components/Breadcrumbs.js +38 -120
- package/dist/components/Button.js +2 -2
- package/dist/components/Cell.js +2 -2
- package/dist/components/Chips/stories/__mock__.js +2 -2
- package/dist/components/Chips.js +2 -2
- package/dist/components/Choice.js +16 -14
- package/dist/components/CookiesWarning.js +2 -2
- package/dist/components/DatePeriod.js +25 -21
- package/dist/components/DatePicker.js +4 -4
- package/dist/components/Drawer.js +1 -1
- package/dist/components/Dropdown/stories/__mock__.js +101 -34
- package/dist/components/Dropdown.js +2 -2
- package/dist/components/HeroTitle.js +1 -1
- package/dist/components/Icon.js +1 -1
- package/dist/components/InputPassword.js +1 -1
- package/dist/components/Label.js +2 -2
- package/dist/components/MenuItem.js +7 -9
- package/dist/components/Modal.js +1 -1
- package/dist/components/Notification.js +3 -9
- package/dist/components/Pagination.js +2 -2
- package/dist/components/Response.js +2 -2
- package/dist/components/Search.js +1 -1
- package/dist/components/Segmented/stories/__mock__.js +8 -8
- package/dist/components/Segmented.js +28 -25
- package/dist/components/Select.js +1 -1
- package/dist/components/Swiper.js +1 -1
- package/dist/components/Switch.js +0 -1
- package/dist/components/Tab.js +1 -1
- package/dist/components/Tile.js +1 -1
- package/dist/components/Title.js +1 -1
- package/dist/components/Tooltip.js +1 -1
- package/dist/css/components/Breadcrumbs/Breadcrumbs.css +24 -0
- package/dist/css/components/Icon/Icon.css +24 -0
- package/dist/css/components/MenuItem/MenuItem.css +31 -0
- package/dist/css/components/Notification/Notification.css +0 -48
- package/dist/css/components/Segmented/Segmented.css +16 -7
- package/dist/css/components/Segmented/css/__item/segmaented__item.css +2 -5
- package/dist/stories/BreadcrumbsPlsyground.mdx +1 -1
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsAccent.d.ts +2 -12
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsSize.d.ts +7 -14
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsStyle.d.ts +1 -3
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsSurface.d.ts +11 -8
- package/dist/types/components/Breadcrumbs/stories/__mock__/index.d.ts +6 -32
- package/dist/types/components/Button/appearance/buttonSurface.d.ts +9 -0
- package/dist/types/components/Chips/appearance/chipsStyle.d.ts +1 -3
- package/dist/types/components/Choice/appearance/choiceDefault.d.ts +1 -0
- package/dist/types/components/Choice/appearance/choiceDisabled.d.ts +1 -1
- package/dist/types/components/Choice/appearance/choiceError.d.ts +1 -0
- package/dist/types/components/Choice/appearance/choiceRequire.d.ts +1 -0
- package/dist/types/components/Choice/appearance/choiceStyle.d.ts +1 -3
- package/dist/types/components/Choice/appearance/choiceSuccess.d.ts +1 -0
- package/dist/types/components/Dropdown/stories/__mock__/index.d.ts +87 -44
- package/dist/types/components/Icon/appearance/iconAccent.d.ts +2 -4
- package/dist/types/components/Icon/appearance/iconDanger.d.ts +2 -4
- package/dist/types/components/Icon/appearance/iconDisabled.d.ts +12 -0
- package/dist/types/components/Icon/appearance/iconError.d.ts +4 -4
- package/dist/types/components/Icon/appearance/iconInfo.d.ts +7 -4
- package/dist/types/components/Icon/appearance/iconPrimary.d.ts +4 -2
- package/dist/types/components/Icon/appearance/iconSecondary.d.ts +2 -2
- package/dist/types/components/Icon/appearance/iconStyle.d.ts +4 -6
- package/dist/types/components/Icon/appearance/iconSuccess.d.ts +0 -2
- package/dist/types/components/Icon/appearance/iconSurface.d.ts +0 -5
- package/dist/types/components/Icon/appearance/iconWarning.d.ts +4 -4
- package/dist/types/components/Label/appearance/labelPrimary.d.ts +1 -0
- package/dist/types/components/Label/appearance/labelSurface.d.ts +1 -0
- package/dist/types/components/MenuItem/appearance/menuItemStyle.d.ts +4 -6
- package/dist/types/components/Notification/appearance/notificationDefault.d.ts +0 -1
- package/dist/types/components/Notification/appearance/notificationError.d.ts +0 -1
- package/dist/types/components/Notification/appearance/notificationInfo.d.ts +0 -1
- package/dist/types/components/Notification/appearance/notificationSuccess.d.ts +0 -1
- package/dist/types/components/Notification/appearance/notificationWarning.d.ts +0 -1
- package/dist/types/components/Segmented/appearance/segmentedDefault.d.ts +1 -1
- package/dist/types/components/Segmented/appearance/segmentedDisabled.d.ts +2 -2
- package/dist/types/components/Segmented/appearance/segmentedError.d.ts +3 -1
- package/dist/types/components/Segmented/appearance/segmentedStyle.d.ts +3 -5
- package/dist/types/components/Segmented/appearance/segmentedSuccess.d.ts +3 -2
- package/dist/types/components/Segmented/appearance/segmentedWarning.d.ts +2 -1
- package/dist/types/components/Segmented/stories/__mock__/index.d.ts +5 -5
- package/package.json +7 -7
- package/dist/css/components/Notification/css/__item/notification__item_status.css +0 -48
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsDanger.d.ts +0 -7
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsError.d.ts +0 -9
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsInfo.d.ts +0 -17
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsPrimary.d.ts +0 -8
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsSecondary.d.ts +0 -8
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsSuccess.d.ts +0 -9
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsWarning.d.ts +0 -9
|
@@ -290,21 +290,19 @@ var iconAppearanceAccent = {
|
|
|
290
290
|
fill: 'accentPrimary',
|
|
291
291
|
fillHover: 'accentHover',
|
|
292
292
|
borderColor: 'accentBorderPrimary',
|
|
293
|
+
badgeAppearance: 'surfacePrimary',
|
|
293
294
|
iconFill: 'accentItemPrimary',
|
|
294
295
|
},
|
|
295
296
|
accentPrimary: {
|
|
296
297
|
fill: 'accentPrimary',
|
|
297
298
|
fillHover: 'accentHover',
|
|
298
|
-
labelTextColor: 'accentTextPrimary',
|
|
299
|
-
labelTextColorHover: 'accentTextPrimary',
|
|
300
299
|
borderColor: 'accentBorderPrimary',
|
|
300
|
+
badgeAppearance: 'surfacePrimary',
|
|
301
301
|
iconFill: 'accentItemPrimary',
|
|
302
302
|
},
|
|
303
303
|
accentSecondary: {
|
|
304
304
|
fill: 'accentPrimary',
|
|
305
305
|
fillHover: 'accentHover',
|
|
306
|
-
labelTextColor: 'accentTextSecondary',
|
|
307
|
-
labelTextColorHover: 'accentTextSecondary',
|
|
308
306
|
borderColor: 'accentBorderPrimary',
|
|
309
307
|
iconFill: 'accentItemPrimary',
|
|
310
308
|
},
|
|
@@ -314,14 +312,24 @@ var iconAppearanceDanger = {
|
|
|
314
312
|
danger: {
|
|
315
313
|
fill: 'dangerPrimary',
|
|
316
314
|
fillHover: 'dangerHover',
|
|
317
|
-
labelTextColor: 'dangerTextSecondary',
|
|
318
|
-
labelTextColorHover: 'dangerTextSecondary',
|
|
319
315
|
},
|
|
320
316
|
dangerPrimary: {
|
|
321
317
|
fill: 'dangerPrimary',
|
|
322
318
|
fillHover: 'dangerHover',
|
|
323
|
-
|
|
324
|
-
|
|
319
|
+
badgeAppearance: 'surfacePrimary',
|
|
320
|
+
iconFill: 'dangerItemPrimary',
|
|
321
|
+
},
|
|
322
|
+
};
|
|
323
|
+
|
|
324
|
+
var iconAppearanceDisabled = {
|
|
325
|
+
danger: {
|
|
326
|
+
fill: 'dangerPrimary',
|
|
327
|
+
fillHover: 'dangerHover',
|
|
328
|
+
},
|
|
329
|
+
disabledPrimary: {
|
|
330
|
+
fill: 'surfaceDisabled',
|
|
331
|
+
badgeAppearance: 'surfacePrimary',
|
|
332
|
+
iconFill: 'surfaceItemQuaternary',
|
|
325
333
|
},
|
|
326
334
|
};
|
|
327
335
|
|
|
@@ -329,14 +337,14 @@ var iconAppearanceError = {
|
|
|
329
337
|
error: {
|
|
330
338
|
fill: 'errorPrimary',
|
|
331
339
|
fillHover: 'errorHover',
|
|
332
|
-
|
|
333
|
-
|
|
340
|
+
badgeAppearance: 'surfacePrimary',
|
|
341
|
+
iconFill: 'errorItemPrimary',
|
|
334
342
|
},
|
|
335
343
|
errorPrimary: {
|
|
336
344
|
fill: 'errorPrimary',
|
|
337
345
|
fillHover: 'errorHover',
|
|
338
|
-
|
|
339
|
-
|
|
346
|
+
badgeAppearance: 'surfacePrimary',
|
|
347
|
+
iconFill: 'errorItemPrimary',
|
|
340
348
|
},
|
|
341
349
|
};
|
|
342
350
|
|
|
@@ -344,15 +352,18 @@ var iconAppearanceInfo = {
|
|
|
344
352
|
info: {
|
|
345
353
|
fill: 'accentPrimary',
|
|
346
354
|
fillHover: 'accentPrimaryHover',
|
|
347
|
-
labelTextColor: 'accentTextPrimary',
|
|
348
|
-
labelTextColorHover: 'accentTextPrimary',
|
|
349
355
|
borderColor: 'accentBorderPrimary',
|
|
350
356
|
},
|
|
357
|
+
infoPrimary: {
|
|
358
|
+
fill: 'infoPrimary',
|
|
359
|
+
fillHover: 'accentPrimaryHover',
|
|
360
|
+
borderColor: 'accentBorderPrimary',
|
|
361
|
+
badgeAppearance: 'surfacePrimary',
|
|
362
|
+
iconFill: 'infoItemPrimary',
|
|
363
|
+
},
|
|
351
364
|
infoSecondary: {
|
|
352
365
|
fill: 'accentPrimary',
|
|
353
366
|
fillHover: 'accentPrimaryHover',
|
|
354
|
-
labelTextColor: 'accentTextSecondary',
|
|
355
|
-
labelTextColorHover: 'accentTextSecondary',
|
|
356
367
|
borderColor: 'accentBorderPrimary',
|
|
357
368
|
},
|
|
358
369
|
};
|
|
@@ -361,12 +372,14 @@ var iconAppearancePrimary = {
|
|
|
361
372
|
primary: {
|
|
362
373
|
fill: 'primaryPrimary',
|
|
363
374
|
fillHover: 'primaryPrimaryHover',
|
|
364
|
-
|
|
375
|
+
badgeAppearance: 'surfacePrimary',
|
|
376
|
+
iconFill: 'primaryItemPrimary',
|
|
365
377
|
},
|
|
366
378
|
primaryPrimary: {
|
|
367
379
|
fill: 'primaryPrimary',
|
|
368
380
|
fillHover: 'primaryPrimaryHover',
|
|
369
|
-
|
|
381
|
+
badgeAppearance: 'surfacePrimary',
|
|
382
|
+
iconFill: 'primaryItemPrimary',
|
|
370
383
|
},
|
|
371
384
|
};
|
|
372
385
|
|
|
@@ -374,19 +387,19 @@ var iconAppearanceSecondary = {
|
|
|
374
387
|
secondary: {
|
|
375
388
|
fill: 'secondaryPrimary',
|
|
376
389
|
fillHover: 'secondaryPrimaryHover',
|
|
377
|
-
labelTextColor: 'secondaryTextPrimary',
|
|
378
390
|
},
|
|
379
391
|
secondaryPrimary: {
|
|
380
392
|
fill: 'secondaryPrimary',
|
|
381
393
|
fillHover: 'secondaryPrimaryHover',
|
|
382
|
-
|
|
394
|
+
badgeAppearance: 'surfacePrimary',
|
|
395
|
+
iconFill: 'secondaryItemPrimary',
|
|
383
396
|
},
|
|
384
397
|
};
|
|
385
398
|
|
|
386
399
|
var iconAppearanceSize = {
|
|
387
400
|
size12_12: {
|
|
388
401
|
fillSize: '12',
|
|
389
|
-
badgeAppearanceSize: '
|
|
402
|
+
badgeAppearanceSize: 'sizeXXS',
|
|
390
403
|
iconSize: '12',
|
|
391
404
|
},
|
|
392
405
|
size14_12: {
|
|
@@ -416,129 +429,127 @@ var iconAppearanceSize = {
|
|
|
416
429
|
},
|
|
417
430
|
size20_12: {
|
|
418
431
|
fillSize: '20',
|
|
419
|
-
badgeAppearanceSize: '
|
|
432
|
+
badgeAppearanceSize: 'sizeXXS',
|
|
420
433
|
iconSize: '12',
|
|
421
434
|
},
|
|
422
435
|
size20_14: {
|
|
423
436
|
fillSize: '20',
|
|
424
|
-
badgeAppearanceSize: '
|
|
437
|
+
badgeAppearanceSize: 'sizeXXS',
|
|
425
438
|
iconSize: '14',
|
|
426
439
|
},
|
|
427
440
|
size20_16: {
|
|
428
441
|
fillSize: '20',
|
|
429
|
-
badgeAppearanceSize: '
|
|
442
|
+
badgeAppearanceSize: 'sizeXXS',
|
|
430
443
|
iconSize: '16',
|
|
431
444
|
},
|
|
432
445
|
size20_20: {
|
|
433
446
|
fillSize: '20',
|
|
434
|
-
badgeAppearanceSize: '
|
|
447
|
+
badgeAppearanceSize: 'sizeXXS',
|
|
435
448
|
iconSize: '20',
|
|
436
449
|
},
|
|
437
450
|
size24_12: {
|
|
438
451
|
fillSize: '24',
|
|
439
|
-
badgeAppearanceSize: '
|
|
452
|
+
badgeAppearanceSize: 'sizeXXS',
|
|
440
453
|
iconSize: '12',
|
|
441
454
|
},
|
|
442
455
|
size24_14: {
|
|
443
456
|
fillSize: '24',
|
|
444
|
-
badgeAppearanceSize: '
|
|
457
|
+
badgeAppearanceSize: 'sizeXXS',
|
|
445
458
|
iconSize: '14',
|
|
446
459
|
},
|
|
447
460
|
size24_16: {
|
|
448
461
|
fillSize: '24',
|
|
449
|
-
badgeAppearanceSize: '
|
|
462
|
+
badgeAppearanceSize: 'sizeXXS',
|
|
450
463
|
iconSize: '16',
|
|
451
464
|
},
|
|
452
465
|
size24_20: {
|
|
453
466
|
fillSize: '24',
|
|
454
|
-
badgeAppearanceSize: '
|
|
467
|
+
badgeAppearanceSize: 'sizeXXS',
|
|
455
468
|
iconSize: '20',
|
|
456
469
|
},
|
|
457
470
|
size24_24: {
|
|
458
471
|
fillSize: '24',
|
|
459
|
-
badgeAppearanceSize: '
|
|
472
|
+
badgeAppearanceSize: 'sizeXXS',
|
|
460
473
|
iconSize: '24',
|
|
461
474
|
},
|
|
462
475
|
size32_12: {
|
|
463
476
|
fillSize: '32',
|
|
464
|
-
badgeAppearanceSize: '
|
|
477
|
+
badgeAppearanceSize: 'sizeXXS',
|
|
465
478
|
iconSize: '12',
|
|
466
479
|
},
|
|
467
480
|
size32_14: {
|
|
468
481
|
fillSize: '32',
|
|
469
|
-
badgeAppearanceSize: '
|
|
482
|
+
badgeAppearanceSize: 'sizeXXS',
|
|
470
483
|
iconSize: '14',
|
|
471
484
|
},
|
|
472
485
|
size32_16: {
|
|
473
486
|
fillSize: '32',
|
|
474
|
-
badgeAppearanceSize: '
|
|
487
|
+
badgeAppearanceSize: 'sizeXXS',
|
|
475
488
|
iconSize: '16',
|
|
476
489
|
},
|
|
477
490
|
size32_20: {
|
|
478
491
|
fillSize: '32',
|
|
479
|
-
badgeAppearanceSize: '
|
|
492
|
+
badgeAppearanceSize: 'sizeXXS',
|
|
480
493
|
iconSize: '20',
|
|
481
494
|
},
|
|
482
495
|
size32_24: {
|
|
483
496
|
fillSize: '32',
|
|
484
|
-
badgeAppearanceSize: '
|
|
497
|
+
badgeAppearanceSize: 'sizeXXS',
|
|
485
498
|
iconSize: '24',
|
|
486
499
|
},
|
|
487
500
|
size32_32: {
|
|
488
501
|
fillSize: '32',
|
|
489
|
-
badgeAppearanceSize: '
|
|
502
|
+
badgeAppearanceSize: 'sizeXXS',
|
|
490
503
|
iconSize: '32',
|
|
491
504
|
},
|
|
492
505
|
size40_12: {
|
|
493
506
|
fillSize: '40',
|
|
494
|
-
badgeAppearanceSize: '
|
|
507
|
+
badgeAppearanceSize: 'sizeXXS',
|
|
495
508
|
iconSize: '12',
|
|
496
509
|
},
|
|
497
510
|
size40_14: {
|
|
498
511
|
fillSize: '40',
|
|
499
|
-
badgeAppearanceSize: '
|
|
512
|
+
badgeAppearanceSize: 'sizeXXS',
|
|
500
513
|
iconSize: '14',
|
|
501
514
|
},
|
|
502
515
|
size40_16: {
|
|
503
516
|
fillSize: '40',
|
|
504
|
-
badgeAppearanceSize: '
|
|
517
|
+
badgeAppearanceSize: 'sizeXXS',
|
|
505
518
|
iconSize: '16',
|
|
506
519
|
},
|
|
507
520
|
size40_20: {
|
|
508
521
|
fillSize: '40',
|
|
509
|
-
badgeAppearanceSize: '
|
|
522
|
+
badgeAppearanceSize: 'sizeXXS',
|
|
510
523
|
iconSize: '20',
|
|
511
524
|
},
|
|
512
525
|
size40_24: {
|
|
513
526
|
fillSize: '40',
|
|
514
|
-
badgeAppearanceSize: '
|
|
527
|
+
badgeAppearanceSize: 'sizeXXS',
|
|
515
528
|
iconSize: '24',
|
|
516
529
|
},
|
|
517
530
|
size40_32: {
|
|
518
531
|
fillSize: '40',
|
|
519
|
-
badgeAppearanceSize: '
|
|
532
|
+
badgeAppearanceSize: 'sizeXXS',
|
|
520
533
|
iconSize: '32',
|
|
521
534
|
},
|
|
522
535
|
size40_40: {
|
|
523
536
|
fillSize: '40',
|
|
524
|
-
badgeAppearanceSize: '
|
|
537
|
+
badgeAppearanceSize: 'sizeXXS',
|
|
525
538
|
iconSize: '40',
|
|
526
539
|
},
|
|
527
540
|
};
|
|
528
541
|
|
|
529
542
|
var iconAppearanceStyle = {
|
|
530
|
-
|
|
531
|
-
borderColor: '
|
|
532
|
-
},
|
|
533
|
-
ghost: {
|
|
534
|
-
fill: 'none',
|
|
535
|
-
borderColor: '0',
|
|
543
|
+
solid: {
|
|
544
|
+
borderColor: 'none',
|
|
536
545
|
},
|
|
537
546
|
outlined: {
|
|
538
547
|
fill: 'none',
|
|
539
548
|
},
|
|
540
|
-
|
|
541
|
-
|
|
549
|
+
full: {},
|
|
550
|
+
ghost: {
|
|
551
|
+
fill: 'none',
|
|
552
|
+
borderColor: 'none',
|
|
542
553
|
},
|
|
543
554
|
};
|
|
544
555
|
|
|
@@ -546,13 +557,11 @@ var iconAppearanceSuccess = {
|
|
|
546
557
|
success: {
|
|
547
558
|
fill: 'successPrimary',
|
|
548
559
|
fillHover: 'successHover',
|
|
549
|
-
labelTextColor: 'successTextSecondary',
|
|
550
|
-
labelTextColorHover: 'successTextSecondary',
|
|
551
560
|
},
|
|
552
561
|
successPrimary: {
|
|
553
562
|
fill: 'successPrimary',
|
|
554
563
|
fillHover: 'successHover',
|
|
555
|
-
badgeAppearance: '
|
|
564
|
+
badgeAppearance: 'surfacePrimary',
|
|
556
565
|
iconFill: 'successItemPrimary',
|
|
557
566
|
},
|
|
558
567
|
};
|
|
@@ -561,29 +570,24 @@ var iconAppearanceSurface = {
|
|
|
561
570
|
surfacePrimary: {
|
|
562
571
|
fill: 'surfacePrimary',
|
|
563
572
|
fillHover: 'surfaceSecondary',
|
|
564
|
-
|
|
565
|
-
badgeAppearance: 'accentPrimary',
|
|
573
|
+
badgeAppearance: 'surfacePrimary',
|
|
566
574
|
iconFill: 'surfaceItemPrimary',
|
|
567
575
|
},
|
|
568
576
|
surfaceSecondary: {
|
|
569
577
|
fill: 'surfaceSecondary',
|
|
570
578
|
fillHover: 'surfaceSecondaryHover',
|
|
571
|
-
labelTextColor: 'surfaceTextPrimary',
|
|
572
579
|
badgeAppearance: 'accentPrimary',
|
|
573
580
|
iconFill: 'surfaceItemPrimary',
|
|
574
581
|
},
|
|
575
582
|
surfaceTertiary: {
|
|
576
583
|
fill: 'surfaceTertiary',
|
|
577
584
|
fillHover: 'surfaceTertiaryHover',
|
|
578
|
-
labelTextColor: 'surfaceTextPrimary',
|
|
579
585
|
badgeAppearance: 'accentPrimary',
|
|
580
586
|
iconFill: 'surfaceItemPrimary',
|
|
581
587
|
},
|
|
582
588
|
surfaceQuaternary: {
|
|
583
589
|
fill: 'surfaceQuaternary',
|
|
584
590
|
fillHover: 'surfaceHover',
|
|
585
|
-
labelTextColor: 'surfaceTextPrimary',
|
|
586
|
-
labelTextColorHover: 'surfaceTextHover',
|
|
587
591
|
badgeAppearance: 'accentPrimary',
|
|
588
592
|
iconFill: 'surfaceItemPrimary',
|
|
589
593
|
},
|
|
@@ -593,18 +597,18 @@ var iconAppearanceWarning = {
|
|
|
593
597
|
warning: {
|
|
594
598
|
fill: 'warningPrimary',
|
|
595
599
|
fillHover: 'warningHover',
|
|
596
|
-
|
|
597
|
-
|
|
600
|
+
badgeAppearance: 'surfacePrimary',
|
|
601
|
+
iconFill: 'warningItemPrimary',
|
|
598
602
|
},
|
|
599
603
|
warningPrimary: {
|
|
600
604
|
fill: 'warningPrimary',
|
|
601
605
|
fillHover: 'warningHover',
|
|
602
|
-
|
|
603
|
-
|
|
606
|
+
badgeAppearance: 'surfacePrimary',
|
|
607
|
+
iconFill: 'warningItemPrimary',
|
|
604
608
|
},
|
|
605
609
|
};
|
|
606
610
|
|
|
607
|
-
var iconAppearance = tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign({}, iconAppearanceSize), iconAppearanceStyle), iconAppearanceAccent), iconAppearanceDanger), iconAppearanceError), iconAppearanceInfo), iconAppearancePrimary), iconAppearanceSecondary), iconAppearanceSuccess), iconAppearanceSurface), iconAppearanceWarning);
|
|
611
|
+
var iconAppearance = tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign({}, iconAppearanceDisabled), iconAppearanceSize), iconAppearanceStyle), iconAppearanceAccent), iconAppearanceDanger), iconAppearanceError), iconAppearanceInfo), iconAppearancePrimary), iconAppearanceSecondary), iconAppearanceSuccess), iconAppearanceSurface), iconAppearanceWarning);
|
|
608
612
|
|
|
609
613
|
var iconConfig = {
|
|
610
614
|
appearance: iconAppearance,
|
|
@@ -615,7 +619,7 @@ var iconConfig = {
|
|
|
615
619
|
var Icon = React.forwardRef(function Icon(props, ref) {
|
|
616
620
|
// TODO: Tooltip doesn't work that anymore
|
|
617
621
|
// const [isTooltipVisible, setIsTooltipVisible] = useState(false)
|
|
618
|
-
var id = props.id, className = props.className, appearance = props.appearance, width = props.width, height = props.height, isDisabled = props.isDisabled, badgeClass = props.badgeClass, dataTour = props.dataTour, href = props.href, imageSrc = props.imageSrc, link = props.link, linkRel = props.linkRel, linkTarget = props.linkTarget, showTooltip = props.showTooltip, SvgImage = props.SvgImage, before = props.before, after = props.after, isActive = props.isActive, onClick = props.onClick, onMouseEnter = props.onMouseEnter, onMouseLeave = props.onMouseLeave;
|
|
622
|
+
var id = props.id, className = props.className, appearance = props.appearance, width = props.width, height = props.height, isDisabled = props.isDisabled, badgeClass = props.badgeClass, dataTour = props.dataTour, href = props.href, imageSrc = props.imageSrc, link = props.link, linkRel = props.linkRel, linkTarget = props.linkTarget, showTooltip = props.showTooltip, SvgImage = props.SvgImage, before = props.before, after = props.after, isActive = props.isActive, isSkeleton = props.isSkeleton, onClick = props.onClick, onMouseEnter = props.onMouseEnter, onMouseLeave = props.onMouseLeave;
|
|
619
623
|
var ImageComponent = React.useMemo(function () {
|
|
620
624
|
if (SvgImage) {
|
|
621
625
|
var sizes = {};
|
|
@@ -640,7 +644,7 @@ var Icon = React.forwardRef(function Icon(props, ref) {
|
|
|
640
644
|
return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = iconConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
641
645
|
}, {});
|
|
642
646
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
643
|
-
var alignmentClass = propsGenerator.alignmentClass, fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillDisabledClass = propsGenerator.fillDisabledClass, fillHoverClass = propsGenerator.fillHoverClass, fillSizeClass = propsGenerator.fillSizeClass, borderColorClass = propsGenerator.borderColorClass, borderColorHoverClass = propsGenerator.borderColorHoverClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, iconFillDisabledClass = propsGenerator.iconFillDisabledClass, badgeAppearance = propsGenerator.badgeAppearance, badgeAppearanceSize = propsGenerator.badgeAppearanceSize, badgeShape = propsGenerator.badgeShape, badgeSize = propsGenerator.badgeSize, badgeTextColor = propsGenerator.badgeTextColor, badgeTextSize = propsGenerator.badgeTextSize, badgeValue = propsGenerator.badgeValue, cursorClass = propsGenerator.cursorClass, iconFillActiveClass = propsGenerator.iconFillActiveClass, iconFillActiveHoverClass = propsGenerator.iconFillActiveHoverClass, iconFillClass = propsGenerator.iconFillClass, iconFillHoverClass = propsGenerator.iconFillHoverClass, iconSizeClass = propsGenerator.iconSizeClass, shapeClass = propsGenerator.shapeClass, tooltipAppearance = propsGenerator.tooltipAppearance, tooltipText = propsGenerator.tooltipText, tooltipTextSize = propsGenerator.tooltipTextSize, tooltipTitle = propsGenerator.tooltipTitle, tooltipTitleSize = propsGenerator.tooltipTitleSize;
|
|
647
|
+
var alignmentClass = propsGenerator.alignmentClass, fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillDisabledClass = propsGenerator.fillDisabledClass, fillHoverClass = propsGenerator.fillHoverClass, fillSizeClass = propsGenerator.fillSizeClass, borderColorClass = propsGenerator.borderColorClass, borderColorHoverClass = propsGenerator.borderColorHoverClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, iconFillDisabledClass = propsGenerator.iconFillDisabledClass, badgeAppearance = propsGenerator.badgeAppearance, badgeAppearanceSize = propsGenerator.badgeAppearanceSize, badgeShape = propsGenerator.badgeShape, badgeSize = propsGenerator.badgeSize, badgeTextColor = propsGenerator.badgeTextColor, badgeTextSize = propsGenerator.badgeTextSize, badgeValue = propsGenerator.badgeValue, centeringClass = propsGenerator.centeringClass, cursorClass = propsGenerator.cursorClass, iconFillActiveClass = propsGenerator.iconFillActiveClass, iconFillActiveHoverClass = propsGenerator.iconFillActiveHoverClass, iconFillClass = propsGenerator.iconFillClass, iconFillHoverClass = propsGenerator.iconFillHoverClass, iconSizeClass = propsGenerator.iconSizeClass, shapeClass = propsGenerator.shapeClass, tooltipAppearance = propsGenerator.tooltipAppearance, tooltipText = propsGenerator.tooltipText, tooltipTextSize = propsGenerator.tooltipTextSize, tooltipTitle = propsGenerator.tooltipTitle, tooltipTitleSize = propsGenerator.tooltipTitleSize;
|
|
644
648
|
var iconStyles = useStyles.useStyles(props).styles;
|
|
645
649
|
return (jsxRuntime.jsxs("div", { id: id, className: clsx(className, 'icon', !isActive
|
|
646
650
|
? fillClass && "fill_".concat(fillClass)
|
|
@@ -653,7 +657,7 @@ var Icon = React.forwardRef(function Icon(props, ref) {
|
|
|
653
657
|
: iconFillActiveHoverClass &&
|
|
654
658
|
"icon_fill_active_hover_".concat(iconFillActiveHoverClass), isDisabled &&
|
|
655
659
|
iconFillDisabledClass &&
|
|
656
|
-
"icon_fill_disabled_".concat(iconFillDisabledClass), shapeClass && "icon_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), badgeValue && 'icon_with-badge', onClick && cursorClass && "cursor_".concat(cursorClass)), "data-tour": dataTour, ref: ref, style: iconStyles, onClick: onClick, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, children: [before, jsxRuntime.jsxs(Link.LinkWrapper, { className: clsx((link || href || onClick) && 'cursor_type_pointer', link || href ? 'icon__link' : 'icon__item', iconSizeClass && "icon_size_".concat(iconSizeClass)), href: link || href, LinkComponent: "div", rel: linkRel, target: linkTarget, children: [ImageComponent, badgeValue && (jsxRuntime.jsx(Badge, { className: clsx(badgeClass, 'icon__badge'), appearance: "".concat(badgeAppearance, " ").concat(badgeAppearanceSize), size: badgeSize, textColor: badgeTextColor, textSize: badgeTextSize, shape: badgeShape, value: badgeValue })), showTooltip && (jsxRuntime.jsx(Tooltip, { className: clsx(className, 'icon__tooltip', alignmentClass && "alignment_".concat(alignmentClass)), appearance: tooltipAppearance, title: tooltipTitle, titleSize: tooltipTitleSize, text: tooltipText, textSize: tooltipTextSize }))] }), after] }));
|
|
660
|
+
"icon_fill_disabled_".concat(iconFillDisabledClass), shapeClass && "icon_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), badgeValue && 'icon_with-badge', centeringClass && "centering_".concat(centeringClass), onClick && cursorClass && "cursor_".concat(cursorClass), isSkeleton && "icon_skeleton"), "data-tour": dataTour, ref: ref, style: iconStyles, onClick: onClick, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, children: [before, jsxRuntime.jsxs(Link.LinkWrapper, { className: clsx((link || href || onClick) && 'cursor_type_pointer', link || href ? 'icon__link' : 'icon__item', iconSizeClass && "icon_size_".concat(iconSizeClass)), href: link || href, LinkComponent: "div", rel: linkRel, target: linkTarget, children: [ImageComponent, badgeValue && (jsxRuntime.jsx(Badge, { className: clsx(badgeClass, 'icon__badge'), appearance: "".concat(badgeAppearance, " ").concat(badgeAppearanceSize), size: badgeSize, textColor: badgeTextColor, textSize: badgeTextSize, shape: badgeShape, value: badgeValue })), showTooltip && (jsxRuntime.jsx(Tooltip, { className: clsx(className, 'icon__tooltip', alignmentClass && "alignment_".concat(alignmentClass)), appearance: tooltipAppearance, title: tooltipTitle, titleSize: tooltipTitleSize, text: tooltipText, textSize: tooltipTextSize }))] }), after] }));
|
|
657
661
|
});
|
|
658
662
|
var removeFillStroke = function (code) {
|
|
659
663
|
return code
|