@max-ts/kit 1.1.0 → 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,195 +272,294 @@ AlertDialog_AlertDialog.Title = Title;
272
272
  AlertDialog_AlertDialog.Description = Description;
273
273
  AlertDialog_AlertDialog.Action = Action;
274
274
  AlertDialog_AlertDialog.Cancel = Cancel;
275
- var badge = 'style__hhcrfl3';
276
- var fallback = 'style__hhcrfl2';
277
- var group = 'style__hhcrfl4';
278
- var groupCount = 'style__hhcrfl5';
279
- var styles_css_image = 'style__hhcrfl1';
280
- var styles_css_root = 'style__hhcrfl0';
281
- function Avatar_Avatar({ className, size = 'default', ...props }) {
282
- return /*#__PURE__*/ jsx(Avatar.Root, {
283
- "data-slot": "avatar",
284
- "data-size": size,
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",
285
297
  className: clsx(styles_css_root, className),
286
298
  ...props
287
299
  });
288
300
  }
289
- function Image({ className, ...props }) {
290
- return /*#__PURE__*/ jsx(Avatar.Image, {
291
- "data-slot": "avatar-image",
292
- className: clsx(styles_css_image, className),
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),
293
306
  ...props
294
307
  });
295
308
  }
296
- function Fallback({ className, ...props }) {
297
- return /*#__PURE__*/ jsx(Avatar.Fallback, {
298
- "data-slot": "avatar-fallback",
299
- className: clsx(fallback, className),
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),
300
315
  ...props
301
316
  });
302
317
  }
303
- function Badge({ className, ...props }) {
318
+ function Text({ className, ...props }) {
304
319
  return /*#__PURE__*/ jsx("span", {
305
- "data-slot": "avatar-badge",
306
- className: clsx(badge, className),
320
+ "data-slot": "input-group-text",
321
+ className: clsx(styles_css_text, className),
307
322
  ...props
308
323
  });
309
324
  }
310
- function Group({ className, ...props }) {
311
- return /*#__PURE__*/ jsx("div", {
312
- "data-slot": "avatar-group",
313
- className: clsx(group, className),
325
+ function Input({ className, ...props }) {
326
+ return /*#__PURE__*/ jsx("input", {
327
+ "data-slot": "input-group-control",
328
+ className: clsx(control, input, className),
314
329
  ...props
315
330
  });
316
331
  }
317
- function GroupCount({ className, ...props }) {
318
- return /*#__PURE__*/ jsx("div", {
319
- "data-slot": "avatar-group-count",
320
- className: clsx(groupCount, className),
332
+ function Textarea({ className, ...props }) {
333
+ return /*#__PURE__*/ jsx("textarea", {
334
+ "data-slot": "input-group-control",
335
+ className: clsx(control, styles_css_textarea, className),
321
336
  ...props
322
337
  });
323
338
  }
324
- Avatar_Avatar.Image = Image;
325
- Avatar_Avatar.Fallback = Fallback;
326
- Avatar_Avatar.Badge = Badge;
327
- Avatar_Avatar.Group = Group;
328
- Avatar_Avatar.GroupCount = GroupCount;
329
- var badgeVariants = {
330
- default: 'default__1af895x1',
331
- secondary: 'secondary__1af895x2',
332
- destructive: 'destructive__1af895x3',
333
- outline: 'outline__1af895x4'
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'
334
349
  };
335
- var rootClass = 'style__1af895x0';
336
- function Badge_Badge({ className, variant = 'default', render, ...props }) {
337
- return useRender({
338
- defaultTagName: 'span',
339
- props: mergeProps({
340
- className: clsx(rootClass, badgeVariants[variant], className)
341
- }, props),
342
- render,
343
- state: {
344
- slot: 'badge',
345
- variant
346
- }
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
347
371
  });
348
372
  }
349
- var ellipsis = 'style__1dceszz5';
350
- var Breadcrumb_styles_css_item = 'style__1dceszz1';
351
- var styles_css_link = 'style__1dceszz2';
352
- var list = 'style__1dceszz0';
353
- var page = 'style__1dceszz3';
354
- var styles_css_separator = 'style__1dceszz4';
355
- var visuallyHidden = 'style__1dceszz6';
356
- function Breadcrumb({ className, ...props }) {
357
- return /*#__PURE__*/ jsx("nav", {
358
- "aria-label": "breadcrumb",
359
- "data-slot": "breadcrumb",
360
- className: className,
373
+ function Value(props) {
374
+ return /*#__PURE__*/ jsx(Combobox.Value, {
361
375
  ...props
362
376
  });
363
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
+ }
364
448
  function List({ className, ...props }) {
365
- return /*#__PURE__*/ jsx("ol", {
366
- "data-slot": "breadcrumb-list",
449
+ return /*#__PURE__*/ jsx(Combobox.List, {
450
+ "data-slot": "combobox-list",
367
451
  className: clsx(list, className),
368
452
  ...props
369
453
  });
370
454
  }
371
- function Breadcrumb_Item({ className, ...props }) {
372
- return /*#__PURE__*/ jsx("li", {
373
- "data-slot": "breadcrumb-item",
374
- className: clsx(Breadcrumb_styles_css_item, className),
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",
375
472
  ...props
376
473
  });
377
474
  }
378
- function Link({ className, render, ...props }) {
379
- return useRender({
380
- defaultTagName: 'a',
381
- props: mergeProps({
382
- className: clsx(styles_css_link, className)
383
- }, props),
384
- render,
385
- state: {
386
- slot: 'breadcrumb-link'
387
- }
475
+ function GroupLabel({ className, ...props }) {
476
+ return /*#__PURE__*/ jsx(Combobox.GroupLabel, {
477
+ "data-slot": "combobox-group-label",
478
+ className: clsx(groupLabel, className),
479
+ ...props
388
480
  });
389
481
  }
390
- function Page({ className, ...props }) {
391
- return /*#__PURE__*/ jsx("span", {
392
- "data-slot": "breadcrumb-page",
393
- "aria-current": "page",
394
- className: clsx(page, className),
482
+ function Collection(props) {
483
+ return /*#__PURE__*/ jsx(Combobox.Collection, {
395
484
  ...props
396
485
  });
397
486
  }
398
- function Separator({ children, className, ...props }) {
399
- return /*#__PURE__*/ jsx("li", {
400
- "data-slot": "breadcrumb-separator",
401
- role: "presentation",
402
- "aria-hidden": "true",
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",
403
497
  className: clsx(styles_css_separator, className),
404
- ...props,
405
- children: children ?? /*#__PURE__*/ jsx(ChevronRightIcon, {})
498
+ ...props
406
499
  });
407
500
  }
408
- function Ellipsis({ className, ...props }) {
409
- return /*#__PURE__*/ jsxs("span", {
410
- "data-slot": "breadcrumb-ellipsis",
411
- role: "presentation",
412
- "aria-hidden": "true",
413
- className: clsx(ellipsis, className),
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),
414
514
  ...props,
415
515
  children: [
416
- /*#__PURE__*/ jsx(MoreHorizontalIcon, {}),
417
- /*#__PURE__*/ jsx("span", {
418
- className: visuallyHidden,
419
- children: "More"
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, {})
420
521
  })
421
522
  ]
422
523
  });
423
524
  }
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),
525
+ function ChipsInput({ className, ...props }) {
526
+ return /*#__PURE__*/ jsx(Combobox.Input, {
527
+ "data-slot": "combobox-chip-input",
528
+ className: clsx(chipsInput, className),
438
529
  ...props
439
530
  });
440
531
  }
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
- });
532
+ function useComboboxAnchor() {
533
+ return useRef(null);
452
534
  }
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),
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),
459
561
  ...props
460
562
  });
461
- }
462
- ButtonGroup.Text = Text;
463
- ButtonGroup.Separator = ButtonGroup_Separator;
464
563
  var alignments = {
465
564
  left: 'left__1sba6zok',
466
565
  center: 'center__1sba6zol',
@@ -533,10 +632,304 @@ const Typography = ({ className, variant = 'body1', component, color = 'primary'
533
632
  [gutterBottomClass]: gutterBottom
534
633
  }, className),
535
634
  ...props,
536
- children: children
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
+ }
743
+ var badge = 'style__hhcrfl3';
744
+ var fallback = 'style__hhcrfl2';
745
+ var group = 'style__hhcrfl4';
746
+ var groupCount = 'style__hhcrfl5';
747
+ var styles_css_image = 'style__hhcrfl1';
748
+ var Avatar_styles_css_root = 'style__hhcrfl0';
749
+ function Avatar_Avatar({ className, size = 'default', ...props }) {
750
+ return /*#__PURE__*/ jsx(Avatar.Root, {
751
+ "data-slot": "avatar",
752
+ "data-size": size,
753
+ className: clsx(Avatar_styles_css_root, className),
754
+ ...props
755
+ });
756
+ }
757
+ function Image({ className, ...props }) {
758
+ return /*#__PURE__*/ jsx(Avatar.Image, {
759
+ "data-slot": "avatar-image",
760
+ className: clsx(styles_css_image, className),
761
+ ...props
762
+ });
763
+ }
764
+ function Fallback({ className, ...props }) {
765
+ return /*#__PURE__*/ jsx(Avatar.Fallback, {
766
+ "data-slot": "avatar-fallback",
767
+ className: clsx(fallback, className),
768
+ ...props
769
+ });
770
+ }
771
+ function Badge({ className, ...props }) {
772
+ return /*#__PURE__*/ jsx("span", {
773
+ "data-slot": "avatar-badge",
774
+ className: clsx(badge, className),
775
+ ...props
776
+ });
777
+ }
778
+ function Avatar_Group({ className, ...props }) {
779
+ return /*#__PURE__*/ jsx("div", {
780
+ "data-slot": "avatar-group",
781
+ className: clsx(group, className),
782
+ ...props
783
+ });
784
+ }
785
+ function GroupCount({ className, ...props }) {
786
+ return /*#__PURE__*/ jsx("div", {
787
+ "data-slot": "avatar-group-count",
788
+ className: clsx(groupCount, className),
789
+ ...props
790
+ });
791
+ }
792
+ Avatar_Avatar.Image = Image;
793
+ Avatar_Avatar.Fallback = Fallback;
794
+ Avatar_Avatar.Badge = Badge;
795
+ Avatar_Avatar.Group = Avatar_Group;
796
+ Avatar_Avatar.GroupCount = GroupCount;
797
+ var badgeVariants = {
798
+ default: 'default__1af895x1',
799
+ secondary: 'secondary__1af895x2',
800
+ destructive: 'destructive__1af895x3',
801
+ outline: 'outline__1af895x4'
802
+ };
803
+ var rootClass = 'style__1af895x0';
804
+ function Badge_Badge({ className, variant = 'default', render, ...props }) {
805
+ return useRender({
806
+ defaultTagName: 'span',
807
+ props: mergeProps({
808
+ className: clsx(rootClass, badgeVariants[variant], className)
809
+ }, props),
810
+ render,
811
+ state: {
812
+ slot: 'badge',
813
+ variant
814
+ }
815
+ });
816
+ }
817
+ var ellipsis = 'style__1dceszz5';
818
+ var Breadcrumb_styles_css_item = 'style__1dceszz1';
819
+ var styles_css_link = 'style__1dceszz2';
820
+ var styles_css_list = 'style__1dceszz0';
821
+ var page = 'style__1dceszz3';
822
+ var Breadcrumb_styles_css_separator = 'style__1dceszz4';
823
+ var visuallyHidden = 'style__1dceszz6';
824
+ function Breadcrumb({ className, ...props }) {
825
+ return /*#__PURE__*/ jsx("nav", {
826
+ "aria-label": "breadcrumb",
827
+ "data-slot": "breadcrumb",
828
+ className: className,
829
+ ...props
830
+ });
831
+ }
832
+ function Breadcrumb_List({ className, ...props }) {
833
+ return /*#__PURE__*/ jsx("ol", {
834
+ "data-slot": "breadcrumb-list",
835
+ className: clsx(styles_css_list, className),
836
+ ...props
837
+ });
838
+ }
839
+ function Breadcrumb_Item({ className, ...props }) {
840
+ return /*#__PURE__*/ jsx("li", {
841
+ "data-slot": "breadcrumb-item",
842
+ className: clsx(Breadcrumb_styles_css_item, className),
843
+ ...props
844
+ });
845
+ }
846
+ function Link({ className, render, ...props }) {
847
+ return useRender({
848
+ defaultTagName: 'a',
849
+ props: mergeProps({
850
+ className: clsx(styles_css_link, className)
851
+ }, props),
852
+ render,
853
+ state: {
854
+ slot: 'breadcrumb-link'
855
+ }
856
+ });
857
+ }
858
+ function Page({ className, ...props }) {
859
+ return /*#__PURE__*/ jsx("span", {
860
+ "data-slot": "breadcrumb-page",
861
+ "aria-current": "page",
862
+ className: clsx(page, className),
863
+ ...props
864
+ });
865
+ }
866
+ function Breadcrumb_Separator({ children, className, ...props }) {
867
+ return /*#__PURE__*/ jsx("li", {
868
+ "data-slot": "breadcrumb-separator",
869
+ role: "presentation",
870
+ "aria-hidden": "true",
871
+ className: clsx(Breadcrumb_styles_css_separator, className),
872
+ ...props,
873
+ children: children ?? /*#__PURE__*/ jsx(ChevronRightIcon, {})
874
+ });
875
+ }
876
+ function Ellipsis({ className, ...props }) {
877
+ return /*#__PURE__*/ jsxs("span", {
878
+ "data-slot": "breadcrumb-ellipsis",
879
+ role: "presentation",
880
+ "aria-hidden": "true",
881
+ className: clsx(ellipsis, className),
882
+ ...props,
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),
@@ -955,395 +1348,120 @@ const useLogic_useLogic = ({ orientation = 'horizontal', opts, setApi, plugins,
955
1348
  function Carousel({ width = '100%', height = '100%', ...props }) {
956
1349
  const { canScrollNext, canScrollPrev, scrollNext, scrollPrev, api, opts, orientation, carouselRef, handleKeyDown, data, isShowButtons, isShowDots } = useLogic_useLogic(props);
957
1350
  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
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,
@@ -3447,17 +3552,31 @@ const Footer_Footer_Footer = (props)=>{
3447
3552
  });
3448
3553
  };
3449
3554
  var styles_css_actions = 'style__nvcxbd1';
3450
- var Header_styles_css_content = 'style__nvcxbd2';
3555
+ var Header_styles_css_content = 'style__nvcxbd4';
3451
3556
  var Header_styles_css_root = 'style__nvcxbd0';
3452
- const Header_Header_Header = ({ actions, className, htmlTitle, children })=>{
3557
+ var sidebarTriggerContainer = 'style__nvcxbd2';
3558
+ var titleContainer = 'style__nvcxbd3';
3559
+ const Header_Header_Header = ({ actions, className, title, children, sidebarTrigger })=>{
3453
3560
  useEffect(()=>{
3454
- if (htmlTitle) document.title = htmlTitle;
3561
+ if (title) document.title = title;
3455
3562
  }, [
3456
- htmlTitle
3563
+ title
3457
3564
  ]);
3458
3565
  return /*#__PURE__*/ jsxs("header", {
3459
3566
  className: clsx(Header_styles_css_root, PAGE_HEADER_CLASSNAME, className),
3460
3567
  children: [
3568
+ /*#__PURE__*/ jsx("div", {
3569
+ className: sidebarTriggerContainer,
3570
+ children: sidebarTrigger ? sidebarTrigger : null
3571
+ }),
3572
+ /*#__PURE__*/ jsx("div", {
3573
+ className: titleContainer,
3574
+ children: title && /*#__PURE__*/ jsx(Typography, {
3575
+ variant: "h4",
3576
+ component: "h1",
3577
+ children: title
3578
+ })
3579
+ }),
3461
3580
  /*#__PURE__*/ jsx("div", {
3462
3581
  className: Header_styles_css_content,
3463
3582
  children: children
@@ -3758,7 +3877,7 @@ const RadioGroupItem = ({ className, label, ...props })=>/*#__PURE__*/ jsxs("div
3758
3877
  })
3759
3878
  })
3760
3879
  }),
3761
- /*#__PURE__*/ jsx(Label_Label, {
3880
+ /*#__PURE__*/ jsx(Label, {
3762
3881
  htmlFor: props.id || props.value,
3763
3882
  "data-slot": "radio-group-label",
3764
3883
  children: label
@@ -4197,7 +4316,7 @@ var gap = 'style__1xiua9n3';
4197
4316
  var Sidebar_styles_css_group = 'style__1xiua9ni';
4198
4317
  var groupAction = 'style__1xiua9nk';
4199
4318
  var groupContent = 'style__1xiua9nl';
4200
- var groupLabel = 'style__1xiua9nj';
4319
+ var styles_css_groupLabel = 'style__1xiua9nj';
4201
4320
  var Sidebar_styles_css_header = 'style__1xiua9ne';
4202
4321
  var inner = 'style__1xiua9n6';
4203
4322
  var Sidebar_styles_css_input = 'style__1xiua9nd';
@@ -4470,14 +4589,14 @@ function Sidebar_Group({ className, ...props }) {
4470
4589
  ...props
4471
4590
  });
4472
4591
  }
4473
- function GroupLabel({ className, render, ...props }) {
4592
+ function Sidebar_GroupLabel({ className, render, ...props }) {
4474
4593
  return useRender({
4475
4594
  defaultTagName: 'div',
4476
4595
  render,
4477
4596
  props: mergeProps({
4478
4597
  'data-slot': 'sidebar-group-label',
4479
4598
  'data-sidebar': 'group-label',
4480
- className: clsx(groupLabel, className)
4599
+ className: clsx(styles_css_groupLabel, className)
4481
4600
  }, props)
4482
4601
  });
4483
4602
  }
@@ -4631,7 +4750,7 @@ const Sidebar_Sidebar = Object.assign(SidebarRoot, {
4631
4750
  Separator: Sidebar_Separator,
4632
4751
  Content: Sidebar_Content,
4633
4752
  Group: Sidebar_Group,
4634
- GroupLabel: GroupLabel,
4753
+ GroupLabel: Sidebar_GroupLabel,
4635
4754
  GroupAction: GroupAction,
4636
4755
  GroupContent: GroupContent,
4637
4756
  Menu: Sidebar_Menu,
@@ -4704,7 +4823,7 @@ const ToggleGroup = ({ value, onChange, options, size, className, label, multipl
4704
4823
  return /*#__PURE__*/ jsxs("div", {
4705
4824
  className: clsx(toggleGroup_css_containerClass, className),
4706
4825
  children: [
4707
- label && /*#__PURE__*/ jsx(Label_Label, {
4826
+ label && /*#__PURE__*/ jsx(Label, {
4708
4827
  className: toggleGroup_css_labelClass,
4709
4828
  children: label
4710
4829
  }),
@@ -4728,4 +4847,4 @@ const ToggleGroup = ({ value, onChange, options, size, className, label, multipl
4728
4847
  ]
4729
4848
  });
4730
4849
  };
4731
- 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 };