@umami/react-zen 0.239.0 → 0.240.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/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
- import { Button as Button$1, DisclosureGroup, Disclosure, DisclosurePanel, Dialog as Dialog$1, Breadcrumbs as Breadcrumbs$1, Breadcrumb as Breadcrumb$1, Calendar as Calendar$1, Heading as Heading$1, CalendarGrid, CalendarGridHeader, CalendarHeaderCell, CalendarGridBody, CalendarCell, Checkbox as Checkbox$1, Label as Label$1, ListBox, ListBoxItem, Separator, ListBoxSection, Header, Popover as Popover$1, ComboBox as ComboBox$1, Group, Input, TextField as TextField$1, TextArea, Table as Table$1, TableHeader as TableHeader$1, TableBody as TableBody$1, Row as Row$1, Column as Column$1, Cell, Tooltip as Tooltip$1, OverlayArrow, Menu as Menu$1, MenuItem as MenuItem$1, MenuSection as MenuSection$1, SubmenuTrigger, ModalOverlay, Modal as Modal$1, ProgressBar as ProgressBar$1, RadioGroup as RadioGroup$1, Radio as Radio$1, SearchField as SearchField$1, Select as Select$1, SelectValue, Slider as Slider$1, SliderOutput, SliderTrack, Switch as Switch$1, Tabs as Tabs$1, TabList as TabList$1, Tab as Tab$1, TabPanel as TabPanel$1, ToggleButton, TagGroup, TagList, Tag, SliderThumb } from 'react-aria-components';
1
+ import { Button as Button$1, DisclosureGroup, Disclosure, DisclosurePanel, Dialog as Dialog$1, Breadcrumbs as Breadcrumbs$1, Breadcrumb as Breadcrumb$1, Calendar as Calendar$1, Heading as Heading$1, CalendarGrid, CalendarGridHeader, CalendarHeaderCell, CalendarGridBody, CalendarCell, Checkbox as Checkbox$1, Label as Label$1, ListBox, ListBoxItem, Separator, ListBoxSection, Header, Popover as Popover$1, ComboBox as ComboBox$1, Group, Input, TextField as TextField$1, TextArea, Table as Table$1, TableHeader as TableHeader$1, TableBody as TableBody$1, Row as Row$1, Column as Column$1, Cell, Tooltip as Tooltip$1, OverlayArrow, Menu as Menu$1, MenuItem as MenuItem$1, MenuSection as MenuSection$1, SubmenuTrigger, ModalOverlay, Modal as Modal$1, ProgressBar as ProgressBar$1, RadioGroup as RadioGroup$1, Radio as Radio$1, SearchField as SearchField$1, Select as Select$1, SelectValue, Slider as Slider$1, SliderOutput, SliderTrack, Switch as Switch$1, Tabs as Tabs$1, TabList as TabList$1, Tab as Tab$1, TabPanel as TabPanel$1, TagGroup as TagGroup$1, TagList, Tag as Tag$1, ToggleButton, SliderThumb } from 'react-aria-components';
2
2
  export { DialogTrigger, FileTrigger, Focusable, MenuTrigger, Pressable, RouterProvider, SubmenuTrigger, TooltipTrigger } from 'react-aria-components';
3
3
  import * as lucide_react_star from 'lucide-react';
4
- import { forwardRef, createContext, isValidElement, cloneElement, createElement, Fragment as Fragment$1, useState, useRef, useEffect, useId, Children, useCallback, useLayoutEffect, useContext } from 'react';
4
+ import { forwardRef, createContext, isValidElement, cloneElement, createElement, useState, useRef, useEffect, useId, Fragment as Fragment$1, Children, useCallback, useLayoutEffect, useContext } from 'react';
5
5
  import { tv } from 'tailwind-variants';
6
6
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
7
7
  import { clsx } from 'clsx';
@@ -364,6 +364,37 @@ var toast = tv({
364
364
  }
365
365
  }
366
366
  });
367
+ var tag = tv({
368
+ slots: {
369
+ base: [
370
+ "inline-flex items-center gap-1 px-2 py-0.5 rounded text-sm",
371
+ "cursor-default outline-none",
372
+ "focus-visible:ring-2 focus-visible:ring-focus-ring focus-visible:ring-offset-1"
373
+ ],
374
+ removeButton: [
375
+ "flex items-center justify-center rounded-full p-0.5 -mr-1",
376
+ "cursor-pointer outline-none",
377
+ "hover:bg-black/10 dark:hover:bg-white/10",
378
+ "pressed:bg-black/20 dark:pressed:bg-white/20"
379
+ ]
380
+ },
381
+ variants: {
382
+ variant: {
383
+ default: {
384
+ base: "bg-interactive text-foreground-primary"
385
+ },
386
+ outline: {
387
+ base: "bg-transparent border border-edge text-foreground-primary"
388
+ },
389
+ primary: {
390
+ base: "bg-primary text-primary-foreground"
391
+ }
392
+ }
393
+ },
394
+ defaultVariants: {
395
+ variant: "default"
396
+ }
397
+ });
367
398
  function Button({
368
399
  variant,
369
400
  size = "md",
@@ -1099,7 +1130,11 @@ var semanticColorMap = {
1099
1130
  "surface-sunken": { text: "", bg: "bg-surface-sunken" },
1100
1131
  "surface-overlay": { text: "", bg: "bg-surface-overlay" },
1101
1132
  "surface-inverted": { text: "", bg: "bg-surface-inverted" },
1102
- "surface-disabled": { text: "", bg: "bg-surface-disabled" }
1133
+ "surface-disabled": { text: "", bg: "bg-surface-disabled" },
1134
+ // Interactive colors
1135
+ interactive: { text: "", bg: "bg-interactive" },
1136
+ "interactive-hover": { text: "", bg: "bg-interactive-hover" },
1137
+ "interactive-pressed": { text: "", bg: "bg-interactive-pressed" }
1103
1138
  };
1104
1139
  var tailwindColors = /* @__PURE__ */ new Set([
1105
1140
  "gray",
@@ -2499,6 +2534,7 @@ var Box = forwardRef(function Box2({
2499
2534
  flexBasis,
2500
2535
  flexGrow,
2501
2536
  flexShrink,
2537
+ fill,
2502
2538
  gridArea,
2503
2539
  gridRow,
2504
2540
  gridColumn,
@@ -2586,6 +2622,7 @@ var Box = forwardRef(function Box2({
2586
2622
  ...flexBasis && { flexBasis },
2587
2623
  ...flexGrow !== void 0 && { flexGrow },
2588
2624
  ...flexShrink !== void 0 && { flexShrink },
2625
+ ...fill && { flex: 1 },
2589
2626
  ...gridArea && { gridArea },
2590
2627
  ...gridRow && { gridRow },
2591
2628
  ...gridColumn && { gridColumn },
@@ -2850,20 +2887,12 @@ function Calendar({
2850
2887
  function Checkbox({ label, className, children, ...props }) {
2851
2888
  const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
2852
2889
  const styles = checkbox();
2853
- return /* @__PURE__ */ jsx(
2854
- Checkbox$1,
2855
- {
2856
- ...props,
2857
- isSelected,
2858
- className: cn(styles.root(), className),
2859
- children: ({ isIndeterminate, isSelected: isSelected2 }) => {
2860
- return /* @__PURE__ */ jsxs(Fragment, { children: [
2861
- /* @__PURE__ */ jsx(Box, { className: styles.box(), children: /* @__PURE__ */ jsx(Icon, { className: styles.icon(), size: "sm", children: isIndeterminate ? /* @__PURE__ */ jsx(icons_exports.Minus, {}) : isSelected2 ? /* @__PURE__ */ jsx(icons_exports.Check, {}) : null }) }),
2862
- children
2863
- ] });
2864
- }
2865
- }
2866
- );
2890
+ return /* @__PURE__ */ jsx(Checkbox$1, { ...props, isSelected, className: cn(styles.root(), className), children: ({ isIndeterminate, isSelected: isSelected2 }) => {
2891
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
2892
+ /* @__PURE__ */ jsx(Box, { className: styles.box(), children: /* @__PURE__ */ jsx(Icon, { className: styles.icon(), size: "sm", children: isIndeterminate ? /* @__PURE__ */ jsx(icons_exports.Minus, {}) : isSelected2 ? /* @__PURE__ */ jsx(icons_exports.Check, {}) : null }) }),
2893
+ children
2894
+ ] });
2895
+ } });
2867
2896
  }
2868
2897
  function Code({ className, children, ...props }) {
2869
2898
  return /* @__PURE__ */ jsx(
@@ -2882,7 +2911,12 @@ function useFieldId(id) {
2882
2911
  const generatedId = useId();
2883
2912
  return id ?? generatedId;
2884
2913
  }
2885
- function Label({ size = "base", weight = "semibold", lineHeight = "loose", ...props }) {
2914
+ function Label({
2915
+ size = "base",
2916
+ weight = "semibold",
2917
+ lineHeight = "loose",
2918
+ ...props
2919
+ }) {
2886
2920
  return /* @__PURE__ */ jsx(
2887
2921
  Text,
2888
2922
  {
@@ -2955,10 +2989,6 @@ function getHighlightColor(color) {
2955
2989
  }
2956
2990
  function List({
2957
2991
  id,
2958
- items = [],
2959
- idProperty = "id",
2960
- labelProperty = "label",
2961
- separatorProperty = "separator",
2962
2992
  highlightColor,
2963
2993
  showCheckmark = true,
2964
2994
  isFullscreen,
@@ -2990,7 +3020,6 @@ function List({
2990
3020
  ...props,
2991
3021
  selectedKeys: value || selectedKeys,
2992
3022
  defaultSelectedKeys: value || defaultSelectedKeys,
2993
- items,
2994
3023
  className: cn(
2995
3024
  "grid outline-none overflow-auto gap-1",
2996
3025
  isFullscreen && "block p-3 rounded-none fixed inset-0 overflow-auto z-[9999] bg-surface-base",
@@ -2998,14 +3027,7 @@ function List({
2998
3027
  ),
2999
3028
  onSelectionChange: handleSelectionChange,
3000
3029
  style: { ...style, ...getHighlightColor(highlightColor) },
3001
- children: children || items?.map((item) => {
3002
- const id2 = item[idProperty] || item.toString();
3003
- const label2 = item[labelProperty] || item.toString();
3004
- return /* @__PURE__ */ jsxs(Fragment$1, { children: [
3005
- item[separatorProperty] && /* @__PURE__ */ jsx(ListSeparator, {}),
3006
- /* @__PURE__ */ jsx(ListItem, { id: id2, showCheckmark, children: label2 })
3007
- ] }, id2);
3008
- })
3030
+ children
3009
3031
  }
3010
3032
  )
3011
3033
  ] });
@@ -3062,7 +3084,6 @@ function Popover({ children, isFullscreen, className, ...props }) {
3062
3084
  );
3063
3085
  }
3064
3086
  function ComboBox({
3065
- items,
3066
3087
  className,
3067
3088
  renderEmptyState,
3068
3089
  listProps,
@@ -3099,11 +3120,17 @@ function ComboBox({
3099
3120
  ]
3100
3121
  }
3101
3122
  ),
3102
- /* @__PURE__ */ jsx(Popover, { ...popoverProps, children: /* @__PURE__ */ jsx(Box, { padding: "2", border: true, borderRadius: "md", shadow: "lg", className: "bg-surface-overlay", children: /* @__PURE__ */ jsx(List, { items, renderEmptyState, ...listProps, children: children || items?.map((item) => /* @__PURE__ */ jsx(ListItem, { textValue: item, children: item }, item)) }) }) })
3123
+ /* @__PURE__ */ jsx(Popover, { ...popoverProps, children: /* @__PURE__ */ jsx(Box, { padding: "2", border: true, borderRadius: "md", shadow: "lg", className: "bg-surface-overlay", children: /* @__PURE__ */ jsx(List, { renderEmptyState, ...listProps, children }) }) })
3103
3124
  ] });
3104
3125
  }
3105
3126
  var TIMEOUT = 2e3;
3106
- function CopyButton({ value, timeout = TIMEOUT, className, children, ...props }) {
3127
+ function CopyButton({
3128
+ value,
3129
+ timeout = TIMEOUT,
3130
+ className,
3131
+ children,
3132
+ ...props
3133
+ }) {
3107
3134
  const [copied, setCopied] = useState(false);
3108
3135
  const ref = useRef(timeout);
3109
3136
  const handleCopy = async () => {
@@ -3390,10 +3417,13 @@ function DataCard({ data = [], labelWidth = "auto", ...props }) {
3390
3417
  padding: "6",
3391
3418
  ...props,
3392
3419
  children: rows.map((row, index) => {
3393
- return /* @__PURE__ */ jsxs(Fragment$1, { children: [
3394
- /* @__PURE__ */ jsx(Row, { paddingY: "3", border: "bottom", borderColor: "muted", paddingRight: "6", children: /* @__PURE__ */ jsx(Text, { weight: "bold", children: row?.label }) }),
3395
- /* @__PURE__ */ jsx(Row, { paddingY: "3", border: "bottom", children: /* @__PURE__ */ jsx(Text, { children: row?.value }) })
3396
- ] }, index);
3420
+ return (
3421
+ // biome-ignore lint/suspicious/noArrayIndexKey: rows are static display data
3422
+ /* @__PURE__ */ jsxs(Fragment$1, { children: [
3423
+ /* @__PURE__ */ jsx(Row, { paddingY: "3", border: "bottom", borderColor: "muted", paddingRight: "6", children: /* @__PURE__ */ jsx(Text, { weight: "bold", children: row?.label }) }),
3424
+ /* @__PURE__ */ jsx(Row, { paddingY: "3", border: "bottom", children: /* @__PURE__ */ jsx(Text, { children: row?.value }) })
3425
+ ] }, index)
3426
+ );
3397
3427
  })
3398
3428
  }
3399
3429
  );
@@ -3509,25 +3539,28 @@ function DataTable({
3509
3539
  return /* @__PURE__ */ createElement(TableColumn, { ...columnProps, key: id, id }, label);
3510
3540
  }) }),
3511
3541
  /* @__PURE__ */ jsx(TableBody, { children: rows.map((row, index) => {
3512
- return /* @__PURE__ */ jsx(TableRow, { style: { gridTemplateColumns: gridTemplateColumns2 }, children: columns?.map(({ id, as, hidden, className: className2, children: children2, ...cellProps }) => {
3513
- if (hidden) {
3514
- return null;
3515
- }
3516
- const value = typeof children2 === "function" ? children2(row, index) : children2 || row[id];
3517
- return /* @__PURE__ */ createElement(
3518
- TableCell,
3519
- {
3520
- ...cellProps,
3521
- key: id,
3522
- className: cn("items-center", className2)
3523
- },
3524
- as ? createElement(as, {}, value) : value
3525
- );
3526
- }) }, index);
3542
+ return (
3543
+ // biome-ignore lint/suspicious/noArrayIndexKey: row data may not have unique ids
3544
+ /* @__PURE__ */ jsx(TableRow, { style: { gridTemplateColumns: gridTemplateColumns2 }, children: columns?.map(({ id, as, hidden, className: className2, children: children2, ...cellProps }) => {
3545
+ if (hidden) {
3546
+ return null;
3547
+ }
3548
+ const value = typeof children2 === "function" ? children2(row, index) : children2 || row[id];
3549
+ return /* @__PURE__ */ createElement(
3550
+ TableCell,
3551
+ {
3552
+ ...cellProps,
3553
+ key: id,
3554
+ className: cn("items-center", className2)
3555
+ },
3556
+ as ? createElement(as, {}, value) : value
3557
+ );
3558
+ }) }, index)
3559
+ );
3527
3560
  }) })
3528
3561
  ] });
3529
3562
  }
3530
- function DataColumn(props) {
3563
+ function DataColumn(_props) {
3531
3564
  return null;
3532
3565
  }
3533
3566
  var sizeMap2 = {
@@ -3568,7 +3601,12 @@ function Tooltip({ children, className, showArrow, ...props }) {
3568
3601
  children
3569
3602
  ] });
3570
3603
  }
3571
- function TooltipBubble({ children, className, color: _color, ...props }) {
3604
+ function TooltipBubble({
3605
+ children,
3606
+ className,
3607
+ color: _color,
3608
+ ...props
3609
+ }) {
3572
3610
  return /* @__PURE__ */ jsx(Box, { ...props, className, children });
3573
3611
  }
3574
3612
  function FloatingTooltip({ className, style, children, ...props }) {
@@ -3586,7 +3624,10 @@ function FloatingTooltip({ className, style, children, ...props }) {
3586
3624
  TooltipBubble,
3587
3625
  {
3588
3626
  ...props,
3589
- className: cn("fixed pointer-events-none z-[9999] -translate-x-1/2 -translate-y-[calc(100%+10px)]", className),
3627
+ className: cn(
3628
+ "fixed pointer-events-none z-[9999] -translate-x-1/2 -translate-y-[calc(100%+10px)]",
3629
+ className
3630
+ ),
3590
3631
  style: { ...style, left: position.x, top: position.y },
3591
3632
  children
3592
3633
  }
@@ -3733,7 +3774,12 @@ function FormFieldArray({
3733
3774
  children({ ...context, ...fieldProps })
3734
3775
  ] });
3735
3776
  }
3736
- function FormResetButton({ values = {}, children, onPress, ...props }) {
3777
+ function FormResetButton({
3778
+ values = {},
3779
+ children,
3780
+ onPress,
3781
+ ...props
3782
+ }) {
3737
3783
  const { reset } = useFormContext();
3738
3784
  const handleReset = (e) => {
3739
3785
  reset(values);
@@ -4024,7 +4070,7 @@ function Toast({
4024
4070
  return /* @__PURE__ */ jsxs(Row, { ...props, className: cn(toast({ variant }), className), children: [
4025
4071
  /* @__PURE__ */ jsxs(Column, { flexGrow: 1, gap: "1", children: [
4026
4072
  title && /* @__PURE__ */ jsx(Text, { weight: "semibold", children: title }),
4027
- message && /* @__PURE__ */ jsx(Text, { color: "muted", children: message })
4073
+ message && /* @__PURE__ */ jsx(Text, { color: title ? "muted" : void 0, children: message })
4028
4074
  ] }),
4029
4075
  hasActions && actions.map((action) => {
4030
4076
  return /* @__PURE__ */ jsx(Button, { variant: "outline", onPress: () => onClose?.(action), children: action }, action);
@@ -4044,13 +4090,13 @@ function Toast({
4044
4090
  }
4045
4091
  var positionClasses = {
4046
4092
  "top-left": "top-4 left-4 items-start",
4047
- "top": "top-4 left-1/2 -translate-x-1/2 items-center",
4093
+ top: "top-4 left-1/2 -translate-x-1/2 items-center",
4048
4094
  "top-right": "top-4 right-4 items-end",
4049
4095
  "bottom-left": "bottom-4 left-4 items-start",
4050
- "bottom": "bottom-4 left-1/2 -translate-x-1/2 items-center",
4096
+ bottom: "bottom-4 left-1/2 -translate-x-1/2 items-center",
4051
4097
  "bottom-right": "bottom-4 right-4 items-end",
4052
- "left": "top-1/2 left-4 -translate-y-1/2 items-start",
4053
- "right": "top-1/2 right-4 -translate-y-1/2 items-end"
4098
+ left: "top-1/2 left-4 -translate-y-1/2 items-start",
4099
+ right: "top-1/2 right-4 -translate-y-1/2 items-end"
4054
4100
  };
4055
4101
  var AnimatedBox = animated(Box);
4056
4102
  function Toaster({ duration = 0, position = "bottom-right" }) {
@@ -4368,6 +4414,11 @@ var PALETTE_LABELS = {
4368
4414
  };
4369
4415
  function PaletteSwitcher({ className }) {
4370
4416
  const { palette, setPalette } = useTheme();
4417
+ const [mounted, setMounted] = useState(false);
4418
+ useEffect(() => {
4419
+ setMounted(true);
4420
+ }, []);
4421
+ const currentPalette = mounted ? palette : "neutral";
4371
4422
  return /* @__PURE__ */ jsx(
4372
4423
  "div",
4373
4424
  {
@@ -4381,13 +4432,13 @@ function PaletteSwitcher({ className }) {
4381
4432
  type: "button",
4382
4433
  onClick: () => setPalette(p),
4383
4434
  "aria-label": PALETTE_LABELS[p],
4384
- "aria-pressed": palette === p,
4435
+ "aria-pressed": currentPalette === p,
4385
4436
  className: cn(
4386
4437
  "px-3 h-9 flex items-center justify-center cursor-pointer outline-none transition-colors text-sm",
4387
4438
  "[&:not(:first-child)]:border-l [&:not(:first-child)]:border-edge",
4388
4439
  "hover:bg-interactive",
4389
4440
  "focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-inset",
4390
- palette === p ? "bg-interactive text-foreground-primary" : "text-foreground-muted"
4441
+ currentPalette === p ? "bg-interactive text-foreground-primary" : "text-foreground-muted"
4391
4442
  ),
4392
4443
  children: PALETTE_LABELS[p]
4393
4444
  },
@@ -4396,7 +4447,7 @@ function PaletteSwitcher({ className }) {
4396
4447
  }
4397
4448
  );
4398
4449
  }
4399
- var SvgEyeSlash = (props) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 256 256", ...props, children: [
4450
+ var SvgEye = (props) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 256 256", ...props, children: [
4400
4451
  /* @__PURE__ */ jsx("path", { fill: "none", d: "M0 0h256v256H0z" }),
4401
4452
  /* @__PURE__ */ jsx(
4402
4453
  "path",
@@ -4406,23 +4457,25 @@ var SvgEyeSlash = (props) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3
4406
4457
  strokeLinecap: "round",
4407
4458
  strokeLinejoin: "round",
4408
4459
  strokeWidth: 16,
4409
- d: "m48 40 160 176M154.91 157.6a40 40 0 0 1-53.82-59.2M135.53 88.71a40 40 0 0 1 32.3 35.53"
4460
+ d: "M128 56c-80 0-112 72-112 72s32 72 112 72 112-72 112-72-32-72-112-72"
4410
4461
  }
4411
4462
  ),
4412
4463
  /* @__PURE__ */ jsx(
4413
- "path",
4464
+ "circle",
4414
4465
  {
4466
+ cx: 128,
4467
+ cy: 128,
4468
+ r: 40,
4415
4469
  fill: "none",
4416
4470
  stroke: "currentColor",
4417
4471
  strokeLinecap: "round",
4418
4472
  strokeLinejoin: "round",
4419
- strokeWidth: 16,
4420
- d: "M208.61 169.1C230.41 149.58 240 128 240 128s-32-72-112-72a126 126 0 0 0-20.68 1.68M74 68.6C33.23 89.24 16 128 16 128s32 72 112 72a118.05 118.05 0 0 0 54-12.6"
4473
+ strokeWidth: 16
4421
4474
  }
4422
4475
  )
4423
4476
  ] });
4424
- var EyeSlash_default = SvgEyeSlash;
4425
- var SvgEye = (props) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 256 256", ...props, children: [
4477
+ var Eye_default = SvgEye;
4478
+ var SvgEyeSlash = (props) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 256 256", ...props, children: [
4426
4479
  /* @__PURE__ */ jsx("path", { fill: "none", d: "M0 0h256v256H0z" }),
4427
4480
  /* @__PURE__ */ jsx(
4428
4481
  "path",
@@ -4432,24 +4485,22 @@ var SvgEye = (props) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/
4432
4485
  strokeLinecap: "round",
4433
4486
  strokeLinejoin: "round",
4434
4487
  strokeWidth: 16,
4435
- d: "M128 56c-80 0-112 72-112 72s32 72 112 72 112-72 112-72-32-72-112-72"
4488
+ d: "m48 40 160 176M154.91 157.6a40 40 0 0 1-53.82-59.2M135.53 88.71a40 40 0 0 1 32.3 35.53"
4436
4489
  }
4437
4490
  ),
4438
4491
  /* @__PURE__ */ jsx(
4439
- "circle",
4492
+ "path",
4440
4493
  {
4441
- cx: 128,
4442
- cy: 128,
4443
- r: 40,
4444
4494
  fill: "none",
4445
4495
  stroke: "currentColor",
4446
4496
  strokeLinecap: "round",
4447
4497
  strokeLinejoin: "round",
4448
- strokeWidth: 16
4498
+ strokeWidth: 16,
4499
+ d: "M208.61 169.1C230.41 149.58 240 128 240 128s-32-72-112-72a126 126 0 0 0-20.68 1.68M74 68.6C33.23 89.24 16 128 16 128s32 72 112 72a118.05 118.05 0 0 0 54-12.6"
4449
4500
  }
4450
4501
  )
4451
4502
  ] });
4452
- var Eye_default = SvgEye;
4503
+ var EyeSlash_default = SvgEyeSlash;
4453
4504
  function PasswordField({ label, className, ...props }) {
4454
4505
  const [show, setShow] = useState(false);
4455
4506
  const type = show ? "text" : "password";
@@ -4639,7 +4690,6 @@ function SearchField({
4639
4690
  ] });
4640
4691
  }
4641
4692
  function Select({
4642
- items = [],
4643
4693
  value,
4644
4694
  defaultValue,
4645
4695
  label,
@@ -4712,7 +4762,6 @@ function Select({
4712
4762
  List,
4713
4763
  {
4714
4764
  ...listProps,
4715
- items,
4716
4765
  isFullscreen,
4717
4766
  ...isFullscreen && {
4718
4767
  shouldSelectOnPressUp: true,
@@ -4835,6 +4884,20 @@ function Tab({ children, className, ...props }) {
4835
4884
  function TabPanel({ children, className, ...props }) {
4836
4885
  return /* @__PURE__ */ jsx(TabPanel$1, { ...props, className, children });
4837
4886
  }
4887
+ function TagGroup({ label, children, className, ...props }) {
4888
+ return /* @__PURE__ */ jsxs(TagGroup$1, { ...props, className: cn("flex flex-col gap-1", className), children: [
4889
+ label && /* @__PURE__ */ jsx(Label, { children: label }),
4890
+ /* @__PURE__ */ jsx(TagList, { className: "flex flex-wrap gap-1", children })
4891
+ ] });
4892
+ }
4893
+ function Tag({ variant, children, className, ...props }) {
4894
+ const textValue = typeof children === "string" ? children : void 0;
4895
+ const styles = tag({ variant });
4896
+ return /* @__PURE__ */ jsx(Tag$1, { ...props, textValue, className: cn(styles.base(), className), children: ({ allowsRemoving }) => /* @__PURE__ */ jsxs(Fragment, { children: [
4897
+ children,
4898
+ allowsRemoving && /* @__PURE__ */ jsx(Button$1, { slot: "remove", className: styles.removeButton(), children: /* @__PURE__ */ jsx(Icon, { size: "xs", children: /* @__PURE__ */ jsx(icons_exports.X, {}) }) })
4899
+ ] }) });
4900
+ }
4838
4901
  function getElement(target) {
4839
4902
  return "current" in target ? target.current : target;
4840
4903
  }
@@ -5017,7 +5080,7 @@ function ToggleGroup({
5017
5080
  onChange?.(Array.from(keys).map((k) => k.toString()));
5018
5081
  };
5019
5082
  return /* @__PURE__ */ jsxs(
5020
- TagGroup,
5083
+ TagGroup$1,
5021
5084
  {
5022
5085
  ...props,
5023
5086
  selectedKeys: value || selectedKeys,
@@ -5037,7 +5100,7 @@ function ToggleGroup({
5037
5100
  }
5038
5101
  function ToggleGroupItem({ className, children, ...props }) {
5039
5102
  return /* @__PURE__ */ jsx(
5040
- Tag,
5103
+ Tag$1,
5041
5104
  {
5042
5105
  ...props,
5043
5106
  className: cn(
@@ -5066,6 +5129,6 @@ function ZenProvider({
5066
5129
  return /* @__PURE__ */ jsx(ToastProvider, { ...toast2, children });
5067
5130
  }
5068
5131
 
5069
- export { Accordion, AccordionItem, AlertBanner, AlertDialog, Blockquote, Box, Breadcrumb, Breadcrumbs, Button, Calendar, Checkbox, Code, Column, ComboBox, ConfirmationDialog, Container, CopyButton, DataCard, DataColumn, DataTable, Dialog, Dots, Flexbox, FloatingTooltip, Form, FormButtons, FormController, FormField, FormFieldArray, FormResetButton, FormSubmitButton, Grid, Heading, HoverTrigger, Icon, Image, Label, List, ListItem, ListSection, ListSeparator, Loading, LoadingButton, Menu, MenuItem, MenuSection, MenuSeparator, Modal, Navbar, NavbarContext, NavbarItem, PALETTES, PaletteSwitcher, PasswordField, Popover, ProgressBar, ProgressCircle, Radio, RadioGroup, Row, SearchField, Select, Slider, Spinner, StatusLight, SubMenuTrigger, Switch, Tab, TabList, TabPanel, Table, TableBody, TableCell, TableColumn, TableHeader, TableRow, Tabs, Text, TextField, ThemeButton, ThemeSwitcher, Toast, ToastContext, ToastProvider, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipBubble, ZenProvider, cn, getCssColorValue, isHeightPreset, isMaxHeightPreset, isMaxWidthPreset, isMinHeightPreset, isMinWidthPreset, isWidthPreset, mapAlignContent, mapAlignItems, mapAlignSelf, mapBackgroundColor, mapBorder, mapBorderColor, mapBorderRadius, mapBorderWidth, mapCursor, mapDisplay, mapFlexDirection, mapFlexWrap, mapFontSize, mapFontWeight, mapGap, mapGridAutoFlow, mapGridColumns, mapGridRows, mapHeadingSize, mapHeight, mapJustifyContent, mapJustifyItems, mapLetterSpacing, mapLineHeight, mapMargin, mapMaxHeight, mapMaxWidth, mapMinHeight, mapMinWidth, mapOpacity, mapOverflow, mapPadding, mapPointerEvents, mapPosition, mapShadow, mapStateStyles, mapTextAlign, mapTextColor, mapTextDecorationStyle, mapTextIndent, mapTextTransform, mapTextWrap, mapVerticalAlign, mapWhitespace, mapWidth, mapWordBreak, removeToast, resolveRender, useBreakpoint, useDebounce, useInitTheme, useNavigationContext, useTheme, useToast };
5132
+ export { Accordion, AccordionItem, AlertBanner, AlertDialog, Blockquote, Box, Breadcrumb, Breadcrumbs, Button, Calendar, Checkbox, Code, Column, ComboBox, ConfirmationDialog, Container, CopyButton, DataCard, DataColumn, DataTable, Dialog, Dots, Flexbox, FloatingTooltip, Form, FormButtons, FormController, FormField, FormFieldArray, FormResetButton, FormSubmitButton, Grid, Heading, HoverTrigger, Icon, Image, Label, List, ListItem, ListSection, ListSeparator, Loading, LoadingButton, Menu, MenuItem, MenuSection, MenuSeparator, Modal, Navbar, NavbarContext, NavbarItem, PALETTES, PaletteSwitcher, PasswordField, Popover, ProgressBar, ProgressCircle, Radio, RadioGroup, Row, SearchField, Select, Slider, Spinner, StatusLight, SubMenuTrigger, Switch, Tab, TabList, TabPanel, Table, TableBody, TableCell, TableColumn, TableHeader, TableRow, Tabs, Tag, TagGroup, Text, TextField, ThemeButton, ThemeSwitcher, Toast, ToastContext, ToastProvider, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipBubble, ZenProvider, cn, getCssColorValue, isHeightPreset, isMaxHeightPreset, isMaxWidthPreset, isMinHeightPreset, isMinWidthPreset, isWidthPreset, mapAlignContent, mapAlignItems, mapAlignSelf, mapBackgroundColor, mapBorder, mapBorderColor, mapBorderRadius, mapBorderWidth, mapCursor, mapDisplay, mapFlexDirection, mapFlexWrap, mapFontSize, mapFontWeight, mapGap, mapGridAutoFlow, mapGridColumns, mapGridRows, mapHeadingSize, mapHeight, mapJustifyContent, mapJustifyItems, mapLetterSpacing, mapLineHeight, mapMargin, mapMaxHeight, mapMaxWidth, mapMinHeight, mapMinWidth, mapOpacity, mapOverflow, mapPadding, mapPointerEvents, mapPosition, mapShadow, mapStateStyles, mapTextAlign, mapTextColor, mapTextDecorationStyle, mapTextIndent, mapTextTransform, mapTextWrap, mapVerticalAlign, mapWhitespace, mapWidth, mapWordBreak, removeToast, resolveRender, useBreakpoint, useDebounce, useInitTheme, useNavigationContext, useTheme, useToast };
5070
5133
  //# sourceMappingURL=index.mjs.map
5071
5134
  //# sourceMappingURL=index.mjs.map