directual-web-components-v2 3.11.339 → 3.11.340

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/dist/index.css CHANGED
@@ -1964,30 +1964,26 @@ a._IMG1h {
1964
1964
  opacity: 1;
1965
1965
  }
1966
1966
  ._3bMpu ._34tIu {
1967
- position: absolute;
1968
- top: 6px;
1969
- right: 6px;
1970
1967
  display: flex;
1971
- gap: 2px;
1972
- opacity: 0;
1973
- transition: opacity 0.2s;
1974
- }
1975
- ._3bMpu ._1Yv6j:hover ._34tIu {
1976
- opacity: 1;
1968
+ gap: 4px;
1969
+ padding: 4px 0 0 0;
1970
+ justify-content: flex-end;
1977
1971
  }
1978
1972
  ._3bMpu ._Sxnoe {
1979
1973
  cursor: pointer;
1980
- opacity: 0.4;
1981
- padding: 4px;
1974
+ opacity: 0.35;
1975
+ padding: 4px 6px;
1982
1976
  border-radius: var(--border-radius);
1983
- font-size: var(--text-very-small-size);
1984
1977
  line-height: 1;
1985
1978
  -webkit-user-select: none;
1986
1979
  user-select: none;
1987
1980
  transition: opacity 0.15s;
1988
1981
  }
1982
+ ._3bMpu ._Sxnoe:before {
1983
+ font-size: 20px;
1984
+ }
1989
1985
  ._3bMpu ._Sxnoe:hover {
1990
- opacity: 0.9;
1986
+ opacity: 0.85;
1991
1987
  }
1992
1988
  .react-tooltip {
1993
1989
  z-index: 1000;
package/dist/index.js CHANGED
@@ -5302,8 +5302,8 @@ function JsonInput(_ref) {
5302
5302
  const adjustHeight = React.useCallback(() => {
5303
5303
  const el = textareaRef.current;
5304
5304
  if (!el || rows !== 'auto') return;
5305
- el.style.height = 'auto';
5306
- el.style.height = el.scrollHeight + 'px';
5305
+ el.style.minHeight = '0';
5306
+ el.style.minHeight = el.scrollHeight + 'px';
5307
5307
  }, [rows]);
5308
5308
  React.useEffect(() => {
5309
5309
  adjustHeight();
@@ -5485,20 +5485,20 @@ function JsonInput(_ref) {
5485
5485
  onKeyDown: handleKeyDown,
5486
5486
  value: value,
5487
5487
  placeholder: placeholder || ''
5488
- }), /*#__PURE__*/React__default.createElement("div", {
5489
- className: styles$4.json_toolbar
5490
- }, value && !disabled && !copy && /*#__PURE__*/React__default.createElement("div", {
5491
- className: styles$4.json_toolbar_btn + " icon icon-close",
5492
- title: "Clear",
5493
- onClick: handleClear
5494
- }), value && copy && /*#__PURE__*/React__default.createElement("div", {
5495
- className: styles$4.json_toolbar_btn + " icon icon-copy",
5496
- title: "Copy",
5497
- onClick: handleCopy
5498
5488
  }), value && !disabled && /*#__PURE__*/React__default.createElement("div", {
5489
+ className: styles$4.json_toolbar
5490
+ }, /*#__PURE__*/React__default.createElement("div", {
5499
5491
  className: styles$4.json_toolbar_btn + " icon icon-code",
5500
5492
  title: "Format JSON",
5501
5493
  onClick: handleFormat
5494
+ }), copy && /*#__PURE__*/React__default.createElement("div", {
5495
+ className: styles$4.json_toolbar_btn + " icon icon-copy",
5496
+ title: "Copy",
5497
+ onClick: handleCopy
5498
+ }), /*#__PURE__*/React__default.createElement("div", {
5499
+ className: styles$4.json_toolbar_btn + " icon icon-close",
5500
+ title: "Clear",
5501
+ onClick: handleClear
5502
5502
  })), warningMsg.msg && /*#__PURE__*/React__default.createElement("div", {
5503
5503
  className: styles$4.status + " " + styles$4[warningMsg.type]
5504
5504
  }, warningMsg.msg));