@cloudflare/kumo 1.2.0 → 1.3.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.js CHANGED
@@ -1,126 +1,272 @@
1
1
  "use client";
2
- import { B as r } from "./badge-Dc99vsfo.js";
3
- import { B as e, a as t } from "./banner-4fkH6Sbt.js";
4
- import { B as i, L as m, R as A, b as n } from "./button-Bh96oxRL.js";
5
- import { D as f } from "./date-range-picker-CbKEQ9pi.js";
6
- import { C as _ } from "./checkbox-C1LPq8eL.js";
7
- import { C as L } from "./clipboard-text-CJSI9X2m.js";
8
- import { C as R, a as S } from "./code-T2wPDiM0.js";
9
- import { C as D } from "./combobox-CWxn5aHA.js";
10
- import { D as M, e as U, d as N, a as u, c as E, b as O } from "./dialog-BxXPA2vI.js";
11
- import { D as C } from "./dropdown-BAyk1knz.js";
12
- import { C as g } from "./collapsible-OBNkTO48.js";
13
- import { F as B, a as c, K as F, f as k } from "./field-B7ORz5ej.js";
14
- import { b as v, K as h, L as y, a as w, l as j } from "./label-B4FY8MX_.js";
15
- import { I as z, i as H } from "./input-D6YgDfDG.js";
16
- import { I as Q } from "./input-area-DN_Ncliw.js";
17
- import { I as X } from "./input-group-BXzBwH4p.js";
18
- import { L as Z } from "./layer-card-C8j5Hkkj.js";
19
- import { L as aa } from "./loader-DHGMYlC6.js";
20
- import { S as ra } from "./skeleton-line-CtpS1u1J.js";
21
- import { M as ea, u as ta } from "./menubar-CzimiryS.js";
22
- import { M as ia } from "./meter-BrJnHJ3Q.js";
23
- import { P as Aa } from "./pagination-D0x9KQSk.js";
24
- import { S as Ta } from "./select-D4rKQAax.js";
25
- import { S as xa } from "./surface-BIC6CXiz.js";
26
- import { S as Ia } from "./switch-z7FE1nQE.js";
27
- import { T as la } from "./tabs-DAEeuQLd.js";
28
- import { T as Sa } from "./table-Sd2Etb1N.js";
29
- import { T as Da } from "./text-BEhqwMfe.js";
30
- import { T as Ma, u as Ua } from "./toast-B8ebpHaU.js";
31
- import { T as ua, a as Ea } from "./tooltip-C4DRhJi1.js";
32
- import { a as da, K as Ca, P as ba } from "./popover-BfGLC2s6.js";
33
- import { a as Pa, K as Ba, S as ca } from "./sensitive-input-DYvAmxkN.js";
34
- import { b as ka, K as Ga, R as va, a as ha } from "./radio-CYejLANA.js";
35
- import { C as wa, a as ja, K as qa } from "./command-palette-BxmGYxBv.js";
36
- import { a as Ha, K as Ja, L as Qa, l as Wa } from "./link-CcuZKqob.js";
37
- import { B as Ya } from "./breadcrumbs-DyKi7BcP.js";
38
- import { E as $a } from "./empty-D03cbzRS.js";
39
- import { G as oo, a as ro, c as so, K as eo, b as to, g as po } from "./grid-DKajRHh8.js";
40
- import { c as mo, s as Ao } from "./cn-Bhsu1vx2.js";
41
- import { L as To, u as fo } from "./link-provider-DPBGo-0n.js";
42
- import { i as _o } from "./vendor-base-ui-kX0wjdav.js";
2
+ import { B as J } from "./badge-Dc99vsfo.js";
3
+ import { B as S } from "./banner-4fkH6Sbt.js";
4
+ import { a as Y } from "./banner-4fkH6Sbt.js";
5
+ import { B as n } from "./button-Bh96oxRL.js";
6
+ import { L as aa, R as ea, b as oa } from "./button-Bh96oxRL.js";
7
+ import { D as ta } from "./date-range-picker-CbKEQ9pi.js";
8
+ import { C as ia } from "./checkbox-C1LPq8eL.js";
9
+ import { C as na } from "./clipboard-text-CJSI9X2m.js";
10
+ import { C as pa, a as fa } from "./code-T2wPDiM0.js";
11
+ import { C as ca } from "./combobox-CWxn5aHA.js";
12
+ import { a as N, D as U, c as V, e as A } from "./dialog-x9n9wI13.js";
13
+ import { d as ua, b as Ta } from "./dialog-x9n9wI13.js";
14
+ import { D as _a } from "./dropdown-BAyk1knz.js";
15
+ import { C as ba } from "./collapsible-OBNkTO48.js";
16
+ import { F as ha, a as Ra, K as La, f as Ea } from "./field-B7ORz5ej.js";
17
+ import { b as Na, K as Ua, L as Va, a as ga, l as Da } from "./label-B4FY8MX_.js";
18
+ import { I as g } from "./input-D6YgDfDG.js";
19
+ import { i as Ma } from "./input-D6YgDfDG.js";
20
+ import { I as ka } from "./input-area-DN_Ncliw.js";
21
+ import { I as ya } from "./input-group-BXzBwH4p.js";
22
+ import { L as Ba } from "./layer-card-C8j5Hkkj.js";
23
+ import { L as wa } from "./loader-DHGMYlC6.js";
24
+ import { S as Ga } from "./skeleton-line-CtpS1u1J.js";
25
+ import { M as $a, u as qa } from "./menubar-CzimiryS.js";
26
+ import { M as Xa } from "./meter-BrJnHJ3Q.js";
27
+ import { P as Ja } from "./pagination-D0x9KQSk.js";
28
+ import { S as Ya } from "./select-D4rKQAax.js";
29
+ import { S as ae } from "./surface-BIC6CXiz.js";
30
+ import { S as oe } from "./switch-z7FE1nQE.js";
31
+ import { T as te } from "./tabs-DAEeuQLd.js";
32
+ import { T as ie } from "./table-Sd2Etb1N.js";
33
+ import { T as ne } from "./text-BEhqwMfe.js";
34
+ import { T as pe, u as fe } from "./toast-B8ebpHaU.js";
35
+ import { T as ce, a as xe } from "./tooltip-C4DRhJi1.js";
36
+ import { g as Te, K as Ae, P as _e } from "./popover-CtKDH8Yc.js";
37
+ import { a as be, K as Ce, S as he } from "./sensitive-input-DYvAmxkN.js";
38
+ import { b as Le, K as Ee, R as Se, a as Ne } from "./radio-CYejLANA.js";
39
+ import { C as Ve, a as ge, K as De } from "./command-palette-BxmGYxBv.js";
40
+ import { a as Me, K as Oe, L as ke, l as ve } from "./link-CcuZKqob.js";
41
+ import { B as Pe } from "./breadcrumbs-DyKi7BcP.js";
42
+ import { E as Fe } from "./empty-D03cbzRS.js";
43
+ import { G as ze, a as Ge, c as je, K as $e, b as qe, g as We } from "./grid-DKajRHh8.js";
44
+ import { c as D } from "./cn-Bhsu1vx2.js";
45
+ import { s as He } from "./cn-Bhsu1vx2.js";
46
+ import { L as Qe, u as Ye } from "./link-provider-DPBGo-0n.js";
47
+ import { jsx as a, jsxs as e } from "react/jsx-runtime";
48
+ import { useState as _, useEffect as K, useCallback as m } from "react";
49
+ import { XIcon as M, WarningCircleIcon as O, CheckIcon as k, CopyIcon as v } from "@phosphor-icons/react";
50
+ import { i as ao } from "./vendor-base-ui-kX0wjdav.js";
51
+ const W = {
52
+ size: {
53
+ sm: {
54
+ classes: "",
55
+ description: "Small dialog for simple delete confirmations"
56
+ },
57
+ base: {
58
+ classes: "",
59
+ description: "Default delete confirmation dialog size"
60
+ }
61
+ }
62
+ }, y = {
63
+ size: "base"
64
+ };
65
+ function P({
66
+ open: s,
67
+ onOpenChange: I,
68
+ resourceType: p,
69
+ resourceName: o,
70
+ onDelete: f,
71
+ isDeleting: r = !1,
72
+ caseSensitive: d = !0,
73
+ deleteButtonText: b,
74
+ size: C = y.size,
75
+ errorMessage: c,
76
+ className: h
77
+ }) {
78
+ const [x, u] = _(""), [R, i] = _(!1);
79
+ K(() => {
80
+ s || (u(""), i(!1));
81
+ }, [s]);
82
+ const T = m(
83
+ (t) => d ? t : t.toLowerCase(),
84
+ [d]
85
+ ), l = T(x) === T(o), L = m(async () => {
86
+ !l || r || await f();
87
+ }, [l, r, f]), E = m(async () => {
88
+ await navigator.clipboard.writeText(o), i(!0), setTimeout(() => i(!1), 1500);
89
+ }, [o]);
90
+ return /* @__PURE__ */ a(N, { open: s, onOpenChange: I, children: /* @__PURE__ */ e(U, { size: C, className: D("p-0", h), children: [
91
+ /* @__PURE__ */ e("div", { className: "flex items-center justify-between border-b border-kumo-line px-6 py-4", children: [
92
+ /* @__PURE__ */ e(V, { className: "text-lg font-semibold", children: [
93
+ "Delete ",
94
+ o
95
+ ] }),
96
+ /* @__PURE__ */ a(A, { children: /* @__PURE__ */ a(
97
+ n,
98
+ {
99
+ variant: "ghost",
100
+ shape: "square",
101
+ size: "sm",
102
+ "aria-label": "Close",
103
+ disabled: r,
104
+ children: /* @__PURE__ */ a(M, { size: 18 })
105
+ }
106
+ ) })
107
+ ] }),
108
+ /* @__PURE__ */ e("div", { className: "flex flex-col p-6 gap-4", children: [
109
+ /* @__PURE__ */ e("div", { className: "flex flex-col gap-2", children: [
110
+ c && /* @__PURE__ */ a(S, { icon: /* @__PURE__ */ a(O, {}), variant: "error", children: c }),
111
+ /* @__PURE__ */ e("p", { className: "text-base text-kumo-subtle max-w-prose text-pretty", children: [
112
+ "This action cannot be undone. This will permanently delete the",
113
+ " ",
114
+ /* @__PURE__ */ a("span", { className: "font-medium text-kumo-default", children: o }),
115
+ " ",
116
+ p.toLowerCase(),
117
+ "."
118
+ ] })
119
+ ] }),
120
+ /* @__PURE__ */ e("div", { className: "flex flex-col gap-2", children: [
121
+ /* @__PURE__ */ a("div", { className: "flex items-center gap-1.5 text-base", children: /* @__PURE__ */ e("span", { children: [
122
+ "Type",
123
+ " ",
124
+ /* @__PURE__ */ e(
125
+ "button",
126
+ {
127
+ className: "font-mono text-sm inline font-semibold bg-kumo-tint hover:bg-kumo-fill rounded-md px-2 py-1 group hover:cursor-pointer",
128
+ onClick: E,
129
+ "aria-label": `Copy ${o} to clipboard`,
130
+ children: [
131
+ o,
132
+ R ? /* @__PURE__ */ a(
133
+ k,
134
+ {
135
+ size: 12,
136
+ weight: "bold",
137
+ className: "inline ml-1.5"
138
+ }
139
+ ) : /* @__PURE__ */ a(
140
+ v,
141
+ {
142
+ size: 12,
143
+ weight: "bold",
144
+ className: "inline text-kumo-subtle group-hover:text-kumo-default ml-1.5"
145
+ }
146
+ )
147
+ ]
148
+ }
149
+ ),
150
+ " ",
151
+ "to confirm:"
152
+ ] }) }),
153
+ /* @__PURE__ */ a(
154
+ g,
155
+ {
156
+ placeholder: o,
157
+ value: x,
158
+ onChange: (t) => u(t.target.value),
159
+ disabled: r,
160
+ autoComplete: "off",
161
+ autoCorrect: "off",
162
+ autoCapitalize: "off",
163
+ spellCheck: !1,
164
+ "aria-label": `Type ${o} to confirm deletion`,
165
+ className: "w-full"
166
+ }
167
+ )
168
+ ] })
169
+ ] }),
170
+ /* @__PURE__ */ e("div", { className: "flex justify-end gap-3 border-t border-kumo-line px-6 py-4", children: [
171
+ /* @__PURE__ */ a(A, { children: /* @__PURE__ */ a(n, { variant: "secondary", disabled: r, children: "Cancel" }) }),
172
+ /* @__PURE__ */ a(
173
+ n,
174
+ {
175
+ variant: "destructive",
176
+ onClick: L,
177
+ disabled: !l || r,
178
+ loading: r,
179
+ children: b || `Delete ${p}`
180
+ }
181
+ )
182
+ ] })
183
+ ] }) });
184
+ }
185
+ P.displayName = "DeleteResource";
43
186
  export {
44
- r as Badge,
45
- e as Banner,
46
- t as BannerVariant,
47
- Ya as Breadcrumbs,
48
- i as Button,
49
- _ as Checkbox,
50
- L as ClipboardText,
51
- R as Code,
52
- S as CodeBlock,
53
- g as Collapsible,
54
- D as Combobox,
55
- wa as CommandPalette,
56
- f as DateRangePicker,
57
- M as Dialog,
58
- U as DialogClose,
59
- N as DialogDescription,
60
- u as DialogRoot,
61
- E as DialogTitle,
62
- O as DialogTrigger,
63
- C as DropdownMenu,
64
- $a as Empty,
65
- B as Field,
66
- oo as Grid,
67
- ro as GridItem,
68
- z as Input,
69
- Q as InputArea,
70
- X as InputGroup,
71
- ja as KUMO_COMMAND_PALETTE_DEFAULT_VARIANTS,
72
- qa as KUMO_COMMAND_PALETTE_VARIANTS,
73
- c as KUMO_FIELD_DEFAULT_VARIANTS,
74
- F as KUMO_FIELD_VARIANTS,
75
- so as KUMO_GRID_DEFAULT_VARIANTS,
76
- eo as KUMO_GRID_VARIANTS,
77
- v as KUMO_LABEL_DEFAULT_VARIANTS,
78
- h as KUMO_LABEL_VARIANTS,
79
- Ha as KUMO_LINK_DEFAULT_VARIANTS,
80
- Ja as KUMO_LINK_VARIANTS,
81
- da as KUMO_POPOVER_DEFAULT_VARIANTS,
82
- Ca as KUMO_POPOVER_VARIANTS,
83
- ka as KUMO_RADIO_DEFAULT_VARIANTS,
84
- Ga as KUMO_RADIO_VARIANTS,
85
- Pa as KUMO_SENSITIVE_INPUT_DEFAULT_VARIANTS,
86
- Ba as KUMO_SENSITIVE_INPUT_VARIANTS,
87
- y as Label,
88
- Z as LayerCard,
89
- Qa as Link,
90
- m as LinkButton,
91
- To as LinkProvider,
92
- aa as Loader,
93
- ea as MenuBar,
94
- ia as Meter,
95
- Aa as Pagination,
96
- ba as Popover,
97
- va as Radio,
98
- ha as RadioGroup,
99
- A as RefreshButton,
100
- Ta as Select,
101
- ca as SensitiveInput,
102
- ra as SkeletonLine,
103
- xa as Surface,
104
- Ia as Switch,
105
- Sa as Table,
106
- la as Tabs,
107
- Da as Text,
108
- _o as Toast,
109
- Ma as Toasty,
110
- ua as Tooltip,
111
- Ea as TooltipProvider,
112
- n as buttonVariants,
113
- mo as cn,
114
- k as fieldVariants,
115
- to as gridItemVariants,
116
- po as gridVariants,
117
- H as inputVariants,
118
- w as labelContentVariants,
119
- j as labelVariants,
120
- Wa as linkVariants,
121
- Ao as safeRandomId,
122
- Ua as useKumoToastManager,
123
- fo as useLinkComponent,
124
- ta as useMenuNavigation
187
+ J as Badge,
188
+ S as Banner,
189
+ Y as BannerVariant,
190
+ Pe as Breadcrumbs,
191
+ n as Button,
192
+ ia as Checkbox,
193
+ na as ClipboardText,
194
+ pa as Code,
195
+ fa as CodeBlock,
196
+ ba as Collapsible,
197
+ ca as Combobox,
198
+ Ve as CommandPalette,
199
+ ta as DateRangePicker,
200
+ P as DeleteResource,
201
+ U as Dialog,
202
+ A as DialogClose,
203
+ ua as DialogDescription,
204
+ N as DialogRoot,
205
+ V as DialogTitle,
206
+ Ta as DialogTrigger,
207
+ _a as DropdownMenu,
208
+ Fe as Empty,
209
+ ha as Field,
210
+ ze as Grid,
211
+ Ge as GridItem,
212
+ g as Input,
213
+ ka as InputArea,
214
+ ya as InputGroup,
215
+ ge as KUMO_COMMAND_PALETTE_DEFAULT_VARIANTS,
216
+ De as KUMO_COMMAND_PALETTE_VARIANTS,
217
+ y as KUMO_DELETE_RESOURCE_DEFAULT_VARIANTS,
218
+ W as KUMO_DELETE_RESOURCE_VARIANTS,
219
+ Ra as KUMO_FIELD_DEFAULT_VARIANTS,
220
+ La as KUMO_FIELD_VARIANTS,
221
+ je as KUMO_GRID_DEFAULT_VARIANTS,
222
+ $e as KUMO_GRID_VARIANTS,
223
+ Na as KUMO_LABEL_DEFAULT_VARIANTS,
224
+ Ua as KUMO_LABEL_VARIANTS,
225
+ Me as KUMO_LINK_DEFAULT_VARIANTS,
226
+ Oe as KUMO_LINK_VARIANTS,
227
+ Te as KUMO_POPOVER_DEFAULT_VARIANTS,
228
+ Ae as KUMO_POPOVER_VARIANTS,
229
+ Le as KUMO_RADIO_DEFAULT_VARIANTS,
230
+ Ee as KUMO_RADIO_VARIANTS,
231
+ be as KUMO_SENSITIVE_INPUT_DEFAULT_VARIANTS,
232
+ Ce as KUMO_SENSITIVE_INPUT_VARIANTS,
233
+ Va as Label,
234
+ Ba as LayerCard,
235
+ ke as Link,
236
+ aa as LinkButton,
237
+ Qe as LinkProvider,
238
+ wa as Loader,
239
+ $a as MenuBar,
240
+ Xa as Meter,
241
+ Ja as Pagination,
242
+ _e as Popover,
243
+ Se as Radio,
244
+ Ne as RadioGroup,
245
+ ea as RefreshButton,
246
+ Ya as Select,
247
+ he as SensitiveInput,
248
+ Ga as SkeletonLine,
249
+ ae as Surface,
250
+ oe as Switch,
251
+ ie as Table,
252
+ te as Tabs,
253
+ ne as Text,
254
+ ao as Toast,
255
+ pe as Toasty,
256
+ ce as Tooltip,
257
+ xe as TooltipProvider,
258
+ oa as buttonVariants,
259
+ D as cn,
260
+ Ea as fieldVariants,
261
+ qe as gridItemVariants,
262
+ We as gridVariants,
263
+ Ma as inputVariants,
264
+ ga as labelContentVariants,
265
+ Da as labelVariants,
266
+ ve as linkVariants,
267
+ He as safeRandomId,
268
+ fe as useKumoToastManager,
269
+ Ye as useLinkComponent,
270
+ qa as useMenuNavigation
125
271
  };
126
272
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../src/blocks/delete-resource/delete-resource.tsx"],"sourcesContent":["import { useState, useCallback, useEffect } from \"react\";\nimport {\n Dialog,\n DialogRoot,\n DialogTitle,\n DialogClose,\n} from \"../../components/dialog\";\nimport { Input } from \"../../components/input\";\nimport { Button } from \"../../components/button\";\nimport { cn } from \"../../utils/cn\";\nimport {\n CheckIcon,\n CopyIcon,\n WarningCircleIcon,\n XIcon,\n} from \"@phosphor-icons/react\";\nimport { Banner } from \"../../components/banner\";\n\nexport const KUMO_DELETE_RESOURCE_VARIANTS = {\n size: {\n sm: {\n classes: \"\",\n description: \"Small dialog for simple delete confirmations\",\n },\n base: {\n classes: \"\",\n description: \"Default delete confirmation dialog size\",\n },\n },\n} as const;\n\nexport const KUMO_DELETE_RESOURCE_DEFAULT_VARIANTS = {\n size: \"base\",\n} as const;\n\nexport type KumoDeleteResourceSize =\n keyof typeof KUMO_DELETE_RESOURCE_VARIANTS.size;\n\nexport interface KumoDeleteResourceVariantsProps {\n size?: KumoDeleteResourceSize;\n}\n\nexport interface DeleteResourceProps extends KumoDeleteResourceVariantsProps {\n /** Whether the dialog is open */\n open: boolean;\n /** Callback when open state changes */\n onOpenChange: (open: boolean) => void;\n /** The type of resource being deleted (e.g., \"Zone\", \"Worker\", \"KV Namespace\") */\n resourceType: string;\n /** The name of the specific resource being deleted */\n resourceName: string;\n /** Callback when delete is confirmed */\n onDelete: () => void | Promise<void>;\n /** Whether the delete action is in progress */\n isDeleting?: boolean;\n /** Whether the confirmation input should be case-sensitive (default: true) */\n caseSensitive?: boolean;\n /** Custom delete button text (defaults to \"Delete {resourceType}\") */\n deleteButtonText?: string;\n /** Additional className for the dialog */\n className?: string;\n /** Error message to display if the delete action fails */\n errorMessage?: string;\n}\n\nexport function DeleteResource({\n open,\n onOpenChange,\n resourceType,\n resourceName,\n onDelete,\n isDeleting = false,\n caseSensitive = true,\n deleteButtonText,\n size = KUMO_DELETE_RESOURCE_DEFAULT_VARIANTS.size,\n errorMessage,\n className,\n}: DeleteResourceProps) {\n const [confirmationInput, setConfirmationInput] = useState(\"\");\n const [copied, setCopied] = useState(false);\n\n useEffect(() => {\n if (!open) {\n setConfirmationInput(\"\");\n setCopied(false);\n }\n }, [open]);\n\n const normalizeForComparison = useCallback(\n (str: string) => (caseSensitive ? str : str.toLowerCase()),\n [caseSensitive],\n );\n\n const isConfirmed =\n normalizeForComparison(confirmationInput) ===\n normalizeForComparison(resourceName);\n\n const handleDelete = useCallback(async () => {\n if (!isConfirmed || isDeleting) return;\n await onDelete();\n }, [isConfirmed, isDeleting, onDelete]);\n\n const handleCopy = useCallback(async () => {\n await navigator.clipboard.writeText(resourceName);\n setCopied(true);\n setTimeout(() => setCopied(false), 1500);\n }, [resourceName]);\n\n return (\n <DialogRoot open={open} onOpenChange={onOpenChange}>\n <Dialog size={size} className={cn(\"p-0\", className)}>\n <div className=\"flex items-center justify-between border-b border-kumo-line px-6 py-4\">\n <DialogTitle className=\"text-lg font-semibold\">\n Delete {resourceName}\n </DialogTitle>\n <DialogClose>\n <Button\n variant=\"ghost\"\n shape=\"square\"\n size=\"sm\"\n aria-label=\"Close\"\n disabled={isDeleting}\n >\n <XIcon size={18} />\n </Button>\n </DialogClose>\n </div>\n\n <div className=\"flex flex-col p-6 gap-4\">\n <div className=\"flex flex-col gap-2\">\n {errorMessage && (\n <Banner icon={<WarningCircleIcon />} variant=\"error\">\n {errorMessage}\n </Banner>\n )}\n <p className=\"text-base text-kumo-subtle max-w-prose text-pretty\">\n This action cannot be undone. This will permanently delete the{\" \"}\n <span className=\"font-medium text-kumo-default\">\n {resourceName}\n </span>{\" \"}\n {resourceType.toLowerCase()}.\n </p>\n </div>\n\n <div className=\"flex flex-col gap-2\">\n <div className=\"flex items-center gap-1.5 text-base\">\n <span>\n Type{\" \"}\n <button\n className=\"font-mono text-sm inline font-semibold bg-kumo-tint hover:bg-kumo-fill rounded-md px-2 py-1 group hover:cursor-pointer\"\n onClick={handleCopy}\n aria-label={`Copy ${resourceName} to clipboard`}\n >\n {resourceName}\n\n {copied ? (\n <CheckIcon\n size={12}\n weight=\"bold\"\n className=\"inline ml-1.5\"\n />\n ) : (\n <CopyIcon\n size={12}\n weight=\"bold\"\n className=\"inline text-kumo-subtle group-hover:text-kumo-default ml-1.5\"\n />\n )}\n </button>{\" \"}\n to confirm:\n </span>\n </div>\n <Input\n placeholder={resourceName}\n value={confirmationInput}\n onChange={(e) => setConfirmationInput(e.target.value)}\n disabled={isDeleting}\n autoComplete=\"off\"\n autoCorrect=\"off\"\n autoCapitalize=\"off\"\n spellCheck={false}\n aria-label={`Type ${resourceName} to confirm deletion`}\n className=\"w-full\"\n />\n </div>\n </div>\n\n <div className=\"flex justify-end gap-3 border-t border-kumo-line px-6 py-4\">\n <DialogClose>\n <Button variant=\"secondary\" disabled={isDeleting}>\n Cancel\n </Button>\n </DialogClose>\n <Button\n variant=\"destructive\"\n onClick={handleDelete}\n disabled={!isConfirmed || isDeleting}\n loading={isDeleting}\n >\n {deleteButtonText || `Delete ${resourceType}`}\n </Button>\n </div>\n </Dialog>\n </DialogRoot>\n );\n}\n\nDeleteResource.displayName = \"DeleteResource\";\n"],"names":["KUMO_DELETE_RESOURCE_VARIANTS","KUMO_DELETE_RESOURCE_DEFAULT_VARIANTS","DeleteResource","open","onOpenChange","resourceType","resourceName","onDelete","isDeleting","caseSensitive","deleteButtonText","size","errorMessage","className","confirmationInput","setConfirmationInput","useState","copied","setCopied","useEffect","normalizeForComparison","useCallback","str","isConfirmed","handleDelete","handleCopy","jsx","DialogRoot","jsxs","Dialog","cn","DialogTitle","DialogClose","Button","XIcon","Banner","WarningCircleIcon","CheckIcon","CopyIcon","Input","e"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBO,MAAMA,IAAgC;AAAA,EAC3C,MAAM;AAAA,IACJ,IAAI;AAAA,MACF,SAAS;AAAA,MACT,aAAa;AAAA,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AAA;AAAA,oBACC,MAAM;AAAA,oBACN,QAAO;AAAA,oBACP,WAAU;AAAA,kBAAA;AAAA,gBAAA,IAGZ,gBAAAX;AAAA,kBAACY;AAAA,kBAAA;AAAA,oBACC,MAAM;AAAA,oBACN,QAAO;AAAA,oBACP,WAAU;AAAA,kBAAA;AAAA,gBAAA;AAAA,cACZ;AAAA,YAAA;AAAA,UAAA;AAAA,UAEM;AAAA,UAAI;AAAA,QAAA,EAAA,CAEhB,EAAA,CACF;AAAA,QACA,gBAAAZ;AAAA,UAACa;AAAA,UAAA;AAAA,YACC,aAAajC;AAAA,YACb,OAAOQ;AAAA,YACP,UAAU,CAAC0B,MAAMzB,EAAqByB,EAAE,OAAO,KAAK;AAAA,YACpD,UAAUhC;AAAA,YACV,cAAa;AAAA,YACb,aAAY;AAAA,YACZ,gBAAe;AAAA,YACf,YAAY;AAAA,YACZ,cAAY,QAAQF,CAAY;AAAA,YAChC,WAAU;AAAA,UAAA;AAAA,QAAA;AAAA,MACZ,EAAA,CACF;AAAA,IAAA,GACF;AAAA,IAEA,gBAAAsB,EAAC,OAAA,EAAI,WAAU,8DACb,UAAA;AAAA,MAAA,gBAAAF,EAACM,GAAA,EACC,4BAACC,GAAA,EAAO,SAAQ,aAAY,UAAUzB,GAAY,oBAElD,EAAA,CACF;AAAA,MACA,gBAAAkB;AAAA,QAACO;AAAA,QAAA;AAAA,UACC,SAAQ;AAAA,UACR,SAAST;AAAA,UACT,UAAU,CAACD,KAAef;AAAA,UAC1B,SAASA;AAAA,UAER,UAAAE,KAAoB,UAAUL,CAAY;AAAA,QAAA;AAAA,MAAA;AAAA,IAC7C,EAAA,CACF;AAAA,EAAA,EAAA,CACF,EAAA,CACF;AAEJ;AAEAH,EAAe,cAAc;"}
@@ -167,12 +167,12 @@ const H = Object.assign(p, {
167
167
  export {
168
168
  A as K,
169
169
  H as P,
170
- L as a,
171
- p as b,
172
- n as c,
173
- l as d,
174
- d as e,
175
- c as f,
176
- m as g
170
+ p as a,
171
+ n as b,
172
+ l as c,
173
+ d,
174
+ c as e,
175
+ m as f,
176
+ L as g
177
177
  };
178
- //# sourceMappingURL=popover-BfGLC2s6.js.map
178
+ //# sourceMappingURL=popover-CtKDH8Yc.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"popover-BfGLC2s6.js","sources":["../src/components/popover/popover.tsx"],"sourcesContent":["import { Popover as PopoverBase } from \"@base-ui/react/popover\";\nimport type { ComponentPropsWithoutRef, ReactNode } from \"react\";\nimport { cn } from \"../../utils/cn\";\n\nexport const KUMO_POPOVER_VARIANTS = {\n side: {\n top: {\n classes: \"\",\n description: \"Popover appears above the trigger\",\n },\n bottom: {\n classes: \"\",\n description: \"Popover appears below the trigger\",\n },\n left: {\n classes: \"\",\n description: \"Popover appears to the left of the trigger\",\n },\n right: {\n classes: \"\",\n description: \"Popover appears to the right of the trigger\",\n },\n },\n} as const;\n\nexport const KUMO_POPOVER_DEFAULT_VARIANTS = {\n side: \"bottom\",\n} as const;\n\n// Derived types from KUMO_POPOVER_VARIANTS\nexport type KumoPopoverSide = keyof typeof KUMO_POPOVER_VARIANTS.side;\n\nexport interface KumoPopoverVariantsProps {\n side?: KumoPopoverSide;\n}\n\n// ============================================================================\n// Popover Root\n// ============================================================================\n\ntype BasePopoverRootProps = ComponentPropsWithoutRef<typeof PopoverBase.Root>;\n\nexport type PopoverRootProps = BasePopoverRootProps;\n\nfunction PopoverRoot({ children, ...props }: PopoverRootProps) {\n return <PopoverBase.Root {...props}>{children}</PopoverBase.Root>;\n}\n\nPopoverRoot.displayName = \"Popover\";\n\n// ============================================================================\n// Popover Trigger\n// ============================================================================\n\ntype BasePopoverTriggerProps = ComponentPropsWithoutRef<\n typeof PopoverBase.Trigger\n>;\n\nexport type PopoverTriggerProps = BasePopoverTriggerProps & {\n /** When true, the trigger element will be the child element */\n asChild?: boolean;\n};\n\nfunction PopoverTrigger({\n children,\n className,\n asChild,\n ...props\n}: PopoverTriggerProps) {\n return (\n <PopoverBase.Trigger\n className={className}\n render={\n asChild ? (children as BasePopoverTriggerProps[\"render\"]) : undefined\n }\n {...props}\n >\n {asChild ? undefined : children}\n </PopoverBase.Trigger>\n );\n}\n\nPopoverTrigger.displayName = \"Popover.Trigger\";\n\n// ============================================================================\n// Popover Content\n// ============================================================================\n\n/** Alignment options for popover positioning */\ntype PopoverAlign = \"start\" | \"center\" | \"end\";\n\nexport type PopoverContentProps = KumoPopoverVariantsProps & {\n /** How to align the popover relative to the trigger */\n align?: PopoverAlign;\n /** Distance between the trigger and the popover in pixels */\n sideOffset?: number;\n /** Additional offset along the alignment axis in pixels */\n alignOffset?: number;\n /** Additional class name for the popup */\n className?: string;\n /** Content to render inside the popover */\n children?: ReactNode;\n};\n\nfunction PopoverContent({\n children,\n side = KUMO_POPOVER_DEFAULT_VARIANTS.side,\n align = \"center\",\n sideOffset = 8,\n alignOffset = 0,\n className,\n}: PopoverContentProps) {\n return (\n <PopoverBase.Portal>\n <PopoverBase.Positioner\n align={align}\n alignOffset={alignOffset}\n side={side}\n sideOffset={sideOffset}\n >\n <PopoverBase.Popup\n className={cn(\n \"flex origin-(--transform-origin) flex-col rounded-lg bg-kumo-base px-4 py-3 text-sm text-kumo-default\",\n \"shadow-lg shadow-kumo-tip-shadow outline outline-kumo-fill\",\n \"transition-[transform,scale,opacity] duration-150\",\n \"data-starting-style:scale-90 data-starting-style:opacity-0\",\n \"data-ending-style:scale-90 data-ending-style:opacity-0\",\n \"data-instant:duration-0\",\n \"kumo-popover-popup\",\n className,\n )}\n >\n <PopoverBase.Arrow\n className={cn(\n \"flex\",\n \"data-[side=bottom]:-top-2\",\n \"data-[side=left]:right-[-13px] data-[side=left]:rotate-90\",\n \"data-[side=right]:left-[-13px] data-[side=right]:-rotate-90\",\n \"data-[side=top]:-bottom-2 data-[side=top]:rotate-180\",\n )}\n >\n <ArrowSvg />\n </PopoverBase.Arrow>\n {children}\n </PopoverBase.Popup>\n </PopoverBase.Positioner>\n </PopoverBase.Portal>\n );\n}\n\nPopoverContent.displayName = \"Popover.Content\";\n\n// ============================================================================\n// Popover Title\n// ============================================================================\n\ntype BasePopoverTitleProps = ComponentPropsWithoutRef<typeof PopoverBase.Title>;\n\nexport type PopoverTitleProps = BasePopoverTitleProps;\n\nfunction PopoverTitle({ className, ...props }: PopoverTitleProps) {\n return (\n <PopoverBase.Title\n className={cn(\"m-0 text-base leading-6 font-medium\", className)}\n {...props}\n />\n );\n}\n\nPopoverTitle.displayName = \"Popover.Title\";\n\n// ============================================================================\n// Popover Description\n// ============================================================================\n\ntype BasePopoverDescriptionProps = ComponentPropsWithoutRef<\n typeof PopoverBase.Description\n>;\n\nexport type PopoverDescriptionProps = BasePopoverDescriptionProps;\n\nfunction PopoverDescription({ className, ...props }: PopoverDescriptionProps) {\n return (\n <PopoverBase.Description\n className={cn(\"m-0 text-base leading-6 text-kumo-subtle\", className)}\n {...props}\n />\n );\n}\n\nPopoverDescription.displayName = \"Popover.Description\";\n\n// ============================================================================\n// Popover Close\n// ============================================================================\n\ntype BasePopoverCloseProps = ComponentPropsWithoutRef<typeof PopoverBase.Close>;\n\nexport type PopoverCloseProps = BasePopoverCloseProps & {\n /** When true, the close element will be the child element */\n asChild?: boolean;\n};\n\nfunction PopoverClose({\n children,\n className,\n asChild,\n ...props\n}: PopoverCloseProps) {\n return (\n <PopoverBase.Close\n className={className}\n render={\n asChild ? (children as BasePopoverCloseProps[\"render\"]) : undefined\n }\n {...props}\n >\n {asChild ? undefined : children}\n </PopoverBase.Close>\n );\n}\n\nPopoverClose.displayName = \"Popover.Close\";\n\n// ============================================================================\n// Arrow SVG\n// ============================================================================\n\n/**\n * Arrow SVG with three paths for proper border rendering in both light and dark modes.\n * This approach matches Base UI's popover/tooltip implementation.\n *\n * The three paths are:\n * 1. ArrowFill - The main arrow body, matches popover background\n * 2. ArrowOuterStroke - Border visible in light mode only (transparent in dark)\n * 3. ArrowInnerStroke - Border visible in dark mode only (transparent in light)\n *\n * This is necessary because the outer and inner stroke paths have different geometries,\n * and using both ensures the arrow border aligns perfectly with the popover's outline\n * in both color modes.\n *\n * @see https://base-ui.com/react/components/popover\n */\nfunction ArrowSvg(props: React.ComponentProps<\"svg\">) {\n return (\n <svg width=\"20\" height=\"10\" viewBox=\"0 0 20 10\" fill=\"none\" {...props}>\n <path\n d=\"M9.66437 2.60207L4.80758 6.97318C4.07308 7.63423 3.11989 8 2.13172 8H0V10H20V8H18.5349C17.5468 8 16.5936 7.63423 15.8591 6.97318L11.0023 2.60207C10.622 2.2598 10.0447 2.25979 9.66437 2.60207Z\"\n className=\"fill-kumo-base\"\n />\n <path\n d=\"M8.99542 1.85876C9.75604 1.17425 10.9106 1.17422 11.6713 1.85878L16.5281 6.22989C17.0789 6.72568 17.7938 7.00001 18.5349 7.00001L15.89 7L11.0023 2.60207C10.622 2.2598 10.0447 2.2598 9.66436 2.60207L4.77734 7L2.13171 7.00001C2.87284 7.00001 3.58774 6.72568 4.13861 6.22989L8.99542 1.85876Z\"\n className=\"fill-kumo-tip-shadow\"\n />\n <path\n d=\"M10.3333 3.34539L5.47654 7.71648C4.55842 8.54279 3.36693 9 2.13172 9H0V8H2.13172C3.11989 8 4.07308 7.63423 4.80758 6.97318L9.66437 2.60207C10.0447 2.25979 10.622 2.2598 11.0023 2.60207L15.8591 6.97318C16.5936 7.63423 17.5468 8 18.5349 8H20V9H18.5349C17.2998 9 16.1083 8.54278 15.1901 7.71648L10.3333 3.34539Z\"\n className=\"fill-kumo-tip-stroke\"\n />\n </svg>\n );\n}\n\n// ============================================================================\n// Compound Component Export\n// ============================================================================\n\n/**\n * Popover component for displaying accessible popup content anchored to a trigger.\n *\n * @example\n * ```tsx\n * <Popover>\n * <Popover.Trigger asChild>\n * <Button>Open</Button>\n * </Popover.Trigger>\n * <Popover.Content>\n * <Popover.Title>Notifications</Popover.Title>\n * <Popover.Description>You are all caught up!</Popover.Description>\n * </Popover.Content>\n * </Popover>\n * ```\n *\n * @see https://base-ui.com/react/components/popover\n */\nexport const Popover = Object.assign(PopoverRoot, {\n Trigger: PopoverTrigger,\n Content: PopoverContent,\n Title: PopoverTitle,\n Description: PopoverDescription,\n Close: PopoverClose,\n});\n\n// Export sub-components for direct access and type inference\nexport {\n PopoverRoot,\n PopoverTrigger,\n PopoverContent,\n PopoverTitle,\n PopoverDescription,\n PopoverClose,\n};\n"],"names":["KUMO_POPOVER_VARIANTS","KUMO_POPOVER_DEFAULT_VARIANTS","PopoverRoot","children","props","PopoverBase.Root","PopoverTrigger","className","asChild","jsx","PopoverBase.Trigger","PopoverContent","side","align","sideOffset","alignOffset","PopoverBase.Portal","PopoverBase.Positioner","jsxs","PopoverBase.Popup","cn","PopoverBase.Arrow","ArrowSvg","PopoverTitle","PopoverBase.Title","PopoverDescription","PopoverBase.Description","PopoverClose","PopoverBase.Close","Popover"],"mappings":";;;;AAIO,MAAMA,IAAwB;AAAA,EACnC,MAAM;AAAA,IACJ,KAAK;AAAA,MACH,SAAS;AAAA,MACT,aAAa;AAAA,IAAA;AAAA,IAEf,QAAQ;AAAA,MACN,SAAS;AAAA,MACT,aAAa;AAAA,IAAA;AAAA,IAEf,MAAM;AAAA,MACJ,SAAS;AAAA,MACT,aAAa;AAAA,IAAA;AAAA,IAEf,OAAO;AAAA,MACL,SAAS;AAAA,MACT,aAAa;AAAA,IAAA;AAAA,EACf;AAEJ,GAEaC,IAAgC;AAAA,EAC3C,MAAM;AACR;AAiBA,SAASC,EAAY,EAAE,UAAAC,GAAU,GAAGC,KAA2B;AAC7D,2BAAQC,GAAA,EAAkB,GAAGD,GAAQ,UAAAD,EAAA,CAAS;AAChD;AAEAD,EAAY,cAAc;AAe1B,SAASI,EAAe;AAAA,EACtB,UAAAH;AAAA,EACA,WAAAI;AAAA,EACA,SAAAC;AAAA,EACA,GAAGJ;AACL,GAAwB;AACtB,SACE,gBAAAK;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,WAAAH;AAAA,MACA,QACEC,IAAWL,IAAiD;AAAA,MAE7D,GAAGC;AAAA,MAEH,cAAU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AAS;AAAA,MAClE,GAAGH;AAAA,IAAA;AAAA,EAAA;AAGV;AAEAqB,EAAmB,cAAc;AAajC,SAASE,EAAa;AAAA,EACpB,UAAAxB;AAAA,EACA,WAAAI;AAAA,EACA,SAAAC;AAAA,EACA,GAAGJ;AACL,GAAsB;AACpB,SACE,gBAAAK;AAAA,IAACmB;AAAAA,IAAA;AAAA,MACC,WAAArB;AAAA,MACA,QACEC,IAAWL,IAA+C;AAAA,MAE3D,GAAGC;AAAA,MAEH,cAAU,SAAYD;AAAA,IAAA;AAAA,EAAA;AAG7B;AAEAwB,EAAa,cAAc;AAqB3B,SAASL,EAASlB,GAAoC;AACpD,SACE,gBAAAc,EAAC,OAAA,EAAI,OAAM,MAAK,QAAO,MAAK,SAAQ,aAAY,MAAK,QAAQ,GAAGd,GAC9D,UAAA;AAAA,IAAA,gBAAAK;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,GAAE;AAAA,QACF,WAAU;AAAA,MAAA;AAAA,IAAA;AAAA,IAEZ,gBAAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,GAAE;AAAA,QACF,WAAU;AAAA,MAAA;AAAA,IAAA;AAAA,IAEZ,gBAAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,GAAE;AAAA,QACF,WAAU;AAAA,MAAA;AAAA,IAAA;AAAA,EACZ,GACF;AAEJ;AAwBO,MAAMoB,IAAU,OAAO,OAAO3B,GAAa;AAAA,EAChD,SAASI;AAAA,EACT,SAASK;AAAA,EACT,OAAOY;AAAA,EACP,aAAaE;AAAA,EACb,OAAOE;AACT,CAAC;"}
1
+ {"version":3,"file":"popover-CtKDH8Yc.js","sources":["../src/components/popover/popover.tsx"],"sourcesContent":["import { Popover as PopoverBase } from \"@base-ui/react/popover\";\nimport type { ComponentPropsWithoutRef, ReactNode } from \"react\";\nimport { cn } from \"../../utils/cn\";\n\nexport const KUMO_POPOVER_VARIANTS = {\n side: {\n top: {\n classes: \"\",\n description: \"Popover appears above the trigger\",\n },\n bottom: {\n classes: \"\",\n description: \"Popover appears below the trigger\",\n },\n left: {\n classes: \"\",\n description: \"Popover appears to the left of the trigger\",\n },\n right: {\n classes: \"\",\n description: \"Popover appears to the right of the trigger\",\n },\n },\n} as const;\n\nexport const KUMO_POPOVER_DEFAULT_VARIANTS = {\n side: \"bottom\",\n} as const;\n\n// Derived types from KUMO_POPOVER_VARIANTS\nexport type KumoPopoverSide = keyof typeof KUMO_POPOVER_VARIANTS.side;\n\nexport interface KumoPopoverVariantsProps {\n side?: KumoPopoverSide;\n}\n\n// ============================================================================\n// Popover Root\n// ============================================================================\n\ntype BasePopoverRootProps = ComponentPropsWithoutRef<typeof PopoverBase.Root>;\n\nexport type PopoverRootProps = BasePopoverRootProps;\n\nfunction PopoverRoot({ children, ...props }: PopoverRootProps) {\n return <PopoverBase.Root {...props}>{children}</PopoverBase.Root>;\n}\n\nPopoverRoot.displayName = \"Popover\";\n\n// ============================================================================\n// Popover Trigger\n// ============================================================================\n\ntype BasePopoverTriggerProps = ComponentPropsWithoutRef<\n typeof PopoverBase.Trigger\n>;\n\nexport type PopoverTriggerProps = BasePopoverTriggerProps & {\n /** When true, the trigger element will be the child element */\n asChild?: boolean;\n};\n\nfunction PopoverTrigger({\n children,\n className,\n asChild,\n ...props\n}: PopoverTriggerProps) {\n return (\n <PopoverBase.Trigger\n className={className}\n render={\n asChild ? (children as BasePopoverTriggerProps[\"render\"]) : undefined\n }\n {...props}\n >\n {asChild ? undefined : children}\n </PopoverBase.Trigger>\n );\n}\n\nPopoverTrigger.displayName = \"Popover.Trigger\";\n\n// ============================================================================\n// Popover Content\n// ============================================================================\n\n/** Alignment options for popover positioning */\ntype PopoverAlign = \"start\" | \"center\" | \"end\";\n\nexport type PopoverContentProps = KumoPopoverVariantsProps & {\n /** How to align the popover relative to the trigger */\n align?: PopoverAlign;\n /** Distance between the trigger and the popover in pixels */\n sideOffset?: number;\n /** Additional offset along the alignment axis in pixels */\n alignOffset?: number;\n /** Additional class name for the popup */\n className?: string;\n /** Content to render inside the popover */\n children?: ReactNode;\n};\n\nfunction PopoverContent({\n children,\n side = KUMO_POPOVER_DEFAULT_VARIANTS.side,\n align = \"center\",\n sideOffset = 8,\n alignOffset = 0,\n className,\n}: PopoverContentProps) {\n return (\n <PopoverBase.Portal>\n <PopoverBase.Positioner\n align={align}\n alignOffset={alignOffset}\n side={side}\n sideOffset={sideOffset}\n >\n <PopoverBase.Popup\n className={cn(\n \"flex origin-(--transform-origin) flex-col rounded-lg bg-kumo-base px-4 py-3 text-sm text-kumo-default\",\n \"shadow-lg shadow-kumo-tip-shadow outline outline-kumo-fill\",\n \"transition-[transform,scale,opacity] duration-150\",\n \"data-starting-style:scale-90 data-starting-style:opacity-0\",\n \"data-ending-style:scale-90 data-ending-style:opacity-0\",\n \"data-instant:duration-0\",\n \"kumo-popover-popup\",\n className,\n )}\n >\n <PopoverBase.Arrow\n className={cn(\n \"flex\",\n \"data-[side=bottom]:-top-2\",\n \"data-[side=left]:right-[-13px] data-[side=left]:rotate-90\",\n \"data-[side=right]:left-[-13px] data-[side=right]:-rotate-90\",\n \"data-[side=top]:-bottom-2 data-[side=top]:rotate-180\",\n )}\n >\n <ArrowSvg />\n </PopoverBase.Arrow>\n {children}\n </PopoverBase.Popup>\n </PopoverBase.Positioner>\n </PopoverBase.Portal>\n );\n}\n\nPopoverContent.displayName = \"Popover.Content\";\n\n// ============================================================================\n// Popover Title\n// ============================================================================\n\ntype BasePopoverTitleProps = ComponentPropsWithoutRef<typeof PopoverBase.Title>;\n\nexport type PopoverTitleProps = BasePopoverTitleProps;\n\nfunction PopoverTitle({ className, ...props }: PopoverTitleProps) {\n return (\n <PopoverBase.Title\n className={cn(\"m-0 text-base leading-6 font-medium\", className)}\n {...props}\n />\n );\n}\n\nPopoverTitle.displayName = \"Popover.Title\";\n\n// ============================================================================\n// Popover Description\n// ============================================================================\n\ntype BasePopoverDescriptionProps = ComponentPropsWithoutRef<\n typeof PopoverBase.Description\n>;\n\nexport type PopoverDescriptionProps = BasePopoverDescriptionProps;\n\nfunction PopoverDescription({ className, ...props }: PopoverDescriptionProps) {\n return (\n <PopoverBase.Description\n className={cn(\"m-0 text-base leading-6 text-kumo-subtle\", className)}\n {...props}\n />\n );\n}\n\nPopoverDescription.displayName = \"Popover.Description\";\n\n// ============================================================================\n// Popover Close\n// ============================================================================\n\ntype BasePopoverCloseProps = ComponentPropsWithoutRef<typeof PopoverBase.Close>;\n\nexport type PopoverCloseProps = BasePopoverCloseProps & {\n /** When true, the close element will be the child element */\n asChild?: boolean;\n};\n\nfunction PopoverClose({\n children,\n className,\n asChild,\n ...props\n}: PopoverCloseProps) {\n return (\n <PopoverBase.Close\n className={className}\n render={\n asChild ? (children as BasePopoverCloseProps[\"render\"]) : undefined\n }\n {...props}\n >\n {asChild ? undefined : children}\n </PopoverBase.Close>\n );\n}\n\nPopoverClose.displayName = \"Popover.Close\";\n\n// ============================================================================\n// Arrow SVG\n// ============================================================================\n\n/**\n * Arrow SVG with three paths for proper border rendering in both light and dark modes.\n * This approach matches Base UI's popover/tooltip implementation.\n *\n * The three paths are:\n * 1. ArrowFill - The main arrow body, matches popover background\n * 2. ArrowOuterStroke - Border visible in light mode only (transparent in dark)\n * 3. ArrowInnerStroke - Border visible in dark mode only (transparent in light)\n *\n * This is necessary because the outer and inner stroke paths have different geometries,\n * and using both ensures the arrow border aligns perfectly with the popover's outline\n * in both color modes.\n *\n * @see https://base-ui.com/react/components/popover\n */\nfunction ArrowSvg(props: React.ComponentProps<\"svg\">) {\n return (\n <svg width=\"20\" height=\"10\" viewBox=\"0 0 20 10\" fill=\"none\" {...props}>\n <path\n d=\"M9.66437 2.60207L4.80758 6.97318C4.07308 7.63423 3.11989 8 2.13172 8H0V10H20V8H18.5349C17.5468 8 16.5936 7.63423 15.8591 6.97318L11.0023 2.60207C10.622 2.2598 10.0447 2.25979 9.66437 2.60207Z\"\n className=\"fill-kumo-base\"\n />\n <path\n d=\"M8.99542 1.85876C9.75604 1.17425 10.9106 1.17422 11.6713 1.85878L16.5281 6.22989C17.0789 6.72568 17.7938 7.00001 18.5349 7.00001L15.89 7L11.0023 2.60207C10.622 2.2598 10.0447 2.2598 9.66436 2.60207L4.77734 7L2.13171 7.00001C2.87284 7.00001 3.58774 6.72568 4.13861 6.22989L8.99542 1.85876Z\"\n className=\"fill-kumo-tip-shadow\"\n />\n <path\n d=\"M10.3333 3.34539L5.47654 7.71648C4.55842 8.54279 3.36693 9 2.13172 9H0V8H2.13172C3.11989 8 4.07308 7.63423 4.80758 6.97318L9.66437 2.60207C10.0447 2.25979 10.622 2.2598 11.0023 2.60207L15.8591 6.97318C16.5936 7.63423 17.5468 8 18.5349 8H20V9H18.5349C17.2998 9 16.1083 8.54278 15.1901 7.71648L10.3333 3.34539Z\"\n className=\"fill-kumo-tip-stroke\"\n />\n </svg>\n );\n}\n\n// ============================================================================\n// Compound Component Export\n// ============================================================================\n\n/**\n * Popover component for displaying accessible popup content anchored to a trigger.\n *\n * @example\n * ```tsx\n * <Popover>\n * <Popover.Trigger asChild>\n * <Button>Open</Button>\n * </Popover.Trigger>\n * <Popover.Content>\n * <Popover.Title>Notifications</Popover.Title>\n * <Popover.Description>You are all caught up!</Popover.Description>\n * </Popover.Content>\n * </Popover>\n * ```\n *\n * @see https://base-ui.com/react/components/popover\n */\nexport const Popover = Object.assign(PopoverRoot, {\n Trigger: PopoverTrigger,\n Content: PopoverContent,\n Title: PopoverTitle,\n Description: PopoverDescription,\n Close: PopoverClose,\n});\n\n// Export sub-components for direct access and type inference\nexport {\n PopoverRoot,\n PopoverTrigger,\n PopoverContent,\n PopoverTitle,\n PopoverDescription,\n PopoverClose,\n};\n"],"names":["KUMO_POPOVER_VARIANTS","KUMO_POPOVER_DEFAULT_VARIANTS","PopoverRoot","children","props","PopoverBase.Root","PopoverTrigger","className","asChild","jsx","PopoverBase.Trigger","PopoverContent","side","align","sideOffset","alignOffset","PopoverBase.Portal","PopoverBase.Positioner","jsxs","PopoverBase.Popup","cn","PopoverBase.Arrow","ArrowSvg","PopoverTitle","PopoverBase.Title","PopoverDescription","PopoverBase.Description","PopoverClose","PopoverBase.Close","Popover"],"mappings":";;;;AAIO,MAAMA,IAAwB;AAAA,EACnC,MAAM;AAAA,IACJ,KAAK;AAAA,MACH,SAAS;AAAA,MACT,aAAa;AAAA,IAAA;AAAA,IAEf,QAAQ;AAAA,MACN,SAAS;AAAA,MACT,aAAa;AAAA,IAAA;AAAA,IAEf,MAAM;AAAA,MACJ,SAAS;AAAA,MACT,aAAa;AAAA,IAAA;AAAA,IAEf,OAAO;AAAA,MACL,SAAS;AAAA,MACT,aAAa;AAAA,IAAA;AAAA,EACf;AAEJ,GAEaC,IAAgC;AAAA,EAC3C,MAAM;AACR;AAiBA,SAASC,EAAY,EAAE,UAAAC,GAAU,GAAGC,KAA2B;AAC7D,2BAAQC,GAAA,EAAkB,GAAGD,GAAQ,UAAAD,EAAA,CAAS;AAChD;AAEAD,EAAY,cAAc;AAe1B,SAASI,EAAe;AAAA,EACtB,UAAAH;AAAA,EACA,WAAAI;AAAA,EACA,SAAAC;AAAA,EACA,GAAGJ;AACL,GAAwB;AACtB,SACE,gBAAAK;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,WAAAH;AAAA,MACA,QACEC,IAAWL,IAAiD;AAAA,MAE7D,GAAGC;AAAA,MAEH,cAAU,SAAYD;AAAA,IAAA;AAAA,EAAA;AAG7B;AAEAG,EAAe,cAAc;AAsB7B,SAASK,EAAe;AAAA,EACtB,UAAAR;AAAA,EACA,MAAAS,IAAOX,EAA8B;AAAA,EACrC,OAAAY,IAAQ;AAAA,EACR,YAAAC,IAAa;AAAA,EACb,aAAAC,IAAc;AAAA,EACd,WAAAR;AACF,GAAwB;AACtB,SACE,gBAAAE,EAACO,GAAA,EACC,UAAA,gBAAAP;AAAA,IAACQ;AAAAA,IAAA;AAAA,MACC,OAAAJ;AAAA,MACA,aAAAE;AAAA,MACA,MAAAH;AAAA,MACA,YAAAE;AAAA,MAEA,U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oC;AACpD,SACE,gBAAAc,EAAC,OAAA,EAAI,OAAM,MAAK,QAAO,MAAK,SAAQ,aAAY,MAAK,QAAQ,GAAGd,GAC9D,UAAA;AAAA,IAAA,gBAAAK;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,GAAE;AAAA,QACF,WAAU;AAAA,MAAA;AAAA,IAAA;AAAA,IAEZ,gBAAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,GAAE;AAAA,QACF,WAAU;AAAA,MAAA;AAAA,IAAA;AAAA,IAEZ,gBAAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,GAAE;AAAA,QACF,WAAU;AAAA,MAAA;AAAA,IAAA;AAAA,EACZ,GACF;AAEJ;AAwBO,MAAMoB,IAAU,OAAO,OAAO3B,GAAa;AAAA,EAChD,SAASI;AAAA,EACT,SAASK;AAAA,EACT,OAAOY;AAAA,EACP,aAAaE;AAAA,EACb,OAAOE;AACT,CAAC;"}
@@ -0,0 +1,46 @@
1
+ export declare const KUMO_DELETE_RESOURCE_VARIANTS: {
2
+ readonly size: {
3
+ readonly sm: {
4
+ readonly classes: "";
5
+ readonly description: "Small dialog for simple delete confirmations";
6
+ };
7
+ readonly base: {
8
+ readonly classes: "";
9
+ readonly description: "Default delete confirmation dialog size";
10
+ };
11
+ };
12
+ };
13
+ export declare const KUMO_DELETE_RESOURCE_DEFAULT_VARIANTS: {
14
+ readonly size: "base";
15
+ };
16
+ export type KumoDeleteResourceSize = keyof typeof KUMO_DELETE_RESOURCE_VARIANTS.size;
17
+ export interface KumoDeleteResourceVariantsProps {
18
+ size?: KumoDeleteResourceSize;
19
+ }
20
+ export interface DeleteResourceProps extends KumoDeleteResourceVariantsProps {
21
+ /** Whether the dialog is open */
22
+ open: boolean;
23
+ /** Callback when open state changes */
24
+ onOpenChange: (open: boolean) => void;
25
+ /** The type of resource being deleted (e.g., "Zone", "Worker", "KV Namespace") */
26
+ resourceType: string;
27
+ /** The name of the specific resource being deleted */
28
+ resourceName: string;
29
+ /** Callback when delete is confirmed */
30
+ onDelete: () => void | Promise<void>;
31
+ /** Whether the delete action is in progress */
32
+ isDeleting?: boolean;
33
+ /** Whether the confirmation input should be case-sensitive (default: true) */
34
+ caseSensitive?: boolean;
35
+ /** Custom delete button text (defaults to "Delete {resourceType}") */
36
+ deleteButtonText?: string;
37
+ /** Additional className for the dialog */
38
+ className?: string;
39
+ /** Error message to display if the delete action fails */
40
+ errorMessage?: string;
41
+ }
42
+ export declare function DeleteResource({ open, onOpenChange, resourceType, resourceName, onDelete, isDeleting, caseSensitive, deleteButtonText, size, errorMessage, className, }: DeleteResourceProps): import("react/jsx-runtime").JSX.Element;
43
+ export declare namespace DeleteResource {
44
+ var displayName: string;
45
+ }
46
+ //# sourceMappingURL=delete-resource.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-resource.d.ts","sourceRoot":"","sources":["../../../../src/blocks/delete-resource/delete-resource.tsx"],"names":[],"mappings":"AAkBA,eAAO,MAAM,6BAA6B;;;;;;;;;;;CAWhC,CAAC;AAEX,eAAO,MAAM,qCAAqC;;CAExC,CAAC;AAEX,MAAM,MAAM,sBAAsB,GAChC,MAAM,OAAO,6BAA6B,CAAC,IAAI,CAAC;AAElD,MAAM,WAAW,+BAA+B;IAC9C,IAAI,CAAC,EAAE,sBAAsB,CAAC;CAC/B;AAED,MAAM,WAAW,mBAAoB,SAAQ,+BAA+B;IAC1E,iCAAiC;IACjC,IAAI,EAAE,OAAO,CAAC;IACd,uCAAuC;IACvC,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,kFAAkF;IAClF,YAAY,EAAE,MAAM,CAAC;IACrB,sDAAsD;IACtD,YAAY,EAAE,MAAM,CAAC;IACrB,wCAAwC;IACxC,QAAQ,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACrC,+CAA+C;IAC/C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,8EAA8E;IAC9E,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,sEAAsE;IACtE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0DAA0D;IAC1D,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,wBAAgB,cAAc,CAAC,EAC7B,IAAI,EACJ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,QAAQ,EACR,UAAkB,EAClB,aAAoB,EACpB,gBAAgB,EAChB,IAAiD,EACjD,YAAY,EACZ,SAAS,GACV,EAAE,mBAAmB,2CAgIrB;yBA5Ie,cAAc"}
@@ -0,0 +1,2 @@
1
+ export { DeleteResource, KUMO_DELETE_RESOURCE_VARIANTS, KUMO_DELETE_RESOURCE_DEFAULT_VARIANTS, type DeleteResourceProps, type KumoDeleteResourceSize, type KumoDeleteResourceVariantsProps, } from './delete-resource';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/blocks/delete-resource/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,6BAA6B,EAC7B,qCAAqC,EACrC,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,+BAA+B,GACrC,MAAM,mBAAmB,CAAC"}
@@ -3,7 +3,7 @@ import { Dialog as DialogBase } from '@base-ui/react/dialog';
3
3
  export declare const KUMO_DIALOG_VARIANTS: {
4
4
  readonly size: {
5
5
  readonly base: {
6
- readonly classes: "min-w-96";
6
+ readonly classes: "sm:min-w-96";
7
7
  readonly description: "Default dialog width";
8
8
  };
9
9
  readonly sm: {
@@ -13,6 +13,7 @@ export { Field, type FieldProps, type FieldErrorMatch, fieldVariants, KUMO_FIELD
13
13
  export { Label, type LabelProps, labelVariants, labelContentVariants, KUMO_LABEL_VARIANTS, KUMO_LABEL_DEFAULT_VARIANTS, } from './components/label';
14
14
  export { Input, inputVariants, type InputProps, InputArea, type InputAreaProps, InputGroup, } from './components/input';
15
15
  export { LayerCard } from './components/layer-card';
16
+ export { DeleteResource, KUMO_DELETE_RESOURCE_VARIANTS, KUMO_DELETE_RESOURCE_DEFAULT_VARIANTS, type DeleteResourceProps, } from './blocks/delete-resource';
16
17
  export { Loader, SkeletonLine } from './components/loader';
17
18
  export { MenuBar, useMenuNavigation } from './components/menubar';
18
19
  export { Meter } from './components/meter';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,EAAE,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EACL,MAAM,EACN,aAAa,EACb,UAAU,EACV,cAAc,EACd,KAAK,WAAW,EAChB,KAAK,eAAe,GACrB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EACL,MAAM,EACN,UAAU,EACV,aAAa,EACb,WAAW,EACX,iBAAiB,EACjB,WAAW,GACZ,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EACL,KAAK,EACL,KAAK,UAAU,EACf,KAAK,eAAe,EACpB,aAAa,EACb,mBAAmB,EACnB,2BAA2B,GAC5B,MAAM,oBAAoB,CAAC;AAC5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