@max-ts/kit 1.1.1 → 1.2.0

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/lib/index.mjs CHANGED
@@ -4,16 +4,16 @@ import clsx_0, { clsx } from "clsx";
4
4
  import { ArrowDownNarrowWide, ArrowDownUp, ArrowDownWideNarrow, Calendar1, Check, CheckIcon, ChevronDown, ChevronDownIcon, ChevronLeft, ChevronRight, ChevronRightIcon, ChevronUp, CircleCheck, CircleIcon, Copy, Ellipsis as external_lucide_react_Ellipsis, EllipsisVertical, Info, MoreHorizontalIcon, OctagonAlert, PanelLeftIcon, TriangleAlert, XIcon } from "lucide-react";
5
5
  import { AlertDialog } from "@base-ui/react/alert-dialog";
6
6
  import { Button } from "@base-ui/react/button";
7
+ import react, { createContext, createElement, useCallback, useContext, useEffect, useId, useLayoutEffect, useMemo, useRef, useState } from "react";
8
+ import { Combobox } from "@base-ui/react/combobox";
7
9
  import { Avatar } from "@base-ui/react/avatar";
8
10
  import { mergeProps } from "@base-ui/react/merge-props";
9
11
  import { useRender } from "@base-ui/react/use-render";
10
12
  import { Separator as separator_Separator } from "@base-ui/react/separator";
11
13
  import { DayPicker } from "react-day-picker";
12
14
  import { ru } from "react-day-picker/locale";
13
- import react, { createContext, createElement, useCallback, useContext, useEffect, useId, useLayoutEffect, useMemo, useRef, useState } from "react";
14
15
  import embla_carousel_react from "embla-carousel-react";
15
16
  import { Collapsible } from "@base-ui/react/collapsible";
16
- import { Combobox } from "@base-ui/react/combobox";
17
17
  import { Popover } from "@base-ui/react/popover";
18
18
  import { Tooltip } from "@base-ui/react/tooltip";
19
19
  import { Menu } from "@base-ui/react/menu";
@@ -272,17 +272,485 @@ AlertDialog_AlertDialog.Title = Title;
272
272
  AlertDialog_AlertDialog.Description = Description;
273
273
  AlertDialog_AlertDialog.Action = Action;
274
274
  AlertDialog_AlertDialog.Cancel = Cancel;
275
+ var addon = 'style__1rv6t1j1';
276
+ var addonAlign = {
277
+ 'inline-start': 'inline-start__1rv6t1j2',
278
+ 'inline-end': 'inline-end__1rv6t1j3',
279
+ 'block-start': 'block-start__1rv6t1j4',
280
+ 'block-end': 'block-end__1rv6t1j5'
281
+ };
282
+ var styles_css_button = 'style__1rv6t1j6';
283
+ var buttonSize = {
284
+ xs: 'xs__1rv6t1j7',
285
+ sm: 'sm__1rv6t1j8',
286
+ 'icon-xs': 'icon-xs__1rv6t1j9',
287
+ 'icon-sm': 'icon-sm__1rv6t1ja'
288
+ };
289
+ var control = 'style__1rv6t1jc';
290
+ var input = 'style__1rv6t1jd';
291
+ var styles_css_root = 'style__1rv6t1j0';
292
+ var styles_css_text = 'style__1rv6t1jb';
293
+ var styles_css_textarea = 'style__1rv6t1je';
294
+ function InputGroup({ className, ...props }) {
295
+ return /*#__PURE__*/ jsx("div", {
296
+ "data-slot": "input-group",
297
+ className: clsx(styles_css_root, className),
298
+ ...props
299
+ });
300
+ }
301
+ function Addon({ className, align = 'inline-start', ...props }) {
302
+ return /*#__PURE__*/ jsx("div", {
303
+ "data-slot": "input-group-addon",
304
+ "data-align": align,
305
+ className: clsx(addon, addonAlign[align], className),
306
+ ...props
307
+ });
308
+ }
309
+ function InputGroup_Button({ className, type = 'button', variant = 'ghost', size = 'xs', ...props }) {
310
+ return /*#__PURE__*/ jsx(Button_Button, {
311
+ type: type,
312
+ "data-size": size,
313
+ variant: variant,
314
+ className: clsx(styles_css_button, buttonSize[size], className),
315
+ ...props
316
+ });
317
+ }
318
+ function Text({ className, ...props }) {
319
+ return /*#__PURE__*/ jsx("span", {
320
+ "data-slot": "input-group-text",
321
+ className: clsx(styles_css_text, className),
322
+ ...props
323
+ });
324
+ }
325
+ function Input({ className, ...props }) {
326
+ return /*#__PURE__*/ jsx("input", {
327
+ "data-slot": "input-group-control",
328
+ className: clsx(control, input, className),
329
+ ...props
330
+ });
331
+ }
332
+ function Textarea({ className, ...props }) {
333
+ return /*#__PURE__*/ jsx("textarea", {
334
+ "data-slot": "input-group-control",
335
+ className: clsx(control, styles_css_textarea, className),
336
+ ...props
337
+ });
338
+ }
339
+ InputGroup.Addon = Addon;
340
+ InputGroup.Button = InputGroup_Button;
341
+ InputGroup.Text = Text;
342
+ InputGroup.Input = Input;
343
+ InputGroup.Textarea = Textarea;
344
+ var chip = 'style__1udu12rh';
345
+ var chipRemove = 'style__1udu12rj';
346
+ var chipRemoveButton = 'style__1udu12rk';
347
+ var chipRemoveSize = {
348
+ 'icon-xs': 'icon-xs__1udu12rm'
349
+ };
350
+ var chipWithRemove = 'style__1udu12ri';
351
+ var chips = 'style__1udu12rg';
352
+ var chipsInput = 'style__1udu12rl';
353
+ var clearIcon = 'style__1udu12r4';
354
+ var Combobox_styles_css_content = 'style__1udu12r9';
355
+ var controlButton = 'style__1udu12r5';
356
+ var empty = 'style__1udu12re';
357
+ var groupLabel = 'style__1udu12rd';
358
+ var inputGroup = 'style__1udu12r6';
359
+ var inputTrigger = 'style__1udu12r7';
360
+ var Combobox_styles_css_item = 'style__1udu12rb';
361
+ var itemIndicator = 'style__1udu12rc';
362
+ var list = 'style__1udu12ra';
363
+ var positioner = 'style__1udu12r8';
364
+ var styles_css_separator = 'style__1udu12rf';
365
+ var Combobox_styles_css_trigger = 'style__1udu12r2';
366
+ var styles_css_triggerIcon = 'style__1udu12r3';
367
+ function Combobox_Combobox(props) {
368
+ return /*#__PURE__*/ jsx(Combobox.Root, {
369
+ "data-slot": "combobox",
370
+ ...props
371
+ });
372
+ }
373
+ function Value(props) {
374
+ return /*#__PURE__*/ jsx(Combobox.Value, {
375
+ ...props
376
+ });
377
+ }
378
+ function Combobox_Trigger({ className, children, ...props }) {
379
+ return /*#__PURE__*/ jsxs(Combobox.Trigger, {
380
+ "data-slot": "combobox-trigger",
381
+ className: clsx(controlButton, Combobox_styles_css_trigger, className),
382
+ ...props,
383
+ children: [
384
+ children,
385
+ /*#__PURE__*/ jsx(ChevronDownIcon, {
386
+ className: styles_css_triggerIcon
387
+ })
388
+ ]
389
+ });
390
+ }
391
+ function Clear({ className, children, ...props }) {
392
+ return /*#__PURE__*/ jsx(Combobox.Clear, {
393
+ "data-slot": "combobox-clear",
394
+ className: clsx(controlButton, className),
395
+ ...props,
396
+ children: children ?? /*#__PURE__*/ jsx(XIcon, {
397
+ className: clearIcon
398
+ })
399
+ });
400
+ }
401
+ function Combobox_Input({ className, children, disabled = false, showTrigger = true, showClear = false, ...props }) {
402
+ return /*#__PURE__*/ jsxs(Combobox.InputGroup, {
403
+ render: /*#__PURE__*/ jsx(InputGroup, {
404
+ className: clsx(inputGroup, className)
405
+ }),
406
+ children: [
407
+ /*#__PURE__*/ jsx(Combobox.Input, {
408
+ render: /*#__PURE__*/ jsx(InputGroup.Input, {
409
+ disabled: disabled
410
+ }),
411
+ disabled: disabled,
412
+ ...props
413
+ }),
414
+ /*#__PURE__*/ jsxs(InputGroup.Addon, {
415
+ align: "inline-end",
416
+ children: [
417
+ showTrigger && /*#__PURE__*/ jsx(Combobox_Trigger, {
418
+ className: inputTrigger,
419
+ disabled: disabled
420
+ }),
421
+ showClear && /*#__PURE__*/ jsx(Clear, {
422
+ disabled: disabled
423
+ })
424
+ ]
425
+ }),
426
+ children
427
+ ]
428
+ });
429
+ }
430
+ function Combobox_Content({ className, side = 'bottom', sideOffset = 8, align = 'start', alignOffset = 0, anchor, ...props }) {
431
+ return /*#__PURE__*/ jsx(Combobox.Portal, {
432
+ children: /*#__PURE__*/ jsx(Combobox.Positioner, {
433
+ side: side,
434
+ sideOffset: sideOffset,
435
+ align: align,
436
+ alignOffset: alignOffset,
437
+ anchor: anchor,
438
+ className: positioner,
439
+ children: /*#__PURE__*/ jsx(Combobox.Popup, {
440
+ "data-slot": "combobox-content",
441
+ "data-chips": anchor ? 'true' : void 0,
442
+ className: clsx(Combobox_styles_css_content, className),
443
+ ...props
444
+ })
445
+ })
446
+ });
447
+ }
448
+ function List({ className, ...props }) {
449
+ return /*#__PURE__*/ jsx(Combobox.List, {
450
+ "data-slot": "combobox-list",
451
+ className: clsx(list, className),
452
+ ...props
453
+ });
454
+ }
455
+ function Combobox_Item({ className, children, ...props }) {
456
+ return /*#__PURE__*/ jsxs(Combobox.Item, {
457
+ "data-slot": "combobox-item",
458
+ className: clsx(Combobox_styles_css_item, className),
459
+ ...props,
460
+ children: [
461
+ children,
462
+ /*#__PURE__*/ jsx(Combobox.ItemIndicator, {
463
+ className: itemIndicator,
464
+ children: /*#__PURE__*/ jsx(CheckIcon, {})
465
+ })
466
+ ]
467
+ });
468
+ }
469
+ function Group({ ...props }) {
470
+ return /*#__PURE__*/ jsx(Combobox.Group, {
471
+ "data-slot": "combobox-group",
472
+ ...props
473
+ });
474
+ }
475
+ function GroupLabel({ className, ...props }) {
476
+ return /*#__PURE__*/ jsx(Combobox.GroupLabel, {
477
+ "data-slot": "combobox-group-label",
478
+ className: clsx(groupLabel, className),
479
+ ...props
480
+ });
481
+ }
482
+ function Collection(props) {
483
+ return /*#__PURE__*/ jsx(Combobox.Collection, {
484
+ ...props
485
+ });
486
+ }
487
+ function Empty({ className, ...props }) {
488
+ return /*#__PURE__*/ jsx(Combobox.Empty, {
489
+ "data-slot": "combobox-empty",
490
+ className: clsx(empty, className),
491
+ ...props
492
+ });
493
+ }
494
+ function Separator({ className, ...props }) {
495
+ return /*#__PURE__*/ jsx(Combobox.Separator, {
496
+ "data-slot": "combobox-separator",
497
+ className: clsx(styles_css_separator, className),
498
+ ...props
499
+ });
500
+ }
501
+ function Chips({ className, ...props }) {
502
+ return /*#__PURE__*/ jsx(Combobox.Chips, {
503
+ "data-slot": "combobox-chips",
504
+ className: clsx(chips, className),
505
+ ...props
506
+ });
507
+ }
508
+ function Chip({ className, children, showRemove = true, ...props }) {
509
+ return /*#__PURE__*/ jsxs(Combobox.Chip, {
510
+ "data-slot": "combobox-chip",
511
+ className: clsx(chip, {
512
+ [chipWithRemove]: showRemove
513
+ }, className),
514
+ ...props,
515
+ children: [
516
+ children,
517
+ showRemove && /*#__PURE__*/ jsx(Combobox.ChipRemove, {
518
+ className: clsx(chipRemove, chipRemoveButton, chipRemoveSize["icon-xs"]),
519
+ "data-slot": "combobox-chip-remove",
520
+ children: /*#__PURE__*/ jsx(XIcon, {})
521
+ })
522
+ ]
523
+ });
524
+ }
525
+ function ChipsInput({ className, ...props }) {
526
+ return /*#__PURE__*/ jsx(Combobox.Input, {
527
+ "data-slot": "combobox-chip-input",
528
+ className: clsx(chipsInput, className),
529
+ ...props
530
+ });
531
+ }
532
+ function useComboboxAnchor() {
533
+ return useRef(null);
534
+ }
535
+ Combobox_Combobox.Value = Value;
536
+ Combobox_Combobox.Trigger = Combobox_Trigger;
537
+ Combobox_Combobox.Clear = Clear;
538
+ Combobox_Combobox.Input = Combobox_Input;
539
+ Combobox_Combobox.Content = Combobox_Content;
540
+ Combobox_Combobox.List = List;
541
+ Combobox_Combobox.Item = Combobox_Item;
542
+ Combobox_Combobox.Group = Group;
543
+ Combobox_Combobox.GroupLabel = GroupLabel;
544
+ Combobox_Combobox.Collection = Collection;
545
+ Combobox_Combobox.Empty = Empty;
546
+ Combobox_Combobox.Separator = Separator;
547
+ Combobox_Combobox.Chips = Chips;
548
+ Combobox_Combobox.Chip = Chip;
549
+ Combobox_Combobox.ChipsInput = ChipsInput;
550
+ var label_css_disabled = 'style__c31e141';
551
+ var label_css_error = 'style__c31e142';
552
+ var label_css_required = 'style__c31e143';
553
+ var label_css_root = 'Label__c31e140';
554
+ const Label = ({ className, disabled, error, ...props })=>/*#__PURE__*/ jsx("label", {
555
+ "data-slot": "label",
556
+ className: clsx(label_css_root, {
557
+ [label_css_disabled]: disabled,
558
+ [label_css_error]: error,
559
+ [label_css_required]: props.required
560
+ }, className),
561
+ ...props
562
+ });
563
+ var alignments = {
564
+ left: 'left__1sba6zok',
565
+ center: 'center__1sba6zol',
566
+ right: 'right__1sba6zom',
567
+ justify: 'justify__1sba6zon'
568
+ };
569
+ var colors = {
570
+ primary: 'primary__1sba6zoc',
571
+ secondary: 'secondary__1sba6zod',
572
+ disabled: 'disabled__1sba6zoe',
573
+ success: 'success__1sba6zof',
574
+ error: 'error__1sba6zog',
575
+ warning: 'warning__1sba6zoh',
576
+ info: 'info__1sba6zoi',
577
+ muted: 'muted__1sba6zoj'
578
+ };
579
+ var decorations = {
580
+ none: 'none__1sba6zox',
581
+ underline: 'underline__1sba6zoy',
582
+ lineThrough: 'lineThrough__1sba6zoz'
583
+ };
584
+ var displays = {
585
+ block: 'block__1sba6zoo',
586
+ inline: 'inline__1sba6zop'
587
+ };
588
+ var gutterBottomClass = 'style__1sba6zo10';
589
+ var transforms = {
590
+ lowercase: 'lowercase__1sba6zou',
591
+ uppercase: 'uppercase__1sba6zov',
592
+ capitalize: 'capitalize__1sba6zow'
593
+ };
594
+ var variants = {
595
+ h1: 'h1__1sba6zo0',
596
+ h2: 'h2__1sba6zo1',
597
+ h3: 'h3__1sba6zo2',
598
+ h4: 'h4__1sba6zo3',
599
+ h5: 'h5__1sba6zo4',
600
+ h6: 'h6__1sba6zo5',
601
+ subtitle1: 'subtitle1__1sba6zo6',
602
+ subtitle2: 'subtitle2__1sba6zo7',
603
+ body1: 'body1__1sba6zo8',
604
+ body2: 'body2__1sba6zo9',
605
+ caption: 'caption__1sba6zoa',
606
+ overline: 'overline__1sba6zob'
607
+ };
608
+ var weights = {
609
+ normal: 'normal__1sba6zoq',
610
+ medium: 'medium__1sba6zor',
611
+ semibold: 'semibold__1sba6zos',
612
+ bold: 'bold__1sba6zot'
613
+ };
614
+ const VARIANT_COMPONENT_MAP = {
615
+ h1: 'h1',
616
+ h2: 'h2',
617
+ h3: 'h3',
618
+ h4: 'h4',
619
+ h5: 'h5',
620
+ h6: 'h6',
621
+ subtitle1: 'h6',
622
+ subtitle2: 'h6',
623
+ body1: 'p',
624
+ body2: 'p',
625
+ caption: 'span',
626
+ overline: 'span'
627
+ };
628
+ const Typography = ({ className, variant = 'body1', component, color = 'primary', align = 'left', display = 'inline', weight = 'normal', transform, decoration = 'none', gutterBottom, children, ...props })=>{
629
+ const Component = component || VARIANT_COMPONENT_MAP[variant || 'body1'];
630
+ return /*#__PURE__*/ jsx(Component, {
631
+ className: clsx(decorations[decoration], variants[variant], colors[color], weights[weight], transform && transforms[transform], displays[display], alignments[align], {
632
+ [gutterBottomClass]: gutterBottom
633
+ }, className),
634
+ ...props,
635
+ children: children
636
+ });
637
+ };
638
+ var styles_css_disabled = 'style__17arfox5';
639
+ var styles_css_error = 'style__17arfox4';
640
+ var styles_css_field = 'style__17arfox0';
641
+ var styles_css_fullWidth = 'style__17arfox1';
642
+ var styles_css_helperText = 'style__17arfox3';
643
+ var styles_css_label = 'style__17arfox2';
644
+ function defaultGetOptionLabel(option) {
645
+ return 'string' == typeof option ? option : String(option);
646
+ }
647
+ function Autocomplete(props) {
648
+ const { className, contentClassName, defaultValue, disabled = false, error = false, fullWidth = false, getOptionLabel = defaultGetOptionLabel, getOptionValue = getOptionLabel, helperText, id, inputClassName, isOptionEqualToValue, label, labelClassName, multiple, noOptionsText = 'No results found', onChange, options, placeholder, renderOption, required, style, value, ...rootProps } = props;
649
+ const generatedId = useId();
650
+ const inputId = id ?? (label ? generatedId : void 0);
651
+ const anchor = useComboboxAnchor();
652
+ const [innerValue, setInnerValue] = useState(defaultValue ?? (multiple ? [] : null));
653
+ const selectedValue = value ?? innerValue;
654
+ const invalid = error ? true : void 0;
655
+ const handleChange = (nextValue)=>{
656
+ if (void 0 === value) setInnerValue(nextValue);
657
+ if (multiple) return void onChange?.(Array.isArray(nextValue) ? nextValue : []);
658
+ onChange?.(nextValue);
659
+ };
660
+ const isEqual = isOptionEqualToValue ?? ((option, selectedOption)=>getOptionValue(option) === getOptionValue(selectedOption));
661
+ const renderItem = (option)=>/*#__PURE__*/ jsx(Combobox_Combobox.Item, {
662
+ value: option,
663
+ children: renderOption?.(option) ?? getOptionLabel(option)
664
+ }, getOptionValue(option));
665
+ return /*#__PURE__*/ jsxs("div", {
666
+ style: style,
667
+ className: clsx(styles_css_field, {
668
+ [styles_css_fullWidth]: fullWidth
669
+ }, className),
670
+ children: [
671
+ label && /*#__PURE__*/ jsx(Label, {
672
+ htmlFor: inputId,
673
+ disabled: disabled,
674
+ required: required,
675
+ error: error,
676
+ className: clsx(styles_css_label, labelClassName),
677
+ children: label
678
+ }),
679
+ /*#__PURE__*/ jsxs(Combobox_Combobox, {
680
+ ...rootProps,
681
+ disabled: disabled,
682
+ isItemEqualToValue: isEqual,
683
+ itemToStringLabel: getOptionLabel,
684
+ itemToStringValue: getOptionValue,
685
+ items: options,
686
+ multiple: multiple,
687
+ onValueChange: handleChange,
688
+ value: selectedValue,
689
+ children: [
690
+ multiple ? /*#__PURE__*/ jsxs(Combobox_Combobox.Chips, {
691
+ ref: anchor,
692
+ className: clsx({
693
+ [styles_css_fullWidth]: fullWidth
694
+ }, inputClassName),
695
+ children: [
696
+ (Array.isArray(selectedValue) ? selectedValue : []).map((option)=>/*#__PURE__*/ jsx(Combobox_Combobox.Chip, {
697
+ children: getOptionLabel(option)
698
+ }, getOptionValue(option))),
699
+ /*#__PURE__*/ jsx(Combobox_Combobox.ChipsInput, {
700
+ id: inputId,
701
+ disabled: disabled,
702
+ required: required,
703
+ "aria-invalid": invalid,
704
+ placeholder: Array.isArray(selectedValue) && selectedValue.length ? void 0 : placeholder
705
+ })
706
+ ]
707
+ }) : /*#__PURE__*/ jsx(Combobox_Combobox.Input, {
708
+ id: inputId,
709
+ disabled: disabled,
710
+ required: required,
711
+ "aria-invalid": invalid,
712
+ placeholder: placeholder,
713
+ showClear: true,
714
+ className: clsx({
715
+ [styles_css_fullWidth]: fullWidth
716
+ }, inputClassName)
717
+ }),
718
+ /*#__PURE__*/ jsxs(Combobox_Combobox.Content, {
719
+ anchor: multiple ? anchor : void 0,
720
+ className: contentClassName,
721
+ children: [
722
+ /*#__PURE__*/ jsx(Combobox_Combobox.Empty, {
723
+ children: noOptionsText
724
+ }),
725
+ /*#__PURE__*/ jsx(Combobox_Combobox.List, {
726
+ children: renderItem
727
+ })
728
+ ]
729
+ })
730
+ ]
731
+ }),
732
+ helperText && /*#__PURE__*/ jsx(Typography, {
733
+ variant: "caption",
734
+ className: clsx(styles_css_helperText, {
735
+ [styles_css_error]: error,
736
+ [styles_css_disabled]: disabled
737
+ }),
738
+ children: helperText
739
+ })
740
+ ]
741
+ });
742
+ }
275
743
  var badge = 'style__hhcrfl3';
276
744
  var fallback = 'style__hhcrfl2';
277
745
  var group = 'style__hhcrfl4';
278
746
  var groupCount = 'style__hhcrfl5';
279
747
  var styles_css_image = 'style__hhcrfl1';
280
- var styles_css_root = 'style__hhcrfl0';
748
+ var Avatar_styles_css_root = 'style__hhcrfl0';
281
749
  function Avatar_Avatar({ className, size = 'default', ...props }) {
282
750
  return /*#__PURE__*/ jsx(Avatar.Root, {
283
751
  "data-slot": "avatar",
284
752
  "data-size": size,
285
- className: clsx(styles_css_root, className),
753
+ className: clsx(Avatar_styles_css_root, className),
286
754
  ...props
287
755
  });
288
756
  }
@@ -307,7 +775,7 @@ function Badge({ className, ...props }) {
307
775
  ...props
308
776
  });
309
777
  }
310
- function Group({ className, ...props }) {
778
+ function Avatar_Group({ className, ...props }) {
311
779
  return /*#__PURE__*/ jsx("div", {
312
780
  "data-slot": "avatar-group",
313
781
  className: clsx(group, className),
@@ -324,7 +792,7 @@ function GroupCount({ className, ...props }) {
324
792
  Avatar_Avatar.Image = Image;
325
793
  Avatar_Avatar.Fallback = Fallback;
326
794
  Avatar_Avatar.Badge = Badge;
327
- Avatar_Avatar.Group = Group;
795
+ Avatar_Avatar.Group = Avatar_Group;
328
796
  Avatar_Avatar.GroupCount = GroupCount;
329
797
  var badgeVariants = {
330
798
  default: 'default__1af895x1',
@@ -349,9 +817,9 @@ function Badge_Badge({ className, variant = 'default', render, ...props }) {
349
817
  var ellipsis = 'style__1dceszz5';
350
818
  var Breadcrumb_styles_css_item = 'style__1dceszz1';
351
819
  var styles_css_link = 'style__1dceszz2';
352
- var list = 'style__1dceszz0';
820
+ var styles_css_list = 'style__1dceszz0';
353
821
  var page = 'style__1dceszz3';
354
- var styles_css_separator = 'style__1dceszz4';
822
+ var Breadcrumb_styles_css_separator = 'style__1dceszz4';
355
823
  var visuallyHidden = 'style__1dceszz6';
356
824
  function Breadcrumb({ className, ...props }) {
357
825
  return /*#__PURE__*/ jsx("nav", {
@@ -361,10 +829,10 @@ function Breadcrumb({ className, ...props }) {
361
829
  ...props
362
830
  });
363
831
  }
364
- function List({ className, ...props }) {
832
+ function Breadcrumb_List({ className, ...props }) {
365
833
  return /*#__PURE__*/ jsx("ol", {
366
834
  "data-slot": "breadcrumb-list",
367
- className: clsx(list, className),
835
+ className: clsx(styles_css_list, className),
368
836
  ...props
369
837
  });
370
838
  }
@@ -395,12 +863,12 @@ function Page({ className, ...props }) {
395
863
  ...props
396
864
  });
397
865
  }
398
- function Separator({ children, className, ...props }) {
866
+ function Breadcrumb_Separator({ children, className, ...props }) {
399
867
  return /*#__PURE__*/ jsx("li", {
400
868
  "data-slot": "breadcrumb-separator",
401
869
  role: "presentation",
402
870
  "aria-hidden": "true",
403
- className: clsx(styles_css_separator, className),
871
+ className: clsx(Breadcrumb_styles_css_separator, className),
404
872
  ...props,
405
873
  children: children ?? /*#__PURE__*/ jsx(ChevronRightIcon, {})
406
874
  });
@@ -408,135 +876,60 @@ function Separator({ children, className, ...props }) {
408
876
  function Ellipsis({ className, ...props }) {
409
877
  return /*#__PURE__*/ jsxs("span", {
410
878
  "data-slot": "breadcrumb-ellipsis",
411
- role: "presentation",
412
- "aria-hidden": "true",
413
- className: clsx(ellipsis, className),
414
- ...props,
415
- children: [
416
- /*#__PURE__*/ jsx(MoreHorizontalIcon, {}),
417
- /*#__PURE__*/ jsx("span", {
418
- className: visuallyHidden,
419
- children: "More"
420
- })
421
- ]
422
- });
423
- }
424
- Breadcrumb.List = List;
425
- Breadcrumb.Item = Breadcrumb_Item;
426
- Breadcrumb.Link = Link;
427
- Breadcrumb.Page = Page;
428
- Breadcrumb.Separator = Separator;
429
- Breadcrumb.Ellipsis = Ellipsis;
430
- var ButtonGroup_styles_css_root = 'style__1mf3lgr0';
431
- var ButtonGroup_styles_css_separator = 'style__1mf3lgr2';
432
- var styles_css_text = 'style__1mf3lgr1';
433
- function ButtonGroup({ className, orientation = 'horizontal', ...props }) {
434
- return /*#__PURE__*/ jsx("fieldset", {
435
- "data-slot": "button-group",
436
- "data-orientation": orientation,
437
- className: clsx(ButtonGroup_styles_css_root, className),
438
- ...props
439
- });
440
- }
441
- function Text({ className, render, ...props }) {
442
- return useRender({
443
- defaultTagName: 'div',
444
- props: mergeProps({
445
- className: clsx(styles_css_text, className)
446
- }, props),
447
- render,
448
- state: {
449
- slot: 'button-group-text'
450
- }
451
- });
452
- }
453
- function ButtonGroup_Separator({ className, orientation = 'vertical', ...props }) {
454
- return /*#__PURE__*/ jsx(separator_Separator, {
455
- "data-slot": "button-group-separator",
456
- "data-orientation": orientation,
457
- orientation: orientation,
458
- className: clsx(ButtonGroup_styles_css_separator, className),
459
- ...props
460
- });
461
- }
462
- ButtonGroup.Text = Text;
463
- ButtonGroup.Separator = ButtonGroup_Separator;
464
- var alignments = {
465
- left: 'left__1sba6zok',
466
- center: 'center__1sba6zol',
467
- right: 'right__1sba6zom',
468
- justify: 'justify__1sba6zon'
469
- };
470
- var colors = {
471
- primary: 'primary__1sba6zoc',
472
- secondary: 'secondary__1sba6zod',
473
- disabled: 'disabled__1sba6zoe',
474
- success: 'success__1sba6zof',
475
- error: 'error__1sba6zog',
476
- warning: 'warning__1sba6zoh',
477
- info: 'info__1sba6zoi',
478
- muted: 'muted__1sba6zoj'
479
- };
480
- var decorations = {
481
- none: 'none__1sba6zox',
482
- underline: 'underline__1sba6zoy',
483
- lineThrough: 'lineThrough__1sba6zoz'
484
- };
485
- var displays = {
486
- block: 'block__1sba6zoo',
487
- inline: 'inline__1sba6zop'
488
- };
489
- var gutterBottomClass = 'style__1sba6zo10';
490
- var transforms = {
491
- lowercase: 'lowercase__1sba6zou',
492
- uppercase: 'uppercase__1sba6zov',
493
- capitalize: 'capitalize__1sba6zow'
494
- };
495
- var variants = {
496
- h1: 'h1__1sba6zo0',
497
- h2: 'h2__1sba6zo1',
498
- h3: 'h3__1sba6zo2',
499
- h4: 'h4__1sba6zo3',
500
- h5: 'h5__1sba6zo4',
501
- h6: 'h6__1sba6zo5',
502
- subtitle1: 'subtitle1__1sba6zo6',
503
- subtitle2: 'subtitle2__1sba6zo7',
504
- body1: 'body1__1sba6zo8',
505
- body2: 'body2__1sba6zo9',
506
- caption: 'caption__1sba6zoa',
507
- overline: 'overline__1sba6zob'
508
- };
509
- var weights = {
510
- normal: 'normal__1sba6zoq',
511
- medium: 'medium__1sba6zor',
512
- semibold: 'semibold__1sba6zos',
513
- bold: 'bold__1sba6zot'
514
- };
515
- const VARIANT_COMPONENT_MAP = {
516
- h1: 'h1',
517
- h2: 'h2',
518
- h3: 'h3',
519
- h4: 'h4',
520
- h5: 'h5',
521
- h6: 'h6',
522
- subtitle1: 'h6',
523
- subtitle2: 'h6',
524
- body1: 'p',
525
- body2: 'p',
526
- caption: 'span',
527
- overline: 'span'
528
- };
529
- const Typography = ({ className, variant = 'body1', component, color = 'primary', align = 'left', display = 'inline', weight = 'normal', transform, decoration = 'none', gutterBottom, children, ...props })=>{
530
- const Component = component || VARIANT_COMPONENT_MAP[variant || 'body1'];
531
- return /*#__PURE__*/ jsx(Component, {
532
- className: clsx(decorations[decoration], variants[variant], colors[color], weights[weight], transform && transforms[transform], displays[display], alignments[align], {
533
- [gutterBottomClass]: gutterBottom
534
- }, className),
879
+ role: "presentation",
880
+ "aria-hidden": "true",
881
+ className: clsx(ellipsis, className),
535
882
  ...props,
536
- children: children
883
+ children: [
884
+ /*#__PURE__*/ jsx(MoreHorizontalIcon, {}),
885
+ /*#__PURE__*/ jsx("span", {
886
+ className: visuallyHidden,
887
+ children: "More"
888
+ })
889
+ ]
537
890
  });
538
- };
539
- var styles_css_button = 'dayButton__hxs6pw0';
891
+ }
892
+ Breadcrumb.List = Breadcrumb_List;
893
+ Breadcrumb.Item = Breadcrumb_Item;
894
+ Breadcrumb.Link = Link;
895
+ Breadcrumb.Page = Page;
896
+ Breadcrumb.Separator = Breadcrumb_Separator;
897
+ Breadcrumb.Ellipsis = Ellipsis;
898
+ var ButtonGroup_styles_css_root = 'style__1mf3lgr0';
899
+ var ButtonGroup_styles_css_separator = 'style__1mf3lgr2';
900
+ var ButtonGroup_styles_css_text = 'style__1mf3lgr1';
901
+ function ButtonGroup({ className, orientation = 'horizontal', ...props }) {
902
+ return /*#__PURE__*/ jsx("fieldset", {
903
+ "data-slot": "button-group",
904
+ "data-orientation": orientation,
905
+ className: clsx(ButtonGroup_styles_css_root, className),
906
+ ...props
907
+ });
908
+ }
909
+ function ButtonGroup_Text({ className, render, ...props }) {
910
+ return useRender({
911
+ defaultTagName: 'div',
912
+ props: mergeProps({
913
+ className: clsx(ButtonGroup_styles_css_text, className)
914
+ }, props),
915
+ render,
916
+ state: {
917
+ slot: 'button-group-text'
918
+ }
919
+ });
920
+ }
921
+ function ButtonGroup_Separator({ className, orientation = 'vertical', ...props }) {
922
+ return /*#__PURE__*/ jsx(separator_Separator, {
923
+ "data-slot": "button-group-separator",
924
+ "data-orientation": orientation,
925
+ orientation: orientation,
926
+ className: clsx(ButtonGroup_styles_css_separator, className),
927
+ ...props
928
+ });
929
+ }
930
+ ButtonGroup.Text = ButtonGroup_Text;
931
+ ButtonGroup.Separator = ButtonGroup_Separator;
932
+ var DayButton_styles_css_button = 'dayButton__hxs6pw0';
540
933
  var outside = 'outside__hxs6pw2';
541
934
  var today = 'today__hxs6pw1';
542
935
  const DayButton = (props)=>{
@@ -549,7 +942,7 @@ const DayButton = (props)=>{
549
942
  ]);
550
943
  return /*#__PURE__*/ jsx(Button_Button, {
551
944
  ref: ref,
552
- className: clsx(styles_css_button, {
945
+ className: clsx(DayButton_styles_css_button, {
553
946
  [outside]: modifiers.outside,
554
947
  [today]: modifiers.today
555
948
  }, className),
@@ -950,400 +1343,125 @@ const useLogic_useLogic = ({ orientation = 'horizontal', opts, setApi, plugins,
950
1343
  isShowButtons,
951
1344
  isShowDots,
952
1345
  data
953
- };
954
- };
955
- function Carousel({ width = '100%', height = '100%', ...props }) {
956
- const { canScrollNext, canScrollPrev, scrollNext, scrollPrev, api, opts, orientation, carouselRef, handleKeyDown, data, isShowButtons, isShowDots } = useLogic_useLogic(props);
957
- return /*#__PURE__*/ jsx(CarouselContext.Provider, {
958
- value: {
959
- carouselRef,
960
- api,
961
- opts,
962
- orientation: orientation || (opts?.axis === 'y' ? 'vertical' : 'horizontal'),
963
- scrollPrev,
964
- scrollNext,
965
- canScrollPrev,
966
- canScrollNext
967
- },
968
- children: /*#__PURE__*/ jsxs("div", {
969
- onKeyDownCapture: handleKeyDown,
970
- className: clsx(styles_css_rootClass, props.className),
971
- "data-slot": "carousel",
972
- style: {
973
- width,
974
- height
975
- },
976
- children: [
977
- /*#__PURE__*/ jsx(Content_Content, {
978
- style: {
979
- width,
980
- height
981
- },
982
- children: data.map((item)=>/*#__PURE__*/ jsx(Item_Item, {
983
- children: props.renderItem(item)
984
- }, `${item[props.keyId]}`))
985
- }),
986
- isShowButtons && /*#__PURE__*/ jsx(Buttons, {}),
987
- isShowDots && /*#__PURE__*/ jsx(Dots, {
988
- api: api,
989
- orientation: orientation
990
- })
991
- ]
992
- })
993
- });
994
- }
995
- var checkbox_css_icon = 'style__b7yo4k2';
996
- var indicator = 'style__b7yo4k1';
997
- var checkbox_css_root = 'style__b7yo4k0';
998
- const Checkbox_Checkbox = ({ className, ...props })=>/*#__PURE__*/ jsx(Checkbox.Root, {
999
- "data-slot": "checkbox",
1000
- className: clsx(checkbox_css_root, className),
1001
- ...props,
1002
- children: /*#__PURE__*/ jsx(Checkbox.Indicator, {
1003
- className: indicator,
1004
- children: /*#__PURE__*/ jsx(Check, {
1005
- className: checkbox_css_icon
1006
- })
1007
- })
1008
- });
1009
- var circle = 'style__m6b9n24';
1010
- var styles_css_colors = {
1011
- primary: 'primary__m6b9n27',
1012
- secondary: 'secondary__m6b9n28',
1013
- inherit: 'inherit__m6b9n29'
1014
- };
1015
- var CircularProgress_styles_css_root = 'style__m6b9n22';
1016
- var svg = 'style__m6b9n23';
1017
- var styles_css_variants = {
1018
- determinate: 'determinate__m6b9n25',
1019
- indeterminate: 'indeterminate__m6b9n26'
1020
- };
1021
- const CircularProgress = ({ size = 30, thickness = 2.6, color = 'primary', value = 0, variant = 'indeterminate', className })=>{
1022
- const radius = (size - thickness) / 2;
1023
- const circumference = 2 * Math.PI * radius;
1024
- const dashOffset = 'determinate' === variant ? circumference * (1 - value / 100) : 0.25 * circumference;
1025
- return /*#__PURE__*/ jsx("div", {
1026
- className: clsx_0(CircularProgress_styles_css_root, styles_css_variants[variant], styles_css_colors[color], className),
1027
- style: {
1028
- width: size,
1029
- height: size
1030
- },
1031
- children: /*#__PURE__*/ jsxs("svg", {
1032
- className: svg,
1033
- viewBox: `0 0 ${size} ${size}`,
1034
- children: [
1035
- /*#__PURE__*/ jsx("title", {
1036
- children: "Progress bar"
1037
- }),
1038
- /*#__PURE__*/ jsx("circle", {
1039
- className: clsx_0(circle, 'determinate' === variant && styles_css_variants.determinate),
1040
- cx: size / 2,
1041
- cy: size / 2,
1042
- r: radius,
1043
- fill: "none",
1044
- strokeWidth: thickness,
1045
- strokeDasharray: circumference,
1046
- strokeDashoffset: dashOffset
1047
- })
1048
- ]
1049
- })
1050
- });
1051
- };
1052
- function Collapsible_Collapsible({ ...props }) {
1053
- return /*#__PURE__*/ jsx(Collapsible.Root, {
1054
- "data-slot": "collapsible",
1055
- ...props
1056
- });
1057
- }
1058
- function Collapsible_Trigger({ ...props }) {
1059
- return /*#__PURE__*/ jsx(Collapsible.Trigger, {
1060
- "data-slot": "collapsible-trigger",
1061
- ...props
1062
- });
1063
- }
1064
- function Collapsible_Content({ ...props }) {
1065
- return /*#__PURE__*/ jsx(Collapsible.Panel, {
1066
- "data-slot": "collapsible-content",
1067
- ...props
1068
- });
1069
- }
1070
- Collapsible_Collapsible.Trigger = Collapsible_Trigger;
1071
- Collapsible_Collapsible.Content = Collapsible_Content;
1072
- var addon = 'style__1rv6t1j1';
1073
- var addonAlign = {
1074
- 'inline-start': 'inline-start__1rv6t1j2',
1075
- 'inline-end': 'inline-end__1rv6t1j3',
1076
- 'block-start': 'block-start__1rv6t1j4',
1077
- 'block-end': 'block-end__1rv6t1j5'
1078
- };
1079
- var InputGroup_styles_css_button = 'style__1rv6t1j6';
1080
- var buttonSize = {
1081
- xs: 'xs__1rv6t1j7',
1082
- sm: 'sm__1rv6t1j8',
1083
- 'icon-xs': 'icon-xs__1rv6t1j9',
1084
- 'icon-sm': 'icon-sm__1rv6t1ja'
1085
- };
1086
- var control = 'style__1rv6t1jc';
1087
- var input = 'style__1rv6t1jd';
1088
- var InputGroup_styles_css_root = 'style__1rv6t1j0';
1089
- var InputGroup_styles_css_text = 'style__1rv6t1jb';
1090
- var styles_css_textarea = 'style__1rv6t1je';
1091
- function InputGroup({ className, ...props }) {
1092
- return /*#__PURE__*/ jsx("div", {
1093
- "data-slot": "input-group",
1094
- className: clsx(InputGroup_styles_css_root, className),
1095
- ...props
1096
- });
1097
- }
1098
- function Addon({ className, align = 'inline-start', ...props }) {
1099
- return /*#__PURE__*/ jsx("div", {
1100
- "data-slot": "input-group-addon",
1101
- "data-align": align,
1102
- className: clsx(addon, addonAlign[align], className),
1103
- ...props
1104
- });
1105
- }
1106
- function InputGroup_Button({ className, type = 'button', variant = 'ghost', size = 'xs', ...props }) {
1107
- return /*#__PURE__*/ jsx(Button_Button, {
1108
- type: type,
1109
- "data-size": size,
1110
- variant: variant,
1111
- className: clsx(InputGroup_styles_css_button, buttonSize[size], className),
1112
- ...props
1113
- });
1114
- }
1115
- function InputGroup_Text({ className, ...props }) {
1116
- return /*#__PURE__*/ jsx("span", {
1117
- "data-slot": "input-group-text",
1118
- className: clsx(InputGroup_styles_css_text, className),
1119
- ...props
1120
- });
1121
- }
1122
- function Input({ className, ...props }) {
1123
- return /*#__PURE__*/ jsx("input", {
1124
- "data-slot": "input-group-control",
1125
- className: clsx(control, input, className),
1126
- ...props
1127
- });
1128
- }
1129
- function Textarea({ className, ...props }) {
1130
- return /*#__PURE__*/ jsx("textarea", {
1131
- "data-slot": "input-group-control",
1132
- className: clsx(control, styles_css_textarea, className),
1133
- ...props
1134
- });
1135
- }
1136
- InputGroup.Addon = Addon;
1137
- InputGroup.Button = InputGroup_Button;
1138
- InputGroup.Text = InputGroup_Text;
1139
- InputGroup.Input = Input;
1140
- InputGroup.Textarea = Textarea;
1141
- var chip = 'style__1udu12rh';
1142
- var chipRemove = 'style__1udu12rj';
1143
- var chipRemoveButton = 'style__1udu12rk';
1144
- var chipRemoveSize = {
1145
- 'icon-xs': 'icon-xs__1udu12rm'
1146
- };
1147
- var chipWithRemove = 'style__1udu12ri';
1148
- var chips = 'style__1udu12rg';
1149
- var chipsInput = 'style__1udu12rl';
1150
- var clearIcon = 'style__1udu12r4';
1151
- var Combobox_styles_css_content = 'style__1udu12r9';
1152
- var controlButton = 'style__1udu12r5';
1153
- var empty = 'style__1udu12re';
1154
- var inputGroup = 'style__1udu12r6';
1155
- var inputTrigger = 'style__1udu12r7';
1156
- var Combobox_styles_css_item = 'style__1udu12rb';
1157
- var itemIndicator = 'style__1udu12rc';
1158
- var styles_css_label = 'style__1udu12rd';
1159
- var styles_css_list = 'style__1udu12ra';
1160
- var positioner = 'style__1udu12r8';
1161
- var Combobox_styles_css_separator = 'style__1udu12rf';
1162
- var Combobox_styles_css_trigger = 'style__1udu12r2';
1163
- var styles_css_triggerIcon = 'style__1udu12r3';
1164
- function Combobox_Combobox(props) {
1165
- return /*#__PURE__*/ jsx(Combobox.Root, {
1166
- "data-slot": "combobox",
1167
- ...props
1168
- });
1169
- }
1170
- function Value(props) {
1171
- return /*#__PURE__*/ jsx(Combobox.Value, {
1172
- ...props
1346
+ };
1347
+ };
1348
+ function Carousel({ width = '100%', height = '100%', ...props }) {
1349
+ const { canScrollNext, canScrollPrev, scrollNext, scrollPrev, api, opts, orientation, carouselRef, handleKeyDown, data, isShowButtons, isShowDots } = useLogic_useLogic(props);
1350
+ return /*#__PURE__*/ jsx(CarouselContext.Provider, {
1351
+ value: {
1352
+ carouselRef,
1353
+ api,
1354
+ opts,
1355
+ orientation: orientation || (opts?.axis === 'y' ? 'vertical' : 'horizontal'),
1356
+ scrollPrev,
1357
+ scrollNext,
1358
+ canScrollPrev,
1359
+ canScrollNext
1360
+ },
1361
+ children: /*#__PURE__*/ jsxs("div", {
1362
+ onKeyDownCapture: handleKeyDown,
1363
+ className: clsx(styles_css_rootClass, props.className),
1364
+ "data-slot": "carousel",
1365
+ style: {
1366
+ width,
1367
+ height
1368
+ },
1369
+ children: [
1370
+ /*#__PURE__*/ jsx(Content_Content, {
1371
+ style: {
1372
+ width,
1373
+ height
1374
+ },
1375
+ children: data.map((item)=>/*#__PURE__*/ jsx(Item_Item, {
1376
+ children: props.renderItem(item)
1377
+ }, `${item[props.keyId]}`))
1378
+ }),
1379
+ isShowButtons && /*#__PURE__*/ jsx(Buttons, {}),
1380
+ isShowDots && /*#__PURE__*/ jsx(Dots, {
1381
+ api: api,
1382
+ orientation: orientation
1383
+ })
1384
+ ]
1385
+ })
1173
1386
  });
1174
1387
  }
1175
- function Combobox_Trigger({ className, children, ...props }) {
1176
- return /*#__PURE__*/ jsxs(Combobox.Trigger, {
1177
- "data-slot": "combobox-trigger",
1178
- className: clsx(controlButton, Combobox_styles_css_trigger, className),
1388
+ var checkbox_css_icon = 'style__b7yo4k2';
1389
+ var indicator = 'style__b7yo4k1';
1390
+ var checkbox_css_root = 'style__b7yo4k0';
1391
+ const Checkbox_Checkbox = ({ className, ...props })=>/*#__PURE__*/ jsx(Checkbox.Root, {
1392
+ "data-slot": "checkbox",
1393
+ className: clsx(checkbox_css_root, className),
1179
1394
  ...props,
1180
- children: [
1181
- children,
1182
- /*#__PURE__*/ jsx(ChevronDownIcon, {
1183
- className: styles_css_triggerIcon
1395
+ children: /*#__PURE__*/ jsx(Checkbox.Indicator, {
1396
+ className: indicator,
1397
+ children: /*#__PURE__*/ jsx(Check, {
1398
+ className: checkbox_css_icon
1184
1399
  })
1185
- ]
1186
- });
1187
- }
1188
- function Clear({ className, children, ...props }) {
1189
- return /*#__PURE__*/ jsx(Combobox.Clear, {
1190
- "data-slot": "combobox-clear",
1191
- className: clsx(controlButton, className),
1192
- ...props,
1193
- children: children ?? /*#__PURE__*/ jsx(XIcon, {
1194
- className: clearIcon
1195
1400
  })
1196
1401
  });
1197
- }
1198
- function Combobox_Input({ className, children, disabled = false, showTrigger = true, showClear = false, ...props }) {
1199
- return /*#__PURE__*/ jsxs(Combobox.InputGroup, {
1200
- render: /*#__PURE__*/ jsx(InputGroup, {
1201
- className: clsx(inputGroup, className)
1202
- }),
1203
- children: [
1204
- /*#__PURE__*/ jsx(Combobox.Input, {
1205
- render: /*#__PURE__*/ jsx(InputGroup.Input, {
1206
- disabled: disabled
1402
+ var circle = 'style__m6b9n24';
1403
+ var styles_css_colors = {
1404
+ primary: 'primary__m6b9n27',
1405
+ secondary: 'secondary__m6b9n28',
1406
+ inherit: 'inherit__m6b9n29'
1407
+ };
1408
+ var CircularProgress_styles_css_root = 'style__m6b9n22';
1409
+ var svg = 'style__m6b9n23';
1410
+ var styles_css_variants = {
1411
+ determinate: 'determinate__m6b9n25',
1412
+ indeterminate: 'indeterminate__m6b9n26'
1413
+ };
1414
+ const CircularProgress = ({ size = 30, thickness = 2.6, color = 'primary', value = 0, variant = 'indeterminate', className })=>{
1415
+ const radius = (size - thickness) / 2;
1416
+ const circumference = 2 * Math.PI * radius;
1417
+ const dashOffset = 'determinate' === variant ? circumference * (1 - value / 100) : 0.25 * circumference;
1418
+ return /*#__PURE__*/ jsx("div", {
1419
+ className: clsx_0(CircularProgress_styles_css_root, styles_css_variants[variant], styles_css_colors[color], className),
1420
+ style: {
1421
+ width: size,
1422
+ height: size
1423
+ },
1424
+ children: /*#__PURE__*/ jsxs("svg", {
1425
+ className: svg,
1426
+ viewBox: `0 0 ${size} ${size}`,
1427
+ children: [
1428
+ /*#__PURE__*/ jsx("title", {
1429
+ children: "Progress bar"
1207
1430
  }),
1208
- disabled: disabled,
1209
- ...props
1210
- }),
1211
- /*#__PURE__*/ jsxs(InputGroup.Addon, {
1212
- align: "inline-end",
1213
- children: [
1214
- showTrigger && /*#__PURE__*/ jsx(Combobox_Trigger, {
1215
- className: inputTrigger,
1216
- disabled: disabled
1217
- }),
1218
- showClear && /*#__PURE__*/ jsx(Clear, {
1219
- disabled: disabled
1220
- })
1221
- ]
1222
- }),
1223
- children
1224
- ]
1225
- });
1226
- }
1227
- function Combobox_Content({ className, side = 'bottom', sideOffset = 8, align = 'start', alignOffset = 0, anchor, ...props }) {
1228
- return /*#__PURE__*/ jsx(Combobox.Portal, {
1229
- children: /*#__PURE__*/ jsx(Combobox.Positioner, {
1230
- side: side,
1231
- sideOffset: sideOffset,
1232
- align: align,
1233
- alignOffset: alignOffset,
1234
- anchor: anchor,
1235
- className: positioner,
1236
- children: /*#__PURE__*/ jsx(Combobox.Popup, {
1237
- "data-slot": "combobox-content",
1238
- "data-chips": anchor ? 'true' : void 0,
1239
- className: clsx(Combobox_styles_css_content, className),
1240
- ...props
1241
- })
1431
+ /*#__PURE__*/ jsx("circle", {
1432
+ className: clsx_0(circle, 'determinate' === variant && styles_css_variants.determinate),
1433
+ cx: size / 2,
1434
+ cy: size / 2,
1435
+ r: radius,
1436
+ fill: "none",
1437
+ strokeWidth: thickness,
1438
+ strokeDasharray: circumference,
1439
+ strokeDashoffset: dashOffset
1440
+ })
1441
+ ]
1242
1442
  })
1243
1443
  });
1244
- }
1245
- function Combobox_List({ className, ...props }) {
1246
- return /*#__PURE__*/ jsx(Combobox.List, {
1247
- "data-slot": "combobox-list",
1248
- className: clsx(styles_css_list, className),
1249
- ...props
1250
- });
1251
- }
1252
- function Combobox_Item({ className, children, ...props }) {
1253
- return /*#__PURE__*/ jsxs(Combobox.Item, {
1254
- "data-slot": "combobox-item",
1255
- className: clsx(Combobox_styles_css_item, className),
1256
- ...props,
1257
- children: [
1258
- children,
1259
- /*#__PURE__*/ jsx(Combobox.ItemIndicator, {
1260
- className: itemIndicator,
1261
- children: /*#__PURE__*/ jsx(CheckIcon, {})
1262
- })
1263
- ]
1264
- });
1265
- }
1266
- function Combobox_Group({ ...props }) {
1267
- return /*#__PURE__*/ jsx(Combobox.Group, {
1268
- "data-slot": "combobox-group",
1269
- ...props
1270
- });
1271
- }
1272
- function Label({ className, ...props }) {
1273
- return /*#__PURE__*/ jsx(Combobox.GroupLabel, {
1274
- "data-slot": "combobox-label",
1275
- className: clsx(styles_css_label, className),
1276
- ...props
1277
- });
1278
- }
1279
- function Collection(props) {
1280
- return /*#__PURE__*/ jsx(Combobox.Collection, {
1281
- ...props
1282
- });
1283
- }
1284
- function Empty({ className, ...props }) {
1285
- return /*#__PURE__*/ jsx(Combobox.Empty, {
1286
- "data-slot": "combobox-empty",
1287
- className: clsx(empty, className),
1288
- ...props
1289
- });
1290
- }
1291
- function Combobox_Separator({ className, ...props }) {
1292
- return /*#__PURE__*/ jsx(Combobox.Separator, {
1293
- "data-slot": "combobox-separator",
1294
- className: clsx(Combobox_styles_css_separator, className),
1444
+ };
1445
+ function Collapsible_Collapsible({ ...props }) {
1446
+ return /*#__PURE__*/ jsx(Collapsible.Root, {
1447
+ "data-slot": "collapsible",
1295
1448
  ...props
1296
1449
  });
1297
1450
  }
1298
- function Chips({ className, ...props }) {
1299
- return /*#__PURE__*/ jsx(Combobox.Chips, {
1300
- "data-slot": "combobox-chips",
1301
- className: clsx(chips, className),
1451
+ function Collapsible_Trigger({ ...props }) {
1452
+ return /*#__PURE__*/ jsx(Collapsible.Trigger, {
1453
+ "data-slot": "collapsible-trigger",
1302
1454
  ...props
1303
1455
  });
1304
1456
  }
1305
- function Chip({ className, children, showRemove = true, ...props }) {
1306
- return /*#__PURE__*/ jsxs(Combobox.Chip, {
1307
- "data-slot": "combobox-chip",
1308
- className: clsx(chip, {
1309
- [chipWithRemove]: showRemove
1310
- }, className),
1311
- ...props,
1312
- children: [
1313
- children,
1314
- showRemove && /*#__PURE__*/ jsx(Combobox.ChipRemove, {
1315
- className: clsx(chipRemove, chipRemoveButton, chipRemoveSize["icon-xs"]),
1316
- "data-slot": "combobox-chip-remove",
1317
- children: /*#__PURE__*/ jsx(XIcon, {})
1318
- })
1319
- ]
1320
- });
1321
- }
1322
- function ChipsInput({ className, ...props }) {
1323
- return /*#__PURE__*/ jsx(Combobox.Input, {
1324
- "data-slot": "combobox-chip-input",
1325
- className: clsx(chipsInput, className),
1457
+ function Collapsible_Content({ ...props }) {
1458
+ return /*#__PURE__*/ jsx(Collapsible.Panel, {
1459
+ "data-slot": "collapsible-content",
1326
1460
  ...props
1327
1461
  });
1328
1462
  }
1329
- function useComboboxAnchor() {
1330
- return useRef(null);
1331
- }
1332
- Combobox_Combobox.Value = Value;
1333
- Combobox_Combobox.Trigger = Combobox_Trigger;
1334
- Combobox_Combobox.Clear = Clear;
1335
- Combobox_Combobox.Input = Combobox_Input;
1336
- Combobox_Combobox.Content = Combobox_Content;
1337
- Combobox_Combobox.List = Combobox_List;
1338
- Combobox_Combobox.Item = Combobox_Item;
1339
- Combobox_Combobox.Group = Combobox_Group;
1340
- Combobox_Combobox.Label = Label;
1341
- Combobox_Combobox.Collection = Collection;
1342
- Combobox_Combobox.Empty = Empty;
1343
- Combobox_Combobox.Separator = Combobox_Separator;
1344
- Combobox_Combobox.Chips = Chips;
1345
- Combobox_Combobox.Chip = Chip;
1346
- Combobox_Combobox.ChipsInput = ChipsInput;
1463
+ Collapsible_Collapsible.Trigger = Collapsible_Trigger;
1464
+ Collapsible_Collapsible.Content = Collapsible_Content;
1347
1465
  var Popover_styles_css_content = 'style__1xy4jvu2';
1348
1466
  var styles_css_positioner = 'style__1xy4jvu3';
1349
1467
  const createHandle = Popover.createHandle;
@@ -1912,7 +2030,7 @@ function Header_Header({ columns, height, sticky }) {
1912
2030
  });
1913
2031
  }
1914
2032
  var DataGrid_styles_css_container = 'style__1gqvluf0';
1915
- var styles_css_disabled = 'style__1gqvluf3';
2033
+ var DataGrid_styles_css_disabled = 'style__1gqvluf3';
1916
2034
  var fullHeight = 'style__1gqvluf2';
1917
2035
  var styles_css_loading = 'style__1gqvluf4';
1918
2036
  var table = 'style__1gqvluf1';
@@ -1928,7 +2046,7 @@ function DataGrid({ rows, columns, height = '100%', className, rowHeight = 40, h
1928
2046
  children: [
1929
2047
  /*#__PURE__*/ jsxs("table", {
1930
2048
  className: clsx(table, {
1931
- [styles_css_disabled]: isDisabled,
2049
+ [DataGrid_styles_css_disabled]: isDisabled,
1932
2050
  [styles_css_loading]: isLoading,
1933
2051
  [fullHeight]: isFullHeight
1934
2052
  }, className),
@@ -2503,19 +2621,6 @@ const Input_Input = ({ error, variant = 'outlined', size = 'md', startAdornment,
2503
2621
  })
2504
2622
  ]
2505
2623
  });
2506
- var label_css_disabled = 'style__c31e141';
2507
- var label_css_error = 'style__c31e142';
2508
- var required = 'style__c31e143';
2509
- var label_css_root = 'Label__c31e140';
2510
- const Label_Label = ({ className, disabled, error, ...props })=>/*#__PURE__*/ jsx("label", {
2511
- "data-slot": "label",
2512
- className: clsx(label_css_root, {
2513
- [label_css_disabled]: disabled,
2514
- [label_css_error]: error,
2515
- [required]: props.required
2516
- }, className),
2517
- ...props
2518
- });
2519
2624
  var TextField_styles_css_container = 'style__kqu4y20';
2520
2625
  var TextField_styles_css_disabledClass = 'style__kqu4y23';
2521
2626
  var styles_css_errorClass = 'style__kqu4y24';
@@ -2527,7 +2632,7 @@ const TextField = ({ label, helperText, className, disabled, fullWidth, ref, lab
2527
2632
  [styles_css_fullWidthClass]: fullWidth
2528
2633
  }, className),
2529
2634
  children: [
2530
- label && /*#__PURE__*/ jsx(Label_Label, {
2635
+ label && /*#__PURE__*/ jsx(Label, {
2531
2636
  htmlFor: props.id || label,
2532
2637
  disabled: disabled,
2533
2638
  required: props.required,
@@ -3772,7 +3877,7 @@ const RadioGroupItem = ({ className, label, ...props })=>/*#__PURE__*/ jsxs("div
3772
3877
  })
3773
3878
  })
3774
3879
  }),
3775
- /*#__PURE__*/ jsx(Label_Label, {
3880
+ /*#__PURE__*/ jsx(Label, {
3776
3881
  htmlFor: props.id || props.value,
3777
3882
  "data-slot": "radio-group-label",
3778
3883
  children: label
@@ -4211,7 +4316,7 @@ var gap = 'style__1xiua9n3';
4211
4316
  var Sidebar_styles_css_group = 'style__1xiua9ni';
4212
4317
  var groupAction = 'style__1xiua9nk';
4213
4318
  var groupContent = 'style__1xiua9nl';
4214
- var groupLabel = 'style__1xiua9nj';
4319
+ var styles_css_groupLabel = 'style__1xiua9nj';
4215
4320
  var Sidebar_styles_css_header = 'style__1xiua9ne';
4216
4321
  var inner = 'style__1xiua9n6';
4217
4322
  var Sidebar_styles_css_input = 'style__1xiua9nd';
@@ -4484,14 +4589,14 @@ function Sidebar_Group({ className, ...props }) {
4484
4589
  ...props
4485
4590
  });
4486
4591
  }
4487
- function GroupLabel({ className, render, ...props }) {
4592
+ function Sidebar_GroupLabel({ className, render, ...props }) {
4488
4593
  return useRender({
4489
4594
  defaultTagName: 'div',
4490
4595
  render,
4491
4596
  props: mergeProps({
4492
4597
  'data-slot': 'sidebar-group-label',
4493
4598
  'data-sidebar': 'group-label',
4494
- className: clsx(groupLabel, className)
4599
+ className: clsx(styles_css_groupLabel, className)
4495
4600
  }, props)
4496
4601
  });
4497
4602
  }
@@ -4645,7 +4750,7 @@ const Sidebar_Sidebar = Object.assign(SidebarRoot, {
4645
4750
  Separator: Sidebar_Separator,
4646
4751
  Content: Sidebar_Content,
4647
4752
  Group: Sidebar_Group,
4648
- GroupLabel: GroupLabel,
4753
+ GroupLabel: Sidebar_GroupLabel,
4649
4754
  GroupAction: GroupAction,
4650
4755
  GroupContent: GroupContent,
4651
4756
  Menu: Sidebar_Menu,
@@ -4718,7 +4823,7 @@ const ToggleGroup = ({ value, onChange, options, size, className, label, multipl
4718
4823
  return /*#__PURE__*/ jsxs("div", {
4719
4824
  className: clsx(toggleGroup_css_containerClass, className),
4720
4825
  children: [
4721
- label && /*#__PURE__*/ jsx(Label_Label, {
4826
+ label && /*#__PURE__*/ jsx(Label, {
4722
4827
  className: toggleGroup_css_labelClass,
4723
4828
  children: label
4724
4829
  }),
@@ -4742,4 +4847,4 @@ const ToggleGroup = ({ value, onChange, options, size, className, label, multipl
4742
4847
  ]
4743
4848
  });
4744
4849
  };
4745
- export { Accordion_Accordion as Accordion, AlertDialog_AlertDialog as AlertDialog, Avatar_Avatar as Avatar, Badge_Badge as Badge, Breadcrumb, ButtonGroup, Button_Button as Button, Button_buttonSizes as buttonSizes, Button_buttonVariants as buttonVariants, Calendar, Card, Carousel, Checkbox_Checkbox as Checkbox, CircularProgress, Collapsible_Collapsible as Collapsible, Combobox_Combobox as Combobox, ConfirmAction, ContentState, CopyTypography, DEFAULT_SEPARATOR, DEFAULT_SYMBOL, DESCRIPTION_ROOT_CLASSNAME, DashboardLayout, DataGrid, DataGridActionCell, DataGridSortHeader, DataList, DatePicker, Description_Description as Description, Dialog_Dialog as Dialog, Drawer_Drawer as Drawer, DropdownMenu, Empty_Empty as Empty, ImageCarousel, Image_Image as Image, InputGroup, InputOTP, Input_Input as Input, Label_Label as Label, MaskField, NOTIFICATION_POSITIONS, NOTIFY_CLASSNAME, Notification, NotificationContainer, OverflowTypography, PageLayout, Pagination, PeriodPicker, Placeholder, Popover_Popover as Popover, RadioGroupItem, RadioGroup_RadioGroup as RadioGroup, RangeInput, ScrollTopButton, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Select_Select as Select, Sheet, Sidebar_Sidebar as Sidebar, Slider_Slider as Slider, Tabs_Tabs as Tabs, TextField, Textarea_Textarea as Textarea, ToggleGroup, Tooltip_Tooltip as Tooltip, Typography, alignments, badgeVariants, calculateSize, colors, constants_NotificationVariantTypes as NotificationVariantTypes, createHandle, displays, negativeSpacing, notification, spacing, theme, transforms, useComboboxAnchor, useDashboard, useIsMobile, useOverflowed, useSidebar, variants, weights };
4850
+ export { Accordion_Accordion as Accordion, AlertDialog_AlertDialog as AlertDialog, Autocomplete, Avatar_Avatar as Avatar, Badge_Badge as Badge, Breadcrumb, ButtonGroup, Button_Button as Button, Button_buttonSizes as buttonSizes, Button_buttonVariants as buttonVariants, Calendar, Card, Carousel, Checkbox_Checkbox as Checkbox, CircularProgress, Collapsible_Collapsible as Collapsible, Combobox_Combobox as Combobox, ConfirmAction, ContentState, CopyTypography, DEFAULT_SEPARATOR, DEFAULT_SYMBOL, DESCRIPTION_ROOT_CLASSNAME, DashboardLayout, DataGrid, DataGridActionCell, DataGridSortHeader, DataList, DatePicker, Description_Description as Description, Dialog_Dialog as Dialog, Drawer_Drawer as Drawer, DropdownMenu, Empty_Empty as Empty, ImageCarousel, Image_Image as Image, InputGroup, InputOTP, Input_Input as Input, Label, MaskField, NOTIFICATION_POSITIONS, NOTIFY_CLASSNAME, Notification, NotificationContainer, OverflowTypography, PageLayout, Pagination, PeriodPicker, Placeholder, Popover_Popover as Popover, RadioGroupItem, RadioGroup_RadioGroup as RadioGroup, RangeInput, ScrollTopButton, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Select_Select as Select, Sheet, Sidebar_Sidebar as Sidebar, Slider_Slider as Slider, Tabs_Tabs as Tabs, TextField, Textarea_Textarea as Textarea, ToggleGroup, Tooltip_Tooltip as Tooltip, Typography, alignments, badgeVariants, calculateSize, colors, constants_NotificationVariantTypes as NotificationVariantTypes, createHandle, displays, negativeSpacing, notification, spacing, theme, transforms, useComboboxAnchor, useDashboard, useIsMobile, useOverflowed, useSidebar, variants, weights };