@react-fabric/data 1.0.0-beta.31 → 1.0.0-beta.33
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.
|
@@ -171,11 +171,14 @@ var JsonEntry = function JsonEntry(_ref3) {
|
|
|
171
171
|
icon: expanded ? core.CoreIcons.chevronDown : core.CoreIcons.chevronRight
|
|
172
172
|
}), labelDisplay]
|
|
173
173
|
}), display && /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
174
|
-
className: classNames("px-2", inline && "flex-1"),
|
|
174
|
+
className: classNames("px-2 flex flex-nowrap overflow-hidden", inline && "flex-1"),
|
|
175
175
|
children: [canCopy && /*#__PURE__*/jsxRuntime.jsx(core.Copy, {
|
|
176
176
|
size: "xs",
|
|
177
177
|
text: actualValue
|
|
178
|
-
}),
|
|
178
|
+
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
179
|
+
className: "flex-1",
|
|
180
|
+
children: display
|
|
181
|
+
})]
|
|
179
182
|
})]
|
|
180
183
|
}), !showPropertyTree && !children && /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
181
184
|
className: classNames("py-2", inline && "flex flex-nowrap items-center"),
|
|
@@ -187,11 +190,14 @@ var JsonEntry = function JsonEntry(_ref3) {
|
|
|
187
190
|
},
|
|
188
191
|
children: labelDisplay
|
|
189
192
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
190
|
-
className: classNames("px-2", inline && "flex-1"),
|
|
193
|
+
className: classNames("px-2 flex flex-nowrap overflow-hidden", inline && "flex-1"),
|
|
191
194
|
children: [canCopy && /*#__PURE__*/jsxRuntime.jsx(core.Copy, {
|
|
192
195
|
size: "xs",
|
|
193
196
|
text: value
|
|
194
|
-
}),
|
|
197
|
+
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
198
|
+
className: "flex-1",
|
|
199
|
+
children: display
|
|
200
|
+
})]
|
|
195
201
|
})]
|
|
196
202
|
}), expanded && (children === null || children === void 0 ? void 0 : children.map(function (item) {
|
|
197
203
|
return /*#__PURE__*/jsxRuntime.jsx(JsonEntry, _objectSpread(_objectSpread({}, item), {}, {
|
|
@@ -171,11 +171,14 @@ var JsonEntry = function JsonEntry(_ref3) {
|
|
|
171
171
|
icon: expanded ? CoreIcons.chevronDown : CoreIcons.chevronRight
|
|
172
172
|
}), labelDisplay]
|
|
173
173
|
}), display && /*#__PURE__*/jsxs("div", {
|
|
174
|
-
className: classNames("px-2", inline && "flex-1"),
|
|
174
|
+
className: classNames("px-2 flex flex-nowrap overflow-hidden", inline && "flex-1"),
|
|
175
175
|
children: [canCopy && /*#__PURE__*/jsx(Copy, {
|
|
176
176
|
size: "xs",
|
|
177
177
|
text: actualValue
|
|
178
|
-
}),
|
|
178
|
+
}), /*#__PURE__*/jsx("div", {
|
|
179
|
+
className: "flex-1",
|
|
180
|
+
children: display
|
|
181
|
+
})]
|
|
179
182
|
})]
|
|
180
183
|
}), !showPropertyTree && !children && /*#__PURE__*/jsxs("div", {
|
|
181
184
|
className: classNames("py-2", inline && "flex flex-nowrap items-center"),
|
|
@@ -187,11 +190,14 @@ var JsonEntry = function JsonEntry(_ref3) {
|
|
|
187
190
|
},
|
|
188
191
|
children: labelDisplay
|
|
189
192
|
}), /*#__PURE__*/jsxs("div", {
|
|
190
|
-
className: classNames("px-2", inline && "flex-1"),
|
|
193
|
+
className: classNames("px-2 flex flex-nowrap overflow-hidden", inline && "flex-1"),
|
|
191
194
|
children: [canCopy && /*#__PURE__*/jsx(Copy, {
|
|
192
195
|
size: "xs",
|
|
193
196
|
text: value
|
|
194
|
-
}),
|
|
197
|
+
}), /*#__PURE__*/jsx("div", {
|
|
198
|
+
className: "flex-1",
|
|
199
|
+
children: display
|
|
200
|
+
})]
|
|
195
201
|
})]
|
|
196
202
|
}), expanded && (children === null || children === void 0 ? void 0 : children.map(function (item) {
|
|
197
203
|
return /*#__PURE__*/jsx(JsonEntry, _objectSpread(_objectSpread({}, item), {}, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-fabric/data",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.33",
|
|
4
4
|
"description": "RUF: Data package",
|
|
5
5
|
"author": "Adarsh Pastakia <adarshpastakia@outlook.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"watch": "npm-run-all -p watch:rollup watch:dts"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@react-fabric/core": "^1.0.0-beta.
|
|
37
|
-
"@react-fabric/date": "^1.0.0-beta.
|
|
38
|
-
"@react-fabric/form": "^1.0.0-beta.
|
|
39
|
-
"@react-fabric/utilities": "^1.0.0-beta.
|
|
36
|
+
"@react-fabric/core": "^1.0.0-beta.33",
|
|
37
|
+
"@react-fabric/date": "^1.0.0-beta.33",
|
|
38
|
+
"@react-fabric/form": "^1.0.0-beta.33",
|
|
39
|
+
"@react-fabric/utilities": "^1.0.0-beta.33",
|
|
40
40
|
"@tanstack/react-virtual": "^3.8.6",
|
|
41
41
|
"classnames": "^2.5.1",
|
|
42
42
|
"color": "^4.2.3",
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"node": ">=18.12.0",
|
|
53
53
|
"npm": ">=8.19.0"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "3b7ffc99aac7b8fdc72c7122c39db55d1104297f"
|
|
56
56
|
}
|
package/src/json/JsonViewer.tsx
CHANGED
|
@@ -283,9 +283,14 @@ const JsonEntry = ({
|
|
|
283
283
|
{labelDisplay}
|
|
284
284
|
</div>
|
|
285
285
|
{display && (
|
|
286
|
-
<div
|
|
286
|
+
<div
|
|
287
|
+
className={classNames(
|
|
288
|
+
"px-2 flex flex-nowrap overflow-hidden",
|
|
289
|
+
inline && "flex-1",
|
|
290
|
+
)}
|
|
291
|
+
>
|
|
287
292
|
{canCopy && <Copy size="xs" text={actualValue} />}
|
|
288
|
-
{display}
|
|
293
|
+
<div className="flex-1">{display}</div>
|
|
289
294
|
</div>
|
|
290
295
|
)}
|
|
291
296
|
</div>
|
|
@@ -309,9 +314,14 @@ const JsonEntry = ({
|
|
|
309
314
|
>
|
|
310
315
|
{labelDisplay}
|
|
311
316
|
</div>
|
|
312
|
-
<div
|
|
317
|
+
<div
|
|
318
|
+
className={classNames(
|
|
319
|
+
"px-2 flex flex-nowrap overflow-hidden",
|
|
320
|
+
inline && "flex-1",
|
|
321
|
+
)}
|
|
322
|
+
>
|
|
313
323
|
{canCopy && <Copy size="xs" text={value} />}
|
|
314
|
-
{display}
|
|
324
|
+
<div className="flex-1">{display}</div>
|
|
315
325
|
</div>
|
|
316
326
|
</div>
|
|
317
327
|
)}
|