@cloudflare/kumo 2.15.0 → 2.17.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.
Files changed (80) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/ai/component-registry.json +49 -11
  3. package/ai/component-registry.md +102 -4
  4. package/ai/schemas.ts +5 -3
  5. package/dist/.build-complete +1 -1
  6. package/dist/ai/schemas.d.ts +4 -0
  7. package/dist/ai/schemas.js +2 -0
  8. package/dist/chunks/{autocomplete-kgp17p6oz4pczxt9.js → autocomplete-evlm6fj7v7w0g2z2.js} +2 -2
  9. package/dist/chunks/{banner-cpla8vqjxaulggyd.js → banner-lvbgdzxq3yndkbot.js} +1 -1
  10. package/dist/chunks/{breadcrumbs-oyuqwb09l08uhok2.js → breadcrumbs-fsuyq7z6hdh1thjv.js} +1 -1
  11. package/dist/chunks/{button-oxy32x5w9x9az80g.js → button-k7axs4vu1rwx89w3.js} +1 -1
  12. package/dist/chunks/{chart-foxl6xbubuoshfcs.js → chart-hp3vqwe49tbyywqm.js} +17 -6
  13. package/dist/chunks/{checkbox-o9627970y7c9ciqy.js → checkbox-g8b4f2hs5vux3u26.js} +1 -1
  14. package/dist/chunks/{clipboard-text-bhy88tgvk1o6wmyl.js → clipboard-text-fffd5tpa0iye6r6m.js} +17 -6
  15. package/dist/chunks/{combobox-hwrq8etkr7p2id0x.js → combobox-iawd8lxwd5b18fce.js} +2 -2
  16. package/dist/chunks/{date-picker-oee5ehsrepnlmltj.js → date-picker-kfoxd4u7ckg4nsez.js} +78 -6
  17. package/dist/chunks/{empty-ft85jcbs7fd5t3tn.js → empty-ir5bg5w4kkisuc1c.js} +1 -1
  18. package/dist/chunks/{field-jzzlgre0jmrr38o2.js → field-n7gmbg5xvh6oqbom.js} +7 -2
  19. package/dist/chunks/{input-ksy1w6j1m6olz6ck.js → input-f0pbcvjudf5zb8ek.js} +2 -2
  20. package/dist/chunks/{input-group-n08mcd8b36wbylro.js → input-group-dqo5tcoewbdx86qx.js} +4 -4
  21. package/dist/chunks/{input-il37wjigy2xtgdo2.js → input-iev3wgdzhkqpae2k.js} +2 -2
  22. package/dist/chunks/{label-hugrtzreeqk5mtqu.js → label-njfcj6h9utmg2n9l.js} +2 -2
  23. package/dist/chunks/{layer-dialog-dwrrgv1wasrerow4.js → layer-dialog-n7foup6icxowm82n.js} +11 -3
  24. package/dist/chunks/{menubar-m5pqhx7lu5z7mkks.js → menubar-b454nksysu0wicbz.js} +1 -1
  25. package/dist/chunks/{pagination-h24on80p2z5ugqdb.js → pagination-mwlpbysq4cxmvs45.js} +25 -23
  26. package/dist/chunks/{select-ey03k4630uckf1rk.js → select-fae2ls189jrq902h.js} +4 -4
  27. package/dist/chunks/{sensitive-input-lfrrtyg9n5ulq3tb.js → sensitive-input-heb3xapwahzhpq6y.js} +2 -2
  28. package/dist/chunks/{sidebar-gluq5b5oacrdk4m4.js → sidebar-h6g412ror8p7uo0d.js} +3 -3
  29. package/dist/chunks/{switch-mqf1ulvle4nd6d2t.js → switch-ktfauhluw1yi5tkk.js} +1 -1
  30. package/dist/chunks/{table-nysse5tiwf47gg4k.js → table-lp41fsw7mqr751hn.js} +1 -1
  31. package/dist/chunks/{tag-input-b10gfxoob9vcizpm.js → tag-input-k6vzllby4qebmv63.js} +38 -22
  32. package/dist/chunks/{toast-b4t9rt9y1sumcmy2.js → toast-kzwscia42707sau6.js} +60 -52
  33. package/dist/chunks/{toolbar-hov6sa3ui366f447.js → toolbar-nnos2ouwfk7i6tpw.js} +3 -3
  34. package/dist/chunks/{tooltip-lguwh8bjhxwnjfus.js → tooltip-bcymn9bfyz29fvji.js} +2 -0
  35. package/dist/code.js +4 -4
  36. package/dist/components/autocomplete.js +1 -1
  37. package/dist/components/banner.js +1 -1
  38. package/dist/components/breadcrumbs.js +1 -1
  39. package/dist/components/button.js +1 -1
  40. package/dist/components/chart.d.ts +1 -1
  41. package/dist/components/chart.js +1 -1
  42. package/dist/components/checkbox.js +1 -1
  43. package/dist/components/clipboard-text.d.ts +1 -1
  44. package/dist/components/clipboard-text.js +1 -1
  45. package/dist/components/combobox.js +1 -1
  46. package/dist/components/date-picker.d.ts +1 -1
  47. package/dist/components/date-picker.js +1 -1
  48. package/dist/components/empty.js +1 -1
  49. package/dist/components/field.js +1 -1
  50. package/dist/components/input-group.js +1 -1
  51. package/dist/components/input.js +3 -3
  52. package/dist/components/label.js +1 -1
  53. package/dist/components/layer-dialog.d.ts +1 -1
  54. package/dist/components/layer-dialog.js +1 -1
  55. package/dist/components/menubar.js +1 -1
  56. package/dist/components/pagination.js +1 -1
  57. package/dist/components/select.js +1 -1
  58. package/dist/components/sensitive-input.js +1 -1
  59. package/dist/components/sidebar.js +1 -1
  60. package/dist/components/switch.js +1 -1
  61. package/dist/components/table.js +1 -1
  62. package/dist/components/tag-input.d.ts +1 -1
  63. package/dist/components/tag-input.js +1 -1
  64. package/dist/components/toast.js +1 -1
  65. package/dist/components/toolbar.js +1 -1
  66. package/dist/components/tooltip.js +1 -1
  67. package/dist/{index-CiwC1j1N.d.ts → index-2jvVmJ8P.d.ts} +9 -0
  68. package/dist/{index-DJIRVD5B.d.ts → index-CReGk3Dc.d.ts} +6 -0
  69. package/dist/{index-5bJAnzUo.d.ts → index-Dmbgjww7.d.ts} +1 -0
  70. package/dist/{index-DNsSKNUe.d.ts → index-bBPKMepR.d.ts} +4 -0
  71. package/dist/{index-fsZE0vPs.d.ts → index-g-eFm1Bq.d.ts} +2 -0
  72. package/dist/index.d.ts +5 -5
  73. package/dist/index.js +27 -27
  74. package/dist/styles/kumo-binding.css +159 -0
  75. package/dist/styles/kumo-standalone.css +1 -1
  76. package/dist/styles/kumo.css +0 -545
  77. package/package.json +1 -1
  78. package/scripts/format-generated.ts +12 -0
  79. package/scripts/generate-primitives.ts +16 -12
  80. package/scripts/theme-generator/index.ts +2 -2
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import { t as cn } from "./vendor-styling-gs32v7xt5znc8kg0.js";
3
- import { t as Button } from "./button-oxy32x5w9x9az80g.js";
3
+ import { t as Button } from "./button-k7axs4vu1rwx89w3.js";
4
4
  import { t as FieldControl } from "./FieldControl-hjj2tcqruozadgdi.js";
5
- import { a as normalizeFieldError, t as Field } from "./field-jzzlgre0jmrr38o2.js";
6
- import { r as inputVariants } from "./input-ksy1w6j1m6olz6ck.js";
5
+ import { a as normalizeFieldError, t as Field } from "./field-n7gmbg5xvh6oqbom.js";
6
+ import { r as inputVariants } from "./input-f0pbcvjudf5zb8ek.js";
7
7
  import { forwardRef, useId, useState } from "react";
8
8
  import { jsx, jsxs } from "react/jsx-runtime";
9
9
  import { XIcon } from "@phosphor-icons/react";
@@ -17,7 +17,7 @@ const DEFAULT_LABELS = {
17
17
  function splitValues(value) {
18
18
  return value.split(/[\n,]+/).map((item) => item.trim()).filter(Boolean);
19
19
  }
20
- const TagInput = forwardRef(({ value, defaultValue = [], onValueChange, validateValue, maxValues, labels, label, labelTooltip, description, error, variant, disabled, className, placeholder, id, autoComplete = "off", onBlur, onChange, onKeyDown: onKeyDownProp, onPaste: onPasteProp, ...inputProps }, forwardedRef) => {
20
+ const TagInput = forwardRef(({ value, defaultValue = [], onValueChange, validateValue, maxValues, labels, label, labelTooltip, description, error, variant, disabled, readOnly, name, form, required, className, placeholder, id, autoComplete = "off", onBlur, onChange, onKeyDown: onKeyDownProp, onPaste: onPasteProp, ...inputProps }, forwardedRef) => {
21
21
  const [uncontrolledValue, setUncontrolledValue] = useState(defaultValue);
22
22
  const [inputValue, setInputValue] = useState("");
23
23
  const [message, setMessage] = useState();
@@ -54,7 +54,7 @@ const TagInput = forwardRef(({ value, defaultValue = [], onValueChange, validate
54
54
  };
55
55
  const handleKeyDown = (event) => {
56
56
  onKeyDownProp?.(event);
57
- if (event.defaultPrevented) return;
57
+ if (event.defaultPrevented || readOnly) return;
58
58
  if (event.nativeEvent.isComposing || event.keyCode === 229) return;
59
59
  if (!inputValue && event.key === "Backspace") {
60
60
  setValues(values.slice(0, -1));
@@ -70,11 +70,14 @@ const TagInput = forwardRef(({ value, defaultValue = [], onValueChange, validate
70
70
  };
71
71
  const handlePaste = (event) => {
72
72
  onPasteProp?.(event);
73
- if (event.defaultPrevented) return;
73
+ if (event.defaultPrevented || readOnly) return;
74
74
  const text = event.clipboardData.getData("text");
75
75
  if (!/[\n,]/.test(text)) return;
76
76
  event.preventDefault();
77
- commit(text);
77
+ const { selectionStart, selectionEnd } = event.currentTarget;
78
+ const start = selectionStart ?? inputValue.length;
79
+ const end = selectionEnd ?? start;
80
+ commit(inputValue.slice(0, start) + text + inputValue.slice(end));
78
81
  };
79
82
  const fieldError = normalizeFieldError(error) ?? normalizeFieldError(message);
80
83
  const inputVariant = variant ?? (fieldError ? "error" : "default");
@@ -87,13 +90,16 @@ const TagInput = forwardRef(({ value, defaultValue = [], onValueChange, validate
87
90
  "aria-label": inputProps["aria-label"] ?? (typeof label === "string" ? label : labels?.input ?? DEFAULT_LABELS.input),
88
91
  className: cn("min-w-32 flex-1 border-0 bg-transparent outline-none", "px-1 py-0.5"),
89
92
  disabled,
93
+ readOnly,
94
+ form,
95
+ required: required && values.length === 0,
90
96
  autoComplete,
91
97
  id: controlProps?.id ?? id ?? inputId,
92
98
  placeholder,
93
99
  value: inputValue,
94
100
  onBlur: (event) => {
95
101
  onBlur?.(event);
96
- if (!event.defaultPrevented) commit(inputValue);
102
+ if (!event.defaultPrevented && !readOnly) commit(inputValue);
97
103
  },
98
104
  onChange: (event) => {
99
105
  setInputValue(event.target.value);
@@ -111,23 +117,33 @@ const TagInput = forwardRef(({ value, defaultValue = [], onValueChange, validate
111
117
  }), "flex h-auto min-h-9 flex-wrap items-center gap-x-2 gap-y-1.5 px-2 py-1.5", className),
112
118
  children: [values.map((item) => /* @__PURE__ */ jsxs("span", {
113
119
  className: cn(chipClassName, "text-kumo-default"),
114
- children: [/* @__PURE__ */ jsx("span", {
115
- className: "truncate",
116
- children: item
117
- }), /* @__PURE__ */ jsx(Button, {
118
- "aria-label": (labels?.removeValue ?? DEFAULT_LABELS.removeValue)(item),
119
- icon: /* @__PURE__ */ jsx(XIcon, { size: 10 }),
120
- shape: "square",
121
- size: "xs",
122
- variant: "ghost",
123
- disabled,
124
- onMouseDown: (event) => event.preventDefault(),
125
- onClick: () => setValues(values.filter((value) => value !== item))
126
- })]
120
+ children: [
121
+ /* @__PURE__ */ jsx("span", {
122
+ className: "truncate",
123
+ children: item
124
+ }),
125
+ /* @__PURE__ */ jsx(Button, {
126
+ "aria-label": (labels?.removeValue ?? DEFAULT_LABELS.removeValue)(item),
127
+ icon: /* @__PURE__ */ jsx(XIcon, { size: 10 }),
128
+ shape: "square",
129
+ size: "xs",
130
+ variant: "ghost",
131
+ disabled: disabled || readOnly,
132
+ onMouseDown: (event) => event.preventDefault(),
133
+ onClick: () => setValues(values.filter((value) => value !== item))
134
+ }),
135
+ name ? /* @__PURE__ */ jsx("input", {
136
+ type: "hidden",
137
+ name,
138
+ form,
139
+ disabled,
140
+ value: item
141
+ }) : null
142
+ ]
127
143
  }, item)), hasField ? /* @__PURE__ */ jsx(FieldControl, { render: (controlProps) => input(controlProps) }) : input()]
128
144
  });
129
145
  if (hasField) return /* @__PURE__ */ jsx(Field, {
130
- label: label ?? "",
146
+ label,
131
147
  labelTooltip,
132
148
  description,
133
149
  error: fieldError,
@@ -2,7 +2,7 @@
2
2
  import { t as cn } from "./vendor-styling-gs32v7xt5znc8kg0.js";
3
3
  import { t as resolveVariant } from "./resolve-variant-l6x5ksfrjtu4m66l.js";
4
4
  import { n as usePortalContainer } from "./portal-provider-eveknxf26oudn7pp.js";
5
- import { t as Button } from "./button-oxy32x5w9x9az80g.js";
5
+ import { t as Button } from "./button-k7axs4vu1rwx89w3.js";
6
6
  import { a as ToastDescription, h as ToastProvider$1, l as ToastRoot, n as useToastManager, p as ToastViewport, t as createToastManager } from "./createToastManager-cxjmn4jx3ejh85fs.js";
7
7
  import { a as ToastContent, i as ToastTitle, n as ToastPortal, r as ToastClose } from "./index.parts-db9pzsm9rrs9tp0t.js";
8
8
  import * as e$4 from "react";
@@ -181,37 +181,36 @@ const KUMO_TOAST_DEFAULT_VARIANTS = { variant: "default" };
181
181
  function toastVariants({ variant = KUMO_TOAST_DEFAULT_VARIANTS.variant } = {}) {
182
182
  return cn("rounded-xl ring ring-kumo-line bg-clip-padding p-4 shadow-lg", resolveVariant(KUMO_TOAST_VARIANTS.variant, variant, KUMO_TOAST_DEFAULT_VARIANTS.variant).classes);
183
183
  }
184
+ const KUMO_TOAST_AUTO_BUMP = Symbol("kumo-toast-auto-bump");
185
+ function withBumpIntent(options, autoBump) {
186
+ return {
187
+ ...options,
188
+ bump: options.bump,
189
+ [KUMO_TOAST_AUTO_BUMP]: autoBump
190
+ };
191
+ }
184
192
  function wrapManagerMethods(manager) {
185
193
  return {
186
194
  ...manager,
187
195
  add: (options) => {
188
- if (options.id) {
189
- const toasts = manager.toasts;
190
- if (toasts) {
191
- const existingToast = toasts.find((toast) => toast.id === options.id);
192
- if (existingToast && existingToast.transitionStatus !== "ending") {
193
- manager.update(options.id, { bump: false });
194
- requestAnimationFrame(() => {
195
- manager.update(options.id, {
196
- bump: true,
197
- ...options.timeout !== void 0 && { timeout: options.timeout }
198
- });
199
- });
200
- return options.id;
201
- }
202
- if (existingToast && existingToast.transitionStatus === "ending") return options.id;
196
+ const existingToast = options.id ? manager.toasts?.find((toast) => toast.id === options.id) : void 0;
197
+ if (existingToast) {
198
+ if (existingToast.transitionStatus !== "ending") {
199
+ const bumpOptions = options.timeout !== void 0 ? { timeout: options.timeout } : {};
200
+ manager.update(existingToast.id, withBumpIntent(bumpOptions, true));
203
201
  }
202
+ return existingToast.id;
204
203
  }
205
- return manager.add({ ...options });
204
+ return manager.add(withBumpIntent(options, true));
206
205
  },
207
206
  update: (id, options) => {
208
- return manager.update(id, typeof options === "function" ? (prevToast) => options(prevToast) : { ...options });
207
+ return manager.update(id, typeof options === "function" ? (prevToast) => withBumpIntent(options(prevToast), false) : withBumpIntent(options, false));
209
208
  },
210
209
  promise: (promise, options) => {
211
210
  return manager.promise(promise, {
212
- loading: { ...options.loading },
213
- success: typeof options.success === "function" ? (data) => ({ ...options.success(data) }) : { ...options.success },
214
- error: typeof options.error === "function" ? (error) => ({ ...options.error(error) }) : { ...options.error }
211
+ loading: withBumpIntent(options.loading, false),
212
+ success: typeof options.success === "function" ? (data) => withBumpIntent(options.success(data), false) : withBumpIntent(options.success, false),
213
+ error: typeof options.error === "function" ? (error) => withBumpIntent(options.error(error), false) : withBumpIntent(options.error, false)
215
214
  });
216
215
  }
217
216
  };
@@ -256,42 +255,51 @@ function Toasty({ children, container: containerProp, toastManager }) {
256
255
  }
257
256
  /** Alias for Toasty — provided for discoverability when migrating from other libraries */
258
257
  const ToastProvider = Toasty;
258
+ function getBumpAnimation(toast) {
259
+ const updateKey = toast.updateKey ?? 0;
260
+ const internalToast = toast;
261
+ return (toast.bump === true || toast.bump !== false && internalToast[KUMO_TOAST_AUTO_BUMP] === true && updateKey > 0) && (updateKey % 2 === 0 ? "animate-toast-bump-alternate" : "animate-toast-bump");
262
+ }
259
263
  function ToastList() {
260
264
  const { toasts } = useKumoToastManager();
261
- return toasts.map((toast) => /* @__PURE__ */ jsxs(ToastRoot, {
265
+ return toasts.map((toast) => /* @__PURE__ */ jsx(ToastRoot, {
262
266
  toast,
263
- className: cn("absolute right-0 bottom-0 left-auto z-[calc(1000-var(--toast-index))] mr-0 h-[var(--height)] w-full origin-bottom select-none", toastVariants({ variant: toast.variant }), "[--gap:0.75rem] [--height:var(--toast-frontmost-height,var(--toast-height))] [--offset-y:calc(var(--toast-offset-y)*-1+calc(var(--toast-index)*var(--gap)*-1)+var(--toast-swipe-movement-y))] [--peek:0.75rem] [--scale:calc(max(0,1-(var(--toast-index)*0.1)))] [--shrink:calc(1-var(--scale))]", "[transform:translateX(var(--toast-swipe-movement-x))_translateY(calc(var(--toast-swipe-movement-y)-(var(--toast-index)*var(--peek))-(var(--shrink)*var(--height))))_scale(var(--scale))] [transition:transform_0.5s_cubic-bezier(0.22,1,0.36,1),opacity_0.5s,height_0.15s]", "after:absolute after:top-full after:left-0 after:h-[calc(var(--gap)+1px)] after:w-full after:content-['']", "data-[ending-style]:opacity-0 data-[expanded]:h-[var(--toast-height)] data-[expanded]:[transform:translateX(var(--toast-swipe-movement-x))_translateY(calc(var(--offset-y)))] data-[limited]:opacity-0 data-[starting-style]:[transform:translateY(150%)]", "data-[ending-style]:data-[swipe-direction=down]:[transform:translateY(calc(var(--toast-swipe-movement-y)+150%))] data-[expanded]:data-[ending-style]:data-[swipe-direction=down]:[transform:translateY(calc(var(--toast-swipe-movement-y)+150%))]", "data-[ending-style]:data-[swipe-direction=left]:[transform:translateX(calc(var(--toast-swipe-movement-x)-150%))_translateY(var(--offset-y))] data-[expanded]:data-[ending-style]:data-[swipe-direction=left]:[transform:translateX(calc(var(--toast-swipe-movement-x)-150%))_translateY(var(--offset-y))]", "data-[ending-style]:data-[swipe-direction=right]:[transform:translateX(calc(var(--toast-swipe-movement-x)+150%))_translateY(var(--offset-y))] data-[expanded]:data-[ending-style]:data-[swipe-direction=right]:[transform:translateX(calc(var(--toast-swipe-movement-x)+150%))_translateY(var(--offset-y))]", "data-[ending-style]:data-[swipe-direction=up]:[transform:translateY(calc(var(--toast-swipe-movement-y)-150%))] data-[expanded]:data-[ending-style]:data-[swipe-direction=up]:[transform:translateY(calc(var(--toast-swipe-movement-y)-150%))]", "[&[data-ending-style]:not([data-limited]):not([data-swipe-direction])]:[transform:translateY(150%)]", toast.bump && "animate-toast-bump"),
264
- children: [/* @__PURE__ */ jsx(ToastBackground, { variant: toast.variant }), /* @__PURE__ */ jsxs(ToastContent, {
265
- className: "isolate flex flex-col gap-1 transition-opacity [transition-duration:250ms] data-[behind]:pointer-events-none data-[behind]:opacity-0 data-[expanded]:pointer-events-auto data-[expanded]:opacity-100",
266
- children: [toast.content ?? /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsxs("div", {
267
- className: "flex items-start gap-2",
268
- children: [/* @__PURE__ */ jsx(ToastIcon, { variant: toast.variant }), /* @__PURE__ */ jsxs("div", {
269
- className: "flex flex-col gap-1 overflow-hidden",
270
- children: [
271
- /* @__PURE__ */ jsx(ToastTitle, {
272
- "data-toast-title": true,
273
- className: "text-[0.975rem] leading-5 font-medium text-kumo-default"
274
- }),
275
- /* @__PURE__ */ jsx(ToastDescription, { className: "text-[0.925rem] leading-5 text-kumo-default/70" }),
276
- !!toast.actions && /* @__PURE__ */ jsx("div", {
277
- className: "mt-2 flex min-w-0 flex-nowrap gap-2 overflow-x-auto p-px",
278
- children: toast.actions.map((actionProps, idx) => /* @__PURE__ */ jsx(Button, { ...actionProps }, idx))
279
- })
280
- ]
281
- })]
282
- }) }), /* @__PURE__ */ jsx(ToastClose, {
283
- "data-kumo-part": "close",
284
- "aria-label": "Close",
285
- render: /* @__PURE__ */ jsx(Button, {
286
- variant: "ghost",
287
- size: "sm",
288
- shape: "square",
267
+ className: cn("absolute right-0 bottom-0 left-auto z-[calc(1000-var(--toast-index))] mr-0 h-[var(--height)] w-full origin-bottom rounded-xl select-none motion-reduce:[transition-property:opacity]", "[--gap:0.75rem] [--height:var(--toast-frontmost-height,var(--toast-height))] [--offset-y:calc(var(--toast-offset-y)*-1+calc(var(--toast-index)*var(--gap)*-1)+var(--toast-swipe-movement-y))] [--peek:0.75rem] [--scale:calc(max(0,1-(var(--toast-index)*0.1)))] [--shrink:calc(1-var(--scale))]", "[transform:translateX(var(--toast-swipe-movement-x))_translateY(calc(var(--toast-swipe-movement-y)-(var(--toast-index)*var(--peek))-(var(--shrink)*var(--height))))_scale(var(--scale))] [transition:transform_0.5s_cubic-bezier(0.22,1,0.36,1),opacity_0.5s,height_0.15s]", "after:absolute after:top-full after:left-0 after:h-[calc(var(--gap)+1px)] after:w-full after:content-['']", "data-[ending-style]:opacity-0 data-[expanded]:h-[var(--toast-height)] data-[expanded]:[transform:translateX(var(--toast-swipe-movement-x))_translateY(calc(var(--offset-y)))] data-[limited]:opacity-0 data-[starting-style]:[transform:translateY(150%)]", "data-[ending-style]:data-[swipe-direction=down]:[transform:translateY(calc(var(--toast-swipe-movement-y)+150%))] data-[expanded]:data-[ending-style]:data-[swipe-direction=down]:[transform:translateY(calc(var(--toast-swipe-movement-y)+150%))]", "data-[ending-style]:data-[swipe-direction=left]:[transform:translateX(calc(var(--toast-swipe-movement-x)-150%))_translateY(var(--offset-y))] data-[expanded]:data-[ending-style]:data-[swipe-direction=left]:[transform:translateX(calc(var(--toast-swipe-movement-x)-150%))_translateY(var(--offset-y))]", "data-[ending-style]:data-[swipe-direction=right]:[transform:translateX(calc(var(--toast-swipe-movement-x)+150%))_translateY(var(--offset-y))] data-[expanded]:data-[ending-style]:data-[swipe-direction=right]:[transform:translateX(calc(var(--toast-swipe-movement-x)+150%))_translateY(var(--offset-y))]", "data-[ending-style]:data-[swipe-direction=up]:[transform:translateY(calc(var(--toast-swipe-movement-y)-150%))] data-[expanded]:data-[ending-style]:data-[swipe-direction=up]:[transform:translateY(calc(var(--toast-swipe-movement-y)-150%))]", "[&[data-ending-style]:not([data-limited]):not([data-swipe-direction])]:[transform:translateY(150%)]"),
268
+ children: /* @__PURE__ */ jsxs("div", {
269
+ "data-kumo-part": "surface",
270
+ className: cn("relative h-full w-full", toastVariants({ variant: toast.variant }), getBumpAnimation(toast)),
271
+ children: [/* @__PURE__ */ jsx(ToastBackground, { variant: toast.variant }), /* @__PURE__ */ jsxs(ToastContent, {
272
+ className: "isolate flex flex-col gap-1 transition-opacity [transition-duration:250ms] data-[behind]:pointer-events-none data-[behind]:opacity-0 data-[expanded]:pointer-events-auto data-[expanded]:opacity-100",
273
+ children: [toast.content ?? /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsxs("div", {
274
+ className: "flex items-start gap-2",
275
+ children: [/* @__PURE__ */ jsx(ToastIcon, { variant: toast.variant }), /* @__PURE__ */ jsxs("div", {
276
+ className: "flex flex-col gap-1 overflow-hidden",
277
+ children: [
278
+ /* @__PURE__ */ jsx(ToastTitle, {
279
+ "data-toast-title": true,
280
+ className: "text-[0.975rem] leading-5 font-medium text-kumo-default"
281
+ }),
282
+ /* @__PURE__ */ jsx(ToastDescription, { className: "text-[0.925rem] leading-5 text-kumo-default/70" }),
283
+ !!toast.actions && /* @__PURE__ */ jsx("div", {
284
+ className: "mt-2 flex min-w-0 flex-nowrap gap-2 overflow-x-auto p-px",
285
+ children: toast.actions.map((actionProps, idx) => /* @__PURE__ */ jsx(Button, { ...actionProps }, idx))
286
+ })
287
+ ]
288
+ })]
289
+ }) }), /* @__PURE__ */ jsx(ToastClose, {
290
+ "data-kumo-part": "close",
289
291
  "aria-label": "Close",
290
- className: cn("absolute top-2 right-2 size-5 rounded text-kumo-subtle hover:bg-current/15", toast.variant && TOAST_CLOSE_CLASSES[toast.variant]),
291
- icon: /* @__PURE__ */ jsx(e, { className: "h-3 w-3" })
292
- })
292
+ render: /* @__PURE__ */ jsx(Button, {
293
+ variant: "ghost",
294
+ size: "sm",
295
+ shape: "square",
296
+ "aria-label": "Close",
297
+ className: cn("absolute top-2 right-2 size-5 rounded text-kumo-subtle hover:bg-current/15", toast.variant && TOAST_CLOSE_CLASSES[toast.variant]),
298
+ icon: /* @__PURE__ */ jsx(e, { className: "h-3 w-3" })
299
+ })
300
+ })]
293
301
  })]
294
- })]
302
+ })
295
303
  }, toast.id));
296
304
  }
297
305
  const TOAST_CLOSE_CLASSES = {
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { t as cn } from "./vendor-styling-gs32v7xt5znc8kg0.js";
3
- import { n as LinkButton, t as Button$1 } from "./button-oxy32x5w9x9az80g.js";
4
- import { t as Input$1 } from "./input-ksy1w6j1m6olz6ck.js";
5
- import { t as InputGroup } from "./input-group-n08mcd8b36wbylro.js";
3
+ import { n as LinkButton, t as Button$1 } from "./button-k7axs4vu1rwx89w3.js";
4
+ import { t as Input$1 } from "./input-f0pbcvjudf5zb8ek.js";
5
+ import { t as InputGroup } from "./input-group-dqo5tcoewbdx86qx.js";
6
6
  import { i as ToolbarRoot, n as ToolbarLink, r as ToolbarButton, t as ToolbarInput } from "./ToolbarInput-kyxl1be0p3cyuayp.js";
7
7
  import React, { Children, cloneElement, createContext, isValidElement } from "react";
8
8
  import { jsx } from "react/jsx-runtime";
@@ -22,6 +22,7 @@ function Tooltip({ content, children, align, asChild, render, side, className, c
22
22
  const container = containerProp ?? contextContainer ?? void 0;
23
23
  const resolvedRender = render ?? (asChild ? children : void 0);
24
24
  const shouldUseRender = resolvedRender !== void 0;
25
+ const triggerTabIndex = !shouldUseRender && props.disabled ? -1 : void 0;
25
26
  return /* @__PURE__ */ jsxs(TooltipRoot, {
26
27
  ...props,
27
28
  children: [/* @__PURE__ */ jsx(TooltipTrigger, {
@@ -29,6 +30,7 @@ function Tooltip({ content, children, align, asChild, render, side, className, c
29
30
  delay,
30
31
  className: cn(!shouldUseRender && "m-0 inline-flex h-auto min-h-0 items-center border-none bg-transparent p-0 shadow-none", "cursor-default", className),
31
32
  render: resolvedRender,
33
+ tabIndex: triggerTabIndex,
32
34
  children: asChild ? void 0 : children
33
35
  }), /* @__PURE__ */ jsx(TooltipPortal, {
34
36
  container,
package/dist/code.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { t as cn } from "./chunks/vendor-styling-gs32v7xt5znc8kg0.js";
3
- import { t as Button } from "./chunks/button-oxy32x5w9x9az80g.js";
3
+ import { t as Button } from "./chunks/button-k7axs4vu1rwx89w3.js";
4
4
  import { t as useCopyFeedback } from "./chunks/use-copy-feedback-gl55ghst0csvpv4j.js";
5
5
  import { createContext, useCallback, useContext, useEffect, useMemo, useState } from "react";
6
6
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -285,7 +285,7 @@ function CodeHighlighted({ code, lang, variant = "default", showLineNumbers = fa
285
285
  const lineCount = useMemo(() => code.split("\n").length, [code]);
286
286
  const isSingleLine = lineCount === 1;
287
287
  const containerClasses = cn("group relative m-0 w-full min-w-0 p-0", variant === "plain" ? "rounded-none border-0 bg-transparent" : "rounded-md border border-kumo-fill bg-kumo-base", showCopyButton && isSingleLine && "flex items-center", className);
288
- const fallbackCodeClasses = cn("!m-0 min-w-0 flex-1 overflow-x-auto", "font-mono text-sm leading-relaxed text-kumo-subtle", variant === "plain" ? "!p-0" : "!p-4");
288
+ const fallbackCodeClasses = cn("!m-0 min-w-0 flex-1 overflow-x-auto !rounded-none !border-0 !bg-transparent", "font-mono text-sm leading-relaxed text-kumo-subtle", variant === "plain" ? "!p-0" : "!p-4");
289
289
  const highlightedCodeClasses = cn("kumo-shiki", "[&_code]:!m-0 [&_code]:!border-0 [&_code]:!bg-transparent [&_code]:!p-0", "[&>pre]:!m-0 [&>pre]:!rounded-none [&>pre]:!border-0 [&>pre]:!bg-transparent", "[&>pre]:font-mono [&>pre]:text-sm [&>pre]:leading-relaxed", variant === "plain" ? "[&>pre]:!p-0" : "[&>pre]:!p-4", variant === "plain" && "[&_.line-highlighted]:!m-0 [&_.line-highlighted]:!w-full [&_.line-highlighted]:!px-0");
290
290
  const copyButton = showCopyButton ? /* @__PURE__ */ jsx("div", {
291
291
  className: cn(isSingleLine ? "shrink-0 px-2" : variant === "plain" ? "absolute top-0 right-0" : "absolute top-2 right-2", !copied && "opacity-0 transition-opacity group-hover:opacity-100"),
@@ -316,7 +316,7 @@ function CodeHighlighted({ code, lang, variant = "default", showLineNumbers = fa
316
316
  children: [lineNumbers, /* @__PURE__ */ jsx("pre", {
317
317
  className: fallbackCodeClasses,
318
318
  children: /* @__PURE__ */ jsx("code", {
319
- className: "!m-0 !p-0",
319
+ className: "!m-0 !border-0 !bg-transparent !p-0",
320
320
  children: code
321
321
  })
322
322
  })]
@@ -324,7 +324,7 @@ function CodeHighlighted({ code, lang, variant = "default", showLineNumbers = fa
324
324
  !lineNumbers && /* @__PURE__ */ jsx("pre", {
325
325
  className: fallbackCodeClasses,
326
326
  children: /* @__PURE__ */ jsx("code", {
327
- className: "!m-0 !p-0",
327
+ className: "!m-0 !border-0 !bg-transparent !p-0",
328
328
  children: code
329
329
  })
330
330
  }),
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- import { i as autocompleteVariants, n as KUMO_AUTOCOMPLETE_DEFAULT_VARIANTS, r as KUMO_AUTOCOMPLETE_VARIANTS, t as Autocomplete } from "../chunks/autocomplete-kgp17p6oz4pczxt9.js";
2
+ import { i as autocompleteVariants, n as KUMO_AUTOCOMPLETE_DEFAULT_VARIANTS, r as KUMO_AUTOCOMPLETE_VARIANTS, t as Autocomplete } from "../chunks/autocomplete-evlm6fj7v7w0g2z2.js";
3
3
  export { Autocomplete, KUMO_AUTOCOMPLETE_DEFAULT_VARIANTS, KUMO_AUTOCOMPLETE_VARIANTS, autocompleteVariants };
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- import { n as BannerVariant, t as Banner } from "../chunks/banner-cpla8vqjxaulggyd.js";
2
+ import { n as BannerVariant, t as Banner } from "../chunks/banner-lvbgdzxq3yndkbot.js";
3
3
  export { Banner, BannerVariant };
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- import { i as breadcrumbsVariants, n as KUMO_BREADCRUMBS_DEFAULT_VARIANTS, r as KUMO_BREADCRUMBS_VARIANTS, t as Breadcrumb } from "../chunks/breadcrumbs-oyuqwb09l08uhok2.js";
2
+ import { i as breadcrumbsVariants, n as KUMO_BREADCRUMBS_DEFAULT_VARIANTS, r as KUMO_BREADCRUMBS_VARIANTS, t as Breadcrumb } from "../chunks/breadcrumbs-fsuyq7z6hdh1thjv.js";
3
3
  export { Breadcrumb as Breadcrumbs, KUMO_BREADCRUMBS_DEFAULT_VARIANTS, KUMO_BREADCRUMBS_VARIANTS, breadcrumbsVariants };
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- import { i as buttonVariants, n as LinkButton, r as RefreshButton, t as Button } from "../chunks/button-oxy32x5w9x9az80g.js";
2
+ import { i as buttonVariants, n as LinkButton, r as RefreshButton, t as Button } from "../chunks/button-k7axs4vu1rwx89w3.js";
3
3
  export { Button, LinkButton, RefreshButton, buttonVariants };
@@ -1,2 +1,2 @@
1
- import { C as TimeseriesChart, D as TimeseriesMarker, E as TimeseriesThreshold, S as KumoChartOption, T as TimeseriesData, _ as SankeyTooltipParams, a as BubbleMap, b as ChartEvents, c as ChoroplethMapProps, d as MapProjection, f as MapStyle, g as SankeyNodeData, h as SankeyLinkData, i as GlobeMapProps, l as MapAccessor, m as SankeyChartProps, n as GlobeMap, o as BubbleMapProps, p as SankeyChart, r as GlobeMapMarker, s as ChoroplethMap, t as ChartPalette, u as MapGeoJson, v as ChartLegend, w as TimeseriesChartProps, x as ChartProps, y as Chart } from "../index-fsZE0vPs.js";
1
+ import { C as TimeseriesChart, D as TimeseriesMarker, E as TimeseriesThreshold, S as KumoChartOption, T as TimeseriesData, _ as SankeyTooltipParams, a as BubbleMap, b as ChartEvents, c as ChoroplethMapProps, d as MapProjection, f as MapStyle, g as SankeyNodeData, h as SankeyLinkData, i as GlobeMapProps, l as MapAccessor, m as SankeyChartProps, n as GlobeMap, o as BubbleMapProps, p as SankeyChart, r as GlobeMapMarker, s as ChoroplethMap, t as ChartPalette, u as MapGeoJson, v as ChartLegend, w as TimeseriesChartProps, x as ChartProps, y as Chart } from "../index-g-eFm1Bq.js";
2
2
  export { BubbleMap, type BubbleMapProps, Chart, type ChartEvents, ChartLegend, ChartPalette, type ChartProps, ChoroplethMap, type ChoroplethMapProps, GlobeMap, type GlobeMapMarker, type GlobeMapProps, type KumoChartOption, type MapAccessor, type MapGeoJson, type MapProjection, type MapStyle, SankeyChart, type SankeyChartProps, type SankeyLinkData, type SankeyNodeData, type SankeyTooltipParams, TimeseriesChart, type TimeseriesChartProps, type TimeseriesData, type TimeseriesMarker, type TimeseriesThreshold };
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- import { a as ChartLegend, c as ChartPalette, i as SankeyChart, n as BubbleMap, o as TimeseriesChart, r as ChoroplethMap, s as Chart, t as GlobeMap } from "../chunks/chart-foxl6xbubuoshfcs.js";
2
+ import { a as ChartLegend, c as ChartPalette, i as SankeyChart, n as BubbleMap, o as TimeseriesChart, r as ChoroplethMap, s as Chart, t as GlobeMap } from "../chunks/chart-hp3vqwe49tbyywqm.js";
3
3
  export { BubbleMap, Chart, ChartLegend, ChartPalette, ChoroplethMap, GlobeMap, SankeyChart, TimeseriesChart };
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- import { n as KUMO_CHECKBOX_DEFAULT_VARIANTS, r as KUMO_CHECKBOX_VARIANTS, t as Checkbox } from "../chunks/checkbox-o9627970y7c9ciqy.js";
2
+ import { n as KUMO_CHECKBOX_DEFAULT_VARIANTS, r as KUMO_CHECKBOX_VARIANTS, t as Checkbox } from "../chunks/checkbox-g8b4f2hs5vux3u26.js";
3
3
  export { Checkbox, KUMO_CHECKBOX_DEFAULT_VARIANTS, KUMO_CHECKBOX_VARIANTS };
@@ -1,2 +1,2 @@
1
- import { t as ClipboardText } from "../index-DJIRVD5B.js";
1
+ import { t as ClipboardText } from "../index-CReGk3Dc.js";
2
2
  export { ClipboardText };
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- import { t as ClipboardText } from "../chunks/clipboard-text-bhy88tgvk1o6wmyl.js";
2
+ import { t as ClipboardText } from "../chunks/clipboard-text-fffd5tpa0iye6r6m.js";
3
3
  export { ClipboardText };
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- import { t as Combobox } from "../chunks/combobox-hwrq8etkr7p2id0x.js";
2
+ import { t as Combobox } from "../chunks/combobox-iawd8lxwd5b18fce.js";
3
3
  export { Combobox };
@@ -1,2 +1,2 @@
1
- import { i as DatePickerProps, n as DayPickerProps, r as DatePicker, t as DateRange } from "../index-DNsSKNUe.js";
1
+ import { i as DatePickerProps, n as DayPickerProps, r as DatePicker, t as DateRange } from "../index-bBPKMepR.js";
2
2
  export { DatePicker, type DatePickerProps, type DateRange, type DayPickerProps };
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- import { t as DatePicker } from "../chunks/date-picker-oee5ehsrepnlmltj.js";
2
+ import { t as DatePicker } from "../chunks/date-picker-kfoxd4u7ckg4nsez.js";
3
3
  export { DatePicker };
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- import { i as emptyVariants, n as KUMO_EMPTY_DEFAULT_VARIANTS, r as KUMO_EMPTY_VARIANTS, t as Empty } from "../chunks/empty-ft85jcbs7fd5t3tn.js";
2
+ import { i as emptyVariants, n as KUMO_EMPTY_DEFAULT_VARIANTS, r as KUMO_EMPTY_VARIANTS, t as Empty } from "../chunks/empty-ir5bg5w4kkisuc1c.js";
3
3
  export { Empty, KUMO_EMPTY_DEFAULT_VARIANTS, KUMO_EMPTY_VARIANTS, emptyVariants };
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- import { a as normalizeFieldError, i as fieldVariants, n as KUMO_FIELD_DEFAULT_VARIANTS, r as KUMO_FIELD_VARIANTS, t as Field } from "../chunks/field-jzzlgre0jmrr38o2.js";
2
+ import { a as normalizeFieldError, i as fieldVariants, n as KUMO_FIELD_DEFAULT_VARIANTS, r as KUMO_FIELD_VARIANTS, t as Field } from "../chunks/field-n7gmbg5xvh6oqbom.js";
3
3
  export { Field, KUMO_FIELD_DEFAULT_VARIANTS, KUMO_FIELD_VARIANTS, fieldVariants, normalizeFieldError };
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- import { n as KUMO_INPUT_GROUP_DEFAULT_VARIANTS, r as KUMO_INPUT_GROUP_VARIANTS, t as InputGroup } from "../chunks/input-group-n08mcd8b36wbylro.js";
2
+ import { n as KUMO_INPUT_GROUP_DEFAULT_VARIANTS, r as KUMO_INPUT_GROUP_VARIANTS, t as InputGroup } from "../chunks/input-group-dqo5tcoewbdx86qx.js";
3
3
  export { InputGroup, KUMO_INPUT_GROUP_DEFAULT_VARIANTS, KUMO_INPUT_GROUP_VARIANTS };
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { r as inputVariants, t as Input } from "../chunks/input-ksy1w6j1m6olz6ck.js";
3
- import { n as Textarea, t as InputArea } from "../chunks/input-il37wjigy2xtgdo2.js";
4
- import { n as KUMO_INPUT_GROUP_DEFAULT_VARIANTS, r as KUMO_INPUT_GROUP_VARIANTS, t as InputGroup } from "../chunks/input-group-n08mcd8b36wbylro.js";
2
+ import { r as inputVariants, t as Input } from "../chunks/input-f0pbcvjudf5zb8ek.js";
3
+ import { n as Textarea, t as InputArea } from "../chunks/input-iev3wgdzhkqpae2k.js";
4
+ import { n as KUMO_INPUT_GROUP_DEFAULT_VARIANTS, r as KUMO_INPUT_GROUP_VARIANTS, t as InputGroup } from "../chunks/input-group-dqo5tcoewbdx86qx.js";
5
5
  export { Input, InputArea, InputGroup, KUMO_INPUT_GROUP_DEFAULT_VARIANTS, KUMO_INPUT_GROUP_VARIANTS, Textarea, inputVariants };
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- import { a as labelVariants, i as labelContentVariants, n as KUMO_LABEL_VARIANTS, r as Label, t as KUMO_LABEL_DEFAULT_VARIANTS } from "../chunks/label-hugrtzreeqk5mtqu.js";
2
+ import { a as labelVariants, i as labelContentVariants, n as KUMO_LABEL_VARIANTS, r as Label, t as KUMO_LABEL_DEFAULT_VARIANTS } from "../chunks/label-njfcj6h9utmg2n9l.js";
3
3
  export { KUMO_LABEL_DEFAULT_VARIANTS, KUMO_LABEL_VARIANTS, Label, labelContentVariants, labelVariants };
@@ -1,2 +1,2 @@
1
- import { a as LayerDialogActionProps, c as LayerDialogContentProps, d as LayerDialogProps, f as LayerDialogRootProps, i as LayerDialog, l as LayerDialogDescriptionProps, n as KumoLayerDialogSize, o as LayerDialogActionsProps, p as LayerDialogTitleProps, r as KumoLayerDialogVerticalAlign, s as LayerDialogBodyProps, t as KumoLayerDialogPrimaryVariant, u as LayerDialogPrimaryProps } from "../index-5bJAnzUo.js";
1
+ import { a as LayerDialogActionProps, c as LayerDialogContentProps, d as LayerDialogProps, f as LayerDialogRootProps, i as LayerDialog, l as LayerDialogDescriptionProps, n as KumoLayerDialogSize, o as LayerDialogActionsProps, p as LayerDialogTitleProps, r as KumoLayerDialogVerticalAlign, s as LayerDialogBodyProps, t as KumoLayerDialogPrimaryVariant, u as LayerDialogPrimaryProps } from "../index-Dmbgjww7.js";
2
2
  export { type KumoLayerDialogPrimaryVariant, type KumoLayerDialogSize, type KumoLayerDialogVerticalAlign, LayerDialog, type LayerDialogActionProps, type LayerDialogActionsProps, type LayerDialogBodyProps, type LayerDialogContentProps, type LayerDialogDescriptionProps, type LayerDialogPrimaryProps, type LayerDialogProps, type LayerDialogRootProps, type LayerDialogTitleProps };
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- import { t as LayerDialog } from "../chunks/layer-dialog-dwrrgv1wasrerow4.js";
2
+ import { t as LayerDialog } from "../chunks/layer-dialog-n7foup6icxowm82n.js";
3
3
  export { LayerDialog };
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- import { n as useMenuNavigation, t as MenuBar } from "../chunks/menubar-m5pqhx7lu5z7mkks.js";
2
+ import { n as useMenuNavigation, t as MenuBar } from "../chunks/menubar-b454nksysu0wicbz.js";
3
3
  export { MenuBar, useMenuNavigation };
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- import { t as Pagination } from "../chunks/pagination-h24on80p2z5ugqdb.js";
2
+ import { t as Pagination } from "../chunks/pagination-mwlpbysq4cxmvs45.js";
3
3
  export { Pagination };
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- import { t as Select } from "../chunks/select-ey03k4630uckf1rk.js";
2
+ import { t as Select } from "../chunks/select-fae2ls189jrq902h.js";
3
3
  export { Select };
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- import { n as KUMO_SENSITIVE_INPUT_VARIANTS, r as SensitiveInput, t as KUMO_SENSITIVE_INPUT_DEFAULT_VARIANTS } from "../chunks/sensitive-input-lfrrtyg9n5ulq3tb.js";
2
+ import { n as KUMO_SENSITIVE_INPUT_VARIANTS, r as SensitiveInput, t as KUMO_SENSITIVE_INPUT_DEFAULT_VARIANTS } from "../chunks/sensitive-input-heb3xapwahzhpq6y.js";
3
3
  export { KUMO_SENSITIVE_INPUT_DEFAULT_VARIANTS, KUMO_SENSITIVE_INPUT_VARIANTS, SensitiveInput };
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- import { A as useSidebar, C as SidebarRail, D as SidebarSlidingView, E as SidebarSeparator, O as SidebarSlidingViews, S as SidebarProvider, T as SidebarRoot, _ as SidebarMenuChevron, a as SidebarCollapsible, b as SidebarMenuSubButton, c as SidebarContent, d as SidebarGroupLabel, f as SidebarHeader, g as SidebarMenuButton, h as SidebarMenuBadge, i as Sidebar, k as SidebarTrigger, l as SidebarFooter, m as SidebarMenu, n as KUMO_SIDEBAR_STYLING, o as SidebarCollapsibleContent, p as SidebarLoading, r as KUMO_SIDEBAR_VARIANTS, s as SidebarCollapsibleTrigger, t as KUMO_SIDEBAR_DEFAULT_VARIANTS, u as SidebarGroup, v as SidebarMenuItem, w as SidebarResizeHandle, x as SidebarMenuSubItem, y as SidebarMenuSub } from "../chunks/sidebar-gluq5b5oacrdk4m4.js";
2
+ import { A as useSidebar, C as SidebarRail, D as SidebarSlidingView, E as SidebarSeparator, O as SidebarSlidingViews, S as SidebarProvider, T as SidebarRoot, _ as SidebarMenuChevron, a as SidebarCollapsible, b as SidebarMenuSubButton, c as SidebarContent, d as SidebarGroupLabel, f as SidebarHeader, g as SidebarMenuButton, h as SidebarMenuBadge, i as Sidebar, k as SidebarTrigger, l as SidebarFooter, m as SidebarMenu, n as KUMO_SIDEBAR_STYLING, o as SidebarCollapsibleContent, p as SidebarLoading, r as KUMO_SIDEBAR_VARIANTS, s as SidebarCollapsibleTrigger, t as KUMO_SIDEBAR_DEFAULT_VARIANTS, u as SidebarGroup, v as SidebarMenuItem, w as SidebarResizeHandle, x as SidebarMenuSubItem, y as SidebarMenuSub } from "../chunks/sidebar-h6g412ror8p7uo0d.js";
3
3
  export { KUMO_SIDEBAR_DEFAULT_VARIANTS, KUMO_SIDEBAR_STYLING, KUMO_SIDEBAR_VARIANTS, Sidebar, SidebarCollapsible, SidebarCollapsibleContent, SidebarCollapsibleTrigger, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupLabel, SidebarHeader, SidebarLoading, SidebarMenu, SidebarMenuBadge, SidebarMenuButton, SidebarMenuChevron, SidebarMenuItem, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarResizeHandle, SidebarRoot, SidebarSeparator, SidebarSlidingView, SidebarSlidingViews, SidebarTrigger, useSidebar };
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- import { n as KUMO_SWITCH_VARIANTS, r as Switch, t as KUMO_SWITCH_DEFAULT_VARIANTS } from "../chunks/switch-mqf1ulvle4nd6d2t.js";
2
+ import { n as KUMO_SWITCH_VARIANTS, r as Switch, t as KUMO_SWITCH_DEFAULT_VARIANTS } from "../chunks/switch-ktfauhluw1yi5tkk.js";
3
3
  export { KUMO_SWITCH_DEFAULT_VARIANTS, KUMO_SWITCH_VARIANTS, Switch };
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- import { n as KUMO_TABLE_VARIANTS, r as Table, t as KUMO_TABLE_DEFAULT_VARIANTS } from "../chunks/table-nysse5tiwf47gg4k.js";
2
+ import { n as KUMO_TABLE_VARIANTS, r as Table, t as KUMO_TABLE_DEFAULT_VARIANTS } from "../chunks/table-lp41fsw7mqr751hn.js";
3
3
  export { KUMO_TABLE_DEFAULT_VARIANTS, KUMO_TABLE_VARIANTS, Table };
@@ -1,2 +1,2 @@
1
- import { n as TagInputLabels, r as TagInputProps, t as TagInput } from "../index-CiwC1j1N.js";
1
+ import { n as TagInputLabels, r as TagInputProps, t as TagInput } from "../index-2jvVmJ8P.js";
2
2
  export { TagInput, type TagInputLabels, type TagInputProps };
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- import { t as TagInput } from "../chunks/tag-input-b10gfxoob9vcizpm.js";
2
+ import { t as TagInput } from "../chunks/tag-input-k6vzllby4qebmv63.js";
3
3
  export { TagInput };
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  import { t as index_parts_exports } from "../chunks/index.parts-db9pzsm9rrs9tp0t.js";
3
- import { i as useKumoToastManager, n as Toasty, r as createKumoToastManager, t as ToastProvider } from "../chunks/toast-b4t9rt9y1sumcmy2.js";
3
+ import { i as useKumoToastManager, n as Toasty, r as createKumoToastManager, t as ToastProvider } from "../chunks/toast-kzwscia42707sau6.js";
4
4
  export { index_parts_exports as Toast, ToastProvider, Toasty, createKumoToastManager, useKumoToastManager };
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- import { n as KUMO_TOOLBAR_VARIANTS, r as Toolbar, t as KUMO_TOOLBAR_DEFAULT_VARIANTS } from "../chunks/toolbar-hov6sa3ui366f447.js";
2
+ import { n as KUMO_TOOLBAR_VARIANTS, r as Toolbar, t as KUMO_TOOLBAR_DEFAULT_VARIANTS } from "../chunks/toolbar-nnos2ouwfk7i6tpw.js";
3
3
  export { KUMO_TOOLBAR_DEFAULT_VARIANTS, KUMO_TOOLBAR_VARIANTS, Toolbar };
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- import { n as TooltipProvider, t as Tooltip } from "../chunks/tooltip-lguwh8bjhxwnjfus.js";
2
+ import { n as TooltipProvider, t as Tooltip } from "../chunks/tooltip-bcymn9bfyz29fvji.js";
3
3
  export { Tooltip, TooltipProvider };
@@ -31,6 +31,15 @@ interface TagInputProps extends NativeInputProps {
31
31
  };
32
32
  variant?: KumoInputVariant;
33
33
  disabled?: boolean;
34
+ /** Submits each accepted tag as a separate form value under this name. */
35
+ name?: string;
36
+ /**
37
+ * Requires at least one accepted tag for native form validation. Like a
38
+ * native input, a `readOnly` TagInput is skipped by validation.
39
+ */
40
+ required?: boolean;
41
+ /** Prevents adding or removing tags while keeping the input focusable. */
42
+ readOnly?: boolean;
34
43
  }
35
44
  declare const TagInput: import("react").ForwardRefExoticComponent<TagInputProps & import("react").RefAttributes<HTMLInputElement>>;
36
45
  //#endregion
@@ -44,6 +44,8 @@ interface ClipboardTextProps extends KumoClipboardTextVariantsProps {
44
44
  text: string;
45
45
  /** If provided, this text will be copied to clipboard instead of the `text` prop. */
46
46
  textToCopy?: string;
47
+ /** Masks the text initially and adds a control to reveal or hide it. @default false */
48
+ masked?: boolean;
47
49
  /** Additional CSS classes merged via `cn()`. */
48
50
  className?: string;
49
51
  /** Callback fired after text is copied to clipboard. */
@@ -70,6 +72,10 @@ interface ClipboardTextProps extends KumoClipboardTextVariantsProps {
70
72
  labels?: {
71
73
  /** @default "Copy to clipboard" */
72
74
  copyAction?: string;
75
+ /** @default "Reveal value" */
76
+ revealAction?: string;
77
+ /** @default "Hide value" */
78
+ hideAction?: string;
73
79
  };
74
80
  }
75
81
  /**
@@ -145,6 +145,7 @@ declare const LayerDialog: typeof LayerDialogRoot & {
145
145
  Title: typeof LayerDialogTitle;
146
146
  Description: typeof LayerDialogDescription;
147
147
  Body: typeof LayerDialogBody;
148
+ Separator: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHRElement>, HTMLHRElement>, "ref"> & import("react").RefAttributes<HTMLHRElement>>;
148
149
  Action: typeof LayerDialogAction;
149
150
  Actions: (({ children, dismissLabel }: LayerDialogActionsProps) => import("react/jsx-runtime").JSX.Element) & {
150
151
  /** @deprecated Use `LayerDialog.Action` instead. */
@@ -46,6 +46,10 @@ type DatePickerProps = SingleProps | SingleRequiredProps | MultipleProps | Multi
46
46
  * Outside-month dates are hidden by default in multi-month views to avoid duplicates.
47
47
  * Set `showOutsideDays` to override this behavior.
48
48
  *
49
+ * DatePicker has no internal padding, so it fits a Popover or a page layout
50
+ * without overrides. The container sets the spacing, e.g.
51
+ * `<Popover.Content className="p-3">`, or `className="p-3"` on its own.
52
+ *
49
53
  * @example
50
54
  * ```tsx
51
55
  * // Single date selection