@krizaka/ui 4.3.0 → 4.4.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/dist/account-menu.d.ts +1 -1
- package/dist/account-menu.js +1 -1
- package/dist/account-menu.js.map +1 -1
- package/dist/account-settings.d.ts +1 -1
- package/dist/account-settings.js +13 -6
- package/dist/account-settings.js.map +1 -1
- package/dist/agenda.d.ts +1 -1
- package/dist/agenda.js +2 -1
- package/dist/agenda.js.map +1 -1
- package/dist/analysis-report.js +19 -11
- package/dist/analysis-report.js.map +1 -1
- package/dist/app-frame.d.ts +1 -1
- package/dist/app-frame.js.map +1 -1
- package/dist/app-header/search.js +2 -2
- package/dist/app-header/search.js.map +1 -1
- package/dist/avatar/defaults.js +3 -1
- package/dist/avatar/defaults.js.map +1 -1
- package/dist/avatar.js +3 -1
- package/dist/avatar.js.map +1 -1
- package/dist/bird-plate.js +8 -2
- package/dist/bird-plate.js.map +1 -1
- package/dist/blocks.css +4 -0
- package/dist/chapter.js +7 -4
- package/dist/chapter.js.map +1 -1
- package/dist/chat.js +1 -1
- package/dist/chip.d.ts +1 -1
- package/dist/chip.js +1 -1
- package/dist/{chunk-SNSQLGGS.js → chunk-5VZ37TY3.js} +1 -1
- package/dist/{chunk-XWJDBQU7.js.map → chunk-5VZ37TY3.js.map} +1 -1
- package/dist/{chunk-MTVX4RRF.js → chunk-HP7BDMVK.js} +11 -3
- package/dist/chunk-HP7BDMVK.js.map +1 -0
- package/dist/{chunk-PK3L6WQT.js → chunk-LNAAWT4Y.js} +4 -2
- package/dist/{chunk-PK3L6WQT.js.map → chunk-LNAAWT4Y.js.map} +1 -1
- package/dist/{chunk-UIP3WX5O.js → chunk-MDSP7DJR.js} +2 -2
- package/dist/chunk-MDSP7DJR.js.map +1 -0
- package/dist/{chunk-IEGTRCDI.js → chunk-NQENOT6L.js} +2 -2
- package/dist/{chunk-IEGTRCDI.js.map → chunk-NQENOT6L.js.map} +1 -1
- package/dist/{chunk-FM42KOAU.js → chunk-P7AFIKWG.js} +5 -3
- package/dist/chunk-P7AFIKWG.js.map +1 -0
- package/dist/{chunk-BCD2CRFG.js → chunk-PJNR4NTS.js} +2 -2
- package/dist/chunk-PJNR4NTS.js.map +1 -0
- package/dist/{chunk-ZFR6ZNXD.js → chunk-PVQ2KKPZ.js} +1 -1
- package/dist/chunk-PVQ2KKPZ.js.map +1 -0
- package/dist/{chunk-U4XTZMB7.js → chunk-QA3WETWT.js} +1 -1
- package/dist/{chunk-U4XTZMB7.js.map → chunk-QA3WETWT.js.map} +1 -1
- package/dist/{chunk-YXETEQQJ.js → chunk-SG2RKUVJ.js} +2 -2
- package/dist/{chunk-EOWV6BNQ.js → chunk-TXFX4PMN.js} +4 -2
- package/dist/{chunk-EOWV6BNQ.js.map → chunk-TXFX4PMN.js.map} +1 -1
- package/dist/{chunk-XWJDBQU7.js → chunk-V5RO6JYI.js} +1 -1
- package/dist/{chunk-SNSQLGGS.js.map → chunk-V5RO6JYI.js.map} +1 -1
- package/dist/chunk-VZ6ZALIJ.js +13 -0
- package/dist/chunk-VZ6ZALIJ.js.map +1 -0
- package/dist/{chunk-2DHL7NJW.js → chunk-XVRKKYWU.js} +5 -3
- package/dist/{chunk-2DHL7NJW.js.map → chunk-XVRKKYWU.js.map} +1 -1
- package/dist/{chunk-CDNOT2KR.js → chunk-YTYNKMNS.js} +1 -1
- package/dist/chunk-YTYNKMNS.js.map +1 -0
- package/dist/code-block.js.map +1 -1
- package/dist/combobox.js +2 -2
- package/dist/copy-button.js +2 -2
- package/dist/copy-button.js.map +1 -1
- package/dist/data-table.js +3 -3
- package/dist/desktop-window.d.ts +1 -1
- package/dist/desktop-window.js +3 -1
- package/dist/desktop-window.js.map +1 -1
- package/dist/drop-overlay.js +8 -8
- package/dist/drop-overlay.js.map +1 -1
- package/dist/elephant.d.ts +1 -1
- package/dist/elephant.js.map +1 -1
- package/dist/embed-facade.d.ts +1 -1
- package/dist/embed-facade.js +3 -1
- package/dist/embed-facade.js.map +1 -1
- package/dist/engine-flow.js +7 -2
- package/dist/engine-flow.js.map +1 -1
- package/dist/entity-header.js +9 -3
- package/dist/entity-header.js.map +1 -1
- package/dist/file-upload.d.ts +1 -1
- package/dist/file-upload.js.map +1 -1
- package/dist/filter-bar.d.ts +4 -4
- package/dist/filter-bar.js +2 -2
- package/dist/flock.js +9 -6
- package/dist/flock.js.map +1 -1
- package/dist/form.d.ts +3 -3
- package/dist/form.js.map +1 -1
- package/dist/genui.js +3 -3
- package/dist/glossary-term.d.ts +1 -1
- package/dist/glossary-term.js.map +1 -1
- package/dist/glossary.d.ts +1 -1
- package/dist/glossary.js.map +1 -1
- package/dist/identity-card.js +1 -1
- package/dist/index.js +1 -1
- package/dist/kind-config-editor.d.ts +2 -2
- package/dist/kind-config-editor.js +1 -1
- package/dist/kind-config-editor.js.map +1 -1
- package/dist/kpi-explained.d.ts +1 -1
- package/dist/kpi-explained.js +4 -4
- package/dist/kpi-explained.js.map +1 -1
- package/dist/landing-page.d.ts +10 -3
- package/dist/landing-page.js +8 -6
- package/dist/landing-page.js.map +1 -1
- package/dist/{lightbox-Q45BZ3HW.js → lightbox-MRB2YZEP.js} +1 -1
- package/dist/lightbox-MRB2YZEP.js.map +1 -0
- package/dist/map/cards.js +4 -2
- package/dist/map/cards.js.map +1 -1
- package/dist/map/pin.js +2 -1
- package/dist/map/pin.js.map +1 -1
- package/dist/map.d.ts +1 -1
- package/dist/map.js.map +1 -1
- package/dist/mascot-quote.js +1 -1
- package/dist/mascot-state.js +1 -1
- package/dist/mascots.js +1 -1
- package/dist/match-dialog.js +1 -1
- package/dist/motion.d.ts +1 -1
- package/dist/motion.js.map +1 -1
- package/dist/native/form.d.ts +3 -3
- package/dist/native/form.js.map +1 -1
- package/dist/native/markdown.d.ts +1 -1
- package/dist/native/markdown.js.map +1 -1
- package/dist/native/vertical-video.js.map +1 -1
- package/dist/native.d.ts +12 -12
- package/dist/native.js +12 -7
- package/dist/native.js.map +1 -1
- package/dist/nav-bar.d.ts +2 -2
- package/dist/nav-bar.js +1 -1
- package/dist/nav-bar.js.map +1 -1
- package/dist/next-actions.d.ts +1 -1
- package/dist/next-actions.js.map +1 -1
- package/dist/notification-preferences.d.ts +1 -1
- package/dist/notification-preferences.js +5 -2
- package/dist/notification-preferences.js.map +1 -1
- package/dist/page-index.js +2 -2
- package/dist/page-index.js.map +1 -1
- package/dist/product-page.js +4 -4
- package/dist/product-page.js.map +1 -1
- package/dist/promo-code-field.d.ts +1 -1
- package/dist/promo-code-field.js.map +1 -1
- package/dist/qr-code.d.ts +1 -1
- package/dist/qr-code.js +1 -1
- package/dist/rail-nav.js +3 -3
- package/dist/rail-nav.js.map +1 -1
- package/dist/retro-tv.d.ts +1 -1
- package/dist/retro-tv.js.map +1 -1
- package/dist/reviews.d.ts +2 -2
- package/dist/reviews.js.map +1 -1
- package/dist/router.d.ts +1 -1
- package/dist/router.js +8 -8
- package/dist/router.js.map +1 -1
- package/dist/{schema-DgjBz7-8.d.ts → schema-Dd05m48Q.d.ts} +8 -8
- package/dist/service-card.js +22 -13
- package/dist/service-card.js.map +1 -1
- package/dist/settings-layout.js +1 -1
- package/dist/shop/booking.js.map +1 -1
- package/dist/shop/gallery.js +7 -6
- package/dist/shop/gallery.js.map +1 -1
- package/dist/shop/hero.js.map +1 -1
- package/dist/shop/look.d.ts +2 -2
- package/dist/shop/look.js +1 -1
- package/dist/shop/look.js.map +1 -1
- package/dist/shop/map-gate.d.ts +1 -1
- package/dist/shop/map-gate.js +2 -2
- package/dist/shop/map-gate.js.map +1 -1
- package/dist/shop/services.js.map +1 -1
- package/dist/shop-composer.d.ts +10 -10
- package/dist/shop-composer.js +27 -14
- package/dist/shop-composer.js.map +1 -1
- package/dist/shop-gallery.js +1 -1
- package/dist/shop.d.ts +2 -2
- package/dist/shop.js +2 -2
- package/dist/shop.js.map +1 -1
- package/dist/signature.js +2 -1
- package/dist/signature.js.map +1 -1
- package/dist/site-cahier.js +7 -3
- package/dist/site-cahier.js.map +1 -1
- package/dist/site-footer.js +6 -2
- package/dist/site-footer.js.map +1 -1
- package/dist/slot-picker.js +5 -2
- package/dist/slot-picker.js.map +1 -1
- package/dist/stat.js +1 -1
- package/dist/status-chip.d.ts +1 -1
- package/dist/status-chip.js.map +1 -1
- package/dist/tabs.js.map +1 -1
- package/dist/tag-input.js +2 -2
- package/dist/tag-selector.js +1 -1
- package/dist/text-style.js +4 -3
- package/dist/text-style.js.map +1 -1
- package/dist/usage.js +8 -3
- package/dist/usage.js.map +1 -1
- package/dist/versus-card.js +1 -1
- package/dist/versus-card.js.map +1 -1
- package/dist/vertical-video.js +1 -1
- package/dist/vertical-video.js.map +1 -1
- package/dist/wall.d.ts +4 -4
- package/dist/wall.js +1 -1
- package/dist/wall.js.map +1 -1
- package/package.json +6 -6
- package/registry/account-menu.json +1 -1
- package/registry/account-settings.json +2 -2
- package/registry/agenda.json +1 -1
- package/registry/analysis-report.json +2 -2
- package/registry/app-frame.json +3 -3
- package/registry/app-header.json +1 -1
- package/registry/avatar.json +1 -1
- package/registry/badge.json +2 -2
- package/registry/bird-plate.json +1 -1
- package/registry/chapter.json +1 -1
- package/registry/chip.json +1 -1
- package/registry/copy-button.json +1 -1
- package/registry/data-table.json +1 -1
- package/registry/desktop-window.json +1 -1
- package/registry/drop-overlay.json +1 -1
- package/registry/elephant.json +1 -1
- package/registry/embed-facade.json +2 -2
- package/registry/engine-flow.json +2 -2
- package/registry/entity-header.json +1 -1
- package/registry/examples/landing-page/showcase.d.ts +4 -0
- package/registry/examples/landing-page/showcase.js +45 -0
- package/registry/examples/landing-page/showcase.tsx +42 -0
- package/registry/file-upload.json +1 -1
- package/registry/filter-bar.json +1 -1
- package/registry/flock.json +2 -2
- package/registry/form.json +7 -7
- package/registry/glossary-term.json +1 -1
- package/registry/glossary.json +1 -1
- package/registry/index.json +19 -10
- package/registry/kind-config-editor.json +1 -1
- package/registry/kpi-explained.json +1 -1
- package/registry/landing-page.json +61 -21
- package/registry/map.json +4 -4
- package/registry/mascot-state.json +1 -1
- package/registry/mascots.json +2 -2
- package/registry/nav-bar.json +4 -4
- package/registry/next-actions.json +1 -1
- package/registry/notification-preferences.json +1 -1
- package/registry/page-index.json +1 -1
- package/registry/page.json +4 -0
- package/registry/product-page.json +1 -1
- package/registry/promo-code-field.json +1 -1
- package/registry/qr-code.json +2 -2
- package/registry/rail-nav.json +3 -3
- package/registry/retro-tv.json +1 -1
- package/registry/reviews.json +1 -1
- package/registry/router.json +1 -1
- package/registry/service-card.json +1 -1
- package/registry/settings-layout.json +1 -1
- package/registry/shop-composer.json +7 -7
- package/registry/shop-gallery.json +1 -1
- package/registry/shop.json +11 -11
- package/registry/signature.json +1 -1
- package/registry/site-cahier.json +1 -1
- package/registry/site-footer.json +3 -3
- package/registry/slot-picker.json +1 -1
- package/registry/stat.json +1 -1
- package/registry/status-chip.json +1 -1
- package/registry/tabs.json +1 -1
- package/registry/text-style.json +1 -1
- package/registry/usage.json +2 -2
- package/registry/versus-card.json +1 -1
- package/registry/vertical-video.json +1 -1
- package/registry/wall.json +5 -5
- package/registry/waveform.json +2 -2
- package/dist/chunk-BCD2CRFG.js.map +0 -1
- package/dist/chunk-CDNOT2KR.js.map +0 -1
- package/dist/chunk-FM42KOAU.js.map +0 -1
- package/dist/chunk-MTVX4RRF.js.map +0 -1
- package/dist/chunk-UIP3WX5O.js.map +0 -1
- package/dist/chunk-ZFR6ZNXD.js.map +0 -1
- package/dist/lightbox-Q45BZ3HW.js.map +0 -1
- /package/dist/{chunk-YXETEQQJ.js.map → chunk-SG2RKUVJ.js.map} +0 -0
package/dist/shop-composer.js
CHANGED
|
@@ -256,7 +256,8 @@ var addSection = (page, cmd) => {
|
|
|
256
256
|
const isHero = def.type === "hero";
|
|
257
257
|
if (isHero && page.sections.some((s) => s.type === "hero")) return page;
|
|
258
258
|
const heroFirst = page.sections[0]?.type === "hero";
|
|
259
|
-
const
|
|
259
|
+
const minAt = heroFirst ? 1 : 0;
|
|
260
|
+
const at = isHero ? 0 : clamp(cmd.at ?? page.sections.length, minAt, page.sections.length);
|
|
260
261
|
const section = { key: cmd.key, type: def.type, variant, settings: { ...def.settingsDefault, ...cmd.settings } };
|
|
261
262
|
const sections = [...page.sections];
|
|
262
263
|
sections.splice(at, 0, section);
|
|
@@ -1179,7 +1180,8 @@ function wallLayout(count) {
|
|
|
1179
1180
|
const col = i % perRow;
|
|
1180
1181
|
const inRow = Math.min(perRow, count - row * perRow);
|
|
1181
1182
|
const x = inRow === 1 ? 50 : col / (inRow - 1) * 100;
|
|
1182
|
-
|
|
1183
|
+
let y = 92 - col % 2 * 6;
|
|
1184
|
+
if (row === 0) y = count <= perRow ? 50 : 8 + col % 2 * 6;
|
|
1183
1185
|
return { x, y, rotation: [-2.2, 1.6, -1.2, 2.4, -1.8][(i * 3 + 1) % 5] };
|
|
1184
1186
|
});
|
|
1185
1187
|
}
|
|
@@ -1212,10 +1214,10 @@ function ShopWall({ photos, notes, sign, texture, label }) {
|
|
|
1212
1214
|
function GallerySection({ variant = "mosaic", photos, title, lead: lead2, label, notes = [], sign, texture = "plaster", className, ...props }) {
|
|
1213
1215
|
const shown = photos.slice(0, SHOP_LIMITS.photos);
|
|
1214
1216
|
const bodies = {
|
|
1215
|
-
mosaic:
|
|
1216
|
-
filmstrip:
|
|
1217
|
-
wall:
|
|
1218
|
-
grid:
|
|
1217
|
+
mosaic: /* @__PURE__ */ jsx11(Mosaic, { photos: shown }),
|
|
1218
|
+
filmstrip: /* @__PURE__ */ jsx11(Filmstrip, { photos: shown, label }),
|
|
1219
|
+
wall: /* @__PURE__ */ jsx11(ShopWall, { photos: shown, notes, sign, texture, label }),
|
|
1220
|
+
grid: /* @__PURE__ */ jsx11(
|
|
1219
1221
|
MediaGallery,
|
|
1220
1222
|
{
|
|
1221
1223
|
label,
|
|
@@ -1223,7 +1225,7 @@ function GallerySection({ variant = "mosaic", photos, title, lead: lead2, label,
|
|
|
1223
1225
|
}
|
|
1224
1226
|
)
|
|
1225
1227
|
};
|
|
1226
|
-
const body = bodies[variant]
|
|
1228
|
+
const body = bodies[variant];
|
|
1227
1229
|
return /* @__PURE__ */ jsx11(ShopSection, { title, lead: lead2, className: cn(className), "data-variant": variant, ...props, children: body });
|
|
1228
1230
|
}
|
|
1229
1231
|
|
|
@@ -2016,7 +2018,10 @@ function ShopComposer({ value, resetKey, onChange, onPublish, onDiscard, publish
|
|
|
2016
2018
|
return fill(t, { name });
|
|
2017
2019
|
}
|
|
2018
2020
|
};
|
|
2019
|
-
|
|
2021
|
+
let status_ = "";
|
|
2022
|
+
if (status === "saving") status_ = m.saving;
|
|
2023
|
+
else if (status === "saved") status_ = m.saved;
|
|
2024
|
+
else if (status === "error") status_ = m.saveFailed;
|
|
2020
2025
|
return /* @__PURE__ */ jsxs19("div", { className: cn("kz-composer flex min-h-0 flex-col gap-3", className), onKeyDown, "data-step": step, children: [
|
|
2021
2026
|
/* @__PURE__ */ jsxs19("header", { className: "flex flex-wrap items-center gap-2 border-b border-border-subtle pb-2", children: [
|
|
2022
2027
|
/* @__PURE__ */ jsx25("h2", { className: "m-0 me-auto text-base font-semibold text-fg", children: m.title }),
|
|
@@ -2080,8 +2085,11 @@ function ShopComposer({ value, resetKey, onChange, onPublish, onDiscard, publish
|
|
|
2080
2085
|
announce,
|
|
2081
2086
|
onInvalid: (key2, bad) => setInvalid((prev) => {
|
|
2082
2087
|
const next = new Set(prev);
|
|
2083
|
-
if (bad)
|
|
2084
|
-
|
|
2088
|
+
if (bad) {
|
|
2089
|
+
next.add(key2);
|
|
2090
|
+
} else {
|
|
2091
|
+
next.delete(key2);
|
|
2092
|
+
}
|
|
2085
2093
|
return next.size === prev.size && next.has(key2) === prev.has(key2) ? prev : next;
|
|
2086
2094
|
}),
|
|
2087
2095
|
preset: page.preset.id,
|
|
@@ -2095,12 +2103,17 @@ function ShopComposer({ value, resetKey, onChange, onPublish, onDiscard, publish
|
|
|
2095
2103
|
/* @__PURE__ */ jsx25(Dialog.Title, { children: m.addSection }),
|
|
2096
2104
|
/* @__PURE__ */ jsx25(Dialog.Description, { children: m.addSectionHint })
|
|
2097
2105
|
] }),
|
|
2098
|
-
/* @__PURE__ */ jsx25(Dialog.Body, { children: [
|
|
2106
|
+
/* @__PURE__ */ jsx25(Dialog.Body, { children: [
|
|
2107
|
+
{ key: "open", group: SECTION_DEFINITIONS.filter((d) => !foldedTypes.includes(d.type)) },
|
|
2108
|
+
{ key: "folded", group: SECTION_DEFINITIONS.filter((d) => foldedTypes.includes(d.type)) }
|
|
2109
|
+
].map(({ key: groupKey, group }) => {
|
|
2099
2110
|
const list = /* @__PURE__ */ jsx25("ul", { className: "m-0 grid list-none gap-1 p-0", children: group.map((d) => /* @__PURE__ */ jsx25("li", { children: /* @__PURE__ */ jsx25(Button4, { variant: "ghost", className: "w-full justify-start", disabled: d.type === "hero" && page.sections.some((s) => s.type === "hero"), onClick: () => addSection2(d.type), children: m.sectionNames[d.type] }) }, d.type)) });
|
|
2100
|
-
|
|
2111
|
+
if (group.length === 0) return null;
|
|
2112
|
+
if (groupKey === "open") return /* @__PURE__ */ jsx25(React8.Fragment, { children: list }, groupKey);
|
|
2113
|
+
return /* @__PURE__ */ jsxs19("details", { className: "mt-3", children: [
|
|
2101
2114
|
/* @__PURE__ */ jsx25("summary", { className: "min-h-9 cursor-pointer text-sm text-fg-secondary", children: "\u2026" }),
|
|
2102
2115
|
list
|
|
2103
|
-
] },
|
|
2116
|
+
] }, groupKey);
|
|
2104
2117
|
}) })
|
|
2105
2118
|
] }) }),
|
|
2106
2119
|
/* @__PURE__ */ jsx25(Dialog.Root, { open: publishing, onOpenChange: setPublishing, children: /* @__PURE__ */ jsxs19(Dialog.Content, { closeLabel: m.cancel, children: [
|
|
@@ -2113,7 +2126,7 @@ function ShopComposer({ value, resetKey, onChange, onPublish, onDiscard, publish
|
|
|
2113
2126
|
/* @__PURE__ */ jsx25("p", { className: "m-0 text-sm font-semibold text-fg", children: fill(m.problemsTitle, { n: problems.length }) }),
|
|
2114
2127
|
/* @__PURE__ */ jsx25("ul", { className: "m-0 mt-1 list-disc ps-5 text-sm text-fg-secondary", children: problems.map((p) => /* @__PURE__ */ jsx25("li", { children: p.text }, p.key)) })
|
|
2115
2128
|
] }),
|
|
2116
|
-
changes.length === 0 ? /* @__PURE__ */ jsx25("p", { className: "m-0 text-sm text-fg-secondary", children: m.publishNothing }) : /* @__PURE__ */ jsx25("ul", { className: "m-0 list-disc ps-5 text-sm text-fg", children: changes.map((d
|
|
2129
|
+
changes.length === 0 ? /* @__PURE__ */ jsx25("p", { className: "m-0 text-sm text-fg-secondary", children: m.publishNothing }) : /* @__PURE__ */ jsx25("ul", { className: "m-0 list-disc ps-5 text-sm text-fg", children: changes.map((d) => /* @__PURE__ */ jsx25("li", { children: describe(d) }, "key" in d ? `${d.kind}:${d.key}` : d.kind)) })
|
|
2117
2130
|
] }),
|
|
2118
2131
|
/* @__PURE__ */ jsxs19(Dialog.Footer, { children: [
|
|
2119
2132
|
/* @__PURE__ */ jsx25(Dialog.Close, { asChild: true, children: /* @__PURE__ */ jsx25(Button4, { variant: "ghost", children: m.cancel }) }),
|