rsuite 5.24.0 → 5.25.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 (77) hide show
  1. package/Breadcrumb/styles/index.less +4 -0
  2. package/Button/styles/index.less +14 -10
  3. package/CHANGELOG.md +31 -0
  4. package/Calendar/styles/index.less +15 -16
  5. package/DatePicker/styles/index.less +9 -0
  6. package/DatePicker/styles/mixin.less +8 -0
  7. package/Picker/styles/index.less +5 -9
  8. package/Picker/styles/mixin.less +4 -40
  9. package/TreePicker/styles/index.less +13 -0
  10. package/cjs/@types/global.d.ts +6 -0
  11. package/cjs/Breadcrumb/BreadcrumbItem.js +1 -1
  12. package/cjs/Calendar/MonthDropdown.js +2 -4
  13. package/cjs/Calendar/TableHeaderRow.js +3 -3
  14. package/cjs/Cascader/Cascader.js +2 -2
  15. package/cjs/Cascader/utils.d.ts +1 -1
  16. package/cjs/Cascader/utils.js +2 -2
  17. package/cjs/Content/Content.d.ts +1 -1
  18. package/cjs/CustomProvider/CustomProvider.d.ts +2 -0
  19. package/cjs/CustomProvider/CustomProvider.js +5 -3
  20. package/cjs/Footer/Footer.d.ts +1 -1
  21. package/cjs/Header/Header.d.ts +1 -1
  22. package/cjs/MultiCascader/MultiCascader.js +4 -4
  23. package/cjs/MultiCascader/utils.d.ts +1 -1
  24. package/cjs/MultiCascader/utils.js +2 -2
  25. package/cjs/Navbar/NavbarBrand.d.ts +1 -1
  26. package/cjs/Overlay/OverlayTrigger.js +4 -0
  27. package/cjs/Picker/PickerToggle.js +1 -1
  28. package/cjs/Picker/PickerToggleTrigger.js +6 -7
  29. package/cjs/Ripple/Ripple.js +8 -0
  30. package/cjs/TreePicker/TreeNode.d.ts +3 -3
  31. package/cjs/TreePicker/TreeNode.js +1 -11
  32. package/cjs/TreePicker/TreePicker.js +8 -1
  33. package/cjs/utils/createComponent.d.ts +3 -3
  34. package/cjs/utils/treeUtils.d.ts +12 -0
  35. package/cjs/utils/treeUtils.js +42 -0
  36. package/cjs/utils/useCustom.js +3 -1
  37. package/dist/rsuite-rtl.css +299 -263
  38. package/dist/rsuite-rtl.min.css +1 -1
  39. package/dist/rsuite-rtl.min.css.map +1 -1
  40. package/dist/rsuite.css +299 -263
  41. package/dist/rsuite.js +19 -19
  42. package/dist/rsuite.min.css +1 -1
  43. package/dist/rsuite.min.css.map +1 -1
  44. package/dist/rsuite.min.js +1 -1
  45. package/dist/rsuite.min.js.map +1 -1
  46. package/esm/@types/global.d.ts +6 -0
  47. package/esm/Breadcrumb/BreadcrumbItem.js +1 -1
  48. package/esm/Calendar/MonthDropdown.js +2 -4
  49. package/esm/Calendar/TableHeaderRow.js +3 -3
  50. package/esm/Cascader/Cascader.js +2 -2
  51. package/esm/Cascader/utils.d.ts +1 -1
  52. package/esm/Cascader/utils.js +2 -2
  53. package/esm/Content/Content.d.ts +1 -1
  54. package/esm/CustomProvider/CustomProvider.d.ts +2 -0
  55. package/esm/CustomProvider/CustomProvider.js +5 -3
  56. package/esm/Footer/Footer.d.ts +1 -1
  57. package/esm/Header/Header.d.ts +1 -1
  58. package/esm/MultiCascader/MultiCascader.js +4 -4
  59. package/esm/MultiCascader/utils.d.ts +1 -1
  60. package/esm/MultiCascader/utils.js +2 -2
  61. package/esm/Navbar/NavbarBrand.d.ts +1 -1
  62. package/esm/Overlay/OverlayTrigger.js +4 -0
  63. package/esm/Picker/PickerToggle.js +1 -1
  64. package/esm/Picker/PickerToggleTrigger.js +7 -5
  65. package/esm/Ripple/Ripple.js +9 -1
  66. package/esm/TreePicker/TreeNode.d.ts +3 -3
  67. package/esm/TreePicker/TreeNode.js +2 -11
  68. package/esm/TreePicker/TreePicker.js +9 -2
  69. package/esm/utils/createComponent.d.ts +3 -3
  70. package/esm/utils/treeUtils.d.ts +12 -0
  71. package/esm/utils/treeUtils.js +36 -0
  72. package/esm/utils/useCustom.js +3 -1
  73. package/package.json +2 -2
  74. package/styles/color-modes/dark.less +6 -2
  75. package/styles/color-modes/high-contrast.less +4 -0
  76. package/styles/color-modes/light.less +5 -1
  77. package/styles/variables.less +7 -8
@@ -241,7 +241,7 @@
241
241
  @btn-border-radius-base: @border-radius; // @deprecated use @btn-border-radius instead
242
242
  @btn-border-radius: @btn-border-radius-base;
243
243
 
244
- @btn-transition: color 0.2s linear, background-color 0.3s linear;
244
+ @btn-transition: color 0.15s ease-out, background-color 0.15s ease-out;
245
245
  @btn-disabled-opacity: 0.3;
246
246
 
247
247
  // Ghost Button
@@ -312,7 +312,7 @@
312
312
  @input-padding-y: @padding-base-input-vertical;
313
313
  @input-padding-x: @padding-base-input-horizontal;
314
314
  @input-border-width: 1px;
315
- @input-transition: border-color ease-in-out 0.3s;
315
+ @input-transition: border-color ease-in-out 0.15s;
316
316
 
317
317
  // This has no effect on `<select>`s in some browsers, due to the limited stylability of `<select>`s in CSS.
318
318
  @input-border-radius: @border-radius;
@@ -368,7 +368,7 @@
368
368
  // Toggle
369
369
 
370
370
  @toggle-active-scale: 1.2;
371
- @toggle-transition: 0.2s ease-in-out;
371
+ @toggle-transition: 0.15s ease-out;
372
372
 
373
373
  @toggle-md-height: 24px;
374
374
  @toggle-md-handle-gap: 3px;
@@ -393,7 +393,7 @@
393
393
 
394
394
  // Navs
395
395
 
396
- @nav-item-transition: color 0.3s linear, background-color 0.3s linear;
396
+ @nav-item-transition: color 0.15s ease-out, background-color 0.15s ease-out;
397
397
 
398
398
  // Tab
399
399
  @nav-tab-bar-width: 1px;
@@ -432,7 +432,7 @@
432
432
  @sidenav-icon-spacing: 20px;
433
433
  @sidenav-icon-width: @sidenav-level1-item-font-size;
434
434
  @sidenav-dropdown-toggle-caret-width: 20px;
435
- @sidenav-collapse-transition-config: 0.2s ease-in;
435
+ @sidenav-collapse-transition-config: 0.15s ease-in;
436
436
 
437
437
  @sidenav-level-retract: 9px;
438
438
  @sidenav-level2-retract: (@sidenav-padding-horizontal + @sidenav-icon-width + @sidenav-icon-spacing);
@@ -648,7 +648,7 @@
648
648
  @panel-padding: 20px;
649
649
  @panel-header-font-size: 16px;
650
650
  @panel-split-line-color: @dropdown-divider-bg;
651
- @panel-accodion-transition: 0.3s linear;
651
+ @panel-accodion-transition: 0.15s linear;
652
652
  @panel-box-shadow: @box-shadow;
653
653
 
654
654
  // Timeline
@@ -717,7 +717,6 @@
717
717
 
718
718
  @picker-item-content-padding-vertical: 8px;
719
719
  @picker-item-content-padding-horizontal: @picker-menu-padding;
720
- @picker-item-transition: color 0.3s linear, background-color 0.3s linear;
721
720
 
722
721
  // group title
723
722
  @picker-group-children-padding-left: 26px;
@@ -806,7 +805,7 @@
806
805
  @slider-calibration-diameter: 8px;
807
806
  @slider-calibration-border-width: 2px;
808
807
  @slider-mark-margin-top: 9px;
809
- @slider-handle-transition: 0.3s ease-in-out;
808
+ @slider-handle-transition: 0.15s ease-in-out;
810
809
 
811
810
  // Breadcrumbs
812
811