@parrot-co/parrot-ui 0.1.7 → 0.1.8

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/main.js CHANGED
@@ -1,9 +1,11 @@
1
1
  var $8zHUo$reactjsxruntime = require("react/jsx-runtime");
2
2
  var $8zHUo$react = require("react");
3
3
  var $8zHUo$reactaria = require("react-aria");
4
- var $8zHUo$reacticonshi = require("react-icons/hi");
5
4
  var $8zHUo$reactstately = require("react-stately");
5
+ var $8zHUo$reacticonshi = require("react-icons/hi");
6
6
  var $8zHUo$internationalizeddate = require("@internationalized/date");
7
+ var $8zHUo$reactstatelycolor = require("@react-stately/color");
8
+ var $8zHUo$reactariacolor = require("@react-aria/color");
7
9
 
8
10
 
9
11
  function $parcel$export(e, n, v, s) {
@@ -33,8 +35,10 @@ $parcel$export(module.exports, "Radio", () => $e158c5cf7e190200$export$d7b12c410
33
35
  $parcel$export(module.exports, "RadioGroup", () => $e158c5cf7e190200$export$a98f0dcb43a68a25);
34
36
  $parcel$export(module.exports, "RadioCard", () => $71fcf48f7e2e9427$export$f8afaea2e9656b91);
35
37
  $parcel$export(module.exports, "Select", () => $e37831ebf64d8e7d$export$ef9b1a59e592288f);
36
- $parcel$export(module.exports, "Option", () => $dcfc4542aa84c062$export$36d18380658d5d20);
37
- $parcel$export(module.exports, "Section", () => $dcfc4542aa84c062$export$6e2c8f0811a474ce);
38
+ $parcel$export(module.exports, "Option", () => $86685406b084d356$export$5b7f4051a57920d0);
39
+ $parcel$export(module.exports, "Section", () => $86685406b084d356$export$ef146090a6472d9e);
40
+ $parcel$export(module.exports, "ListBoxItem", () => $86685406b084d356$export$5b7f4051a57920d0);
41
+ $parcel$export(module.exports, "ListBoxSection", () => $86685406b084d356$export$ef146090a6472d9e);
38
42
  $parcel$export(module.exports, "DateInput", () => $e0a58c83d4c36e4e$export$7edc06cf1783b30f);
39
43
  $parcel$export(module.exports, "Calendar", () => $284d30e280d297d3$export$e1aef45b828286de);
40
44
  $parcel$export(module.exports, "Avatar", () => $2fdd5844efb4cca1$export$e2255cf6045e8d47);
@@ -44,7 +48,7 @@ $parcel$export(module.exports, "Progress", () => $e04b6210b7063851$export$b25a30
44
48
  $parcel$export(module.exports, "Loader", () => $a28e128499dd0b02$export$3b0d6d7590275603);
45
49
  $parcel$export(module.exports, "Tag", () => $cfadb0728cf907ff$export$3288d34c523a1192);
46
50
  $parcel$export(module.exports, "Switch", () => $c5c6f63b49c9056a$export$b5d5cf8927ab7262);
47
- $parcel$export(module.exports, "ColorTray", () => $de38c06a5c24ee45$export$dbada5ace43900dd);
51
+ $parcel$export(module.exports, "Slider", () => $a945a7e4eb75da9e$export$472062a354075cee);
48
52
  $parcel$export(module.exports, "IconTray", () => $43de550aebbf1320$export$50e381fea3a45244);
49
53
  $parcel$export(module.exports, "Sticker", () => $fedef2bba4e6812a$export$ea98c603db73aee7);
50
54
  $parcel$export(module.exports, "Tabs", () => $6c55ad3905040a74$export$b2539bed5023c21c);
@@ -62,6 +66,11 @@ $parcel$export(module.exports, "TagGroup", () => $d26053f02b9f370b$export$67ea30
62
66
  $parcel$export(module.exports, "TagGroupItem", () => $d26053f02b9f370b$export$a79147a60006308c);
63
67
  $parcel$export(module.exports, "ThemeProvider", () => $f2fd0cbe11b7f0dd$export$d8964aec282183a3);
64
68
  $parcel$export(module.exports, "useTheme", () => $f2fd0cbe11b7f0dd$export$93d4e7f90805808f);
69
+ $parcel$export(module.exports, "ColorArea", () => $ce7da1514c7ab67c$export$b2103f68a961418e);
70
+ $parcel$export(module.exports, "ColorField", () => $ca14d49a10ed918f$export$b865d4358897bb17);
71
+ $parcel$export(module.exports, "ColorPicker", () => $b4c448f742efa2a7$export$9feb1bc2e5f1ccb3);
72
+ $parcel$export(module.exports, "ColorSlider", () => $7796dcb4fe09bf12$export$44fd664bcca5b6fb);
73
+ $parcel$export(module.exports, "ColorSwatchPicker", () => $799f02b9b0e744b9$export$b46792416e3d8515);
65
74
 
66
75
 
67
76
  function $d99c85a751d7ffbd$export$7e4aa119212bc614(value) {
@@ -165,6 +174,7 @@ const $eb8f27c3596a0e6b$export$e71c4d32a2263218 = /*#__PURE__*/ $8zHUo$react.for
165
174
 
166
175
 
167
176
 
177
+
168
178
  const $8ddcc69383feb36a$export$36308cce1deef340 = [
169
179
  "tomato",
170
180
  "red",
@@ -206,6 +216,9 @@ function $8ddcc69383feb36a$var$ps(styles) {
206
216
  }
207
217
 
208
218
 
219
+ function $4af7da5c7dd0b9c2$export$1c4d39b152e0f791(deprecatedProp, newProp, value) {
220
+ if (!(0, $d99c85a751d7ffbd$export$ae45edb09e2fe7c2)(value)) console.warn(`${deprecatedProp} is deprecated and will be removed in a future release. ${newProp ? `Please use ${newProp} instead.` : ""}`);
221
+ }
209
222
  function $4af7da5c7dd0b9c2$export$d41d9ab3de2def3d(text) {
210
223
  const str = String(text);
211
224
  let hash = 0;
@@ -302,6 +315,9 @@ const $c3a954a7c0cb5109$export$f51f4c4ede09e011 = /*#__PURE__*/ $8zHUo$react.for
302
315
 
303
316
 
304
317
 
318
+
319
+
320
+
305
321
  const $88fa102d91bf323a$export$f5a10939c0132d55 = (props, ref)=>{
306
322
  const { textCase: textCase, size: size = "sm", weight: weight, color: color = "gray", variant: variant = "default", highlight: highlight, align: align, lineHeight: lineHeight, underline: underline, italic: italic, as: Comp = "span", className: className, ...rest } = props;
307
323
  return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)(Comp, {
@@ -328,6 +344,7 @@ const $88fa102d91bf323a$export$5f1af8db9871e1d6 = /*#__PURE__*/ $8zHUo$react.for
328
344
 
329
345
  const $5a5b41d120374960$var$InputLabel = /*#__PURE__*/ (0, ($parcel$interopDefault($8zHUo$react))).forwardRef(({ children: children, className: className, color: color, ...props }, ref)=>{
330
346
  return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $88fa102d91bf323a$export$5f1af8db9871e1d6), {
347
+ ref: ref,
331
348
  size: "sm",
332
349
  color: color || "gray",
333
350
  variant: "light",
@@ -378,7 +395,7 @@ const $eae337549f49a5a2$var$SpaceContext = /*#__PURE__*/ $8zHUo$react.createCont
378
395
  classNames: {},
379
396
  compactItemWrapperAdjust: ""
380
397
  });
381
- function $eae337549f49a5a2$var$SpaceComponent({ children: children, compact: compact, gap: gap, className: className, ...props }, ref) {
398
+ function $eae337549f49a5a2$export$eef1e68107c58ef2({ children: children, compact: compact, gap: gap, className: className, classNames: classNames, style: style, styles: styles, ...props }) {
382
399
  const childrenCount = $8zHUo$react.Children.count(children);
383
400
  const nodes = $8zHUo$react.useMemo(()=>{
384
401
  return $8zHUo$react.Children.map(children, (child, index)=>{
@@ -400,20 +417,22 @@ function $eae337549f49a5a2$var$SpaceComponent({ children: children, compact: com
400
417
  }, [
401
418
  children
402
419
  ]);
403
- const realGap = compact ? "none" : gap;
404
420
  return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
405
421
  "data-compact": compact,
422
+ style: {
423
+ ...style,
424
+ ...styles?.wrapper
425
+ },
406
426
  className: (0, $62f1c614c0962470$export$a274e22fb40f762e)([
407
427
  className,
408
- "p-space"
428
+ "p-space",
429
+ classNames?.wrapper
409
430
  ]),
410
- ref: ref,
411
- gap: realGap,
431
+ gap: gap ?? "none",
412
432
  ...props,
413
433
  children: nodes
414
434
  });
415
435
  }
416
- const $eae337549f49a5a2$export$eef1e68107c58ef2 = /*#__PURE__*/ $8zHUo$react.forwardRef($eae337549f49a5a2$var$SpaceComponent);
417
436
  function $eae337549f49a5a2$export$450c36e0b0e62ccd() {
418
437
  return $8zHUo$react.useContext($eae337549f49a5a2$var$SpaceContext);
419
438
  }
@@ -450,37 +469,35 @@ function $f2fd0cbe11b7f0dd$export$93d4e7f90805808f(options) {
450
469
 
451
470
 
452
471
 
453
- const $d9ffc65197682590$export$f5b8910cec6cf069 = /*#__PURE__*/ (0, ($parcel$interopDefault($8zHUo$react))).forwardRef(({ label: label, error: error, color: color = "gray", appearance: appearance = "outline", size: size = "sm", append: append, prepend: prepend, description: description, isDisabled: isDisabled, validationStatus: validationStatus, className: className, inputRef: inputRef, radius: radius, style: style, ...props }, ref)=>{
472
+ function $ec2376a5dd0d13e6$export$a455218a85c89869({ label: label, description: description, error: error, color: color = "gray", radius: radius, size: size = "md", className: className, classNames: classNames, style: style, styles: styles, prepend: prepend, append: append, appearance: appearance = "outline", validationStatus: validationStatus, labelProps: labelProps, errorMessageProps: errorMessageProps, descriptionProps: descriptionProps, children: children, replaceDefaultControlWrapper: replaceDefaultControlWrapper, isDisabled: isDisabled, wrapperRef: wrapperRef, ...props }) {
454
473
  const space = (0, $eae337549f49a5a2$export$450c36e0b0e62ccd)();
455
- const internalInputRef = (0, ($parcel$interopDefault($8zHUo$react))).useRef(null);
456
- const { labelProps: labelProps, inputProps: inputProps, errorMessageProps: errorMessageProps, descriptionProps: descriptionProps } = (0, $8zHUo$reactaria.useTextField)({
457
- ...props,
458
- inputElementType: "input",
459
- label: label,
460
- description: description,
461
- isDisabled: isDisabled
462
- }, internalInputRef);
463
474
  const theme = (0, $f2fd0cbe11b7f0dd$export$93d4e7f90805808f)();
464
475
  return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
476
+ ref: wrapperRef,
477
+ ...props,
465
478
  "data-color": color,
466
479
  "data-radius": radius ?? theme?.radius ?? "lg",
467
480
  "data-size": size,
468
- className: (0, $62f1c614c0962470$export$a274e22fb40f762e)("p-input-group", space.compactItemWrapperAdjust, className),
481
+ className: (0, $62f1c614c0962470$export$a274e22fb40f762e)("p-input-group", space.compactItemWrapperAdjust, className, classNames?.wrapper),
469
482
  stack: true,
470
- ref: ref,
471
483
  gap: "3xs",
472
- stretchX: true,
473
- style: style,
484
+ style: {
485
+ ...style,
486
+ ...styles?.wrapper
487
+ },
474
488
  children: [
475
489
  label && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $5a5b41d120374960$export$2e2bcd8739ae039), {
490
+ style: styles?.label,
491
+ className: classNames?.label,
476
492
  color: color,
477
493
  ...labelProps,
478
494
  children: label
479
495
  }),
480
- /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
496
+ !replaceDefaultControlWrapper && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
481
497
  className: (0, $62f1c614c0962470$export$a274e22fb40f762e)(space.classNames, "p-input-control"),
482
498
  "data-has-error": !!error,
483
499
  "data-appearance": appearance,
500
+ "data-disabled": isDisabled,
484
501
  stretchX: true,
485
502
  inline: true,
486
503
  position: "relative",
@@ -489,19 +506,14 @@ const $d9ffc65197682590$export$f5b8910cec6cf069 = /*#__PURE__*/ (0, ($parcel$int
489
506
  className: "add-on add-on-left",
490
507
  children: prepend
491
508
  }),
492
- /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("input", {
493
- ref: (0, $62f1c614c0962470$export$c9058316764c140e)(internalInputRef, inputRef),
494
- "data-has-left-addon": !!prepend,
495
- "data-has-right-addon": !!append,
496
- className: (0, $62f1c614c0962470$export$a274e22fb40f762e)("p-text-input-el"),
497
- ...inputProps
498
- }),
509
+ children,
499
510
  append && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
500
511
  className: "add-on add-on-right",
501
512
  children: append
502
513
  })
503
514
  ]
504
515
  }),
516
+ replaceDefaultControlWrapper && children,
505
517
  error && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $4b54f76a59afa8a5$export$2e2bcd8739ae039), {
506
518
  validationStatus: validationStatus,
507
519
  ...errorMessageProps,
@@ -512,13 +524,40 @@ const $d9ffc65197682590$export$f5b8910cec6cf069 = /*#__PURE__*/ (0, ($parcel$int
512
524
  variant: "light",
513
525
  color: "gray",
514
526
  size: "sm",
515
- lineHeight: "base",
527
+ lineHeight: "short",
516
528
  ...descriptionProps,
517
529
  children: description
518
530
  })
519
531
  ]
520
532
  });
521
- });
533
+ }
534
+ $ec2376a5dd0d13e6$export$a455218a85c89869.displayName = "Field";
535
+
536
+
537
+ function $d9ffc65197682590$export$f5b8910cec6cf069({ className: className, classNames: classNames, style: style, styles: styles, inputRef: inputRef, ...props }) {
538
+ const internalInputRef = (0, ($parcel$interopDefault($8zHUo$react))).useRef(null);
539
+ const { labelProps: labelProps, inputProps: inputProps, errorMessageProps: errorMessageProps, descriptionProps: descriptionProps } = (0, $8zHUo$reactaria.useTextField)({
540
+ ...props,
541
+ inputElementType: "input"
542
+ }, internalInputRef);
543
+ return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $ec2376a5dd0d13e6$export$a455218a85c89869), {
544
+ labelProps: labelProps,
545
+ descriptionProps: descriptionProps,
546
+ errorMessageProps: errorMessageProps,
547
+ className: className,
548
+ classNames: classNames,
549
+ styles: styles,
550
+ style: style,
551
+ ...props,
552
+ children: /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("input", {
553
+ ref: (0, $62f1c614c0962470$export$c9058316764c140e)(internalInputRef, inputRef),
554
+ "data-has-left-addon": !!props.prepend,
555
+ "data-has-right-addon": !!props.append,
556
+ className: (0, $62f1c614c0962470$export$a274e22fb40f762e)("p-text-input-el"),
557
+ ...inputProps
558
+ })
559
+ });
560
+ }
522
561
  $d9ffc65197682590$export$f5b8910cec6cf069.displayName = "Input";
523
562
 
524
563
 
@@ -647,7 +686,7 @@ const $5a6f28f3fd58ff6e$export$353f5b6fc5456de1 = /*#__PURE__*/ (0, ($parcel$int
647
686
  const space = (0, $eae337549f49a5a2$export$450c36e0b0e62ccd)();
648
687
  const buttonGroupProps = (0, $7f70742e736041ff$export$749e21be8b14b968)();
649
688
  const theme = (0, $f2fd0cbe11b7f0dd$export$93d4e7f90805808f)();
650
- const { color: color = theme?.color ?? "violet", variant: variant = "solid", append: append, prepend: prepend, size: size = "md", children: children, as: as = "button", className: className, isLoading: isLoading, radius: radius = "full", isToggle: isToggle, activeColor: activeColor = theme?.color, activeVariant: activeVariant = "solid", idleColor: idleColor = "gray", idleVariant: idleVariant = "outline", isIconButton: isIconButton, style: style, ...otherProps } = {
689
+ const { color: color = theme?.color ?? "violet", variant: variant = "solid", append: append, prepend: prepend, size: size = "md", children: children, as: as = "button", className: className, isLoading: isLoading, radius: radius = "full", isToggle: isToggle, activeColor: activeColor = theme?.color, activeVariant: activeVariant = "solid", idleColor: idleColor = "gray", idleVariant: idleVariant = "outline", isIconButton: isIconButton, style: style, classNames: classNames, styles: styles, form: form, ...otherProps } = {
651
690
  ...buttonGroupProps,
652
691
  ...props
653
692
  };
@@ -678,7 +717,10 @@ const $5a6f28f3fd58ff6e$export$353f5b6fc5456de1 = /*#__PURE__*/ (0, ($parcel$int
678
717
  }
679
718
  const Comp = as;
680
719
  return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)(Comp, {
681
- style: style,
720
+ style: {
721
+ ...style,
722
+ ...styles?.base
723
+ },
682
724
  "data-is-toggle": isToggle,
683
725
  "data-pressed": isPressed,
684
726
  "data-radius": radius,
@@ -690,20 +732,19 @@ const $5a6f28f3fd58ff6e$export$353f5b6fc5456de1 = /*#__PURE__*/ (0, ($parcel$int
690
732
  "data-selected": state.isSelected,
691
733
  className: (0, $62f1c614c0962470$export$a274e22fb40f762e)((0, $4af7da5c7dd0b9c2$export$2db1d02db18b2d82)("size", size), className, "p-button", space.classNames),
692
734
  ref: (0, $62f1c614c0962470$export$c9058316764c140e)(ref, buttonRef),
693
- form: otherProps.form,
735
+ form: form,
694
736
  ...buttonProps,
695
737
  children: [
696
738
  prepend,
697
- /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("span", {
698
- style: {
699
- padding: isIconButton ? undefined : "0 6px",
700
- lineHeight: 0
701
- },
702
- children: children
703
- }),
739
+ children,
704
740
  isLoading ? /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $a28e128499dd0b02$export$3b0d6d7590275603), {
741
+ className: (0, $62f1c614c0962470$export$a274e22fb40f762e)([
742
+ "p-button-loader",
743
+ classNames?.loader
744
+ ]),
705
745
  style: {
706
- marginLeft: 8
746
+ marginLeft: 8,
747
+ ...styles?.loader
707
748
  },
708
749
  color: "inherit",
709
750
  size: "xs"
@@ -737,88 +778,73 @@ $3af04cd154cf4de1$export$c25acd513dcc8062.displayName = "IconButton";
737
778
 
738
779
 
739
780
 
740
-
741
-
742
-
743
-
744
- const $77c71203b3212c65$export$6bf0cd3a219bbade = /*#__PURE__*/ $8zHUo$react.forwardRef((props, ref)=>{
745
- const { appearance: appearance = "outline", size: size = "md", color: color = "gray", className: className, append: append, prepend: prepend, placeholder: placeholder, showSteppers: showSteppers = false, radius: radius, ...rest } = props;
781
+ function $77c71203b3212c65$export$6bf0cd3a219bbade({ appearance: appearance = "outline", size: size = "md", color: color = "gray", classNames: classNames, styles: styles, append: append, prepend: prepend, placeholder: placeholder, showSteppers: showSteppers = false, error: error, label: label, minValue: minValue, maxValue: maxValue, formatOptions: formatOptions, inputRef: inputRef, incrementIcon: incrementIcon, decrementIcon: decrementIcon, ...props }) {
782
+ const ariaProps = {
783
+ ...props,
784
+ maxValue: maxValue,
785
+ formatOptions: formatOptions,
786
+ minValue: minValue,
787
+ "aria-label": props["aria-label"] ?? "number input"
788
+ };
746
789
  const space = (0, $eae337549f49a5a2$export$450c36e0b0e62ccd)();
747
790
  const internalInputRef = $8zHUo$react.useRef(null);
748
791
  const { locale: locale } = (0, $8zHUo$reactaria.useLocale)();
749
792
  const state = (0, $8zHUo$reactstately.useNumberFieldState)({
750
- ...rest,
793
+ ...ariaProps,
751
794
  locale: locale
752
795
  });
753
- const { errorMessageProps: errorMessageProps, descriptionProps: descriptionProps, labelProps: labelProps, groupProps: groupProps, inputProps: inputProps, incrementButtonProps: incrementButtonProps, decrementButtonProps: decrementButtonProps } = (0, $8zHUo$reactaria.useNumberField)(rest, state, internalInputRef);
754
- const theme = (0, $f2fd0cbe11b7f0dd$export$93d4e7f90805808f)();
755
- return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
756
- stack: true,
757
- gap: "3xs",
758
- ref: ref,
759
- "data-radius": radius ?? theme?.radius ?? "lg",
760
- "data-color": color,
761
- "data-size": size,
762
- stretchX: true,
763
- className: (0, $62f1c614c0962470$export$a274e22fb40f762e)("p-input-group", space.compactItemWrapperAdjust),
764
- children: [
765
- rest.label && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $5a5b41d120374960$export$2e2bcd8739ae039), {
766
- ...labelProps,
767
- children: rest.label
768
- }),
769
- /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
770
- gap: "4xs",
771
- ...groupProps,
772
- className: "p-input-container",
773
- children: [
774
- showSteppers && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $3af04cd154cf4de1$export$c25acd513dcc8062), {
775
- ...decrementButtonProps,
776
- radius: "md",
777
- color: color,
778
- variant: "outline",
779
- size: size,
780
- children: /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $8zHUo$reacticonshi.HiMinus), {
781
- size: 20
782
- })
783
- }),
784
- /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("input", {
785
- ref: (0, $62f1c614c0962470$export$c9058316764c140e)(internalInputRef, ref),
786
- placeholder: placeholder,
787
- className: (0, $62f1c614c0962470$export$a274e22fb40f762e)("p-input-control", "space-item", className, space.classNames),
788
- "data-appearance": appearance,
789
- "data-has-left-addon": !!prepend,
790
- "data-has-right-addon": !!append,
791
- type: "text",
792
- ...inputProps
793
- }),
794
- showSteppers && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $3af04cd154cf4de1$export$c25acd513dcc8062), {
795
- ...incrementButtonProps,
796
- radius: "md",
797
- color: color,
798
- variant: "outline",
799
- size: size,
800
- children: /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $8zHUo$reacticonshi.HiPlus), {})
801
- })
802
- ]
803
- }),
804
- rest.description && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $88fa102d91bf323a$export$5f1af8db9871e1d6), {
805
- weight: "regular",
806
- size: "sm",
807
- color: "gray",
808
- variant: "light",
809
- lineHeight: "base",
810
- ...descriptionProps,
811
- as: "div",
812
- children: rest.description
813
- }),
814
- rest.error && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $4b54f76a59afa8a5$export$2e2bcd8739ae039), {
815
- ...errorMessageProps,
816
- children: rest.error
817
- })
818
- ]
796
+ const { errorMessageProps: errorMessageProps, descriptionProps: descriptionProps, labelProps: labelProps, groupProps: groupProps, inputProps: inputProps, incrementButtonProps: incrementButtonProps, decrementButtonProps: decrementButtonProps } = (0, $8zHUo$reactaria.useNumberField)(ariaProps, state, internalInputRef);
797
+ return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $ec2376a5dd0d13e6$export$a455218a85c89869), {
798
+ classNames: classNames,
799
+ color: color,
800
+ size: size,
801
+ labelProps: labelProps,
802
+ descriptionProps: descriptionProps,
803
+ errorMessageProps: errorMessageProps,
804
+ error: error,
805
+ label: label,
806
+ replaceDefaultControlWrapper: true,
807
+ ...props,
808
+ children: /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
809
+ gap: "4xs",
810
+ ...groupProps,
811
+ className: "p-input-container",
812
+ children: [
813
+ showSteppers && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $3af04cd154cf4de1$export$c25acd513dcc8062), {
814
+ ...decrementButtonProps,
815
+ radius: "md",
816
+ color: color,
817
+ variant: "outline",
818
+ size: size,
819
+ className: classNames?.decrement,
820
+ style: styles?.decrement,
821
+ children: decrementIcon
822
+ }),
823
+ /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("input", {
824
+ style: styles?.input,
825
+ ref: (0, $62f1c614c0962470$export$c9058316764c140e)(internalInputRef, inputRef),
826
+ placeholder: placeholder,
827
+ className: (0, $62f1c614c0962470$export$a274e22fb40f762e)(classNames?.input, "p-input-control", "space-item", space.classNames),
828
+ "data-appearance": appearance,
829
+ "data-has-left-addon": !!prepend,
830
+ "data-has-right-addon": !!append,
831
+ type: "text",
832
+ ...inputProps
833
+ }),
834
+ showSteppers && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $3af04cd154cf4de1$export$c25acd513dcc8062), {
835
+ ...incrementButtonProps,
836
+ radius: "md",
837
+ color: color,
838
+ variant: "outline",
839
+ size: size,
840
+ className: classNames?.increment,
841
+ style: styles?.increment,
842
+ children: incrementIcon
843
+ })
844
+ ]
845
+ })
819
846
  });
820
- });
821
- $77c71203b3212c65$export$6bf0cd3a219bbade.displayName = "NumberInput";
847
+ }
822
848
 
823
849
 
824
850
 
@@ -968,7 +994,7 @@ $0f8ef6f4acac1766$export$4aa08d5625cb8ead.displayName = "CheckboxGroup";
968
994
 
969
995
 
970
996
  const $f88e10ca2ba68239$export$48513f6b9f8ce62d = /*#__PURE__*/ (0, ($parcel$interopDefault($8zHUo$react))).forwardRef((props, ref)=>{
971
- const { appearance: appearance, size: size, shape: shape = "round", color: color, className: className, ...otherProps } = props;
997
+ const { appearance: appearance, size: size, shape: shape = "round", color: color, className: className, classNames: classNames, styles: styles, style: style, ...otherProps } = props;
972
998
  // check if checkbox is rendered in a group context
973
999
  const groupContext = (0, ($parcel$interopDefault($8zHUo$react))).useContext((0, $0f8ef6f4acac1766$export$f9c6924e160136d1));
974
1000
  const groupState = groupContext?.state;
@@ -992,7 +1018,11 @@ const $f88e10ca2ba68239$export$48513f6b9f8ce62d = /*#__PURE__*/ (0, ($parcel$int
992
1018
  const resolvedAppearance = appearance || groupProps?.appearance || "outline";
993
1019
  const resolvedSize = size || groupProps?.size || "md";
994
1020
  return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)("label", {
995
- className: (0, $62f1c614c0962470$export$a274e22fb40f762e)(className, "p-checkbox"),
1021
+ style: {
1022
+ ...style,
1023
+ ...styles?.wrapper
1024
+ },
1025
+ className: (0, $62f1c614c0962470$export$a274e22fb40f762e)(className, "p-checkbox", classNames?.wrapper),
996
1026
  "data-disabled": inputProps?.disabled,
997
1027
  ref: ref,
998
1028
  children: [
@@ -1005,9 +1035,16 @@ const $f88e10ca2ba68239$export$48513f6b9f8ce62d = /*#__PURE__*/ (0, ($parcel$int
1005
1035
  })
1006
1036
  }),
1007
1037
  /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)("div", {
1038
+ style: {
1039
+ ...style,
1040
+ ...styles?.checkbox
1041
+ },
1008
1042
  "data-color": resolvedColor,
1009
1043
  "data-radius": getRadius(),
1010
- className: "p-fake-checkbox",
1044
+ className: (0, $62f1c614c0962470$export$a274e22fb40f762e)([
1045
+ "p-fake-checkbox",
1046
+ classNames?.checkbox
1047
+ ]),
1011
1048
  "data-focused": isFocusVisible,
1012
1049
  "aria-hidden": "true",
1013
1050
  "data-checked": isSelected && !props.isIndeterminate,
@@ -1016,6 +1053,10 @@ const $f88e10ca2ba68239$export$48513f6b9f8ce62d = /*#__PURE__*/ (0, ($parcel$int
1016
1053
  "data-appearance": resolvedAppearance,
1017
1054
  children: [
1018
1055
  isSelected && !props.isIndeterminate && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("svg", {
1056
+ className: (0, $62f1c614c0962470$export$a274e22fb40f762e)([
1057
+ "p-checkbox-icon",
1058
+ classNames?.icon
1059
+ ]),
1019
1060
  stroke: "white",
1020
1061
  width: "0.75rem",
1021
1062
  height: "0.75rem",
@@ -1032,6 +1073,10 @@ const $f88e10ca2ba68239$export$48513f6b9f8ce62d = /*#__PURE__*/ (0, ($parcel$int
1032
1073
  })
1033
1074
  }),
1034
1075
  props.isIndeterminate && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $eb8f27c3596a0e6b$export$e71c4d32a2263218), {
1076
+ className: (0, $62f1c614c0962470$export$a274e22fb40f762e)([
1077
+ "p-checkbox-icon",
1078
+ classNames?.icon
1079
+ ]),
1035
1080
  style: {
1036
1081
  background: "var(--color-12)",
1037
1082
  width: "70%",
@@ -1062,25 +1107,39 @@ $f88e10ca2ba68239$export$48513f6b9f8ce62d.displayName = "checkbox";
1062
1107
 
1063
1108
 
1064
1109
 
1065
- function $9a1eb1c261c8b852$export$91527519cfe8e396({ state: state, children: children, popoverRef: popoverRef, ...props }) {
1110
+ function $9a1eb1c261c8b852$export$91527519cfe8e396({ state: state, children: children, popoverRef: popoverRef, style: style, styles: styles, classNames: classNames, className: className, ...props }) {
1066
1111
  const internalPopoverRef = $8zHUo$react.useRef(null);
1067
1112
  const theme = (0, $f2fd0cbe11b7f0dd$export$93d4e7f90805808f)();
1068
1113
  const { popoverProps: popoverProps, underlayProps: underlayProps } = (0, $8zHUo$reactaria.usePopover)({
1069
1114
  ...props,
1070
1115
  popoverRef: internalPopoverRef
1071
1116
  }, state);
1117
+ const { style: internalStyle, ...otherPopoverProps } = popoverProps;
1072
1118
  return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)((0, $8zHUo$reactaria.Overlay), {
1073
1119
  children: [
1074
1120
  /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("div", {
1075
1121
  ...underlayProps,
1076
- className: "underlay"
1122
+ style: styles?.underlay,
1123
+ className: (0, $62f1c614c0962470$export$a274e22fb40f762e)([
1124
+ "underlay",
1125
+ classNames?.underlay
1126
+ ])
1077
1127
  }),
1078
1128
  /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("div", {
1079
1129
  "data-color": theme?.color,
1080
1130
  "data-radius": theme?.radius,
1081
- ...popoverProps,
1082
1131
  ref: (0, $62f1c614c0962470$export$c9058316764c140e)(popoverRef, internalPopoverRef),
1083
- className: "p-popover",
1132
+ className: (0, $62f1c614c0962470$export$a274e22fb40f762e)([
1133
+ "p-popover",
1134
+ className,
1135
+ classNames?.wrapper
1136
+ ]),
1137
+ style: {
1138
+ ...internalStyle,
1139
+ ...style,
1140
+ ...styles?.wrapper
1141
+ },
1142
+ ...otherPopoverProps,
1084
1143
  children: children
1085
1144
  })
1086
1145
  ]
@@ -1334,30 +1393,38 @@ const $3b903582a5253460$export$e44a253a59704894 = {
1334
1393
 
1335
1394
 
1336
1395
 
1337
- function $fc43ab93aaa777d9$export$3d7d0414f6db67e7({ children: children, renderOption: renderOption, valueKey: valueKey, sectionKey: sectionKey, getSectionLabel: getSectionLabel, labelKey: labelKey, items: items }) {
1396
+ const $86685406b084d356$export$5b7f4051a57920d0 = (0, $8zHUo$reactstately.Item);
1397
+ const $86685406b084d356$export$ef146090a6472d9e = (0, $8zHUo$reactstately.Section);
1398
+
1399
+
1400
+ function $fc43ab93aaa777d9$export$3d7d0414f6db67e7({ children: children, renderOption: renderOption, valueKey: valueKey, sectionKey: sectionKey, renderSectionLabel: renderSectionLabel, labelKey: labelKey, items: items }) {
1338
1401
  const hasChildren = $8zHUo$react.Children.count(children) > 0;
1339
1402
  if (hasChildren) return children;
1340
1403
  if (items) // eslint-disable-next-line react/display-name
1341
1404
  return (item)=>{
1342
1405
  const label = item?.[labelKey ?? "label"];
1343
- const value = item?.[valueKey ?? "id"];
1406
+ const value = item?.[valueKey ?? "id" ?? "key" ?? "value"];
1344
1407
  const sectionChildren = item?.[sectionKey ?? "children"] ?? [];
1345
- if (item?.[sectionKey]) return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $dcfc4542aa84c062$export$6e2c8f0811a474ce), {
1408
+ if (item?.[sectionKey]) return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $86685406b084d356$export$ef146090a6472d9e), {
1346
1409
  items: sectionChildren,
1347
- title: getSectionLabel?.(item),
1348
- children: (item)=>/*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $dcfc4542aa84c062$export$36d18380658d5d20), {
1410
+ title: renderSectionLabel?.(item),
1411
+ children: (item)=>/*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $86685406b084d356$export$5b7f4051a57920d0), {
1349
1412
  textValue: item?.[labelKey ?? "label"],
1350
- children: item?.[labelKey ?? "label"] ?? renderOption?.(item)
1351
- }, item?.[valueKey ?? "id"])
1413
+ children: renderOption?.(item) ?? item?.[labelKey ?? "label"]
1414
+ }, item?.[valueKey ?? "id" ?? "key" ?? "value"])
1352
1415
  }, value);
1353
- return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $dcfc4542aa84c062$export$36d18380658d5d20), {
1416
+ return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $86685406b084d356$export$5b7f4051a57920d0), {
1354
1417
  textValue: label,
1355
1418
  children: renderOption?.(item) ?? label
1356
- }, item?.[valueKey ?? "id"]);
1419
+ }, value);
1357
1420
  };
1358
1421
  }
1359
-
1360
-
1422
+ function $fc43ab93aaa777d9$export$4c687b6f1150e71b(props) {
1423
+ const children = $8zHUo$react.useMemo(()=>{
1424
+ return $fc43ab93aaa777d9$export$3d7d0414f6db67e7(props);
1425
+ }, []);
1426
+ return children;
1427
+ }
1361
1428
 
1362
1429
 
1363
1430
 
@@ -1372,70 +1439,74 @@ function $71edc9998a9f3b41$export$1e60abce570c2b01(props) {
1372
1439
  });
1373
1440
  }
1374
1441
  function $71edc9998a9f3b41$export$961f16f221737ce2() {
1375
- const context = $8zHUo$react.useContext($71edc9998a9f3b41$var$ListBoxContext);
1376
- if (!context) throw new Error("ListBox components must be rendered within the ListBoxProvider");
1377
- return context;
1442
+ const ctx = $8zHUo$react.useContext($71edc9998a9f3b41$var$ListBoxContext);
1443
+ if (!ctx) throw new Error("ListBox components must be rendered within the ListBoxProvider");
1444
+ return ctx;
1378
1445
  }
1379
1446
 
1380
1447
 
1381
1448
 
1382
1449
 
1383
- function $dcfc4542aa84c062$export$41f133550aa26f48({ state: state, color: color, width: width = 300, showSelectedMarker: showSelectedMarker = true, listBoxRef: listBoxRef, ...props }) {
1450
+ function $dcfc4542aa84c062$export$41f133550aa26f48({ state: state, color: color, width: width = 300, listBoxRef: listBoxRef, renderEmpty: renderEmpty, classNames: classNames, className: className, style: style, styles: styles, ...props }) {
1451
+ const children = (0, $fc43ab93aaa777d9$export$4c687b6f1150e71b)(props);
1384
1452
  const internalState = (0, $8zHUo$reactstately.useListState)({
1385
1453
  ...props,
1386
- children: (0, $fc43ab93aaa777d9$export$3d7d0414f6db67e7)(props)
1454
+ children: children
1387
1455
  });
1388
1456
  const listRef = $8zHUo$react.useRef(null);
1389
1457
  const listState = state || internalState;
1390
- const { listBoxProps: listBoxProps } = (0, $8zHUo$reactaria.useListBox)(props, listState, listRef);
1458
+ const { listBoxProps: listBoxProps } = (0, $8zHUo$reactaria.useListBox)({
1459
+ ...props,
1460
+ label: props.label ?? "Select an option"
1461
+ }, listState, listRef);
1391
1462
  const options = [
1392
1463
  ...listState.collection
1393
1464
  ];
1394
1465
  const theme = (0, $f2fd0cbe11b7f0dd$export$93d4e7f90805808f)();
1466
+ function renderEmptyState() {
1467
+ return renderEmpty?.() ?? /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $88fa102d91bf323a$export$5f1af8db9871e1d6), {
1468
+ color: "gray",
1469
+ variant: "lighter",
1470
+ children: "No options"
1471
+ });
1472
+ }
1395
1473
  return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $71edc9998a9f3b41$export$1e60abce570c2b01), {
1396
1474
  ...props,
1397
- showSelectedMarker: showSelectedMarker,
1398
- children: /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
1399
- "data-color": color ?? theme?.color ?? "gray",
1475
+ children: /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
1476
+ as: "ul",
1477
+ stack: true,
1478
+ gap: "none",
1479
+ className: (0, $62f1c614c0962470$export$a274e22fb40f762e)("p-list-box-wrapper", classNames?.wrapper, className),
1480
+ ref: (0, $62f1c614c0962470$export$c9058316764c140e)(listRef, listBoxRef),
1481
+ "data-radius": "lg",
1482
+ "data-color": color ?? theme?.color,
1400
1483
  style: {
1401
1484
  width: width,
1402
- minWidth: 300
1485
+ ...style,
1486
+ ...styles?.wrapper
1403
1487
  },
1404
- stack: true,
1405
- gap: "md",
1406
- children: /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
1407
- as: "ul",
1408
- stack: true,
1409
- gap: "none",
1410
- className: "p-list-box-wrapper",
1411
- ref: (0, $62f1c614c0962470$export$c9058316764c140e)(listRef, listBoxRef),
1412
- "data-radius": "lg",
1413
- ...listBoxProps,
1414
- children: [
1415
- options.length === 0 && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
1416
- justify: "center",
1417
- align: "center",
1418
- style: {
1419
- height: 50
1420
- },
1421
- children: /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $88fa102d91bf323a$export$5f1af8db9871e1d6), {
1422
- color: "gray",
1423
- variant: "light",
1424
- align: "center",
1425
- children: "No Options"
1426
- })
1427
- }),
1428
- options.map((item)=>{
1429
- return item.type === "section" ? /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)($dcfc4542aa84c062$var$ListSection, {
1430
- section: item,
1431
- state: listState
1432
- }, item.key) : /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)($dcfc4542aa84c062$var$ListOption, {
1433
- state: listState,
1434
- item: item
1435
- }, item.key);
1436
- })
1437
- ]
1438
- })
1488
+ ...listBoxProps,
1489
+ children: [
1490
+ options.length === 0 && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
1491
+ justify: "center",
1492
+ align: "center",
1493
+ style: {
1494
+ height: 50
1495
+ },
1496
+ children: renderEmptyState()
1497
+ }),
1498
+ options.map((item)=>{
1499
+ return item.type === "section" ? /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)($dcfc4542aa84c062$var$ListSection, {
1500
+ className: classNames?.section,
1501
+ section: item,
1502
+ state: listState
1503
+ }, item.key) : /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)($dcfc4542aa84c062$var$ListOption, {
1504
+ className: classNames?.option,
1505
+ state: listState,
1506
+ item: item
1507
+ }, item.key);
1508
+ })
1509
+ ]
1439
1510
  })
1440
1511
  });
1441
1512
  }
@@ -1444,24 +1515,28 @@ function $dcfc4542aa84c062$var$ListOption({ state: state, item: item }) {
1444
1515
  const { optionProps: optionProps, isDisabled: isDisabled, isFocusVisible: isFocusVisible, isFocused: isFocused, isPressed: isPressed, isSelected: isSelected } = (0, $8zHUo$reactaria.useOption)({
1445
1516
  key: item.key
1446
1517
  }, state, optionRef);
1447
- const listBoxContext = (0, $71edc9998a9f3b41$export$961f16f221737ce2)();
1518
+ const { showSelectionIndicator: showSelectionIndicator = true, renderSelectionIndicator: renderSelectionIndicator } = (0, $71edc9998a9f3b41$export$961f16f221737ce2)().props;
1519
+ const { className: className, classNames: classNames, style: style, styles: styles, color: color, textValue: textValue, title: title, ...otherProps } = item.props;
1448
1520
  return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)("li", {
1449
- className: "p-list-option",
1521
+ style: {
1522
+ ...style,
1523
+ ...styles?.wrapper
1524
+ },
1525
+ className: (0, $62f1c614c0962470$export$a274e22fb40f762e)(className, "p-list-option", classNames?.wrapper),
1450
1526
  "data-disabled": isDisabled,
1451
1527
  "data-focus-visible": isFocusVisible,
1452
1528
  "data-focused": isFocused,
1453
1529
  "data-pressed": isPressed,
1454
1530
  "data-selected": isSelected,
1531
+ "data-color": color,
1455
1532
  ...optionProps,
1456
- ...(0, $ff6fce0e059b3a1a$export$30a06c8d3562193f)(item.props, [
1457
- "textValue"
1458
- ]),
1533
+ ...otherProps,
1459
1534
  ref: optionRef,
1460
1535
  children: [
1461
1536
  item.rendered,
1462
- isSelected && listBoxContext.props.showSelectedMarker && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $8zHUo$reacticonshi.HiCheck), {
1463
- className: "selected-marker"
1464
- })
1537
+ isSelected && showSelectionIndicator && (renderSelectionIndicator?.(item) ?? /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("div", {
1538
+ children: "x"
1539
+ }))
1465
1540
  ]
1466
1541
  });
1467
1542
  }
@@ -1471,19 +1546,25 @@ function $dcfc4542aa84c062$var$ListSection({ state: state, section: section }) {
1471
1546
  "aria-label": section["aria-label"]
1472
1547
  });
1473
1548
  const listBoxContext = (0, $71edc9998a9f3b41$export$961f16f221737ce2)();
1474
- function getChildren() {
1549
+ const { className: className, classNames: classNames, style: style, styles: styles } = section.props;
1550
+ const children = $8zHUo$react.useMemo(()=>{
1475
1551
  if (state.collection.getChildren) return [
1476
1552
  ...state.collection.getChildren(section.key)
1477
1553
  ];
1478
1554
  return [];
1479
- }
1555
+ }, []);
1480
1556
  return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
1481
1557
  gap: "sm",
1482
1558
  stack: true,
1483
- className: "p-list-section",
1559
+ className: (0, $62f1c614c0962470$export$a274e22fb40f762e)(className, "p-list-section", classNames?.wrapper),
1560
+ style: {
1561
+ ...style,
1562
+ ...styles?.wrapper
1563
+ },
1484
1564
  children: [
1485
- section.key !== state.collection.getFirstKey() && listBoxContext.props.showSeparator && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("li", {
1486
- className: "p-list-separator"
1565
+ section.key !== state.collection.getFirstKey() && listBoxContext.props.showSectionSeparator && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("li", {
1566
+ style: styles?.separator,
1567
+ className: (0, $62f1c614c0962470$export$a274e22fb40f762e)("p-list-separator", classNames?.separator)
1487
1568
  }),
1488
1569
  /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
1489
1570
  gap: "none",
@@ -1491,20 +1572,18 @@ function $dcfc4542aa84c062$var$ListSection({ state: state, section: section }) {
1491
1572
  as: "li",
1492
1573
  ...itemProps,
1493
1574
  children: [
1494
- section.rendered && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("div", {
1495
- className: "p-list-section-header",
1496
- children: /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $88fa102d91bf323a$export$5f1af8db9871e1d6), {
1497
- weight: "regular",
1498
- size: "xs",
1499
- as: "div",
1500
- variant: "light",
1501
- ...headingProps,
1502
- children: section.rendered
1503
- })
1575
+ section.rendered && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $88fa102d91bf323a$export$5f1af8db9871e1d6), {
1576
+ style: styles?.heading,
1577
+ className: (0, $62f1c614c0962470$export$a274e22fb40f762e)("p-list-section-header", classNames?.heading),
1578
+ as: "div",
1579
+ variant: "light",
1580
+ ...headingProps,
1581
+ children: section.rendered
1504
1582
  }),
1505
1583
  /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("ul", {
1584
+ className: (0, $62f1c614c0962470$export$a274e22fb40f762e)(classNames?.items),
1506
1585
  ...groupProps,
1507
- children: getChildren().map((node)=>{
1586
+ children: children.map((node)=>{
1508
1587
  return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)($dcfc4542aa84c062$var$ListOption, {
1509
1588
  item: node,
1510
1589
  state: state
@@ -1516,8 +1595,7 @@ function $dcfc4542aa84c062$var$ListSection({ state: state, section: section }) {
1516
1595
  ]
1517
1596
  });
1518
1597
  }
1519
- const $dcfc4542aa84c062$export$36d18380658d5d20 = (0, $8zHUo$reactstately.Item);
1520
- const $dcfc4542aa84c062$export$6e2c8f0811a474ce = (0, $8zHUo$reactstately.Section);
1598
+
1521
1599
 
1522
1600
 
1523
1601
 
@@ -1790,7 +1868,6 @@ $71fcf48f7e2e9427$export$f8afaea2e9656b91.displayName = "RadioCard";
1790
1868
 
1791
1869
 
1792
1870
 
1793
-
1794
1871
  const $cfadb0728cf907ff$export$3288d34c523a1192 = /*#__PURE__*/ (0, ($parcel$interopDefault($8zHUo$react))).forwardRef(({ prepend: prepend, append: append, children: children, hashValue: hashValue, color: color, size: size = "sm", shape: shape = "rounded", variant: variant = "light", className: className, ...props }, ref)=>{
1795
1872
  const randomColor = (0, ($parcel$interopDefault($8zHUo$react))).useMemo(()=>{
1796
1873
  if (hashValue) return (0, $4af7da5c7dd0b9c2$export$e4369cabd7e84cd9)(hashValue);
@@ -1822,44 +1899,46 @@ $cfadb0728cf907ff$export$3288d34c523a1192.displayName = "Tag";
1822
1899
 
1823
1900
 
1824
1901
 
1825
-
1826
-
1827
- function $e37831ebf64d8e7d$export$ef9b1a59e592288f({ label: label, selectionMode: selectionMode = "single", appearance: appearance = "outline", renderValue: renderValue, color: color = "gray", error: error, description: description, size: size = "sm", radius: radius, listBoxColor: listBoxColor, className: className, value: value, defaultValue: defaultValue, onChange: onChange, style: style, ...props }) {
1902
+ function $e37831ebf64d8e7d$export$ef9b1a59e592288f({ label: label, selectionMode: selectionMode = "single", appearance: appearance = "outline", renderValue: renderValue, color: color = "gray", error: error, description: description, size: size = "sm", radius: radius, listBoxColor: listBoxColor, className: className, value: value, defaultValue: defaultValue, onChange: onChange, onSelectionChange: onSelectionChange, style: style, classNames: classNames, styles: styles, showSectionSeparator: showSectionSeparator = true, showSelectionIndicator: showSelectionIndicator = true, ...props }) {
1828
1903
  const isMultiple = selectionMode === "multiple";
1829
- function getValue(value) {
1904
+ const _value = $8zHUo$react.useMemo(()=>{
1830
1905
  if (!value) return null;
1831
1906
  if (selectionMode === "single") return [
1832
1907
  value
1833
1908
  ];
1834
1909
  if (isMultiple && !(0, $d99c85a751d7ffbd$export$43bee75e5e14138e)(value)) throw new Error("Select: value must be an array when selectionMode is multiple");
1835
1910
  return value;
1836
- }
1837
- function onSelectionChange(selectedKeys) {
1838
- onChange?.({
1839
- target: {
1840
- value: isMultiple ? selectedKeys : selectedKeys[0],
1841
- name: props.name
1842
- }
1843
- });
1844
- }
1911
+ }, [
1912
+ value,
1913
+ selectionMode
1914
+ ]);
1915
+ const children = (0, $fc43ab93aaa777d9$export$4c687b6f1150e71b)(props);
1845
1916
  const space = (0, $eae337549f49a5a2$export$450c36e0b0e62ccd)();
1846
1917
  const triggerState = (0, $8zHUo$reactstately.useMenuTriggerState)({});
1847
1918
  const listState = (0, $8zHUo$reactstately.useListState)({
1848
1919
  ...props,
1849
- selectedKeys: getValue(value),
1850
- defaultSelectedKeys: getValue(defaultValue),
1920
+ selectedKeys: _value,
1921
+ defaultSelectedKeys: _value,
1851
1922
  selectionMode: selectionMode,
1852
- children: (0, $fc43ab93aaa777d9$export$3d7d0414f6db67e7)(props),
1923
+ children: children,
1853
1924
  onSelectionChange (keys) {
1854
- onSelectionChange([
1925
+ const keysToArray = [
1855
1926
  ...keys
1856
- ]);
1927
+ ];
1928
+ onSelectionChange?.(keysToArray);
1929
+ onChange?.({
1930
+ target: {
1931
+ value: isMultiple ? keysToArray : keysToArray[0],
1932
+ name: props.name
1933
+ }
1934
+ });
1857
1935
  if (!isMultiple) triggerState.close();
1858
1936
  }
1859
1937
  });
1860
1938
  const triggerRef = $8zHUo$react.useRef(null);
1861
1939
  const theme = (0, $f2fd0cbe11b7f0dd$export$93d4e7f90805808f)();
1862
- const { menuTriggerProps: menuTriggerProps } = (0, $8zHUo$reactaria.useMenuTrigger)({
1940
+ color = color ?? theme?.color;
1941
+ const { menuTriggerProps: menuTriggerProps, menuProps: menuProps } = (0, $8zHUo$reactaria.useMenuTrigger)({
1863
1942
  type: "listbox",
1864
1943
  trigger: "press",
1865
1944
  isDisabled: false
@@ -1868,8 +1947,10 @@ function $e37831ebf64d8e7d$export$ef9b1a59e592288f({ label: label, selectionMode
1868
1947
  const selectedItems = [
1869
1948
  ...listState.selectionManager.selectedKeys
1870
1949
  ].map((item)=>listState.collection.getItem(item));
1871
- function content() {
1950
+ const content = $8zHUo$react.useMemo(()=>{
1872
1951
  if (selectedItems.length === 0) return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $88fa102d91bf323a$export$5f1af8db9871e1d6), {
1952
+ style: styles?.placeholder,
1953
+ className: classNames?.placeholder,
1873
1954
  color: color,
1874
1955
  variant: "lighter",
1875
1956
  children: props.placeholder
@@ -1877,67 +1958,64 @@ function $e37831ebf64d8e7d$export$ef9b1a59e592288f({ label: label, selectionMode
1877
1958
  if (isMultiple) return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
1878
1959
  gap: "3xs",
1879
1960
  wrap: "wrap",
1880
- children: selectedItems.map((item)=>/*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $cfadb0728cf907ff$export$3288d34c523a1192), {
1881
- append: /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $8zHUo$reacticonshi.HiX), {}),
1882
- color: (0, $4af7da5c7dd0b9c2$export$e4369cabd7e84cd9)(item?.textValue ?? ""),
1961
+ children: selectedItems.map((item)=>renderValue?.(item?.value) ?? /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $cfadb0728cf907ff$export$3288d34c523a1192), {
1962
+ size: "md",
1963
+ variant: "pastel",
1964
+ color: color,
1883
1965
  children: item?.textValue
1884
1966
  }, item?.key))
1885
1967
  });
1886
1968
  return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $88fa102d91bf323a$export$5f1af8db9871e1d6), {
1969
+ as: "div",
1887
1970
  variant: "default",
1888
1971
  color: color === "gray" ? "black" : color,
1889
- className: "single-value",
1972
+ className: (0, $62f1c614c0962470$export$a274e22fb40f762e)("single-value", classNames?.value),
1973
+ style: styles?.value,
1890
1974
  children: renderValue?.(selectedItems[0]?.value) ?? selectedItems[0]?.value?.[props.labelKey ?? "label"] ?? selectedItems[0]?.textValue
1891
1975
  });
1892
- }
1893
- return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)((0, $eb8f27c3596a0e6b$export$e71c4d32a2263218), {
1894
- style: style,
1895
- as: "span",
1896
- position: "relative",
1897
- stretchX: true,
1976
+ }, [
1977
+ selectedItems.length,
1978
+ isMultiple,
1979
+ selectedItems[0]?.value
1980
+ ]);
1981
+ return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)("div", {
1982
+ className: (0, $62f1c614c0962470$export$a274e22fb40f762e)("p-select", className, classNames?.wrapper),
1983
+ style: {
1984
+ ...style,
1985
+ ...styles?.wrapper
1986
+ },
1898
1987
  children: [
1899
- /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
1900
- "data-radius": radius ?? theme?.radius ?? "lg",
1901
- gap: "3xs",
1902
- stack: true,
1903
- className: (0, $62f1c614c0962470$export$a274e22fb40f762e)("p-input-group", className, space.compactItemWrapperAdjust),
1904
- "data-size": size,
1905
- "data-color": color ?? "gray",
1906
- children: [
1907
- label && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $5a5b41d120374960$export$2e2bcd8739ae039), {
1908
- color: color,
1909
- children: label
1910
- }),
1911
- /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)("div", {
1912
- "data-selection-mode": selectionMode,
1913
- tabIndex: 0,
1914
- role: "button",
1915
- ref: triggerRef,
1916
- color: "gray",
1917
- className: (0, $62f1c614c0962470$export$a274e22fb40f762e)("p-input-control", "p-select", space.classNames),
1918
- "data-appearance": appearance,
1919
- ...triggerProps,
1920
- children: [
1921
- content(),
1922
- /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $8zHUo$reacticonshi.HiSelector), {
1923
- className: "selector",
1924
- size: 18
1925
- })
1926
- ]
1927
- }),
1928
- error && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $4b54f76a59afa8a5$export$2e2bcd8739ae039), {
1929
- children: error
1930
- }),
1931
- description && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $88fa102d91bf323a$export$5f1af8db9871e1d6), {
1932
- as: "div",
1933
- variant: "light",
1934
- color: "gray",
1935
- size: "sm",
1936
- children: description
1937
- })
1938
- ]
1988
+ /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $ec2376a5dd0d13e6$export$a455218a85c89869), {
1989
+ replaceDefaultControlWrapper: true,
1990
+ label: label,
1991
+ error: error,
1992
+ description: description,
1993
+ className: className,
1994
+ classNames: classNames,
1995
+ size: size,
1996
+ radius: radius,
1997
+ children: /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)("div", {
1998
+ style: styles?.trigger,
1999
+ "data-selection-mode": selectionMode,
2000
+ tabIndex: 0,
2001
+ role: "button",
2002
+ ref: triggerRef,
2003
+ color: "gray",
2004
+ className: (0, $62f1c614c0962470$export$a274e22fb40f762e)("p-input-control", "p-select-trigger", space.classNames, classNames?.trigger),
2005
+ "data-appearance": appearance,
2006
+ ...triggerProps,
2007
+ children: [
2008
+ content,
2009
+ /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $8zHUo$reacticonshi.HiSelector), {
2010
+ className: "selector",
2011
+ size: 18
2012
+ })
2013
+ ]
2014
+ })
1939
2015
  }),
1940
2016
  triggerState.isOpen && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $9a1eb1c261c8b852$export$91527519cfe8e396), {
2017
+ className: classNames?.popover,
2018
+ style: styles?.popover,
1941
2019
  placement: "bottom start",
1942
2020
  offset: 4,
1943
2021
  shouldUpdatePosition: true,
@@ -1945,12 +2023,13 @@ function $e37831ebf64d8e7d$export$ef9b1a59e592288f({ label: label, selectionMode
1945
2023
  state: triggerState,
1946
2024
  children: /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $dcfc4542aa84c062$export$41f133550aa26f48), {
1947
2025
  label: label,
1948
- showSeparator: props.showSeparator,
1949
- showSelectedMarker: props.showSelectedMarker,
2026
+ showSectionSeparator: showSectionSeparator,
2027
+ showSelectionIndicator: showSelectionIndicator,
1950
2028
  width: triggerRef.current?.getBoundingClientRect().width,
1951
2029
  color: listBoxColor ?? "gray",
1952
2030
  shouldFocusOnHover: true,
1953
2031
  state: listState,
2032
+ ...menuProps,
1954
2033
  ...props
1955
2034
  })
1956
2035
  })
@@ -1973,6 +2052,7 @@ function $e37831ebf64d8e7d$export$ef9b1a59e592288f({ label: label, selectionMode
1973
2052
 
1974
2053
 
1975
2054
 
2055
+
1976
2056
  function $5a757815ed1b91e3$var$createCalendar() {
1977
2057
  return new (0, $8zHUo$internationalizeddate.GregorianCalendar)();
1978
2058
  }
@@ -2349,13 +2429,15 @@ $e0a58c83d4c36e4e$export$7edc06cf1783b30f.displayName = "DateInput";
2349
2429
 
2350
2430
 
2351
2431
 
2352
- const $2fdd5844efb4cca1$export$e2255cf6045e8d47 = /*#__PURE__*/ $8zHUo$react.forwardRef(({ src: src, alt: alt, name: name, color: color, variant: variant = "light", fallback: fallback, children: children, size: size = "md", shape: shape = "square", className: className, ...props }, ref)=>{
2432
+ const $2fdd5844efb4cca1$export$e2255cf6045e8d47 = /*#__PURE__*/ $8zHUo$react.forwardRef(({ src: src, alt: alt, name: name, color: color, variant: variant = "light", fallback: fallback, children: children, size: size = "md", shape: shape, className: className, radius: radius = "lg", classNames: classNames, styles: styles, style: style, ...props }, ref)=>{
2353
2433
  const [imageError, setImageError] = $8zHUo$react.useState(false);
2354
2434
  const theme = (0, $f2fd0cbe11b7f0dd$export$93d4e7f90805808f)();
2355
2435
  function getAvatarRadius() {
2356
- if (theme?.avatarRadiusSize && shape !== "circle") return theme.avatarRadiusSize;
2357
- if (shape === "circle") return "full";
2358
- return "md";
2436
+ (0, $4af7da5c7dd0b9c2$export$1c4d39b152e0f791)("shape", "radius", shape);
2437
+ // TODO: remove this when we remove the deprecated shape prop
2438
+ if (shape === "circle" && !radius) radius = "full";
2439
+ if (shape === "square" && !radius) radius = "md";
2440
+ return theme?.avatarRadiusSize || radius;
2359
2441
  }
2360
2442
  const defaultColor = $8zHUo$react.useMemo(()=>{
2361
2443
  const hash = (0, $4af7da5c7dd0b9c2$export$d41d9ab3de2def3d)(name || "");
@@ -2365,6 +2447,10 @@ const $2fdd5844efb4cca1$export$e2255cf6045e8d47 = /*#__PURE__*/ $8zHUo$react.for
2365
2447
  ]);
2366
2448
  const renderContent = ()=>{
2367
2449
  if (src && !imageError) return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("img", {
2450
+ className: (0, $62f1c614c0962470$export$a274e22fb40f762e)([
2451
+ "avatar-img",
2452
+ classNames?.img
2453
+ ]),
2368
2454
  onLoad: ()=>setImageError(false),
2369
2455
  onError: ()=>setImageError(true),
2370
2456
  src: src,
@@ -2372,14 +2458,24 @@ const $2fdd5844efb4cca1$export$e2255cf6045e8d47 = /*#__PURE__*/ $8zHUo$react.for
2372
2458
  });
2373
2459
  if (imageError && !children) return fallback;
2374
2460
  if (!src && !children && name) return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("span", {
2461
+ style: styles?.fallback,
2462
+ className: (0, $62f1c614c0962470$export$a274e22fb40f762e)([
2463
+ "avatar-fallback",
2464
+ classNames?.fallback
2465
+ ]),
2375
2466
  children: name.charAt(0)
2376
2467
  });
2377
2468
  return children;
2378
2469
  };
2379
2470
  return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("div", {
2471
+ style: {
2472
+ ...style,
2473
+ ...styles?.base
2474
+ },
2380
2475
  className: (0, $62f1c614c0962470$export$a274e22fb40f762e)([
2381
2476
  "p-avatar",
2382
- className
2477
+ className,
2478
+ classNames?.base
2383
2479
  ]),
2384
2480
  "data-radius": getAvatarRadius(),
2385
2481
  "data-color": color ?? defaultColor,
@@ -2746,8 +2842,97 @@ $c5c6f63b49c9056a$export$b5d5cf8927ab7262.displayName = "Switch";
2746
2842
 
2747
2843
 
2748
2844
 
2749
- function $de38c06a5c24ee45$export$dbada5ace43900dd(props) {
2750
- return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("div", {});
2845
+
2846
+
2847
+
2848
+
2849
+ function $a945a7e4eb75da9e$export$472062a354075cee({ className: className, classNames: classNames, style: style, styles: styles, name: name, size: size = "sm", orientation: orientation = "horizontal", ...props }) {
2850
+ const trackRef = $8zHUo$react.useRef(null);
2851
+ const numberFormatter = (0, $8zHUo$reactaria.useNumberFormatter)();
2852
+ const state = (0, $8zHUo$reactstately.useSliderState)({
2853
+ ...props,
2854
+ numberFormatter: numberFormatter
2855
+ });
2856
+ const { trackProps: trackProps, labelProps: labelProps } = (0, $8zHUo$reactaria.useSlider)({
2857
+ ...props,
2858
+ "aria-label": props["aria-label"] ?? "slider"
2859
+ }, state, trackRef);
2860
+ const percent = state.getThumbPercent(0);
2861
+ return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)("div", {
2862
+ "data-size": size,
2863
+ style: {
2864
+ ...style,
2865
+ ...styles?.wrapper
2866
+ },
2867
+ className: (0, $62f1c614c0962470$export$a274e22fb40f762e)("p-slider", orientation, className, classNames?.wrapper),
2868
+ children: [
2869
+ props.label && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $5a5b41d120374960$export$2e2bcd8739ae039), {
2870
+ style: styles?.label,
2871
+ className: classNames?.label,
2872
+ ...labelProps,
2873
+ children: props.label
2874
+ }),
2875
+ /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)("div", {
2876
+ ref: trackRef,
2877
+ className: (0, $62f1c614c0962470$export$a274e22fb40f762e)("p-slider-track", classNames?.track),
2878
+ ...trackProps,
2879
+ children: [
2880
+ /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("div", {
2881
+ style: {
2882
+ width: `${percent * 100}%`
2883
+ },
2884
+ className: "p-slider-track-fill"
2885
+ }),
2886
+ /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)($a945a7e4eb75da9e$var$Thumb, {
2887
+ styles: {
2888
+ wrapper: styles?.thumb,
2889
+ inner: styles?.innerThumb
2890
+ },
2891
+ classNames: {
2892
+ wrapper: classNames?.thumb,
2893
+ inner: classNames?.innerThumb
2894
+ },
2895
+ state: state,
2896
+ trackRef: trackRef,
2897
+ index: 0,
2898
+ name: name
2899
+ })
2900
+ ]
2901
+ })
2902
+ ]
2903
+ });
2904
+ }
2905
+ function $a945a7e4eb75da9e$var$Thumb({ state: state, trackRef: trackRef, index: index, name: name, className: className, classNames: classNames, styles: styles, style: style }) {
2906
+ const inputRef = $8zHUo$react.useRef(null);
2907
+ const { thumbProps: thumbProps, inputProps: inputProps, isDragging: isDragging } = (0, $8zHUo$reactaria.useSliderThumb)({
2908
+ index: index,
2909
+ trackRef: trackRef,
2910
+ inputRef: inputRef,
2911
+ name: name
2912
+ }, state);
2913
+ const { focusProps: focusProps, isFocusVisible: isFocusVisible } = (0, $8zHUo$reactaria.useFocusRing)();
2914
+ return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)("div", {
2915
+ "data-dragging": isDragging,
2916
+ "data-focus-visible": isFocusVisible,
2917
+ className: (0, $62f1c614c0962470$export$a274e22fb40f762e)("p-slider-thumb", className, classNames?.wrapper),
2918
+ style: {
2919
+ ...style,
2920
+ ...styles?.wrapper
2921
+ },
2922
+ ...thumbProps,
2923
+ children: [
2924
+ /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("div", {
2925
+ style: styles?.inner,
2926
+ className: (0, $62f1c614c0962470$export$a274e22fb40f762e)("p-slider-thumb-inner", classNames?.inner)
2927
+ }),
2928
+ /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $8zHUo$reactaria.VisuallyHidden), {
2929
+ children: /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("input", {
2930
+ ref: inputRef,
2931
+ ...(0, $8zHUo$reactaria.mergeProps)(inputProps, focusProps)
2932
+ })
2933
+ })
2934
+ ]
2935
+ });
2751
2936
  }
2752
2937
 
2753
2938
 
@@ -3295,7 +3480,7 @@ function $0f347092d3465402$export$7dacb05d26466c3({ children: children }) {
3295
3480
  ...triggerProps
3296
3481
  });
3297
3482
  }
3298
- function $0f347092d3465402$export$d7e1f420b25549ff({ children: children, offset: offset = 12, placement: placement, style: style, width: width = 160, className: className, ...props }) {
3483
+ function $0f347092d3465402$export$d7e1f420b25549ff({ children: children, offset: offset = 12, placement: placement, style: style, className: className, ...props }) {
3299
3484
  const ctx = $8zHUo$react.useContext($0f347092d3465402$var$PopoverContext);
3300
3485
  if (!ctx) throw "PopoverContent must be used withing a Popover component";
3301
3486
  if (!ctx.overlayState?.isOpen) return null;
@@ -3310,7 +3495,6 @@ function $0f347092d3465402$export$d7e1f420b25549ff({ children: children, offset:
3310
3495
  "data-radius": "md",
3311
3496
  className: (0, $62f1c614c0962470$export$a274e22fb40f762e)(className, "p-popover-content"),
3312
3497
  style: {
3313
- width: width,
3314
3498
  ...style
3315
3499
  },
3316
3500
  children: children
@@ -3429,4 +3613,509 @@ const $d26053f02b9f370b$export$a79147a60006308c = (0, $8zHUo$reactstately.Item);
3429
3613
 
3430
3614
 
3431
3615
 
3616
+
3617
+
3618
+
3619
+
3620
+
3621
+
3622
+
3623
+
3624
+ function $b4c448f742efa2a7$export$9feb1bc2e5f1ccb3({ onChange: onChange, color: colorProp }) {
3625
+ const [colorSpace, setColorSpace] = $8zHUo$react.useState("hex");
3626
+ const [color, setColor] = (0, $c410efc80bcce413$export$40bfa8c7b0832715)(colorProp, (0, $8zHUo$reactstatelycolor.parseColor)("#BB66CC").toFormat("hsla"), onChange);
3627
+ function handleChange(color) {
3628
+ setColor(color);
3629
+ onChange?.(color);
3630
+ }
3631
+ function setAlpha(alpha) {
3632
+ if (isNaN(alpha)) return;
3633
+ console.log(alpha);
3634
+ console.log(color);
3635
+ const newColor = color.withChannelValue("alpha", alpha);
3636
+ setColor(newColor);
3637
+ console.log(newColor);
3638
+ }
3639
+ const [h, s, l] = color.getColorChannels();
3640
+ const rgbaColor = color.toFormat("rgba");
3641
+ const [r, g, b] = rgbaColor.getColorChannels();
3642
+ return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
3643
+ stack: true,
3644
+ style: {
3645
+ width: 240
3646
+ },
3647
+ children: [
3648
+ /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $ce7da1514c7ab67c$export$b2103f68a961418e), {
3649
+ onChange: handleChange,
3650
+ onChangeEnd: handleChange,
3651
+ xChannel: s,
3652
+ yChannel: l,
3653
+ value: color ?? (0, $8zHUo$reactstatelycolor.parseColor)("hsl(219, 79%, 66%)"),
3654
+ style: {
3655
+ width: "100%",
3656
+ height: 140
3657
+ }
3658
+ }),
3659
+ /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
3660
+ stack: true,
3661
+ style: {
3662
+ padding: 8
3663
+ },
3664
+ children: [
3665
+ /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
3666
+ stack: true,
3667
+ gap: "2xs",
3668
+ children: [
3669
+ /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $7796dcb4fe09bf12$export$44fd664bcca5b6fb), {
3670
+ value: color,
3671
+ onChange: handleChange,
3672
+ onChangeEnd: handleChange,
3673
+ channel: h
3674
+ }),
3675
+ /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $7796dcb4fe09bf12$export$44fd664bcca5b6fb), {
3676
+ value: color,
3677
+ onChange: handleChange,
3678
+ onChangeEnd: handleChange,
3679
+ channel: "alpha"
3680
+ })
3681
+ ]
3682
+ }),
3683
+ /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
3684
+ stack: true,
3685
+ children: [
3686
+ /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
3687
+ style: {
3688
+ width: "100%"
3689
+ },
3690
+ gap: "3xs",
3691
+ children: [
3692
+ colorSpace === "hex" && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)((0, $eae337549f49a5a2$export$eef1e68107c58ef2), {
3693
+ style: {
3694
+ gap: 3
3695
+ },
3696
+ compact: true,
3697
+ children: [
3698
+ /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $ca14d49a10ed918f$export$b865d4358897bb17), {
3699
+ value: color,
3700
+ onChange: handleChange,
3701
+ size: "sm",
3702
+ style: {
3703
+ width: "60%"
3704
+ },
3705
+ appearance: "filled",
3706
+ placeholder: "Add a color"
3707
+ }),
3708
+ /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $77c71203b3212c65$export$6bf0cd3a219bbade), {
3709
+ onChange: (n)=>setAlpha(n),
3710
+ maxValue: 1,
3711
+ formatOptions: {
3712
+ style: "percent",
3713
+ maximumFractionDigits: 0
3714
+ },
3715
+ size: "sm",
3716
+ value: color.getChannelValue("alpha"),
3717
+ style: {
3718
+ width: "40%"
3719
+ },
3720
+ appearance: "filled"
3721
+ })
3722
+ ]
3723
+ }),
3724
+ [
3725
+ "rgb",
3726
+ "hsl"
3727
+ ].includes(colorSpace) && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)((0, $eae337549f49a5a2$export$eef1e68107c58ef2), {
3728
+ style: {
3729
+ gap: 3
3730
+ },
3731
+ compact: true,
3732
+ children: [
3733
+ /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $77c71203b3212c65$export$6bf0cd3a219bbade), {
3734
+ value: colorSpace === "rgb" ? rgbaColor.getChannelValue(r) : color.getChannelValue(h),
3735
+ appearance: "filled",
3736
+ size: "sm"
3737
+ }),
3738
+ /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $77c71203b3212c65$export$6bf0cd3a219bbade), {
3739
+ value: colorSpace === "rgb" ? rgbaColor.getChannelValue(g) : color.getChannelValue(s),
3740
+ appearance: "filled",
3741
+ size: "sm"
3742
+ }),
3743
+ /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $77c71203b3212c65$export$6bf0cd3a219bbade), {
3744
+ value: colorSpace === "rgb" ? rgbaColor.getChannelValue(b) : color.getChannelValue(l),
3745
+ appearance: "filled",
3746
+ size: "sm"
3747
+ }),
3748
+ /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $77c71203b3212c65$export$6bf0cd3a219bbade), {
3749
+ formatOptions: {
3750
+ style: "percent",
3751
+ maximumFractionDigits: 0
3752
+ },
3753
+ value: colorSpace === "rgb" ? rgbaColor.getChannelValue("alpha") : color.getChannelValue("alpha"),
3754
+ appearance: "filled",
3755
+ size: "sm"
3756
+ })
3757
+ ]
3758
+ }),
3759
+ /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $e37831ebf64d8e7d$export$ef9b1a59e592288f), {
3760
+ style: {
3761
+ width: "60%"
3762
+ },
3763
+ valueKey: "id",
3764
+ onChange: (v)=>setColorSpace(v.target.value ?? colorSpace),
3765
+ showSelectionIndicator: false,
3766
+ value: colorSpace,
3767
+ size: "sm",
3768
+ appearance: "filled",
3769
+ items: [
3770
+ "hex",
3771
+ "rgb",
3772
+ "hsl"
3773
+ ].map((o)=>({
3774
+ label: o.toUpperCase(),
3775
+ id: o
3776
+ }))
3777
+ })
3778
+ ]
3779
+ }),
3780
+ /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $9e8a15ca4065ce60$export$1ff3c3f08ae963c0), {
3781
+ color: "gray"
3782
+ }),
3783
+ /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
3784
+ children: /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $799f02b9b0e744b9$export$b46792416e3d8515), {
3785
+ styles: {
3786
+ wrapper: {
3787
+ gap: 6
3788
+ },
3789
+ swatch: {
3790
+ borderRadius: 5
3791
+ }
3792
+ },
3793
+ onChange: handleChange,
3794
+ colors: [
3795
+ "#000000",
3796
+ "#333333",
3797
+ "#555555",
3798
+ "#777777",
3799
+ "#999999",
3800
+ "#bbbbbb",
3801
+ "#dddddd",
3802
+ "#ffffff",
3803
+ "#4455BB",
3804
+ "#1199EE",
3805
+ "#55CCFF",
3806
+ "#22CCDD",
3807
+ "#22AA99",
3808
+ "#66BB66",
3809
+ "#99CC66",
3810
+ "#CCDD33",
3811
+ "#7755CC",
3812
+ "#BB66CC",
3813
+ "#FF88AA",
3814
+ "#EE4444",
3815
+ "#FF7744",
3816
+ "#FFAA22",
3817
+ "#FFCC66",
3818
+ "#FFEE66"
3819
+ ].map((color)=>({
3820
+ label: color,
3821
+ color: (0, $8zHUo$reactstatelycolor.parseColor)(color).toString("hsl"),
3822
+ key: color
3823
+ }))
3824
+ })
3825
+ })
3826
+ ]
3827
+ })
3828
+ ]
3829
+ })
3830
+ ]
3831
+ });
3832
+ }
3833
+
3834
+
3835
+
3836
+
3837
+
3838
+
3839
+
3840
+
3841
+
3842
+ function $ce7da1514c7ab67c$export$b2103f68a961418e({ className: className, classNames: classNames, style: style, styles: styles, radius: radius, ...props }) {
3843
+ const inputXRef = $8zHUo$react.useRef(null);
3844
+ const inputYRef = $8zHUo$react.useRef(null);
3845
+ const containerRef = $8zHUo$react.useRef(null);
3846
+ const state = (0, $8zHUo$reactstatelycolor.useColorAreaState)(props);
3847
+ const { colorAreaProps: colorAreaProps, xInputProps: xInputProps, yInputProps: yInputProps, thumbProps: thumbProps } = (0, $8zHUo$reactariacolor.useColorArea)({
3848
+ ...props,
3849
+ inputXRef: inputXRef,
3850
+ inputYRef: inputYRef,
3851
+ containerRef: containerRef
3852
+ }, state);
3853
+ const { focusProps: focusProps, isFocusVisible: isFocusVisible } = (0, $8zHUo$reactaria.useFocusRing)();
3854
+ const theme = (0, $f2fd0cbe11b7f0dd$export$93d4e7f90805808f)();
3855
+ return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("div", {
3856
+ ...colorAreaProps,
3857
+ ref: containerRef,
3858
+ style: {
3859
+ ...colorAreaProps.style,
3860
+ ...styles?.wrapper,
3861
+ ...style
3862
+ },
3863
+ className: (0, $62f1c614c0962470$export$a274e22fb40f762e)("p-color-area", className, classNames?.wrapper),
3864
+ "data-disabled": props.isDisabled,
3865
+ "data-radius": radius ?? theme?.radius ?? "lg",
3866
+ children: /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)("div", {
3867
+ ...thumbProps,
3868
+ style: {
3869
+ ...thumbProps.style,
3870
+ ...styles?.thumb
3871
+ },
3872
+ className: (0, $62f1c614c0962470$export$a274e22fb40f762e)("p-color-area-thumb", classNames?.thumb),
3873
+ "data-focus-visible": isFocusVisible,
3874
+ "data-color": state.getDisplayColor().toString("css"),
3875
+ children: [
3876
+ /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("input", {
3877
+ ...xInputProps,
3878
+ ref: inputXRef,
3879
+ ...focusProps
3880
+ }),
3881
+ /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("input", {
3882
+ ...yInputProps,
3883
+ ref: inputYRef,
3884
+ ...focusProps
3885
+ })
3886
+ ]
3887
+ })
3888
+ });
3889
+ }
3890
+
3891
+
3892
+
3893
+
3894
+
3895
+
3896
+
3897
+
3898
+ function $ca14d49a10ed918f$export$b865d4358897bb17({ label: label, description: description, className: className, classNames: classNames, style: style, styles: styles, ...props }) {
3899
+ const state = (0, $8zHUo$reactstatelycolor.useColorFieldState)(props);
3900
+ const inputRef = $8zHUo$react.useRef(null);
3901
+ const { inputProps: inputProps, labelProps: labelProps, descriptionProps: descriptionProps, errorMessageProps: errorMessageProps } = (0, $8zHUo$reactariacolor.useColorField)({
3902
+ ...props,
3903
+ "aria-label": props["aria-label"] ?? "color-field"
3904
+ }, state, inputRef);
3905
+ return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $ec2376a5dd0d13e6$export$a455218a85c89869), {
3906
+ description: description,
3907
+ label: label,
3908
+ style: style,
3909
+ classNames: classNames,
3910
+ className: className,
3911
+ styles: styles,
3912
+ labelProps: {
3913
+ ...labelProps
3914
+ },
3915
+ descriptionProps: {
3916
+ ...descriptionProps
3917
+ },
3918
+ errorMessageProps: {
3919
+ ...errorMessageProps
3920
+ },
3921
+ ...props,
3922
+ children: /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("input", {
3923
+ style: styles?.input,
3924
+ className: (0, $62f1c614c0962470$export$a274e22fb40f762e)(classNames?.input, "p-text-input-el"),
3925
+ type: "text",
3926
+ ref: inputRef,
3927
+ ...inputProps
3928
+ })
3929
+ });
3930
+ }
3931
+
3932
+
3933
+
3934
+
3935
+
3936
+
3937
+
3938
+
3939
+
3940
+
3941
+
3942
+ function $799f02b9b0e744b9$export$b46792416e3d8515({ colors: colors, items: items, children: children, radius: radius, size: size, onChange: onChange, selectionMode: selectionMode = "single", className: className, classNames: classNames, style: style, styles: styles, ...props }) {
3943
+ items = colors;
3944
+ children = (item)=>/*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)($799f02b9b0e744b9$var$Color, {
3945
+ textValue: item.color,
3946
+ color: (0, $8zHUo$reactstatelycolor.parseColor)(item.color)
3947
+ }, item.color);
3948
+ const listProps = {
3949
+ ...props,
3950
+ items: items,
3951
+ children: children,
3952
+ selectionMode: selectionMode,
3953
+ ["aria-label"]: "color swatch picker",
3954
+ onSelectionChange: (keys)=>{
3955
+ const keysToArray = [
3956
+ ...keys
3957
+ ];
3958
+ onChange?.((0, $8zHUo$reactstatelycolor.parseColor)(keysToArray[0]));
3959
+ props.onSelectionChange?.(keys);
3960
+ }
3961
+ };
3962
+ const theme = (0, $f2fd0cbe11b7f0dd$export$93d4e7f90805808f)();
3963
+ const wrapperRef = $8zHUo$react.useRef(null);
3964
+ const listState = (0, $8zHUo$reactstately.useListState)(listProps);
3965
+ const { listBoxProps: listBoxProps } = (0, $8zHUo$reactaria.useListBox)(listProps, listState, wrapperRef);
3966
+ const _colors = [
3967
+ ...listState.collection
3968
+ ];
3969
+ radius = radius ?? theme?.radius ?? "md";
3970
+ return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)($799f02b9b0e744b9$var$SwatchProvider, {
3971
+ colors: colors,
3972
+ radius: radius,
3973
+ size: size,
3974
+ ...props,
3975
+ children: /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
3976
+ style: {
3977
+ ...style,
3978
+ ...styles?.wrapper
3979
+ },
3980
+ className: (0, $62f1c614c0962470$export$a274e22fb40f762e)(className, classNames?.wrapper),
3981
+ wrap: "wrap",
3982
+ ...listBoxProps,
3983
+ ref: wrapperRef,
3984
+ children: _colors.map((color, index)=>/*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)($799f02b9b0e744b9$export$47ce3797af1a0c57, {
3985
+ className: classNames?.swatch,
3986
+ style: styles?.swatch,
3987
+ state: listState,
3988
+ item: color
3989
+ }, index))
3990
+ })
3991
+ });
3992
+ }
3993
+ function $799f02b9b0e744b9$export$47ce3797af1a0c57({ item: item, state: state, style: style, className: className }) {
3994
+ const ref = $8zHUo$react.useRef(null);
3995
+ const { optionProps: optionProps, isDisabled: isDisabled, isFocusVisible: isFocusVisible, isFocused: isFocused, isPressed: isPressed, isSelected: isSelected } = (0, $8zHUo$reactaria.useOption)({
3996
+ key: item.key
3997
+ }, state, ref);
3998
+ const color = item.props.color;
3999
+ const ctx = $799f02b9b0e744b9$var$useSwatchPickerContext();
4000
+ return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)($799f02b9b0e744b9$var$ColorSwatch, {
4001
+ className: className,
4002
+ style: style,
4003
+ color: color,
4004
+ _ref: ref,
4005
+ "data-disabled": isDisabled,
4006
+ "data-selected": isSelected,
4007
+ "data-focused": isFocused,
4008
+ "data-focus-visible": isFocusVisible,
4009
+ "data-pressed": isPressed,
4010
+ "data-radius": ctx.radius,
4011
+ "data-size": ctx.size,
4012
+ ...optionProps
4013
+ });
4014
+ }
4015
+ function $799f02b9b0e744b9$var$ColorSwatch({ className: className, style: style, _ref: _ref, color: colorProp, ...props }) {
4016
+ const { colorSwatchProps: colorSwatchProps, color: color } = (0, $8zHUo$reactariacolor.useColorSwatch)({
4017
+ ...props,
4018
+ color: colorProp
4019
+ });
4020
+ return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("div", {
4021
+ ...props,
4022
+ ref: _ref,
4023
+ className: (0, $62f1c614c0962470$export$a274e22fb40f762e)("p-color-swatch", className),
4024
+ ...colorSwatchProps,
4025
+ style: {
4026
+ ...colorSwatchProps.style,
4027
+ background: color.toString("css"),
4028
+ ...style
4029
+ },
4030
+ children: /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("div", {
4031
+ className: "p-swatch-checkers"
4032
+ })
4033
+ });
4034
+ }
4035
+ const $799f02b9b0e744b9$var$SwatchPickerContext = /*#__PURE__*/ $8zHUo$react.createContext(null);
4036
+ function $799f02b9b0e744b9$var$SwatchProvider(props) {
4037
+ return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)($799f02b9b0e744b9$var$SwatchPickerContext.Provider, {
4038
+ value: props,
4039
+ children: props.children
4040
+ });
4041
+ }
4042
+ function $799f02b9b0e744b9$var$useSwatchPickerContext() {
4043
+ const ctx = $8zHUo$react.useContext($799f02b9b0e744b9$var$SwatchPickerContext);
4044
+ if (!ctx) throw new Error("SwatchPicker must be used within a SwatchPickerProvider");
4045
+ return ctx;
4046
+ }
4047
+ const $799f02b9b0e744b9$var$Color = (0, $8zHUo$reactstately.Item);
4048
+
4049
+
4050
+
4051
+
4052
+
4053
+
4054
+
4055
+
4056
+ function $7796dcb4fe09bf12$export$44fd664bcca5b6fb({ label: label, ...props }) {
4057
+ const { locale: locale } = (0, $8zHUo$reactaria.useLocale)();
4058
+ const state = (0, $8zHUo$reactstatelycolor.useColorSliderState)({
4059
+ ...props,
4060
+ locale: locale
4061
+ });
4062
+ const trackRef = $8zHUo$react.useRef(null);
4063
+ const inputRef = $8zHUo$react.useRef(null);
4064
+ const { labelProps: labelProps, trackProps: trackProps, thumbProps: thumbProps, inputProps: inputProps } = (0, $8zHUo$reactariacolor.useColorSlider)({
4065
+ ...props,
4066
+ label: label,
4067
+ "aria-label": props["aria-label"] ?? "color-slider",
4068
+ inputRef: inputRef,
4069
+ trackRef: trackRef
4070
+ }, state);
4071
+ const { focusProps: focusProps, isFocusVisible: isFocusVisible } = (0, $8zHUo$reactaria.useFocusRing)();
4072
+ return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $ec2376a5dd0d13e6$export$a455218a85c89869), {
4073
+ label: label,
4074
+ className: "p-color-slider",
4075
+ replaceDefaultControlWrapper: true,
4076
+ labelProps: labelProps,
4077
+ children: /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)("div", {
4078
+ ...trackProps,
4079
+ "data-focus-visible": isFocusVisible,
4080
+ "data-bg": trackProps.style?.background,
4081
+ className: "p-color-slider-track",
4082
+ ref: trackRef,
4083
+ style: {
4084
+ ...trackProps.style,
4085
+ background: trackProps.style?.background
4086
+ },
4087
+ children: [
4088
+ /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("div", {
4089
+ className: "p-color-slider-checkers"
4090
+ }),
4091
+ /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("div", {
4092
+ className: "p-color-slider-thumb",
4093
+ ...thumbProps,
4094
+ style: {
4095
+ ...thumbProps.style,
4096
+ background: state.getDisplayColor().toString("css")
4097
+ },
4098
+ children: /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("input", {
4099
+ ref: inputRef,
4100
+ ...inputProps,
4101
+ ...focusProps
4102
+ })
4103
+ })
4104
+ ]
4105
+ })
4106
+ });
4107
+ }
4108
+
4109
+
4110
+
4111
+ function $e93fd810053d36a8$export$6e865ea70d7724f(color) {
4112
+ // TODO: add support for rgba colors
4113
+ return (0, $8zHUo$reactstatelycolor.parseColor)(color);
4114
+ }
4115
+
4116
+
4117
+
4118
+
4119
+
4120
+
3432
4121
  //# sourceMappingURL=main.js.map