@umami/react-zen 0.239.0 → 0.241.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",
@@ -2375,7 +2410,6 @@ function Text({
2375
2410
  const colorStr = color === true ? "true" : color;
2376
2411
  const decorationColorStr = decorationColor === true ? "true" : decorationColor;
2377
2412
  const classes = cn(
2378
- "text-foreground-primary",
2379
2413
  mapFontSize(size),
2380
2414
  mapFontWeight(weight),
2381
2415
  mapTextAlign(align),
@@ -2499,6 +2533,7 @@ var Box = forwardRef(function Box2({
2499
2533
  flexBasis,
2500
2534
  flexGrow,
2501
2535
  flexShrink,
2536
+ fill,
2502
2537
  gridArea,
2503
2538
  gridRow,
2504
2539
  gridColumn,
@@ -2586,6 +2621,7 @@ var Box = forwardRef(function Box2({
2586
2621
  ...flexBasis && { flexBasis },
2587
2622
  ...flexGrow !== void 0 && { flexGrow },
2588
2623
  ...flexShrink !== void 0 && { flexShrink },
2624
+ ...fill && { flex: 1 },
2589
2625
  ...gridArea && { gridArea },
2590
2626
  ...gridRow && { gridRow },
2591
2627
  ...gridColumn && { gridColumn },
@@ -2850,20 +2886,12 @@ function Calendar({
2850
2886
  function Checkbox({ label, className, children, ...props }) {
2851
2887
  const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
2852
2888
  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
- );
2889
+ return /* @__PURE__ */ jsx(Checkbox$1, { ...props, isSelected, className: cn(styles.root(), className), children: ({ isIndeterminate, isSelected: isSelected2 }) => {
2890
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
2891
+ /* @__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 }) }),
2892
+ children
2893
+ ] });
2894
+ } });
2867
2895
  }
2868
2896
  function Code({ className, children, ...props }) {
2869
2897
  return /* @__PURE__ */ jsx(
@@ -2882,7 +2910,12 @@ function useFieldId(id) {
2882
2910
  const generatedId = useId();
2883
2911
  return id ?? generatedId;
2884
2912
  }
2885
- function Label({ size = "base", weight = "semibold", lineHeight = "loose", ...props }) {
2913
+ function Label({
2914
+ size = "base",
2915
+ weight = "semibold",
2916
+ lineHeight = "loose",
2917
+ ...props
2918
+ }) {
2886
2919
  return /* @__PURE__ */ jsx(
2887
2920
  Text,
2888
2921
  {
@@ -2955,10 +2988,6 @@ function getHighlightColor(color) {
2955
2988
  }
2956
2989
  function List({
2957
2990
  id,
2958
- items = [],
2959
- idProperty = "id",
2960
- labelProperty = "label",
2961
- separatorProperty = "separator",
2962
2991
  highlightColor,
2963
2992
  showCheckmark = true,
2964
2993
  isFullscreen,
@@ -2990,7 +3019,6 @@ function List({
2990
3019
  ...props,
2991
3020
  selectedKeys: value || selectedKeys,
2992
3021
  defaultSelectedKeys: value || defaultSelectedKeys,
2993
- items,
2994
3022
  className: cn(
2995
3023
  "grid outline-none overflow-auto gap-1",
2996
3024
  isFullscreen && "block p-3 rounded-none fixed inset-0 overflow-auto z-[9999] bg-surface-base",
@@ -2998,14 +3026,7 @@ function List({
2998
3026
  ),
2999
3027
  onSelectionChange: handleSelectionChange,
3000
3028
  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
- })
3029
+ children
3009
3030
  }
3010
3031
  )
3011
3032
  ] });
@@ -3062,7 +3083,6 @@ function Popover({ children, isFullscreen, className, ...props }) {
3062
3083
  );
3063
3084
  }
3064
3085
  function ComboBox({
3065
- items,
3066
3086
  className,
3067
3087
  renderEmptyState,
3068
3088
  listProps,
@@ -3099,11 +3119,17 @@ function ComboBox({
3099
3119
  ]
3100
3120
  }
3101
3121
  ),
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)) }) }) })
3122
+ /* @__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
3123
  ] });
3104
3124
  }
3105
3125
  var TIMEOUT = 2e3;
3106
- function CopyButton({ value, timeout = TIMEOUT, className, children, ...props }) {
3126
+ function CopyButton({
3127
+ value,
3128
+ timeout = TIMEOUT,
3129
+ className,
3130
+ children,
3131
+ ...props
3132
+ }) {
3107
3133
  const [copied, setCopied] = useState(false);
3108
3134
  const ref = useRef(timeout);
3109
3135
  const handleCopy = async () => {
@@ -3390,10 +3416,13 @@ function DataCard({ data = [], labelWidth = "auto", ...props }) {
3390
3416
  padding: "6",
3391
3417
  ...props,
3392
3418
  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);
3419
+ return (
3420
+ // biome-ignore lint/suspicious/noArrayIndexKey: rows are static display data
3421
+ /* @__PURE__ */ jsxs(Fragment$1, { children: [
3422
+ /* @__PURE__ */ jsx(Row, { paddingY: "3", border: "bottom", borderColor: "muted", paddingRight: "6", children: /* @__PURE__ */ jsx(Text, { weight: "bold", children: row?.label }) }),
3423
+ /* @__PURE__ */ jsx(Row, { paddingY: "3", border: "bottom", children: /* @__PURE__ */ jsx(Text, { children: row?.value }) })
3424
+ ] }, index)
3425
+ );
3397
3426
  })
3398
3427
  }
3399
3428
  );
@@ -3509,25 +3538,28 @@ function DataTable({
3509
3538
  return /* @__PURE__ */ createElement(TableColumn, { ...columnProps, key: id, id }, label);
3510
3539
  }) }),
3511
3540
  /* @__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);
3541
+ return (
3542
+ // biome-ignore lint/suspicious/noArrayIndexKey: row data may not have unique ids
3543
+ /* @__PURE__ */ jsx(TableRow, { style: { gridTemplateColumns: gridTemplateColumns2 }, children: columns?.map(({ id, as, hidden, className: className2, children: children2, ...cellProps }) => {
3544
+ if (hidden) {
3545
+ return null;
3546
+ }
3547
+ const value = typeof children2 === "function" ? children2(row, index) : children2 || row[id];
3548
+ return /* @__PURE__ */ createElement(
3549
+ TableCell,
3550
+ {
3551
+ ...cellProps,
3552
+ key: id,
3553
+ className: cn("items-center", className2)
3554
+ },
3555
+ as ? createElement(as, {}, value) : value
3556
+ );
3557
+ }) }, index)
3558
+ );
3527
3559
  }) })
3528
3560
  ] });
3529
3561
  }
3530
- function DataColumn(props) {
3562
+ function DataColumn(_props) {
3531
3563
  return null;
3532
3564
  }
3533
3565
  var sizeMap2 = {
@@ -3568,7 +3600,12 @@ function Tooltip({ children, className, showArrow, ...props }) {
3568
3600
  children
3569
3601
  ] });
3570
3602
  }
3571
- function TooltipBubble({ children, className, color: _color, ...props }) {
3603
+ function TooltipBubble({
3604
+ children,
3605
+ className,
3606
+ color: _color,
3607
+ ...props
3608
+ }) {
3572
3609
  return /* @__PURE__ */ jsx(Box, { ...props, className, children });
3573
3610
  }
3574
3611
  function FloatingTooltip({ className, style, children, ...props }) {
@@ -3586,7 +3623,10 @@ function FloatingTooltip({ className, style, children, ...props }) {
3586
3623
  TooltipBubble,
3587
3624
  {
3588
3625
  ...props,
3589
- className: cn("fixed pointer-events-none z-[9999] -translate-x-1/2 -translate-y-[calc(100%+10px)]", className),
3626
+ className: cn(
3627
+ "fixed pointer-events-none z-[9999] -translate-x-1/2 -translate-y-[calc(100%+10px)]",
3628
+ className
3629
+ ),
3590
3630
  style: { ...style, left: position.x, top: position.y },
3591
3631
  children
3592
3632
  }
@@ -3733,7 +3773,12 @@ function FormFieldArray({
3733
3773
  children({ ...context, ...fieldProps })
3734
3774
  ] });
3735
3775
  }
3736
- function FormResetButton({ values = {}, children, onPress, ...props }) {
3776
+ function FormResetButton({
3777
+ values = {},
3778
+ children,
3779
+ onPress,
3780
+ ...props
3781
+ }) {
3737
3782
  const { reset } = useFormContext();
3738
3783
  const handleReset = (e) => {
3739
3784
  reset(values);
@@ -4024,7 +4069,7 @@ function Toast({
4024
4069
  return /* @__PURE__ */ jsxs(Row, { ...props, className: cn(toast({ variant }), className), children: [
4025
4070
  /* @__PURE__ */ jsxs(Column, { flexGrow: 1, gap: "1", children: [
4026
4071
  title && /* @__PURE__ */ jsx(Text, { weight: "semibold", children: title }),
4027
- message && /* @__PURE__ */ jsx(Text, { color: "muted", children: message })
4072
+ message && /* @__PURE__ */ jsx(Text, { color: title ? "muted" : void 0, children: message })
4028
4073
  ] }),
4029
4074
  hasActions && actions.map((action) => {
4030
4075
  return /* @__PURE__ */ jsx(Button, { variant: "outline", onPress: () => onClose?.(action), children: action }, action);
@@ -4044,13 +4089,13 @@ function Toast({
4044
4089
  }
4045
4090
  var positionClasses = {
4046
4091
  "top-left": "top-4 left-4 items-start",
4047
- "top": "top-4 left-1/2 -translate-x-1/2 items-center",
4092
+ top: "top-4 left-1/2 -translate-x-1/2 items-center",
4048
4093
  "top-right": "top-4 right-4 items-end",
4049
4094
  "bottom-left": "bottom-4 left-4 items-start",
4050
- "bottom": "bottom-4 left-1/2 -translate-x-1/2 items-center",
4095
+ bottom: "bottom-4 left-1/2 -translate-x-1/2 items-center",
4051
4096
  "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"
4097
+ left: "top-1/2 left-4 -translate-y-1/2 items-start",
4098
+ right: "top-1/2 right-4 -translate-y-1/2 items-end"
4054
4099
  };
4055
4100
  var AnimatedBox = animated(Box);
4056
4101
  function Toaster({ duration = 0, position = "bottom-right" }) {
@@ -4368,6 +4413,11 @@ var PALETTE_LABELS = {
4368
4413
  };
4369
4414
  function PaletteSwitcher({ className }) {
4370
4415
  const { palette, setPalette } = useTheme();
4416
+ const [mounted, setMounted] = useState(false);
4417
+ useEffect(() => {
4418
+ setMounted(true);
4419
+ }, []);
4420
+ const currentPalette = mounted ? palette : "neutral";
4371
4421
  return /* @__PURE__ */ jsx(
4372
4422
  "div",
4373
4423
  {
@@ -4381,13 +4431,13 @@ function PaletteSwitcher({ className }) {
4381
4431
  type: "button",
4382
4432
  onClick: () => setPalette(p),
4383
4433
  "aria-label": PALETTE_LABELS[p],
4384
- "aria-pressed": palette === p,
4434
+ "aria-pressed": currentPalette === p,
4385
4435
  className: cn(
4386
4436
  "px-3 h-9 flex items-center justify-center cursor-pointer outline-none transition-colors text-sm",
4387
4437
  "[&:not(:first-child)]:border-l [&:not(:first-child)]:border-edge",
4388
4438
  "hover:bg-interactive",
4389
4439
  "focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-inset",
4390
- palette === p ? "bg-interactive text-foreground-primary" : "text-foreground-muted"
4440
+ currentPalette === p ? "bg-interactive text-foreground-primary" : "text-foreground-muted"
4391
4441
  ),
4392
4442
  children: PALETTE_LABELS[p]
4393
4443
  },
@@ -4396,7 +4446,7 @@ function PaletteSwitcher({ className }) {
4396
4446
  }
4397
4447
  );
4398
4448
  }
4399
- var SvgEyeSlash = (props) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 256 256", ...props, children: [
4449
+ var SvgEye = (props) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 256 256", ...props, children: [
4400
4450
  /* @__PURE__ */ jsx("path", { fill: "none", d: "M0 0h256v256H0z" }),
4401
4451
  /* @__PURE__ */ jsx(
4402
4452
  "path",
@@ -4406,23 +4456,25 @@ var SvgEyeSlash = (props) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3
4406
4456
  strokeLinecap: "round",
4407
4457
  strokeLinejoin: "round",
4408
4458
  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"
4459
+ d: "M128 56c-80 0-112 72-112 72s32 72 112 72 112-72 112-72-32-72-112-72"
4410
4460
  }
4411
4461
  ),
4412
4462
  /* @__PURE__ */ jsx(
4413
- "path",
4463
+ "circle",
4414
4464
  {
4465
+ cx: 128,
4466
+ cy: 128,
4467
+ r: 40,
4415
4468
  fill: "none",
4416
4469
  stroke: "currentColor",
4417
4470
  strokeLinecap: "round",
4418
4471
  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"
4472
+ strokeWidth: 16
4421
4473
  }
4422
4474
  )
4423
4475
  ] });
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: [
4476
+ var Eye_default = SvgEye;
4477
+ var SvgEyeSlash = (props) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 256 256", ...props, children: [
4426
4478
  /* @__PURE__ */ jsx("path", { fill: "none", d: "M0 0h256v256H0z" }),
4427
4479
  /* @__PURE__ */ jsx(
4428
4480
  "path",
@@ -4432,24 +4484,22 @@ var SvgEye = (props) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/
4432
4484
  strokeLinecap: "round",
4433
4485
  strokeLinejoin: "round",
4434
4486
  strokeWidth: 16,
4435
- d: "M128 56c-80 0-112 72-112 72s32 72 112 72 112-72 112-72-32-72-112-72"
4487
+ 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
4488
  }
4437
4489
  ),
4438
4490
  /* @__PURE__ */ jsx(
4439
- "circle",
4491
+ "path",
4440
4492
  {
4441
- cx: 128,
4442
- cy: 128,
4443
- r: 40,
4444
4493
  fill: "none",
4445
4494
  stroke: "currentColor",
4446
4495
  strokeLinecap: "round",
4447
4496
  strokeLinejoin: "round",
4448
- strokeWidth: 16
4497
+ strokeWidth: 16,
4498
+ 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
4499
  }
4450
4500
  )
4451
4501
  ] });
4452
- var Eye_default = SvgEye;
4502
+ var EyeSlash_default = SvgEyeSlash;
4453
4503
  function PasswordField({ label, className, ...props }) {
4454
4504
  const [show, setShow] = useState(false);
4455
4505
  const type = show ? "text" : "password";
@@ -4639,7 +4689,6 @@ function SearchField({
4639
4689
  ] });
4640
4690
  }
4641
4691
  function Select({
4642
- items = [],
4643
4692
  value,
4644
4693
  defaultValue,
4645
4694
  label,
@@ -4712,7 +4761,6 @@ function Select({
4712
4761
  List,
4713
4762
  {
4714
4763
  ...listProps,
4715
- items,
4716
4764
  isFullscreen,
4717
4765
  ...isFullscreen && {
4718
4766
  shouldSelectOnPressUp: true,
@@ -4835,6 +4883,20 @@ function Tab({ children, className, ...props }) {
4835
4883
  function TabPanel({ children, className, ...props }) {
4836
4884
  return /* @__PURE__ */ jsx(TabPanel$1, { ...props, className, children });
4837
4885
  }
4886
+ function TagGroup({ label, children, className, ...props }) {
4887
+ return /* @__PURE__ */ jsxs(TagGroup$1, { ...props, className: cn("flex flex-col gap-1", className), children: [
4888
+ label && /* @__PURE__ */ jsx(Label, { children: label }),
4889
+ /* @__PURE__ */ jsx(TagList, { className: "flex flex-wrap gap-1", children })
4890
+ ] });
4891
+ }
4892
+ function Tag({ variant, children, className, ...props }) {
4893
+ const textValue = typeof children === "string" ? children : void 0;
4894
+ const styles = tag({ variant });
4895
+ return /* @__PURE__ */ jsx(Tag$1, { ...props, textValue, className: cn(styles.base(), className), children: ({ allowsRemoving }) => /* @__PURE__ */ jsxs(Fragment, { children: [
4896
+ children,
4897
+ allowsRemoving && /* @__PURE__ */ jsx(Button$1, { slot: "remove", className: styles.removeButton(), children: /* @__PURE__ */ jsx(Icon, { size: "xs", children: /* @__PURE__ */ jsx(icons_exports.X, {}) }) })
4898
+ ] }) });
4899
+ }
4838
4900
  function getElement(target) {
4839
4901
  return "current" in target ? target.current : target;
4840
4902
  }
@@ -5017,7 +5079,7 @@ function ToggleGroup({
5017
5079
  onChange?.(Array.from(keys).map((k) => k.toString()));
5018
5080
  };
5019
5081
  return /* @__PURE__ */ jsxs(
5020
- TagGroup,
5082
+ TagGroup$1,
5021
5083
  {
5022
5084
  ...props,
5023
5085
  selectedKeys: value || selectedKeys,
@@ -5037,7 +5099,7 @@ function ToggleGroup({
5037
5099
  }
5038
5100
  function ToggleGroupItem({ className, children, ...props }) {
5039
5101
  return /* @__PURE__ */ jsx(
5040
- Tag,
5102
+ Tag$1,
5041
5103
  {
5042
5104
  ...props,
5043
5105
  className: cn(
@@ -5066,6 +5128,6 @@ function ZenProvider({
5066
5128
  return /* @__PURE__ */ jsx(ToastProvider, { ...toast2, children });
5067
5129
  }
5068
5130
 
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 };
5131
+ 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
5132
  //# sourceMappingURL=index.mjs.map
5071
5133
  //# sourceMappingURL=index.mjs.map