@cloudscape-design/components 3.0.831 → 3.0.833

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 (61) hide show
  1. package/app-layout/classic.js +3 -3
  2. package/app-layout/classic.js.map +1 -1
  3. package/app-layout/runtime-drawer/index.d.ts +8 -4
  4. package/app-layout/runtime-drawer/index.d.ts.map +1 -1
  5. package/app-layout/runtime-drawer/index.js.map +1 -1
  6. package/app-layout/utils/use-drawers.d.ts +7 -4
  7. package/app-layout/utils/use-drawers.d.ts.map +1 -1
  8. package/app-layout/utils/use-drawers.js +19 -10
  9. package/app-layout/utils/use-drawers.js.map +1 -1
  10. package/app-layout/visual-refresh/context.js +1 -1
  11. package/app-layout/visual-refresh/context.js.map +1 -1
  12. package/app-layout/visual-refresh-toolbar/drawer/global-drawer.js +1 -1
  13. package/app-layout/visual-refresh-toolbar/drawer/global-drawer.js.map +1 -1
  14. package/app-layout/visual-refresh-toolbar/drawer/local-drawer.js +1 -1
  15. package/app-layout/visual-refresh-toolbar/drawer/local-drawer.js.map +1 -1
  16. package/app-layout/visual-refresh-toolbar/index.d.ts.map +1 -1
  17. package/app-layout/visual-refresh-toolbar/index.js +4 -4
  18. package/app-layout/visual-refresh-toolbar/index.js.map +1 -1
  19. package/app-layout/visual-refresh-toolbar/interfaces.d.ts +3 -2
  20. package/app-layout/visual-refresh-toolbar/interfaces.d.ts.map +1 -1
  21. package/app-layout/visual-refresh-toolbar/interfaces.js.map +1 -1
  22. package/app-layout/visual-refresh-toolbar/multi-layout.d.ts +3 -2
  23. package/app-layout/visual-refresh-toolbar/multi-layout.d.ts.map +1 -1
  24. package/app-layout/visual-refresh-toolbar/multi-layout.js.map +1 -1
  25. package/app-layout/visual-refresh-toolbar/toolbar/drawer-triggers.d.ts +3 -2
  26. package/app-layout/visual-refresh-toolbar/toolbar/drawer-triggers.d.ts.map +1 -1
  27. package/app-layout/visual-refresh-toolbar/toolbar/drawer-triggers.js +4 -4
  28. package/app-layout/visual-refresh-toolbar/toolbar/drawer-triggers.js.map +1 -1
  29. package/app-layout/visual-refresh-toolbar/toolbar/index.d.ts +3 -2
  30. package/app-layout/visual-refresh-toolbar/toolbar/index.d.ts.map +1 -1
  31. package/app-layout/visual-refresh-toolbar/toolbar/index.js.map +1 -1
  32. package/badge/styles.css.js +10 -10
  33. package/badge/styles.scoped.css +20 -20
  34. package/badge/styles.selectors.js +10 -10
  35. package/date-range-picker/calendar/grids/grid-cell.d.ts +7 -0
  36. package/date-range-picker/calendar/grids/grid-cell.d.ts.map +1 -0
  37. package/date-range-picker/calendar/grids/grid-cell.js +51 -0
  38. package/date-range-picker/calendar/grids/grid-cell.js.map +1 -0
  39. package/date-range-picker/calendar/grids/index.js +3 -3
  40. package/date-range-picker/calendar/grids/index.js.map +1 -1
  41. package/date-range-picker/calendar/grids/{grid.d.ts → monthly-grid.d.ts} +2 -2
  42. package/date-range-picker/calendar/grids/monthly-grid.d.ts.map +1 -0
  43. package/date-range-picker/calendar/grids/{grid.js → monthly-grid.js} +4 -49
  44. package/date-range-picker/calendar/grids/monthly-grid.js.map +1 -0
  45. package/internal/base-component/styles.scoped.css +14 -26
  46. package/internal/environment.js +1 -1
  47. package/internal/environment.json +1 -1
  48. package/internal/generated/styles/tokens.d.ts +15 -10
  49. package/internal/generated/styles/tokens.js +15 -10
  50. package/internal/generated/theming/index.cjs +125 -310
  51. package/internal/generated/theming/index.cjs.d.ts +80 -0
  52. package/internal/generated/theming/index.d.ts +80 -0
  53. package/internal/generated/theming/index.js +125 -310
  54. package/internal/manifest.json +1 -1
  55. package/internal/plugins/controllers/drawers.d.ts +13 -5
  56. package/internal/plugins/controllers/drawers.d.ts.map +1 -1
  57. package/internal/plugins/controllers/drawers.js +4 -4
  58. package/internal/plugins/controllers/drawers.js.map +1 -1
  59. package/package.json +1 -1
  60. package/date-range-picker/calendar/grids/grid.d.ts.map +0 -1
  61. package/date-range-picker/calendar/grids/grid.js.map +0 -1
@@ -709,6 +709,66 @@ export var preset = {
709
709
  "light": "{colorChartsOrange1000}",
710
710
  "dark": "{colorChartsOrange1000}"
711
711
  },
712
+ "colorSeverityDarkRed": {
713
+ "light": "#870303",
714
+ "dark": "#d63f38"
715
+ },
716
+ "colorSeverityRed": {
717
+ "light": "#ce3311",
718
+ "dark": "#fe6e73"
719
+ },
720
+ "colorSeverityOrange": {
721
+ "light": "#f89256",
722
+ "dark": "#f89256"
723
+ },
724
+ "colorSeverityYellow": {
725
+ "light": "#f2cd54",
726
+ "dark": "#f2cd54"
727
+ },
728
+ "colorSeverityGrey": {
729
+ "light": "{colorGrey550}",
730
+ "dark": "{colorGrey550}"
731
+ },
732
+ "colorBackgroundNotificationSeverityCritical": {
733
+ "light": "{colorSeverityDarkRed}",
734
+ "dark": "{colorSeverityDarkRed}"
735
+ },
736
+ "colorBackgroundNotificationSeverityHigh": {
737
+ "light": "{colorSeverityRed}",
738
+ "dark": "{colorSeverityRed}"
739
+ },
740
+ "colorBackgroundNotificationSeverityMedium": {
741
+ "light": "{colorSeverityOrange}",
742
+ "dark": "{colorSeverityOrange}"
743
+ },
744
+ "colorBackgroundNotificationSeverityLow": {
745
+ "light": "{colorSeverityYellow}",
746
+ "dark": "{colorSeverityYellow}"
747
+ },
748
+ "colorBackgroundNotificationSeverityNeutral": {
749
+ "light": "{colorSeverityGrey}",
750
+ "dark": "{colorSeverityGrey}"
751
+ },
752
+ "colorTextNotificationSeverityCritical": {
753
+ "light": "{colorGrey100}",
754
+ "dark": "{colorBlack}"
755
+ },
756
+ "colorTextNotificationSeverityHigh": {
757
+ "light": "{colorGrey100}",
758
+ "dark": "{colorGrey900}"
759
+ },
760
+ "colorTextNotificationSeverityMedium": {
761
+ "light": "{colorGrey900}",
762
+ "dark": "{colorGrey900}"
763
+ },
764
+ "colorTextNotificationSeverityLow": {
765
+ "light": "{colorGrey900}",
766
+ "dark": "{colorGrey900}"
767
+ },
768
+ "colorTextNotificationSeverityNeutral": {
769
+ "light": "{colorGrey100}",
770
+ "dark": "{colorGrey100}"
771
+ },
712
772
  "colorGreyOpaque10": {
713
773
  "light": "rgba(0, 0, 0, 0.1)",
714
774
  "dark": "rgba(0, 0, 0, 0.1)"
@@ -1757,46 +1817,6 @@ export var preset = {
1757
1817
  "light": "{colorBlue800}",
1758
1818
  "dark": "{colorBlue400}"
1759
1819
  },
1760
- "colorBackgroundSeverityCritical": {
1761
- "light": "{colorChartsStatusCritical}",
1762
- "dark": "{colorChartsStatusCritical}"
1763
- },
1764
- "colorTextSeverityCritical": {
1765
- "light": "{colorGrey100}",
1766
- "dark": "{colorBlack}"
1767
- },
1768
- "colorBackgroundSeverityHigh": {
1769
- "light": "{colorChartsStatusHigh}",
1770
- "dark": "{colorChartsStatusHigh}"
1771
- },
1772
- "colorTextSeverityHigh": {
1773
- "light": "{colorGrey100}",
1774
- "dark": "{colorGrey900}"
1775
- },
1776
- "colorBackgroundSeverityMedium": {
1777
- "light": "{colorChartsStatusMedium}",
1778
- "dark": "{colorChartsStatusMedium}"
1779
- },
1780
- "colorTextSeverityMedium": {
1781
- "light": "{colorGrey900}",
1782
- "dark": "{colorGrey900}"
1783
- },
1784
- "colorBackgroundSeverityLow": {
1785
- "light": "{colorChartsStatusLow}",
1786
- "dark": "{colorChartsStatusLow}"
1787
- },
1788
- "colorTextSeverityLow": {
1789
- "light": "{colorGrey900}",
1790
- "dark": "{colorGrey900}"
1791
- },
1792
- "colorBackgroundSeverityNeutral": {
1793
- "light": "{colorGrey600}",
1794
- "dark": "{colorGrey550}"
1795
- },
1796
- "colorTextSeverityNeutral": {
1797
- "light": "{colorGrey100}",
1798
- "dark": "{colorGrey100}"
1799
- },
1800
1820
  "fontBoxValueLargeWeight": "700",
1801
1821
  "fontButtonLetterSpacing": "0.005em",
1802
1822
  "fontButtonWeight": "700",
@@ -4007,46 +4027,6 @@ export var preset = {
4007
4027
  "colorDropzoneBorderHover": {
4008
4028
  "light": "{colorBlue400}",
4009
4029
  "dark": "{colorBlue400}"
4010
- },
4011
- "colorBackgroundSeverityCritical": {
4012
- "light": "{colorChartsStatusCritical}",
4013
- "dark": "{colorChartsStatusCritical}"
4014
- },
4015
- "colorTextSeverityCritical": {
4016
- "light": "{colorBlack}",
4017
- "dark": "{colorBlack}"
4018
- },
4019
- "colorBackgroundSeverityHigh": {
4020
- "light": "{colorChartsStatusHigh}",
4021
- "dark": "{colorChartsStatusHigh}"
4022
- },
4023
- "colorTextSeverityHigh": {
4024
- "light": "{colorGrey900}",
4025
- "dark": "{colorGrey900}"
4026
- },
4027
- "colorBackgroundSeverityMedium": {
4028
- "light": "{colorChartsStatusMedium}",
4029
- "dark": "{colorChartsStatusMedium}"
4030
- },
4031
- "colorTextSeverityMedium": {
4032
- "light": "{colorGrey900}",
4033
- "dark": "{colorGrey900}"
4034
- },
4035
- "colorBackgroundSeverityLow": {
4036
- "light": "{colorChartsStatusLow}",
4037
- "dark": "{colorChartsStatusLow}"
4038
- },
4039
- "colorTextSeverityLow": {
4040
- "light": "{colorGrey900}",
4041
- "dark": "{colorGrey900}"
4042
- },
4043
- "colorBackgroundSeverityNeutral": {
4044
- "light": "{colorGrey550}",
4045
- "dark": "{colorGrey550}"
4046
- },
4047
- "colorTextSeverityNeutral": {
4048
- "light": "{colorGrey100}",
4049
- "dark": "{colorGrey100}"
4050
4030
  }
4051
4031
  }
4052
4032
  },
@@ -5169,46 +5149,6 @@ export var preset = {
5169
5149
  "colorDropzoneBorderHover": {
5170
5150
  "light": "{colorBlue400}",
5171
5151
  "dark": "{colorBlue400}"
5172
- },
5173
- "colorBackgroundSeverityCritical": {
5174
- "light": "{colorChartsStatusCritical}",
5175
- "dark": "{colorChartsStatusCritical}"
5176
- },
5177
- "colorTextSeverityCritical": {
5178
- "light": "{colorBlack}",
5179
- "dark": "{colorBlack}"
5180
- },
5181
- "colorBackgroundSeverityHigh": {
5182
- "light": "{colorChartsStatusHigh}",
5183
- "dark": "{colorChartsStatusHigh}"
5184
- },
5185
- "colorTextSeverityHigh": {
5186
- "light": "{colorGrey900}",
5187
- "dark": "{colorGrey900}"
5188
- },
5189
- "colorBackgroundSeverityMedium": {
5190
- "light": "{colorChartsStatusMedium}",
5191
- "dark": "{colorChartsStatusMedium}"
5192
- },
5193
- "colorTextSeverityMedium": {
5194
- "light": "{colorGrey900}",
5195
- "dark": "{colorGrey900}"
5196
- },
5197
- "colorBackgroundSeverityLow": {
5198
- "light": "{colorChartsStatusLow}",
5199
- "dark": "{colorChartsStatusLow}"
5200
- },
5201
- "colorTextSeverityLow": {
5202
- "light": "{colorGrey900}",
5203
- "dark": "{colorGrey900}"
5204
- },
5205
- "colorBackgroundSeverityNeutral": {
5206
- "light": "{colorGrey550}",
5207
- "dark": "{colorGrey550}"
5208
- },
5209
- "colorTextSeverityNeutral": {
5210
- "light": "{colorGrey100}",
5211
- "dark": "{colorGrey100}"
5212
5152
  }
5213
5153
  }
5214
5154
  },
@@ -6263,46 +6203,6 @@ export var preset = {
6263
6203
  "colorDropzoneBorderHover": {
6264
6204
  "light": "{colorBlue800}",
6265
6205
  "dark": "{colorBlue400}"
6266
- },
6267
- "colorBackgroundSeverityCritical": {
6268
- "light": "{colorChartsStatusCritical}",
6269
- "dark": "{colorChartsStatusCritical}"
6270
- },
6271
- "colorTextSeverityCritical": {
6272
- "light": "{colorGrey100}",
6273
- "dark": "{colorBlack}"
6274
- },
6275
- "colorBackgroundSeverityHigh": {
6276
- "light": "{colorChartsStatusHigh}",
6277
- "dark": "{colorChartsStatusHigh}"
6278
- },
6279
- "colorTextSeverityHigh": {
6280
- "light": "{colorGrey100}",
6281
- "dark": "{colorGrey900}"
6282
- },
6283
- "colorBackgroundSeverityMedium": {
6284
- "light": "{colorChartsStatusMedium}",
6285
- "dark": "{colorChartsStatusMedium}"
6286
- },
6287
- "colorTextSeverityMedium": {
6288
- "light": "{colorGrey900}",
6289
- "dark": "{colorGrey900}"
6290
- },
6291
- "colorBackgroundSeverityLow": {
6292
- "light": "{colorChartsStatusLow}",
6293
- "dark": "{colorChartsStatusLow}"
6294
- },
6295
- "colorTextSeverityLow": {
6296
- "light": "{colorGrey900}",
6297
- "dark": "{colorGrey900}"
6298
- },
6299
- "colorBackgroundSeverityNeutral": {
6300
- "light": "{colorGrey600}",
6301
- "dark": "{colorGrey550}"
6302
- },
6303
- "colorTextSeverityNeutral": {
6304
- "light": "{colorGrey100}",
6305
- "dark": "{colorGrey100}"
6306
6206
  }
6307
6207
  }
6308
6208
  },
@@ -7357,46 +7257,6 @@ export var preset = {
7357
7257
  "colorDropzoneBorderHover": {
7358
7258
  "light": "{colorBlue800}",
7359
7259
  "dark": "{colorBlue400}"
7360
- },
7361
- "colorBackgroundSeverityCritical": {
7362
- "light": "{colorChartsStatusCritical}",
7363
- "dark": "{colorChartsStatusCritical}"
7364
- },
7365
- "colorTextSeverityCritical": {
7366
- "light": "{colorGrey100}",
7367
- "dark": "{colorBlack}"
7368
- },
7369
- "colorBackgroundSeverityHigh": {
7370
- "light": "{colorChartsStatusHigh}",
7371
- "dark": "{colorChartsStatusHigh}"
7372
- },
7373
- "colorTextSeverityHigh": {
7374
- "light": "{colorGrey100}",
7375
- "dark": "{colorGrey900}"
7376
- },
7377
- "colorBackgroundSeverityMedium": {
7378
- "light": "{colorChartsStatusMedium}",
7379
- "dark": "{colorChartsStatusMedium}"
7380
- },
7381
- "colorTextSeverityMedium": {
7382
- "light": "{colorGrey900}",
7383
- "dark": "{colorGrey900}"
7384
- },
7385
- "colorBackgroundSeverityLow": {
7386
- "light": "{colorChartsStatusLow}",
7387
- "dark": "{colorChartsStatusLow}"
7388
- },
7389
- "colorTextSeverityLow": {
7390
- "light": "{colorGrey900}",
7391
- "dark": "{colorGrey900}"
7392
- },
7393
- "colorBackgroundSeverityNeutral": {
7394
- "light": "{colorGrey600}",
7395
- "dark": "{colorGrey550}"
7396
- },
7397
- "colorTextSeverityNeutral": {
7398
- "light": "{colorGrey100}",
7399
- "dark": "{colorGrey100}"
7400
7260
  }
7401
7261
  }
7402
7262
  },
@@ -8452,46 +8312,6 @@ export var preset = {
8452
8312
  "light": "{colorBlue800}",
8453
8313
  "dark": "{colorBlue400}"
8454
8314
  },
8455
- "colorBackgroundSeverityCritical": {
8456
- "light": "{colorChartsStatusCritical}",
8457
- "dark": "{colorChartsStatusCritical}"
8458
- },
8459
- "colorTextSeverityCritical": {
8460
- "light": "{colorGrey100}",
8461
- "dark": "{colorBlack}"
8462
- },
8463
- "colorBackgroundSeverityHigh": {
8464
- "light": "{colorChartsStatusHigh}",
8465
- "dark": "{colorChartsStatusHigh}"
8466
- },
8467
- "colorTextSeverityHigh": {
8468
- "light": "{colorGrey100}",
8469
- "dark": "{colorGrey900}"
8470
- },
8471
- "colorBackgroundSeverityMedium": {
8472
- "light": "{colorChartsStatusMedium}",
8473
- "dark": "{colorChartsStatusMedium}"
8474
- },
8475
- "colorTextSeverityMedium": {
8476
- "light": "{colorGrey900}",
8477
- "dark": "{colorGrey900}"
8478
- },
8479
- "colorBackgroundSeverityLow": {
8480
- "light": "{colorChartsStatusLow}",
8481
- "dark": "{colorChartsStatusLow}"
8482
- },
8483
- "colorTextSeverityLow": {
8484
- "light": "{colorGrey900}",
8485
- "dark": "{colorGrey900}"
8486
- },
8487
- "colorBackgroundSeverityNeutral": {
8488
- "light": "{colorGrey600}",
8489
- "dark": "{colorGrey550}"
8490
- },
8491
- "colorTextSeverityNeutral": {
8492
- "light": "{colorGrey100}",
8493
- "dark": "{colorGrey100}"
8494
- },
8495
8315
  "fontExpandableHeadingSize": "14px",
8496
8316
  "borderDividerSectionWidth": "1px"
8497
8317
  }
@@ -9547,46 +9367,6 @@ export var preset = {
9547
9367
  "colorDropzoneBorderHover": {
9548
9368
  "light": "{colorBlue400}",
9549
9369
  "dark": "{colorBlue400}"
9550
- },
9551
- "colorBackgroundSeverityCritical": {
9552
- "light": "{colorChartsStatusCritical}",
9553
- "dark": "{colorChartsStatusCritical}"
9554
- },
9555
- "colorTextSeverityCritical": {
9556
- "light": "{colorBlack}",
9557
- "dark": "{colorBlack}"
9558
- },
9559
- "colorBackgroundSeverityHigh": {
9560
- "light": "{colorChartsStatusHigh}",
9561
- "dark": "{colorChartsStatusHigh}"
9562
- },
9563
- "colorTextSeverityHigh": {
9564
- "light": "{colorGrey900}",
9565
- "dark": "{colorGrey900}"
9566
- },
9567
- "colorBackgroundSeverityMedium": {
9568
- "light": "{colorChartsStatusMedium}",
9569
- "dark": "{colorChartsStatusMedium}"
9570
- },
9571
- "colorTextSeverityMedium": {
9572
- "light": "{colorGrey900}",
9573
- "dark": "{colorGrey900}"
9574
- },
9575
- "colorBackgroundSeverityLow": {
9576
- "light": "{colorChartsStatusLow}",
9577
- "dark": "{colorChartsStatusLow}"
9578
- },
9579
- "colorTextSeverityLow": {
9580
- "light": "{colorGrey900}",
9581
- "dark": "{colorGrey900}"
9582
- },
9583
- "colorBackgroundSeverityNeutral": {
9584
- "light": "{colorGrey550}",
9585
- "dark": "{colorGrey550}"
9586
- },
9587
- "colorTextSeverityNeutral": {
9588
- "light": "{colorGrey100}",
9589
- "dark": "{colorGrey100}"
9590
9370
  }
9591
9371
  }
9592
9372
  }
@@ -9746,6 +9526,21 @@ export var preset = {
9746
9526
  "colorChartsPaletteCategorical48": "color",
9747
9527
  "colorChartsPaletteCategorical49": "color",
9748
9528
  "colorChartsPaletteCategorical50": "color",
9529
+ "colorSeverityDarkRed": "color",
9530
+ "colorSeverityRed": "color",
9531
+ "colorSeverityOrange": "color",
9532
+ "colorSeverityYellow": "color",
9533
+ "colorSeverityGrey": "color",
9534
+ "colorBackgroundNotificationSeverityCritical": "color",
9535
+ "colorBackgroundNotificationSeverityHigh": "color",
9536
+ "colorBackgroundNotificationSeverityMedium": "color",
9537
+ "colorBackgroundNotificationSeverityLow": "color",
9538
+ "colorBackgroundNotificationSeverityNeutral": "color",
9539
+ "colorTextNotificationSeverityCritical": "color",
9540
+ "colorTextNotificationSeverityHigh": "color",
9541
+ "colorTextNotificationSeverityMedium": "color",
9542
+ "colorTextNotificationSeverityLow": "color",
9543
+ "colorTextNotificationSeverityNeutral": "color",
9749
9544
  "colorGreyOpaque10": "color",
9750
9545
  "colorGreyOpaque25": "color",
9751
9546
  "colorGreyOpaque40": "color",
@@ -10008,16 +9803,6 @@ export var preset = {
10008
9803
  "colorDropzoneTextHover": "color",
10009
9804
  "colorDropzoneBorderDefault": "color",
10010
9805
  "colorDropzoneBorderHover": "color",
10011
- "colorBackgroundSeverityCritical": "color",
10012
- "colorTextSeverityCritical": "color",
10013
- "colorBackgroundSeverityHigh": "color",
10014
- "colorTextSeverityHigh": "color",
10015
- "colorBackgroundSeverityMedium": "color",
10016
- "colorTextSeverityMedium": "color",
10017
- "colorBackgroundSeverityLow": "color",
10018
- "colorTextSeverityLow": "color",
10019
- "colorBackgroundSeverityNeutral": "color",
10020
- "colorTextSeverityNeutral": "color",
10021
9806
  "motionDurationExtraFast": "motion",
10022
9807
  "motionDurationExtraSlow": "motion",
10023
9808
  "motionDurationFast": "motion",
@@ -10249,6 +10034,16 @@ export var preset = {
10249
10034
  "colorChartsPaletteCategorical48",
10250
10035
  "colorChartsPaletteCategorical49",
10251
10036
  "colorChartsPaletteCategorical50",
10037
+ "colorBackgroundNotificationSeverityCritical",
10038
+ "colorBackgroundNotificationSeverityHigh",
10039
+ "colorBackgroundNotificationSeverityMedium",
10040
+ "colorBackgroundNotificationSeverityLow",
10041
+ "colorBackgroundNotificationSeverityNeutral",
10042
+ "colorTextNotificationSeverityCritical",
10043
+ "colorTextNotificationSeverityHigh",
10044
+ "colorTextNotificationSeverityMedium",
10045
+ "colorTextNotificationSeverityLow",
10046
+ "colorTextNotificationSeverityNeutral",
10252
10047
  "colorBackgroundButtonNormalActive",
10253
10048
  "colorBackgroundButtonNormalDefault",
10254
10049
  "colorBackgroundButtonNormalDisabled",
@@ -10575,6 +10370,16 @@ export var preset = {
10575
10370
  "colorChartsPaletteCategorical48",
10576
10371
  "colorChartsPaletteCategorical49",
10577
10372
  "colorChartsPaletteCategorical50",
10373
+ "colorBackgroundNotificationSeverityCritical",
10374
+ "colorBackgroundNotificationSeverityHigh",
10375
+ "colorBackgroundNotificationSeverityMedium",
10376
+ "colorBackgroundNotificationSeverityLow",
10377
+ "colorBackgroundNotificationSeverityNeutral",
10378
+ "colorTextNotificationSeverityCritical",
10379
+ "colorTextNotificationSeverityHigh",
10380
+ "colorTextNotificationSeverityMedium",
10381
+ "colorTextNotificationSeverityLow",
10382
+ "colorTextNotificationSeverityNeutral",
10578
10383
  "colorBackgroundButtonNormalActive",
10579
10384
  "colorBackgroundButtonNormalDefault",
10580
10385
  "colorBackgroundButtonNormalDisabled",
@@ -10996,6 +10801,21 @@ export var preset = {
10996
10801
  "colorChartsPaletteCategorical48": "color-charts-palette-categorical-48",
10997
10802
  "colorChartsPaletteCategorical49": "color-charts-palette-categorical-49",
10998
10803
  "colorChartsPaletteCategorical50": "color-charts-palette-categorical-50",
10804
+ "colorSeverityDarkRed": "color-severity-dark-red",
10805
+ "colorSeverityRed": "color-severity-red",
10806
+ "colorSeverityOrange": "color-severity-orange",
10807
+ "colorSeverityYellow": "color-severity-yellow",
10808
+ "colorSeverityGrey": "color-severity-grey",
10809
+ "colorBackgroundNotificationSeverityCritical": "color-background-notification-severity-critical",
10810
+ "colorBackgroundNotificationSeverityHigh": "color-background-notification-severity-high",
10811
+ "colorBackgroundNotificationSeverityMedium": "color-background-notification-severity-medium",
10812
+ "colorBackgroundNotificationSeverityLow": "color-background-notification-severity-low",
10813
+ "colorBackgroundNotificationSeverityNeutral": "color-background-notification-severity-neutral",
10814
+ "colorTextNotificationSeverityCritical": "color-text-notification-severity-critical",
10815
+ "colorTextNotificationSeverityHigh": "color-text-notification-severity-high",
10816
+ "colorTextNotificationSeverityMedium": "color-text-notification-severity-medium",
10817
+ "colorTextNotificationSeverityLow": "color-text-notification-severity-low",
10818
+ "colorTextNotificationSeverityNeutral": "color-text-notification-severity-neutral",
10999
10819
  "colorGreyOpaque10": "color-grey-opaque-10",
11000
10820
  "colorGreyOpaque25": "color-grey-opaque-25",
11001
10821
  "colorGreyOpaque40": "color-grey-opaque-40",
@@ -11258,16 +11078,6 @@ export var preset = {
11258
11078
  "colorDropzoneTextHover": "color-dropzone-text-hover",
11259
11079
  "colorDropzoneBorderDefault": "color-dropzone-border-default",
11260
11080
  "colorDropzoneBorderHover": "color-dropzone-border-hover",
11261
- "colorBackgroundSeverityCritical": "color-background-severity-critical",
11262
- "colorTextSeverityCritical": "color-text-severity-critical",
11263
- "colorBackgroundSeverityHigh": "color-background-severity-high",
11264
- "colorTextSeverityHigh": "color-text-severity-high",
11265
- "colorBackgroundSeverityMedium": "color-background-severity-medium",
11266
- "colorTextSeverityMedium": "color-text-severity-medium",
11267
- "colorBackgroundSeverityLow": "color-background-severity-low",
11268
- "colorTextSeverityLow": "color-text-severity-low",
11269
- "colorBackgroundSeverityNeutral": "color-background-severity-neutral",
11270
- "colorTextSeverityNeutral": "color-text-severity-neutral",
11271
11081
  "fontBoxValueLargeWeight": "font-box-value-large-weight",
11272
11082
  "fontButtonLetterSpacing": "font-button-letter-spacing",
11273
11083
  "fontButtonWeight": "font-button-weight",
@@ -11731,6 +11541,21 @@ export var preset = {
11731
11541
  "colorChartsPaletteCategorical48": "--color-charts-palette-categorical-48-tptw1p",
11732
11542
  "colorChartsPaletteCategorical49": "--color-charts-palette-categorical-49-6lrkes",
11733
11543
  "colorChartsPaletteCategorical50": "--color-charts-palette-categorical-50-mqbaxr",
11544
+ "colorSeverityDarkRed": "--color-severity-dark-red-26aton",
11545
+ "colorSeverityRed": "--color-severity-red-mjb3fl",
11546
+ "colorSeverityOrange": "--color-severity-orange-3ez4cr",
11547
+ "colorSeverityYellow": "--color-severity-yellow-mn9wrz",
11548
+ "colorSeverityGrey": "--color-severity-grey-s6nlyg",
11549
+ "colorBackgroundNotificationSeverityCritical": "--color-background-notification-severity-critical-m6z340",
11550
+ "colorBackgroundNotificationSeverityHigh": "--color-background-notification-severity-high-zn7yde",
11551
+ "colorBackgroundNotificationSeverityMedium": "--color-background-notification-severity-medium-empymi",
11552
+ "colorBackgroundNotificationSeverityLow": "--color-background-notification-severity-low-jkxbp4",
11553
+ "colorBackgroundNotificationSeverityNeutral": "--color-background-notification-severity-neutral-wtuxqz",
11554
+ "colorTextNotificationSeverityCritical": "--color-text-notification-severity-critical-cmj0dk",
11555
+ "colorTextNotificationSeverityHigh": "--color-text-notification-severity-high-rgh0m2",
11556
+ "colorTextNotificationSeverityMedium": "--color-text-notification-severity-medium-9rk0hm",
11557
+ "colorTextNotificationSeverityLow": "--color-text-notification-severity-low-so8wqb",
11558
+ "colorTextNotificationSeverityNeutral": "--color-text-notification-severity-neutral-h04hdx",
11734
11559
  "colorGreyOpaque10": "--color-grey-opaque-10-xipm4s",
11735
11560
  "colorGreyOpaque25": "--color-grey-opaque-25-igqnxy",
11736
11561
  "colorGreyOpaque40": "--color-grey-opaque-40-wxjof3",
@@ -11993,16 +11818,6 @@ export var preset = {
11993
11818
  "colorDropzoneTextHover": "--color-dropzone-text-hover-wteupn",
11994
11819
  "colorDropzoneBorderDefault": "--color-dropzone-border-default-phwpnt",
11995
11820
  "colorDropzoneBorderHover": "--color-dropzone-border-hover-tpluhc",
11996
- "colorBackgroundSeverityCritical": "--color-background-severity-critical-idosdq",
11997
- "colorTextSeverityCritical": "--color-text-severity-critical-gtjw4w",
11998
- "colorBackgroundSeverityHigh": "--color-background-severity-high-434xpy",
11999
- "colorTextSeverityHigh": "--color-text-severity-high-wt51jx",
12000
- "colorBackgroundSeverityMedium": "--color-background-severity-medium-n5069n",
12001
- "colorTextSeverityMedium": "--color-text-severity-medium-tezhp2",
12002
- "colorBackgroundSeverityLow": "--color-background-severity-low-5ab62f",
12003
- "colorTextSeverityLow": "--color-text-severity-low-f87ni8",
12004
- "colorBackgroundSeverityNeutral": "--color-background-severity-neutral-e76h14",
12005
- "colorTextSeverityNeutral": "--color-text-severity-neutral-x89dxu",
12006
11821
  "fontBoxValueLargeWeight": "--font-box-value-large-weight-onoq9k",
12007
11822
  "fontButtonLetterSpacing": "--font-button-letter-spacing-65ug0o",
12008
11823
  "fontButtonWeight": "--font-button-weight-hv56tz",
@@ -1,3 +1,3 @@
1
1
  {
2
- "commit": "d8a1a65c49844da6061b1b33af4bde49a1aa4a27"
2
+ "commit": "0c31f9fb7f4b35eafb1043915901ba559c9a6630"
3
3
  }
@@ -3,6 +3,10 @@ export type DrawerVisibilityChange = (callback: (isVisible: boolean) => void) =>
3
3
  export interface MountContentContext {
4
4
  onVisibilityChange: DrawerVisibilityChange;
5
5
  }
6
+ export interface DrawerStateChangeParams {
7
+ isOpen: boolean;
8
+ initiatedByUserAction?: boolean;
9
+ }
6
10
  export interface DrawerConfig {
7
11
  id: string;
8
12
  type?: 'local' | 'global';
@@ -27,18 +31,22 @@ export interface DrawerConfig {
27
31
  mountContent: (container: HTMLElement, mountContext: MountContentContext) => void;
28
32
  unmountContent: (container: HTMLElement) => void;
29
33
  preserveInactiveContent?: boolean;
34
+ onToggle?: NonCancelableEventHandler<DrawerStateChangeParams>;
30
35
  }
31
36
  declare const updatableProperties: readonly ["badge", "resizable", "defaultSize", "orderPriority", "defaultActive", "onResize"];
32
37
  export type UpdateDrawerConfig = {
33
38
  id: DrawerConfig['id'];
34
39
  } & Partial<Pick<DrawerConfig, (typeof updatableProperties)[number]>>;
35
40
  export type DrawersRegistrationListener = (drawers: Array<DrawerConfig>) => void;
36
- export type DrawersToggledListener = (drawerId: string) => void;
41
+ export type DrawersToggledListener = (drawerId: string, params?: OpenCloseDrawerParams) => void;
42
+ export interface OpenCloseDrawerParams {
43
+ initiatedByUserAction: boolean;
44
+ }
37
45
  export interface DrawersApiPublic {
38
46
  registerDrawer(config: DrawerConfig): void;
39
47
  updateDrawer(config: UpdateDrawerConfig): void;
40
- openDrawer(drawerId: string): void;
41
- closeDrawer(drawerId: string): void;
48
+ openDrawer(drawerId: string, params?: OpenCloseDrawerParams): void;
49
+ closeDrawer(drawerId: string, params?: OpenCloseDrawerParams): void;
42
50
  }
43
51
  export interface DrawersApiInternal {
44
52
  clearRegisteredDrawers(): void;
@@ -58,8 +66,8 @@ export declare class DrawersController {
58
66
  clearRegisteredDrawers: () => void;
59
67
  onDrawerOpened: (listener: DrawersToggledListener) => () => void;
60
68
  onDrawerClosed: (listener: DrawersToggledListener) => () => void;
61
- openDrawer: (drawerId: string) => void;
62
- closeDrawer: (drawerId: string) => void;
69
+ openDrawer: (drawerId: string, params?: OpenCloseDrawerParams) => void;
70
+ closeDrawer: (drawerId: string, params?: OpenCloseDrawerParams) => void;
63
71
  installPublic(api?: Partial<DrawersApiPublic>): DrawersApiPublic;
64
72
  installInternal(internalApi?: Partial<DrawersApiInternal>): DrawersApiInternal;
65
73
  }
@@ -1 +1 @@
1
- {"version":3,"file":"drawers.d.ts","sourceRoot":"","sources":["../../../../../src/internal/plugins/controllers/drawers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAC;AAEzD,MAAM,MAAM,sBAAsB,GAAG,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,KAAK,IAAI,CAAC;AAEtF,MAAM,WAAW,mBAAmB;IAClC,kBAAkB,EAAE,sBAAsB,CAAC;CAC5C;AAED,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IAC1B,UAAU,EAAE;QACV,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,YAAY,CAAC,EAAE,MAAM,CAAC;KACvB,CAAC;IACF,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,yBAAyB,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE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awer = (drawerId) => {
77
+ this.openDrawer = (drawerId, params) => {
78
78
  var _a;
79
- (_a = this.drawerOpenedListener) === null || _a === void 0 ? void 0 : _a.call(this, drawerId);
79
+ (_a = this.drawerOpenedListener) === null || _a === void 0 ? void 0 : _a.call(this, drawerId, params);
80
80
  };
81
- this.closeDrawer = (drawerId) => {
81
+ this.closeDrawer = (drawerId, params) => {
82
82
  var _a;
83
- (_a = this.drawerClosedListener) === null || _a === void 0 ? void 0 : _a.call(this, drawerId);
83
+ (_a = this.drawerClosedListener) === null || _a === void 0 ? void 0 : _a.call(this, drawerId, params);
84
84
  };
85
85
  }
86
86
  installPublic(api = {}) {