@parrot-co/parrot-ui 0.1.6 → 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,10 +48,11 @@ $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
- $parcel$export(module.exports, "Tabs", () => $4337a58f6fe87df9$export$1aaa3deaa90ea306);
54
+ $parcel$export(module.exports, "Tabs", () => $6c55ad3905040a74$export$b2539bed5023c21c);
55
+ $parcel$export(module.exports, "Tab", () => $6c55ad3905040a74$export$6d08773d2e66f8f2);
51
56
  $parcel$export(module.exports, "Table", () => $9fcb37cb330ef9cd$export$54ec01a60f47d33d);
52
57
  $parcel$export(module.exports, "Timeline", () => $9ff025417b0a683c$export$e6a97ba2cae5bb94);
53
58
  $parcel$export(module.exports, "Modal", () => $1278141024f0bc4d$export$2b77a92f1a5ad772);
@@ -61,6 +66,11 @@ $parcel$export(module.exports, "TagGroup", () => $d26053f02b9f370b$export$67ea30
61
66
  $parcel$export(module.exports, "TagGroupItem", () => $d26053f02b9f370b$export$a79147a60006308c);
62
67
  $parcel$export(module.exports, "ThemeProvider", () => $f2fd0cbe11b7f0dd$export$d8964aec282183a3);
63
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);
64
74
 
65
75
 
66
76
  function $d99c85a751d7ffbd$export$7e4aa119212bc614(value) {
@@ -164,6 +174,7 @@ const $eb8f27c3596a0e6b$export$e71c4d32a2263218 = /*#__PURE__*/ $8zHUo$react.for
164
174
 
165
175
 
166
176
 
177
+
167
178
  const $8ddcc69383feb36a$export$36308cce1deef340 = [
168
179
  "tomato",
169
180
  "red",
@@ -205,6 +216,9 @@ function $8ddcc69383feb36a$var$ps(styles) {
205
216
  }
206
217
 
207
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
+ }
208
222
  function $4af7da5c7dd0b9c2$export$d41d9ab3de2def3d(text) {
209
223
  const str = String(text);
210
224
  let hash = 0;
@@ -301,6 +315,9 @@ const $c3a954a7c0cb5109$export$f51f4c4ede09e011 = /*#__PURE__*/ $8zHUo$react.for
301
315
 
302
316
 
303
317
 
318
+
319
+
320
+
304
321
  const $88fa102d91bf323a$export$f5a10939c0132d55 = (props, ref)=>{
305
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;
306
323
  return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)(Comp, {
@@ -327,6 +344,7 @@ const $88fa102d91bf323a$export$5f1af8db9871e1d6 = /*#__PURE__*/ $8zHUo$react.for
327
344
 
328
345
  const $5a5b41d120374960$var$InputLabel = /*#__PURE__*/ (0, ($parcel$interopDefault($8zHUo$react))).forwardRef(({ children: children, className: className, color: color, ...props }, ref)=>{
329
346
  return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $88fa102d91bf323a$export$5f1af8db9871e1d6), {
347
+ ref: ref,
330
348
  size: "sm",
331
349
  color: color || "gray",
332
350
  variant: "light",
@@ -377,7 +395,7 @@ const $eae337549f49a5a2$var$SpaceContext = /*#__PURE__*/ $8zHUo$react.createCont
377
395
  classNames: {},
378
396
  compactItemWrapperAdjust: ""
379
397
  });
380
- 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 }) {
381
399
  const childrenCount = $8zHUo$react.Children.count(children);
382
400
  const nodes = $8zHUo$react.useMemo(()=>{
383
401
  return $8zHUo$react.Children.map(children, (child, index)=>{
@@ -399,20 +417,22 @@ function $eae337549f49a5a2$var$SpaceComponent({ children: children, compact: com
399
417
  }, [
400
418
  children
401
419
  ]);
402
- const realGap = compact ? "none" : gap;
403
420
  return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
404
421
  "data-compact": compact,
422
+ style: {
423
+ ...style,
424
+ ...styles?.wrapper
425
+ },
405
426
  className: (0, $62f1c614c0962470$export$a274e22fb40f762e)([
406
427
  className,
407
- "p-space"
428
+ "p-space",
429
+ classNames?.wrapper
408
430
  ]),
409
- ref: ref,
410
- gap: realGap,
431
+ gap: gap ?? "none",
411
432
  ...props,
412
433
  children: nodes
413
434
  });
414
435
  }
415
- const $eae337549f49a5a2$export$eef1e68107c58ef2 = /*#__PURE__*/ $8zHUo$react.forwardRef($eae337549f49a5a2$var$SpaceComponent);
416
436
  function $eae337549f49a5a2$export$450c36e0b0e62ccd() {
417
437
  return $8zHUo$react.useContext($eae337549f49a5a2$var$SpaceContext);
418
438
  }
@@ -449,37 +469,35 @@ function $f2fd0cbe11b7f0dd$export$93d4e7f90805808f(options) {
449
469
 
450
470
 
451
471
 
452
- 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 }) {
453
473
  const space = (0, $eae337549f49a5a2$export$450c36e0b0e62ccd)();
454
- const internalInputRef = (0, ($parcel$interopDefault($8zHUo$react))).useRef(null);
455
- const { labelProps: labelProps, inputProps: inputProps, errorMessageProps: errorMessageProps, descriptionProps: descriptionProps } = (0, $8zHUo$reactaria.useTextField)({
456
- ...props,
457
- inputElementType: "input",
458
- label: label,
459
- description: description,
460
- isDisabled: isDisabled
461
- }, internalInputRef);
462
474
  const theme = (0, $f2fd0cbe11b7f0dd$export$93d4e7f90805808f)();
463
475
  return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
476
+ ref: wrapperRef,
477
+ ...props,
464
478
  "data-color": color,
465
479
  "data-radius": radius ?? theme?.radius ?? "lg",
466
480
  "data-size": size,
467
- 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),
468
482
  stack: true,
469
- ref: ref,
470
483
  gap: "3xs",
471
- stretchX: true,
472
- style: style,
484
+ style: {
485
+ ...style,
486
+ ...styles?.wrapper
487
+ },
473
488
  children: [
474
489
  label && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $5a5b41d120374960$export$2e2bcd8739ae039), {
490
+ style: styles?.label,
491
+ className: classNames?.label,
475
492
  color: color,
476
493
  ...labelProps,
477
494
  children: label
478
495
  }),
479
- /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
496
+ !replaceDefaultControlWrapper && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
480
497
  className: (0, $62f1c614c0962470$export$a274e22fb40f762e)(space.classNames, "p-input-control"),
481
498
  "data-has-error": !!error,
482
499
  "data-appearance": appearance,
500
+ "data-disabled": isDisabled,
483
501
  stretchX: true,
484
502
  inline: true,
485
503
  position: "relative",
@@ -488,19 +506,14 @@ const $d9ffc65197682590$export$f5b8910cec6cf069 = /*#__PURE__*/ (0, ($parcel$int
488
506
  className: "add-on add-on-left",
489
507
  children: prepend
490
508
  }),
491
- /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("input", {
492
- ref: (0, $62f1c614c0962470$export$c9058316764c140e)(internalInputRef, inputRef),
493
- "data-has-left-addon": !!prepend,
494
- "data-has-right-addon": !!append,
495
- className: (0, $62f1c614c0962470$export$a274e22fb40f762e)("p-text-input-el"),
496
- ...inputProps
497
- }),
509
+ children,
498
510
  append && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
499
511
  className: "add-on add-on-right",
500
512
  children: append
501
513
  })
502
514
  ]
503
515
  }),
516
+ replaceDefaultControlWrapper && children,
504
517
  error && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $4b54f76a59afa8a5$export$2e2bcd8739ae039), {
505
518
  validationStatus: validationStatus,
506
519
  ...errorMessageProps,
@@ -511,13 +524,40 @@ const $d9ffc65197682590$export$f5b8910cec6cf069 = /*#__PURE__*/ (0, ($parcel$int
511
524
  variant: "light",
512
525
  color: "gray",
513
526
  size: "sm",
514
- lineHeight: "base",
527
+ lineHeight: "short",
515
528
  ...descriptionProps,
516
529
  children: description
517
530
  })
518
531
  ]
519
532
  });
520
- });
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
+ }
521
561
  $d9ffc65197682590$export$f5b8910cec6cf069.displayName = "Input";
522
562
 
523
563
 
@@ -646,7 +686,7 @@ const $5a6f28f3fd58ff6e$export$353f5b6fc5456de1 = /*#__PURE__*/ (0, ($parcel$int
646
686
  const space = (0, $eae337549f49a5a2$export$450c36e0b0e62ccd)();
647
687
  const buttonGroupProps = (0, $7f70742e736041ff$export$749e21be8b14b968)();
648
688
  const theme = (0, $f2fd0cbe11b7f0dd$export$93d4e7f90805808f)();
649
- 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 } = {
650
690
  ...buttonGroupProps,
651
691
  ...props
652
692
  };
@@ -677,7 +717,10 @@ const $5a6f28f3fd58ff6e$export$353f5b6fc5456de1 = /*#__PURE__*/ (0, ($parcel$int
677
717
  }
678
718
  const Comp = as;
679
719
  return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)(Comp, {
680
- style: style,
720
+ style: {
721
+ ...style,
722
+ ...styles?.base
723
+ },
681
724
  "data-is-toggle": isToggle,
682
725
  "data-pressed": isPressed,
683
726
  "data-radius": radius,
@@ -689,20 +732,19 @@ const $5a6f28f3fd58ff6e$export$353f5b6fc5456de1 = /*#__PURE__*/ (0, ($parcel$int
689
732
  "data-selected": state.isSelected,
690
733
  className: (0, $62f1c614c0962470$export$a274e22fb40f762e)((0, $4af7da5c7dd0b9c2$export$2db1d02db18b2d82)("size", size), className, "p-button", space.classNames),
691
734
  ref: (0, $62f1c614c0962470$export$c9058316764c140e)(ref, buttonRef),
692
- form: otherProps.form,
735
+ form: form,
693
736
  ...buttonProps,
694
737
  children: [
695
738
  prepend,
696
- /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("span", {
697
- style: {
698
- padding: isIconButton ? undefined : "0 6px",
699
- lineHeight: 0
700
- },
701
- children: children
702
- }),
739
+ children,
703
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
+ ]),
704
745
  style: {
705
- marginLeft: 8
746
+ marginLeft: 8,
747
+ ...styles?.loader
706
748
  },
707
749
  color: "inherit",
708
750
  size: "xs"
@@ -736,88 +778,73 @@ $3af04cd154cf4de1$export$c25acd513dcc8062.displayName = "IconButton";
736
778
 
737
779
 
738
780
 
739
-
740
-
741
-
742
-
743
- const $77c71203b3212c65$export$6bf0cd3a219bbade = /*#__PURE__*/ $8zHUo$react.forwardRef((props, ref)=>{
744
- 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
+ };
745
789
  const space = (0, $eae337549f49a5a2$export$450c36e0b0e62ccd)();
746
790
  const internalInputRef = $8zHUo$react.useRef(null);
747
791
  const { locale: locale } = (0, $8zHUo$reactaria.useLocale)();
748
792
  const state = (0, $8zHUo$reactstately.useNumberFieldState)({
749
- ...rest,
793
+ ...ariaProps,
750
794
  locale: locale
751
795
  });
752
- const { errorMessageProps: errorMessageProps, descriptionProps: descriptionProps, labelProps: labelProps, groupProps: groupProps, inputProps: inputProps, incrementButtonProps: incrementButtonProps, decrementButtonProps: decrementButtonProps } = (0, $8zHUo$reactaria.useNumberField)(rest, state, internalInputRef);
753
- const theme = (0, $f2fd0cbe11b7f0dd$export$93d4e7f90805808f)();
754
- return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
755
- stack: true,
756
- gap: "3xs",
757
- ref: ref,
758
- "data-radius": radius ?? theme?.radius ?? "lg",
759
- "data-color": color,
760
- "data-size": size,
761
- stretchX: true,
762
- className: (0, $62f1c614c0962470$export$a274e22fb40f762e)("p-input-group", space.compactItemWrapperAdjust),
763
- children: [
764
- rest.label && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $5a5b41d120374960$export$2e2bcd8739ae039), {
765
- ...labelProps,
766
- children: rest.label
767
- }),
768
- /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
769
- gap: "4xs",
770
- ...groupProps,
771
- className: "p-input-container",
772
- children: [
773
- showSteppers && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $3af04cd154cf4de1$export$c25acd513dcc8062), {
774
- ...decrementButtonProps,
775
- radius: "md",
776
- color: color,
777
- variant: "outline",
778
- size: size,
779
- children: /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $8zHUo$reacticonshi.HiMinus), {
780
- size: 20
781
- })
782
- }),
783
- /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("input", {
784
- ref: (0, $62f1c614c0962470$export$c9058316764c140e)(internalInputRef, ref),
785
- placeholder: placeholder,
786
- className: (0, $62f1c614c0962470$export$a274e22fb40f762e)("p-input-control", "space-item", className, space.classNames),
787
- "data-appearance": appearance,
788
- "data-has-left-addon": !!prepend,
789
- "data-has-right-addon": !!append,
790
- type: "text",
791
- ...inputProps
792
- }),
793
- showSteppers && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $3af04cd154cf4de1$export$c25acd513dcc8062), {
794
- ...incrementButtonProps,
795
- radius: "md",
796
- color: color,
797
- variant: "outline",
798
- size: size,
799
- children: /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $8zHUo$reacticonshi.HiPlus), {})
800
- })
801
- ]
802
- }),
803
- rest.description && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $88fa102d91bf323a$export$5f1af8db9871e1d6), {
804
- weight: "regular",
805
- size: "sm",
806
- color: "gray",
807
- variant: "light",
808
- lineHeight: "base",
809
- ...descriptionProps,
810
- as: "div",
811
- children: rest.description
812
- }),
813
- rest.error && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $4b54f76a59afa8a5$export$2e2bcd8739ae039), {
814
- ...errorMessageProps,
815
- children: rest.error
816
- })
817
- ]
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
+ })
818
846
  });
819
- });
820
- $77c71203b3212c65$export$6bf0cd3a219bbade.displayName = "NumberInput";
847
+ }
821
848
 
822
849
 
823
850
 
@@ -967,7 +994,7 @@ $0f8ef6f4acac1766$export$4aa08d5625cb8ead.displayName = "CheckboxGroup";
967
994
 
968
995
 
969
996
  const $f88e10ca2ba68239$export$48513f6b9f8ce62d = /*#__PURE__*/ (0, ($parcel$interopDefault($8zHUo$react))).forwardRef((props, ref)=>{
970
- 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;
971
998
  // check if checkbox is rendered in a group context
972
999
  const groupContext = (0, ($parcel$interopDefault($8zHUo$react))).useContext((0, $0f8ef6f4acac1766$export$f9c6924e160136d1));
973
1000
  const groupState = groupContext?.state;
@@ -991,7 +1018,11 @@ const $f88e10ca2ba68239$export$48513f6b9f8ce62d = /*#__PURE__*/ (0, ($parcel$int
991
1018
  const resolvedAppearance = appearance || groupProps?.appearance || "outline";
992
1019
  const resolvedSize = size || groupProps?.size || "md";
993
1020
  return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)("label", {
994
- 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),
995
1026
  "data-disabled": inputProps?.disabled,
996
1027
  ref: ref,
997
1028
  children: [
@@ -1004,9 +1035,16 @@ const $f88e10ca2ba68239$export$48513f6b9f8ce62d = /*#__PURE__*/ (0, ($parcel$int
1004
1035
  })
1005
1036
  }),
1006
1037
  /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)("div", {
1038
+ style: {
1039
+ ...style,
1040
+ ...styles?.checkbox
1041
+ },
1007
1042
  "data-color": resolvedColor,
1008
1043
  "data-radius": getRadius(),
1009
- className: "p-fake-checkbox",
1044
+ className: (0, $62f1c614c0962470$export$a274e22fb40f762e)([
1045
+ "p-fake-checkbox",
1046
+ classNames?.checkbox
1047
+ ]),
1010
1048
  "data-focused": isFocusVisible,
1011
1049
  "aria-hidden": "true",
1012
1050
  "data-checked": isSelected && !props.isIndeterminate,
@@ -1015,6 +1053,10 @@ const $f88e10ca2ba68239$export$48513f6b9f8ce62d = /*#__PURE__*/ (0, ($parcel$int
1015
1053
  "data-appearance": resolvedAppearance,
1016
1054
  children: [
1017
1055
  isSelected && !props.isIndeterminate && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("svg", {
1056
+ className: (0, $62f1c614c0962470$export$a274e22fb40f762e)([
1057
+ "p-checkbox-icon",
1058
+ classNames?.icon
1059
+ ]),
1018
1060
  stroke: "white",
1019
1061
  width: "0.75rem",
1020
1062
  height: "0.75rem",
@@ -1031,6 +1073,10 @@ const $f88e10ca2ba68239$export$48513f6b9f8ce62d = /*#__PURE__*/ (0, ($parcel$int
1031
1073
  })
1032
1074
  }),
1033
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
+ ]),
1034
1080
  style: {
1035
1081
  background: "var(--color-12)",
1036
1082
  width: "70%",
@@ -1061,25 +1107,39 @@ $f88e10ca2ba68239$export$48513f6b9f8ce62d.displayName = "checkbox";
1061
1107
 
1062
1108
 
1063
1109
 
1064
- 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 }) {
1065
1111
  const internalPopoverRef = $8zHUo$react.useRef(null);
1066
1112
  const theme = (0, $f2fd0cbe11b7f0dd$export$93d4e7f90805808f)();
1067
1113
  const { popoverProps: popoverProps, underlayProps: underlayProps } = (0, $8zHUo$reactaria.usePopover)({
1068
1114
  ...props,
1069
1115
  popoverRef: internalPopoverRef
1070
1116
  }, state);
1117
+ const { style: internalStyle, ...otherPopoverProps } = popoverProps;
1071
1118
  return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)((0, $8zHUo$reactaria.Overlay), {
1072
1119
  children: [
1073
1120
  /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("div", {
1074
1121
  ...underlayProps,
1075
- className: "underlay"
1122
+ style: styles?.underlay,
1123
+ className: (0, $62f1c614c0962470$export$a274e22fb40f762e)([
1124
+ "underlay",
1125
+ classNames?.underlay
1126
+ ])
1076
1127
  }),
1077
1128
  /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("div", {
1078
1129
  "data-color": theme?.color,
1079
1130
  "data-radius": theme?.radius,
1080
- ...popoverProps,
1081
1131
  ref: (0, $62f1c614c0962470$export$c9058316764c140e)(popoverRef, internalPopoverRef),
1082
- 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,
1083
1143
  children: children
1084
1144
  })
1085
1145
  ]
@@ -1333,30 +1393,38 @@ const $3b903582a5253460$export$e44a253a59704894 = {
1333
1393
 
1334
1394
 
1335
1395
 
1336
- 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 }) {
1337
1401
  const hasChildren = $8zHUo$react.Children.count(children) > 0;
1338
1402
  if (hasChildren) return children;
1339
1403
  if (items) // eslint-disable-next-line react/display-name
1340
1404
  return (item)=>{
1341
1405
  const label = item?.[labelKey ?? "label"];
1342
- const value = item?.[valueKey ?? "id"];
1406
+ const value = item?.[valueKey ?? "id" ?? "key" ?? "value"];
1343
1407
  const sectionChildren = item?.[sectionKey ?? "children"] ?? [];
1344
- 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), {
1345
1409
  items: sectionChildren,
1346
- title: getSectionLabel?.(item),
1347
- 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), {
1348
1412
  textValue: item?.[labelKey ?? "label"],
1349
- children: item?.[labelKey ?? "label"] ?? renderOption?.(item)
1350
- }, item?.[valueKey ?? "id"])
1413
+ children: renderOption?.(item) ?? item?.[labelKey ?? "label"]
1414
+ }, item?.[valueKey ?? "id" ?? "key" ?? "value"])
1351
1415
  }, value);
1352
- return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $dcfc4542aa84c062$export$36d18380658d5d20), {
1416
+ return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $86685406b084d356$export$5b7f4051a57920d0), {
1353
1417
  textValue: label,
1354
1418
  children: renderOption?.(item) ?? label
1355
- }, item?.[valueKey ?? "id"]);
1419
+ }, value);
1356
1420
  };
1357
1421
  }
1358
-
1359
-
1422
+ function $fc43ab93aaa777d9$export$4c687b6f1150e71b(props) {
1423
+ const children = $8zHUo$react.useMemo(()=>{
1424
+ return $fc43ab93aaa777d9$export$3d7d0414f6db67e7(props);
1425
+ }, []);
1426
+ return children;
1427
+ }
1360
1428
 
1361
1429
 
1362
1430
 
@@ -1371,70 +1439,74 @@ function $71edc9998a9f3b41$export$1e60abce570c2b01(props) {
1371
1439
  });
1372
1440
  }
1373
1441
  function $71edc9998a9f3b41$export$961f16f221737ce2() {
1374
- const context = $8zHUo$react.useContext($71edc9998a9f3b41$var$ListBoxContext);
1375
- if (!context) throw new Error("ListBox components must be rendered within the ListBoxProvider");
1376
- 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;
1377
1445
  }
1378
1446
 
1379
1447
 
1380
1448
 
1381
1449
 
1382
- 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);
1383
1452
  const internalState = (0, $8zHUo$reactstately.useListState)({
1384
1453
  ...props,
1385
- children: (0, $fc43ab93aaa777d9$export$3d7d0414f6db67e7)(props)
1454
+ children: children
1386
1455
  });
1387
1456
  const listRef = $8zHUo$react.useRef(null);
1388
1457
  const listState = state || internalState;
1389
- 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);
1390
1462
  const options = [
1391
1463
  ...listState.collection
1392
1464
  ];
1393
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
+ }
1394
1473
  return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $71edc9998a9f3b41$export$1e60abce570c2b01), {
1395
1474
  ...props,
1396
- showSelectedMarker: showSelectedMarker,
1397
- children: /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
1398
- "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,
1399
1483
  style: {
1400
1484
  width: width,
1401
- minWidth: 300
1485
+ ...style,
1486
+ ...styles?.wrapper
1402
1487
  },
1403
- stack: true,
1404
- gap: "md",
1405
- children: /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
1406
- as: "ul",
1407
- stack: true,
1408
- gap: "none",
1409
- className: "p-list-box-wrapper",
1410
- ref: (0, $62f1c614c0962470$export$c9058316764c140e)(listRef, listBoxRef),
1411
- "data-radius": "lg",
1412
- ...listBoxProps,
1413
- children: [
1414
- options.length === 0 && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
1415
- justify: "center",
1416
- align: "center",
1417
- style: {
1418
- height: 50
1419
- },
1420
- children: /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $88fa102d91bf323a$export$5f1af8db9871e1d6), {
1421
- color: "gray",
1422
- variant: "light",
1423
- align: "center",
1424
- children: "No Options"
1425
- })
1426
- }),
1427
- options.map((item)=>{
1428
- return item.type === "section" ? /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)($dcfc4542aa84c062$var$ListSection, {
1429
- section: item,
1430
- state: listState
1431
- }, item.key) : /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)($dcfc4542aa84c062$var$ListOption, {
1432
- state: listState,
1433
- item: item
1434
- }, item.key);
1435
- })
1436
- ]
1437
- })
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
+ ]
1438
1510
  })
1439
1511
  });
1440
1512
  }
@@ -1443,24 +1515,28 @@ function $dcfc4542aa84c062$var$ListOption({ state: state, item: item }) {
1443
1515
  const { optionProps: optionProps, isDisabled: isDisabled, isFocusVisible: isFocusVisible, isFocused: isFocused, isPressed: isPressed, isSelected: isSelected } = (0, $8zHUo$reactaria.useOption)({
1444
1516
  key: item.key
1445
1517
  }, state, optionRef);
1446
- 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;
1447
1520
  return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)("li", {
1448
- className: "p-list-option",
1521
+ style: {
1522
+ ...style,
1523
+ ...styles?.wrapper
1524
+ },
1525
+ className: (0, $62f1c614c0962470$export$a274e22fb40f762e)(className, "p-list-option", classNames?.wrapper),
1449
1526
  "data-disabled": isDisabled,
1450
1527
  "data-focus-visible": isFocusVisible,
1451
1528
  "data-focused": isFocused,
1452
1529
  "data-pressed": isPressed,
1453
1530
  "data-selected": isSelected,
1531
+ "data-color": color,
1454
1532
  ...optionProps,
1455
- ...(0, $ff6fce0e059b3a1a$export$30a06c8d3562193f)(item.props, [
1456
- "textValue"
1457
- ]),
1533
+ ...otherProps,
1458
1534
  ref: optionRef,
1459
1535
  children: [
1460
1536
  item.rendered,
1461
- isSelected && listBoxContext.props.showSelectedMarker && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $8zHUo$reacticonshi.HiCheck), {
1462
- className: "selected-marker"
1463
- })
1537
+ isSelected && showSelectionIndicator && (renderSelectionIndicator?.(item) ?? /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("div", {
1538
+ children: "x"
1539
+ }))
1464
1540
  ]
1465
1541
  });
1466
1542
  }
@@ -1470,19 +1546,25 @@ function $dcfc4542aa84c062$var$ListSection({ state: state, section: section }) {
1470
1546
  "aria-label": section["aria-label"]
1471
1547
  });
1472
1548
  const listBoxContext = (0, $71edc9998a9f3b41$export$961f16f221737ce2)();
1473
- function getChildren() {
1549
+ const { className: className, classNames: classNames, style: style, styles: styles } = section.props;
1550
+ const children = $8zHUo$react.useMemo(()=>{
1474
1551
  if (state.collection.getChildren) return [
1475
1552
  ...state.collection.getChildren(section.key)
1476
1553
  ];
1477
1554
  return [];
1478
- }
1555
+ }, []);
1479
1556
  return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
1480
1557
  gap: "sm",
1481
1558
  stack: true,
1482
- className: "p-list-section",
1559
+ className: (0, $62f1c614c0962470$export$a274e22fb40f762e)(className, "p-list-section", classNames?.wrapper),
1560
+ style: {
1561
+ ...style,
1562
+ ...styles?.wrapper
1563
+ },
1483
1564
  children: [
1484
- section.key !== state.collection.getFirstKey() && listBoxContext.props.showSeparator && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("li", {
1485
- 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)
1486
1568
  }),
1487
1569
  /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
1488
1570
  gap: "none",
@@ -1490,20 +1572,18 @@ function $dcfc4542aa84c062$var$ListSection({ state: state, section: section }) {
1490
1572
  as: "li",
1491
1573
  ...itemProps,
1492
1574
  children: [
1493
- section.rendered && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("div", {
1494
- className: "p-list-section-header",
1495
- children: /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $88fa102d91bf323a$export$5f1af8db9871e1d6), {
1496
- weight: "regular",
1497
- size: "xs",
1498
- as: "div",
1499
- variant: "light",
1500
- ...headingProps,
1501
- children: section.rendered
1502
- })
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
1503
1582
  }),
1504
1583
  /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("ul", {
1584
+ className: (0, $62f1c614c0962470$export$a274e22fb40f762e)(classNames?.items),
1505
1585
  ...groupProps,
1506
- children: getChildren().map((node)=>{
1586
+ children: children.map((node)=>{
1507
1587
  return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)($dcfc4542aa84c062$var$ListOption, {
1508
1588
  item: node,
1509
1589
  state: state
@@ -1515,8 +1595,7 @@ function $dcfc4542aa84c062$var$ListSection({ state: state, section: section }) {
1515
1595
  ]
1516
1596
  });
1517
1597
  }
1518
- const $dcfc4542aa84c062$export$36d18380658d5d20 = (0, $8zHUo$reactstately.Item);
1519
- const $dcfc4542aa84c062$export$6e2c8f0811a474ce = (0, $8zHUo$reactstately.Section);
1598
+
1520
1599
 
1521
1600
 
1522
1601
 
@@ -1789,7 +1868,6 @@ $71fcf48f7e2e9427$export$f8afaea2e9656b91.displayName = "RadioCard";
1789
1868
 
1790
1869
 
1791
1870
 
1792
-
1793
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)=>{
1794
1872
  const randomColor = (0, ($parcel$interopDefault($8zHUo$react))).useMemo(()=>{
1795
1873
  if (hashValue) return (0, $4af7da5c7dd0b9c2$export$e4369cabd7e84cd9)(hashValue);
@@ -1821,44 +1899,46 @@ $cfadb0728cf907ff$export$3288d34c523a1192.displayName = "Tag";
1821
1899
 
1822
1900
 
1823
1901
 
1824
-
1825
-
1826
- 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 }) {
1827
1903
  const isMultiple = selectionMode === "multiple";
1828
- function getValue(value) {
1904
+ const _value = $8zHUo$react.useMemo(()=>{
1829
1905
  if (!value) return null;
1830
1906
  if (selectionMode === "single") return [
1831
1907
  value
1832
1908
  ];
1833
1909
  if (isMultiple && !(0, $d99c85a751d7ffbd$export$43bee75e5e14138e)(value)) throw new Error("Select: value must be an array when selectionMode is multiple");
1834
1910
  return value;
1835
- }
1836
- function onSelectionChange(selectedKeys) {
1837
- onChange?.({
1838
- target: {
1839
- value: isMultiple ? selectedKeys : selectedKeys[0],
1840
- name: props.name
1841
- }
1842
- });
1843
- }
1911
+ }, [
1912
+ value,
1913
+ selectionMode
1914
+ ]);
1915
+ const children = (0, $fc43ab93aaa777d9$export$4c687b6f1150e71b)(props);
1844
1916
  const space = (0, $eae337549f49a5a2$export$450c36e0b0e62ccd)();
1845
1917
  const triggerState = (0, $8zHUo$reactstately.useMenuTriggerState)({});
1846
1918
  const listState = (0, $8zHUo$reactstately.useListState)({
1847
1919
  ...props,
1848
- selectedKeys: getValue(value),
1849
- defaultSelectedKeys: getValue(defaultValue),
1920
+ selectedKeys: _value,
1921
+ defaultSelectedKeys: _value,
1850
1922
  selectionMode: selectionMode,
1851
- children: (0, $fc43ab93aaa777d9$export$3d7d0414f6db67e7)(props),
1923
+ children: children,
1852
1924
  onSelectionChange (keys) {
1853
- onSelectionChange([
1925
+ const keysToArray = [
1854
1926
  ...keys
1855
- ]);
1927
+ ];
1928
+ onSelectionChange?.(keysToArray);
1929
+ onChange?.({
1930
+ target: {
1931
+ value: isMultiple ? keysToArray : keysToArray[0],
1932
+ name: props.name
1933
+ }
1934
+ });
1856
1935
  if (!isMultiple) triggerState.close();
1857
1936
  }
1858
1937
  });
1859
1938
  const triggerRef = $8zHUo$react.useRef(null);
1860
1939
  const theme = (0, $f2fd0cbe11b7f0dd$export$93d4e7f90805808f)();
1861
- const { menuTriggerProps: menuTriggerProps } = (0, $8zHUo$reactaria.useMenuTrigger)({
1940
+ color = color ?? theme?.color;
1941
+ const { menuTriggerProps: menuTriggerProps, menuProps: menuProps } = (0, $8zHUo$reactaria.useMenuTrigger)({
1862
1942
  type: "listbox",
1863
1943
  trigger: "press",
1864
1944
  isDisabled: false
@@ -1867,8 +1947,10 @@ function $e37831ebf64d8e7d$export$ef9b1a59e592288f({ label: label, selectionMode
1867
1947
  const selectedItems = [
1868
1948
  ...listState.selectionManager.selectedKeys
1869
1949
  ].map((item)=>listState.collection.getItem(item));
1870
- function content() {
1950
+ const content = $8zHUo$react.useMemo(()=>{
1871
1951
  if (selectedItems.length === 0) return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $88fa102d91bf323a$export$5f1af8db9871e1d6), {
1952
+ style: styles?.placeholder,
1953
+ className: classNames?.placeholder,
1872
1954
  color: color,
1873
1955
  variant: "lighter",
1874
1956
  children: props.placeholder
@@ -1876,67 +1958,64 @@ function $e37831ebf64d8e7d$export$ef9b1a59e592288f({ label: label, selectionMode
1876
1958
  if (isMultiple) return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
1877
1959
  gap: "3xs",
1878
1960
  wrap: "wrap",
1879
- children: selectedItems.map((item)=>/*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $cfadb0728cf907ff$export$3288d34c523a1192), {
1880
- append: /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $8zHUo$reacticonshi.HiX), {}),
1881
- 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,
1882
1965
  children: item?.textValue
1883
1966
  }, item?.key))
1884
1967
  });
1885
1968
  return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $88fa102d91bf323a$export$5f1af8db9871e1d6), {
1969
+ as: "div",
1886
1970
  variant: "default",
1887
1971
  color: color === "gray" ? "black" : color,
1888
- className: "single-value",
1972
+ className: (0, $62f1c614c0962470$export$a274e22fb40f762e)("single-value", classNames?.value),
1973
+ style: styles?.value,
1889
1974
  children: renderValue?.(selectedItems[0]?.value) ?? selectedItems[0]?.value?.[props.labelKey ?? "label"] ?? selectedItems[0]?.textValue
1890
1975
  });
1891
- }
1892
- return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)((0, $eb8f27c3596a0e6b$export$e71c4d32a2263218), {
1893
- style: style,
1894
- as: "span",
1895
- position: "relative",
1896
- 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
+ },
1897
1987
  children: [
1898
- /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
1899
- "data-radius": radius ?? theme?.radius ?? "lg",
1900
- gap: "3xs",
1901
- stack: true,
1902
- className: (0, $62f1c614c0962470$export$a274e22fb40f762e)("p-input-group", className, space.compactItemWrapperAdjust),
1903
- "data-size": size,
1904
- "data-color": color ?? "gray",
1905
- children: [
1906
- label && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $5a5b41d120374960$export$2e2bcd8739ae039), {
1907
- color: color,
1908
- children: label
1909
- }),
1910
- /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)("div", {
1911
- "data-selection-mode": selectionMode,
1912
- tabIndex: 0,
1913
- role: "button",
1914
- ref: triggerRef,
1915
- color: "gray",
1916
- className: (0, $62f1c614c0962470$export$a274e22fb40f762e)("p-input-control", "p-select", space.classNames),
1917
- "data-appearance": appearance,
1918
- ...triggerProps,
1919
- children: [
1920
- content(),
1921
- /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $8zHUo$reacticonshi.HiSelector), {
1922
- className: "selector",
1923
- size: 18
1924
- })
1925
- ]
1926
- }),
1927
- error && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $4b54f76a59afa8a5$export$2e2bcd8739ae039), {
1928
- children: error
1929
- }),
1930
- description && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $88fa102d91bf323a$export$5f1af8db9871e1d6), {
1931
- as: "div",
1932
- variant: "light",
1933
- color: "gray",
1934
- size: "sm",
1935
- children: description
1936
- })
1937
- ]
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
+ })
1938
2015
  }),
1939
2016
  triggerState.isOpen && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $9a1eb1c261c8b852$export$91527519cfe8e396), {
2017
+ className: classNames?.popover,
2018
+ style: styles?.popover,
1940
2019
  placement: "bottom start",
1941
2020
  offset: 4,
1942
2021
  shouldUpdatePosition: true,
@@ -1944,12 +2023,13 @@ function $e37831ebf64d8e7d$export$ef9b1a59e592288f({ label: label, selectionMode
1944
2023
  state: triggerState,
1945
2024
  children: /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $dcfc4542aa84c062$export$41f133550aa26f48), {
1946
2025
  label: label,
1947
- showSeparator: props.showSeparator,
1948
- showSelectedMarker: props.showSelectedMarker,
2026
+ showSectionSeparator: showSectionSeparator,
2027
+ showSelectionIndicator: showSelectionIndicator,
1949
2028
  width: triggerRef.current?.getBoundingClientRect().width,
1950
2029
  color: listBoxColor ?? "gray",
1951
2030
  shouldFocusOnHover: true,
1952
2031
  state: listState,
2032
+ ...menuProps,
1953
2033
  ...props
1954
2034
  })
1955
2035
  })
@@ -1972,6 +2052,7 @@ function $e37831ebf64d8e7d$export$ef9b1a59e592288f({ label: label, selectionMode
1972
2052
 
1973
2053
 
1974
2054
 
2055
+
1975
2056
  function $5a757815ed1b91e3$var$createCalendar() {
1976
2057
  return new (0, $8zHUo$internationalizeddate.GregorianCalendar)();
1977
2058
  }
@@ -2348,13 +2429,15 @@ $e0a58c83d4c36e4e$export$7edc06cf1783b30f.displayName = "DateInput";
2348
2429
 
2349
2430
 
2350
2431
 
2351
- 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)=>{
2352
2433
  const [imageError, setImageError] = $8zHUo$react.useState(false);
2353
2434
  const theme = (0, $f2fd0cbe11b7f0dd$export$93d4e7f90805808f)();
2354
2435
  function getAvatarRadius() {
2355
- if (theme?.avatarRadiusSize && shape !== "circle") return theme.avatarRadiusSize;
2356
- if (shape === "circle") return "full";
2357
- 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;
2358
2441
  }
2359
2442
  const defaultColor = $8zHUo$react.useMemo(()=>{
2360
2443
  const hash = (0, $4af7da5c7dd0b9c2$export$d41d9ab3de2def3d)(name || "");
@@ -2364,6 +2447,10 @@ const $2fdd5844efb4cca1$export$e2255cf6045e8d47 = /*#__PURE__*/ $8zHUo$react.for
2364
2447
  ]);
2365
2448
  const renderContent = ()=>{
2366
2449
  if (src && !imageError) return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("img", {
2450
+ className: (0, $62f1c614c0962470$export$a274e22fb40f762e)([
2451
+ "avatar-img",
2452
+ classNames?.img
2453
+ ]),
2367
2454
  onLoad: ()=>setImageError(false),
2368
2455
  onError: ()=>setImageError(true),
2369
2456
  src: src,
@@ -2371,14 +2458,24 @@ const $2fdd5844efb4cca1$export$e2255cf6045e8d47 = /*#__PURE__*/ $8zHUo$react.for
2371
2458
  });
2372
2459
  if (imageError && !children) return fallback;
2373
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
+ ]),
2374
2466
  children: name.charAt(0)
2375
2467
  });
2376
2468
  return children;
2377
2469
  };
2378
2470
  return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("div", {
2471
+ style: {
2472
+ ...style,
2473
+ ...styles?.base
2474
+ },
2379
2475
  className: (0, $62f1c614c0962470$export$a274e22fb40f762e)([
2380
2476
  "p-avatar",
2381
- className
2477
+ className,
2478
+ classNames?.base
2382
2479
  ]),
2383
2480
  "data-radius": getAvatarRadius(),
2384
2481
  "data-color": color ?? defaultColor,
@@ -2745,8 +2842,97 @@ $c5c6f63b49c9056a$export$b5d5cf8927ab7262.displayName = "Switch";
2745
2842
 
2746
2843
 
2747
2844
 
2748
- function $de38c06a5c24ee45$export$dbada5ace43900dd(props) {
2749
- 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
+ });
2750
2936
  }
2751
2937
 
2752
2938
 
@@ -2878,13 +3064,8 @@ function $6c55ad3905040a74$var$TabPanel({ state: state, ...props }) {
2878
3064
  });
2879
3065
  }
2880
3066
  const $6c55ad3905040a74$export$6d08773d2e66f8f2 = (0, $8zHUo$reactstately.Item);
2881
- $6c55ad3905040a74$export$b2539bed5023c21c.displayName = "Tabs";
2882
3067
 
2883
3068
 
2884
- const $4337a58f6fe87df9$export$1aaa3deaa90ea306 = {
2885
- Item: (0, $6c55ad3905040a74$export$6d08773d2e66f8f2),
2886
- Root: (0, $6c55ad3905040a74$export$b2539bed5023c21c)
2887
- };
2888
3069
 
2889
3070
 
2890
3071
 
@@ -3299,7 +3480,7 @@ function $0f347092d3465402$export$7dacb05d26466c3({ children: children }) {
3299
3480
  ...triggerProps
3300
3481
  });
3301
3482
  }
3302
- 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 }) {
3303
3484
  const ctx = $8zHUo$react.useContext($0f347092d3465402$var$PopoverContext);
3304
3485
  if (!ctx) throw "PopoverContent must be used withing a Popover component";
3305
3486
  if (!ctx.overlayState?.isOpen) return null;
@@ -3314,7 +3495,6 @@ function $0f347092d3465402$export$d7e1f420b25549ff({ children: children, offset:
3314
3495
  "data-radius": "md",
3315
3496
  className: (0, $62f1c614c0962470$export$a274e22fb40f762e)(className, "p-popover-content"),
3316
3497
  style: {
3317
- width: width,
3318
3498
  ...style
3319
3499
  },
3320
3500
  children: children
@@ -3433,4 +3613,509 @@ const $d26053f02b9f370b$export$a79147a60006308c = (0, $8zHUo$reactstately.Item);
3433
3613
 
3434
3614
 
3435
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
+
3436
4121
  //# sourceMappingURL=main.js.map