@indico-data/design-system 2.53.0 → 2.55.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.
Files changed (92) hide show
  1. package/lib/components/forms/date/inputDateTimePicker/SingleInputDateTimePicker.d.ts +24 -0
  2. package/lib/components/forms/date/inputDateTimePicker/SingleInputDateTimePicker.stories.d.ts +6 -0
  3. package/lib/components/forms/date/inputDateTimePicker/helpers.d.ts +1 -0
  4. package/lib/components/forms/date/inputDateTimePicker/index.d.ts +1 -0
  5. package/lib/components/forms/subcomponents/DisplayFormError.d.ts +2 -1
  6. package/lib/components/forms/timePicker/TimePicker.d.ts +3 -1
  7. package/lib/components/forms/timePicker/helpers.d.ts +2 -5
  8. package/lib/components/index.d.ts +3 -0
  9. package/lib/components/loading-indicators/BarSpinner/BarSpinner.d.ts +8 -0
  10. package/lib/components/loading-indicators/BarSpinner/BarSpinner.stories.d.ts +7 -0
  11. package/lib/components/loading-indicators/BarSpinner/__tests__/BarSpinner.test.d.ts +1 -0
  12. package/lib/components/loading-indicators/CirclePulse/CirclePulse.d.ts +7 -0
  13. package/lib/components/loading-indicators/CirclePulse/CirclePulse.stories.d.ts +6 -0
  14. package/lib/components/tooltip/Tooltip.d.ts +13 -0
  15. package/lib/components/tooltip/Tooltip.stories.d.ts +6 -0
  16. package/lib/index.css +149 -90
  17. package/lib/index.d.ts +53 -47
  18. package/lib/index.esm.css +149 -90
  19. package/lib/index.esm.js +5964 -6155
  20. package/lib/index.esm.js.map +1 -1
  21. package/lib/index.js +5962 -6153
  22. package/lib/index.js.map +1 -1
  23. package/package.json +1 -1
  24. package/src/components/forms/date/datePicker/DatePicker.stories.tsx +4 -4
  25. package/src/components/forms/date/datePicker/DatePicker.tsx +0 -2
  26. package/src/components/forms/date/inputDateTimePicker/SingleInputDateTimePicker.mdx +20 -0
  27. package/src/components/forms/date/inputDateTimePicker/SingleInputDateTimePicker.stories.tsx +262 -0
  28. package/src/components/forms/date/inputDateTimePicker/SingleInputDateTimePicker.tsx +141 -0
  29. package/src/components/forms/date/inputDateTimePicker/helpers.ts +3 -0
  30. package/src/components/forms/date/inputDateTimePicker/index.ts +1 -0
  31. package/src/components/forms/input/Input.tsx +1 -1
  32. package/src/components/forms/passwordInput/PasswordInput.stories.tsx +1 -1
  33. package/src/components/forms/subcomponents/DisplayFormError.tsx +7 -2
  34. package/src/components/forms/timePicker/TimePicker.mdx +3 -27
  35. package/src/components/forms/timePicker/TimePicker.stories.tsx +19 -1
  36. package/src/components/forms/timePicker/TimePicker.tsx +37 -80
  37. package/src/components/forms/timePicker/__tests__/TimePicker.test.tsx +33 -11
  38. package/src/components/forms/timePicker/helpers.ts +61 -13
  39. package/src/components/index.ts +3 -0
  40. package/src/components/loading-indicators/BarSpinner/BarSpinner.mdx +21 -0
  41. package/src/components/loading-indicators/BarSpinner/BarSpinner.stories.tsx +89 -0
  42. package/src/components/loading-indicators/BarSpinner/BarSpinner.tsx +25 -0
  43. package/src/components/loading-indicators/BarSpinner/__tests__/BarSpinner.test.tsx +16 -0
  44. package/src/{legacy/components/loading-indicators/BarSpinner/BarSpinner.styles.ts → components/loading-indicators/BarSpinner/styles/BarSpinner.scss} +11 -11
  45. package/src/components/loading-indicators/CirclePulse/CirclePulse.mdx +20 -0
  46. package/src/components/loading-indicators/CirclePulse/CirclePulse.scss +83 -0
  47. package/src/components/loading-indicators/CirclePulse/CirclePulse.stories.tsx +78 -0
  48. package/src/components/loading-indicators/CirclePulse/CirclePulse.tsx +15 -0
  49. package/src/components/tanstackTable/components/TableBody/TableBody.tsx +1 -1
  50. package/src/components/tooltip/Tooltip.mdx +25 -0
  51. package/src/components/tooltip/Tooltip.stories.tsx +113 -0
  52. package/src/components/tooltip/Tooltip.tsx +38 -0
  53. package/src/components/tooltip/styles/Tooltip.scss +8 -0
  54. package/src/index.ts +4 -2
  55. package/src/styles/globals.scss +9 -0
  56. package/src/styles/index.scss +3 -2
  57. package/lib/components/forms/timePicker/constants.d.ts +0 -13
  58. package/lib/legacy/components/Tooltip/Tooltip.d.ts +0 -15
  59. package/lib/legacy/components/Tooltip/Tooltip.stories.d.ts +0 -9
  60. package/lib/legacy/components/Tooltip/Tooltip.styles.d.ts +0 -1
  61. package/lib/legacy/components/index.d.ts +0 -2
  62. package/lib/legacy/components/loading-indicators/BarSpinner/BarSpinner.d.ts +0 -7
  63. package/lib/legacy/components/loading-indicators/BarSpinner/BarSpinner.stories.d.ts +0 -10
  64. package/lib/legacy/components/loading-indicators/BarSpinner/BarSpinner.styles.d.ts +0 -1
  65. package/lib/legacy/components/loading-indicators/CirclePulse/CirclePulse.d.ts +0 -10
  66. package/lib/legacy/components/loading-indicators/CirclePulse/CirclePulse.stories.d.ts +0 -12
  67. package/lib/legacy/components/loading-indicators/CirclePulse/CirclePulse.styles.d.ts +0 -7
  68. package/lib/legacy/components/loading-indicators/CircleSpinner/CircleSpinner.d.ts +0 -10
  69. package/lib/legacy/components/loading-indicators/CircleSpinner/CircleSpinner.stories.d.ts +0 -10
  70. package/lib/legacy/components/loading-indicators/CircleSpinner/index.d.ts +0 -1
  71. package/lib/legacy/components/loading-indicators/index.d.ts +0 -3
  72. package/src/components/forms/timePicker/constants.ts +0 -21
  73. package/src/components/forms/timePicker/styles/TimePicker.scss +0 -51
  74. package/src/legacy/components/Tooltip/Tooltip.stories.tsx +0 -107
  75. package/src/legacy/components/Tooltip/Tooltip.styles.ts +0 -64
  76. package/src/legacy/components/Tooltip/Tooltip.tsx +0 -70
  77. package/src/legacy/components/index.ts +0 -2
  78. package/src/legacy/components/loading-indicators/BarSpinner/BarSpinner.stories.tsx +0 -14
  79. package/src/legacy/components/loading-indicators/BarSpinner/BarSpinner.tsx +0 -21
  80. package/src/legacy/components/loading-indicators/CirclePulse/CirclePulse.stories.tsx +0 -22
  81. package/src/legacy/components/loading-indicators/CirclePulse/CirclePulse.styles.ts +0 -77
  82. package/src/legacy/components/loading-indicators/CirclePulse/CirclePulse.tsx +0 -57
  83. package/src/legacy/components/loading-indicators/CircleSpinner/CircleSpinner.stories.tsx +0 -16
  84. package/src/legacy/components/loading-indicators/CircleSpinner/CircleSpinner.tsx +0 -36
  85. package/src/legacy/components/loading-indicators/CircleSpinner/index.ts +0 -1
  86. package/src/legacy/components/loading-indicators/index.ts +0 -3
  87. /package/lib/{legacy/components → components}/loading-indicators/BarSpinner/index.d.ts +0 -0
  88. /package/lib/{legacy/components → components}/loading-indicators/CirclePulse/index.d.ts +0 -0
  89. /package/lib/{legacy/components/Tooltip → components/tooltip}/index.d.ts +0 -0
  90. /package/src/{legacy/components → components}/loading-indicators/BarSpinner/index.ts +0 -0
  91. /package/src/{legacy/components → components}/loading-indicators/CirclePulse/index.ts +0 -0
  92. /package/src/{legacy/components/Tooltip → components/tooltip}/index.ts +0 -0
package/lib/index.esm.css CHANGED
@@ -438,6 +438,14 @@ a:hover,
438
438
  background-color: var(--pf-background-color);
439
439
  }
440
440
 
441
+ .react-tooltip {
442
+ z-index: 5;
443
+ background-color: var(--pf-tooltip-background-color);
444
+ border: var(--pf-border-sm) solid var(--pf-border-color);
445
+ opacity: 1 !important;
446
+ text-wrap: wrap;
447
+ }
448
+
441
449
  :root,
442
450
  :root [data-theme=light],
443
451
  :root [data-theme=dark] {
@@ -1843,51 +1851,6 @@ form {
1843
1851
  margin-bottom: 0;
1844
1852
  }
1845
1853
 
1846
- .time-picker-input {
1847
- cursor: pointer;
1848
- }
1849
-
1850
- .time-picker-row {
1851
- width: 150px;
1852
- }
1853
- .time-picker-row .select__value-container {
1854
- text-align: center;
1855
- cursor: pointer;
1856
- }
1857
- .time-picker-row .select-wrapper {
1858
- width: 50px;
1859
- }
1860
- .time-picker-row .select-wrapper .select__items {
1861
- justify-content: center;
1862
- }
1863
- .time-picker-row .select-wrapper .select__menu {
1864
- height: 230px;
1865
- padding-bottom: 0;
1866
- margin-bottom: 0;
1867
- }
1868
- .time-picker-row .select__menu-list {
1869
- max-height: 100%;
1870
- scrollbar-width: none; /* Firefox */
1871
- -ms-overflow-style: none; /* IE and Edge */
1872
- overflow-y: scroll;
1873
- }
1874
- .time-picker-row .select__menu-list::-webkit-scrollbar {
1875
- display: none; /* Chrome, Safari and Opera */
1876
- }
1877
- .time-picker-row .hour-menu .select__menu {
1878
- border-top-right-radius: 0;
1879
- border-bottom-right-radius: 0;
1880
- }
1881
- .time-picker-row .minute-menu .select__menu {
1882
- border-radius: 0;
1883
- border-right: none;
1884
- border-left: none;
1885
- }
1886
- .time-picker-row .period-menu .select__menu {
1887
- border-top-left-radius: 0;
1888
- border-bottom-left-radius: 0;
1889
- }
1890
-
1891
1854
  :root {
1892
1855
  --pf-badge-rounded: var(--pf-rounded);
1893
1856
  }
@@ -2317,51 +2280,6 @@ form {
2317
2280
  display: block;
2318
2281
  }
2319
2282
 
2320
- .time-picker-input {
2321
- cursor: pointer;
2322
- }
2323
-
2324
- .time-picker-row {
2325
- width: 150px;
2326
- }
2327
- .time-picker-row .select__value-container {
2328
- text-align: center;
2329
- cursor: pointer;
2330
- }
2331
- .time-picker-row .select-wrapper {
2332
- width: 50px;
2333
- }
2334
- .time-picker-row .select-wrapper .select__items {
2335
- justify-content: center;
2336
- }
2337
- .time-picker-row .select-wrapper .select__menu {
2338
- height: 230px;
2339
- padding-bottom: 0;
2340
- margin-bottom: 0;
2341
- }
2342
- .time-picker-row .select__menu-list {
2343
- max-height: 100%;
2344
- scrollbar-width: none; /* Firefox */
2345
- -ms-overflow-style: none; /* IE and Edge */
2346
- overflow-y: scroll;
2347
- }
2348
- .time-picker-row .select__menu-list::-webkit-scrollbar {
2349
- display: none; /* Chrome, Safari and Opera */
2350
- }
2351
- .time-picker-row .hour-menu .select__menu {
2352
- border-top-right-radius: 0;
2353
- border-bottom-right-radius: 0;
2354
- }
2355
- .time-picker-row .minute-menu .select__menu {
2356
- border-radius: 0;
2357
- border-right: none;
2358
- border-left: none;
2359
- }
2360
- .time-picker-row .period-menu .select__menu {
2361
- border-top-left-radius: 0;
2362
- border-bottom-left-radius: 0;
2363
- }
2364
-
2365
2283
  :root [data-theme=light] {
2366
2284
  --pf-pill-primary-background-color: var(--pf-primary-color);
2367
2285
  --pf-pill-primary-font-color: var(--pf-white-color);
@@ -2477,6 +2395,147 @@ form {
2477
2395
  border-color: var(--pf-pill-pending-border-color);
2478
2396
  }
2479
2397
 
2398
+ :root [data-theme=light] {
2399
+ --pf-tooltip-background-color: var(--pf-white-color);
2400
+ }
2401
+
2402
+ :root [data-theme=dark],
2403
+ :root {
2404
+ --pf-tooltip-background-color: var(--pf-primary-color-900);
2405
+ }
2406
+
2407
+ @keyframes moveBg {
2408
+ 0% {
2409
+ transform: translateX(0);
2410
+ }
2411
+ 100% {
2412
+ transform: translateX(46px);
2413
+ }
2414
+ }
2415
+ .bar-spinner {
2416
+ display: inline-block;
2417
+ position: relative;
2418
+ width: 100%;
2419
+ height: 100%;
2420
+ min-height: 14px;
2421
+ border-radius: 25px;
2422
+ background-color: var(--pf-primary-color-800);
2423
+ }
2424
+ .bar-spinner > span {
2425
+ display: block;
2426
+ height: 100%;
2427
+ width: 100%;
2428
+ border-radius: 25px;
2429
+ position: relative;
2430
+ overflow: hidden;
2431
+ }
2432
+ .bar-spinner > span:after {
2433
+ content: "";
2434
+ position: absolute;
2435
+ top: 0;
2436
+ left: -46px;
2437
+ bottom: 0;
2438
+ right: 0;
2439
+ background: repeating-linear-gradient(-55deg, transparent 1px, rgba(255, 255, 255, 0.25) 2px, rgba(255, 255, 255, 0.25) 11px, transparent 12px, transparent 20px);
2440
+ animation-name: moveBg;
2441
+ animation-duration: 1s;
2442
+ animation-timing-function: linear;
2443
+ animation-iteration-count: infinite;
2444
+ border-radius: 20px;
2445
+ overflow: hidden;
2446
+ }
2447
+
2448
+ :root {
2449
+ --circle-pulse-animation-speed: 1.4s;
2450
+ --circle-pulse-border-width: var(--pf-border-xl);
2451
+ }
2452
+
2453
+ .circle-pulse-xxs {
2454
+ --circle-pulse-size: 20px;
2455
+ --circle-pulse-ripple-size: calc(20px * 1.7);
2456
+ }
2457
+
2458
+ .circle-pulse-xs {
2459
+ --circle-pulse-size: 40px;
2460
+ --circle-pulse-ripple-size: calc(40px * 1.7);
2461
+ }
2462
+
2463
+ .circle-pulse-sm {
2464
+ --circle-pulse-size: 60px;
2465
+ --circle-pulse-ripple-size: calc(60px * 1.7);
2466
+ }
2467
+
2468
+ .circle-pulse-md {
2469
+ --circle-pulse-size: 80px;
2470
+ --circle-pulse-ripple-size: calc(80px * 1.7);
2471
+ }
2472
+
2473
+ .circle-pulse-lg {
2474
+ --circle-pulse-size: 100px;
2475
+ --circle-pulse-ripple-size: calc(100px * 1.7);
2476
+ }
2477
+
2478
+ .circle-pulse-xl {
2479
+ --circle-pulse-size: 120px;
2480
+ --circle-pulse-ripple-size: calc(120px * 1.7);
2481
+ }
2482
+
2483
+ .circle-pulse-xxl {
2484
+ --circle-pulse-size: 140px;
2485
+ --circle-pulse-ripple-size: calc(140px * 1.7);
2486
+ }
2487
+
2488
+ @keyframes ripple {
2489
+ 0% {
2490
+ transform: translate(-50%, -50%) scale(0);
2491
+ opacity: 0;
2492
+ }
2493
+ 20% {
2494
+ opacity: 1;
2495
+ }
2496
+ 100% {
2497
+ transform: translate(-50%, -50%) scale(1);
2498
+ opacity: 0;
2499
+ }
2500
+ }
2501
+ .circle-pulse {
2502
+ display: grid;
2503
+ place-items: center;
2504
+ position: relative;
2505
+ width: var(--circle-pulse-size);
2506
+ height: var(--circle-pulse-size);
2507
+ margin-left: auto;
2508
+ margin-right: auto;
2509
+ }
2510
+ .circle-pulse:before, .circle-pulse:after {
2511
+ content: "";
2512
+ position: absolute;
2513
+ border: var(--circle-pulse-border-width) solid var(--pf-primary-color-300);
2514
+ border-radius: 50%;
2515
+ /* Set initial dimensions */
2516
+ width: var(--circle-pulse-ripple-size);
2517
+ height: var(--circle-pulse-ripple-size);
2518
+ /* Position at center */
2519
+ top: 50%;
2520
+ left: 50%;
2521
+ transform: translate(-50%, -50%) scale(0);
2522
+ transform-origin: center;
2523
+ animation: ripple var(--circle-pulse-animation-speed) cubic-bezier(0, 0.2, 0.8, 1) infinite;
2524
+ }
2525
+ @media (prefers-reduced-motion) {
2526
+ .circle-pulse:before, .circle-pulse:after {
2527
+ animation-duration: calc(var(--circle-pulse-animation-speed) * 2);
2528
+ }
2529
+ }
2530
+ .circle-pulse:after {
2531
+ animation-delay: calc(var(--circle-pulse-animation-speed) * -0.5);
2532
+ }
2533
+ @media (prefers-reduced-motion) {
2534
+ .circle-pulse:after {
2535
+ animation-delay: calc(var(--circle-pulse-animation-speed) * -1);
2536
+ }
2537
+ }
2538
+
2480
2539
  :root [data-theme=light] {
2481
2540
  --sheets-background-color: var(--pf-gray-color-100);
2482
2541
  }