@vlrc-fe/components 3.0.4 → 3.0.5
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 +12 -0
- package/dist/ConfirmModal.cjs +40 -48
- package/dist/ConfirmModal.d.ts +5 -21
- package/dist/ConfirmModal.d.ts.map +1 -1
- package/dist/ConfirmModal.js +41 -48
- package/dist/Modal.cjs +12 -16
- package/dist/Modal.d.ts +2 -14
- package/dist/Modal.d.ts.map +1 -1
- package/dist/Modal.js +12 -16
- package/dist/MultiSelect/MultiSelect.cjs +0 -1
- package/dist/MultiSelect/MultiSelect.d.ts.map +1 -1
- package/dist/MultiSelect/MultiSelect.js +0 -1
- package/dist/MultiSelect/useMultiSelect.cjs +1 -0
- package/dist/MultiSelect/useMultiSelect.d.ts.map +1 -1
- package/dist/MultiSelect/useMultiSelect.js +1 -0
- package/dist/MultiSelect/utils.cjs +2 -2
- package/dist/MultiSelect/utils.js +2 -2
- package/dist/Typography/Link.cjs +3 -5
- package/dist/Typography/Link.d.ts +1 -1
- package/dist/Typography/Link.d.ts.map +1 -1
- package/dist/Typography/Link.js +3 -5
- package/dist/Typography/Paragraph.cjs +3 -5
- package/dist/Typography/Paragraph.d.ts +1 -1
- package/dist/Typography/Paragraph.d.ts.map +1 -1
- package/dist/Typography/Paragraph.js +3 -5
- package/dist/Typography/Text.cjs +3 -4
- package/dist/Typography/Text.d.ts +1 -1
- package/dist/Typography/Text.d.ts.map +1 -1
- package/dist/Typography/Text.js +4 -5
- package/dist/Typography/Title.cjs +4 -4
- package/dist/Typography/Title.d.ts +1 -1
- package/dist/Typography/Title.d.ts.map +1 -1
- package/dist/Typography/Title.js +5 -5
- package/dist/Typography/Typography.d.ts +8 -4
- package/dist/Typography/Typography.d.ts.map +1 -1
- package/dist/Typography/index.d.ts +0 -3
- package/dist/Typography/index.d.ts.map +1 -1
- package/dist/Typography/index.js +1 -4
- package/dist/Typography/types.d.ts +4 -0
- package/dist/Typography/types.d.ts.map +1 -1
- package/dist/assets/stylex.css +32 -8
- package/dist/astryx.cjs +1 -10
- package/dist/astryx.d.ts +0 -1
- package/dist/astryx.d.ts.map +1 -1
- package/dist/astryx.js +0 -2
- package/dist/index.cjs +2 -12
- package/dist/index.d.ts +2 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -6
- package/dist/layout/Box.cjs +44 -67
- package/dist/layout/Box.d.ts +3 -5
- package/dist/layout/Box.d.ts.map +1 -1
- package/dist/layout/Box.js +44 -67
- package/dist/layout/Center.cjs +13 -24
- package/dist/layout/Center.d.ts +2 -2
- package/dist/layout/Center.d.ts.map +1 -1
- package/dist/layout/Center.js +13 -24
- package/dist/layout/Container.cjs +21 -10
- package/dist/layout/Container.d.ts +3 -5
- package/dist/layout/Container.d.ts.map +1 -1
- package/dist/layout/Container.js +21 -10
- package/dist/layout/Stack.cjs +55 -93
- package/dist/layout/Stack.d.ts +5 -5
- package/dist/layout/Stack.d.ts.map +1 -1
- package/dist/layout/Stack.js +55 -93
- package/dist/layout/index.d.ts +1 -1
- package/dist/layout/index.js +2 -2
- package/dist/lazyLoad.cjs +1 -1
- package/dist/lazyLoad.d.ts.map +1 -1
- package/dist/lazyLoad.js +1 -1
- package/dist/theme/index.cjs +1 -1
- package/dist/theme/index.js +1 -1
- package/dist/theme/zIndex.cjs +0 -2
- package/dist/theme/zIndex.d.ts +4 -4
- package/dist/theme/zIndex.d.ts.map +1 -1
- package/dist/theme.css +32 -8
- package/dist/ui/aspect-ratio.cjs +0 -1
- package/dist/ui/aspect-ratio.d.ts.map +1 -1
- package/dist/ui/aspect-ratio.js +0 -1
- package/dist/ui/avatar.cjs +0 -1
- package/dist/ui/avatar.d.ts.map +1 -1
- package/dist/ui/avatar.js +0 -1
- package/dist/ui/calendar.cjs +0 -1
- package/dist/ui/calendar.d.ts.map +1 -1
- package/dist/ui/calendar.js +0 -1
- package/dist/ui/carousel.cjs +0 -1
- package/dist/ui/carousel.d.ts.map +1 -1
- package/dist/ui/carousel.js +0 -1
- package/dist/ui/checkbox.cjs +4 -8
- package/dist/ui/checkbox.d.ts +1 -1
- package/dist/ui/checkbox.d.ts.map +1 -1
- package/dist/ui/checkbox.js +5 -9
- package/dist/ui/circular-progress.cjs +25 -20
- package/dist/ui/circular-progress.d.ts +3 -3
- package/dist/ui/circular-progress.d.ts.map +1 -1
- package/dist/ui/circular-progress.js +25 -20
- package/dist/ui/code-block.cjs +180 -176
- package/dist/ui/code-block.d.ts +17 -9
- package/dist/ui/code-block.d.ts.map +1 -1
- package/dist/ui/code-block.js +181 -177
- package/dist/ui/collapsible.cjs +0 -1
- package/dist/ui/collapsible.d.ts.map +1 -1
- package/dist/ui/collapsible.js +0 -1
- package/dist/ui/compare-slider.cjs +2 -3
- package/dist/ui/compare-slider.d.ts +3 -2
- package/dist/ui/compare-slider.d.ts.map +1 -1
- package/dist/ui/compare-slider.js +3 -4
- package/dist/ui/context-menu.cjs +0 -1
- package/dist/ui/context-menu.d.ts.map +1 -1
- package/dist/ui/context-menu.js +0 -1
- package/dist/ui/copy-button.cjs +2 -3
- package/dist/ui/copy-button.d.ts +1 -1
- package/dist/ui/copy-button.d.ts.map +1 -1
- package/dist/ui/copy-button.js +3 -4
- package/dist/ui/dialog.cjs +2 -0
- package/dist/ui/dialog.d.ts.map +1 -1
- package/dist/ui/dialog.js +2 -0
- package/dist/ui/drawer.cjs +2 -0
- package/dist/ui/drawer.d.ts.map +1 -1
- package/dist/ui/drawer.js +2 -0
- package/dist/ui/editable.cjs +1 -0
- package/dist/ui/editable.d.ts.map +1 -1
- package/dist/ui/editable.js +1 -0
- package/dist/ui/empty.cjs +37 -52
- package/dist/ui/empty.d.ts +5 -5
- package/dist/ui/empty.d.ts.map +1 -1
- package/dist/ui/empty.js +38 -53
- package/dist/ui/file-upload.cjs +0 -1
- package/dist/ui/file-upload.d.ts.map +1 -1
- package/dist/ui/file-upload.js +0 -1
- package/dist/ui/flex.cjs +3 -4
- package/dist/ui/flex.d.ts +3 -2
- package/dist/ui/flex.d.ts.map +1 -1
- package/dist/ui/flex.js +3 -4
- package/dist/ui/form.cjs +0 -1
- package/dist/ui/form.d.ts.map +1 -1
- package/dist/ui/form.js +0 -1
- package/dist/ui/gauge.cjs +2 -4
- package/dist/ui/gauge.d.ts +3 -2
- package/dist/ui/gauge.d.ts.map +1 -1
- package/dist/ui/gauge.js +2 -4
- package/dist/ui/grid.cjs +7 -7
- package/dist/ui/grid.d.ts +7 -3
- package/dist/ui/grid.d.ts.map +1 -1
- package/dist/ui/grid.js +7 -8
- package/dist/ui/hover-card.cjs +0 -1
- package/dist/ui/hover-card.d.ts.map +1 -1
- package/dist/ui/hover-card.js +0 -1
- package/dist/ui/input-group.cjs +17 -23
- package/dist/ui/input-group.d.ts +2 -2
- package/dist/ui/input-group.d.ts.map +1 -1
- package/dist/ui/input-group.js +17 -23
- package/dist/ui/marker.cjs +78 -75
- package/dist/ui/marker.d.ts +7 -4
- package/dist/ui/marker.d.ts.map +1 -1
- package/dist/ui/marker.js +79 -76
- package/dist/ui/masonry.cjs +2 -4
- package/dist/ui/masonry.d.ts +1 -1
- package/dist/ui/masonry.d.ts.map +1 -1
- package/dist/ui/masonry.js +3 -5
- package/dist/ui/menubar.cjs +0 -1
- package/dist/ui/menubar.d.ts.map +1 -1
- package/dist/ui/menubar.js +0 -1
- package/dist/ui/progress.cjs +6 -5
- package/dist/ui/progress.d.ts +3 -3
- package/dist/ui/progress.d.ts.map +1 -1
- package/dist/ui/progress.js +6 -5
- package/dist/ui/questionnaire.cjs +138 -135
- package/dist/ui/questionnaire.d.ts +21 -11
- package/dist/ui/questionnaire.d.ts.map +1 -1
- package/dist/ui/questionnaire.js +139 -136
- package/dist/ui/rating.cjs +2 -3
- package/dist/ui/rating.d.ts +3 -2
- package/dist/ui/rating.d.ts.map +1 -1
- package/dist/ui/rating.js +3 -4
- package/dist/ui/resizable.cjs +0 -1
- package/dist/ui/resizable.d.ts.map +1 -1
- package/dist/ui/resizable.js +0 -1
- package/dist/ui/row-col.cjs +4 -6
- package/dist/ui/row-col.d.ts +6 -4
- package/dist/ui/row-col.d.ts.map +1 -1
- package/dist/ui/row-col.js +5 -7
- package/dist/ui/scroll-area.cjs +40 -53
- package/dist/ui/scroll-area.d.ts +1 -1
- package/dist/ui/scroll-area.d.ts.map +1 -1
- package/dist/ui/scroll-area.js +40 -53
- package/dist/ui/segmented.cjs +2 -3
- package/dist/ui/segmented.d.ts +3 -2
- package/dist/ui/segmented.d.ts.map +1 -1
- package/dist/ui/segmented.js +3 -4
- package/dist/ui/sheet.cjs +2 -0
- package/dist/ui/sheet.d.ts.map +1 -1
- package/dist/ui/sheet.js +2 -0
- package/dist/ui/sidebar.cjs +0 -1
- package/dist/ui/sidebar.d.ts.map +1 -1
- package/dist/ui/sidebar.js +0 -1
- package/dist/ui/signature-pad.cjs +148 -147
- package/dist/ui/signature-pad.d.ts +17 -9
- package/dist/ui/signature-pad.d.ts.map +1 -1
- package/dist/ui/signature-pad.js +149 -148
- package/dist/ui/stat.cjs +57 -71
- package/dist/ui/stat.d.ts +8 -8
- package/dist/ui/stat.d.ts.map +1 -1
- package/dist/ui/stat.js +57 -71
- package/dist/ui/switch.cjs +4 -8
- package/dist/ui/switch.d.ts +1 -1
- package/dist/ui/switch.d.ts.map +1 -1
- package/dist/ui/switch.js +5 -9
- package/dist/utils.cjs +1 -6
- package/dist/utils.d.ts +2 -12
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +1 -4
- package/package.json +1 -1
package/dist/ui/code-block.js
CHANGED
|
@@ -6,7 +6,7 @@ import { HStack } from "../layout/Stack.js";
|
|
|
6
6
|
import * as stylex from "@stylexjs/stylex";
|
|
7
7
|
import { Check, ChevronDown, ChevronUp, Copy, WrapText } from "lucide-react";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
-
import { Children, createContext,
|
|
9
|
+
import { Children, createContext, isValidElement, useCallback, useContext, useMemo, useState } from "react";
|
|
10
10
|
import { c } from "react/compiler-runtime";
|
|
11
11
|
// src/ui/code-block.tsx
|
|
12
12
|
var CodeBlockContext = createContext(null);
|
|
@@ -307,7 +307,7 @@ function renderHighlightedTokens(text, highlightWords, disableHighlighting) {
|
|
|
307
307
|
if (lastIndex < text.length) parts.push(text.slice(lastIndex));
|
|
308
308
|
return parts;
|
|
309
309
|
}
|
|
310
|
-
|
|
310
|
+
function CodeBlock({ code, language = "typescript", highlightedLines, highlightWords = [], showLineNumbers = true, startLine = 1, wrap: controlledWrap, defaultWrap = false, onWrapChange, maxLines, diff = {}, disableHighlighting = false, sx, className, ref, children, ...props }) {
|
|
311
311
|
const isWrapControlled = controlledWrap !== void 0;
|
|
312
312
|
const [uncontrolledWrap, setUncontrolledWrap] = useState(defaultWrap);
|
|
313
313
|
const wrap = isWrapControlled ? controlledWrap : uncontrolledWrap;
|
|
@@ -355,7 +355,7 @@ var CodeBlock = forwardRef(({ code, language = "typescript", highlightedLines, h
|
|
|
355
355
|
};
|
|
356
356
|
let hasExplicitContent = false;
|
|
357
357
|
Children.forEach(children, (child) => {
|
|
358
|
-
if (isValidElement(child) && child.type
|
|
358
|
+
if (isValidElement(child) && child.type === CodeBlockContent) hasExplicitContent = true;
|
|
359
359
|
});
|
|
360
360
|
const sxProps = stylex.props(styles.root, sx);
|
|
361
361
|
return /* @__PURE__ */ jsx(CodeBlockContext.Provider, {
|
|
@@ -377,55 +377,57 @@ var CodeBlock = forwardRef(({ code, language = "typescript", highlightedLines, h
|
|
|
377
377
|
]
|
|
378
378
|
})
|
|
379
379
|
});
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
const $ = c(21);
|
|
380
|
+
}
|
|
381
|
+
function CodeBlockHeader(t0) {
|
|
382
|
+
const $ = c(22);
|
|
384
383
|
let children;
|
|
385
384
|
let className;
|
|
386
385
|
let props;
|
|
386
|
+
let ref;
|
|
387
387
|
let sx;
|
|
388
388
|
if ($[0] !== t0) {
|
|
389
|
-
({sx, className, children, ...props} = t0);
|
|
389
|
+
({sx, className, children, ref, ...props} = t0);
|
|
390
390
|
$[0] = t0;
|
|
391
391
|
$[1] = children;
|
|
392
392
|
$[2] = className;
|
|
393
393
|
$[3] = props;
|
|
394
|
-
$[4] =
|
|
394
|
+
$[4] = ref;
|
|
395
|
+
$[5] = sx;
|
|
395
396
|
} else {
|
|
396
397
|
children = $[1];
|
|
397
398
|
className = $[2];
|
|
398
399
|
props = $[3];
|
|
399
|
-
|
|
400
|
+
ref = $[4];
|
|
401
|
+
sx = $[5];
|
|
400
402
|
}
|
|
401
403
|
let T0;
|
|
402
404
|
let sxProps;
|
|
403
405
|
let t1;
|
|
404
406
|
let t2;
|
|
405
407
|
let t3;
|
|
406
|
-
if ($[
|
|
408
|
+
if ($[6] !== className || $[7] !== ref || $[8] !== sx) {
|
|
407
409
|
sxProps = stylex.props(styles.header, sx);
|
|
408
410
|
T0 = Box;
|
|
409
411
|
t1 = ref;
|
|
410
412
|
t2 = "code-block-header";
|
|
411
413
|
t3 = cn(sxProps.className, className);
|
|
412
|
-
$[
|
|
413
|
-
$[
|
|
414
|
-
$[
|
|
415
|
-
$[
|
|
416
|
-
$[
|
|
417
|
-
$[
|
|
418
|
-
$[
|
|
419
|
-
$[
|
|
414
|
+
$[6] = className;
|
|
415
|
+
$[7] = ref;
|
|
416
|
+
$[8] = sx;
|
|
417
|
+
$[9] = T0;
|
|
418
|
+
$[10] = sxProps;
|
|
419
|
+
$[11] = t1;
|
|
420
|
+
$[12] = t2;
|
|
421
|
+
$[13] = t3;
|
|
420
422
|
} else {
|
|
421
|
-
T0 = $[
|
|
422
|
-
sxProps = $[
|
|
423
|
-
t1 = $[
|
|
424
|
-
t2 = $[
|
|
425
|
-
t3 = $[
|
|
423
|
+
T0 = $[9];
|
|
424
|
+
sxProps = $[10];
|
|
425
|
+
t1 = $[11];
|
|
426
|
+
t2 = $[12];
|
|
427
|
+
t3 = $[13];
|
|
426
428
|
}
|
|
427
429
|
let t4;
|
|
428
|
-
if ($[
|
|
430
|
+
if ($[14] !== T0 || $[15] !== children || $[16] !== props || $[17] !== sxProps.style || $[18] !== t1 || $[19] !== t2 || $[20] !== t3) {
|
|
429
431
|
t4 = /* @__PURE__ */ jsx(T0, {
|
|
430
432
|
ref: t1,
|
|
431
433
|
"data-slot": t2,
|
|
@@ -434,75 +436,77 @@ var CodeBlockHeader = forwardRef((t0, ref) => {
|
|
|
434
436
|
...props,
|
|
435
437
|
children
|
|
436
438
|
});
|
|
437
|
-
$[
|
|
438
|
-
$[
|
|
439
|
-
$[
|
|
440
|
-
$[
|
|
441
|
-
$[
|
|
442
|
-
$[
|
|
443
|
-
$[
|
|
444
|
-
$[
|
|
445
|
-
} else t4 = $[
|
|
439
|
+
$[14] = T0;
|
|
440
|
+
$[15] = children;
|
|
441
|
+
$[16] = props;
|
|
442
|
+
$[17] = sxProps.style;
|
|
443
|
+
$[18] = t1;
|
|
444
|
+
$[19] = t2;
|
|
445
|
+
$[20] = t3;
|
|
446
|
+
$[21] = t4;
|
|
447
|
+
} else t4 = $[21];
|
|
446
448
|
return t4;
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
const $ = c(23);
|
|
449
|
+
}
|
|
450
|
+
function CodeBlockTitle(t0) {
|
|
451
|
+
const $ = c(24);
|
|
451
452
|
let children;
|
|
452
453
|
let className;
|
|
453
454
|
let props;
|
|
455
|
+
let ref;
|
|
454
456
|
let sx;
|
|
455
457
|
if ($[0] !== t0) {
|
|
456
|
-
({sx, className, children, ...props} = t0);
|
|
458
|
+
({sx, className, children, ref, ...props} = t0);
|
|
457
459
|
$[0] = t0;
|
|
458
460
|
$[1] = children;
|
|
459
461
|
$[2] = className;
|
|
460
462
|
$[3] = props;
|
|
461
|
-
$[4] =
|
|
463
|
+
$[4] = ref;
|
|
464
|
+
$[5] = sx;
|
|
462
465
|
} else {
|
|
463
466
|
children = $[1];
|
|
464
467
|
className = $[2];
|
|
465
468
|
props = $[3];
|
|
466
|
-
|
|
469
|
+
ref = $[4];
|
|
470
|
+
sx = $[5];
|
|
467
471
|
}
|
|
468
472
|
let T0;
|
|
469
473
|
let sxProps;
|
|
470
474
|
let t1;
|
|
471
475
|
let t2;
|
|
472
476
|
let t3;
|
|
473
|
-
if ($[
|
|
477
|
+
if ($[6] !== className || $[7] !== ref || $[8] !== sx) {
|
|
474
478
|
sxProps = stylex.props(styles.title, sx);
|
|
475
479
|
T0 = Box;
|
|
476
480
|
t1 = ref;
|
|
477
481
|
t2 = "code-block-title";
|
|
478
482
|
t3 = cn(sxProps.className, className);
|
|
479
|
-
$[
|
|
480
|
-
$[
|
|
481
|
-
$[
|
|
482
|
-
$[
|
|
483
|
-
$[
|
|
484
|
-
$[
|
|
485
|
-
$[
|
|
486
|
-
$[
|
|
483
|
+
$[6] = className;
|
|
484
|
+
$[7] = ref;
|
|
485
|
+
$[8] = sx;
|
|
486
|
+
$[9] = T0;
|
|
487
|
+
$[10] = sxProps;
|
|
488
|
+
$[11] = t1;
|
|
489
|
+
$[12] = t2;
|
|
490
|
+
$[13] = t3;
|
|
487
491
|
} else {
|
|
488
|
-
T0 = $[
|
|
489
|
-
sxProps = $[
|
|
490
|
-
t1 = $[
|
|
491
|
-
t2 = $[
|
|
492
|
-
t3 = $[
|
|
492
|
+
T0 = $[9];
|
|
493
|
+
sxProps = $[10];
|
|
494
|
+
t1 = $[11];
|
|
495
|
+
t2 = $[12];
|
|
496
|
+
t3 = $[13];
|
|
493
497
|
}
|
|
494
498
|
let t4;
|
|
495
|
-
if ($[
|
|
499
|
+
if ($[14] !== children) {
|
|
496
500
|
t4 = typeof children === "string" ? /* @__PURE__ */ jsx(Text, {
|
|
497
501
|
size: "sm",
|
|
498
502
|
weight: "medium",
|
|
499
503
|
children
|
|
500
504
|
}) : children;
|
|
501
|
-
$[
|
|
502
|
-
$[
|
|
503
|
-
} else t4 = $[
|
|
505
|
+
$[14] = children;
|
|
506
|
+
$[15] = t4;
|
|
507
|
+
} else t4 = $[15];
|
|
504
508
|
let t5;
|
|
505
|
-
if ($[
|
|
509
|
+
if ($[16] !== T0 || $[17] !== props || $[18] !== sxProps.style || $[19] !== t1 || $[20] !== t2 || $[21] !== t3 || $[22] !== t4) {
|
|
506
510
|
t5 = /* @__PURE__ */ jsx(T0, {
|
|
507
511
|
ref: t1,
|
|
508
512
|
"data-slot": t2,
|
|
@@ -511,36 +515,38 @@ var CodeBlockTitle = forwardRef((t0, ref) => {
|
|
|
511
515
|
...props,
|
|
512
516
|
children: t4
|
|
513
517
|
});
|
|
514
|
-
$[
|
|
515
|
-
$[
|
|
516
|
-
$[
|
|
517
|
-
$[
|
|
518
|
-
$[
|
|
519
|
-
$[
|
|
520
|
-
$[
|
|
521
|
-
$[
|
|
522
|
-
} else t5 = $[
|
|
518
|
+
$[16] = T0;
|
|
519
|
+
$[17] = props;
|
|
520
|
+
$[18] = sxProps.style;
|
|
521
|
+
$[19] = t1;
|
|
522
|
+
$[20] = t2;
|
|
523
|
+
$[21] = t3;
|
|
524
|
+
$[22] = t4;
|
|
525
|
+
$[23] = t5;
|
|
526
|
+
} else t5 = $[23];
|
|
523
527
|
return t5;
|
|
524
|
-
}
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
const $ = c(21);
|
|
528
|
+
}
|
|
529
|
+
function CodeBlockLanguage(t0) {
|
|
530
|
+
const $ = c(22);
|
|
528
531
|
let children;
|
|
529
532
|
let className;
|
|
530
533
|
let props;
|
|
534
|
+
let ref;
|
|
531
535
|
let sx;
|
|
532
536
|
if ($[0] !== t0) {
|
|
533
|
-
({sx, className, children, ...props} = t0);
|
|
537
|
+
({sx, className, children, ref, ...props} = t0);
|
|
534
538
|
$[0] = t0;
|
|
535
539
|
$[1] = children;
|
|
536
540
|
$[2] = className;
|
|
537
541
|
$[3] = props;
|
|
538
|
-
$[4] =
|
|
542
|
+
$[4] = ref;
|
|
543
|
+
$[5] = sx;
|
|
539
544
|
} else {
|
|
540
545
|
children = $[1];
|
|
541
546
|
className = $[2];
|
|
542
547
|
props = $[3];
|
|
543
|
-
|
|
548
|
+
ref = $[4];
|
|
549
|
+
sx = $[5];
|
|
544
550
|
}
|
|
545
551
|
const { language } = useCodeBlock();
|
|
546
552
|
let T0;
|
|
@@ -548,30 +554,30 @@ var CodeBlockLanguage = forwardRef((t0, ref) => {
|
|
|
548
554
|
let t1;
|
|
549
555
|
let t2;
|
|
550
556
|
let t3;
|
|
551
|
-
if ($[
|
|
557
|
+
if ($[6] !== className || $[7] !== ref || $[8] !== sx) {
|
|
552
558
|
sxProps = stylex.props(styles.languageBadge, sx);
|
|
553
559
|
T0 = Box;
|
|
554
560
|
t1 = ref;
|
|
555
561
|
t2 = "code-block-language";
|
|
556
562
|
t3 = cn(sxProps.className, className);
|
|
557
|
-
$[
|
|
558
|
-
$[
|
|
559
|
-
$[
|
|
560
|
-
$[
|
|
561
|
-
$[
|
|
562
|
-
$[
|
|
563
|
-
$[
|
|
564
|
-
$[
|
|
563
|
+
$[6] = className;
|
|
564
|
+
$[7] = ref;
|
|
565
|
+
$[8] = sx;
|
|
566
|
+
$[9] = T0;
|
|
567
|
+
$[10] = sxProps;
|
|
568
|
+
$[11] = t1;
|
|
569
|
+
$[12] = t2;
|
|
570
|
+
$[13] = t3;
|
|
565
571
|
} else {
|
|
566
|
-
T0 = $[
|
|
567
|
-
sxProps = $[
|
|
568
|
-
t1 = $[
|
|
569
|
-
t2 = $[
|
|
570
|
-
t3 = $[
|
|
572
|
+
T0 = $[9];
|
|
573
|
+
sxProps = $[10];
|
|
574
|
+
t1 = $[11];
|
|
575
|
+
t2 = $[12];
|
|
576
|
+
t3 = $[13];
|
|
571
577
|
}
|
|
572
578
|
const t4 = children || language;
|
|
573
579
|
let t5;
|
|
574
|
-
if ($[
|
|
580
|
+
if ($[14] !== T0 || $[15] !== props || $[16] !== sxProps.style || $[17] !== t1 || $[18] !== t2 || $[19] !== t3 || $[20] !== t4) {
|
|
575
581
|
t5 = /* @__PURE__ */ jsx(T0, {
|
|
576
582
|
ref: t1,
|
|
577
583
|
"data-slot": t2,
|
|
@@ -580,19 +586,18 @@ var CodeBlockLanguage = forwardRef((t0, ref) => {
|
|
|
580
586
|
...props,
|
|
581
587
|
children: t4
|
|
582
588
|
});
|
|
583
|
-
$[
|
|
584
|
-
$[
|
|
585
|
-
$[
|
|
586
|
-
$[
|
|
587
|
-
$[
|
|
588
|
-
$[
|
|
589
|
-
$[
|
|
590
|
-
$[
|
|
591
|
-
} else t5 = $[
|
|
589
|
+
$[14] = T0;
|
|
590
|
+
$[15] = props;
|
|
591
|
+
$[16] = sxProps.style;
|
|
592
|
+
$[17] = t1;
|
|
593
|
+
$[18] = t2;
|
|
594
|
+
$[19] = t3;
|
|
595
|
+
$[20] = t4;
|
|
596
|
+
$[21] = t5;
|
|
597
|
+
} else t5 = $[21];
|
|
592
598
|
return t5;
|
|
593
|
-
}
|
|
594
|
-
|
|
595
|
-
var CodeBlockCopyButton = forwardRef(({ variant = "ghost", size = "icon-sm", copyLabel = "Copy code", copiedLabel = "Copied!", children, ...props }, ref) => {
|
|
599
|
+
}
|
|
600
|
+
function CodeBlockCopyButton({ variant = "ghost", size = "icon-sm", copyLabel = "Copy code", copiedLabel = "Copied!", children, ref, ...props }) {
|
|
596
601
|
const { isCopied, copy } = useCodeBlock();
|
|
597
602
|
return /* @__PURE__ */ jsx(Button, {
|
|
598
603
|
ref,
|
|
@@ -608,9 +613,8 @@ var CodeBlockCopyButton = forwardRef(({ variant = "ghost", size = "icon-sm", cop
|
|
|
608
613
|
color: "var(--color-success, #16a34a)"
|
|
609
614
|
}) : /* @__PURE__ */ jsx(Copy, { size: 14 }))
|
|
610
615
|
});
|
|
611
|
-
}
|
|
612
|
-
|
|
613
|
-
var CodeBlockWrapButton = forwardRef(({ variant = "ghost", size = "icon-sm", children, ...props }, ref) => {
|
|
616
|
+
}
|
|
617
|
+
function CodeBlockWrapButton({ variant = "ghost", size = "icon-sm", children, ref, ...props }) {
|
|
614
618
|
const { wrap, toggleWrap } = useCodeBlock();
|
|
615
619
|
return /* @__PURE__ */ jsx(Button, {
|
|
616
620
|
ref,
|
|
@@ -623,9 +627,8 @@ var CodeBlockWrapButton = forwardRef(({ variant = "ghost", size = "icon-sm", chi
|
|
|
623
627
|
...props,
|
|
624
628
|
children: children || /* @__PURE__ */ jsx(WrapText, { size: 14 })
|
|
625
629
|
});
|
|
626
|
-
}
|
|
627
|
-
|
|
628
|
-
var CodeBlockExpandButton = forwardRef(({ variant = "ghost", size = "sm", expandLabel = "Show more lines", collapseLabel = "Show less", children, ...props }, ref) => {
|
|
630
|
+
}
|
|
631
|
+
function CodeBlockExpandButton({ variant = "ghost", size = "sm", expandLabel = "Show more lines", collapseLabel = "Show less", children, ref, ...props }) {
|
|
629
632
|
const { isExpanded, toggleExpand } = useCodeBlock();
|
|
630
633
|
return /* @__PURE__ */ jsx(Box, {
|
|
631
634
|
sx: styles.expandBar,
|
|
@@ -646,74 +649,76 @@ var CodeBlockExpandButton = forwardRef(({ variant = "ghost", size = "sm", expand
|
|
|
646
649
|
})
|
|
647
650
|
})
|
|
648
651
|
});
|
|
649
|
-
}
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
const $ = c(45);
|
|
652
|
+
}
|
|
653
|
+
function CodeBlockContent(t0) {
|
|
654
|
+
const $ = c(46);
|
|
653
655
|
let className;
|
|
654
656
|
let props;
|
|
657
|
+
let ref;
|
|
655
658
|
let sx;
|
|
656
659
|
if ($[0] !== t0) {
|
|
657
|
-
({sx, className, ...props} = t0);
|
|
660
|
+
({sx, className, ref, ...props} = t0);
|
|
658
661
|
$[0] = t0;
|
|
659
662
|
$[1] = className;
|
|
660
663
|
$[2] = props;
|
|
661
|
-
$[3] =
|
|
664
|
+
$[3] = ref;
|
|
665
|
+
$[4] = sx;
|
|
662
666
|
} else {
|
|
663
667
|
className = $[1];
|
|
664
668
|
props = $[2];
|
|
665
|
-
|
|
669
|
+
ref = $[3];
|
|
670
|
+
sx = $[4];
|
|
666
671
|
}
|
|
667
672
|
const { code, wrap, isExpanded, maxLines, isCollapsible, showLineNumbers, startLine, highlightedLinesSet, highlightWords, diff, disableHighlighting } = useCodeBlock();
|
|
668
673
|
let t1;
|
|
669
|
-
if ($[
|
|
674
|
+
if ($[5] !== code) {
|
|
670
675
|
t1 = code.split("\n");
|
|
671
|
-
$[
|
|
672
|
-
$[
|
|
673
|
-
} else t1 = $[
|
|
676
|
+
$[5] = code;
|
|
677
|
+
$[6] = t1;
|
|
678
|
+
} else t1 = $[6];
|
|
674
679
|
const rawLines = t1;
|
|
675
680
|
let t2;
|
|
676
|
-
if ($[
|
|
681
|
+
if ($[7] !== isCollapsible || $[8] !== isExpanded || $[9] !== maxLines || $[10] !== rawLines) {
|
|
677
682
|
t2 = isCollapsible && !isExpanded ? rawLines.slice(0, maxLines) : rawLines;
|
|
678
|
-
$[
|
|
679
|
-
$[
|
|
680
|
-
$[
|
|
681
|
-
$[
|
|
682
|
-
$[
|
|
683
|
-
} else t2 = $[
|
|
683
|
+
$[7] = isCollapsible;
|
|
684
|
+
$[8] = isExpanded;
|
|
685
|
+
$[9] = maxLines;
|
|
686
|
+
$[10] = rawLines;
|
|
687
|
+
$[11] = t2;
|
|
688
|
+
} else t2 = $[11];
|
|
684
689
|
const displayLines = t2;
|
|
685
690
|
let T0;
|
|
686
691
|
let sxProps;
|
|
687
692
|
let t3;
|
|
688
693
|
let t4;
|
|
689
694
|
let t5;
|
|
690
|
-
if ($[
|
|
695
|
+
if ($[12] !== className || $[13] !== ref || $[14] !== sx || $[15] !== wrap) {
|
|
691
696
|
sxProps = stylex.props(styles.content, wrap && styles.contentWrapped, sx);
|
|
692
697
|
T0 = Box;
|
|
693
698
|
t3 = ref;
|
|
694
699
|
t4 = "code-block-content";
|
|
695
700
|
t5 = cn(sxProps.className, className);
|
|
696
|
-
$[
|
|
697
|
-
$[
|
|
698
|
-
$[
|
|
699
|
-
$[
|
|
700
|
-
$[
|
|
701
|
-
$[
|
|
702
|
-
$[
|
|
703
|
-
$[
|
|
704
|
-
$[
|
|
701
|
+
$[12] = className;
|
|
702
|
+
$[13] = ref;
|
|
703
|
+
$[14] = sx;
|
|
704
|
+
$[15] = wrap;
|
|
705
|
+
$[16] = T0;
|
|
706
|
+
$[17] = sxProps;
|
|
707
|
+
$[18] = t3;
|
|
708
|
+
$[19] = t4;
|
|
709
|
+
$[20] = t5;
|
|
705
710
|
} else {
|
|
706
|
-
T0 = $[
|
|
707
|
-
sxProps = $[
|
|
708
|
-
t3 = $[
|
|
709
|
-
t4 = $[
|
|
710
|
-
t5 = $[
|
|
711
|
+
T0 = $[16];
|
|
712
|
+
sxProps = $[17];
|
|
713
|
+
t3 = $[18];
|
|
714
|
+
t4 = $[19];
|
|
715
|
+
t5 = $[20];
|
|
711
716
|
}
|
|
712
717
|
const t6 = sxProps.style;
|
|
713
718
|
let t7;
|
|
714
|
-
if ($[
|
|
719
|
+
if ($[21] !== diff || $[22] !== disableHighlighting || $[23] !== displayLines || $[24] !== highlightWords || $[25] !== highlightedLinesSet || $[26] !== showLineNumbers || $[27] !== startLine) {
|
|
715
720
|
let t8;
|
|
716
|
-
if ($[
|
|
721
|
+
if ($[29] !== diff || $[30] !== disableHighlighting || $[31] !== highlightWords || $[32] !== highlightedLinesSet || $[33] !== showLineNumbers || $[34] !== startLine) {
|
|
717
722
|
t8 = (lineText, idx) => {
|
|
718
723
|
const lineNum = startLine + idx;
|
|
719
724
|
const isHighlighted = highlightedLinesSet.has(lineNum);
|
|
@@ -756,36 +761,36 @@ var CodeBlockContent = forwardRef((t0, ref) => {
|
|
|
756
761
|
]
|
|
757
762
|
}, idx);
|
|
758
763
|
};
|
|
759
|
-
$[
|
|
760
|
-
$[
|
|
761
|
-
$[
|
|
762
|
-
$[
|
|
763
|
-
$[
|
|
764
|
-
$[
|
|
765
|
-
$[
|
|
766
|
-
} else t8 = $[
|
|
764
|
+
$[29] = diff;
|
|
765
|
+
$[30] = disableHighlighting;
|
|
766
|
+
$[31] = highlightWords;
|
|
767
|
+
$[32] = highlightedLinesSet;
|
|
768
|
+
$[33] = showLineNumbers;
|
|
769
|
+
$[34] = startLine;
|
|
770
|
+
$[35] = t8;
|
|
771
|
+
} else t8 = $[35];
|
|
767
772
|
t7 = displayLines.map(t8);
|
|
768
|
-
$[
|
|
769
|
-
$[
|
|
770
|
-
$[
|
|
771
|
-
$[
|
|
772
|
-
$[
|
|
773
|
-
$[
|
|
774
|
-
$[
|
|
775
|
-
$[
|
|
776
|
-
} else t7 = $[
|
|
773
|
+
$[21] = diff;
|
|
774
|
+
$[22] = disableHighlighting;
|
|
775
|
+
$[23] = displayLines;
|
|
776
|
+
$[24] = highlightWords;
|
|
777
|
+
$[25] = highlightedLinesSet;
|
|
778
|
+
$[26] = showLineNumbers;
|
|
779
|
+
$[27] = startLine;
|
|
780
|
+
$[28] = t7;
|
|
781
|
+
} else t7 = $[28];
|
|
777
782
|
let t8;
|
|
778
|
-
if ($[
|
|
783
|
+
if ($[36] !== t7) {
|
|
779
784
|
t8 = /* @__PURE__ */ jsx(Box, {
|
|
780
785
|
as: "pre",
|
|
781
786
|
sx: styles.codeSurface,
|
|
782
787
|
children: t7
|
|
783
788
|
});
|
|
784
|
-
$[
|
|
785
|
-
$[
|
|
786
|
-
} else t8 = $[
|
|
789
|
+
$[36] = t7;
|
|
790
|
+
$[37] = t8;
|
|
791
|
+
} else t8 = $[37];
|
|
787
792
|
let t9;
|
|
788
|
-
if ($[
|
|
793
|
+
if ($[38] !== T0 || $[39] !== props || $[40] !== sxProps.style || $[41] !== t3 || $[42] !== t4 || $[43] !== t5 || $[44] !== t8) {
|
|
789
794
|
t9 = /* @__PURE__ */ jsx(T0, {
|
|
790
795
|
ref: t3,
|
|
791
796
|
"data-slot": t4,
|
|
@@ -794,16 +799,15 @@ var CodeBlockContent = forwardRef((t0, ref) => {
|
|
|
794
799
|
...props,
|
|
795
800
|
children: t8
|
|
796
801
|
});
|
|
797
|
-
$[
|
|
798
|
-
$[
|
|
799
|
-
$[
|
|
800
|
-
$[
|
|
801
|
-
$[
|
|
802
|
-
$[
|
|
803
|
-
$[
|
|
804
|
-
$[
|
|
805
|
-
} else t9 = $[
|
|
802
|
+
$[38] = T0;
|
|
803
|
+
$[39] = props;
|
|
804
|
+
$[40] = sxProps.style;
|
|
805
|
+
$[41] = t3;
|
|
806
|
+
$[42] = t4;
|
|
807
|
+
$[43] = t5;
|
|
808
|
+
$[44] = t8;
|
|
809
|
+
$[45] = t9;
|
|
810
|
+
} else t9 = $[45];
|
|
806
811
|
return t9;
|
|
807
|
-
}
|
|
808
|
-
CodeBlockContent.displayName = "CodeBlockContent";
|
|
812
|
+
}
|
|
809
813
|
export { CodeBlock, CodeBlockContent, CodeBlockCopyButton, CodeBlockExpandButton, CodeBlockHeader, CodeBlockLanguage, CodeBlockTitle, CodeBlockWrapButton, useCodeBlock };
|
package/dist/ui/collapsible.cjs
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use client";
|
|
2
1
|
const require_index = require("../node_modules/.pnpm/@radix-ui_react-collapsible@1.1.20_@types_react-dom@19.3.0_@types_react@19.3.0__@types__75f9b408b6aa016f78c6c390e6f84227/node_modules/@radix-ui/react-collapsible/dist/index.cjs");
|
|
3
2
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
4
3
|
let react_compiler_runtime = require("react/compiler-runtime");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collapsible.d.ts","sourceRoot":"","sources":["../../src/ui/collapsible.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"collapsible.d.ts","sourceRoot":"","sources":["../../src/ui/collapsible.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,IAAI,sCAAsC,EAC5D,kBAAkB,IAAI,sCAAsC,EAC5D,IAAI,IAAI,wBAAwB,EACjC,MAAM,6BAA6B,CAAC;AAErC,iBAAS,WAAW,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,wBAAwB,CAAC,+BAEvF;AAED,iBAAS,kBAAkB,CAAC,EAC1B,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,sCAAsC,CAAC,+BAErE;AAED,iBAAS,kBAAkB,CAAC,EAC1B,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,sCAAsC,CAAC,+BAErE;AAED,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,CAAC"}
|
package/dist/ui/collapsible.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use client";
|
|
2
1
|
import { CollapsibleContent as CollapsibleContent$1, CollapsibleTrigger as CollapsibleTrigger$1, Root } from "../node_modules/.pnpm/@radix-ui_react-collapsible@1.1.20_@types_react-dom@19.3.0_@types_react@19.3.0__@types__75f9b408b6aa016f78c6c390e6f84227/node_modules/@radix-ui/react-collapsible/dist/index.js";
|
|
3
2
|
import { jsx } from "react/jsx-runtime";
|
|
4
3
|
import { c } from "react/compiler-runtime";
|
|
@@ -37,7 +37,7 @@ var styles = {
|
|
|
37
37
|
$$css: true
|
|
38
38
|
}
|
|
39
39
|
};
|
|
40
|
-
|
|
40
|
+
function CompareSlider({ itemOne, itemTwo, value: controlledValue, defaultValue = 50, onValueChange, orientation = "horizontal", showLabels = false, labelOne = "Before", labelTwo = "After", disabled = false, sx, className, "aria-label": ariaLabel = "Comparison slider", ref, ...props }) {
|
|
41
41
|
const isControlled = controlledValue !== void 0;
|
|
42
42
|
const [internalValue, setInternalValue] = (0, react.useState)(defaultValue);
|
|
43
43
|
const [isDragging, setIsDragging] = (0, react.useState)(false);
|
|
@@ -165,6 +165,5 @@ var CompareSlider = (0, react.forwardRef)(({ itemOne, itemTwo, value: controlled
|
|
|
165
165
|
})
|
|
166
166
|
]
|
|
167
167
|
});
|
|
168
|
-
}
|
|
169
|
-
CompareSlider.displayName = "CompareSlider";
|
|
168
|
+
}
|
|
170
169
|
exports.CompareSlider = CompareSlider;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type HTMLAttributes, type ReactNode } from 'react';
|
|
1
|
+
import { type HTMLAttributes, type ReactNode, type Ref } from 'react';
|
|
2
2
|
import * as stylex from '@stylexjs/stylex';
|
|
3
3
|
export type CompareSliderOrientation = 'horizontal' | 'vertical';
|
|
4
4
|
export interface CompareSliderProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
@@ -13,6 +13,7 @@ export interface CompareSliderProps extends Omit<HTMLAttributes<HTMLDivElement>,
|
|
|
13
13
|
labelTwo?: ReactNode;
|
|
14
14
|
disabled?: boolean;
|
|
15
15
|
sx?: stylex.StyleXStyles;
|
|
16
|
+
ref?: Ref<HTMLDivElement>;
|
|
16
17
|
}
|
|
17
|
-
export declare
|
|
18
|
+
export declare function CompareSlider({ itemOne, itemTwo, value: controlledValue, defaultValue, onValueChange, orientation, showLabels, labelOne, labelTwo, disabled, sx, className, 'aria-label': ariaLabel, ref, ...props }: CompareSliderProps): import("react").JSX.Element;
|
|
18
19
|
//# sourceMappingURL=compare-slider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compare-slider.d.ts","sourceRoot":"","sources":["../../src/ui/compare-slider.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"compare-slider.d.ts","sourceRoot":"","sources":["../../src/ui/compare-slider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,cAAc,EAGnB,KAAK,SAAS,EACd,KAAK,GAAG,EACT,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,MAAM,MAAM,kBAAkB,CAAC;AAiG3C,MAAM,MAAM,wBAAwB,GAAG,YAAY,GAAG,UAAU,CAAC;AAEjE,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC;IAC1F,OAAO,EAAE,SAAS,CAAC;IACnB,OAAO,EAAE,SAAS,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,WAAW,CAAC,EAAE,wBAAwB,CAAC;IACvC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC,YAAY,CAAC;IACzB,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;CAC3B;AAED,wBAAgB,aAAa,CAAC,EAC5B,OAAO,EACP,OAAO,EACP,KAAK,EAAE,eAAe,EACtB,YAAiB,EACjB,aAAa,EACb,WAA0B,EAC1B,UAAkB,EAClB,QAAmB,EACnB,QAAkB,EAClB,QAAgB,EAChB,EAAE,EACF,SAAS,EACT,YAAY,EAAE,SAA+B,EAC7C,GAAG,EACH,GAAG,KAAK,EACT,EAAE,kBAAkB,+BAwJpB"}
|
|
@@ -2,7 +2,7 @@ import { Badge } from "./badge.js";
|
|
|
2
2
|
import * as stylex from "@stylexjs/stylex";
|
|
3
3
|
import { ChevronsLeftRight } from "lucide-react";
|
|
4
4
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
import {
|
|
5
|
+
import { useCallback, useRef, useState } from "react";
|
|
6
6
|
// src/ui/compare-slider.tsx
|
|
7
7
|
var styles = {
|
|
8
8
|
root: {
|
|
@@ -35,7 +35,7 @@ var styles = {
|
|
|
35
35
|
$$css: true
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
|
-
|
|
38
|
+
function CompareSlider({ itemOne, itemTwo, value: controlledValue, defaultValue = 50, onValueChange, orientation = "horizontal", showLabels = false, labelOne = "Before", labelTwo = "After", disabled = false, sx, className, "aria-label": ariaLabel = "Comparison slider", ref, ...props }) {
|
|
39
39
|
const isControlled = controlledValue !== void 0;
|
|
40
40
|
const [internalValue, setInternalValue] = useState(defaultValue);
|
|
41
41
|
const [isDragging, setIsDragging] = useState(false);
|
|
@@ -163,6 +163,5 @@ var CompareSlider = forwardRef(({ itemOne, itemTwo, value: controlledValue, defa
|
|
|
163
163
|
})
|
|
164
164
|
]
|
|
165
165
|
});
|
|
166
|
-
}
|
|
167
|
-
CompareSlider.displayName = "CompareSlider";
|
|
166
|
+
}
|
|
168
167
|
export { CompareSlider };
|
package/dist/ui/context-menu.cjs
CHANGED