@cloudflare/kumo 2.17.0 → 2.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 +26 -0
- package/ai/USAGE.md +6 -0
- package/ai/component-registry.json +4 -3
- package/ai/component-registry.md +23 -0
- package/ai/schemas.ts +2 -0
- 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-DBuj7_fo.d.ts} +2 -2
- package/dist/catalog.d.ts +4 -1
- package/dist/catalog.js +37 -14
- package/dist/chunks/{autocomplete-evlm6fj7v7w0g2z2.js → autocomplete-ngrji5wk0xdpq2qc.js} +2 -2
- package/dist/chunks/{badge-kyz53p7p0ng393bs.js → badge-f27mwe9gasi4inb6.js} +3 -1
- package/dist/chunks/{banner-lvbgdzxq3yndkbot.js → banner-m68xx7eqplxwi73f.js} +21 -10
- package/dist/chunks/{breadcrumbs-fsuyq7z6hdh1thjv.js → breadcrumbs-2ra74bio44h1fvuj.js} +2 -2
- package/dist/chunks/{button-k7axs4vu1rwx89w3.js → button-cyea767mx5dwgavm.js} +11 -16
- package/dist/chunks/{chart-hp3vqwe49tbyywqm.js → chart-g4dnsqiamjh39chn.js} +1 -1
- package/dist/chunks/{checkbox-g8b4f2hs5vux3u26.js → checkbox-bcpt8k7ck95vgjc1.js} +5 -5
- package/dist/chunks/{clipboard-text-fffd5tpa0iye6r6m.js → clipboard-text-k9ae6rsreg9ol6y2.js} +2 -2
- package/dist/chunks/{combobox-iawd8lxwd5b18fce.js → combobox-iuuzrkczst4nmoyh.js} +18 -6
- package/dist/chunks/{date-picker-kfoxd4u7ckg4nsez.js → date-picker-o6iov1n67oc4rbom.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-h3zgi4kmimpesv5j.js} +1 -1
- package/dist/chunks/{dropdown-o875yxeqod7qp871.js → dropdown-m5a8nwer5hpvnkfk.js} +3 -1
- package/dist/chunks/{empty-ir5bg5w4kkisuc1c.js → empty-ghcpxo6x75jg7mw9.js} +1 -1
- package/dist/chunks/{field-n7gmbg5xvh6oqbom.js → field-crf1hw5exr2oxemk.js} +1 -1
- package/dist/chunks/{inline-copy-text-57r67slswfqvgbaf.js → inline-copy-text-c6wa49ys72pj7k53.js} +1 -1
- package/dist/chunks/{input-f0pbcvjudf5zb8ek.js → input-d1230n06m5b1p3rd.js} +2 -2
- package/dist/chunks/{input-group-dqo5tcoewbdx86qx.js → input-group-gg4aurpe2s60van9.js} +8 -6
- package/dist/chunks/{input-iev3wgdzhkqpae2k.js → input-m6nvwwnydvbdz8rf.js} +2 -2
- package/dist/chunks/{label-njfcj6h9utmg2n9l.js → label-cecukn2rbow4ghxg.js} +1 -1
- package/dist/chunks/{layer-dialog-n7foup6icxowm82n.js → layer-dialog-eeecim8yf0dzhs2m.js} +2 -2
- package/dist/chunks/{menubar-b454nksysu0wicbz.js → menubar-gzlyhmmc4i24prn1.js} +1 -1
- package/dist/chunks/{pagination-mwlpbysq4cxmvs45.js → pagination-fkjx0m380ku9zqv9.js} +2 -2
- package/dist/chunks/{radio-d3pkrvsldfbdefav.js → radio-co7gt6ihfp5w4jr0.js} +4 -4
- package/dist/chunks/{select-fae2ls189jrq902h.js → select-ha59x0uq5ocr1x36.js} +6 -6
- package/dist/chunks/{sensitive-input-heb3xapwahzhpq6y.js → sensitive-input-hg58r9x2d9njtysl.js} +3 -3
- package/dist/chunks/{sidebar-h6g412ror8p7uo0d.js → sidebar-dgyce0z35tpnxj8t.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/{switch-ktfauhluw1yi5tkk.js → switch-hqj8v7ll9g14p5my.js} +4 -4
- package/dist/chunks/{table-lp41fsw7mqr751hn.js → table-b491wlpxd8jbr9b5.js} +1 -1
- package/dist/chunks/{tabs-mmkz7q5rofnmogwt.js → tabs-oi64kuuf2poro26u.js} +2 -2
- package/dist/chunks/{tag-input-k6vzllby4qebmv63.js → tag-input-0ombmb7yrn4xk3in.js} +3 -3
- package/dist/chunks/{toast-kzwscia42707sau6.js → toast-cmj0e7xvoh9gxxao.js} +1 -1
- package/dist/chunks/{toolbar-nnos2ouwfk7i6tpw.js → toolbar-bx2w3vk2if6mp36l.js} +3 -3
- package/dist/chunks/unwrap-lazy-element-hzbdkmujhd7iksau.js +45 -0
- package/dist/code.js +1 -1
- package/dist/components/autocomplete.js +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/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-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.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/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--HBggSGH.d.ts} +2 -2
- package/dist/{index-CSWbPhke.d.ts → index-BAFvYacU.d.ts} +15 -5
- package/dist/{index--RbAKeBL.d.ts → index-BfoZI9Hf.d.ts} +2 -2
- package/dist/{index-jNWPjJl9.d.ts → index-D4_C1J_8.d.ts} +1 -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-WCjW8Iot.d.ts +1 -0
- package/dist/index.d.ts +9 -9
- package/dist/index.js +35 -35
- package/dist/{input-group-B3M_WRqm.d.ts → input-group-oXVkmPrY.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";
|