@krizaka/ui 3.71.0 → 3.72.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/blocks.css +26 -0
- package/dist/chunk-M3T5RQYV.js +34 -0
- package/dist/chunk-M3T5RQYV.js.map +1 -0
- package/dist/chunk-ZFR6ZNXD.js +203 -0
- package/dist/chunk-ZFR6ZNXD.js.map +1 -0
- package/dist/{frame-D6Xv83t8.d.ts → frame-CNZ5VgDD.d.ts} +11 -4
- package/dist/schema-DgjBz7-8.d.ts +242 -0
- package/dist/shop/booking.d.ts +2 -2
- package/dist/shop/booking.js +1 -1
- package/dist/shop/booking.js.map +1 -1
- package/dist/shop/bulletin.js +1 -1
- package/dist/shop/faq.d.ts +2 -1
- package/dist/shop/faq.js +1 -1
- package/dist/shop/faq.js.map +1 -1
- package/dist/shop/gallery.js +1 -1
- package/dist/shop/look.d.ts +43 -0
- package/dist/shop/look.js +52 -0
- package/dist/shop/look.js.map +1 -0
- package/dist/shop/policies.d.ts +2 -1
- package/dist/shop/policies.js +1 -1
- package/dist/shop/policies.js.map +1 -1
- package/dist/shop/reviews.d.ts +2 -1
- package/dist/shop/reviews.js +1 -1
- package/dist/shop/reviews.js.map +1 -1
- package/dist/shop/services.js +1 -1
- package/dist/shop/social.js +1 -1
- package/dist/shop/story.d.ts +2 -1
- package/dist/shop/story.js +1 -1
- package/dist/shop/story.js.map +1 -1
- package/dist/shop/team.js +1 -1
- package/dist/shop/video.js +1 -1
- package/dist/shop/visit.js +1 -1
- package/dist/shop-composer.d.ts +29 -0
- package/dist/shop-composer.js +156 -89
- package/dist/shop-composer.js.map +1 -1
- package/dist/shop.d.ts +6 -240
- package/dist/shop.js +24 -212
- package/dist/shop.js.map +1 -1
- package/package.json +25 -6
- package/registry/app-frame.json +1 -1
- package/registry/elephant.json +1 -1
- package/registry/index.json +9 -8
- package/registry/map.json +1 -1
- package/registry/nav-bar.json +1 -1
- package/registry/rail-nav.json +1 -1
- package/registry/shop-composer.json +9 -5
- package/registry/shop.json +50 -9
- package/registry/site-footer.json +1 -1
- package/dist/chunk-A7MQPIEG.js +0 -31
- package/dist/chunk-A7MQPIEG.js.map +0 -1
package/dist/chunk-A7MQPIEG.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Page,
|
|
3
|
-
SectionHeading,
|
|
4
|
-
cn
|
|
5
|
-
} from "./chunk-B47WSPMP.js";
|
|
6
|
-
|
|
7
|
-
// src/shop/frame.tsx
|
|
8
|
-
import * as React from "react";
|
|
9
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
-
var PAPERS = { plain: void 0, seyes: "ruled", kraft: "kraft", washi: "washi" };
|
|
11
|
-
function ShopFrame({ preset, density = "compact", accent, paper = "plain", className, ...props }) {
|
|
12
|
-
return /* @__PURE__ */ jsx("div", { "data-shop-preset": preset, "data-shop-accent": accent, "data-paper": PAPERS[paper], "data-density": density, className: cn("kz-shop", className), ...props });
|
|
13
|
-
}
|
|
14
|
-
function ShopSection({ id, title, eyebrow, lead, actions, bleed, first, className, children, ...props }) {
|
|
15
|
-
const auto = React.useId();
|
|
16
|
-
const headingId = title ? `${id ?? auto}-title` : void 0;
|
|
17
|
-
const heading = title ? /* @__PURE__ */ jsx(SectionHeading, { id: headingId, size: "sm", eyebrow, title, lead, actions }) : null;
|
|
18
|
-
return /* @__PURE__ */ jsx("section", { id, "aria-labelledby": headingId, "data-first": first ? "" : void 0, "data-bleed": bleed ? "" : void 0, className: cn("kz-shop-section", className), ...props, children: bleed ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
19
|
-
heading && /* @__PURE__ */ jsx(Page, { children: heading }),
|
|
20
|
-
children
|
|
21
|
-
] }) : /* @__PURE__ */ jsxs(Page, { children: [
|
|
22
|
-
heading,
|
|
23
|
-
children
|
|
24
|
-
] }) });
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export {
|
|
28
|
-
ShopFrame,
|
|
29
|
-
ShopSection
|
|
30
|
-
};
|
|
31
|
-
//# sourceMappingURL=chunk-A7MQPIEG.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/shop/frame.tsx"],"sourcesContent":["// Server-safe. The frame and the rhythm of a shop page (ADR-007 §2): every section draws inside the page frame between the\n// gutters (`bleed` for a photo only), one vertical rhythm set by the density, a hairline between sections. No section sets\n// its own margin: it only says what it holds.\nimport * as React from \"react\";\n\nimport { cn } from \"../cn\";\nimport { Page, SectionHeading } from \"../page/page\";\n\n/** A photo the product resolved: the address, its words, and the widths it has (`srcSet`). */\nexport type ShopPhoto = {\n src: string;\n /** What it shows, in words; empty when it only sets a mood. */\n alt: string;\n /** The widths the product holds (`/a-480.avif 480w, /a-960.avif 960w`); the section brings the `sizes`. */\n srcSet?: string;\n};\n\nexport type ShopFrameProps = React.HTMLAttributes<HTMLDivElement> & {\n /** The look preset (`salon-vitrine`, `@krizaka/tokens`): its tokens apply to everything inside. */\n preset?: string;\n /**\n * The rhythm: `compact` 40 px between sections (24 on a phone), `airy` 64 px (40). The document's, or the preset's.\n * @default \"compact\"\n */\n density?: \"compact\" | \"airy\";\n /**\n * One of the accents the preset lists as tested (`krizaka`, `akinaza:accent-2`…): the owner's choice within the look. Without it, the preset's own.\n * @see @krizaka/tokens `shopPresets`\n */\n accent?: string;\n /**\n * The paper under the page, from the preset: `seyes` (ruled), `kraft` (brown — mount `PaperGrain` once), `washi` (a tint of the accent) or `plain`.\n * @default \"plain\"\n */\n paper?: \"plain\" | \"seyes\" | \"kraft\" | \"washi\";\n};\n\nconst PAPERS = { plain: undefined, seyes: \"ruled\", kraft: \"kraft\", washi: \"washi\" } as const;\n\n/** The page: sets the look preset, the accent, the paper and the density the sections below read. */\nexport function ShopFrame({ preset, density = \"compact\", accent, paper = \"plain\", className, ...props }: ShopFrameProps) {\n return <div data-shop-preset={preset} data-shop-accent={accent} data-paper={PAPERS[paper]} data-density={density} className={cn(\"kz-shop\", className)} {...props} />;\n}\n\nexport type ShopSectionProps = Omit<React.HTMLAttributes<HTMLElement>, \"title\"> & {\n /** The section's id: the anchor, and the heading's id. */\n id?: string;\n /** The `h2`. Without one the section is named by `aria-label`. */\n title?: React.ReactNode;\n /** A short lower-case note above the title. */\n eyebrow?: React.ReactNode;\n /** One sentence under the title. */\n lead?: React.ReactNode;\n /** A link or a button on the right of the heading (« All times → »). */\n actions?: React.ReactNode;\n /** The content reaches the edges of the screen (a photo, a strip); the heading stays on the frame. */\n bleed?: boolean;\n /** The section is the page's first (the hero): no hairline, no padding. */\n first?: boolean;\n};\n\n/** A section of a shop page. */\nexport function ShopSection({ id, title, eyebrow, lead, actions, bleed, first, className, children, ...props }: ShopSectionProps) {\n const auto = React.useId();\n const headingId = title ? `${id ?? auto}-title` : undefined;\n const heading = title ? <SectionHeading id={headingId} size=\"sm\" eyebrow={eyebrow} title={title} lead={lead} actions={actions} /> : null;\n return (\n <section id={id} aria-labelledby={headingId} data-first={first ? \"\" : undefined} data-bleed={bleed ? \"\" : undefined} className={cn(\"kz-shop-section\", className)} {...props}>\n {bleed ? (\n <>\n {heading && <Page>{heading}</Page>}\n {children}\n </>\n ) : (\n <Page>\n {heading}\n {children}\n </Page>\n )}\n </section>\n );\n}\n"],"mappings":";;;;;;;AAGA,YAAY,WAAW;AAsCd,SA4BD,UA5BC,KA4BD,YA5BC;AAJT,IAAM,SAAS,EAAE,OAAO,QAAW,OAAO,SAAS,OAAO,SAAS,OAAO,QAAQ;AAG3E,SAAS,UAAU,EAAE,QAAQ,UAAU,WAAW,QAAQ,QAAQ,SAAS,WAAW,GAAG,MAAM,GAAmB;AACvH,SAAO,oBAAC,SAAI,oBAAkB,QAAQ,oBAAkB,QAAQ,cAAY,OAAO,KAAK,GAAG,gBAAc,SAAS,WAAW,GAAG,WAAW,SAAS,GAAI,GAAG,OAAO;AACpK;AAoBO,SAAS,YAAY,EAAE,IAAI,OAAO,SAAS,MAAM,SAAS,OAAO,OAAO,WAAW,UAAU,GAAG,MAAM,GAAqB;AAChI,QAAM,OAAa,YAAM;AACzB,QAAM,YAAY,QAAQ,GAAG,MAAM,IAAI,WAAW;AAClD,QAAM,UAAU,QAAQ,oBAAC,kBAAe,IAAI,WAAW,MAAK,MAAK,SAAkB,OAAc,MAAY,SAAkB,IAAK;AACpI,SACE,oBAAC,aAAQ,IAAQ,mBAAiB,WAAW,cAAY,QAAQ,KAAK,QAAW,cAAY,QAAQ,KAAK,QAAW,WAAW,GAAG,mBAAmB,SAAS,GAAI,GAAG,OACnK,kBACC,iCACG;AAAA,eAAW,oBAAC,QAAM,mBAAQ;AAAA,IAC1B;AAAA,KACH,IAEA,qBAAC,QACE;AAAA;AAAA,IACA;AAAA,KACH,GAEJ;AAEJ;","names":[]}
|