entangle-ui 0.6.0 → 0.6.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.
- package/CHANGELOG.md +16 -0
- package/README.md +3 -0
- package/dist/esm/components/controls/CartesianPicker/CartesianPicker.css.js +1 -1
- package/dist/esm/components/controls/CartesianPicker/CartesianPicker.js +1 -1
- package/dist/esm/components/controls/ColorPicker/ColorPicker.css.js +1 -1
- package/dist/esm/components/controls/CurveEditor/CurveCanvas.js +1 -1
- package/dist/esm/components/controls/CurveEditor/CurveEditor.css.js +1 -1
- package/dist/esm/components/controls/CurveEditor/CurveEditor.js +1 -1
- package/dist/esm/components/controls/CurveEditor/CurveToolbar.js +1 -1
- package/dist/esm/components/controls/NumberInput/NumberInput.css.js +1 -1
- package/dist/esm/components/controls/NumberInput/useNumberInput.js +19 -13
- package/dist/esm/components/controls/NumberInput/useNumberInput.js.map +1 -1
- package/dist/esm/components/controls/Select/Select.css.js +1 -1
- package/dist/esm/components/controls/Slider/Slider.css.js +1 -1
- package/dist/esm/components/controls/Slider/Slider.js +1 -1
- package/dist/esm/components/controls/TreeView/TreeNode.css.js +1 -1
- package/dist/esm/components/controls/TreeView/TreeNode.js +1 -1
- package/dist/esm/components/controls/TreeView/TreeView.js +1 -1
- package/dist/esm/components/controls/VectorInput/VectorInput.css.js +1 -1
- package/dist/esm/components/controls/VectorInput/VectorInput.js +2 -1
- package/dist/esm/components/controls/VectorInput/VectorInput.js.map +1 -1
- package/dist/esm/components/editor/ChatPanel/ChatCodeBlock.js +1 -1
- package/dist/esm/components/editor/ChatPanel/ChatInput.js +1 -1
- package/dist/esm/components/editor/ChatPanel/ChatPanel.css.js +1 -1
- package/dist/esm/components/editor/PropertyInspector/PropertyGroup.js +1 -1
- package/dist/esm/components/editor/PropertyInspector/PropertyPanel.js +1 -1
- package/dist/esm/components/editor/PropertyInspector/PropertyRow.js +1 -1
- package/dist/esm/components/editor/PropertyInspector/PropertySection.css.js +1 -1
- package/dist/esm/components/editor/ViewportGizmo/ViewportGizmo.css.js +1 -1
- package/dist/esm/components/editor/ViewportGizmo/ViewportGizmo.js +1 -1
- package/dist/esm/components/feedback/Dialog/Dialog.css.js +1 -1
- package/dist/esm/components/feedback/Toast/ToastContainer.js +1 -1
- package/dist/esm/components/feedback/Toast/ToastItem.css.js +1 -1
- package/dist/esm/components/feedback/Toast/ToastItem.js +1 -1
- package/dist/esm/components/form/FormHelperText.css.js +1 -1
- package/dist/esm/components/form/FormLabel.css.js +1 -1
- package/dist/esm/components/form/InputWrapper.css.js +1 -1
- package/dist/esm/components/layout/Accordion/Accordion.css.js +1 -1
- package/dist/esm/components/layout/Accordion/Accordion.js +1 -1
- package/dist/esm/components/layout/Flex/Flex.css.js +1 -1
- package/dist/esm/components/layout/Flex/Flex.js +1 -1
- package/dist/esm/components/layout/Grid/Grid.js +1 -1
- package/dist/esm/components/layout/PanelSurface/PanelSurface.css.js +1 -1
- package/dist/esm/components/layout/PanelSurface/PanelSurface.js +1 -1
- package/dist/esm/components/layout/ScrollArea/ScrollArea.css.js +1 -1
- package/dist/esm/components/layout/ScrollArea/ScrollArea.js +2 -2
- package/dist/esm/components/layout/SplitPane/SplitPane.css.js +1 -1
- package/dist/esm/components/layout/SplitPane/SplitPane.js +1 -1
- package/dist/esm/components/layout/Stack/Stack.css.js +1 -1
- package/dist/esm/components/layout/Stack/Stack.js +1 -1
- package/dist/esm/components/navigation/Tabs/Tabs.css.js +1 -1
- package/dist/esm/components/primitives/Button/Button.css.js +1 -1
- package/dist/esm/components/primitives/Checkbox/Checkbox.css.js +1 -1
- package/dist/esm/components/primitives/Checkbox/Checkbox.js +1 -1
- package/dist/esm/components/primitives/Checkbox/CheckboxGroup.js +1 -1
- package/dist/esm/components/primitives/Collapsible/Collapsible.css.js +1 -1
- package/dist/esm/components/primitives/Collapsible/Collapsible.js +1 -1
- package/dist/esm/components/primitives/Icon/Icon.css.js +1 -1
- package/dist/esm/components/primitives/IconButton/IconButton.css.js +1 -1
- package/dist/esm/components/primitives/Input/Input.css.js +1 -1
- package/dist/esm/components/primitives/Paper/Paper.css.js +1 -1
- package/dist/esm/components/primitives/Popover/Popover.css.js +1 -1
- package/dist/esm/components/primitives/Switch/Switch.css.js +1 -1
- package/dist/esm/components/primitives/Switch/Switch.js +1 -1
- package/dist/esm/components/primitives/Text/Text.css.js +1 -1
- package/dist/esm/components/primitives/canvas/CanvasContainer.css.js +1 -1
- package/dist/esm/components/primitives/canvas/CanvasContainer.js +1 -1
- package/dist/esm/components/shell/AppShell/AppShell.css.js +1 -1
- package/dist/esm/components/shell/FloatingPanel/FloatingPanel.js +1 -1
- package/dist/esm/components/shell/MenuBar/MenuBar.css.js +1 -1
- package/dist/esm/components/shell/StatusBar/StatusBar.css.js +1 -1
- package/dist/esm/components/shell/Toolbar/Toolbar.css.js +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/utils/mathExpression.js +364 -243
- package/dist/esm/utils/mathExpression.js.map +1 -1
- package/dist/types/components/controls/NumberInput/useNumberInput.d.ts +1 -0
- package/dist/types/components/primitives/Button/Button.d.ts +1 -1
- package/dist/types/components/primitives/IconButton/IconButton.d.ts +1 -1
- package/package.json +3 -5
- package/dist/esm/node_modules/@vanilla-extract/dynamic/dist/vanilla-extract-dynamic.esm.js +0 -25
- package/dist/esm/node_modules/@vanilla-extract/dynamic/dist/vanilla-extract-dynamic.esm.js.map +0 -1
- package/dist/esm/node_modules/@vanilla-extract/private/dist/vanilla-extract-private.esm.js +0 -10
- package/dist/esm/node_modules/@vanilla-extract/private/dist/vanilla-extract-private.esm.js.map +0 -1
- package/dist/esm/node_modules/@vanilla-extract/recipes/dist/createRuntimeFn-62c9670f.esm.js +0 -112
- package/dist/esm/node_modules/@vanilla-extract/recipes/dist/createRuntimeFn-62c9670f.esm.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# entangle-ui
|
|
2
2
|
|
|
3
|
+
## 0.6.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#40](https://github.com/SebastianWebdev/entangle-ui/pull/40) [`e741f82`](https://github.com/SebastianWebdev/entangle-ui/commit/e741f828607ed018073d8b597b6f7695bba94ec7) Thanks [@SebastianWebdev](https://github.com/SebastianWebdev)! - Reword mathExpression JSDoc to avoid socket.dev false positive alerts
|
|
8
|
+
|
|
9
|
+
## 0.6.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#38](https://github.com/SebastianWebdev/entangle-ui/pull/38) [`3a3222f`](https://github.com/SebastianWebdev/entangle-ui/commit/3a3222f6e007f8fe2d0969df17c0d7e21b67cfc4) Thanks [@SebastianWebdev](https://github.com/SebastianWebdev)! - Default NumberInput precision to 2 decimal places. Fixes floating-point artifacts (e.g. `1.0000000000000002`) when dragging to change values.
|
|
14
|
+
|
|
15
|
+
- [#38](https://github.com/SebastianWebdev/entangle-ui/pull/38) [`1b9540f`](https://github.com/SebastianWebdev/entangle-ui/commit/1b9540f5008a71c53549d6882b3e52e8c4f6bf5e) Thanks [@SebastianWebdev](https://github.com/SebastianWebdev)! - Replace eval-based math expression parser with recursive descent parser. Removes `new Function()` to eliminate Socket.dev "Uses eval" flag. Adds modulo operator, implicit multiplication, multi-arg functions (min, max, pow, clamp, lerp, smoothstep), hyperbolic trig, unit conversion (deg/rad), and context-aware comma handling.
|
|
16
|
+
|
|
17
|
+
- [#38](https://github.com/SebastianWebdev/entangle-ui/pull/38) [`536e037`](https://github.com/SebastianWebdev/entangle-ui/commit/536e037280821dc4c9e9d4833514fbd04b579675) Thanks [@SebastianWebdev](https://github.com/SebastianWebdev)! - Move @vanilla-extract/dynamic and @vanilla-extract/recipes from dependencies to peerDependencies. Mark them as external in Rollup to avoid bundling duplicate runtime code.
|
|
18
|
+
|
|
3
19
|
## 0.6.0
|
|
4
20
|
|
|
5
21
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# Entangle UI
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/entangle-ui)
|
|
4
|
+
[](https://socket.dev/npm/package/entangle-ui)
|
|
5
|
+
|
|
3
6
|
React + TypeScript component library for building editor-style interfaces.
|
|
4
7
|
|
|
5
8
|
`entangle-ui` is focused on dense, keyboard-friendly UI patterns used in tools like 3D editors, node editors, scene inspectors, and technical dashboards.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './../../../assets/src/components/controls/CartesianPicker/CartesianPicker.css.ts.vanilla-Ccao9ycw.css';
|
|
2
|
-
import {
|
|
2
|
+
import { createRuntimeFn } from '@vanilla-extract/recipes/createRuntimeFn';
|
|
3
3
|
|
|
4
4
|
var bottomBarStyle = 'CartesianPicker_bottomBarStyle__tqma2q6';
|
|
5
5
|
var cartesianPickerRecipe = createRuntimeFn({defaultClassName:'CartesianPicker_cartesianPickerRecipe__tqma2q1',variantClassNames:{disabled:{true:'CartesianPicker_cartesianPickerRecipe_disabled_true__tqma2q2',false:'CartesianPicker_cartesianPickerRecipe_disabled_false__tqma2q3'},responsive:{true:'CartesianPicker_cartesianPickerRecipe_responsive_true__tqma2q4',false:'CartesianPicker_cartesianPickerRecipe_responsive_false__tqma2q5'}},defaultVariants:{disabled:false,responsive:false},compoundVariants:[]});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { useRef, useState, useMemo, useCallback } from 'react';
|
|
4
|
-
import { assignInlineVars } from '
|
|
4
|
+
import { assignInlineVars } from '@vanilla-extract/dynamic';
|
|
5
5
|
import { cx } from '../../../utils/cx.js';
|
|
6
6
|
import { roundToPrecision } from '../../../utils/mathUtils.js';
|
|
7
7
|
import { CanvasContainer } from '../../primitives/canvas/CanvasContainer.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './../../../assets/src/components/controls/ColorPicker/ColorPicker.css.ts.vanilla-Do5nbdgO.css';
|
|
2
|
-
import {
|
|
2
|
+
import { createRuntimeFn } from '@vanilla-extract/recipes/createRuntimeFn';
|
|
3
3
|
|
|
4
4
|
var alphaGradientStyle = 'ColorPicker_alphaGradientStyle__11dms9oa';
|
|
5
5
|
var alphaThumbStyle = 'ColorPicker_alphaThumbStyle__11dms9ob';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { useRef, useState, useEffect } from 'react';
|
|
4
|
-
import { assignInlineVars } from '
|
|
4
|
+
import { assignInlineVars } from '@vanilla-extract/dynamic';
|
|
5
5
|
import { useCurveRenderer } from './useCurveRenderer.js';
|
|
6
6
|
import { canvasRecipe, ariaLiveRegionStyle, canvasHeightVar, canvasContainerRecipe } from './CurveEditor.css.js';
|
|
7
7
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './../../../assets/src/components/controls/CurveEditor/CurveEditor.css.ts.vanilla-Vn9SOx70.css';
|
|
2
|
-
import {
|
|
2
|
+
import { createRuntimeFn } from '@vanilla-extract/recipes/createRuntimeFn';
|
|
3
3
|
|
|
4
4
|
var ariaLiveRegionStyle = 'CurveEditor_ariaLiveRegionStyle__yuzld7f';
|
|
5
5
|
var bottomBarStyle = 'CurveEditor_bottomBarStyle__yuzld78';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { useRef, useState, useMemo, useCallback } from 'react';
|
|
4
|
-
import { assignInlineVars } from '
|
|
4
|
+
import { assignInlineVars } from '@vanilla-extract/dynamic';
|
|
5
5
|
import { vars } from '../../../theme/contract.css.js';
|
|
6
6
|
import { cx } from '../../../utils/cx.js';
|
|
7
7
|
import { ensureKeyframeIds, evaluateCurve } from './curveUtils.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
3
|
-
import { assignInlineVars } from '
|
|
3
|
+
import { assignInlineVars } from '@vanilla-extract/dynamic';
|
|
4
4
|
import { IconButton } from '../../primitives/IconButton/IconButton.js';
|
|
5
5
|
import { Select } from '../Select/Select.js';
|
|
6
6
|
import { Tooltip } from '../../primitives/Tooltip/Tooltip.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './../../../assets/src/components/controls/NumberInput/NumberInput.css.ts.vanilla-uGNr81xQ.css';
|
|
2
|
-
import {
|
|
2
|
+
import { createRuntimeFn } from '@vanilla-extract/recipes/createRuntimeFn';
|
|
3
3
|
|
|
4
4
|
var containerDraggingStyle = 'NumberInput_containerDraggingStyle__1l9csw2';
|
|
5
5
|
var containerHoveredStyle = 'NumberInput_containerHoveredStyle__1l9csw1';
|
|
@@ -50,8 +50,11 @@ function useNumberInput({ value, onChange, min, max, softMin, softMax, step = 1,
|
|
|
50
50
|
// Calculate default step sizes if not provided
|
|
51
51
|
const effectivePrecisionStep = precisionStep ?? step / 10;
|
|
52
52
|
const effectiveLargeStep = largeStep ?? step * 10;
|
|
53
|
+
const effectivePrecision = precision ?? 2;
|
|
53
54
|
// State
|
|
54
|
-
const [displayValue, setDisplayValue] = useState(() => formatValue
|
|
55
|
+
const [displayValue, setDisplayValue] = useState(() => formatValue
|
|
56
|
+
? formatValue(value)
|
|
57
|
+
: defaultFormatValue(value, effectivePrecision));
|
|
55
58
|
const [isEditing, setIsEditing] = useState(false);
|
|
56
59
|
const [isDragging, setIsDragging] = useState(false);
|
|
57
60
|
const [isHovered, setIsHovered] = useState(false);
|
|
@@ -68,11 +71,11 @@ function useNumberInput({ value, onChange, min, max, softMin, softMax, step = 1,
|
|
|
68
71
|
if (!isEditing && !isDragging) {
|
|
69
72
|
const formatted = formatValue
|
|
70
73
|
? formatValue(value)
|
|
71
|
-
: defaultFormatValue(value,
|
|
74
|
+
: defaultFormatValue(value, effectivePrecision);
|
|
72
75
|
setDisplayValue(formatted);
|
|
73
76
|
setError(undefined);
|
|
74
77
|
}
|
|
75
|
-
}, [value,
|
|
78
|
+
}, [value, effectivePrecision, isEditing, isDragging, formatValue]);
|
|
76
79
|
/**
|
|
77
80
|
* Gets the appropriate step size based on modifier keys
|
|
78
81
|
*/
|
|
@@ -97,7 +100,7 @@ function useNumberInput({ value, onChange, min, max, softMin, softMax, step = 1,
|
|
|
97
100
|
if (disabled)
|
|
98
101
|
return;
|
|
99
102
|
// Apply rounding
|
|
100
|
-
const rounded = roundToPrecision(newValue,
|
|
103
|
+
const rounded = roundToPrecision(newValue, effectivePrecision);
|
|
101
104
|
// Apply limits
|
|
102
105
|
const minLimit = useSoftLimits && softMin !== undefined ? softMin : min;
|
|
103
106
|
const maxLimit = useSoftLimits && softMax !== undefined ? softMax : max;
|
|
@@ -105,7 +108,7 @@ function useNumberInput({ value, onChange, min, max, softMin, softMax, step = 1,
|
|
|
105
108
|
if (clamped !== value) {
|
|
106
109
|
onChange(clamped);
|
|
107
110
|
}
|
|
108
|
-
}, [disabled,
|
|
111
|
+
}, [disabled, effectivePrecision, min, max, softMin, softMax, value, onChange]);
|
|
109
112
|
/**
|
|
110
113
|
* Parses and applies text input value
|
|
111
114
|
*/
|
|
@@ -190,7 +193,7 @@ function useNumberInput({ value, onChange, min, max, softMin, softMax, step = 1,
|
|
|
190
193
|
// Update display to show current value
|
|
191
194
|
const formatted = formatValue
|
|
192
195
|
? formatValue(newValue)
|
|
193
|
-
: defaultFormatValue(newValue,
|
|
196
|
+
: defaultFormatValue(newValue, effectivePrecision);
|
|
194
197
|
setDisplayValue(formatted);
|
|
195
198
|
}
|
|
196
199
|
}, [
|
|
@@ -200,7 +203,7 @@ function useNumberInput({ value, onChange, min, max, softMin, softMax, step = 1,
|
|
|
200
203
|
dragSensitivity,
|
|
201
204
|
applyValue,
|
|
202
205
|
formatValue,
|
|
203
|
-
|
|
206
|
+
effectivePrecision,
|
|
204
207
|
]);
|
|
205
208
|
const endDrag = useCallback(() => {
|
|
206
209
|
setIsDragging(false);
|
|
@@ -208,18 +211,21 @@ function useNumberInput({ value, onChange, min, max, softMin, softMax, step = 1,
|
|
|
208
211
|
// Refresh display value to ensure it matches the current value
|
|
209
212
|
const formatted = formatValue
|
|
210
213
|
? formatValue(value)
|
|
211
|
-
: defaultFormatValue(value,
|
|
214
|
+
: defaultFormatValue(value, effectivePrecision);
|
|
212
215
|
setDisplayValue(formatted);
|
|
213
|
-
}, [value, formatValue,
|
|
216
|
+
}, [value, formatValue, effectivePrecision]);
|
|
214
217
|
const startEditing = useCallback(() => {
|
|
215
218
|
if (disabled)
|
|
216
219
|
return;
|
|
217
220
|
setIsEditing(true);
|
|
218
221
|
setError(undefined);
|
|
219
|
-
//
|
|
222
|
+
// Place cursor at end of input
|
|
220
223
|
setTimeout(() => {
|
|
221
224
|
const input = document.activeElement;
|
|
222
|
-
input
|
|
225
|
+
if (input) {
|
|
226
|
+
const len = input.value.length;
|
|
227
|
+
input.setSelectionRange(len, len);
|
|
228
|
+
}
|
|
223
229
|
}, 0);
|
|
224
230
|
}, [disabled]);
|
|
225
231
|
const endEditing = useCallback(() => {
|
|
@@ -232,10 +238,10 @@ function useNumberInput({ value, onChange, min, max, softMin, softMax, step = 1,
|
|
|
232
238
|
setIsEditing(false);
|
|
233
239
|
const formatted = formatValue
|
|
234
240
|
? formatValue(value)
|
|
235
|
-
: defaultFormatValue(value,
|
|
241
|
+
: defaultFormatValue(value, effectivePrecision);
|
|
236
242
|
setDisplayValue(formatted);
|
|
237
243
|
setError(undefined);
|
|
238
|
-
}, [value,
|
|
244
|
+
}, [value, effectivePrecision, formatValue]);
|
|
239
245
|
const updateDisplayValue = useCallback((newValue) => {
|
|
240
246
|
setDisplayValue(newValue);
|
|
241
247
|
// Clear error when user starts typing
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useNumberInput.js","sources":["../../../../../../src/components/controls/NumberInput/useNumberInput.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"useNumberInput.js","sources":["../../../../../../src/components/controls/NumberInput/useNumberInput.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAyMA;;AAEG;AACH;;AAEE;;AACA;;AACA;AACF;AAEA;;AAEG;AACH;;AAC+B;;;AAG/B;AAEA;;AAEG;AACH;AACE;AACE;;;AAGF;AACF;AAEA;;;;;;;;;;;;AAYG;;;AAmBD;AACA;AACA;;;AAKI;;;;;;;;AAUJ;AACA;AACA;;AAGA;;;AAIE;;AAEI;AACA;;;;AAIN;AAEA;;AAEG;AACH;;AACuB;AACrB;AAAyC;AACzC;AACF;AACE;AACA;AACA;;;;AAID;AAED;;AAEG;;AAGC;;;;;AAMA;AACA;;AAGA;;;AAGF;AAIF;;AAEG;AACH;AACE;;;AAGI;;;;AAIE;;;;;AAMF;;AAEE;;AAEA;;;AAEA;AACA;;;;AAKJ;AACA;;;AAGE;;;AAIF;;;;AAGA;AACA;;;;AAKJ;AACE;;AACA;AACA;;AAGF;AACE;;AACA;AACA;;AAGF;AAEI;;;AAEA;AACA;AACA;;AAEF;AAIF;;;AAII;AACA;;;AAIA;;;;;AAME;;;AAIA;;;AAIE;AACA;;;AAGN;;;;;;;;AASC;AAGH;;;;;AAKI;AACA;;;AAIJ;AACE;;;;;;AAKE;;AAEE;AACA;;;AAGN;AAEA;;;;;AAKA;AAEA;;;AAGI;AACA;;;;AAKJ;;;;;;AAOE;AAIF;AAEI;;AAEA;AACE;;;AAGI;;;AAEA;;;AAIJ;;;AAGI;;;AAIJ;;;AAGI;;;AAIJ;;;AAGI;;;AAIJ;;;;AAII;;;;AAIR;;;;;;;;;;AAWC;;;;;;;;;;;AAcD;;;;;;;;;;;AAYA;AACA;;;AAGJ;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './../../../assets/src/components/controls/Select/Select.css.ts.vanilla-D4C059Ua.css';
|
|
2
|
-
import {
|
|
2
|
+
import { createRuntimeFn } from '@vanilla-extract/recipes/createRuntimeFn';
|
|
3
3
|
|
|
4
4
|
var checkmarkStyle = 'Select_checkmarkStyle__ycpn7018';
|
|
5
5
|
var chevronRecipe = createRuntimeFn({defaultClassName:'Select_chevronRecipe__ycpn70q',variantClassNames:{open:{true:'Select_chevronRecipe_open_true__ycpn70r',false:'Select_chevronRecipe_open_false__ycpn70s'}},defaultVariants:{open:false},compoundVariants:[]});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './../../../assets/src/components/controls/Slider/Slider.css.ts.vanilla-C5SJ_7A1.css';
|
|
2
|
-
import {
|
|
2
|
+
import { createRuntimeFn } from '@vanilla-extract/recipes/createRuntimeFn';
|
|
3
3
|
|
|
4
4
|
var fillPercentageVar = 'var(--fillPercentageVar__t8kxxs0)';
|
|
5
5
|
var fillRecipe = createRuntimeFn({defaultClassName:'Slider_fillRecipe__t8kxxsd',variantClassNames:{error:{true:'Slider_fillRecipe_error_true__t8kxxse',false:'Slider_fillRecipe_error_false__t8kxxsf'},isDragging:{true:'Slider_fillRecipe_isDragging_true__t8kxxsg',false:'Slider_fillRecipe_isDragging_false__t8kxxsh'}},defaultVariants:{error:false,isDragging:false},compoundVariants:[]});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import React, { useState, useRef, useCallback, useEffect } from 'react';
|
|
4
|
-
import { assignInlineVars } from '
|
|
4
|
+
import { assignInlineVars } from '@vanilla-extract/dynamic';
|
|
5
5
|
import { useKeyboardContext } from '../../../context/KeyboardContext.js';
|
|
6
6
|
import { FormLabel } from '../../form/FormLabel.js';
|
|
7
7
|
import { FormHelperText } from '../../form/FormHelperText.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './../../../assets/src/components/controls/TreeView/TreeNode.css.ts.vanilla-D3ylUhuW.css';
|
|
2
|
-
import {
|
|
2
|
+
import { createRuntimeFn } from '@vanilla-extract/recipes/createRuntimeFn';
|
|
3
3
|
|
|
4
4
|
var actionsStyle = 'TreeNode_actionsStyle__8ws3nev';
|
|
5
5
|
var chevronRecipe = createRuntimeFn({defaultClassName:'TreeNode_chevronRecipe__8ws3nef',variantClassNames:{size:{sm:'TreeNode_chevronRecipe_size_sm__8ws3neg',md:'TreeNode_chevronRecipe_size_md__8ws3neh',lg:'TreeNode_chevronRecipe_size_lg__8ws3nei'},expanded:{true:'TreeNode_chevronRecipe_expanded_true__8ws3nej',false:'TreeNode_chevronRecipe_expanded_false__8ws3nek'},visible:{true:'TreeNode_chevronRecipe_visible_true__8ws3nel',false:'TreeNode_chevronRecipe_visible_false__8ws3nem'}},defaultVariants:{size:'md',expanded:false,visible:true},compoundVariants:[]});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
3
3
|
import { useState, useRef, useCallback } from 'react';
|
|
4
|
-
import { assignInlineVars } from '
|
|
4
|
+
import { assignInlineVars } from '@vanilla-extract/dynamic';
|
|
5
5
|
import { guideLineStyle, guideLineLeftVar, chevronRecipe, iconRecipe, renameInputRecipe, labelRecipe, actionsStyle, paddingLeftVar, rowRecipe } from './TreeNode.css.js';
|
|
6
6
|
|
|
7
7
|
// --- Size configurations ---
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
3
|
import React, { useRef, useCallback } from 'react';
|
|
4
|
-
import { assignInlineVars } from '
|
|
4
|
+
import { assignInlineVars } from '@vanilla-extract/dynamic';
|
|
5
5
|
import { useTreeState } from './useTreeState.js';
|
|
6
6
|
import { TreeNodeComponent } from './TreeNode.js';
|
|
7
7
|
import { cx } from '../../../utils/cx.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './../../../assets/src/components/controls/VectorInput/VectorInput.css.ts.vanilla-BJma3iQ4.css';
|
|
2
|
-
import {
|
|
2
|
+
import { createRuntimeFn } from '@vanilla-extract/recipes/createRuntimeFn';
|
|
3
3
|
|
|
4
4
|
var axisColorVar = 'var(--axisColorVar__1osrtmk0)';
|
|
5
5
|
var axisInputStyle = 'VectorInput_axisInputStyle__1osrtmk6';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import React, { useState, useRef, useCallback } from 'react';
|
|
4
|
-
import { assignInlineVars } from '
|
|
4
|
+
import { assignInlineVars } from '@vanilla-extract/dynamic';
|
|
5
5
|
import { NumberInput } from '../NumberInput/NumberInput.js';
|
|
6
|
+
import '../../../utils/mathExpression.js';
|
|
6
7
|
import { FormLabel } from '../../form/FormLabel.js';
|
|
7
8
|
import { FormHelperText } from '../../form/FormHelperText.js';
|
|
8
9
|
import { cx } from '../../../utils/cx.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VectorInput.js","sources":["../../../../../../src/components/controls/VectorInput/VectorInput.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"VectorInput.js","sources":["../../../../../../src/components/controls/VectorInput/VectorInput.tsx"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;AAoBA;AAEA;;;AAGE;;AAGF;AAEA;AACA;AAEA;AAKE;AACE;;AAEF;AACE;;AAEF;AACE;;;AAGF;AACF;AAEA;AAKE;AACE;;AAEF;;;;;AAKF;AAEA;AACA;AAYA;AAYA;;;;;;;;;;;;;;;;AAgBG;;;AAmCD;AAGA;;;AAIA;;AAGA;;AAGA;AACE;AACF;;AAGA;AACE;AACA;;;AAGA;;;;AAME;AACA;;;AAIE;;AAEE;;;;;AAMA;;;;;;;AAWJ;AAEA;;;AAGA;;;AAMJ;AACE;AACF;;;;AAOA;;;;;;;AA+CM;AA4BR;AAEA;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import React, { useState, useCallback } from 'react';
|
|
4
|
-
import { assignInlineVars } from '
|
|
4
|
+
import { assignInlineVars } from '@vanilla-extract/dynamic';
|
|
5
5
|
import { cx } from '../../../utils/cx.js';
|
|
6
6
|
import { codeBlockHeaderStyle, codeBlockLanguageStyle, codeBlockActionsStyle, codeBlockCopyButtonStyle, codeBlockLineNumbersColumnStyle, codeBlockPreStyle, codeBlockMaxHeightVar, codeBlockContentWithLineNumbersStyle, codeBlockContentStyle, codeBlockContainerStyle } from './ChatPanel.css.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import React, { useId, useCallback } from 'react';
|
|
4
|
-
import { assignInlineVars } from '
|
|
4
|
+
import { assignInlineVars } from '@vanilla-extract/dynamic';
|
|
5
5
|
import { cx } from '../../../utils/cx.js';
|
|
6
6
|
import { useChatInput } from './useChatInput.js';
|
|
7
7
|
import { ChatAttachmentChip } from './ChatAttachment.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './../../../assets/src/components/editor/ChatPanel/ChatPanel.css.ts.vanilla-DPIGnZ4A.css';
|
|
2
|
-
import {
|
|
2
|
+
import { createRuntimeFn } from '@vanilla-extract/recipes/createRuntimeFn';
|
|
3
3
|
|
|
4
4
|
var actionBarStyle = 'ChatPanel_actionBarStyle__1c3e77r2b';
|
|
5
5
|
var attachmentChipIconStyle = 'ChatPanel_attachmentChipIconStyle__1c3e77r1w';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
-
import { assignInlineVars } from '
|
|
3
|
+
import { assignInlineVars } from '@vanilla-extract/dynamic';
|
|
4
4
|
import { cx } from '../../../utils/cx.js';
|
|
5
5
|
import { vars } from '../../../theme/contract.css.js';
|
|
6
6
|
import { groupDivider, groupLine, groupTitle, indentVar, groupRoot } from './PropertyGroup.css.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
3
|
import { useState, useCallback, useMemo, createContext, useContext } from 'react';
|
|
4
|
-
import { assignInlineVars } from '
|
|
4
|
+
import { assignInlineVars } from '@vanilla-extract/dynamic';
|
|
5
5
|
import { cx } from '../../../utils/cx.js';
|
|
6
6
|
import { ScrollArea } from '../../layout/ScrollArea/ScrollArea.js';
|
|
7
7
|
import { contentBottomSpacingVar, contentTopSpacingVar, panelContent, panelHeader, searchWrapper, searchInputBase, panelFooter, panelRoot } from './PropertyPanel.css.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
3
3
|
import { useCallback } from 'react';
|
|
4
|
-
import { assignInlineVars } from '
|
|
4
|
+
import { assignInlineVars } from '@vanilla-extract/dynamic';
|
|
5
5
|
import { cx } from '../../../utils/cx.js';
|
|
6
6
|
import { Tooltip } from '../../primitives/Tooltip/Tooltip.js';
|
|
7
7
|
import { usePropertyPanelContext } from './PropertyPanel.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './../../../assets/src/components/editor/PropertyInspector/PropertySection.css.ts.vanilla-DJBtY_xk.css';
|
|
2
|
-
import {
|
|
2
|
+
import { createRuntimeFn } from '@vanilla-extract/recipes/createRuntimeFn';
|
|
3
3
|
|
|
4
4
|
var actionsArea = 'PropertySection_actionsArea__1xiu0w6d';
|
|
5
5
|
var chevron = 'PropertySection_chevron__1xiu0w69';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './../../../assets/src/components/editor/ViewportGizmo/ViewportGizmo.css.ts.vanilla-CEs2H-Iv.css';
|
|
2
|
-
import {
|
|
2
|
+
import { createRuntimeFn } from '@vanilla-extract/recipes/createRuntimeFn';
|
|
3
3
|
|
|
4
4
|
var ariaLiveRegionStyle = 'ViewportGizmo_ariaLiveRegionStyle__awfy0ia';
|
|
5
5
|
var gizmoCanvasStyle = createRuntimeFn({defaultClassName:'ViewportGizmo_gizmoCanvasStyle__awfy0i7',variantClassNames:{disabled:{true:'ViewportGizmo_gizmoCanvasStyle_disabled_true__awfy0i8',false:'ViewportGizmo_gizmoCanvasStyle_disabled_false__awfy0i9'}},defaultVariants:{disabled:false},compoundVariants:[]});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { useRef, useMemo } from 'react';
|
|
4
|
-
import { assignInlineVars } from '
|
|
4
|
+
import { assignInlineVars } from '@vanilla-extract/dynamic';
|
|
5
5
|
import { cx } from '../../../utils/cx.js';
|
|
6
6
|
import { AXIS_COLORS, useGizmoRenderer } from './useGizmoRenderer.js';
|
|
7
7
|
import { useGizmoInteraction } from './useGizmoInteraction.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './../../../assets/src/components/feedback/Dialog/Dialog.css.ts.vanilla-BrXTOHwS.css';
|
|
2
|
-
import {
|
|
2
|
+
import { createRuntimeFn } from '@vanilla-extract/recipes/createRuntimeFn';
|
|
3
3
|
|
|
4
4
|
var DIALOG_ANIMATION_MS = 200;
|
|
5
5
|
var dialogBodyStyle = 'Dialog_dialogBodyStyle__ickl0cl';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
import { assignInlineVars } from '
|
|
3
|
+
import { assignInlineVars } from '@vanilla-extract/dynamic';
|
|
4
4
|
import { cx } from '../../../utils/cx.js';
|
|
5
5
|
import { ToastItem } from './ToastItem.js';
|
|
6
6
|
import { zIndexVar, gapVar, containerReverse, containerNormal, container } from './ToastContainer.css.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './../../../assets/src/components/feedback/Toast/ToastItem.css.ts.vanilla-D6UuPKAj.css';
|
|
2
|
-
import {
|
|
2
|
+
import { createRuntimeFn } from '@vanilla-extract/recipes/createRuntimeFn';
|
|
3
3
|
|
|
4
4
|
var actionButton = createRuntimeFn({defaultClassName:'ToastItem_actionButton__xlinlde',variantClassNames:{severity:{info:'ToastItem_actionButton_severity_info__xlinldf',success:'ToastItem_actionButton_severity_success__xlinldg',warning:'ToastItem_actionButton_severity_warning__xlinldh',error:'ToastItem_actionButton_severity_error__xlinldi'}},defaultVariants:{severity:'info'},compoundVariants:[]});
|
|
5
5
|
var closeButton = 'ToastItem_closeButton__xlinldd';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { useState, useRef, useCallback, useEffect } from 'react';
|
|
4
|
-
import { assignInlineVars } from '
|
|
4
|
+
import { assignInlineVars } from '@vanilla-extract/dynamic';
|
|
5
5
|
import { content, iconWrapper, textContent, titleStyle, message, actionButton, closeButton, progressDurationVar, progressBar, toast } from './ToastItem.css.js';
|
|
6
6
|
|
|
7
7
|
// --- Severity icons (inline SVGs) ---
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './../../assets/src/components/form/FormHelperText.css.ts.vanilla-CXKd9jtx.css';
|
|
2
|
-
import {
|
|
2
|
+
import { createRuntimeFn } from '@vanilla-extract/recipes/createRuntimeFn';
|
|
3
3
|
|
|
4
4
|
var formHelperTextRecipe = createRuntimeFn({defaultClassName:'FormHelperText_formHelperTextRecipe__cuqj3k0',variantClassNames:{error:{true:'FormHelperText_formHelperTextRecipe_error_true__cuqj3k1',false:'FormHelperText_formHelperTextRecipe_error_false__cuqj3k2'}},defaultVariants:{error:false},compoundVariants:[]});
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './../../assets/src/components/form/FormLabel.css.ts.vanilla-DHn6CB2v.css';
|
|
2
|
-
import {
|
|
2
|
+
import { createRuntimeFn } from '@vanilla-extract/recipes/createRuntimeFn';
|
|
3
3
|
|
|
4
4
|
var formLabelRecipe = createRuntimeFn({defaultClassName:'FormLabel_formLabelRecipe__1xpmfd40',variantClassNames:{disabled:{true:'FormLabel_formLabelRecipe_disabled_true__1xpmfd41',false:'FormLabel_formLabelRecipe_disabled_false__1xpmfd42'}},defaultVariants:{disabled:false},compoundVariants:[]});
|
|
5
5
|
var requiredIndicatorStyle = 'FormLabel_requiredIndicatorStyle__1xpmfd43';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './../../assets/src/components/form/InputWrapper.css.ts.vanilla-Bl7u62PI.css';
|
|
2
|
-
import {
|
|
2
|
+
import { createRuntimeFn } from '@vanilla-extract/recipes/createRuntimeFn';
|
|
3
3
|
|
|
4
4
|
var inputWrapperRecipe = createRuntimeFn({defaultClassName:'InputWrapper_inputWrapperRecipe__1h1gl4m0',variantClassNames:{size:{sm:'InputWrapper_inputWrapperRecipe_size_sm__1h1gl4m1',md:'InputWrapper_inputWrapperRecipe_size_md__1h1gl4m2',lg:'InputWrapper_inputWrapperRecipe_size_lg__1h1gl4m3'},error:{true:'InputWrapper_inputWrapperRecipe_error_true__1h1gl4m4',false:'InputWrapper_inputWrapperRecipe_error_false__1h1gl4m5'},disabled:{true:'InputWrapper_inputWrapperRecipe_disabled_true__1h1gl4m6',false:'InputWrapper_inputWrapperRecipe_disabled_false__1h1gl4m7'},focused:{true:'InputWrapper_inputWrapperRecipe_focused_true__1h1gl4m8',false:'InputWrapper_inputWrapperRecipe_focused_false__1h1gl4m9'}},defaultVariants:{size:'md',error:false,disabled:false,focused:false},compoundVariants:[[{focused:true,error:false},'InputWrapper_inputWrapperRecipe_compound_0__1h1gl4ma'],[{focused:false,error:false,disabled:false},'InputWrapper_inputWrapperRecipe_compound_1__1h1gl4mb'],[{focused:false,error:false,disabled:true},'InputWrapper_inputWrapperRecipe_compound_2__1h1gl4mc']]});
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './../../../assets/src/components/layout/Accordion/Accordion.css.ts.vanilla-Ck5Yew0e.css';
|
|
2
|
-
import {
|
|
2
|
+
import { createRuntimeFn } from '@vanilla-extract/recipes/createRuntimeFn';
|
|
3
3
|
|
|
4
4
|
var accordionGapVar = 'var(--accordionGapVar__1j9ah930)';
|
|
5
5
|
var accordionItem = 'Accordion_accordionItem__1j9ah932';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { useId, useState, useCallback, createContext, useContext } from 'react';
|
|
4
4
|
import { cx } from '../../../utils/cx.js';
|
|
5
|
-
import { assignInlineVars } from '
|
|
5
|
+
import { assignInlineVars } from '@vanilla-extract/dynamic';
|
|
6
6
|
import { accordionGapVar, accordionRoot } from './Accordion.css.js';
|
|
7
7
|
|
|
8
8
|
// --- Contexts ---
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './../../../assets/src/components/layout/Flex/Flex.css.ts.vanilla-D7wY2gY6.css';
|
|
2
|
-
import {
|
|
2
|
+
import { createRuntimeFn } from '@vanilla-extract/recipes/createRuntimeFn';
|
|
3
3
|
|
|
4
4
|
var basisVar = 'var(--basisVar__tsbw353)';
|
|
5
5
|
var flexRecipe = createRuntimeFn({defaultClassName:'Flex_flexRecipe__tsbw354',variantClassNames:{direction:{row:'Flex_flexRecipe_direction_row__tsbw355','row-reverse':'Flex_flexRecipe_direction_row-reverse__tsbw356',column:'Flex_flexRecipe_direction_column__tsbw357','column-reverse':'Flex_flexRecipe_direction_column-reverse__tsbw358'},wrap:{nowrap:'Flex_flexRecipe_wrap_nowrap__tsbw359',wrap:'Flex_flexRecipe_wrap_wrap__tsbw35a','wrap-reverse':'Flex_flexRecipe_wrap_wrap-reverse__tsbw35b'},justify:{'flex-start':'Flex_flexRecipe_justify_flex-start__tsbw35c','flex-end':'Flex_flexRecipe_justify_flex-end__tsbw35d',center:'Flex_flexRecipe_justify_center__tsbw35e','space-between':'Flex_flexRecipe_justify_space-between__tsbw35f','space-around':'Flex_flexRecipe_justify_space-around__tsbw35g','space-evenly':'Flex_flexRecipe_justify_space-evenly__tsbw35h'},align:{'flex-start':'Flex_flexRecipe_align_flex-start__tsbw35i','flex-end':'Flex_flexRecipe_align_flex-end__tsbw35j',center:'Flex_flexRecipe_align_center__tsbw35k',stretch:'Flex_flexRecipe_align_stretch__tsbw35l',baseline:'Flex_flexRecipe_align_baseline__tsbw35m'},alignContent:{'flex-start':'Flex_flexRecipe_alignContent_flex-start__tsbw35n','flex-end':'Flex_flexRecipe_alignContent_flex-end__tsbw35o',center:'Flex_flexRecipe_alignContent_center__tsbw35p',stretch:'Flex_flexRecipe_alignContent_stretch__tsbw35q','space-between':'Flex_flexRecipe_alignContent_space-between__tsbw35r','space-around':'Flex_flexRecipe_alignContent_space-around__tsbw35s'},fullWidth:{true:'Flex_flexRecipe_fullWidth_true__tsbw35t'},fullHeight:{true:'Flex_flexRecipe_fullHeight_true__tsbw35u'}},defaultVariants:{direction:'row',wrap:'nowrap',justify:'flex-start',align:'stretch',alignContent:'stretch'},compoundVariants:[]});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { cx } from '../../../utils/cx.js';
|
|
4
|
-
import { assignInlineVars } from '
|
|
4
|
+
import { assignInlineVars } from '@vanilla-extract/dynamic';
|
|
5
5
|
import { basisVar, shrinkVar, growVar, gapVar, flexRecipe } from './Flex.css.js';
|
|
6
6
|
|
|
7
7
|
/** Base spacing unit in px */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { cx } from '../../../utils/cx.js';
|
|
4
|
-
import { assignInlineVars } from '
|
|
4
|
+
import { assignInlineVars } from '@vanilla-extract/dynamic';
|
|
5
5
|
import { columnsVar, gapVar, gridContainer, gridItem } from './Grid.css.js';
|
|
6
6
|
|
|
7
7
|
/** Base spacing unit in px */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './../../../assets/src/components/layout/PanelSurface/PanelSurface.css.ts.vanilla-HZvObe0l.css';
|
|
2
|
-
import {
|
|
2
|
+
import { createRuntimeFn } from '@vanilla-extract/recipes/createRuntimeFn';
|
|
3
3
|
|
|
4
4
|
var backgroundVar = 'var(--backgroundVar__1h989w10)';
|
|
5
5
|
var bodyHidden = 'PanelSurface_bodyHidden__1h989w1b';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
3
|
import { useMemo, createContext, useContext } from 'react';
|
|
4
4
|
import { cx } from '../../../utils/cx.js';
|
|
5
|
-
import { assignInlineVars } from '
|
|
5
|
+
import { assignInlineVars } from '@vanilla-extract/dynamic';
|
|
6
6
|
import { backgroundVar, rootBordered, rootNoBorder, rootStyle, footerRecipe, bodyScrollable, bodyHidden, bodyStyle, headerActions, headerRecipe } from './PanelSurface.css.js';
|
|
7
7
|
import { vars } from '../../../theme/contract.css.js';
|
|
8
8
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './../../../assets/src/components/layout/ScrollArea/ScrollArea.css.ts.vanilla-UsyrfXTC.css';
|
|
2
|
-
import {
|
|
2
|
+
import { createRuntimeFn } from '@vanilla-extract/recipes/createRuntimeFn';
|
|
3
3
|
|
|
4
4
|
var fadeMaskBase = 'ScrollArea_fadeMaskBase__17ntphkh';
|
|
5
5
|
var fadeMaskBottom = 'ScrollArea_fadeMaskBottom__17ntphkl';
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
3
3
|
import { useId, useRef, useState, useCallback, useEffect } from 'react';
|
|
4
4
|
import { cx } from '../../../utils/cx.js';
|
|
5
|
-
import { assignInlineVars } from '
|
|
6
|
-
import { viewportRecipe, fadeMaskVisible, fadeMaskHiddenStyle, fadeMaskTop, fadeMaskBase, fadeMaskBottom, fadeMaskLeft, fadeMaskRight, thumbDragging, thumbVertical, thumbBase, scrollbarVisible, scrollbarHidden, scrollbarVertical, thumbHorizontal, scrollbarHorizontal, rootAutoFill, rootStyle
|
|
5
|
+
import { assignInlineVars } from '@vanilla-extract/dynamic';
|
|
6
|
+
import { fadeMaskSizeVar, scrollbarPaddingVar, scrollbarWidthVar, viewportRecipe, fadeMaskVisible, fadeMaskHiddenStyle, fadeMaskTop, fadeMaskBase, fadeMaskBottom, fadeMaskLeft, fadeMaskRight, thumbDragging, thumbVertical, thumbBase, scrollbarVisible, scrollbarHidden, scrollbarVertical, thumbHorizontal, scrollbarHorizontal, rootAutoFill, rootStyle } from './ScrollArea.css.js';
|
|
7
7
|
|
|
8
8
|
// --- Component ---
|
|
9
9
|
const ScrollArea = ({ children, direction = 'vertical', scrollbarVisibility = 'auto', hideDelay = 1000, scrollbarWidth = 6, minThumbLength = 30, scrollbarPadding = 2, fadeMask = false, fadeMaskHeight = 24, maxHeight, maxWidth, autoFill = false, onScroll, onScrollTop, onScrollBottom, className, style, testId, ref: externalRef, ...rest }) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './../../../assets/src/components/layout/SplitPane/SplitPane.css.ts.vanilla-BFxdvwyI.css';
|
|
2
|
-
import {
|
|
2
|
+
import { createRuntimeFn } from '@vanilla-extract/recipes/createRuntimeFn';
|
|
3
3
|
|
|
4
4
|
var containerRecipe = createRuntimeFn({defaultClassName:'SplitPane_containerRecipe__13xgg0i0',variantClassNames:{direction:{horizontal:'SplitPane_containerRecipe_direction_horizontal__13xgg0i1',vertical:'SplitPane_containerRecipe_direction_vertical__13xgg0i2'}},defaultVariants:{},compoundVariants:[]});
|
|
5
5
|
var dividerRecipe = createRuntimeFn({defaultClassName:'SplitPane_dividerRecipe__13xgg0i4',variantClassNames:{direction:{horizontal:'SplitPane_dividerRecipe_direction_horizontal__13xgg0i5',vertical:'SplitPane_dividerRecipe_direction_vertical__13xgg0i6'},isDragging:{true:'SplitPane_dividerRecipe_isDragging_true__13xgg0i7'}},defaultVariants:{},compoundVariants:[]});
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
3
|
import React, { useRef, useState, useMemo, useCallback, useEffect } from 'react';
|
|
4
4
|
import { cx } from '../../../utils/cx.js';
|
|
5
|
-
import { assignInlineVars } from '
|
|
5
|
+
import { assignInlineVars } from '@vanilla-extract/dynamic';
|
|
6
6
|
import { dividerSizeVar, dividerRecipe, containerRecipe } from './SplitPane.css.js';
|
|
7
7
|
|
|
8
8
|
// ---------------------------------------------------------------------------
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './../../../assets/src/components/layout/Stack/Stack.css.ts.vanilla-DNZOFYiD.css';
|
|
2
|
-
import {
|
|
2
|
+
import { createRuntimeFn } from '@vanilla-extract/recipes/createRuntimeFn';
|
|
3
3
|
|
|
4
4
|
var gapVar = 'var(--gapVar__xx9bfp0)';
|
|
5
5
|
var stackRecipe = createRuntimeFn({defaultClassName:'Stack_stackRecipe__xx9bfp1',variantClassNames:{direction:{row:'Stack_stackRecipe_direction_row__xx9bfp2',column:'Stack_stackRecipe_direction_column__xx9bfp3'},wrap:{nowrap:'Stack_stackRecipe_wrap_nowrap__xx9bfp4',wrap:'Stack_stackRecipe_wrap_wrap__xx9bfp5','wrap-reverse':'Stack_stackRecipe_wrap_wrap-reverse__xx9bfp6'},justify:{'flex-start':'Stack_stackRecipe_justify_flex-start__xx9bfp7','flex-end':'Stack_stackRecipe_justify_flex-end__xx9bfp8',center:'Stack_stackRecipe_justify_center__xx9bfp9','space-between':'Stack_stackRecipe_justify_space-between__xx9bfpa','space-around':'Stack_stackRecipe_justify_space-around__xx9bfpb','space-evenly':'Stack_stackRecipe_justify_space-evenly__xx9bfpc'},align:{'flex-start':'Stack_stackRecipe_align_flex-start__xx9bfpd','flex-end':'Stack_stackRecipe_align_flex-end__xx9bfpe',center:'Stack_stackRecipe_align_center__xx9bfpf',stretch:'Stack_stackRecipe_align_stretch__xx9bfpg',baseline:'Stack_stackRecipe_align_baseline__xx9bfph'},expandRow:{true:'Stack_stackRecipe_expandRow_true__xx9bfpi'},expandColumn:{true:'Stack_stackRecipe_expandColumn_true__xx9bfpj'}},defaultVariants:{direction:'column',wrap:'nowrap',justify:'flex-start',align:'flex-start'},compoundVariants:[]});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { cx } from '../../../utils/cx.js';
|
|
4
|
-
import { assignInlineVars } from '
|
|
4
|
+
import { assignInlineVars } from '@vanilla-extract/dynamic';
|
|
5
5
|
import { gapVar, stackRecipe } from './Stack.css.js';
|
|
6
6
|
|
|
7
7
|
/** Base spacing unit in px */
|