@doist/reactist 33.1.0 → 33.2.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.
- package/CHANGELOG.md +6 -0
- package/dist/reactist.cjs.development.js +15 -14
- package/dist/reactist.cjs.development.js.map +1 -1
- package/dist/reactist.cjs.production.min.js +1 -1
- package/dist/reactist.cjs.production.min.js.map +1 -1
- package/es/checkbox-field/checkbox-field.js.map +1 -1
- package/es/components/color-picker/deprecated-button/deprecated-button.js +0 -5
- package/es/components/color-picker/deprecated-button/deprecated-button.js.map +1 -1
- package/es/components/color-picker/deprecated-dropdown/dropdown.js +5 -4
- package/es/components/color-picker/deprecated-dropdown/dropdown.js.map +1 -1
- package/es/icons/alert-icon.js.map +1 -1
- package/es/icons/banner-icon.js.map +1 -1
- package/es/icons/close-icon.js.map +1 -1
- package/es/icons/password-hidden-icon.js.map +1 -1
- package/es/icons/password-visible-icon.js.map +1 -1
- package/es/select-field/select-field.js.map +1 -1
- package/es/stack/stack.js +3 -1
- package/es/stack/stack.js.map +1 -1
- package/es/text-area/text-area.js.map +1 -1
- package/es/toast/use-toasts.js +1 -1
- package/es/toast/use-toasts.js.map +1 -1
- package/es/tooltip/tooltip.js +6 -2
- package/es/tooltip/tooltip.js.map +1 -1
- package/es/utils/polymorphism.js.map +1 -1
- package/lib/checkbox-field/checkbox-field.d.ts +1 -0
- package/lib/checkbox-field/checkbox-field.js.map +1 -1
- package/lib/components/color-picker/deprecated-button/deprecated-button.js +0 -5
- package/lib/components/color-picker/deprecated-button/deprecated-button.js.map +1 -1
- package/lib/components/color-picker/deprecated-dropdown/dropdown.d.ts +5 -3
- package/lib/components/color-picker/deprecated-dropdown/dropdown.js +5 -5
- package/lib/components/color-picker/deprecated-dropdown/dropdown.js.map +1 -1
- package/lib/components/icons/ThreeDotsIcon.svg.d.ts +3 -9
- package/lib/icons/alert-icon.d.ts +2 -2
- package/lib/icons/alert-icon.js.map +1 -1
- package/lib/icons/banner-icon.d.ts +2 -2
- package/lib/icons/banner-icon.js.map +1 -1
- package/lib/icons/close-icon.d.ts +2 -2
- package/lib/icons/close-icon.js.map +1 -1
- package/lib/icons/password-hidden-icon.d.ts +2 -2
- package/lib/icons/password-hidden-icon.js.map +1 -1
- package/lib/icons/password-visible-icon.d.ts +2 -2
- package/lib/icons/password-visible-icon.js.map +1 -1
- package/lib/modal/modal-stories-components.d.ts +10 -9
- package/lib/select-field/select-field.js.map +1 -1
- package/lib/stack/stack.js +3 -1
- package/lib/stack/stack.js.map +1 -1
- package/lib/text-area/text-area.js.map +1 -1
- package/lib/toast/use-toasts.js +1 -1
- package/lib/toast/use-toasts.js.map +1 -1
- package/lib/tooltip/tooltip.d.ts +2 -1
- package/lib/tooltip/tooltip.js +6 -2
- package/lib/tooltip/tooltip.js.map +1 -1
- package/lib/utils/polymorphism.d.ts +1 -2
- package/lib/utils/polymorphism.js.map +1 -1
- package/lib/utils/storybook-helper.d.ts +4 -3
- package/package.json +23 -11
- /package/styles/{stack.css → divider.css} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## [33.2.0](https://github.com/Doist/reactist/compare/v33.1.0...v33.2.0) (2026-06-19)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
- support React 19 ([#1074](https://github.com/Doist/reactist/issues/1074)) ([0637971](https://github.com/Doist/reactist/commit/06379714f9410ce1cc75e80c1f8e6d0a39a621c9))
|
|
6
|
+
|
|
1
7
|
## [33.1.0](https://github.com/Doist/reactist/compare/v33.0.1...v33.1.0) (2026-06-11)
|
|
2
8
|
|
|
3
9
|
### Features
|
|
@@ -6,7 +6,6 @@ var reactCompilerRuntime = require('react-compiler-runtime');
|
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var classNames = require('classnames');
|
|
8
8
|
var _extends = require('@babel/runtime/helpers/extends');
|
|
9
|
-
var ReactDOM = require('react-dom');
|
|
10
9
|
var react = require('@ariakit/react');
|
|
11
10
|
var dayjs = require('dayjs');
|
|
12
11
|
var LocalizedFormat = require('dayjs/plugin/localizedFormat');
|
|
@@ -39,7 +38,6 @@ var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
|
39
38
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
40
39
|
var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
|
|
41
40
|
var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);
|
|
42
|
-
var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
|
|
43
41
|
var dayjs__default = /*#__PURE__*/_interopDefaultLegacy(dayjs);
|
|
44
42
|
var LocalizedFormat__default = /*#__PURE__*/_interopDefaultLegacy(LocalizedFormat);
|
|
45
43
|
var flattenChildren__default = /*#__PURE__*/_interopDefaultLegacy(flattenChildren);
|
|
@@ -551,7 +549,9 @@ const Stack = polymorphicComponent(function Stack({
|
|
|
551
549
|
as: as,
|
|
552
550
|
className: exceptionallySetClassName,
|
|
553
551
|
ref: ref
|
|
554
|
-
}), dividers !== 'none' ? React__namespace.Children.map(
|
|
552
|
+
}), dividers !== 'none' ? React__namespace.Children.map(
|
|
553
|
+
// react-keyed-flatten-children returns ReactChild[], a type removed in React 19.
|
|
554
|
+
flattenChildren__default["default"](children), (child, index) => index > 0 ? /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement(Divider, {
|
|
555
555
|
weight: dividers
|
|
556
556
|
}), child) : child) : children);
|
|
557
557
|
});
|
|
@@ -668,13 +668,17 @@ const Tooltip = /*#__PURE__*/React__namespace.forwardRef(({
|
|
|
668
668
|
}
|
|
669
669
|
|
|
670
670
|
/* eslint-disable react-hooks/refs */
|
|
671
|
-
|
|
671
|
+
const rawRef = 'ref' in child.props ? child.props.ref :
|
|
672
|
+
// child.ref access kept for React 18 compatibility
|
|
673
|
+
child.ref;
|
|
674
|
+
if (typeof rawRef === 'string') {
|
|
672
675
|
throw new Error('Tooltip: String refs cannot be used as they cannot be forwarded');
|
|
673
676
|
}
|
|
677
|
+
const childRef = rawRef;
|
|
674
678
|
return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement(react.TooltipAnchor, {
|
|
675
679
|
render: child,
|
|
676
680
|
store: tooltip,
|
|
677
|
-
ref:
|
|
681
|
+
ref: childRef
|
|
678
682
|
}), isOpen && content ? /*#__PURE__*/React__namespace.createElement(react.Tooltip, {
|
|
679
683
|
store: tooltip,
|
|
680
684
|
gutter: gapSize,
|
|
@@ -2410,7 +2414,7 @@ const InternalToast = /*#__PURE__*/React__default["default"].forwardRef(function
|
|
|
2410
2414
|
onRemoveToast
|
|
2411
2415
|
} = t0;
|
|
2412
2416
|
const showDismissButton = t1 === undefined ? true : t1;
|
|
2413
|
-
const timeoutRef = React__default["default"].useRef();
|
|
2417
|
+
const timeoutRef = React__default["default"].useRef(undefined);
|
|
2414
2418
|
let t2;
|
|
2415
2419
|
if ($[0] !== onDismiss || $[1] !== onRemoveToast || $[2] !== toastId) {
|
|
2416
2420
|
t2 = function removeToast() {
|
|
@@ -6370,15 +6374,11 @@ const Button$1 = /*#__PURE__*/React__namespace.forwardRef(function Button(t0, re
|
|
|
6370
6374
|
return t5;
|
|
6371
6375
|
});
|
|
6372
6376
|
Button$1.displayName = 'Button';
|
|
6373
|
-
Button$1.defaultProps = {
|
|
6374
|
-
size: 'default',
|
|
6375
|
-
loading: false,
|
|
6376
|
-
disabled: false
|
|
6377
|
-
};
|
|
6378
6377
|
|
|
6379
6378
|
var Button = Button$1;
|
|
6380
6379
|
|
|
6381
6380
|
class Box extends React__namespace.Component {
|
|
6381
|
+
rootRef = /*#__PURE__*/React__namespace.createRef();
|
|
6382
6382
|
constructor(props, context) {
|
|
6383
6383
|
super(props, context);
|
|
6384
6384
|
this.state = {
|
|
@@ -6394,7 +6394,7 @@ class Box extends React__namespace.Component {
|
|
|
6394
6394
|
}
|
|
6395
6395
|
}
|
|
6396
6396
|
_handleClickOutside = event => {
|
|
6397
|
-
const dropdownDOMNode =
|
|
6397
|
+
const dropdownDOMNode = this.rootRef.current;
|
|
6398
6398
|
if (dropdownDOMNode && !dropdownDOMNode.contains(event.target)) this._toggleShowBody();else if (!this.props.allowBodyInteractions) {
|
|
6399
6399
|
// won't close when body interactions are allowed
|
|
6400
6400
|
this._timeout = setTimeout(() => {
|
|
@@ -6430,11 +6430,11 @@ class Box extends React__namespace.Component {
|
|
|
6430
6430
|
if (body) {
|
|
6431
6431
|
const scrollingParent = document.getElementById(this.props.scrolling_parent ? this.props.scrolling_parent : '');
|
|
6432
6432
|
if (scrollingParent) {
|
|
6433
|
-
const dropdown =
|
|
6433
|
+
const dropdown = this.rootRef.current;
|
|
6434
6434
|
if (!dropdown) {
|
|
6435
6435
|
return;
|
|
6436
6436
|
}
|
|
6437
|
-
const dropdownVerticalPosition =
|
|
6437
|
+
const dropdownVerticalPosition = dropdown.offsetTop;
|
|
6438
6438
|
const dropdownTrigger = dropdown.querySelector('.trigger');
|
|
6439
6439
|
if (!dropdownTrigger) {
|
|
6440
6440
|
return;
|
|
@@ -6490,6 +6490,7 @@ class Box extends React__namespace.Component {
|
|
|
6490
6490
|
top
|
|
6491
6491
|
} = this.state;
|
|
6492
6492
|
return /*#__PURE__*/React__namespace.createElement("div", {
|
|
6493
|
+
ref: this.rootRef,
|
|
6493
6494
|
style: {
|
|
6494
6495
|
display: 'inline-block'
|
|
6495
6496
|
},
|