@gooddata/sdk-ui-kit 11.39.0-alpha.2 → 11.39.0-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/esm/@ui/@types/icon.d.ts +1 -1
  2. package/esm/@ui/UiAddGranteeDialog/UiAddGranteeDialog.d.ts +39 -0
  3. package/esm/@ui/UiAddGranteeDialog/UiAddGranteeDialog.js +30 -0
  4. package/esm/@ui/UiAvatar/UiAvatar.d.ts +40 -0
  5. package/esm/@ui/UiAvatar/UiAvatar.js +19 -0
  6. package/esm/@ui/UiButton/UiButton.d.ts +7 -0
  7. package/esm/@ui/UiButton/UiButton.js +2 -2
  8. package/esm/@ui/UiConfirmDialog/UiConfirmDialog.d.ts +38 -0
  9. package/esm/@ui/UiConfirmDialog/UiConfirmDialog.js +28 -0
  10. package/esm/@ui/UiDialogShell/UiDialogFooter.d.ts +21 -0
  11. package/esm/@ui/UiDialogShell/UiDialogFooter.js +12 -0
  12. package/esm/@ui/UiDialogShell/UiDialogHeader.d.ts +26 -0
  13. package/esm/@ui/UiDialogShell/UiDialogHeader.js +19 -0
  14. package/esm/@ui/UiDialogShell/UiDialogShell.d.ts +58 -0
  15. package/esm/@ui/UiDialogShell/UiDialogShell.js +36 -0
  16. package/esm/@ui/UiGeneralAccessRadio/UiGeneralAccessRadio.d.ts +32 -0
  17. package/esm/@ui/UiGeneralAccessRadio/UiGeneralAccessRadio.js +22 -0
  18. package/esm/@ui/UiGranteeAvatar/UiGranteeAvatar.d.ts +30 -0
  19. package/esm/@ui/UiGranteeAvatar/UiGranteeAvatar.js +25 -0
  20. package/esm/@ui/UiGranteeRow/UiGranteeRow.d.ts +26 -0
  21. package/esm/@ui/UiGranteeRow/UiGranteeRow.js +19 -0
  22. package/esm/@ui/UiIcon/icons.js +5 -0
  23. package/esm/@ui/UiMenu/hooks.js +2 -4
  24. package/esm/@ui/UiObjectShareDialog/UiObjectShareDialog.d.ts +57 -0
  25. package/esm/@ui/UiObjectShareDialog/UiObjectShareDialog.js +28 -0
  26. package/esm/@ui/UiRadio/UiRadio.d.ts +40 -0
  27. package/esm/@ui/UiRadio/UiRadio.js +23 -0
  28. package/esm/@ui/UiRadioRow/UiRadioRow.d.ts +33 -0
  29. package/esm/@ui/UiRadioRow/UiRadioRow.js +19 -0
  30. package/esm/@ui/UiSectionHeading/UiSectionHeading.d.ts +18 -0
  31. package/esm/@ui/UiSectionHeading/UiSectionHeading.js +14 -0
  32. package/esm/@ui/UiTextInput/UiTextInput.d.ts +55 -0
  33. package/esm/@ui/UiTextInput/UiTextInput.js +24 -0
  34. package/esm/index.d.ts +14 -0
  35. package/esm/index.js +14 -0
  36. package/esm/locales.d.ts +69 -0
  37. package/esm/locales.js +32 -1
  38. package/esm/sdk-ui-kit.d.ts +528 -1
  39. package/package.json +11 -11
  40. package/src/@ui/UiAddGranteeDialog/UiAddGranteeDialog.scss +22 -0
  41. package/src/@ui/UiAvatar/UiAvatar.scss +22 -0
  42. package/src/@ui/UiConfirmDialog/UiConfirmDialog.scss +13 -0
  43. package/src/@ui/UiDialogShell/UiDialogShell.scss +56 -0
  44. package/src/@ui/UiGeneralAccessRadio/UiGeneralAccessRadio.scss +8 -0
  45. package/src/@ui/UiGranteeRow/UiGranteeRow.scss +36 -0
  46. package/src/@ui/UiObjectShareDialog/UiObjectShareDialog.scss +12 -0
  47. package/src/@ui/UiRadio/UiRadio.scss +63 -0
  48. package/src/@ui/UiRadioRow/UiRadioRow.scss +44 -0
  49. package/src/@ui/UiSectionHeading/UiSectionHeading.scss +28 -0
  50. package/src/@ui/UiTextInput/UiTextInput.scss +68 -0
  51. package/src/@ui/index.scss +20 -0
  52. package/src/FilterGroupItem/FilterGroupItem.scss +13 -24
  53. package/styles/css/main.css +370 -18
  54. package/styles/css/main.css.map +1 -1
@@ -3319,6 +3319,365 @@
3319
3319
  line-height: 23px;
3320
3320
  }
3321
3321
 
3322
+ .gd-ui-kit-section-heading {
3323
+ display: flex;
3324
+ align-items: center;
3325
+ gap: var(--gd-spacing-15px);
3326
+ }
3327
+ .gd-ui-kit-section-heading__label {
3328
+ font-size: 11px;
3329
+ line-height: 23px;
3330
+ font-weight: 700;
3331
+ text-transform: uppercase;
3332
+ color: var(--gd-palette-complementary-6);
3333
+ flex-shrink: 0;
3334
+ }
3335
+ .gd-ui-kit-section-heading__rule {
3336
+ flex: 1 1 auto;
3337
+ height: 1px;
3338
+ background-color: var(--gd-palette-complementary-3);
3339
+ }
3340
+ .gd-ui-kit-section-heading__action {
3341
+ flex-shrink: 0;
3342
+ display: inline-flex;
3343
+ align-items: center;
3344
+ }
3345
+
3346
+ .gd-ui-kit-dialog-shell {
3347
+ display: flex;
3348
+ flex-direction: column;
3349
+ padding: var(--gd-spacing-20px);
3350
+ background-color: var(--gd-palette-complementary-0);
3351
+ border-radius: var(--gd-modal-borderRadius);
3352
+ box-shadow: 0 2px 8px var(--gd-shadow-color);
3353
+ }
3354
+
3355
+ .gd-ui-kit-dialog-header {
3356
+ display: flex;
3357
+ align-items: center;
3358
+ gap: var(--gd-spacing-15px);
3359
+ margin-bottom: var(--gd-spacing-20px);
3360
+ }
3361
+ .gd-ui-kit-dialog-header__leading {
3362
+ display: inline-flex;
3363
+ align-items: center;
3364
+ flex-shrink: 0;
3365
+ }
3366
+ .gd-ui-kit-dialog-header__title {
3367
+ flex: 1 1 auto;
3368
+ min-width: 0;
3369
+ margin: 0;
3370
+ font-weight: 700;
3371
+ color: var(--gd-palette-complementary-8);
3372
+ overflow: hidden;
3373
+ text-overflow: ellipsis;
3374
+ white-space: nowrap;
3375
+ }
3376
+ .gd-ui-kit-dialog-header__title--size-default {
3377
+ font-size: 18px;
3378
+ line-height: 26px;
3379
+ }
3380
+ .gd-ui-kit-dialog-header__title--size-large {
3381
+ font-size: 20px;
3382
+ line-height: 26px;
3383
+ }
3384
+
3385
+ .gd-ui-kit-dialog-footer {
3386
+ display: flex;
3387
+ justify-content: flex-end;
3388
+ gap: var(--gd-spacing-10px);
3389
+ }
3390
+ .gd-ui-kit-dialog-footer--divider {
3391
+ margin-top: var(--gd-spacing-15px);
3392
+ padding-top: var(--gd-spacing-15px);
3393
+ border-top: 1px solid var(--gd-palette-complementary-3);
3394
+ }
3395
+
3396
+ .gd-ui-kit-confirm-dialog {
3397
+ display: flex;
3398
+ flex-direction: column;
3399
+ }
3400
+ .gd-ui-kit-confirm-dialog__body {
3401
+ font-size: 14px;
3402
+ line-height: 20px;
3403
+ color: var(--gd-palette-complementary-7);
3404
+ margin-bottom: var(--gd-spacing-20px);
3405
+ }
3406
+
3407
+ .gd-ui-kit-text-input {
3408
+ display: flex;
3409
+ flex-direction: column;
3410
+ gap: var(--gd-spacing-5px);
3411
+ }
3412
+ .gd-ui-kit-text-input__label {
3413
+ font-size: 14px;
3414
+ line-height: 21px;
3415
+ color: var(--gd-palette-complementary-7);
3416
+ }
3417
+ .gd-ui-kit-text-input__field {
3418
+ display: flex;
3419
+ align-items: center;
3420
+ height: 32px;
3421
+ padding: 0 var(--gd-spacing-7px);
3422
+ border: 1px solid var(--gd-palette-complementary-4);
3423
+ border-radius: 3px;
3424
+ background-color: var(--gd-palette-complementary-0);
3425
+ box-shadow: inset 0 1px 2px var(--gd-shadow-color);
3426
+ }
3427
+ .gd-ui-kit-text-input__field:focus-within {
3428
+ border-color: var(--gd-palette-primary-base);
3429
+ }
3430
+ .gd-ui-kit-text-input__field--disabled {
3431
+ background-color: var(--gd-palette-complementary-2);
3432
+ cursor: not-allowed;
3433
+ }
3434
+ .gd-ui-kit-text-input__icon-before {
3435
+ display: inline-flex;
3436
+ align-items: center;
3437
+ flex-shrink: 0;
3438
+ margin-right: var(--gd-spacing-5px);
3439
+ }
3440
+ .gd-ui-kit-text-input__icon-after {
3441
+ display: inline-flex;
3442
+ align-items: center;
3443
+ flex-shrink: 0;
3444
+ margin-left: var(--gd-spacing-5px);
3445
+ }
3446
+ .gd-ui-kit-text-input__input {
3447
+ flex: 1 1 auto;
3448
+ min-width: 0;
3449
+ height: 100%;
3450
+ padding: 0;
3451
+ border: none;
3452
+ background: transparent;
3453
+ font-family: inherit;
3454
+ font-size: 14px;
3455
+ color: var(--gd-palette-complementary-8);
3456
+ outline: none;
3457
+ }
3458
+ .gd-ui-kit-text-input__input::placeholder {
3459
+ color: var(--gd-palette-complementary-5);
3460
+ }
3461
+ .gd-ui-kit-text-input__input:disabled {
3462
+ cursor: not-allowed;
3463
+ }
3464
+
3465
+ .gd-ui-kit-radio {
3466
+ display: inline-flex;
3467
+ align-items: center;
3468
+ gap: var(--gd-spacing-5px);
3469
+ }
3470
+ .gd-ui-kit-radio__control {
3471
+ position: relative;
3472
+ display: inline-flex;
3473
+ flex-shrink: 0;
3474
+ width: 14px;
3475
+ height: 14px;
3476
+ }
3477
+ .gd-ui-kit-radio__input {
3478
+ position: absolute;
3479
+ inset: 0;
3480
+ width: 100%;
3481
+ height: 100%;
3482
+ margin: 0;
3483
+ opacity: 0;
3484
+ cursor: pointer;
3485
+ }
3486
+ .gd-ui-kit-radio__input:disabled {
3487
+ cursor: not-allowed;
3488
+ }
3489
+ .gd-ui-kit-radio__circle {
3490
+ width: 14px;
3491
+ height: 14px;
3492
+ border-radius: 50%;
3493
+ border: 1px solid var(--gd-palette-complementary-5);
3494
+ background-color: var(--gd-palette-complementary-0);
3495
+ box-sizing: border-box;
3496
+ pointer-events: none;
3497
+ transition: border-width 60ms ease-out, border-color 60ms ease-out;
3498
+ }
3499
+ .gd-ui-kit-radio__circle--checked {
3500
+ border-color: var(--gd-palette-primary-base);
3501
+ border-width: 4px;
3502
+ }
3503
+ .gd-ui-kit-radio__circle--disabled {
3504
+ border-color: var(--gd-palette-complementary-4);
3505
+ background-color: var(--gd-palette-complementary-2);
3506
+ }
3507
+ .gd-ui-kit-radio__input:focus-visible + .gd-ui-kit-radio__circle {
3508
+ box-shadow: 0 0 0 2px var(--gd-palette-primary-focus);
3509
+ }
3510
+ .gd-ui-kit-radio__label {
3511
+ font-size: 14px;
3512
+ line-height: 20px;
3513
+ color: var(--gd-palette-complementary-8);
3514
+ cursor: pointer;
3515
+ }
3516
+
3517
+ .gd-ui-kit-radio-row {
3518
+ display: flex;
3519
+ align-items: center;
3520
+ gap: var(--gd-spacing-10px);
3521
+ width: 100%;
3522
+ min-height: 50px;
3523
+ padding: var(--gd-spacing-5px) 0;
3524
+ box-sizing: border-box;
3525
+ }
3526
+ .gd-ui-kit-radio-row__text {
3527
+ flex: 1 1 auto;
3528
+ min-width: 0;
3529
+ display: flex;
3530
+ flex-direction: column;
3531
+ line-height: 20px;
3532
+ }
3533
+ .gd-ui-kit-radio-row__title {
3534
+ font-size: 14px;
3535
+ font-weight: 700;
3536
+ color: var(--gd-palette-complementary-8);
3537
+ cursor: pointer;
3538
+ }
3539
+ .gd-ui-kit-radio-row--disabled .gd-ui-kit-radio-row__title {
3540
+ cursor: not-allowed;
3541
+ }
3542
+ .gd-ui-kit-radio-row__description {
3543
+ font-size: 14px;
3544
+ color: var(--gd-palette-complementary-6);
3545
+ overflow: hidden;
3546
+ text-overflow: ellipsis;
3547
+ white-space: nowrap;
3548
+ }
3549
+ .gd-ui-kit-radio-row__trailing {
3550
+ flex-shrink: 0;
3551
+ display: inline-flex;
3552
+ align-items: center;
3553
+ }
3554
+
3555
+ .gd-ui-kit-avatar {
3556
+ display: inline-flex;
3557
+ align-items: center;
3558
+ justify-content: center;
3559
+ flex-shrink: 0;
3560
+ border-radius: 50%;
3561
+ width: var(--gd-avatar-size);
3562
+ height: var(--gd-avatar-size);
3563
+ background-color: var(--gd-avatar-background-color);
3564
+ }
3565
+ .gd-ui-kit-avatar--background-primary {
3566
+ --gd-avatar-background-color: var(--gd-palette-primary-base);
3567
+ }
3568
+ .gd-ui-kit-avatar--background-success {
3569
+ --gd-avatar-background-color: var(--gd-palette-success-base);
3570
+ }
3571
+ .gd-ui-kit-avatar--background-warning {
3572
+ --gd-avatar-background-color: var(--gd-palette-warning-base);
3573
+ }
3574
+ .gd-ui-kit-avatar--background-error {
3575
+ --gd-avatar-background-color: var(--gd-palette-error-base);
3576
+ }
3577
+ .gd-ui-kit-avatar--background-complementary-0 {
3578
+ --gd-avatar-background-color: var(--gd-palette-complementary-0);
3579
+ }
3580
+ .gd-ui-kit-avatar--background-complementary-1 {
3581
+ --gd-avatar-background-color: var(--gd-palette-complementary-1);
3582
+ }
3583
+ .gd-ui-kit-avatar--background-complementary-2 {
3584
+ --gd-avatar-background-color: var(--gd-palette-complementary-2);
3585
+ }
3586
+ .gd-ui-kit-avatar--background-complementary-3 {
3587
+ --gd-avatar-background-color: var(--gd-palette-complementary-3);
3588
+ }
3589
+ .gd-ui-kit-avatar--background-complementary-4 {
3590
+ --gd-avatar-background-color: var(--gd-palette-complementary-4);
3591
+ }
3592
+ .gd-ui-kit-avatar--background-complementary-5 {
3593
+ --gd-avatar-background-color: var(--gd-palette-complementary-5);
3594
+ }
3595
+ .gd-ui-kit-avatar--background-complementary-6 {
3596
+ --gd-avatar-background-color: var(--gd-palette-complementary-6);
3597
+ }
3598
+ .gd-ui-kit-avatar--background-complementary-7 {
3599
+ --gd-avatar-background-color: var(--gd-palette-complementary-7);
3600
+ }
3601
+ .gd-ui-kit-avatar--background-complementary-8 {
3602
+ --gd-avatar-background-color: var(--gd-palette-complementary-8);
3603
+ }
3604
+ .gd-ui-kit-avatar--background-complementary-9 {
3605
+ --gd-avatar-background-color: var(--gd-palette-complementary-9);
3606
+ }
3607
+
3608
+ .gd-ui-kit-grantee-row {
3609
+ display: flex;
3610
+ align-items: center;
3611
+ gap: var(--gd-spacing-10px);
3612
+ width: 100%;
3613
+ min-height: 50px;
3614
+ padding: var(--gd-spacing-5px) 0;
3615
+ box-sizing: border-box;
3616
+ }
3617
+ .gd-ui-kit-grantee-row__text {
3618
+ flex: 1 1 auto;
3619
+ min-width: 0;
3620
+ display: flex;
3621
+ flex-direction: column;
3622
+ line-height: 20px;
3623
+ }
3624
+ .gd-ui-kit-grantee-row__name {
3625
+ font-size: 14px;
3626
+ font-weight: 700;
3627
+ color: var(--gd-palette-complementary-8);
3628
+ overflow: hidden;
3629
+ text-overflow: ellipsis;
3630
+ white-space: nowrap;
3631
+ }
3632
+ .gd-ui-kit-grantee-row__email {
3633
+ font-size: 14px;
3634
+ color: var(--gd-palette-complementary-6);
3635
+ overflow: hidden;
3636
+ text-overflow: ellipsis;
3637
+ white-space: nowrap;
3638
+ }
3639
+
3640
+ .gd-ui-kit-object-share-dialog {
3641
+ display: flex;
3642
+ flex-direction: column;
3643
+ gap: var(--gd-spacing-10px);
3644
+ }
3645
+ .gd-ui-kit-object-share-dialog__grantees {
3646
+ display: flex;
3647
+ flex-direction: column;
3648
+ }
3649
+
3650
+ .gd-ui-kit-add-grantee-dialog {
3651
+ display: flex;
3652
+ flex-direction: column;
3653
+ gap: var(--gd-spacing-10px);
3654
+ padding-bottom: var(--gd-spacing-5px);
3655
+ }
3656
+ .gd-ui-kit-add-grantee-dialog__preview {
3657
+ display: flex;
3658
+ align-items: center;
3659
+ min-height: 50px;
3660
+ }
3661
+ .gd-ui-kit-add-grantee-dialog__empty-state {
3662
+ flex: 1 1 auto;
3663
+ text-align: center;
3664
+ font-size: 14px;
3665
+ line-height: 20px;
3666
+ color: var(--gd-palette-complementary-6);
3667
+ }
3668
+
3669
+ .gd-ui-kit-general-access-radio {
3670
+ display: flex;
3671
+ flex-direction: column;
3672
+ width: 100%;
3673
+ box-sizing: border-box;
3674
+ }
3675
+
3676
+ [class^=gd-ui-kit-],
3677
+ [class*=" gd-ui-kit-"] {
3678
+ font-family: var(--gd-font-family);
3679
+ }
3680
+
3322
3681
  .sr-only {
3323
3682
  position: absolute;
3324
3683
  width: 1px;
@@ -13511,16 +13870,14 @@ input[type=search]::-webkit-search-cancel-button {
13511
13870
  cursor: pointer;
13512
13871
  }
13513
13872
  .gd-filter-group-item .gd-filter-group-item-chevron {
13514
- transition: transform 0.8s ease;
13515
13873
  padding-right: 4px;
13516
13874
  color: var(--gd-palette-complementary-6, #94a1ad);
13517
13875
  }
13518
13876
  .gd-filter-group-item:not(.error, .gd-is-disabled):hover, .gd-filter-group-item.gd-is-active {
13519
13877
  background-color: var(--gd-palette-complementary-2, #ebeff4);
13520
13878
  }
13521
- .gd-filter-group-item:not(.error, .gd-is-disabled):hover::before, .gd-filter-group-item.gd-is-active::before {
13522
- transform: translateX(0) scaleX(1);
13523
- opacity: 1;
13879
+ .gd-filter-group-item.gd-is-active:not(.gd-is-disabled):hover {
13880
+ background-color: var(--gd-palette-primary-dimmed, #e8f7fc);
13524
13881
  }
13525
13882
  .gd-filter-group-item::before {
13526
13883
  content: "";
@@ -13530,23 +13887,14 @@ input[type=search]::-webkit-search-cancel-button {
13530
13887
  width: 4px;
13531
13888
  height: 100%;
13532
13889
  background-color: var(--gd-palette-primary-base, #14b2e2);
13533
- transform: translateX(-2px) scaleX(0);
13534
13890
  opacity: 0;
13535
- transition: transform 0.2s ease, opacity 0.2s ease;
13536
- }
13537
- .gd-filter-group-item:not(.error, .gd-is-disabled):hover .gd-filter-group-item-chevron, .gd-filter-group-item.gd-is-active .gd-filter-group-item-chevron {
13538
- transform: translateX(4px);
13539
13891
  }
13540
- .gd-filter-group-item.gd-is-active:not(.error, .gd-is-disabled):hover {
13541
- background-color: var(--gd-palette-primary-dimmed, #e8f7fc);
13542
- }
13543
- .gd-filter-group-item.gd-is-active:not(.error, .gd-is-disabled):hover::before {
13544
- transform: translateX(-2px) scaleX(0);
13545
- opacity: 0;
13892
+ .gd-filter-group-item.gd-is-active::before {
13893
+ opacity: 1;
13546
13894
  }
13547
- .gd-filter-group-item.gd-is-active:not(.error, .gd-is-disabled):hover .gd-filter-group-item-chevron {
13548
- transform: translateX(0);
13549
- animation: none;
13895
+ .gd-filter-group-item:not(.error, .gd-is-active, .gd-is-disabled):hover::before {
13896
+ background-color: var(--gd-palette-complementary-5-t40, rgba(176, 190, 202, 0.6));
13897
+ opacity: 1;
13550
13898
  }
13551
13899
  .gd-filter-group-item.error:not(.gd-is-active) {
13552
13900
  background-color: var(--gd-palette-error-dimmed, #fcedec);
@@ -13554,6 +13902,10 @@ input[type=search]::-webkit-search-cancel-button {
13554
13902
  .gd-filter-group-item.error:not(.gd-is-active) .gd-filter-group-item-icon {
13555
13903
  color: var(--gd-palette-error-base, #e54d42);
13556
13904
  }
13905
+ .gd-filter-group-item.error:not(.gd-is-active):not(.gd-is-disabled):hover::before {
13906
+ background-color: var(--gd-palette-error-base-t85, rgba(229, 77, 66, 0.15));
13907
+ opacity: 1;
13908
+ }
13557
13909
  .gd-filter-group-item.error.gd-is-active .gd-filter-group-item-icon {
13558
13910
  color: #94a1ad;
13559
13911
  }