@cloudflare/kumo 2.17.0 → 2.18.1
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 +46 -0
- package/ai/USAGE.md +6 -0
- package/ai/component-registry.json +7 -6
- package/ai/component-registry.md +24 -1
- package/ai/schemas.ts +3 -1
- package/dist/.build-complete +1 -1
- package/dist/ai/schemas.d.ts +2 -0
- package/dist/ai/schemas.js +1 -0
- package/dist/{button-Bbi7gFL7.d.ts → button-DzavLWXm.d.ts} +3 -3
- package/dist/catalog.d.ts +4 -1
- package/dist/catalog.js +37 -14
- package/dist/chunks/{autocomplete-evlm6fj7v7w0g2z2.js → autocomplete-kx87ui5sodpxx2zm.js} +2 -2
- package/dist/chunks/{badge-kyz53p7p0ng393bs.js → badge-g0m6j3nji45tiink.js} +4 -2
- package/dist/chunks/{banner-lvbgdzxq3yndkbot.js → banner-mo1xl9ww734kgsqh.js} +21 -10
- package/dist/chunks/{breadcrumbs-fsuyq7z6hdh1thjv.js → breadcrumbs-o63hllvg6zlbxvcr.js} +2 -2
- package/dist/chunks/{button-k7axs4vu1rwx89w3.js → button-hzvowfkbathmx8yg.js} +12 -17
- package/dist/chunks/{chart-hp3vqwe49tbyywqm.js → chart-g4dnsqiamjh39chn.js} +1 -1
- package/dist/chunks/{checkbox-g8b4f2hs5vux3u26.js → checkbox-oav03hnpbj06x31v.js} +5 -5
- package/dist/chunks/{clipboard-text-fffd5tpa0iye6r6m.js → clipboard-text-ldk0zyq1qtey1yux.js} +2 -2
- package/dist/chunks/{combobox-iawd8lxwd5b18fce.js → combobox-iwqfbp2cn3z54azu.js} +18 -6
- package/dist/chunks/{command-palette-el4x943vpmid0po0.js → command-palette-d45ueqbuxygu87ir.js} +1 -1
- package/dist/chunks/{date-picker-kfoxd4u7ckg4nsez.js → date-picker-ija2bz17ai6ypnao.js} +3 -3
- package/dist/chunks/{date-range-picker-hpx3cdu9ve01jx6d.js → date-range-picker-oivlshld01jbel29.js} +1 -1
- package/dist/chunks/{dialog-lgrwmsumwpftp2u8.js → dialog-g7wavhkdv2gplwq9.js} +2 -2
- package/dist/chunks/{dropdown-o875yxeqod7qp871.js → dropdown-m5a8nwer5hpvnkfk.js} +3 -1
- package/dist/chunks/{empty-ir5bg5w4kkisuc1c.js → empty-dzm61keqaezmp452.js} +1 -1
- package/dist/chunks/{field-n7gmbg5xvh6oqbom.js → field-gkrpde59au4kjh7q.js} +1 -1
- package/dist/chunks/{inline-copy-text-57r67slswfqvgbaf.js → inline-copy-text-c6wa49ys72pj7k53.js} +1 -1
- package/dist/chunks/{input-iev3wgdzhkqpae2k.js → input-ehb5hnwkr2kx9rpw.js} +2 -2
- package/dist/chunks/{input-f0pbcvjudf5zb8ek.js → input-ggn78losfydwdjqg.js} +2 -2
- package/dist/chunks/{input-group-dqo5tcoewbdx86qx.js → input-group-grlfeiivjuhd7jif.js} +8 -6
- package/dist/chunks/{label-njfcj6h9utmg2n9l.js → label-f9vvtexndkpjlrv0.js} +1 -1
- package/dist/chunks/{layer-card-mar4dya5kl1vvie6.js → layer-card-lsmeuqic9i1isv2b.js} +2 -2
- package/dist/chunks/{layer-dialog-n7foup6icxowm82n.js → layer-dialog-cwpiki9rq2s6yidp.js} +3 -3
- package/dist/chunks/{menubar-b454nksysu0wicbz.js → menubar-gzlyhmmc4i24prn1.js} +1 -1
- package/dist/chunks/{pagination-mwlpbysq4cxmvs45.js → pagination-h5l4b9bfmf78s6jq.js} +2 -2
- package/dist/chunks/{radio-d3pkrvsldfbdefav.js → radio-nf717i5ypsga9zdh.js} +34 -33
- package/dist/chunks/{select-fae2ls189jrq902h.js → select-ei05w4df1th4fa4e.js} +10 -10
- package/dist/chunks/{sensitive-input-heb3xapwahzhpq6y.js → sensitive-input-owfvgxmefm5lzzx8.js} +4 -3
- package/dist/chunks/{sidebar-h6g412ror8p7uo0d.js → sidebar-jhwzfl3xpsfns60z.js} +11 -9
- package/dist/chunks/skeleton-line-kmhnp0lx3rxhioxa.js +74 -0
- package/dist/chunks/{slider-juwif2d8xa5n0429.js → slider-e395gihi5cjd62ss.js} +1 -1
- package/dist/chunks/{surface-ginwpan1pz61l6k2.js → surface-jr8x5hy0gucjk5ig.js} +1 -1
- package/dist/chunks/{switch-ktfauhluw1yi5tkk.js → switch-e1dsoxucn07fz00t.js} +4 -4
- package/dist/chunks/{table-lp41fsw7mqr751hn.js → table-m0xshmsbxq2h1sho.js} +1 -1
- package/dist/chunks/{tabs-mmkz7q5rofnmogwt.js → tabs-oi64kuuf2poro26u.js} +2 -2
- package/dist/chunks/{tag-input-k6vzllby4qebmv63.js → tag-input-fm0pwt6kea4q137b.js} +3 -3
- package/dist/chunks/{toast-kzwscia42707sau6.js → toast-iojuzen6iavawpc9.js} +1 -1
- package/dist/chunks/{toolbar-nnos2ouwfk7i6tpw.js → toolbar-3wkkukczgo0bk6mo.js} +3 -3
- package/dist/chunks/unwrap-lazy-element-hzbdkmujhd7iksau.js +45 -0
- package/dist/code.js +1 -1
- package/dist/command-line/cli.js +6 -5
- package/dist/components/autocomplete.js +1 -1
- package/dist/components/badge.d.ts +1 -1
- package/dist/components/badge.js +1 -1
- package/dist/components/banner.d.ts +1 -1
- package/dist/components/banner.js +1 -1
- package/dist/components/breadcrumbs.js +1 -1
- package/dist/components/button.d.ts +2 -2
- 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/combobox.d.ts +1 -1
- package/dist/components/combobox.js +1 -1
- package/dist/components/command-palette.js +1 -1
- package/dist/components/date-picker.js +1 -1
- package/dist/components/date-range-picker.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/inline-copy-text.d.ts +1 -1
- package/dist/components/inline-copy-text.js +1 -1
- package/dist/components/input-group.d.ts +1 -1
- package/dist/components/input-group.js +1 -1
- package/dist/components/input.d.ts +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/layer-dialog.js +1 -1
- package/dist/components/loader.d.ts +1 -1
- package/dist/components/loader.js +1 -1
- package/dist/components/menubar.js +1 -1
- package/dist/components/pagination.js +1 -1
- package/dist/components/radio.js +1 -1
- package/dist/components/select.d.ts +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/slider.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/tag-input.js +1 -1
- package/dist/components/toast.d.ts +1 -1
- package/dist/components/toast.js +1 -1
- package/dist/components/toolbar.d.ts +1 -1
- package/dist/components/toolbar.js +1 -1
- package/dist/{index-BMe3cpLB.d.ts → index-CUT5x1Z2.d.ts} +2 -2
- package/dist/{index-jNWPjJl9.d.ts → index-D4_C1J_8.d.ts} +1 -1
- package/dist/index-DL1-uSuH.d.ts +1 -0
- package/dist/{index-CdSf6Vfc.d.ts → index-DmhpD22M.d.ts} +1 -1
- package/dist/{index-DWZia2ui.d.ts → index-DwNMa4LN.d.ts} +5 -1
- package/dist/{index-BAQwS4mL.d.ts → index-Dx7hOWUc.d.ts} +24 -1
- package/dist/{index-CrQi3QCY.d.ts → index-DxOyYZaJ.d.ts} +4 -3
- package/dist/{index-CSWbPhke.d.ts → index-NnHba-T1.d.ts} +15 -5
- package/dist/{index--RbAKeBL.d.ts → index-aahL-0Zw.d.ts} +2 -2
- package/dist/index-wD5WGQQz.d.ts +136 -0
- package/dist/index.d.ts +11 -11
- package/dist/index.js +38 -38
- package/dist/{input-group-B3M_WRqm.d.ts → input-group-8gEtPiKw.d.ts} +1 -1
- package/dist/styles/kumo-standalone.css +1 -1
- package/package.json +1 -1
- package/scripts/component-registry/schema-generator.ts +2 -0
- package/dist/chunks/skeleton-line-gjf1fecmyy82aejz.js +0 -43
- package/dist/index-B-hCpI5K.d.ts +0 -1
package/package.json
CHANGED
|
@@ -141,6 +141,7 @@ export function generateSchemasFile(registry: ComponentRegistry): string {
|
|
|
141
141
|
" | { or: LogicExpression[] }",
|
|
142
142
|
" | { not: LogicExpression }",
|
|
143
143
|
" | { path: string }",
|
|
144
|
+
' | { auth: "signedIn" | "signedOut" }',
|
|
144
145
|
" | { eq: [DynamicValue, DynamicValue] }",
|
|
145
146
|
" | { neq: [DynamicValue, DynamicValue] }",
|
|
146
147
|
" | { gt: [DynamicValue, DynamicValue] }",
|
|
@@ -155,6 +156,7 @@ export function generateSchemasFile(registry: ComponentRegistry): string {
|
|
|
155
156
|
" z.object({ or: z.array(LogicExpressionSchema) }),",
|
|
156
157
|
" z.object({ not: LogicExpressionSchema }),",
|
|
157
158
|
" z.object({ path: z.string() }),",
|
|
159
|
+
' z.object({ auth: z.enum(["signedIn", "signedOut"]) }),',
|
|
158
160
|
" z.object({ eq: z.tuple([DynamicValueSchema, DynamicValueSchema]) }),",
|
|
159
161
|
" z.object({ neq: z.tuple([DynamicValueSchema, DynamicValueSchema]) }),",
|
|
160
162
|
" z.object({ gt: z.tuple([DynamicValueSchema, DynamicValueSchema]) }),",
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { t as cn } from "./vendor-styling-gs32v7xt5znc8kg0.js";
|
|
3
|
-
import { useMemo } from "react";
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
//#region src/components/loader/skeleton-line.tsx
|
|
6
|
-
const getRandomWidth = (min, max) => Math.floor(Math.random() * (max - min + 1) + min);
|
|
7
|
-
const getRandomFloat = (min, max) => (Math.random() * (max - min) + min).toFixed(2);
|
|
8
|
-
const SkeletonLine = ({ minWidth = 30, maxWidth = 100, minDuration = 1.3, maxDuration = 1.7, minDelay = 0, maxDelay = .5, blockHeight, className }) => {
|
|
9
|
-
const { width, duration, delay } = useMemo(() => {
|
|
10
|
-
return {
|
|
11
|
-
width: getRandomWidth(minWidth, maxWidth),
|
|
12
|
-
duration: getRandomFloat(minDuration, maxDuration),
|
|
13
|
-
delay: getRandomFloat(minDelay, maxDelay)
|
|
14
|
-
};
|
|
15
|
-
}, [
|
|
16
|
-
minWidth,
|
|
17
|
-
maxWidth,
|
|
18
|
-
minDuration,
|
|
19
|
-
maxDuration,
|
|
20
|
-
minDelay,
|
|
21
|
-
maxDelay
|
|
22
|
-
]);
|
|
23
|
-
const lineStyle = {
|
|
24
|
-
"--skeleton-width": `${width}%`,
|
|
25
|
-
"--shimmer-duration": `${duration}s`,
|
|
26
|
-
"--shimmer-delay": `${delay}s`
|
|
27
|
-
};
|
|
28
|
-
const line = /* @__PURE__ */ jsx("div", {
|
|
29
|
-
className: cn("skeleton-line", className),
|
|
30
|
-
style: lineStyle
|
|
31
|
-
});
|
|
32
|
-
if (blockHeight !== void 0) {
|
|
33
|
-
const height = typeof blockHeight === "number" ? `${blockHeight}px` : blockHeight;
|
|
34
|
-
return /* @__PURE__ */ jsx("div", {
|
|
35
|
-
className: "flex items-center",
|
|
36
|
-
style: { height },
|
|
37
|
-
children: line
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
return line;
|
|
41
|
-
};
|
|
42
|
-
//#endregion
|
|
43
|
-
export { SkeletonLine as t };
|
package/dist/index-B-hCpI5K.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./button-Bbi7gFL7.js";
|