@devslab/site-kit 0.30.0 → 0.32.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/README.ko.md +52 -1
- package/README.md +52 -1
- package/dist/flag-bodies.js +30 -0
- package/dist/flag-bodies.js.map +1 -1
- package/dist/react/chrome.d.ts +66 -0
- package/dist/react/chrome.d.ts.map +1 -0
- package/dist/react/chunks/flag-bodies.js +114 -0
- package/dist/react/chunks/flag-bodies.js.map +1 -0
- package/dist/react/consent.d.ts +15 -0
- package/dist/react/consent.d.ts.map +1 -0
- package/dist/react/flag-bodies.d.ts +21 -0
- package/dist/react/flag-bodies.d.ts.map +1 -0
- package/dist/react/flag-bodies.js +6 -0
- package/dist/react/flag-bodies.js.map +1 -0
- package/dist/react/flag-bodies.server.d.ts +4 -0
- package/dist/react/flag-bodies.server.d.ts.map +1 -0
- package/dist/react/flag-bodies.server.js +7 -0
- package/dist/react/flag-bodies.server.js.map +1 -0
- package/dist/react/index.d.ts +29 -0
- package/dist/react/index.d.ts.map +1 -0
- package/dist/react/index.js +825 -0
- package/dist/react/index.js.map +1 -0
- package/dist/react/layouts.d.ts +51 -0
- package/dist/react/layouts.d.ts.map +1 -0
- package/dist/react/locale-menu.d.ts +24 -0
- package/dist/react/locale-menu.d.ts.map +1 -0
- package/dist/react/locale-state.d.ts +10 -0
- package/dist/react/locale-state.d.ts.map +1 -0
- package/dist/react/oss-product-mark.d.ts +9 -0
- package/dist/react/oss-product-mark.d.ts.map +1 -0
- package/dist/react/primitives.d.ts +18 -0
- package/dist/react/primitives.d.ts.map +1 -0
- package/dist/react/sections.d.ts +63 -0
- package/dist/react/sections.d.ts.map +1 -0
- package/dist/react/types.d.ts +82 -0
- package/dist/react/types.d.ts.map +1 -0
- package/dist/solid.js +9 -1
- package/dist/solid.js.map +1 -1
- package/dist/solid.server.js +38 -1
- package/dist/solid.server.js.map +1 -1
- package/flags/kh.svg +61 -0
- package/flags/la.svg +12 -0
- package/flags/mm.svg +12 -0
- package/flags/mn.svg +14 -0
- package/flags/my.svg +26 -0
- package/flags/ph.svg +6 -0
- package/package.json +38 -10
- package/src/core/flag-bodies.mjs +6 -0
- package/src/core/flag-countries.mjs +1 -1
- package/src/core/locales.d.mts +10 -0
- package/src/core/locales.mjs +18 -0
- package/styles.css +4 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/core/locales.mjs","../../src/core/flag-countries.mjs","../../src/react/locale-state.ts","../../src/react/locale-menu.tsx","../../src/react/consent.tsx","../../src/react/primitives.tsx","../../src/react/chrome.tsx","../../src/react/layouts.tsx","../../src/react/oss-product-mark.tsx","../../src/react/sections.tsx"],"sourcesContent":["export const LOCALES = Object.freeze([\n { code: \"ko\", language: \"Korean\", nativeName: \"한국어\", dir: \"ltr\" },\n { code: \"en\", language: \"English\", nativeName: \"English\", dir: \"ltr\" },\n { code: \"ja\", language: \"Japanese\", nativeName: \"日本語\", dir: \"ltr\" },\n { code: \"zh-HK\", language: \"Chinese (Hong Kong)\", nativeName: \"繁體中文(香港)\", dir: \"ltr\" },\n { code: \"zh-TW\", language: \"Chinese (Taiwan)\", nativeName: \"繁體中文(台灣)\", dir: \"ltr\" },\n { code: \"hi\", language: \"Hindi\", nativeName: \"हिन्दी\", dir: \"ltr\" },\n { code: \"vi\", language: \"Vietnamese\", nativeName: \"Tiếng Việt\", dir: \"ltr\" },\n { code: \"id\", language: \"Indonesian\", nativeName: \"Bahasa Indonesia\", dir: \"ltr\" },\n { code: \"th\", language: \"Thai\", nativeName: \"ไทย\", dir: \"ltr\" },\n { code: \"pt-BR\", language: \"Portuguese (Brazil)\", nativeName: \"Português (Brasil)\", dir: \"ltr\" },\n { code: \"fr\", language: \"French\", nativeName: \"Français\", dir: \"ltr\" },\n { code: \"de\", language: \"German\", nativeName: \"Deutsch\", dir: \"ltr\" },\n { code: \"es\", language: \"Spanish\", nativeName: \"Español\", dir: \"ltr\" },\n { code: \"ar\", language: \"Arabic\", nativeName: \"العربية\", dir: \"rtl\" },\n]);\n\nconst FAMILY_ALIASES = Object.freeze([[\"zh\", \"zh-TW\"], [\"pt\", \"pt-BR\"]]);\n\n/**\n * The languages a site actually sells in.\n *\n * The list above is the family's — what devslab.kr markets in, and the\n * floor every product gets for free. It is not every product's list.\n * BookLinq sells to salons in India and its assistant already answers in\n * Tamil, Telugu, Bengali, Marathi, Gujarati and Kannada. Those are not\n * family languages and are not going to become family languages: putting\n * them in the list above would hand AskLinq and devslab.kr six entries\n * they have no copy for. But a BookLinq page that cannot render them is a\n * page that lies about what the product does.\n *\n * So the family owns the mechanism and the product names its own nouns. A\n * registry is the family list plus whatever a product adds, and every\n * locale-aware helper here can be bound to one. The bare exports at the\n * bottom are the family registry, so a consumer that never calls this\n * sees exactly what it saw before.\n *\n * An extra locale carries the same fields as a family one plus\n * `flagCountry`, naming a flag this package already vendors (`FLAG_COUNTRY`\n * lists them). Products do not ship SVG: flag data is licensed, generated\n * and security-scanned here, and seven Indian languages share one flag\n * anyway.\n *\n * @param {{ only?: ReadonlyArray<string>, extra?: ReadonlyArray<object>, aliases?: ReadonlyArray<[string, string]> }} [options]\n */\nexport function defineLocaleRegistry(options = {}) {\n const extra = options.extra ?? [];\n // `only` — the product sells in a subset of the family's languages. The\n // subset keeps the family's order (the picker order is a family decision)\n // and is applied before `extra`, so a product may still add its own.\n let family = LOCALES;\n if (options.only !== undefined) {\n if (options.only.length === 0) throw new RangeError(\"`only` needs at least one locale — a registry with none is a bug, not a choice\");\n const wanted = new Set(options.only);\n for (const code of wanted) {\n if (!LOCALES.some((locale) => locale.code === code)) throw new RangeError(`${code} is not a family locale — \\`only\\` selects from the family list; use \\`extra\\` for a product's own`);\n }\n family = Object.freeze(LOCALES.filter((locale) => wanted.has(locale.code)));\n }\n const seen = new Set(family.map(({ code }) => code));\n for (const locale of extra) {\n if (!locale?.code) throw new TypeError(\"every extra locale needs a code\");\n if (LOCALES.some((known) => known.code === locale.code)) {\n throw new RangeError(`${locale.code} is already a family locale — remove it from \\`extra\\``);\n }\n if (seen.has(locale.code)) {\n throw new RangeError(`${locale.code} appears twice in \\`extra\\``);\n }\n if (!locale.nativeName) throw new TypeError(`${locale.code} needs a nativeName — it is what the picker shows`);\n if (locale.dir !== \"ltr\" && locale.dir !== \"rtl\") throw new RangeError(`${locale.code} needs dir \"ltr\" or \"rtl\"`);\n seen.add(locale.code);\n }\n\n const locales = Object.freeze([...family, ...extra.map((locale) => Object.freeze({ ...locale }))]);\n const byLower = new Map(locales.map((locale) => [locale.code.toLowerCase(), locale]));\n const aliases = new Map([...FAMILY_ALIASES, ...(options.aliases ?? [])]);\n\n function canonicalLocale(candidate) {\n if (!candidate) return undefined;\n const exact = byLower.get(String(candidate).trim().toLowerCase());\n if (exact) return exact.code;\n const base = String(candidate).trim().toLowerCase().split(\"-\")[0];\n if (aliases.has(base)) { const target = aliases.get(base); return byLower.has(target.toLowerCase()) ? target : undefined; }\n return byLower.get(base)?.code;\n }\n\n function definitionFor(locale) {\n const canonical = canonicalLocale(locale);\n if (!canonical) throw new RangeError(`Unsupported locale: ${locale}`);\n return byLower.get(canonical.toLowerCase());\n }\n\n function localeAttributes(locale) {\n const definition = definitionFor(locale);\n // `dir` comes off the definition rather than a test for Arabic. The\n // old form read `canonical === \"ar\" ? \"rtl\" : \"ltr\"`, which was right\n // only while Arabic stayed the family's one RTL language — a product\n // adding Urdu or Hebrew would have had it rendered left-to-right with\n // every test still green.\n return { lang: definition.code, dir: definition.dir };\n }\n\n function resolveLocale({ pathname = \"/\", cookie = \"\", acceptLanguage = \"\", defaultLocale }) {\n const routeLocale = canonicalLocale(pathname.split(\"/\").filter(Boolean)[0]);\n if (routeLocale) return { locale: routeLocale, source: \"route\" };\n const storedLocale = canonicalLocale(cookieValue(cookie, \"locale\"));\n if (storedLocale) return { locale: storedLocale, source: \"cookie\" };\n const accepted = acceptedLocales(acceptLanguage, canonicalLocale)[0]?.locale;\n if (accepted) return { locale: accepted, source: \"accept-language\" };\n const fallback = canonicalLocale(defaultLocale);\n if (!fallback) throw new RangeError(`Unsupported default locale: ${defaultLocale}`);\n return { locale: fallback, source: \"default\" };\n }\n\n return Object.freeze({ LOCALES: locales, canonicalLocale, localeAttributes, resolveLocale, definitionFor });\n}\n\nfunction cookieValue(header, name) {\n for (const part of String(header ?? \"\").split(\";\")) {\n const separator = part.indexOf(\"=\");\n if (separator < 0) continue;\n if (part.slice(0, separator).trim() === name) {\n try { return decodeURIComponent(part.slice(separator + 1).trim()); }\n catch { return undefined; }\n }\n }\n return undefined;\n}\n\nfunction acceptedLocales(header, canonicalLocale) {\n return String(header ?? \"\").split(\",\").map((part, order) => {\n const [tag, ...parameters] = part.trim().split(\";\");\n const q = Number(parameters.find((parameter) => parameter.trim().startsWith(\"q=\"))?.split(\"=\")[1] ?? 1);\n return { locale: canonicalLocale(tag), q: Number.isFinite(q) ? q : 0, order };\n }).filter(({ locale, q }) => locale && q > 0).sort((a, b) => b.q - a.q || a.order - b.order);\n}\n\n/** The family registry — what every helper in this package uses by default. */\nexport const FAMILY_LOCALES = defineLocaleRegistry();\n\nexport const { canonicalLocale, localeAttributes, resolveLocale } = FAMILY_LOCALES;\n\n/**\n * Every language's href as plain data: `{ ko: \"/ko\", en: \"/en\", … }`.\n *\n * For a React Server Component that renders the `@devslab/site-kit/react`\n * chrome. A function cannot cross from a Server Component to a Client\n * Component, so the locale state goes over as `{ locale, hrefs }` instead of\n * `{ locale, hrefForLocale }`. It lives here, in the framework-free entry, and\n * not in `./react`: everything exported from a \"use client\" module is a client\n * reference on the server, which a Server Component can render but not call.\n *\n * @param {{ LOCALES: ReadonlyArray<{ code: string }> }} registry\n * @param {(locale: string) => string} hrefForLocale\n * @returns {Record<string, string>}\n */\nexport function localeHrefs(registry, hrefForLocale) {\n return Object.fromEntries(registry.LOCALES.map((entry) => [entry.code, hrefForLocale(entry.code)]));\n}\n","/* Generated by scripts/build-flags.mjs — do not edit. Source: flags/*.svg (flag-icons, MIT). Copyright (c) 2013 Panayiotis Lipiridis */\nexport const FLAG_COUNTRY = Object.freeze({\n \"ko\": \"kr\",\n \"en\": \"us\",\n \"ja\": \"jp\",\n \"zh-HK\": \"hk\",\n \"zh-TW\": \"tw\",\n \"hi\": \"in\",\n \"vi\": \"vn\",\n \"id\": \"id\",\n \"th\": \"th\",\n \"pt-BR\": \"br\",\n \"fr\": \"fr\",\n \"de\": \"de\",\n \"es\": \"es\",\n \"ar\": \"sa\"\n});\n\n/** Every vendored flag is 4:3 on this box, so any <use> can point at any symbol. */\nexport const FLAG_VIEWBOX = \"0 0 640 480\";\n\nconst VENDORED = new Set([...Object.values(FLAG_COUNTRY), ...[\"my\",\"la\",\"kh\",\"mm\",\"ph\",\"mn\"]]);\n\n/**\n * The country whose flag stands for a locale — a family locale through\n * FLAG_COUNTRY, a product's own through its registry's `flagCountry`.\n * Same lookup order and errors as `flagFor`, without loading a body.\n *\n * @param {string} locale\n * @param {{ LOCALES?: ReadonlyArray<{ code: string, flagCountry?: string }> }} [registry]\n * @returns {string}\n */\nexport function flagCountryFor(locale, registry) {\n const country = FLAG_COUNTRY[locale];\n if (country) return country;\n const extra = registry?.LOCALES?.find((definition) => definition.code === locale);\n if (extra?.flagCountry) {\n if (VENDORED.has(extra.flagCountry)) return extra.flagCountry;\n throw new RangeError(`No vendored flag for country: ${extra.flagCountry} (locale ${locale})`);\n }\n throw new RangeError(`No flag for locale: ${locale}`);\n}\n","import type { SiteLocale } from \"@devslab/site-kit\";\nimport type { LocaleState } from \"./types\";\n\n/**\n * The href of one language's copy of the page, from either form of the state.\n *\n * A `hrefs` map that lacks a language the menu lists throws instead of\n * rendering `href=\"undefined\"`: a broken language link that still looks like\n * one is worse than a page that fails where the map was built.\n */\nexport function hrefFor(state: LocaleState, locale: string): string {\n if (state.hrefForLocale) return state.hrefForLocale(locale as SiteLocale);\n const href = state.hrefs?.[locale];\n if (typeof href !== \"string\") {\n throw new RangeError(`LocaleState.hrefs has no href for locale: ${locale}`);\n }\n return href;\n}\n","import { useEffect, useId, useRef, useState, type KeyboardEvent } from \"react\";\n\nimport type { LocaleRegistry, SiteLocale } from \"@devslab/site-kit\";\nimport { FAMILY_LOCALES } from \"../core/locales.mjs\";\nimport { FLAG_VIEWBOX, flagCountryFor } from \"../core/flag-countries.mjs\";\nimport { flagBodiesNow, loadFlagBodies, type FlagBodies } from \"./flag-bodies\";\nimport { hrefFor } from \"./locale-state\";\nimport type { LocaleList, LocaleState, SiteMessages } from \"./types\";\n\nexport type LocaleMenuVariant = \"select\" | \"flag\";\n\n/**\n * A standalone language picker — the one SiteHeader composes, and the one a\n * footer or an app screen (a settings page) renders on its own. It reads one\n * string, so a screen outside the marketing chrome does not need the whole\n * SiteMessages catalog.\n */\nexport interface LocaleMenuProps {\n state: LocaleState;\n messages: Pick<SiteMessages, \"localeLabel\">;\n variant?: LocaleMenuVariant;\n onLocaleChange?: (locale: SiteLocale, href: string) => void;\n /**\n * The languages to offer. Defaults to the family's fourteen; a product that\n * sells in fewer (or more) passes the registry it built with\n * `defineLocaleRegistry` — or, from a Server Component, its\n * `{ LOCALES: registry.LOCALES }` (see LocaleList).\n */\n registry?: LocaleList;\n}\n\nconst registryOf = (props: LocaleMenuProps): LocaleList => props.registry ?? FAMILY_LOCALES;\n\n// flagCountryFor reads only `LOCALES` (its JSDoc says so); its generated\n// declaration names the whole registry type.\nconst countryOf = (locale: string, registry: LocaleList) => flagCountryFor(locale, registry as LocaleRegistry<string>);\n\n/**\n * `useId` is the one id the server and the client agree on. Its punctuation\n * («r0», :r0:, _r_0_ depending on the React version) is stripped so the id is\n * safe inside `url(#…)`, a fragment and a CSS selector; what is left is still\n * unique per menu.\n */\nconst useMenuUid = () => `rx${useId().replace(/[^A-Za-z0-9_-]/g, \"\")}`;\n\nfunction scopeFlagIds(body: string, uid: string): string {\n const ids = [...body.matchAll(/\\bid=\"([^\"]+)\"/g)].map((match) => match[1]!);\n if (ids.length === 0) return body;\n let scoped = body;\n for (const id of ids) {\n const suffixed = `${id}-${uid}`;\n scoped = scoped\n .replaceAll(`id=\"${id}\"`, `id=\"${suffixed}\"`)\n .replaceAll(`href=\"#${id}\"`, `href=\"#${suffixed}\"`)\n .replaceAll(`url(#${id})`, `url(#${suffixed})`);\n }\n return scoped;\n}\n\nconst symbolId = (country: string, uid: string) => `site-flag-${country}-${uid}`;\n\nfunction spriteMarkup(countries: readonly string[], bodies: FlagBodies, uid: string): string {\n return countries.map((country) => {\n const flag = bodies[country];\n if (!flag) throw new RangeError(`No vendored flag for country: ${country}`);\n return `<symbol id=\"${symbolId(country, uid)}\" viewBox=\"${flag.viewBox}\">${scopeFlagIds(flag.body, uid)}</symbol>`;\n }).join(\"\");\n}\n\n/**\n * One copy of each flag the menu shows, as <symbol>s the flags <use> (D-020).\n *\n * The server build has the bodies and writes the sprite into the HTML. The\n * browser build does not have them, so on hydration it takes the sprite's\n * markup from the element the server wrote — the same string React then\n * compares, so nothing is patched and nothing is warned about. Only a render\n * with no server HTML (a client-only app, a jsdom test) finds no sprite and\n * fetches the bodies through `loadFlagBodies`, which is its own chunk.\n *\n * Whether the server wrote it is decided by looking at the element, not by\n * guessing whether this is a hydration — the lesson the Solid side learned\n * when a drifted hydration recreated an empty sprite (D-027).\n */\nfunction FlagSprite({ countries, uid }: { countries: readonly string[]; uid: string }) {\n const countriesKey = countries.join(\",\");\n const [markup, setMarkup] = useState<string | null>(() => {\n const bodies = flagBodiesNow();\n if (bodies) return spriteMarkup(countries, bodies, uid);\n if (typeof document === \"undefined\") return null;\n const written = document.querySelector(`svg.site-flag-sprite[data-flag-sprite=\"${uid}\"]`);\n return written && written.childElementCount > 0 ? written.innerHTML : null;\n });\n useEffect(() => {\n if (markup !== null) return;\n let live = true;\n void loadFlagBodies().then((loaded) => {\n if (live) setMarkup(spriteMarkup(countries, loaded, uid));\n });\n return () => { live = false; };\n // countries is compared by its contents, not its identity.\n }, [markup, countriesKey, uid]);\n return (\n <svg\n className=\"site-flag-sprite\"\n aria-hidden=\"true\"\n data-flag-sprite={uid}\n {...(markup === null ? {} : { dangerouslySetInnerHTML: { __html: markup } })}\n />\n );\n}\n\nfunction Flag({ locale, className, registry, uid }: { locale: string; className?: string; registry: LocaleList; uid: string }) {\n const country = countryOf(locale, registry);\n return (\n <svg className={className} viewBox={FLAG_VIEWBOX} aria-hidden=\"true\">\n <use href={`#${symbolId(country, uid)}`} />\n </svg>\n );\n}\n\nfunction SelectLocaleMenu(props: LocaleMenuProps) {\n const registry = registryOf(props);\n return (\n <label>\n <span className=\"dds-sr-only\">{props.messages.localeLabel}</span>\n <span className=\"dds-select site-locale\">\n <select\n className=\"dds-select__input\"\n aria-label={props.messages.localeLabel}\n // React writes `selected` on the matching <option> in server HTML,\n // which is what the browser reads; a bare `value` attribute on\n // <select> is ignored (the Solid side learned this on a deployed worker).\n value={props.state.locale}\n onChange={(event) => {\n const locale = event.currentTarget.value as SiteLocale;\n const href = hrefFor(props.state, locale);\n if (props.onLocaleChange) props.onLocaleChange(locale, href);\n else window.location.assign(href);\n }}\n >\n {registry.LOCALES.map((locale) => (\n <option key={locale.code} value={locale.code} lang={locale.code} dir={locale.dir}>\n {locale.nativeName}\n </option>\n ))}\n </select>\n </span>\n </label>\n );\n}\n\nfunction FlagLocaleMenu(props: LocaleMenuProps) {\n const details = useRef<HTMLDetailsElement>(null);\n const trigger = useRef<HTMLElement>(null);\n const uid = useMenuUid();\n const registry = registryOf(props);\n const countries = [...new Set(registry.LOCALES.map((entry) => countryOf(entry.code, registry)))];\n const current = registry.LOCALES.find((entry) => entry.code === props.state.locale);\n const close = () => { if (details.current) details.current.open = false; };\n const onKeyDown = (event: KeyboardEvent<HTMLDetailsElement>) => {\n if (event.key !== \"Escape\" || !details.current?.open) return;\n event.preventDefault();\n close();\n trigger.current?.focus();\n };\n const name = current?.nativeName;\n const triggerLabel = name ? `${props.messages.localeLabel}: ${name}` : props.messages.localeLabel;\n return (\n <details ref={details} className=\"site-locale-flag\" onKeyDown={onKeyDown}>\n <summary ref={trigger} className=\"site-locale-flag__trigger\" aria-label={triggerLabel} title={props.messages.localeLabel}>\n <FlagSprite countries={countries} uid={uid} />\n <Flag locale={props.state.locale} className=\"site-locale-flag__svg\" registry={registry} uid={uid} />\n </summary>\n <ul className=\"site-locale-flag__list\" role=\"list\">\n {registry.LOCALES.map((entry) => {\n const href = hrefFor(props.state, entry.code);\n return (\n <li key={entry.code}>\n <a\n className=\"site-locale-flag__option\"\n href={href}\n lang={entry.code}\n hrefLang={entry.code}\n dir={entry.dir}\n aria-current={entry.code === props.state.locale ? \"true\" : undefined}\n onClick={(event) => {\n if (!props.onLocaleChange) return;\n event.preventDefault();\n close();\n props.onLocaleChange(entry.code as SiteLocale, href);\n }}\n >\n <Flag locale={entry.code} className=\"site-locale-flag__svg\" registry={registry} uid={uid} />\n <span>{entry.nativeName}</span>\n </a>\n </li>\n );\n })}\n </ul>\n </details>\n );\n}\n\nexport function LocaleMenu(props: LocaleMenuProps) {\n return props.variant === \"flag\" ? <FlagLocaleMenu {...props} /> : <SelectLocaleMenu {...props} />;\n}\n","import type { ReactNode } from \"react\";\n\nimport type { ConsentManager, ConsentMessages } from \"@devslab/site-kit\";\n\nexport type { ConsentManager, ConsentMessages };\n\nexport interface ConsentSettingsButtonProps {\n controller: ConsentManager;\n children: ReactNode;\n className?: string;\n}\n\n/**\n * Re-opens the consent settings from anywhere — the footer's \"쿠키 설정\", an\n * account page (D-034). Same markup as the Solid button. The settings\n * dialog listens on the same controller.\n */\nexport function ConsentSettingsButton(props: ConsentSettingsButtonProps) {\n return (\n <button\n type=\"button\"\n className={props.className ? `site-consent-trigger ${props.className}` : \"site-consent-trigger\"}\n aria-haspopup=\"dialog\"\n onClick={() => props.controller.openSettings()}\n >{props.children}</button>\n );\n}\n","import { directionPolicy, icons, type DdsIconName } from \"@devslab/dds-icons\";\nimport type { ButtonHTMLAttributes, SVGProps } from \"react\";\n\n/**\n * The three DDS controls the chrome needs, drawn as the same markup\n * `@devslab/dds-react` and `@devslab/dds-solid` render — same classes, same\n * attributes — so `@devslab/dds-css` styles them identically.\n *\n * Why not import them from `@devslab/dds-react`: as a dependency it would\n * install React, Ark UI and a virtualizer into every Solid product that uses\n * this package; as a peer, a fixed-group release would turn every dds-react\n * minor into a site-kit major (changesets bumps peer dependents to major).\n * The chrome uses a button, an icon button and an icon, with no behaviour\n * beyond a click — markup, not a dependency. Anything with real behaviour (a\n * dialog with a focus trap) is not copied here; see the ConsentBanner note in\n * index.ts.\n */\n\nconst classes = (...values: (string | false | undefined)[]) => values.filter(Boolean).join(\" \");\n\nexport type ButtonTone = \"primary\" | \"secondary\" | \"ghost\" | \"danger\";\n\nexport interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {\n tone?: ButtonTone;\n}\n\nexport function Button({ tone = \"primary\", type = \"button\", className, ...rest }: ButtonProps) {\n return <button {...rest} type={type} className={classes(\"dds-btn\", `dds-btn--${tone}`, className)} />;\n}\n\nexport interface IconButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {\n \"aria-label\": string;\n tone?: \"ghost\" | \"secondary\" | \"danger\";\n}\n\nexport function IconButton({ tone = \"ghost\", type = \"button\", className, ...rest }: IconButtonProps) {\n return <button {...rest} type={type} className={classes(\"dds-iconbtn\", tone !== \"ghost\" && `dds-iconbtn--${tone}`, className)} />;\n}\n\nexport interface IconProps extends Omit<SVGProps<SVGSVGElement>, \"name\" | \"children\"> {\n name: DdsIconName;\n size?: number;\n}\n\nexport function Icon({ name, size = 24, className, ...rest }: IconProps) {\n const icon = icons[name];\n return (\n <svg\n {...rest}\n viewBox={icon.viewBox}\n width={size}\n height={size}\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth={icon.strokeWidth}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n className={classes(directionPolicy.mirrorInRtl.includes(name) && directionPolicy.cssClass, className) || undefined}\n >\n <g dangerouslySetInnerHTML={{ __html: icon.body }} />\n </svg>\n );\n}\n","import { Fragment, useEffect, useRef, useState, type KeyboardEvent, type MouseEvent, type ReactNode } from \"react\";\n\nimport { LocaleMenu, type LocaleMenuProps, type LocaleMenuVariant } from \"./locale-menu\";\nimport { ConsentSettingsButton } from \"./consent\";\nimport { hrefFor } from \"./locale-state\";\nimport { Button, Icon, IconButton } from \"./primitives\";\nimport type { ConsentManager } from \"@devslab/site-kit\";\nimport { FAMILY_LOCALES } from \"../core/locales.mjs\";\nimport type { LocaleList, LocaleState, SiteBrand, SiteLink, SiteMessages, ThemePreference } from \"./types\";\n\nexport type { LocaleMenuProps };\n\nexport interface ThemeToggleProps {\n messages: SiteMessages;\n value?: ThemePreference;\n defaultValue?: ThemePreference;\n onValueChange?: (theme: ThemePreference) => void;\n storageKey?: string;\n}\n\nconst THEMES: ThemePreference[] = [\"system\", \"light\", \"dark\"];\n\n/**\n * Two states on screen, three in storage — the Solid ThemeToggle, line for\n * line. The server cannot know the visitor's theme, so the first render (on\n * the server and in hydration) always shows the \"switch to dark\" icon; the\n * stored preference is applied after mount, which is the same moment on both\n * sides and so cannot drift.\n */\nexport function ThemeToggle(props: ThemeToggleProps) {\n const storageKey = props.storageKey ?? \"site-theme\";\n const [internal, setInternal] = useState<ThemePreference>(props.defaultValue ?? \"system\");\n const [resolved, setResolved] = useState<\"light\" | \"dark\">(\"light\");\n const nextTheme = resolved === \"dark\" ? \"light\" : \"dark\";\n const nextLabel = nextTheme === \"dark\" ? props.messages.themeDark : props.messages.themeLight;\n const apply = (theme: ThemePreference) => {\n const next = theme === \"system\"\n ? (matchMedia(\"(prefers-color-scheme: dark)\").matches ? \"dark\" : \"light\")\n : theme;\n setResolved(next);\n document.documentElement.dataset.theme = next;\n document.documentElement.dataset.themePreference = theme;\n };\n const update = (theme: ThemePreference) => {\n if (props.value === undefined) setInternal(theme);\n props.onValueChange?.(theme);\n apply(theme);\n localStorage.setItem(storageKey, theme);\n };\n useEffect(() => {\n const stored = localStorage.getItem(storageKey) as ThemePreference | null;\n const known = stored && THEMES.includes(stored) ? stored : null;\n if (props.value === undefined && known) setInternal(known);\n apply(props.value ?? known ?? internal);\n // Applied once, on mount — the Solid onMount. Later changes go through update().\n }, []);\n const icon = nextTheme === \"dark\" ? \"site-moon\" : \"site-sun\";\n return (\n <IconButton\n className=\"site-theme-toggle\"\n tone=\"ghost\"\n aria-label={`${props.messages.themeLabel}: ${nextLabel}`}\n title={`${props.messages.themeLabel}: ${nextLabel}`}\n onClick={() => update(nextTheme)}\n >\n <Icon className=\"site-theme-toggle__icon\" name={icon} data-icon={icon} size={20} />\n </IconButton>\n );\n}\n\nexport interface SiteHeaderProps {\n brand: SiteBrand;\n navigation: SiteLink[];\n /**\n * The language picker's state. Omit it and no picker is rendered — a\n * single-language product has nothing to pick, and a picker with one entry\n * reads as broken.\n */\n locale?: LocaleState;\n messages: SiteMessages;\n theme?: Omit<ThemeToggleProps, \"messages\">;\n onLocaleChange?: LocaleMenuProps[\"onLocaleChange\"];\n localeVariant?: LocaleMenuVariant;\n /** The languages the picker offers. Defaults to the family's fourteen. See LocaleList. */\n localeRegistry?: LocaleList;\n actions?: ReactNode;\n}\n\n/** The emphasis class a `SiteLink` asks for, or none. */\nconst linkClass = (item: SiteLink) => (item.emphasis ? \"site-link--emphasis\" : undefined);\n\nexport function SiteHeader(props: SiteHeaderProps) {\n const [menuOpen, setMenuOpen] = useState(false);\n // The narrow-screen menu closes the way a menu is expected to (D-029).\n // Escape closes it and puts focus back on the button that opened it —\n // unless a control inside already used that Escape (the flag menu closes\n // itself first and marks the event handled, so one press closes one layer),\n // or it came from inside a modal, which owns its own Escape. Following a link\n // inside it closes it too: a same-page anchor (\"#contact\") scrolls the page\n // but leaves the document in place, and the open menu would keep covering\n // the section just asked for. Buttons (the theme toggle) leave it open, and\n // so does a link that opens a new tab or window, or one clicked with a\n // modifier key.\n const onKeyDown = (event: KeyboardEvent<HTMLElement>) => {\n if (event.key !== \"Escape\" || event.defaultPrevented || !menuOpen) return;\n if ((event.target as Element | null)?.closest('[aria-modal=\"true\"]')) return;\n event.preventDefault();\n setMenuOpen(false);\n event.currentTarget.querySelector<HTMLButtonElement>(\".site-menu-button\")?.focus();\n };\n const closeOnLink = (event: MouseEvent<HTMLElement>) => {\n const link = (event.target as Element | null)?.closest(\"a\");\n if (!menuOpen || !link) return;\n if (event.ctrlKey || event.metaKey || event.shiftKey || event.altKey) return;\n if (link.target && link.target !== \"_self\") return;\n setMenuOpen(false);\n };\n const open = String(menuOpen);\n return (\n <header className=\"site-header\" onKeyDown={onKeyDown}>\n <a className=\"dds-sr-only\" href=\"#main-content\">{props.messages.skipToContent}</a>\n <div className=\"site-header__inner\">\n <a className=\"site-brand\" href={props.brand.href} aria-label={props.brand.label}>{props.brand.logo}{props.brand.name}</a>\n <Button className=\"site-menu-button\" tone=\"ghost\" aria-expanded={menuOpen} aria-controls=\"site-navigation\" onClick={() => setMenuOpen((value) => !value)}>\n {menuOpen ? props.messages.menuClose : props.messages.menuOpen}\n </Button>\n <nav id=\"site-navigation\" className=\"site-nav\" data-open={open} aria-label={props.messages.navigationLabel} onClick={closeOnLink}>\n <ul className=\"site-nav__list\">\n {props.navigation.map((item) => (\n <li key={item.href}>\n <a className={linkClass(item)} href={item.href} target={item.external ? \"_blank\" : undefined} rel={item.external ? \"noreferrer\" : undefined}>{item.label}</a>\n </li>\n ))}\n </ul>\n </nav>\n <div className=\"site-header__controls\" data-open={open} onClick={closeOnLink}>\n {props.locale && (\n <LocaleMenu\n state={props.locale}\n messages={props.messages}\n {...(props.localeVariant ? { variant: props.localeVariant } : {})}\n {...(props.localeRegistry ? { registry: props.localeRegistry } : {})}\n {...(props.onLocaleChange ? { onLocaleChange: props.onLocaleChange } : {})}\n />\n )}\n {props.theme && <ThemeToggle {...props.theme} messages={props.messages} />}\n {props.actions}\n </div>\n </div>\n </header>\n );\n}\n\n/**\n * The footer's language row, collapsed behind the current language's own\n * name — every anchor stays in the document, so a crawler follows them all and\n * the row works with no JavaScript. Escape returns focus to the trigger.\n */\nfunction FooterLocaleMenu(props: {\n state: LocaleState;\n registry: LocaleList;\n label: string;\n onSelect: ((locale: string) => void) | undefined;\n}) {\n const details = useRef<HTMLDetailsElement>(null);\n const trigger = useRef<HTMLElement>(null);\n const current = props.registry.LOCALES.find((entry) => entry.code === props.state.locale);\n const onKeyDown = (event: KeyboardEvent<HTMLDetailsElement>) => {\n if (event.key !== \"Escape\" || !details.current?.open) return;\n event.preventDefault();\n details.current.open = false;\n trigger.current?.focus();\n };\n const name = current?.nativeName ?? props.state.locale;\n return (\n <nav className=\"site-footer__langs\" aria-label={props.label}>\n <details ref={details} className=\"site-footer__langs-menu\" onKeyDown={onKeyDown}>\n <summary ref={trigger} className=\"site-footer__langs-trigger\" aria-label={`${props.label}: ${name}`}>\n <span lang={current?.code} dir={current?.dir}>{name}</span>\n </summary>\n <ul className=\"site-footer__langs-list\" role=\"list\">\n {props.registry.LOCALES.map((entry) => (\n <li key={entry.code}>\n <a\n href={hrefFor(props.state, entry.code)}\n hrefLang={entry.code}\n lang={entry.code}\n dir={entry.dir}\n aria-current={entry.code === props.state.locale ? \"page\" : undefined}\n onClick={() => props.onSelect?.(entry.code)}\n >{entry.nativeName}</a>\n </li>\n ))}\n </ul>\n </details>\n </nav>\n );\n}\n\nexport interface SiteFooterProps {\n brand: SiteBrand;\n links: SiteLink[];\n copyright: string;\n /** Wraps the copyright in a link — the family site, usually. */\n copyrightHref?: string;\n messages: SiteMessages;\n /** The language row. Omit it and no row is rendered. */\n locale?: LocaleState;\n /** The languages the row lists. Defaults to the family's fourteen. See LocaleList. */\n localeRegistry?: LocaleList;\n /** Called with the picked code before the browser follows the link. */\n onLocaleSelect?: (locale: string) => void;\n /** Links after the brand name, middot-separated: the family line, the operator. */\n family?: SiteLink[];\n /** A block under the brand line: business registration, address. */\n details?: ReactNode;\n /** Names the link list as its own `<nav>` landmark. Without it, a plain list. */\n linksLabel?: string;\n /** A \"쿠키 설정\" button that re-opens the consent settings (D-034). */\n consentSettings?: { controller: ConsentManager; label: string };\n}\n\n/** The family footer: a language row, then the brand and its family links, then the page's links and the copyright. */\nexport function SiteFooter(props: SiteFooterProps) {\n const registry: LocaleList = props.localeRegistry ?? FAMILY_LOCALES;\n const brandLine = (\n <p className=\"site-footer__brand\">\n {props.brand.logo}\n {/* A wordmark passed as the logo comes with `name: \"\"`; no empty <strong>. */}\n {props.brand.name ? <strong>{props.brand.name}</strong> : null}\n {(props.family ?? []).map((item) => (\n <Fragment key={item.href}>\n <span aria-hidden=\"true\">·</span>\n <a className={linkClass(item)} href={item.href}>{item.label}</a>\n </Fragment>\n ))}\n </p>\n );\n const linkList = (\n <ul className=\"site-footer__links\">\n {props.links.map((item) => <li key={item.href}><a className={linkClass(item)} href={item.href}>{item.label}</a></li>)}\n {props.consentSettings && (\n <li><ConsentSettingsButton controller={props.consentSettings.controller}>{props.consentSettings.label}</ConsentSettingsButton></li>\n )}\n {/* <bdi> keeps \"© 2026 DevsLab\" in writing order on an RTL page. */}\n <li>{props.copyrightHref ? <a href={props.copyrightHref}><bdi>{props.copyright}</bdi></a> : <bdi>{props.copyright}</bdi>}</li>\n </ul>\n );\n return (\n <footer className=\"site-footer\" aria-label={props.messages.footerLabel}>\n <div className=\"site-footer__inner\">\n {props.locale && (\n <FooterLocaleMenu state={props.locale} registry={registry} label={props.messages.localeLabel} onSelect={props.onLocaleSelect} />\n )}\n <div className=\"site-footer__row\">\n {props.details\n ? (\n <div className=\"site-footer__identity\">\n {brandLine}\n <div className=\"site-footer__details\">{props.details}</div>\n </div>\n )\n : brandLine}\n {props.linksLabel ? <nav className=\"site-footer__nav\" aria-label={props.linksLabel}>{linkList}</nav> : linkList}\n </div>\n </div>\n </footer>\n );\n}\n","import type { ReactNode } from \"react\";\n\nimport { SiteFooter, SiteHeader, type SiteFooterProps, type SiteHeaderProps } from \"./chrome\";\nimport { Button, type ButtonTone } from \"./primitives\";\nimport type { SiteMessages } from \"./types\";\n\nexport interface MarketingShellProps {\n header: SiteHeaderProps;\n footer: SiteFooterProps;\n messages: SiteMessages;\n children: ReactNode;\n /** \"bleed\" removes the shell's max-width/inset from <main> — for pages composed from\n * full-bleed section primitives, each of which carries its own inner width. Default \"shell\". */\n mainWidth?: \"shell\" | \"bleed\";\n}\n\n/**\n * Header, main, footer. React props are values, not getters, so the Solid\n * shell's read-once memo (D-027) has no counterpart here: a `header={{ … }}`\n * literal is built once per render on each side, in the same order.\n */\nexport function MarketingShell(props: MarketingShellProps) {\n const mainClass = props.mainWidth === \"bleed\" ? \"site-main site-main--bleed\" : \"site-main\";\n return (\n <div className=\"site-shell\">\n <SiteHeader {...props.header} />\n <main id=\"main-content\" className={mainClass} tabIndex={-1}>{props.children}</main>\n <SiteFooter {...props.footer} />\n </div>\n );\n}\n\nexport interface LegalLayoutProps {\n title: string;\n updatedAt: string;\n messages: SiteMessages;\n children: ReactNode;\n}\n\nexport function LegalLayout(props: LegalLayoutProps) {\n return (\n <article className=\"site-legal\">\n <header>\n <h1>{props.title}</h1>\n <p>{props.messages.updatedLabel}: <time dateTime={props.updatedAt}>{props.updatedAt}</time></p>\n </header>\n {props.children}\n </article>\n );\n}\n\nexport interface StatusBannerProps {\n tone: \"success\" | \"warning\" | \"danger\" | \"info\";\n title: string;\n children?: ReactNode;\n action?: { label: string; onClick: () => void; tone?: ButtonTone };\n}\n\nexport function StatusBanner(props: StatusBannerProps) {\n return (\n <section\n className={`site-status site-status--${props.tone}`}\n role={props.tone === \"danger\" ? \"alert\" : \"status\"}\n aria-live={props.tone === \"danger\" ? \"assertive\" : \"polite\"}\n >\n <strong>{props.title}</strong>\n {props.children ? <div>{props.children}</div> : null}\n {props.action && <Button tone={props.action.tone ?? \"secondary\"} onClick={props.action.onClick}>{props.action.label}</Button>}\n </section>\n );\n}\n\nexport interface NotFoundLayoutProps { messages: SiteMessages; homeHref: string; children?: ReactNode }\nexport function NotFoundLayout(props: NotFoundLayoutProps) {\n return (\n <main className=\"site-main site-centered-layout\">\n <h1>{props.messages.notFoundTitle}</h1>\n <p>{props.messages.notFoundDescription}</p>\n {props.children}\n <a className=\"dds-btn dds-btn--primary\" href={props.homeHref}>{props.messages.backHome}</a>\n </main>\n );\n}\n\nexport interface ErrorLayoutProps { messages: SiteMessages; onRetry: () => void; errorId?: string; children?: ReactNode }\nexport function ErrorLayout(props: ErrorLayoutProps) {\n return (\n <main className=\"site-main site-centered-layout\">\n <h1>{props.messages.errorTitle}</h1>\n <p>{props.messages.errorDescription}</p>\n {props.errorId && <code>{props.errorId}</code>}\n {props.children}\n <Button tone=\"primary\" onClick={props.onRetry}>{props.messages.retry}</Button>\n </main>\n );\n}\n","export interface OssProductMarkProps {\n name: string;\n src: string;\n size?: \"sm\" | \"md\" | \"lg\";\n decorative?: boolean;\n className?: string;\n}\n\nconst MARK_SIZE = { sm: 24, md: 32, lg: 48 } as const;\n\nexport function OssProductMark(props: OssProductMarkProps) {\n const size = props.size ?? \"md\";\n const pixels = MARK_SIZE[size];\n return (\n <img\n className={`oss-product-mark oss-product-mark--${size}${props.className ? ` ${props.className}` : \"\"}`}\n src={props.src}\n alt={props.decorative ? \"\" : props.name}\n aria-hidden={props.decorative ? \"true\" : undefined}\n width={pixels}\n height={pixels}\n decoding=\"async\"\n />\n );\n}\n","import type { ReactNode } from \"react\";\n\n/**\n * Section primitives — the rhythm of a family landing page. The Solid\n * primitives, same classes (site-sections.css), same two glyph systems:\n * SectionHead.index is the section's mono \"01\", StepFlow markers are a\n * sequence's plain \"1\". Stateless.\n */\n\nexport interface SectionBlockProps {\n id: string;\n labelledBy: string;\n /** `band` steps the background down one token (bg-subtle) — a decision, not a tint. */\n tone?: \"default\" | \"band\";\n children: ReactNode;\n}\n\nexport function SectionBlock(props: SectionBlockProps) {\n return (\n <section className=\"site-section\" id={props.id} data-tone={props.tone ?? \"default\"} aria-labelledby={props.labelledBy}>\n <div className=\"site-section__shell\">{props.children}</div>\n </section>\n );\n}\n\nexport interface SectionHeadProps {\n /** Mono, zero-padded index (\"01\"). Decorative — hidden from assistive tech. */\n index: string;\n title: string;\n titleId: string;\n lede?: string;\n}\n\nexport function SectionHead(props: SectionHeadProps) {\n return (\n <header className=\"site-section__head\">\n <p className=\"site-section__index\" aria-hidden=\"true\">{props.index}</p>\n <h2 id={props.titleId}>{props.title}</h2>\n {props.lede ? <p className=\"site-section__lede\">{props.lede}</p> : null}\n </header>\n );\n}\n\nexport interface HeroSplitProps {\n id?: string;\n eyebrow?: string;\n title: string;\n titleId: string;\n lede: string;\n actions: ReactNode;\n /** The product's own scene. Its height is the consumer's decision. */\n aside: ReactNode;\n asideLabel: string;\n}\n\nexport function HeroSplit(props: HeroSplitProps) {\n return (\n <section id={props.id} className=\"site-hero\" aria-labelledby={props.titleId}>\n <div className=\"site-hero__shell\">\n <div className=\"site-hero__copy\">\n {props.eyebrow ? <p className=\"site-hero__eyebrow\">{props.eyebrow}</p> : null}\n <h1 id={props.titleId}>{props.title}</h1>\n <p className=\"site-hero__lede\">{props.lede}</p>\n <div className=\"site-hero__actions\">{props.actions}</div>\n </div>\n <figure className=\"site-hero__aside\" aria-label={props.asideLabel}>{props.aside}</figure>\n </div>\n </section>\n );\n}\n\nexport interface StepFlowStep { title: string; body: string }\n\nexport interface StepFlowProps {\n steps: ReadonlyArray<StepFlowStep>;\n /** Accessible name for the list — pass the section title's words, localized. */\n label?: string;\n}\n\nexport function StepFlow(props: StepFlowProps) {\n return (\n <ol className=\"site-steps\" aria-label={props.label}>\n {props.steps.map((step, index) => (\n <li key={index} className=\"site-steps__step\">\n <span className=\"site-steps__marker\" aria-hidden=\"true\">{index + 1}</span>\n <h3>{step.title}</h3>\n <p>{step.body}</p>\n </li>\n ))}\n </ol>\n );\n}\n\nexport interface FeatureRow { title: string; body: string; badge?: string }\n\nexport interface FeatureRowsProps {\n rows: ReadonlyArray<FeatureRow>;\n label?: string;\n}\n\n/** Hairline rows — a card grid is the thing this primitive exists to replace. */\nexport function FeatureRows(props: FeatureRowsProps) {\n return (\n <ul className=\"site-rows\" aria-label={props.label}>\n {props.rows.map((row, index) => (\n <li key={index} className=\"site-rows__row\">\n <div className=\"site-rows__title\">\n <h3>{row.title}</h3>\n {row.badge ? <span className=\"dds-badge dds-badge--brand\">{row.badge}</span> : null}\n </div>\n <p className=\"site-rows__body\">{row.body}</p>\n </li>\n ))}\n </ul>\n );\n}\n\nexport interface PricingNoteProps {\n children: ReactNode;\n action: ReactNode;\n}\n\n/** One paragraph block, one action. No table, no tiers — a note, not a pricing page. */\nexport function PricingNote(props: PricingNoteProps) {\n return (\n <div className=\"site-pricing\">\n <div className=\"site-pricing__note\">{props.children}</div>\n <div className=\"site-pricing__action\">{props.action}</div>\n </div>\n );\n}\n"],"mappings":";;;;;;AAAA,IAAa,IAAU,OAAO,OAAO;CACnC;EAAE,MAAM;EAAM,UAAU;EAAU,YAAY;EAAO,KAAK;CAAM;CAChE;EAAE,MAAM;EAAM,UAAU;EAAW,YAAY;EAAW,KAAK;CAAM;CACrE;EAAE,MAAM;EAAM,UAAU;EAAY,YAAY;EAAO,KAAK;CAAM;CAClE;EAAE,MAAM;EAAS,UAAU;EAAuB,YAAY;EAAY,KAAK;CAAM;CACrF;EAAE,MAAM;EAAS,UAAU;EAAoB,YAAY;EAAY,KAAK;CAAM;CAClF;EAAE,MAAM;EAAM,UAAU;EAAS,YAAY;EAAU,KAAK;CAAM;CAClE;EAAE,MAAM;EAAM,UAAU;EAAc,YAAY;EAAc,KAAK;CAAM;CAC3E;EAAE,MAAM;EAAM,UAAU;EAAc,YAAY;EAAoB,KAAK;CAAM;CACjF;EAAE,MAAM;EAAM,UAAU;EAAQ,YAAY;EAAO,KAAK;CAAM;CAC9D;EAAE,MAAM;EAAS,UAAU;EAAuB,YAAY;EAAsB,KAAK;CAAM;CAC/F;EAAE,MAAM;EAAM,UAAU;EAAU,YAAY;EAAY,KAAK;CAAM;CACrE;EAAE,MAAM;EAAM,UAAU;EAAU,YAAY;EAAW,KAAK;CAAM;CACpE;EAAE,MAAM;EAAM,UAAU;EAAW,YAAY;EAAW,KAAK;CAAM;CACrE;EAAE,MAAM;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AD;GAAK,WAAU;GAAwB,UAAA,EAAM;EAAY,CAAA,CACtD;;AAET"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import { type SiteFooterProps, type SiteHeaderProps } from "./chrome";
|
|
3
|
+
import { type ButtonTone } from "./primitives";
|
|
4
|
+
import type { SiteMessages } from "./types";
|
|
5
|
+
export interface MarketingShellProps {
|
|
6
|
+
header: SiteHeaderProps;
|
|
7
|
+
footer: SiteFooterProps;
|
|
8
|
+
messages: SiteMessages;
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
/** "bleed" removes the shell's max-width/inset from <main> — for pages composed from
|
|
11
|
+
* full-bleed section primitives, each of which carries its own inner width. Default "shell". */
|
|
12
|
+
mainWidth?: "shell" | "bleed";
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Header, main, footer. React props are values, not getters, so the Solid
|
|
16
|
+
* shell's read-once memo (D-027) has no counterpart here: a `header={{ … }}`
|
|
17
|
+
* literal is built once per render on each side, in the same order.
|
|
18
|
+
*/
|
|
19
|
+
export declare function MarketingShell(props: MarketingShellProps): import("react").JSX.Element;
|
|
20
|
+
export interface LegalLayoutProps {
|
|
21
|
+
title: string;
|
|
22
|
+
updatedAt: string;
|
|
23
|
+
messages: SiteMessages;
|
|
24
|
+
children: ReactNode;
|
|
25
|
+
}
|
|
26
|
+
export declare function LegalLayout(props: LegalLayoutProps): import("react").JSX.Element;
|
|
27
|
+
export interface StatusBannerProps {
|
|
28
|
+
tone: "success" | "warning" | "danger" | "info";
|
|
29
|
+
title: string;
|
|
30
|
+
children?: ReactNode;
|
|
31
|
+
action?: {
|
|
32
|
+
label: string;
|
|
33
|
+
onClick: () => void;
|
|
34
|
+
tone?: ButtonTone;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export declare function StatusBanner(props: StatusBannerProps): import("react").JSX.Element;
|
|
38
|
+
export interface NotFoundLayoutProps {
|
|
39
|
+
messages: SiteMessages;
|
|
40
|
+
homeHref: string;
|
|
41
|
+
children?: ReactNode;
|
|
42
|
+
}
|
|
43
|
+
export declare function NotFoundLayout(props: NotFoundLayoutProps): import("react").JSX.Element;
|
|
44
|
+
export interface ErrorLayoutProps {
|
|
45
|
+
messages: SiteMessages;
|
|
46
|
+
onRetry: () => void;
|
|
47
|
+
errorId?: string;
|
|
48
|
+
children?: ReactNode;
|
|
49
|
+
}
|
|
50
|
+
export declare function ErrorLayout(props: ErrorLayoutProps): import("react").JSX.Element;
|
|
51
|
+
//# sourceMappingURL=layouts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layouts.d.ts","sourceRoot":"","sources":["../../src/react/layouts.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAA0B,KAAK,eAAe,EAAE,KAAK,eAAe,EAAE,MAAM,UAAU,CAAC;AAC9F,OAAO,EAAU,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,eAAe,CAAC;IACxB,MAAM,EAAE,eAAe,CAAC;IACxB,QAAQ,EAAE,YAAY,CAAC;IACvB,QAAQ,EAAE,SAAS,CAAC;IACpB;oGACgG;IAChG,SAAS,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;CAC/B;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,+BASxD;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,YAAY,CAAC;IACvB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,+BAUlD;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAC;IAChD,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,MAAM,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,IAAI,CAAC;QAAC,IAAI,CAAC,EAAE,UAAU,CAAA;KAAE,CAAC;CACpE;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,+BAYpD;AAED,MAAM,WAAW,mBAAmB;IAAG,QAAQ,EAAE,YAAY,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,SAAS,CAAA;CAAE;AACvG,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,+BASxD;AAED,MAAM,WAAW,gBAAgB;IAAG,QAAQ,EAAE,YAAY,CAAC;IAAC,OAAO,EAAE,MAAM,IAAI,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,SAAS,CAAA;CAAE;AACzH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,+BAUlD"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { SiteLocale } from "@devslab/site-kit";
|
|
2
|
+
import type { LocaleList, LocaleState, SiteMessages } from "./types";
|
|
3
|
+
export type LocaleMenuVariant = "select" | "flag";
|
|
4
|
+
/**
|
|
5
|
+
* A standalone language picker — the one SiteHeader composes, and the one a
|
|
6
|
+
* footer or an app screen (a settings page) renders on its own. It reads one
|
|
7
|
+
* string, so a screen outside the marketing chrome does not need the whole
|
|
8
|
+
* SiteMessages catalog.
|
|
9
|
+
*/
|
|
10
|
+
export interface LocaleMenuProps {
|
|
11
|
+
state: LocaleState;
|
|
12
|
+
messages: Pick<SiteMessages, "localeLabel">;
|
|
13
|
+
variant?: LocaleMenuVariant;
|
|
14
|
+
onLocaleChange?: (locale: SiteLocale, href: string) => void;
|
|
15
|
+
/**
|
|
16
|
+
* The languages to offer. Defaults to the family's fourteen; a product that
|
|
17
|
+
* sells in fewer (or more) passes the registry it built with
|
|
18
|
+
* `defineLocaleRegistry` — or, from a Server Component, its
|
|
19
|
+
* `{ LOCALES: registry.LOCALES }` (see LocaleList).
|
|
20
|
+
*/
|
|
21
|
+
registry?: LocaleList;
|
|
22
|
+
}
|
|
23
|
+
export declare function LocaleMenu(props: LocaleMenuProps): import("react").JSX.Element;
|
|
24
|
+
//# sourceMappingURL=locale-menu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locale-menu.d.ts","sourceRoot":"","sources":["../../src/react/locale-menu.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAkB,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAKpE,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAErE,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,MAAM,CAAC;AAElD;;;;;GAKG;AACH,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,WAAW,CAAC;IACnB,QAAQ,EAAE,IAAI,CAAC,YAAY,EAAE,aAAa,CAAC,CAAC;IAC5C,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5D;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,UAAU,CAAC;CACvB;AA8KD,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,+BAEhD"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { LocaleState } from "./types";
|
|
2
|
+
/**
|
|
3
|
+
* The href of one language's copy of the page, from either form of the state.
|
|
4
|
+
*
|
|
5
|
+
* A `hrefs` map that lacks a language the menu lists throws instead of
|
|
6
|
+
* rendering `href="undefined"`: a broken language link that still looks like
|
|
7
|
+
* one is worse than a page that fails where the map was built.
|
|
8
|
+
*/
|
|
9
|
+
export declare function hrefFor(state: LocaleState, locale: string): string;
|
|
10
|
+
//# sourceMappingURL=locale-state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locale-state.d.ts","sourceRoot":"","sources":["../../src/react/locale-state.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAOlE"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface OssProductMarkProps {
|
|
2
|
+
name: string;
|
|
3
|
+
src: string;
|
|
4
|
+
size?: "sm" | "md" | "lg";
|
|
5
|
+
decorative?: boolean;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function OssProductMark(props: OssProductMarkProps): import("react").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=oss-product-mark.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oss-product-mark.d.ts","sourceRoot":"","sources":["../../src/react/oss-product-mark.tsx"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAID,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,+BAcxD"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type DdsIconName } from "@devslab/dds-icons";
|
|
2
|
+
import type { ButtonHTMLAttributes, SVGProps } from "react";
|
|
3
|
+
export type ButtonTone = "primary" | "secondary" | "ghost" | "danger";
|
|
4
|
+
export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
5
|
+
tone?: ButtonTone;
|
|
6
|
+
}
|
|
7
|
+
export declare function Button({ tone, type, className, ...rest }: ButtonProps): import("react").JSX.Element;
|
|
8
|
+
export interface IconButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
9
|
+
"aria-label": string;
|
|
10
|
+
tone?: "ghost" | "secondary" | "danger";
|
|
11
|
+
}
|
|
12
|
+
export declare function IconButton({ tone, type, className, ...rest }: IconButtonProps): import("react").JSX.Element;
|
|
13
|
+
export interface IconProps extends Omit<SVGProps<SVGSVGElement>, "name" | "children"> {
|
|
14
|
+
name: DdsIconName;
|
|
15
|
+
size?: number;
|
|
16
|
+
}
|
|
17
|
+
export declare function Icon({ name, size, className, ...rest }: IconProps): import("react").JSX.Element;
|
|
18
|
+
//# sourceMappingURL=primitives.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"primitives.d.ts","sourceRoot":"","sources":["../../src/react/primitives.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA0B,KAAK,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAC9E,OAAO,KAAK,EAAE,oBAAoB,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAmB5D,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,WAAW,GAAG,OAAO,GAAG,QAAQ,CAAC;AAEtE,MAAM,WAAW,WAAY,SAAQ,oBAAoB,CAAC,iBAAiB,CAAC;IAC1E,IAAI,CAAC,EAAE,UAAU,CAAC;CACnB;AAED,wBAAgB,MAAM,CAAC,EAAE,IAAgB,EAAE,IAAe,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,WAAW,+BAE5F;AAED,MAAM,WAAW,eAAgB,SAAQ,oBAAoB,CAAC,iBAAiB,CAAC;IAC9E,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,OAAO,GAAG,WAAW,GAAG,QAAQ,CAAC;CACzC;AAED,wBAAgB,UAAU,CAAC,EAAE,IAAc,EAAE,IAAe,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,eAAe,+BAElG;AAED,MAAM,WAAW,SAAU,SAAQ,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;IACnF,IAAI,EAAE,WAAW,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,wBAAgB,IAAI,CAAC,EAAE,IAAI,EAAE,IAAS,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,SAAS,+BAmBtE"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Section primitives — the rhythm of a family landing page. The Solid
|
|
4
|
+
* primitives, same classes (site-sections.css), same two glyph systems:
|
|
5
|
+
* SectionHead.index is the section's mono "01", StepFlow markers are a
|
|
6
|
+
* sequence's plain "1". Stateless.
|
|
7
|
+
*/
|
|
8
|
+
export interface SectionBlockProps {
|
|
9
|
+
id: string;
|
|
10
|
+
labelledBy: string;
|
|
11
|
+
/** `band` steps the background down one token (bg-subtle) — a decision, not a tint. */
|
|
12
|
+
tone?: "default" | "band";
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
}
|
|
15
|
+
export declare function SectionBlock(props: SectionBlockProps): import("react").JSX.Element;
|
|
16
|
+
export interface SectionHeadProps {
|
|
17
|
+
/** Mono, zero-padded index ("01"). Decorative — hidden from assistive tech. */
|
|
18
|
+
index: string;
|
|
19
|
+
title: string;
|
|
20
|
+
titleId: string;
|
|
21
|
+
lede?: string;
|
|
22
|
+
}
|
|
23
|
+
export declare function SectionHead(props: SectionHeadProps): import("react").JSX.Element;
|
|
24
|
+
export interface HeroSplitProps {
|
|
25
|
+
id?: string;
|
|
26
|
+
eyebrow?: string;
|
|
27
|
+
title: string;
|
|
28
|
+
titleId: string;
|
|
29
|
+
lede: string;
|
|
30
|
+
actions: ReactNode;
|
|
31
|
+
/** The product's own scene. Its height is the consumer's decision. */
|
|
32
|
+
aside: ReactNode;
|
|
33
|
+
asideLabel: string;
|
|
34
|
+
}
|
|
35
|
+
export declare function HeroSplit(props: HeroSplitProps): import("react").JSX.Element;
|
|
36
|
+
export interface StepFlowStep {
|
|
37
|
+
title: string;
|
|
38
|
+
body: string;
|
|
39
|
+
}
|
|
40
|
+
export interface StepFlowProps {
|
|
41
|
+
steps: ReadonlyArray<StepFlowStep>;
|
|
42
|
+
/** Accessible name for the list — pass the section title's words, localized. */
|
|
43
|
+
label?: string;
|
|
44
|
+
}
|
|
45
|
+
export declare function StepFlow(props: StepFlowProps): import("react").JSX.Element;
|
|
46
|
+
export interface FeatureRow {
|
|
47
|
+
title: string;
|
|
48
|
+
body: string;
|
|
49
|
+
badge?: string;
|
|
50
|
+
}
|
|
51
|
+
export interface FeatureRowsProps {
|
|
52
|
+
rows: ReadonlyArray<FeatureRow>;
|
|
53
|
+
label?: string;
|
|
54
|
+
}
|
|
55
|
+
/** Hairline rows — a card grid is the thing this primitive exists to replace. */
|
|
56
|
+
export declare function FeatureRows(props: FeatureRowsProps): import("react").JSX.Element;
|
|
57
|
+
export interface PricingNoteProps {
|
|
58
|
+
children: ReactNode;
|
|
59
|
+
action: ReactNode;
|
|
60
|
+
}
|
|
61
|
+
/** One paragraph block, one action. No table, no tiers — a note, not a pricing page. */
|
|
62
|
+
export declare function PricingNote(props: PricingNoteProps): import("react").JSX.Element;
|
|
63
|
+
//# sourceMappingURL=sections.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sections.d.ts","sourceRoot":"","sources":["../../src/react/sections.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;;;;GAKG;AAEH,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MA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AE,MAAM,CAAC;CAChB;AAED,iFAAiF;AACjF,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,+BAclD;AAED,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,SAAS,CAAC;IACpB,MAAM,EAAE,SAAS,CAAC;CACnB;AAED,wFAAwF;AACxF,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,+BAOlD"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { LocaleRegistry, SiteLocale } from "@devslab/site-kit";
|
|
3
|
+
/**
|
|
4
|
+
* The React side of `@devslab/site-kit`: the same props as `./solid`, with
|
|
5
|
+
* `ReactNode` where Solid takes `JSX.Element`. The strings, the links and the
|
|
6
|
+
* locale state are one contract across both, so a product can move between the
|
|
7
|
+
* two without rewriting its catalog.
|
|
8
|
+
*/
|
|
9
|
+
export interface SiteMessages {
|
|
10
|
+
navigationLabel: string;
|
|
11
|
+
localeLabel: string;
|
|
12
|
+
themeLabel: string;
|
|
13
|
+
themeSystem: string;
|
|
14
|
+
themeLight: string;
|
|
15
|
+
themeDark: string;
|
|
16
|
+
menuOpen: string;
|
|
17
|
+
menuClose: string;
|
|
18
|
+
footerLabel: string;
|
|
19
|
+
skipToContent: string;
|
|
20
|
+
updatedLabel: string;
|
|
21
|
+
notFoundTitle: string;
|
|
22
|
+
notFoundDescription: string;
|
|
23
|
+
backHome: string;
|
|
24
|
+
errorTitle: string;
|
|
25
|
+
errorDescription: string;
|
|
26
|
+
retry: string;
|
|
27
|
+
}
|
|
28
|
+
export interface SiteLink {
|
|
29
|
+
href: string;
|
|
30
|
+
label: string;
|
|
31
|
+
external?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Drawn heavier than its neighbours. For a link the product must make easy
|
|
34
|
+
* to find — a Korean site's 개인정보처리방침 (privacy policy), which the law
|
|
35
|
+
* asks to stand out from the other footer links.
|
|
36
|
+
*/
|
|
37
|
+
emphasis?: boolean;
|
|
38
|
+
}
|
|
39
|
+
export interface SiteBrand {
|
|
40
|
+
name: string;
|
|
41
|
+
href: string;
|
|
42
|
+
/**
|
|
43
|
+
* Any node: a mark, or a mark and a localized wordmark side by side
|
|
44
|
+
* (Qooroo prints "쿠루" next to its logo in Korean, "クル" in Japanese). A
|
|
45
|
+
* product whose wordmark is its logo passes it here with `name: ""` and
|
|
46
|
+
* names the link with `label`.
|
|
47
|
+
*/
|
|
48
|
+
logo?: ReactNode;
|
|
49
|
+
/**
|
|
50
|
+
* The header brand link's accessible name, when the visible name is not
|
|
51
|
+
* enough ("Acme home"). Start it with the visible name so voice users can
|
|
52
|
+
* say what they see.
|
|
53
|
+
*/
|
|
54
|
+
label?: string;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Where each language's copy of this page lives.
|
|
58
|
+
*
|
|
59
|
+
* `hrefForLocale` is the Solid contract. In React it works from a Client
|
|
60
|
+
* Component; a Server Component cannot hand a function to the client chrome
|
|
61
|
+
* (functions do not cross the server/client boundary), so it passes the
|
|
62
|
+
* same answers as data instead — `hrefs`, built with `localeHrefs` on the
|
|
63
|
+
* server. Exactly one of the two.
|
|
64
|
+
*/
|
|
65
|
+
export type LocaleState = {
|
|
66
|
+
locale: SiteLocale;
|
|
67
|
+
hrefForLocale: (locale: SiteLocale) => string;
|
|
68
|
+
hrefs?: never;
|
|
69
|
+
} | {
|
|
70
|
+
locale: SiteLocale;
|
|
71
|
+
hrefs: Readonly<Record<string, string>>;
|
|
72
|
+
hrefForLocale?: never;
|
|
73
|
+
};
|
|
74
|
+
export type ThemePreference = "system" | "light" | "dark";
|
|
75
|
+
/**
|
|
76
|
+
* The languages a menu lists. A registry from `defineLocaleRegistry` is one;
|
|
77
|
+
* so is `{ LOCALES: registry.LOCALES }` — the form a Server Component passes,
|
|
78
|
+
* because a registry's methods cannot cross to the client chrome and its
|
|
79
|
+
* `LOCALES` (frozen plain objects) can. The chrome reads nothing else.
|
|
80
|
+
*/
|
|
81
|
+
export type LocaleList = Pick<LocaleRegistry<string>, "LOCALES">;
|
|
82
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/react/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpE;;;;;GAKG;AACH,MAAM,WAAW,YAAY;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,MAAM,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb;;;;;OAKG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;GAQG;AACH,MAAM,MAAM,WAAW,GACnB;IAAE,MAAM,EAAE,UAAU,CAAC;IAAC,aAAa,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,GACpF;IAAE,MAAM,EAAE,UAAU,CAAC;IAAC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAAC,aAAa,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC;AAE3F,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;AAE1D;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAAG,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,SAAS,CAAC,CAAC"}
|
package/dist/solid.js
CHANGED
|
@@ -195,7 +195,15 @@ var N = A(), { canonicalLocale: P, localeAttributes: F, resolveLocale: I } = N,
|
|
|
195
195
|
de: "de",
|
|
196
196
|
es: "es",
|
|
197
197
|
ar: "sa"
|
|
198
|
-
}), R = "0 0 640 480", z = new Set(
|
|
198
|
+
}), R = "0 0 640 480", z = /* @__PURE__ */ new Set([
|
|
199
|
+
...Object.values(L),
|
|
200
|
+
"my",
|
|
201
|
+
"la",
|
|
202
|
+
"kh",
|
|
203
|
+
"mm",
|
|
204
|
+
"ph",
|
|
205
|
+
"mn"
|
|
206
|
+
]);
|
|
199
207
|
function B(e, t) {
|
|
200
208
|
let n = L[e];
|
|
201
209
|
if (n) return n;
|