@cloudflare/kumo 1.16.0 → 1.18.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/CHANGELOG.md +163 -0
- package/ai/USAGE.md +38 -30
- package/ai/component-registry.json +237 -93
- package/ai/component-registry.md +421 -45
- package/ai/schemas.ts +15 -5
- package/dist/.build-complete +1 -1
- package/dist/ai/schemas.d.ts +105 -49
- package/dist/ai/schemas.d.ts.map +1 -1
- package/dist/ai/schemas.js +187 -174
- package/dist/ai/schemas.js.map +1 -1
- package/dist/chunks/{Legend-bov5dqf08wemc2qj.js → Legend-o0ntojbaplmszwk0.js} +4 -2
- package/dist/chunks/Legend-o0ntojbaplmszwk0.js.map +1 -0
- package/dist/chunks/badge-dan90i0rzy4pwa1j.js +102 -0
- package/dist/chunks/badge-dan90i0rzy4pwa1j.js.map +1 -0
- package/dist/chunks/banner-eiwcnk7ts21s3bnb.js +79 -0
- package/dist/chunks/banner-eiwcnk7ts21s3bnb.js.map +1 -0
- package/dist/chunks/{breadcrumbs-m79gm4gjwbfajpna.js → breadcrumbs-k39s28qx05vbxxth.js} +3 -3
- package/dist/chunks/{breadcrumbs-m79gm4gjwbfajpna.js.map → breadcrumbs-k39s28qx05vbxxth.js.map} +1 -1
- package/dist/chunks/{button-j0hi0afn33w9lxgi.js → button-cdxnqcgzwko8ooha.js} +55 -53
- package/dist/chunks/button-cdxnqcgzwko8ooha.js.map +1 -0
- package/dist/chunks/{checkbox-lawmt1894wr6rpgi.js → checkbox-kt1uojk2f9e0d0h1.js} +46 -55
- package/dist/chunks/checkbox-kt1uojk2f9e0d0h1.js.map +1 -0
- package/dist/chunks/{clipboard-text-ohx8kkpxisz382rj.js → clipboard-text-vcbvmtne4zjk4b18.js} +55 -54
- package/dist/chunks/clipboard-text-vcbvmtne4zjk4b18.js.map +1 -0
- package/dist/chunks/{code-liq1g6f5lhee305d.js → code-cz0w1y5z4h29a9eg.js} +18 -18
- package/dist/chunks/code-cz0w1y5z4h29a9eg.js.map +1 -0
- package/dist/chunks/{combobox-ft0u7rfaxawk0r0c.js → combobox-he2hd9e2ruknq5mp.js} +97 -82
- package/dist/chunks/combobox-he2hd9e2ruknq5mp.js.map +1 -0
- package/dist/chunks/{command-palette-b31nq4wk7o7gx4sa.js → command-palette-jc1w07jwakxvj23a.js} +159 -155
- package/dist/chunks/command-palette-jc1w07jwakxvj23a.js.map +1 -0
- package/dist/chunks/{dialog-l5tmwxrzp9g83jmw.js → dialog-oqh8l3l3zutpibxx.js} +22 -20
- package/dist/chunks/dialog-oqh8l3l3zutpibxx.js.map +1 -0
- package/dist/chunks/{dropdown-icy3xatdwhzr4une.js → dropdown-ncwhcd912vmone8k.js} +96 -90
- package/dist/chunks/dropdown-ncwhcd912vmone8k.js.map +1 -0
- package/dist/chunks/{empty-hrwtammqp0b2nvtf.js → empty-cj898km1r8xwuw44.js} +2 -2
- package/dist/chunks/{empty-hrwtammqp0b2nvtf.js.map → empty-cj898km1r8xwuw44.js.map} +1 -1
- package/dist/chunks/{field-csje72m7j9403fj5.js → field-krp6z6vfbkrvufz2.js} +3 -3
- package/dist/chunks/{field-csje72m7j9403fj5.js.map → field-krp6z6vfbkrvufz2.js.map} +1 -1
- package/dist/chunks/input-area-no30c09udyjxshu5.js +78 -0
- package/dist/chunks/input-area-no30c09udyjxshu5.js.map +1 -0
- package/dist/chunks/{input-group-cjsy8kh4vf9312xl.js → input-group-lxdd09p60cf27pe1.js} +26 -26
- package/dist/chunks/input-group-lxdd09p60cf27pe1.js.map +1 -0
- package/dist/chunks/{input-c8jmidy7gdqfiky1.js → input-h48k3uagzrgb98au.js} +40 -36
- package/dist/chunks/input-h48k3uagzrgb98au.js.map +1 -0
- package/dist/chunks/{label-i46xnnzdh9bsxk6a.js → label-latndvb1ngem7we8.js} +3 -3
- package/dist/chunks/{label-i46xnnzdh9bsxk6a.js.map → label-latndvb1ngem7we8.js.map} +1 -1
- package/dist/chunks/{layer-card-mu2w82x6ko1nhhtr.js → layer-card-l5yjvrxry1dhte57.js} +8 -8
- package/dist/chunks/{layer-card-mu2w82x6ko1nhhtr.js.map → layer-card-l5yjvrxry1dhte57.js.map} +1 -1
- package/dist/chunks/{link-o7yfj4kwgl19fklp.js → link-hn5ejal7nhh0o0b4.js} +2 -2
- package/dist/chunks/{link-o7yfj4kwgl19fklp.js.map → link-hn5ejal7nhh0o0b4.js.map} +1 -1
- package/dist/chunks/{loader-m5wfmqwgucrr4i5v.js → loader-hr2w7cpqeev3p3vl.js} +9 -6
- package/dist/chunks/loader-hr2w7cpqeev3p3vl.js.map +1 -0
- package/dist/chunks/{menubar-g1wqqjuyyfvsim83.js → menubar-f1pilzooe5mue7c4.js} +20 -20
- package/dist/chunks/menubar-f1pilzooe5mue7c4.js.map +1 -0
- package/dist/chunks/{meter-cqkrg5axjenbsuue.js → meter-gfa1hz9fhjnvx784.js} +2 -2
- package/dist/chunks/{meter-cqkrg5axjenbsuue.js.map → meter-gfa1hz9fhjnvx784.js.map} +1 -1
- package/dist/chunks/pagination-cu5lm6p5dxuycta4.js +243 -0
- package/dist/chunks/pagination-cu5lm6p5dxuycta4.js.map +1 -0
- package/dist/chunks/{popover-jurf834u2uywluux.js → popover-h300w4vit0s2ayej.js} +31 -28
- package/dist/chunks/popover-h300w4vit0s2ayej.js.map +1 -0
- package/dist/chunks/portal-provider-hwmkdmkpvct0cb76.js +18 -0
- package/dist/chunks/portal-provider-hwmkdmkpvct0cb76.js.map +1 -0
- package/dist/chunks/{radio-l9dzm6sohcvvrsdc.js → radio-jouttv89lbvhs55r.js} +47 -50
- package/dist/chunks/radio-jouttv89lbvhs55r.js.map +1 -0
- package/dist/chunks/select-kva5ru5f673kah1m.js +179 -0
- package/dist/chunks/select-kva5ru5f673kah1m.js.map +1 -0
- package/dist/chunks/{sensitive-input-lvtccf3iqc06lj7b.js → sensitive-input-hd4tpqkzifad1yca.js} +90 -84
- package/dist/chunks/sensitive-input-hd4tpqkzifad1yca.js.map +1 -0
- package/dist/chunks/{sidebar-l6rk9o5qf8k5vth1.js → sidebar-hljy3ssm8itc0ucx.js} +5 -5
- package/dist/chunks/sidebar-hljy3ssm8itc0ucx.js.map +1 -0
- package/dist/chunks/skeleton-line-epxenksfesr2fkcv.js +33 -0
- package/dist/chunks/skeleton-line-epxenksfesr2fkcv.js.map +1 -0
- package/dist/chunks/surface-cilvbyhmyujz1bee.js +36 -0
- package/dist/chunks/surface-cilvbyhmyujz1bee.js.map +1 -0
- package/dist/chunks/switch-ihaydbzem62bey4p.js +243 -0
- package/dist/chunks/switch-ihaydbzem62bey4p.js.map +1 -0
- package/dist/chunks/table-inweecadl3her7pd.js +183 -0
- package/dist/chunks/table-inweecadl3her7pd.js.map +1 -0
- package/dist/chunks/tabs-e7eh7l3mpk3xgmwq.js +92 -0
- package/dist/chunks/{tabs-n0t7iro7wr0pzgk2.js.map → tabs-e7eh7l3mpk3xgmwq.js.map} +1 -1
- package/dist/chunks/{text-gzt92mlji1lug13d.js → text-nmyi1rkwdj37f30f.js} +24 -22
- package/dist/chunks/text-nmyi1rkwdj37f30f.js.map +1 -0
- package/dist/chunks/{toast-r9ajsces7xp8l85w.js → toast-bpz6iaq54u9jmuu8.js} +62 -60
- package/dist/chunks/toast-bpz6iaq54u9jmuu8.js.map +1 -0
- package/dist/chunks/toml-nczb2z9n0o23o3ci.js +8 -0
- package/dist/chunks/toml-nczb2z9n0o23o3ci.js.map +1 -0
- package/dist/chunks/{tooltip-hnc71tg4gz2gpcvc.js → tooltip-belkznz8t8333h5f.js} +28 -21
- package/dist/chunks/tooltip-belkznz8t8333h5f.js.map +1 -0
- package/dist/chunks/{vendor-base-ui-ccr5l0ynrievzzv3.js → vendor-base-ui-k7bzesq81ie36nya.js} +55 -51
- package/dist/chunks/{vendor-base-ui-ccr5l0ynrievzzv3.js.map → vendor-base-ui-k7bzesq81ie36nya.js.map} +1 -1
- package/dist/code/server.js +10 -9
- package/dist/code/server.js.map +1 -1
- package/dist/code.js +3 -2
- package/dist/code.js.map +1 -1
- package/dist/components/badge.js +1 -1
- package/dist/components/banner.js +1 -1
- package/dist/components/breadcrumbs.js +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/chart.js +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/clipboard-text.js +1 -1
- package/dist/components/code.js +1 -1
- package/dist/components/combobox.js +1 -1
- package/dist/components/command-palette.js +1 -1
- package/dist/components/dialog.js +1 -1
- package/dist/components/dropdown.js +1 -1
- package/dist/components/empty.js +1 -1
- package/dist/components/field.js +1 -1
- package/dist/components/flow.js +5 -4
- package/dist/components/flow.js.map +1 -1
- package/dist/components/input.js +3 -3
- package/dist/components/label.js +1 -1
- package/dist/components/layer-card.js +1 -1
- package/dist/components/link.js +1 -1
- package/dist/components/loader.js +2 -2
- package/dist/components/menubar.js +1 -1
- package/dist/components/meter.js +1 -1
- package/dist/components/pagination.js +1 -1
- package/dist/components/popover.js +1 -1
- package/dist/components/radio.js +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/sensitive-input.js +1 -1
- package/dist/components/sidebar.js +1 -1
- package/dist/components/surface.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/table.js +1 -1
- package/dist/components/tabs.js +1 -1
- package/dist/components/text.js +1 -1
- package/dist/components/toast.js +2 -2
- package/dist/components/tooltip.js +1 -1
- package/dist/index.js +76 -74
- package/dist/index.js.map +1 -1
- package/dist/primitives/accordion.js +1 -1
- package/dist/primitives/alert-dialog.js +1 -1
- package/dist/primitives/autocomplete.js +1 -1
- package/dist/primitives/avatar.js +1 -1
- package/dist/primitives/button.js +1 -1
- package/dist/primitives/checkbox-group.js +1 -1
- package/dist/primitives/checkbox.js +1 -1
- package/dist/primitives/collapsible.js +1 -1
- package/dist/primitives/combobox.js +1 -1
- package/dist/primitives/context-menu.js +1 -1
- package/dist/primitives/csp-provider.js +1 -1
- package/dist/primitives/dialog.js +1 -1
- package/dist/primitives/direction-provider.js +1 -1
- package/dist/primitives/drawer.js +1 -1
- package/dist/primitives/field.js +1 -1
- package/dist/primitives/fieldset.js +1 -1
- package/dist/primitives/form.js +1 -1
- package/dist/primitives/input.js +1 -1
- package/dist/primitives/menu.js +1 -1
- package/dist/primitives/menubar.js +1 -1
- package/dist/primitives/meter.js +1 -1
- package/dist/primitives/navigation-menu.js +1 -1
- package/dist/primitives/number-field.js +1 -1
- package/dist/primitives/popover.js +1 -1
- package/dist/primitives/preview-card.js +1 -1
- package/dist/primitives/progress.js +1 -1
- package/dist/primitives/radio-group.js +1 -1
- package/dist/primitives/radio.js +1 -1
- package/dist/primitives/scroll-area.js +1 -1
- package/dist/primitives/select.js +1 -1
- package/dist/primitives/separator.js +1 -1
- package/dist/primitives/slider.js +1 -1
- package/dist/primitives/switch.js +1 -1
- package/dist/primitives/tabs.js +1 -1
- package/dist/primitives/toast.js +1 -1
- package/dist/primitives/toggle-group.js +1 -1
- package/dist/primitives/toggle.js +1 -1
- package/dist/primitives/toolbar.js +1 -1
- package/dist/primitives/tooltip.js +1 -1
- package/dist/primitives.js +1 -1
- package/dist/scripts/theme-generator/config.d.ts.map +1 -1
- package/dist/scripts/theme-generator/config.js +226 -43
- package/dist/scripts/theme-generator/config.js.map +1 -1
- package/dist/src/code/provider.d.ts.map +1 -1
- package/dist/src/code/server.d.ts.map +1 -1
- package/dist/src/code/types.d.ts +1 -1
- package/dist/src/code/types.d.ts.map +1 -1
- package/dist/src/components/badge/badge.d.ts +76 -21
- package/dist/src/components/badge/badge.d.ts.map +1 -1
- package/dist/src/components/banner/banner.d.ts +5 -3
- package/dist/src/components/banner/banner.d.ts.map +1 -1
- package/dist/src/components/button/button.d.ts +4 -2
- package/dist/src/components/button/button.d.ts.map +1 -1
- package/dist/src/components/chart/TimeseriesChart.d.ts.map +1 -1
- package/dist/src/components/checkbox/checkbox.d.ts +1 -1
- package/dist/src/components/checkbox/checkbox.d.ts.map +1 -1
- package/dist/src/components/clipboard-text/clipboard-text.d.ts +2 -0
- package/dist/src/components/clipboard-text/clipboard-text.d.ts.map +1 -1
- package/dist/src/components/code/code.d.ts.map +1 -1
- package/dist/src/components/combobox/combobox.d.ts +8 -1
- package/dist/src/components/combobox/combobox.d.ts.map +1 -1
- package/dist/src/components/command-palette/command-palette.d.ts +9 -2
- package/dist/src/components/command-palette/command-palette.d.ts.map +1 -1
- package/dist/src/components/command-palette/types.d.ts +7 -0
- package/dist/src/components/command-palette/types.d.ts.map +1 -1
- package/dist/src/components/dialog/dialog.d.ts +8 -1
- package/dist/src/components/dialog/dialog.d.ts.map +1 -1
- package/dist/src/components/dropdown/dropdown.d.ts +17 -2
- package/dist/src/components/dropdown/dropdown.d.ts.map +1 -1
- package/dist/src/components/flow/diagram.d.ts.map +1 -1
- package/dist/src/components/input/input-area.d.ts.map +1 -1
- package/dist/src/components/input/input.d.ts +1 -2
- package/dist/src/components/input/input.d.ts.map +1 -1
- package/dist/src/components/loader/loader.d.ts +7 -1
- package/dist/src/components/loader/loader.d.ts.map +1 -1
- package/dist/src/components/loader/skeleton-line.d.ts +2 -1
- package/dist/src/components/loader/skeleton-line.d.ts.map +1 -1
- package/dist/src/components/pagination/pagination.d.ts +11 -1
- package/dist/src/components/pagination/pagination.d.ts.map +1 -1
- package/dist/src/components/popover/popover.d.ts +8 -1
- package/dist/src/components/popover/popover.d.ts.map +1 -1
- package/dist/src/components/radio/radio.d.ts +1 -1
- package/dist/src/components/radio/radio.d.ts.map +1 -1
- package/dist/src/components/select/select.d.ts +74 -3
- package/dist/src/components/select/select.d.ts.map +1 -1
- package/dist/src/components/sensitive-input/sensitive-input.d.ts +1 -1
- package/dist/src/components/sensitive-input/sensitive-input.d.ts.map +1 -1
- package/dist/src/components/surface/surface.d.ts +23 -23
- package/dist/src/components/surface/surface.d.ts.map +1 -1
- package/dist/src/components/switch/switch.d.ts.map +1 -1
- package/dist/src/components/table/table.d.ts +34 -2
- package/dist/src/components/table/table.d.ts.map +1 -1
- package/dist/src/components/tabs/tabs.d.ts.map +1 -1
- package/dist/src/components/text/text.d.ts +5 -0
- package/dist/src/components/text/text.d.ts.map +1 -1
- package/dist/src/components/toast/toast.d.ts +16 -9
- package/dist/src/components/toast/toast.d.ts.map +1 -1
- package/dist/src/components/tooltip/tooltip.d.ts +21 -6
- package/dist/src/components/tooltip/tooltip.d.ts.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/utils/index.d.ts +1 -0
- package/dist/src/utils/index.d.ts.map +1 -1
- package/dist/src/utils/portal-provider.d.ts +56 -0
- package/dist/src/utils/portal-provider.d.ts.map +1 -0
- package/dist/styles/kumo-binding.css +52 -46
- package/dist/styles/kumo-standalone.css +1 -1
- package/dist/styles/theme-fedramp.css +6 -6
- package/dist/styles/theme-kumo.css +183 -64
- package/dist/utils.js +8 -6
- package/dist/utils.js.map +1 -1
- package/package.json +2 -2
- package/scripts/component-registry/index.test.ts +4 -4
- package/scripts/component-registry/metadata.ts +3 -3
- package/scripts/theme-generator/config.ts +236 -43
- package/dist/chunks/Legend-bov5dqf08wemc2qj.js.map +0 -1
- package/dist/chunks/badge-mrshucy2530o70cq.js +0 -56
- package/dist/chunks/badge-mrshucy2530o70cq.js.map +0 -1
- package/dist/chunks/banner-vzdjbqsb6em7tmdk.js +0 -75
- package/dist/chunks/banner-vzdjbqsb6em7tmdk.js.map +0 -1
- package/dist/chunks/button-j0hi0afn33w9lxgi.js.map +0 -1
- package/dist/chunks/checkbox-lawmt1894wr6rpgi.js.map +0 -1
- package/dist/chunks/clipboard-text-ohx8kkpxisz382rj.js.map +0 -1
- package/dist/chunks/code-liq1g6f5lhee305d.js.map +0 -1
- package/dist/chunks/combobox-ft0u7rfaxawk0r0c.js.map +0 -1
- package/dist/chunks/command-palette-b31nq4wk7o7gx4sa.js.map +0 -1
- package/dist/chunks/dialog-l5tmwxrzp9g83jmw.js.map +0 -1
- package/dist/chunks/dropdown-icy3xatdwhzr4une.js.map +0 -1
- package/dist/chunks/input-area-jko15sbc6zeage3l.js +0 -74
- package/dist/chunks/input-area-jko15sbc6zeage3l.js.map +0 -1
- package/dist/chunks/input-c8jmidy7gdqfiky1.js.map +0 -1
- package/dist/chunks/input-group-cjsy8kh4vf9312xl.js.map +0 -1
- package/dist/chunks/loader-m5wfmqwgucrr4i5v.js.map +0 -1
- package/dist/chunks/menubar-g1wqqjuyyfvsim83.js.map +0 -1
- package/dist/chunks/pagination-e3dp8bd80s35f7sd.js +0 -224
- package/dist/chunks/pagination-e3dp8bd80s35f7sd.js.map +0 -1
- package/dist/chunks/popover-jurf834u2uywluux.js.map +0 -1
- package/dist/chunks/radio-l9dzm6sohcvvrsdc.js.map +0 -1
- package/dist/chunks/select-hnt87e3cfos48qql.js +0 -130
- package/dist/chunks/select-hnt87e3cfos48qql.js.map +0 -1
- package/dist/chunks/sensitive-input-lvtccf3iqc06lj7b.js.map +0 -1
- package/dist/chunks/sidebar-l6rk9o5qf8k5vth1.js.map +0 -1
- package/dist/chunks/skeleton-line-1j5exu6vv07mmhfb.js +0 -28
- package/dist/chunks/skeleton-line-1j5exu6vv07mmhfb.js.map +0 -1
- package/dist/chunks/surface-dhshylwccuaz91d1.js +0 -21
- package/dist/chunks/surface-dhshylwccuaz91d1.js.map +0 -1
- package/dist/chunks/switch-fukrbip86khvqjn7.js +0 -241
- package/dist/chunks/switch-fukrbip86khvqjn7.js.map +0 -1
- package/dist/chunks/table-orfgzwvxh8yr90dk.js +0 -155
- package/dist/chunks/table-orfgzwvxh8yr90dk.js.map +0 -1
- package/dist/chunks/tabs-n0t7iro7wr0pzgk2.js +0 -86
- package/dist/chunks/text-gzt92mlji1lug13d.js.map +0 -1
- package/dist/chunks/toast-r9ajsces7xp8l85w.js.map +0 -1
- package/dist/chunks/tooltip-hnc71tg4gz2gpcvc.js.map +0 -1
package/dist/components/input.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { I as t, i as e } from "../chunks/input-
|
|
3
|
-
import { I as o, T as s } from "../chunks/input-area-
|
|
4
|
-
import { I as u } from "../chunks/input-group-
|
|
2
|
+
import { I as t, i as e } from "../chunks/input-h48k3uagzrgb98au.js";
|
|
3
|
+
import { I as o, T as s } from "../chunks/input-area-no30c09udyjxshu5.js";
|
|
4
|
+
import { I as u } from "../chunks/input-group-lxdd09p60cf27pe1.js";
|
|
5
5
|
export {
|
|
6
6
|
t as Input,
|
|
7
7
|
o as InputArea,
|
package/dist/components/label.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { b as e, K as l, L as A, a as L, l as t } from "../chunks/label-
|
|
2
|
+
import { b as e, K as l, L as A, a as L, l as t } from "../chunks/label-latndvb1ngem7we8.js";
|
|
3
3
|
export {
|
|
4
4
|
e as KUMO_LABEL_DEFAULT_VARIANTS,
|
|
5
5
|
l as KUMO_LABEL_VARIANTS,
|
package/dist/components/link.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { L as r } from "../chunks/loader-
|
|
3
|
-
import { S as a } from "../chunks/skeleton-line-
|
|
2
|
+
import { L as r } from "../chunks/loader-hr2w7cpqeev3p3vl.js";
|
|
3
|
+
import { S as a } from "../chunks/skeleton-line-epxenksfesr2fkcv.js";
|
|
4
4
|
export {
|
|
5
5
|
r as Loader,
|
|
6
6
|
a as SkeletonLine
|
package/dist/components/meter.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { g as r, K as s, P, f as a, c as p, e as t, a as v, d as O, b as i } from "../chunks/popover-
|
|
2
|
+
import { g as r, K as s, P, f as a, c as p, e as t, a as v, d as O, b as i } from "../chunks/popover-h300w4vit0s2ayej.js";
|
|
3
3
|
export {
|
|
4
4
|
r as KUMO_POPOVER_DEFAULT_VARIANTS,
|
|
5
5
|
s as KUMO_POPOVER_VARIANTS,
|
package/dist/components/radio.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { b as A, K as R, R as o, a as r, r as i } from "../chunks/radio-
|
|
2
|
+
import { b as A, K as R, R as o, a as r, r as i } from "../chunks/radio-jouttv89lbvhs55r.js";
|
|
3
3
|
export {
|
|
4
4
|
A as KUMO_RADIO_DEFAULT_VARIANTS,
|
|
5
5
|
R as KUMO_RADIO_VARIANTS,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { a as T, K as _, S as N } from "../chunks/sensitive-input-
|
|
2
|
+
import { a as T, K as _, S as N } from "../chunks/sensitive-input-hd4tpqkzifad1yca.js";
|
|
3
3
|
export {
|
|
4
4
|
T as KUMO_SENSITIVE_INPUT_DEFAULT_VARIANTS,
|
|
5
5
|
_ as KUMO_SENSITIVE_INPUT_VARIANTS,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { A as r, B as i, K as S, S as s, w as b, y as d, x as n, d as o, e as u, f as t, h as l, g as M, c as p, r as A, i as I, l as R, m as B, k as C, v as _, j as g, n as T, p as m, o as D, a as E, t as G, u as K, b as U, q as c, s as v, z as L } from "../chunks/sidebar-
|
|
2
|
+
import { A as r, B as i, K as S, S as s, w as b, y as d, x as n, d as o, e as u, f as t, h as l, g as M, c as p, r as A, i as I, l as R, m as B, k as C, v as _, j as g, n as T, p as m, o as D, a as E, t as G, u as K, b as U, q as c, s as v, z as L } from "../chunks/sidebar-hljy3ssm8itc0ucx.js";
|
|
3
3
|
export {
|
|
4
4
|
r as KUMO_SIDEBAR_DEFAULT_VARIANTS,
|
|
5
5
|
i as KUMO_SIDEBAR_STYLING,
|
package/dist/components/table.js
CHANGED
package/dist/components/tabs.js
CHANGED
package/dist/components/text.js
CHANGED
package/dist/components/toast.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { a as s, T as e, c as r, u as t } from "../chunks/toast-
|
|
3
|
-
import { i as u } from "../chunks/vendor-base-ui-
|
|
2
|
+
import { a as s, T as e, c as r, u as t } from "../chunks/toast-bpz6iaq54u9jmuu8.js";
|
|
3
|
+
import { i as u } from "../chunks/vendor-base-ui-k7bzesq81ie36nya.js";
|
|
4
4
|
export {
|
|
5
5
|
u as Toast,
|
|
6
6
|
s as ToastProvider,
|
package/dist/index.js
CHANGED
|
@@ -1,58 +1,59 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { B as Y } from "./chunks/badge-
|
|
3
|
-
import { B as g } from "./chunks/banner-
|
|
4
|
-
import { a as Q } from "./chunks/banner-
|
|
5
|
-
import { B as
|
|
6
|
-
import { L as aa, R as ea, b as oa } from "./chunks/button-
|
|
2
|
+
import { B as Y } from "./chunks/badge-dan90i0rzy4pwa1j.js";
|
|
3
|
+
import { B as g } from "./chunks/banner-eiwcnk7ts21s3bnb.js";
|
|
4
|
+
import { a as Q } from "./chunks/banner-eiwcnk7ts21s3bnb.js";
|
|
5
|
+
import { B as n } from "./chunks/button-cdxnqcgzwko8ooha.js";
|
|
6
|
+
import { L as aa, R as ea, b as oa } from "./chunks/button-cdxnqcgzwko8ooha.js";
|
|
7
7
|
import { D as sa } from "./chunks/date-range-picker-j318zxjyqz4o3dak.js";
|
|
8
|
-
import { C as ia } from "./chunks/checkbox-
|
|
9
|
-
import { C as
|
|
10
|
-
import { C as
|
|
11
|
-
import { C as ca } from "./chunks/combobox-
|
|
12
|
-
import { a as h, D as M, c as U, e as S } from "./chunks/dialog-
|
|
13
|
-
import { d as ua, b as xa } from "./chunks/dialog-
|
|
14
|
-
import { D as Ta } from "./chunks/dropdown-
|
|
8
|
+
import { C as ia } from "./chunks/checkbox-kt1uojk2f9e0d0h1.js";
|
|
9
|
+
import { C as na } from "./chunks/clipboard-text-vcbvmtne4zjk4b18.js";
|
|
10
|
+
import { C as ma, a as pa } from "./chunks/code-cz0w1y5z4h29a9eg.js";
|
|
11
|
+
import { C as ca } from "./chunks/combobox-he2hd9e2ruknq5mp.js";
|
|
12
|
+
import { a as h, D as M, c as U, e as S } from "./chunks/dialog-oqh8l3l3zutpibxx.js";
|
|
13
|
+
import { d as ua, b as xa } from "./chunks/dialog-oqh8l3l3zutpibxx.js";
|
|
14
|
+
import { D as Ta } from "./chunks/dropdown-ncwhcd912vmone8k.js";
|
|
15
15
|
import { C as _a } from "./chunks/collapsible-jhzee3ks51d3xowb.js";
|
|
16
|
-
import { F as Ia, a as La, K as Ra, f as Ea } from "./chunks/field-
|
|
17
|
-
import { b as ha, K as Ma, L as Ua, a as Da, l as Na } from "./chunks/label-
|
|
18
|
-
import { I as D } from "./chunks/input-
|
|
19
|
-
import { i as Ka } from "./chunks/input-
|
|
20
|
-
import { I as va, T as ka } from "./chunks/input-area-
|
|
21
|
-
import { I as
|
|
22
|
-
import { L as Fa } from "./chunks/layer-card-
|
|
23
|
-
import { L as Ga } from "./chunks/loader-
|
|
24
|
-
import { S as ja } from "./chunks/skeleton-line-
|
|
25
|
-
import { M as qa, u as Ha } from "./chunks/menubar-
|
|
26
|
-
import { M as Xa } from "./chunks/meter-
|
|
27
|
-
import { P as Ja } from "./chunks/pagination-
|
|
28
|
-
import { S as Za } from "./chunks/select-
|
|
29
|
-
import { S as ee } from "./chunks/surface-
|
|
30
|
-
import { S as re } from "./chunks/switch-
|
|
31
|
-
import { T as te } from "./chunks/tabs-
|
|
32
|
-
import { T as
|
|
33
|
-
import { T as de } from "./chunks/text-
|
|
34
|
-
import { a as
|
|
35
|
-
import { T as ue, a as xe } from "./chunks/tooltip-
|
|
36
|
-
import { g as Te, K as Ae, P as _e } from "./chunks/popover-
|
|
37
|
-
import { a as Ie, K as Le, S as Re } from "./chunks/sensitive-input-
|
|
38
|
-
import { b as ge, K as he, R as Me, a as Ue, r as De } from "./chunks/radio-
|
|
39
|
-
import { C as Oe, a as Ke, K as Ve } from "./chunks/command-palette-
|
|
40
|
-
import { a as ke, K as
|
|
41
|
-
import { B as we } from "./chunks/breadcrumbs-
|
|
42
|
-
import { E as ze } from "./chunks/empty-
|
|
16
|
+
import { F as Ia, a as La, K as Ra, f as Ea } from "./chunks/field-krp6z6vfbkrvufz2.js";
|
|
17
|
+
import { b as ha, K as Ma, L as Ua, a as Da, l as Na } from "./chunks/label-latndvb1ngem7we8.js";
|
|
18
|
+
import { I as D } from "./chunks/input-h48k3uagzrgb98au.js";
|
|
19
|
+
import { i as Ka } from "./chunks/input-h48k3uagzrgb98au.js";
|
|
20
|
+
import { I as va, T as ka } from "./chunks/input-area-no30c09udyjxshu5.js";
|
|
21
|
+
import { I as Ba } from "./chunks/input-group-lxdd09p60cf27pe1.js";
|
|
22
|
+
import { L as Fa } from "./chunks/layer-card-l5yjvrxry1dhte57.js";
|
|
23
|
+
import { L as Ga } from "./chunks/loader-hr2w7cpqeev3p3vl.js";
|
|
24
|
+
import { S as ja } from "./chunks/skeleton-line-epxenksfesr2fkcv.js";
|
|
25
|
+
import { M as qa, u as Ha } from "./chunks/menubar-f1pilzooe5mue7c4.js";
|
|
26
|
+
import { M as Xa } from "./chunks/meter-gfa1hz9fhjnvx784.js";
|
|
27
|
+
import { P as Ja } from "./chunks/pagination-cu5lm6p5dxuycta4.js";
|
|
28
|
+
import { S as Za } from "./chunks/select-kva5ru5f673kah1m.js";
|
|
29
|
+
import { S as ee } from "./chunks/surface-cilvbyhmyujz1bee.js";
|
|
30
|
+
import { S as re } from "./chunks/switch-ihaydbzem62bey4p.js";
|
|
31
|
+
import { T as te } from "./chunks/tabs-e7eh7l3mpk3xgmwq.js";
|
|
32
|
+
import { T as le } from "./chunks/table-inweecadl3her7pd.js";
|
|
33
|
+
import { T as de } from "./chunks/text-nmyi1rkwdj37f30f.js";
|
|
34
|
+
import { a as pe, T as fe, u as ce } from "./chunks/toast-bpz6iaq54u9jmuu8.js";
|
|
35
|
+
import { T as ue, a as xe } from "./chunks/tooltip-belkznz8t8333h5f.js";
|
|
36
|
+
import { g as Te, K as Ae, P as _e } from "./chunks/popover-h300w4vit0s2ayej.js";
|
|
37
|
+
import { a as Ie, K as Le, S as Re } from "./chunks/sensitive-input-hd4tpqkzifad1yca.js";
|
|
38
|
+
import { b as ge, K as he, R as Me, a as Ue, r as De } from "./chunks/radio-jouttv89lbvhs55r.js";
|
|
39
|
+
import { C as Oe, a as Ke, K as Ve } from "./chunks/command-palette-jc1w07jwakxvj23a.js";
|
|
40
|
+
import { a as ke, K as Pe, L as Be, l as ye } from "./chunks/link-hn5ejal7nhh0o0b4.js";
|
|
41
|
+
import { B as we } from "./chunks/breadcrumbs-k39s28qx05vbxxth.js";
|
|
42
|
+
import { E as ze } from "./chunks/empty-cj898km1r8xwuw44.js";
|
|
43
43
|
import { G as $e, a as qe, c as He, K as We, b as Xe, g as Ye } from "./chunks/grid-m9r71jxo2b8q1972.js";
|
|
44
44
|
import { C as Qe, a as Ze, K as ao, P as eo, g as oo } from "./chunks/cloudflare-logo-bgts2jgsdh7sslw4.js";
|
|
45
45
|
import { D as so } from "./chunks/date-picker-mjocqqbggb76n8rt.js";
|
|
46
46
|
import { Flow as io } from "./components/flow.js";
|
|
47
|
-
import { C as
|
|
48
|
-
import { A as bo, B as uo, K as xo, S as So, w as To, y as Ao, x as _o, d as Co, e as Io, f as Lo, h as Ro, g as Eo, c as go, r as ho, i as Mo, l as Uo, m as Do, k as No, v as Oo, j as Ko, n as Vo, p as vo, o as ko, a as
|
|
47
|
+
import { C as no, a as mo, b as po, T as fo } from "./chunks/Legend-o0ntojbaplmszwk0.js";
|
|
48
|
+
import { A as bo, B as uo, K as xo, S as So, w as To, y as Ao, x as _o, d as Co, e as Io, f as Lo, h as Ro, g as Eo, c as go, r as ho, i as Mo, l as Uo, m as Do, k as No, v as Oo, j as Ko, n as Vo, p as vo, o as ko, a as Po, t as Bo, u as yo, b as Fo, q as wo, s as Go, z as zo } from "./chunks/sidebar-hljy3ssm8itc0ucx.js";
|
|
49
49
|
import { c as N } from "./chunks/cn-ct4n7r74mh8y0f48.js";
|
|
50
50
|
import { s as $o } from "./chunks/cn-ct4n7r74mh8y0f48.js";
|
|
51
51
|
import { L as Ho, u as Wo } from "./chunks/link-provider-mn2voeohon7cj9o4.js";
|
|
52
|
+
import { K as Yo } from "./chunks/portal-provider-hwmkdmkpvct0cb76.js";
|
|
52
53
|
import { jsx as a, jsxs as e } from "react/jsx-runtime";
|
|
53
54
|
import { useState as T, useEffect as O, useCallback as d } from "react";
|
|
54
55
|
import { XIcon as K, WarningCircleIcon as V, CheckIcon as v, CopyIcon as k } from "@phosphor-icons/react";
|
|
55
|
-
import { i as
|
|
56
|
+
import { i as Qo } from "./chunks/vendor-base-ui-k7bzesq81ie36nya.js";
|
|
56
57
|
const H = {
|
|
57
58
|
size: {
|
|
58
59
|
sm: {
|
|
@@ -64,19 +65,19 @@ const H = {
|
|
|
64
65
|
description: "Default delete confirmation dialog size"
|
|
65
66
|
}
|
|
66
67
|
}
|
|
67
|
-
},
|
|
68
|
+
}, P = {
|
|
68
69
|
size: "base"
|
|
69
70
|
};
|
|
70
|
-
function
|
|
71
|
+
function B({
|
|
71
72
|
open: t,
|
|
72
73
|
onOpenChange: A,
|
|
73
|
-
resourceType:
|
|
74
|
+
resourceType: m,
|
|
74
75
|
resourceName: o,
|
|
75
|
-
onDelete:
|
|
76
|
+
onDelete: p,
|
|
76
77
|
isDeleting: s = !1,
|
|
77
78
|
caseSensitive: f = !0,
|
|
78
79
|
deleteButtonText: _,
|
|
79
|
-
size: C =
|
|
80
|
+
size: C = P.size,
|
|
80
81
|
errorMessage: c,
|
|
81
82
|
className: I
|
|
82
83
|
}) {
|
|
@@ -87,9 +88,9 @@ function P({
|
|
|
87
88
|
const x = d(
|
|
88
89
|
(r) => f ? r : r.toLowerCase(),
|
|
89
90
|
[f]
|
|
90
|
-
),
|
|
91
|
-
!
|
|
92
|
-
}, [
|
|
91
|
+
), l = x(b) === x(o), R = d(async () => {
|
|
92
|
+
!l || s || await p();
|
|
93
|
+
}, [l, s, p]), E = d(async () => {
|
|
93
94
|
await navigator.clipboard.writeText(o), i(!0), setTimeout(() => i(!1), 1500);
|
|
94
95
|
}, [o]);
|
|
95
96
|
return /* @__PURE__ */ a(h, { open: t, onOpenChange: A, children: /* @__PURE__ */ e(M, { size: C, className: N("p-0", I), children: [
|
|
@@ -102,7 +103,7 @@ function P({
|
|
|
102
103
|
S,
|
|
103
104
|
{
|
|
104
105
|
render: (r) => /* @__PURE__ */ a(
|
|
105
|
-
|
|
106
|
+
n,
|
|
106
107
|
{
|
|
107
108
|
...r,
|
|
108
109
|
variant: "ghost",
|
|
@@ -124,7 +125,7 @@ function P({
|
|
|
124
125
|
" ",
|
|
125
126
|
/* @__PURE__ */ a("span", { className: "font-medium text-kumo-default", children: o }),
|
|
126
127
|
" ",
|
|
127
|
-
|
|
128
|
+
m.toLowerCase(),
|
|
128
129
|
"."
|
|
129
130
|
] })
|
|
130
131
|
] }),
|
|
@@ -182,43 +183,43 @@ function P({
|
|
|
182
183
|
/* @__PURE__ */ a(
|
|
183
184
|
S,
|
|
184
185
|
{
|
|
185
|
-
render: (r) => /* @__PURE__ */ a(
|
|
186
|
+
render: (r) => /* @__PURE__ */ a(n, { ...r, variant: "secondary", disabled: s, children: "Cancel" })
|
|
186
187
|
}
|
|
187
188
|
),
|
|
188
189
|
/* @__PURE__ */ a(
|
|
189
|
-
|
|
190
|
+
n,
|
|
190
191
|
{
|
|
191
192
|
variant: "destructive",
|
|
192
193
|
onClick: R,
|
|
193
|
-
disabled: !
|
|
194
|
+
disabled: !l || s,
|
|
194
195
|
loading: s,
|
|
195
|
-
children: _ || `Delete ${
|
|
196
|
+
children: _ || `Delete ${m}`
|
|
196
197
|
}
|
|
197
198
|
)
|
|
198
199
|
] })
|
|
199
200
|
] }) });
|
|
200
201
|
}
|
|
201
|
-
|
|
202
|
+
B.displayName = "DeleteResource";
|
|
202
203
|
export {
|
|
203
204
|
Y as Badge,
|
|
204
205
|
g as Banner,
|
|
205
206
|
Q as BannerVariant,
|
|
206
207
|
we as Breadcrumbs,
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
208
|
+
n as Button,
|
|
209
|
+
no as Chart,
|
|
210
|
+
mo as ChartLegend,
|
|
211
|
+
po as ChartPalette,
|
|
211
212
|
ia as Checkbox,
|
|
212
|
-
|
|
213
|
+
na as ClipboardText,
|
|
213
214
|
Qe as CloudflareLogo,
|
|
214
|
-
|
|
215
|
-
|
|
215
|
+
ma as Code,
|
|
216
|
+
pa as CodeBlock,
|
|
216
217
|
_a as Collapsible,
|
|
217
218
|
ca as Combobox,
|
|
218
219
|
Oe as CommandPalette,
|
|
219
220
|
so as DatePicker,
|
|
220
221
|
sa as DateRangePicker,
|
|
221
|
-
|
|
222
|
+
B as DeleteResource,
|
|
222
223
|
M as Dialog,
|
|
223
224
|
S as DialogClose,
|
|
224
225
|
ua as DialogDescription,
|
|
@@ -233,12 +234,12 @@ export {
|
|
|
233
234
|
qe as GridItem,
|
|
234
235
|
D as Input,
|
|
235
236
|
va as InputArea,
|
|
236
|
-
|
|
237
|
+
Ba as InputGroup,
|
|
237
238
|
Ze as KUMO_CLOUDFLARE_LOGO_DEFAULT_VARIANTS,
|
|
238
239
|
ao as KUMO_CLOUDFLARE_LOGO_VARIANTS,
|
|
239
240
|
Ke as KUMO_COMMAND_PALETTE_DEFAULT_VARIANTS,
|
|
240
241
|
Ve as KUMO_COMMAND_PALETTE_VARIANTS,
|
|
241
|
-
|
|
242
|
+
P as KUMO_DELETE_RESOURCE_DEFAULT_VARIANTS,
|
|
242
243
|
H as KUMO_DELETE_RESOURCE_VARIANTS,
|
|
243
244
|
La as KUMO_FIELD_DEFAULT_VARIANTS,
|
|
244
245
|
Ra as KUMO_FIELD_VARIANTS,
|
|
@@ -247,7 +248,7 @@ export {
|
|
|
247
248
|
ha as KUMO_LABEL_DEFAULT_VARIANTS,
|
|
248
249
|
Ma as KUMO_LABEL_VARIANTS,
|
|
249
250
|
ke as KUMO_LINK_DEFAULT_VARIANTS,
|
|
250
|
-
|
|
251
|
+
Pe as KUMO_LINK_VARIANTS,
|
|
251
252
|
Te as KUMO_POPOVER_DEFAULT_VARIANTS,
|
|
252
253
|
Ae as KUMO_POPOVER_VARIANTS,
|
|
253
254
|
ge as KUMO_RADIO_DEFAULT_VARIANTS,
|
|
@@ -257,9 +258,10 @@ export {
|
|
|
257
258
|
bo as KUMO_SIDEBAR_DEFAULT_VARIANTS,
|
|
258
259
|
uo as KUMO_SIDEBAR_STYLING,
|
|
259
260
|
xo as KUMO_SIDEBAR_VARIANTS,
|
|
261
|
+
Yo as KumoPortalProvider,
|
|
260
262
|
Ua as Label,
|
|
261
263
|
Fa as LayerCard,
|
|
262
|
-
|
|
264
|
+
Be as Link,
|
|
263
265
|
aa as LinkButton,
|
|
264
266
|
Ho as LinkProvider,
|
|
265
267
|
Ga as Loader,
|
|
@@ -293,8 +295,8 @@ export {
|
|
|
293
295
|
Vo as SidebarMenuSub,
|
|
294
296
|
vo as SidebarMenuSubButton,
|
|
295
297
|
ko as SidebarMenuSubItem,
|
|
296
|
-
|
|
297
|
-
|
|
298
|
+
Po as SidebarProvider,
|
|
299
|
+
Bo as SidebarRail,
|
|
298
300
|
yo as SidebarResizeHandle,
|
|
299
301
|
Fo as SidebarRoot,
|
|
300
302
|
wo as SidebarSeparator,
|
|
@@ -302,13 +304,13 @@ export {
|
|
|
302
304
|
ja as SkeletonLine,
|
|
303
305
|
ee as Surface,
|
|
304
306
|
re as Switch,
|
|
305
|
-
|
|
307
|
+
le as Table,
|
|
306
308
|
te as Tabs,
|
|
307
309
|
de as Text,
|
|
308
310
|
ka as Textarea,
|
|
309
311
|
fo as TimeseriesChart,
|
|
310
|
-
|
|
311
|
-
|
|
312
|
+
Qo as Toast,
|
|
313
|
+
pe as ToastProvider,
|
|
312
314
|
fe as Toasty,
|
|
313
315
|
ue as Tooltip,
|
|
314
316
|
xe as TooltipProvider,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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 render={(props) => (\n <Button\n {...props}\n variant=\"ghost\"\n shape=\"square\"\n size=\"sm\"\n aria-label=\"Close\"\n disabled={isDeleting}\n >\n <XIcon size={18} />\n </Button>\n )}\n />\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 render={(props) => (\n <Button {...props} variant=\"secondary\" disabled={isDeleting}>\n Cancel\n </Button>\n )}\n />\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","props","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,IAAA;AAAA,IAEf,MAAM;AAAA,MACJ,SAAS;AAAA,MACT,aAAa;AAAA,IAAA;AAAA,EACf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"],"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 render={(props) => (\n <Button\n {...props}\n variant=\"ghost\"\n shape=\"square\"\n size=\"sm\"\n aria-label=\"Close\"\n disabled={isDeleting}\n >\n <XIcon size={18} />\n </Button>\n )}\n />\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 render={(props) => (\n <Button {...props} variant=\"secondary\" disabled={isDeleting}>\n Cancel\n </Button>\n )}\n />\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","props","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,IAAA;AAAA,IAEf,MAAM;AAAA,MACJ,SA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