rsuite 6.1.1 → 6.1.2

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 (120) hide show
  1. package/Accordion/styles/index.css +0 -22
  2. package/AutoComplete/styles/index.css +0 -17
  3. package/Avatar/styles/index.css +0 -28
  4. package/AvatarGroup/styles/index.css +0 -44
  5. package/Badge/styles/index.css +0 -28
  6. package/Box/styles/index.css +0 -47
  7. package/Breadcrumb/styles/index.css +0 -30
  8. package/Button/styles/index.css +0 -21
  9. package/ButtonGroup/styles/index.css +0 -47
  10. package/ButtonToolbar/styles/index.css +0 -44
  11. package/CHANGELOG.md +10 -0
  12. package/Calendar/styles/index.css +0 -17
  13. package/Card/styles/index.css +0 -28
  14. package/CardGroup/styles/index.css +0 -47
  15. package/Carousel/styles/index.css +0 -31
  16. package/CascadeTree/styles/index.css +0 -20
  17. package/Cascader/styles/index.css +0 -17
  18. package/Center/styles/index.css +0 -47
  19. package/CheckPicker/styles/index.css +0 -17
  20. package/CheckTree/styles/index.css +0 -17
  21. package/CheckTreePicker/styles/index.css +0 -17
  22. package/Checkbox/styles/index.css +0 -25
  23. package/CheckboxGroup/styles/index.css +0 -44
  24. package/Container/styles/index.css +0 -47
  25. package/Content/styles/index.css +0 -47
  26. package/DateInput/styles/index.css +0 -20
  27. package/DatePicker/styles/index.css +0 -17
  28. package/DateRangeInput/styles/index.css +0 -20
  29. package/DateRangePicker/styles/index.css +0 -17
  30. package/Divider/styles/index.css +0 -33
  31. package/Drawer/styles/index.css +0 -25
  32. package/Dropdown/styles/index.css +0 -17
  33. package/FlexboxGrid/styles/index.css +0 -47
  34. package/Footer/styles/index.css +0 -47
  35. package/Form/styles/index.css +0 -47
  36. package/FormControl/styles/index.css +0 -44
  37. package/FormControlLabel/styles/index.css +0 -37
  38. package/FormErrorMessage/styles/index.css +0 -34
  39. package/FormGroup/styles/index.css +0 -43
  40. package/FormHelpText/styles/index.css +0 -34
  41. package/FormStack/styles/index.css +0 -44
  42. package/Grid/styles/index.css +0 -44
  43. package/Header/styles/index.css +0 -47
  44. package/Heading/styles/index.css +0 -44
  45. package/HeadingGroup/styles/index.css +0 -47
  46. package/Highlight/styles/index.css +0 -34
  47. package/IconButton/styles/index.css +0 -21
  48. package/Image/styles/index.css +0 -34
  49. package/InlineEdit/styles/index.css +0 -20
  50. package/Input/styles/index.css +0 -20
  51. package/InputGroup/styles/index.css +0 -18
  52. package/InputNumber/styles/index.css +0 -17
  53. package/InputPicker/styles/index.css +0 -17
  54. package/Kbd/styles/index.css +0 -27
  55. package/Link/styles/index.css +0 -44
  56. package/List/styles/index.css +0 -28
  57. package/Loader/styles/index.css +0 -21
  58. package/Menu/styles/index.css +0 -21
  59. package/Message/styles/index.css +0 -18
  60. package/Modal/styles/index.css +0 -25
  61. package/MultiCascadeTree/styles/index.css +0 -17
  62. package/MultiCascader/styles/index.css +0 -17
  63. package/Nav/styles/index.css +0 -17
  64. package/Navbar/styles/index.css +0 -17
  65. package/Notification/styles/index.css +0 -19
  66. package/NumberInput/styles/index.css +0 -17
  67. package/Pagination/styles/index.css +0 -17
  68. package/Panel/styles/index.css +0 -22
  69. package/PanelGroup/styles/index.css +0 -34
  70. package/PasswordInput/styles/index.css +0 -17
  71. package/PasswordStrengthMeter/styles/index.css +0 -34
  72. package/PinInput/styles/index.css +0 -20
  73. package/Placeholder/styles/index.css +0 -28
  74. package/Popover/styles/index.css +0 -27
  75. package/Progress/styles/_progress-line.scss +1 -0
  76. package/Progress/styles/index.css +1 -33
  77. package/ProgressCircle/styles/index.css +0 -34
  78. package/README.md +5 -4
  79. package/Radio/styles/index.css +0 -25
  80. package/RadioGroup/styles/index.css +0 -23
  81. package/RadioTile/styles/index.css +0 -31
  82. package/RangeSlider/styles/index.css +0 -25
  83. package/Rate/styles/index.css +0 -34
  84. package/SelectPicker/styles/index.css +0 -17
  85. package/Sidebar/styles/index.css +0 -47
  86. package/Sidenav/styles/index.css +0 -17
  87. package/Slider/styles/index.css +0 -25
  88. package/Stack/styles/index.css +0 -44
  89. package/Stat/styles/index.css +0 -21
  90. package/StatGroup/styles/index.css +0 -47
  91. package/Steps/styles/index.css +0 -23
  92. package/Table/styles/index.css +0 -18
  93. package/Tabs/styles/index.css +0 -17
  94. package/Tag/styles/index.css +0 -17
  95. package/TagGroup/styles/index.css +0 -47
  96. package/TagInput/styles/index.css +0 -17
  97. package/TagPicker/styles/index.css +0 -17
  98. package/Text/styles/index.css +0 -23
  99. package/Textarea/styles/index.css +0 -47
  100. package/TimePicker/styles/index.css +0 -17
  101. package/TimeRangePicker/styles/index.css +0 -17
  102. package/Timeline/styles/index.css +0 -34
  103. package/Toggle/styles/index.css +0 -21
  104. package/Tooltip/styles/index.css +0 -25
  105. package/Tree/styles/index.css +0 -17
  106. package/TreePicker/styles/index.css +0 -17
  107. package/Uploader/styles/index.css +0 -18
  108. package/cjs/CustomProvider/CustomProvider.js +2 -5
  109. package/dist/rsuite-no-reset.css +2 -13
  110. package/dist/rsuite-no-reset.min.css +1 -1
  111. package/dist/rsuite.css +12 -13
  112. package/dist/rsuite.js +1 -1
  113. package/dist/rsuite.min.css +1 -1
  114. package/dist/rsuite.min.js +1 -1
  115. package/dist/rsuite.min.js.map +1 -1
  116. package/esm/CustomProvider/CustomProvider.js +2 -5
  117. package/package.json +1 -1
  118. package/styles/_base.scss +0 -17
  119. package/styles/_css-reset.scss +15 -0
  120. package/styles/_themes.scss +3 -0
package/dist/rsuite.css CHANGED
@@ -1,8 +1,18 @@
1
1
  @charset "UTF-8";
2
+ html{
3
+ -webkit-tap-highlight-color:transparent;
4
+ font-size:var(--rs-html-font-size);
5
+ }
6
+
2
7
  body{
3
8
  margin:0;
4
9
  -webkit-font-smoothing:antialiased;
5
10
  -moz-osx-font-smoothing:grayscale;
11
+ font-family:var(--rs-font-family-base);
12
+ font-size:var(--rs-font-size-sm);
13
+ line-height:var(--rs-line-height-md);
14
+ color:var(--rs-text-primary);
15
+ background-color:var(--rs-body);
6
16
  }
7
17
 
8
18
  [hidden],
@@ -1461,6 +1471,7 @@ dd{
1461
1471
  }
1462
1472
 
1463
1473
  :root{
1474
+ --rs-html-font-size:16px;
1464
1475
  --rs-font-family-base:-apple-system, BlinkMacSystemFont, Arial, Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", STXihei, sans-serif;
1465
1476
  --rs-font-family-monospace:SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
1466
1477
  --rs-font-size-4xs:0.375rem;
@@ -1558,19 +1569,6 @@ dd{
1558
1569
  box-sizing:border-box;
1559
1570
  }
1560
1571
 
1561
- html{
1562
- -webkit-tap-highlight-color:transparent;
1563
- font-size:16px;
1564
- }
1565
-
1566
- body{
1567
- font-family:var(--rs-font-family-base);
1568
- font-size:var(--rs-font-size-sm);
1569
- line-height:var(--rs-line-height-md);
1570
- color:var(--rs-text-primary);
1571
- background-color:var(--rs-body);
1572
- }
1573
-
1574
1572
  @media (max-width: calc(576px - 1px)){
1575
1573
  [data-visible-from=xs]{
1576
1574
  display:none !important;
@@ -11944,6 +11942,7 @@ label:hover .rs-checkbox-control .rs-checkbox-inner::before{
11944
11942
  align-items:center;
11945
11943
  width:100%;
11946
11944
  gap:calc(var(--rs-spacing) * 3);
11945
+ font-size:var(--rs-font-size-sm);
11947
11946
  }
11948
11947
  .rs-progress-line:where([data-status=active]) .rs-progress-line-stroke{
11949
11948
  position:relative;
package/dist/rsuite.js CHANGED
@@ -2270,7 +2270,7 @@ eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime/he
2270
2270
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
2271
2271
 
2272
2272
  "use strict";
2273
- eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ \"./node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\nexports.__esModule = true;\nexports[\"default\"] = CustomProvider;\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"react\"));\nvar _IconProvider = _interopRequireDefault(__webpack_require__(/*! @rsuite/icons/IconProvider */ \"./node_modules/@rsuite/icons/esm/IconProvider.js\"));\nvar _hooks = __webpack_require__(/*! ../internals/hooks */ \"./src/internals/hooks/index.ts\");\nvar _utils = __webpack_require__(/*! ../internals/utils */ \"./src/internals/utils/index.ts\");\nvar _DOMHelper = __webpack_require__(/*! ../DOMHelper */ \"./src/DOMHelper/index.ts\");\nvar _CustomContext = __webpack_require__(/*! ../internals/Provider/CustomContext */ \"./src/internals/Provider/CustomContext.tsx\");\nvar _ToastContainer = _interopRequireWildcard(__webpack_require__(/*! ../toaster/ToastContainer */ \"./src/toaster/ToastContainer.tsx\"));\nvar _DialogContainer = _interopRequireDefault(__webpack_require__(/*! ../useDialog/DialogContainer */ \"./src/useDialog/DialogContainer.tsx\"));\nvar _jsxFileName = \"/home/runner/work/rsuite/rsuite/src/CustomProvider/CustomProvider.tsx\";\nfunction _interopRequireWildcard(e, t) { if (\"function\" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || \"object\" != typeof e && \"function\" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) \"default\" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }\nconst themes = ['light', 'dark', 'high-contrast'];\n\n/**\n * CustomProvider is used to provide global configuration, such as language, theme, etc.\n *\n * @see https://rsuitejs.com/components/custom-provider\n */\nfunction CustomProvider(props) {\n const {\n children,\n classPrefix = (0, _utils.getClassNamePrefix)(),\n components,\n iconClassPrefix = classPrefix,\n theme,\n toastContainer = _ToastContainer.defaultToasterContainer,\n disableRipple,\n csp,\n disableInlineStyles,\n ...rest\n } = props;\n const toasters = (0, _react.useRef)(new Map());\n // This creates a ref that matches the expected type in CustomContext\n const dialogContainerRef = (0, _react.useRef)(null);\n const {\n Portal\n } = (0, _hooks.usePortal)({\n container: toastContainer,\n waitMount: true\n });\n const value = (0, _react.useMemo)(() => ({\n classPrefix,\n theme,\n toasters,\n disableRipple,\n components,\n toastContainer,\n ...rest\n }), [classPrefix, theme, disableRipple, components, toastContainer, rest]);\n const iconContext = (0, _react.useMemo)(() => ({\n classPrefix: iconClassPrefix,\n csp,\n disableInlineStyles\n }), [iconClassPrefix, csp, disableInlineStyles]);\n (0, _hooks.useIsomorphicLayoutEffect)(() => {\n if (_DOMHelper.canUseDOM && theme) {\n (0, _DOMHelper.addClass)(document.body, (0, _utils.prefix)(classPrefix, `theme-${theme}`));\n\n // Remove the className that will cause style conflicts\n themes.forEach(t => {\n if (t !== theme) {\n (0, _DOMHelper.removeClass)(document.body, (0, _utils.prefix)(classPrefix, `theme-${t}`));\n }\n });\n }\n }, [classPrefix, theme]);\n\n // Create a context value with proper types\n const contextValue = {\n dialogContainer: dialogContainerRef,\n ...value\n };\n return /*#__PURE__*/_react.default.createElement(_CustomContext.CustomContext.Provider, {\n value: contextValue,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 69,\n columnNumber: 5\n }\n }, /*#__PURE__*/_react.default.createElement(_IconProvider.default, {\n value: iconContext,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 70,\n columnNumber: 7\n }\n }, children, /*#__PURE__*/_react.default.createElement(Portal, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 72,\n columnNumber: 9\n }\n }, /*#__PURE__*/_react.default.createElement(\"div\", {\n className: `${classPrefix}toast-provider`,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 73,\n columnNumber: 11\n }\n }, _ToastContainer.toastPlacements.map(placement => /*#__PURE__*/_react.default.createElement(_ToastContainer.default, {\n key: placement,\n placement: placement,\n ref: ref => {\n toasters.current.set(placement, ref);\n },\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 75,\n columnNumber: 15\n }\n }))), /*#__PURE__*/_react.default.createElement(_DialogContainer.default, {\n ref: dialogContainerRef,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 85,\n columnNumber: 11\n }\n }))));\n}\n\n//# sourceURL=webpack://rsuite/./src/CustomProvider/CustomProvider.tsx?");
2273
+ eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ \"./node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\nexports.__esModule = true;\nexports[\"default\"] = CustomProvider;\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"react\"));\nvar _IconProvider = _interopRequireDefault(__webpack_require__(/*! @rsuite/icons/IconProvider */ \"./node_modules/@rsuite/icons/esm/IconProvider.js\"));\nvar _hooks = __webpack_require__(/*! ../internals/hooks */ \"./src/internals/hooks/index.ts\");\nvar _utils = __webpack_require__(/*! ../internals/utils */ \"./src/internals/utils/index.ts\");\nvar _DOMHelper = __webpack_require__(/*! ../DOMHelper */ \"./src/DOMHelper/index.ts\");\nvar _CustomContext = __webpack_require__(/*! ../internals/Provider/CustomContext */ \"./src/internals/Provider/CustomContext.tsx\");\nvar _ToastContainer = _interopRequireWildcard(__webpack_require__(/*! ../toaster/ToastContainer */ \"./src/toaster/ToastContainer.tsx\"));\nvar _DialogContainer = _interopRequireDefault(__webpack_require__(/*! ../useDialog/DialogContainer */ \"./src/useDialog/DialogContainer.tsx\"));\nvar _jsxFileName = \"/home/runner/work/rsuite/rsuite/src/CustomProvider/CustomProvider.tsx\";\nfunction _interopRequireWildcard(e, t) { if (\"function\" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || \"object\" != typeof e && \"function\" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) \"default\" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }\nconst themes = ['light', 'dark', 'high-contrast'];\n\n/**\n * CustomProvider is used to provide global configuration, such as language, theme, etc.\n *\n * @see https://rsuitejs.com/components/custom-provider\n */\nfunction CustomProvider(props) {\n const {\n children,\n classPrefix = (0, _utils.getClassNamePrefix)(),\n iconClassPrefix = classPrefix,\n theme,\n toastContainer = _ToastContainer.defaultToasterContainer,\n csp,\n disableInlineStyles,\n ...rest\n } = props;\n const toasters = (0, _react.useRef)(new Map());\n // This creates a ref that matches the expected type in CustomContext\n const dialogContainerRef = (0, _react.useRef)(null);\n const {\n Portal\n } = (0, _hooks.usePortal)({\n container: toastContainer,\n waitMount: true\n });\n const value = (0, _react.useMemo)(() => ({\n classPrefix,\n csp,\n theme,\n toasters,\n toastContainer,\n ...rest\n }), [classPrefix, csp, theme, toastContainer, rest]);\n const iconContext = (0, _react.useMemo)(() => ({\n classPrefix: iconClassPrefix,\n csp,\n disableInlineStyles\n }), [iconClassPrefix, csp, disableInlineStyles]);\n (0, _hooks.useIsomorphicLayoutEffect)(() => {\n if (_DOMHelper.canUseDOM && theme) {\n (0, _DOMHelper.addClass)(document.body, (0, _utils.prefix)(classPrefix, `theme-${theme}`));\n\n // Remove the className that will cause style conflicts\n themes.forEach(t => {\n if (t !== theme) {\n (0, _DOMHelper.removeClass)(document.body, (0, _utils.prefix)(classPrefix, `theme-${t}`));\n }\n });\n }\n }, [classPrefix, theme]);\n\n // Create a context value with proper types\n const contextValue = {\n dialogContainer: dialogContainerRef,\n ...value\n };\n return /*#__PURE__*/_react.default.createElement(_CustomContext.CustomContext.Provider, {\n value: contextValue,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 67,\n columnNumber: 5\n }\n }, /*#__PURE__*/_react.default.createElement(_IconProvider.default, {\n value: iconContext,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 68,\n columnNumber: 7\n }\n }, children, /*#__PURE__*/_react.default.createElement(Portal, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 70,\n columnNumber: 9\n }\n }, /*#__PURE__*/_react.default.createElement(\"div\", {\n className: `${classPrefix}toast-provider`,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 71,\n columnNumber: 11\n }\n }, _ToastContainer.toastPlacements.map(placement => /*#__PURE__*/_react.default.createElement(_ToastContainer.default, {\n key: placement,\n placement: placement,\n ref: ref => {\n toasters.current.set(placement, ref);\n },\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 73,\n columnNumber: 15\n }\n }))), /*#__PURE__*/_react.default.createElement(_DialogContainer.default, {\n ref: dialogContainerRef,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 83,\n columnNumber: 11\n }\n }))));\n}\n\n//# sourceURL=webpack://rsuite/./src/CustomProvider/CustomProvider.tsx?");
2274
2274
 
2275
2275
  /***/ }),
2276
2276