@g9tm/lynxcontrols-web 0.0.0-stage → 2.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/README.md +107 -2
- package/catalog/catalog.json +305 -0
- package/catalog/index.md +4 -0
- package/dist/.tsbuildinfo +1 -0
- package/dist/font.d.ts +7 -0
- package/dist/font.d.ts.map +1 -0
- package/dist/font.js +4 -0
- package/dist/font.js.map +1 -0
- package/dist/handler.d.ts +69 -0
- package/dist/handler.d.ts.map +1 -0
- package/dist/handler.js +180 -0
- package/dist/handler.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -0
- package/dist/install.d.ts +96 -0
- package/dist/install.d.ts.map +1 -0
- package/dist/install.js +310 -0
- package/dist/install.js.map +1 -0
- package/dist/module.d.ts +22 -0
- package/dist/module.d.ts.map +1 -0
- package/dist/module.js +46 -0
- package/dist/module.js.map +1 -0
- package/dist/static.d.ts +57 -0
- package/dist/static.d.ts.map +1 -0
- package/dist/static.js +395 -0
- package/dist/static.js.map +1 -0
- package/package.json +44 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"static.js","sources":["../src/static.ts"],"sourcesContent":["// @g9tm/lynxcontrols-web/static — the static-render contract (LC-11): plain HTML with these classes, under a root that\n// carries the theme's variables, looks like the Lynx controls it stands for. For pages that must be real HTML (public\n// pages a search engine reads without JavaScript); the app itself stays Lynx. Runs anywhere (Node or a browser): no\n// DOM, no Lynx. The HTML of each component is in docs/static-render.md; `npm run smoke:web` measures every one of\n// them against the Lynx control in the same theme (step 9).\nimport {\n formatColor,\n G9ButtonVariant,\n G9Metrics,\n G9ProgressType,\n type G9ShapeSet,\n g9DefaultShape,\n g9Derived,\n lighten,\n resolveButtonVariantVars,\n resolveProgressColor,\n resolveTheme,\n toKebabCase,\n toRootCssVariables,\n} from '@g9tm/lynxcontrols-foundation';\nimport { G9_WEB_FONT_STACK } from './font';\n\n/** The meaning of a coloured element (`g9s-tone-<tone>`), as the controls' `G9Tone`. */\nexport type G9StaticTone = 'neutral' | 'primary' | 'accent' | 'info' | 'success' | 'warning' | 'error';\n\n/** Every tone (`g9s-tone-<tone>`). */\nexport const g9StaticTones: readonly G9StaticTone[] = [\n 'neutral',\n 'primary',\n 'accent',\n 'info',\n 'success',\n 'warning',\n 'error',\n];\n\n/** A theme as the variables need it: what `resolveTheme` returns, or any `{ palette, scheme }`. */\nexport interface G9StaticTheme {\n readonly palette: Parameters<typeof toRootCssVariables>[0]['palette'];\n readonly scheme: 'light' | 'dark';\n}\n\n/** Options of {@link g9StaticVariables}. */\nexport interface G9StaticVariablesOptions {\n /** Default: the stock light theme (`resolveTheme({ mode: 'light' })`). */\n readonly theme?: G9StaticTheme;\n /** Default `g9DefaultShape` (a `resolveShape(...)` result for a theme's own radii, type, density or fonts). */\n readonly shape?: G9ShapeSet;\n /** The page's direction: picks `--g9-font-text` from the shape's fonts. Default `'ltr'`. */\n readonly direction?: 'ltr' | 'rtl';\n}\n\nconst PROGRESS_TYPES = Object.values(G9ProgressType) as readonly G9ProgressType[];\n\n/**\n * The CSS variables the root of a static page carries (`<body class=\"g9s\" style=\"…\">` or a `.g9s` element): every\n * variable a `G9Provider` root writes (`toRootCssVariables`), plus the progress fills' second stops, which the Lynx\n * control computes from the palette (a colour 24 % lighter: `--g9s-progress-<type>-to`).\n */\nexport function g9StaticVariables(options: G9StaticVariablesOptions = {}): Readonly<Record<string, string>> {\n const theme = options.theme ?? resolveTheme({ mode: 'light' });\n const out: Record<string, string> = {\n ...toRootCssVariables(theme, options.shape ?? g9DefaultShape, options.direction ?? 'ltr'),\n };\n for (const type of PROGRESS_TYPES) {\n const color = resolveProgressColor(type, theme.palette);\n out[`--g9s-progress-${type}`] = color;\n out[`--g9s-progress-${type}-to`] = formatColor(lighten(color, 0.24));\n }\n return out;\n}\n\n/** {@link g9StaticVariables} as a `style` attribute's text (`--g9-primary:#…;--g9-…`). */\nexport function g9StaticRootStyle(options: G9StaticVariablesOptions = {}): string {\n return Object.entries(g9StaticVariables(options))\n .map(([name, value]) => `${name}:${value}`)\n .join(';');\n}\n\n/** The avatar's tone for a name, as `G9Avatar` picks it (the same person always gets the same colour). */\nexport function g9StaticAvatarTone(name: string): G9StaticTone {\n const tones: readonly G9StaticTone[] = ['primary', 'accent', 'info', 'success', 'warning'];\n let h = 0;\n for (const ch of name) h = (h * 31 + (ch.codePointAt(0) ?? 0)) >>> 0;\n return tones[h % tones.length] as G9StaticTone;\n}\n\n/** The avatar's initials, as `G9Avatar` draws them (two at most; Persian and Arabic kept apart by a ZWNJ). */\nexport function g9StaticInitials(name: string | null | undefined, max = 2): string {\n const words = (name ?? '').trim().split(/\\s+/).filter(Boolean);\n if (words.length === 0) return '?';\n const first = Array.from(words[0] as string)[0] ?? '';\n const last = words.length > 1 && max > 1 ? (Array.from(words[words.length - 1] as string)[0] ?? '') : '';\n const joiner = /[-ۿ]/.test(first + last) ? '' : '';\n return (first + joiner + last).toUpperCase();\n}\n\n/** The avatar sizes (`g9s-avatar--<size>`), dp, as `G9Avatar`'s. */\nexport const g9StaticAvatarSizes = Object.freeze({ xs: 24, sm: 32, md: 44, lg: 64, xl: 88 });\n\nconst v = (token: string) => `var(--g9-${toKebabCase(token)})`;\nconst ROLE: Record<Exclude<G9StaticTone, 'neutral'>, string> = {\n primary: 'Primary',\n accent: 'Tertiary',\n info: 'Info',\n success: 'Success',\n warning: 'Warning',\n error: 'Error',\n};\n\n/** A tone's colours by appearance (the controls' `toneColors`). */\nfunction toneVars(tone: G9StaticTone): string {\n if (tone === 'neutral')\n return [\n `--g9s-soft-bg:${v('SurfaceContainerHigh')}`,\n `--g9s-soft-fg:${v('TextSecondary')}`,\n `--g9s-solid-bg:${v('InverseSurface')}`,\n `--g9s-solid-fg:${v('InverseOnSurface')}`,\n `--g9s-outline-fg:${v('TextSecondary')}`,\n `--g9s-outline-border:${v('Outline')}`,\n ].join(';');\n const r = ROLE[tone];\n return [\n `--g9s-soft-bg:${v(`${r}Container`)}`,\n `--g9s-soft-fg:${v(`On${r}Container`)}`,\n `--g9s-solid-bg:${v(r)}`,\n `--g9s-solid-fg:${v(`On${r}`)}`,\n `--g9s-outline-fg:${v(r)}`,\n `--g9s-outline-border:${v(`${r}Border`)}`,\n ].join(';');\n}\n\n/** The button size presets (`G9Button`): height, side padding, label size. */\nconst BUTTON_SIZES = [\n ['small', G9Metrics.ButtonHeightSmall, 12, G9Metrics.ButtonFontSmall],\n ['medium', G9Metrics.ButtonHeightMedium, 16, G9Metrics.ButtonFontMedium],\n ['large', G9Metrics.ButtonHeightLarge, 20, G9Metrics.ButtonFontLarge],\n ['hero', G9Metrics.ButtonHeightHero, 16, G9Metrics.ButtonFontHero],\n] as const;\n\nconst VARIANTS = Object.values(G9ButtonVariant) as readonly G9ButtonVariant[];\n\nfunction buttonRules(): string[] {\n const out: string[] = [];\n for (const [size, height, pad, font] of BUTTON_SIZES)\n out.push(`.g9s-button--${size}{block-size:${height}px;padding-inline:${pad}px;font-size:${font}px}`);\n for (const variant of VARIANTS) {\n const p = resolveButtonVariantVars(variant);\n out.push(\n `.g9s-button--v-${variant}{${variantDeclarations(variant, 'button')}}`,\n `.g9s-icon-button--v-${variant}{${variantDeclarations(variant, 'icon')}}`,\n );\n if (p.gradient)\n out.push(\n `.g9s-button--v-${variant}:is(.g9s-button--flat,[disabled],[aria-disabled=true],[aria-busy=true]),.g9s-icon-button--v-${variant}:is([disabled],[aria-disabled=true],[aria-busy=true]){background:${p.background}}`,\n );\n }\n return out;\n}\n\n/** A variant's colours as declarations (the base rule's default look). */\nfunction variantDeclarations(variant: G9ButtonVariant, kind: 'button' | 'icon'): string {\n const p = resolveButtonVariantVars(variant);\n const outlined = variant === 'outline' || variant === 'text' || (kind === 'button' && variant === 'tonal');\n const fill = p.gradient ? g9Derived.gradient(p.gradient) : p.background;\n return `background:${fill};border-color:${p.stroke};border-width:${outlined ? 1.5 : 0}px;color:${p.text}`;\n}\n\nfunction typeRules(shape: G9ShapeSet): string[] {\n return Object.keys(shape.type).map(\n (role) =>\n `.g9s-text--${role}{font-size:var(--g9-type-${role}-size);line-height:var(--g9-type-${role}-line);font-weight:var(--g9-type-${role}-weight)}`,\n );\n}\n\nfunction avatarRules(): string[] {\n return Object.entries(g9StaticAvatarSizes).map(\n ([size, px]) =>\n `.g9s-avatar--${size}{inline-size:${px}px;block-size:${px}px;font-size:${Math.round(px * 0.38)}px}` +\n `.g9s-avatar--${size} .g9s-avatar__status{inline-size:${Math.max(8, px / 4)}px;block-size:${Math.max(8, px / 4)}px}`,\n );\n}\n\nfunction progressRules(): string[] {\n return PROGRESS_TYPES.map(\n (type) =>\n `.g9s-progress--${type}{--g9s-progress-color:var(--g9s-progress-${type});--g9s-progress-end:var(--g9s-progress-${type}-to)}`,\n );\n}\n\n/**\n * The stylesheet of the contract (one string; write it to `site.css` or a `<style>`). Every rule is scoped under\n * `.g9s`, uses logical properties (one sheet for both directions) and reads only `--g9-*` / `--g9s-*` variables, so a\n * theme change is a new root style, never new rules.\n */\nexport function g9StaticStylesheet(): string {\n const base = [\n // the root: the page's colours and font, the Lynx box model (every box border-box, text never inherits a margin)\n `.g9s{color:var(--g9-text-primary);background-color:var(--g9-background);font-family:var(--g9-font-text,${G9_WEB_FONT_STACK});font-size:14px;line-height:normal;-webkit-text-size-adjust:100%;text-size-adjust:100%}`,\n '.g9s *,.g9s *::before,.g9s *::after{box-sizing:border-box}',\n '.g9s :where(h1,h2,h3,h4,h5,h6,p,figure,figcaption,ul,ol,li,dl,dd,hr,blockquote){margin:0;padding:0}',\n '.g9s :where(ul,ol){list-style:none}',\n '.g9s :where(h1,h2,h3,h4,h5,h6){font-size:inherit;font-weight:inherit}',\n '.g9s :where(a){color:inherit;text-decoration:none}',\n '.g9s :where(button){font:inherit;color:inherit;background:none;border:0 solid transparent;padding:0;margin:0;cursor:pointer;text-align:inherit}',\n '.g9s :where(img,svg,video){display:block;max-inline-size:100%}',\n // each text's direction from its first strong letter, as the native engines draw it (a price in a Persian page\n // reads number-then-unit, an address in Latin keeps its `@`)\n '.g9s :where(p,span,strong,b,em,small,h1,h2,h3,h4,h5,h6,a,button,li,dt,dd,figcaption,label,time,output){unicode-bidi:plaintext}',\n '.g9s :where(:focus-visible){outline:2px solid var(--g9-primary);outline-offset:2px}',\n '.g9s-icon{inline-size:20px;block-size:20px;flex:none;fill:none;stroke:currentColor}',\n '.g9s-icon--fill{fill:currentColor;stroke:none}',\n '[dir=rtl] .g9s-icon--mirror,.g9s[dir=rtl] .g9s-icon--mirror{transform:scaleX(-1)}',\n // the page as a document (a public page scrolls as a whole): bars stay in view, the action button floats\n '.g9s-document{min-block-size:100vh;min-block-size:100dvh;display:flex;flex-direction:column}',\n '.g9s-document__main{flex:1 0 auto;display:flex;flex-direction:column}',\n '.g9s-sr-only{position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}',\n ];\n const text = [\n '.g9s-text{overflow-wrap:break-word}',\n ...typeRules(g9DefaultShape),\n '.g9s-text--primary{color:var(--g9-text-primary)}.g9s-text--secondary{color:var(--g9-text-secondary)}.g9s-text--tertiary{color:var(--g9-text-tertiary)}',\n '.g9s-text--accent{color:var(--g9-primary)}.g9s-text--success{color:var(--g9-success)}.g9s-text--warning{color:var(--g9-warning)}.g9s-text--error{color:var(--g9-error)}',\n '.g9s-text--start{text-align:start}.g9s-text--center{text-align:center}.g9s-text--end{text-align:end}',\n '.g9s-text--bold{font-weight:700}.g9s-text--nowrap{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}',\n '.g9s-text--tabular{font-variant-numeric:tabular-nums}',\n ];\n const image = [\n // G9Image: a calm box (the primary container) under the picture; give a width and `aspect-ratio`, or a height\n '.g9s-image{display:block;position:relative;overflow:hidden;inline-size:100%;background-color:var(--g9-primary-container)}',\n '.g9s-image>img,img.g9s-image{inline-size:100%;block-size:100%;object-fit:cover}',\n '.g9s-image--contain>img,img.g9s-image--contain{object-fit:contain}',\n '.g9s-image--stretch>img,img.g9s-image--stretch{object-fit:fill}',\n ];\n const button = [\n // G9Button: medium and primary unless a modifier says otherwise; the hero size fills its row\n `.g9s-button{display:inline-flex;flex-direction:row;align-items:center;justify-content:center;column-gap:8px;flex:none;block-size:${G9Metrics.ButtonHeightMedium}px;padding-block:0;padding-inline:16px;border-style:solid;border-width:0;border-radius:var(--g9-radius-control,12px);overflow:hidden;font-size:${G9Metrics.ButtonFontMedium}px;font-weight:700;line-height:normal;white-space:nowrap;text-align:center;vertical-align:middle;cursor:pointer;${variantDeclarations('primary', 'button')}}`,\n `.g9s-button:where(.g9s-button--flat,[disabled],[aria-disabled=true],[aria-busy=true]){background:${resolveButtonVariantVars('primary').background}}`,\n '.g9s-button__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}',\n '.g9s-button .g9s-icon{inline-size:20px;block-size:20px}',\n '.g9s-button--block,.g9s-button--hero{display:flex;inline-size:100%;align-self:stretch}',\n ...buttonRules().filter((r) => r.startsWith('.g9s-button')),\n '.g9s-button--pill{border-radius:9999px}',\n '.g9s-button:is([disabled],[aria-disabled=true]){opacity:0.38;cursor:default}',\n '.g9s-button[aria-busy=true]{opacity:0.7}',\n // G9IconButton: a 40 square, the surface variant unless a modifier says otherwise\n `.g9s-icon-button{display:inline-flex;align-items:center;justify-content:center;flex:none;inline-size:40px;block-size:40px;border-style:solid;border-width:0;border-radius:var(--g9-radius-control,${G9Metrics.RadiusMd}px);cursor:pointer;${variantDeclarations('surface', 'icon')}}`,\n ...buttonRules().filter((r) => r.startsWith('.g9s-icon-button')),\n '.g9s-icon-button--ghost{background:transparent;border-color:transparent;border-width:0}',\n '.g9s-icon-button--circle{border-radius:9999px}',\n '.g9s-icon-button:is([disabled],[aria-disabled=true]){opacity:0.38;cursor:default}',\n ];\n const containers = [\n // G9Card: outlined unless a modifier says otherwise, 16 inside\n '.g9s-card{display:flex;flex-direction:column;position:relative;padding:16px;border-radius:var(--g9-radius-card);overflow:hidden;background-color:var(--g9-card-background);border:1px solid var(--g9-card-border);min-inline-size:0}',\n '.g9s-card--filled{background-color:var(--g9-surface-container);border-width:0}',\n '.g9s-card--elevated{background-color:var(--g9-card-elevated);border-color:var(--g9-outline-variant)}',\n '.g9s-card--glass{background-color:var(--g9-overlay-light);border-color:var(--g9-outline-variant)}',\n '.g9s-card__edge{position:absolute;inset-block:0;inset-inline-start:0;inline-size:3px}',\n 'a.g9s-card,.g9s-card--link{cursor:pointer}',\n // G9Section: a header and its body, 12 apart; `--card` puts it on a card\n '.g9s-section{display:flex;flex-direction:column;row-gap:12px;min-inline-size:0}',\n '.g9s-section--card{padding:16px;border-radius:var(--g9-radius-card);background-color:var(--g9-card-background);border:1px solid var(--g9-card-border)}',\n '.g9s-section__header{display:flex;flex-direction:row;align-items:center;column-gap:10px;min-block-size:32px}',\n '.g9s-section__icon{display:flex;align-items:center;justify-content:center;flex:none;inline-size:32px;block-size:32px;border-radius:10px;background-color:var(--g9-primary-container);color:var(--g9-on-primary-container)}',\n '.g9s-section__icon .g9s-icon{inline-size:16px;block-size:16px}',\n '.g9s-section__titles{display:flex;flex-direction:column;flex:1 1 0;min-inline-size:0}',\n '.g9s-section__title{font-size:var(--g9-type-section-size);line-height:var(--g9-type-section-line);font-weight:700;color:var(--g9-text-primary)}',\n '.g9s-section__subtitle{font-size:12px;line-height:20px;color:var(--g9-text-secondary)}',\n '.g9s-section__action{display:flex;align-items:center;justify-content:center;min-block-size:32px;padding:0 6px;font-size:13px;font-weight:700;color:var(--g9-primary)}',\n '.g9s-section__body{display:flex;flex-direction:column}',\n ];\n const list = [\n // G9ListRow: 56 high at least, a hairline under it unless `--plain`\n `.g9s-list-row{display:flex;flex-direction:row;align-items:center;position:relative;column-gap:12px;min-block-size:56px;padding:8px 16px;background-color:var(--g9-surface);border-block-end:1px solid var(--g9-divider);color:inherit;${toneVars('neutral')}}`,\n '.g9s-list-row--plain{border-block-end-width:0}',\n 'a.g9s-list-row,.g9s-list-row--link{cursor:pointer}',\n '.g9s-list-row__edge{position:absolute;inset-block:0;inset-inline-start:0;inline-size:3px}',\n '.g9s-list-row__icon{display:flex;align-items:center;justify-content:center;flex:none;inline-size:36px;block-size:36px;border-radius:11px;background-color:var(--g9s-soft-bg);color:var(--g9s-soft-fg)}',\n '.g9s-list-row__icon .g9s-icon{inline-size:18px;block-size:18px}',\n '.g9s-list-row__leading{flex:none}',\n '.g9s-list-row__text{display:flex;flex-direction:column;flex:1 1 0;min-inline-size:0}',\n '.g9s-list-row__title{font-size:15px;line-height:24px;color:var(--g9-text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}',\n '.g9s-list-row__title--strong{font-size:14px;line-height:21px;font-weight:700}',\n '.g9s-list-row__title--danger{color:var(--g9-error)}',\n '.g9s-list-row__subtitle{font-size:12px;line-height:19px;color:var(--g9-text-secondary);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}',\n '.g9s-list-row__hint{font-size:11px;line-height:16px;color:var(--g9-text-tertiary);margin-block-start:2px}',\n '.g9s-list-row__value{flex:none;max-inline-size:45%;font-size:14px;color:var(--g9-text-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}',\n '.g9s-list-row__chevron{flex:none;inline-size:18px;block-size:18px;color:var(--g9-text-tertiary)}',\n '[dir=rtl] .g9s-list-row__chevron{transform:scaleX(-1)}',\n ];\n const bars = [\n // G9AppBar: 56 high; `--sticky` keeps it at the top of a scrolling document\n '.g9s-app-bar{display:flex;flex-direction:column;flex:none;background-color:var(--g9-surface);border-block-end:1px solid var(--g9-divider)}',\n '.g9s-app-bar--transparent{background-color:transparent;border-block-end-color:transparent}',\n '.g9s-app-bar--sticky{position:sticky;inset-block-start:0;z-index:3}',\n '.g9s-app-bar__row{display:flex;flex-direction:row;align-items:center;block-size:56px;padding:0 8px;column-gap:4px}',\n '.g9s-app-bar__row>.g9s-icon-button{margin:2px}',\n '.g9s-app-bar__titles{display:flex;flex-direction:column;flex:1 1 0;min-inline-size:0;padding:0 8px}',\n '.g9s-app-bar__titles--center{align-items:center;text-align:center}',\n '.g9s-app-bar__title{font-size:var(--g9-type-title-size);line-height:var(--g9-type-title-line);font-weight:700;color:var(--g9-text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}',\n '.g9s-app-bar__subtitle{font-size:12px;line-height:18px;color:var(--g9-text-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}',\n '.g9s-app-bar__spacer{flex:1 1 0}',\n '.g9s-app-bar__actions{display:flex;flex-direction:row;align-items:center;column-gap:2px}',\n '.g9s-app-bar__large-block{display:flex;flex-direction:column;padding:0 16px 12px 16px}',\n '.g9s-app-bar__large{font-size:var(--g9-type-display-size);line-height:var(--g9-type-display-line);font-weight:800;color:var(--g9-text-primary)}',\n '.g9s-app-bar__large-subtitle{margin-block-start:2px;font-size:13px;line-height:19px;color:var(--g9-text-secondary)}',\n // G9TabBar (classic): a 62 bar with 14 around it (the control reserves 90); the open tab has the pill behind its icon and a\n // bold label in the pill's ink (never the primary colour at 11 px: 3.1:1). `--sticky` keeps it at the bottom.\n '.g9s-tab-bar{flex:none;padding:14px}',\n '.g9s-tab-bar--sticky{position:sticky;inset-block-end:0;z-index:3}',\n '.g9s-tab-bar__items{display:flex;flex-direction:row;block-size:62px;border-radius:18px;background-color:var(--g9-surface-container-high);border:1px solid var(--g9-outline-variant);overflow:hidden}',\n '.g9s-tab-bar__item{position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:center;justify-content:center;row-gap:3px;flex:1 1 0;min-inline-size:0;padding:0 6px;color:var(--g9-on-surface-variant)}',\n '.g9s-tab-bar__item .g9s-icon{inline-size:24px;block-size:24px}',\n '.g9s-tab-bar__label{max-inline-size:86px;font-size:11px;font-weight:400;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}',\n '.g9s-tab-bar__item:is([aria-current],.g9s-tab-bar__item--selected){color:var(--g9-on-primary-container)}',\n '.g9s-tab-bar__item:is([aria-current],.g9s-tab-bar__item--selected) .g9s-tab-bar__label{font-weight:700}',\n '.g9s-tab-bar__item:is([aria-current],.g9s-tab-bar__item--selected)::before{content:\"\";position:absolute;z-index:-1;inset-block-start:8px;inset-inline-start:50%;inline-size:48px;block-size:32px;margin-inline-start:-24px;border-radius:13px;background-color:var(--g9-primary-container)}',\n ];\n const figures = [\n // G9Kpi (a stat): a card with a label and an icon, the value, a change and a note\n '.g9s-stat{display:flex;flex-direction:column;row-gap:6px;min-inline-size:0;padding:14px 16px;border-radius:var(--g9-radius-card);background-color:var(--g9-card-background);border:1px solid var(--g9-card-border)}',\n `.g9s-stat{${toneVars('primary')}}`,\n '.g9s-stat__head{display:flex;flex-direction:row;align-items:center;justify-content:space-between;column-gap:8px}',\n '.g9s-stat__label{flex:1 1 0;min-inline-size:0;font-size:12px;color:var(--g9-text-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}',\n '.g9s-stat__icon{display:flex;align-items:center;justify-content:center;flex:none;inline-size:28px;block-size:28px;border-radius:9px;background-color:var(--g9s-soft-bg);color:var(--g9s-soft-fg)}',\n '.g9s-stat__icon .g9s-icon{inline-size:16px;block-size:16px}',\n '.g9s-stat__value{font-size:22px;line-height:32px;font-weight:800;color:var(--g9-text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}',\n '.g9s-stat__foot{display:flex;flex-direction:row;align-items:center;column-gap:6px}',\n '.g9s-stat__note{flex:1 1 0;min-inline-size:0;font-size:11px;color:var(--g9-text-tertiary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}',\n '.g9s-delta{display:inline-flex;flex-direction:row;align-items:center;align-self:flex-start;block-size:22px;padding:0 8px;border-radius:11px;background-color:var(--g9s-soft-bg);color:var(--g9s-soft-fg);font-size:12px;font-weight:700;white-space:nowrap}',\n '.g9s-delta--plain{block-size:auto;padding:0;background-color:transparent;color:var(--g9s-outline-fg)}',\n // G9ProgressBar: a 10 track, the fill a gradient from the type's colour (always from the left, as the control)\n '.g9s-progress{display:flex;flex-direction:column}',\n '.g9s-progress{--g9s-progress-color:var(--g9s-progress-primary);--g9s-progress-end:var(--g9s-progress-primary-to)}',\n ...progressRules(),\n '.g9s-progress__label{align-self:flex-end;margin-block-end:6px;font-size:11px;font-weight:700;color:var(--g9s-progress-color)}',\n '.g9s-progress__track{position:relative;direction:ltr;block-size:10px;border-radius:5px;overflow:hidden;background-color:var(--g9-surface-variant)}',\n '.g9s-progress__fill{position:relative;block-size:100%;border-radius:5px;overflow:hidden;background:linear-gradient(to right,var(--g9s-progress-color),var(--g9s-progress-end))}',\n '.g9s-progress__fill::after{content:\"\";position:absolute;inset:0;background:repeating-linear-gradient(-60deg,rgba(255,255,255,0.16) 0px,rgba(255,255,255,0.16) 5px,transparent 5px,transparent 16px)}',\n '.g9s-progress--paused .g9s-progress__fill::after{content:none}',\n // G9Chip: 32 high (26, 40), soft unless a modifier says otherwise; selected takes the tone's solid colours\n `.g9s-chip{display:inline-flex;flex-direction:row;align-items:center;align-self:flex-start;column-gap:5px;flex:none;block-size:32px;padding-inline:12px;border-radius:16px;border:1px solid var(--g9-surface-container-high);background-color:var(--g9-surface-container-high);color:var(--g9-text-secondary);font-size:13px;font-weight:600;white-space:nowrap;${toneVars('primary')}}`,\n '.g9s-chip .g9s-icon{inline-size:15px;block-size:15px}',\n '.g9s-chip--sm{block-size:26px;border-radius:13px;font-size:12px}.g9s-chip--sm .g9s-icon{inline-size:13px;block-size:13px}',\n '.g9s-chip--lg{block-size:40px;border-radius:20px}',\n '.g9s-chip--outline{background-color:transparent;border-color:var(--g9-outline)}',\n '.g9s-chip--dashed{background-color:transparent;border-style:dashed;border-color:var(--g9-primary);color:var(--g9-primary)}',\n '.g9s-chip:is([aria-pressed=true],[aria-selected=true],[aria-current],.g9s-chip--selected){background-color:var(--g9s-solid-bg);border-color:var(--g9s-solid-bg);border-style:solid;color:var(--g9s-solid-fg)}',\n // G9Badge: an 18 pill, solid error unless a tone or `--soft` says otherwise; `--dot` is an 8 dot\n `.g9s-badge{display:inline-flex;align-items:center;justify-content:center;flex:none;min-inline-size:18px;block-size:18px;padding:0 5px;border-radius:9px;border:1px solid var(--g9s-solid-bg);background-color:var(--g9s-solid-bg);color:var(--g9s-solid-fg);font-size:11px;font-weight:700;line-height:14px;white-space:nowrap;${toneVars('error')}}`,\n '.g9s-badge--soft{border-color:var(--g9s-soft-bg);background-color:var(--g9s-soft-bg);color:var(--g9s-soft-fg)}',\n '.g9s-badge--outline{border-color:var(--g9s-outline-border);background-color:transparent;color:var(--g9s-outline-fg)}',\n '.g9s-badge--dot{min-inline-size:8px;inline-size:8px;block-size:8px;padding:0;border-radius:4px;border-width:0}',\n // G9Avatar: a disc in the tone's soft colours with the initials, or a picture over them; md unless a size says\n `.g9s-avatar{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;inline-size:44px;block-size:44px;border-radius:50%;background-color:var(--g9s-soft-bg);color:var(--g9s-soft-fg);font-size:17px;font-weight:700;${toneVars('primary')}}`,\n '.g9s-avatar__disc{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;border-radius:50%;overflow:hidden}',\n '.g9s-avatar__image{position:absolute;inset:0;inline-size:100%;block-size:100%;object-fit:cover;border-radius:50%}',\n '.g9s-avatar__status{position:absolute;inset-block-end:0;inset-inline-end:0;inline-size:11px;block-size:11px;border-radius:50%;border:2px solid var(--g9-surface)}',\n ...avatarRules(),\n // a group: the same avatars overlapping, each ringed in the surface (a composition of G9Avatar with `ring`)\n '.g9s-avatar-group{display:flex;flex-direction:row;align-items:center}',\n '.g9s-avatar-group>.g9s-avatar{box-shadow:0 0 0 2px var(--g9-surface)}',\n '.g9s-avatar-group>.g9s-avatar+.g9s-avatar{margin-inline-start:-10px}',\n `.g9s-avatar--more{${toneVars('neutral')}}`,\n // G9Separator: 14 above, 8 below, a hairline; with a title the title leads (10 px, spaced in Latin only)\n 'hr.g9s-divider{display:block;block-size:1px;margin:14px 0 8px 0;border:0;background-color:var(--g9-divider)}',\n 'div.g9s-divider{display:flex;flex-direction:row;align-items:center;column-gap:10px;padding:14px 0 8px 0}',\n '.g9s-divider__line{flex:1 1 0;block-size:1px;background-color:var(--g9-divider)}',\n '.g9s-divider__title{display:flex;flex-direction:row;align-items:center;column-gap:4px;font-size:10px;font-weight:700;letter-spacing:1.2px;text-transform:uppercase;white-space:nowrap;color:var(--g9-text-tertiary)}',\n '[dir=rtl] .g9s-divider__title{letter-spacing:0}',\n ];\n const tones = g9StaticTones.map((tone) => `.g9s .g9s-tone-${tone}{${toneVars(tone)}}`);\n return `${[...base, ...text, ...image, ...button, ...containers, ...list, ...bars, ...figures, ...tones].join('\\n')}\\n`;\n}\n\n/** {@link g9StaticStylesheet}, built once. */\nexport const G9_STATIC_CSS: string = g9StaticStylesheet();\n\n/** One component of the contract: its name in a design, the control it stands for, its root class. */\nexport interface G9StaticComponent {\n readonly name: string;\n /** The Lynx control (export of `@g9tm/lynxcontrols`), or null for a composition of them. */\n readonly control: string | null;\n readonly root: string;\n}\n\n/** The components of the contract (docs/static-render.md has each one's HTML). */\nexport const G9_STATIC_COMPONENTS: readonly G9StaticComponent[] = Object.freeze([\n { name: 'Text', control: null, root: 'g9s-text' },\n { name: 'Image', control: 'G9Image', root: 'g9s-image' },\n { name: 'Button', control: 'G9Button', root: 'g9s-button' },\n { name: 'IconButton', control: 'G9IconButton', root: 'g9s-icon-button' },\n { name: 'Card', control: 'G9Card', root: 'g9s-card' },\n { name: 'ListItem', control: 'G9ListRow', root: 'g9s-list-row' },\n { name: 'AppBar', control: 'G9AppBar', root: 'g9s-app-bar' },\n { name: 'TabBar', control: 'G9TabBar', root: 'g9s-tab-bar' },\n { name: 'Section', control: 'G9Section', root: 'g9s-section' },\n { name: 'Stat', control: 'G9Kpi', root: 'g9s-stat' },\n { name: 'Progress', control: 'G9ProgressBar', root: 'g9s-progress' },\n { name: 'Chip', control: 'G9Chip', root: 'g9s-chip' },\n { name: 'Badge', control: 'G9Badge', root: 'g9s-badge' },\n { name: 'Avatar', control: 'G9Avatar', root: 'g9s-avatar' },\n { name: 'AvatarGroup', control: null, root: 'g9s-avatar-group' },\n { name: 'Divider', control: 'G9Separator', root: 'g9s-divider' },\n]);\n"],"names":["g9StaticTones","PROGRESS_TYPES","Object","G9ProgressType","g9StaticVariables","options","_options_theme","_options_shape","_options_direction","theme","resolveTheme","out","toRootCssVariables","g9DefaultShape","type","color","resolveProgressColor","formatColor","lighten","g9StaticRootStyle","name","value","g9StaticAvatarTone","_ch_codePointAt","tones","h","ch","g9StaticInitials","max","_Array_from_","_Array_from_1","words","Boolean","first","last","joiner","g9StaticAvatarSizes","v","token","toKebabCase","ROLE","toneVars","tone","r","BUTTON_SIZES","G9Metrics","VARIANTS","G9ButtonVariant","buttonRules","size","height","pad","font","variant","p","resolveButtonVariantVars","variantDeclarations","kind","outlined","fill","g9Derived","typeRules","shape","role","avatarRules","px","Math","progressRules","g9StaticStylesheet","base","G9_WEB_FONT_STACK","text","image","button","containers","list","bars","figures","G9_STATIC_CSS","G9_STATIC_COMPONENTS"],"mappings":";;AA0BO,MAAMA,gBAAyC;IACpD;IACA;IACA;IACA;IACA;IACA;IACA;CACD;AAkBD,MAAMC,iBAAiBC,OAAO,MAAM,CAACC;AAO9B,SAASC,kBAAkBC,UAAoC,CAAC,CAAC;QACxDC,gBAEiBC,gBAAiCC;IAFhE,MAAMC,QAAQ,QAAAH,CAAAA,iBAAAA,QAAQ,KAAK,AAAD,IAAZA,iBAAiBI,aAAa;QAAE,MAAM;IAAQ;IAC5D,MAAMC,MAA8B;QAClC,GAAGC,mBAAmBH,OAAO,QAAAF,CAAAA,iBAAAA,QAAQ,KAAK,AAAD,IAAZA,iBAAiBM,gBAAgB,QAAAL,CAAAA,qBAAAA,QAAQ,SAAS,AAAD,IAAhBA,qBAAqB,MAAM;IAC3F;IACA,KAAK,MAAMM,QAAQb,eAAgB;QACjC,MAAMc,QAAQC,qBAAqBF,MAAML,MAAM,OAAO;QACtDE,GAAG,CA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QACA;WACGP,cAAc,MAAM,CAAC,CAACL,IAAMA,EAAE,UAAU,CAAC;QAC5C;QACA;QACA;QAEA,CAAC,kMAAkM,EAAEE,UAAU,QAAQ,CAAC,mBAAmB,EAAEW,oBAAoB,WAAW,QAAQ,CAAC,CAAC;WACnRR,cAAc,MAAM,CAAC,CAACL,IAAMA,EAAE,UAAU,CAAC;QAC5C;QACA;QACA;KACD;IACD,MAAM+B,aAAa;QAEjB;QACA;QACA;QACA;QACA;QACA;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;KACD;IACD,MAAMC,OAAO;QAEX,CAAC,sOAAsO,EAAElC,SAAS,WAAW,CAAC,CAAC;QAC/P;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;KACD;IACD,MAAMmC,OAAO;QAEX;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QAGA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;KACD;IACD,MAAMC,UAAU;QAEd;QACA,CAAC,UAAU,EAAEpC,SAAS,WAAW,CAAC,CAAC;QACnC;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QAEA;QACA;WACG0B;QACH;QACA;QACA;QACA;QACA;QAEA,CAAC,+VAA+V,EAAE1B,SAAS,WAAW,CAAC,CAAC;QACxX;QACA;QACA;QACA;QACA;QACA;QAEA,CAAC,+TAA+T,EAAEA,SAAS,SAAS,CAAC,CAAC;QACtV;QACA;QACA;QAEA,CAAC,qPAAqP,EAAEA,SAAS,WAAW,CAAC,CAAC;QAC9Q;QACA;QACA;WACGuB;QAEH;QACA;QACA;QACA,CAAC,kBAAkB,EAAEvB,SAAS,WAAW,CAAC,CAAC;QAE3C;QACA;QACA;QACA;QACA;KACD;IACD,MAAMjB,QAAQxB,cAAc,GAAG,CAAC,CAAC0C,OAAS,CAAC,eAAe,EAAEA,KAAK,CAAC,EAAED,SAASC,MAAM,CAAC,CAAC;IACrF,OAAO,GAAG;WAAI2B;WAASE;WAASC;WAAUC;WAAWC;WAAeC;WAASC;WAASC;WAAYrD;KAAM,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;AACzH;AAGO,MAAMsD,gBAAwBV;AAW9B,MAAMW,uBAAqD7E,OAAO,MAAM,CAAC;IAC9E;QAAE,MAAM;QAAQ,SAAS;QAAM,MAAM;IAAW;IAChD;QAAE,MAAM;QAAS,SAAS;QAAW,MAAM;IAAY;IACvD;QAAE,MAAM;QAAU,SAAS;QAAY,MAAM;IAAa;IAC1D;QAAE,MAAM;QAAc,SAAS;QAAgB,MAAM;IAAkB;IACvE;QAAE,MAAM;QAAQ,SAAS;QAAU,MAAM;IAAW;IACpD;QAAE,MAAM;QAAY,SAAS;QAAa,MAAM;IAAe;IAC/D;QAAE,MAAM;QAAU,SAAS;QAAY,MAAM;IAAc;IAC3D;QAAE,MAAM;QAAU,SAAS;QAAY,MAAM;IAAc;IAC3D;QAAE,MAAM;QAAW,SAAS;QAAa,MAAM;IAAc;IAC7D;QAAE,MAAM;QAAQ,SAAS;QAAS,MAAM;IAAW;IACnD;QAAE,MAAM;QAAY,SAAS;QAAiB,MAAM;IAAe;IACnE;QAAE,MAAM;QAAQ,SAAS;QAAU,MAAM;IAAW;IACpD;QAAE,MAAM;QAAS,SAAS;QAAW,MAAM;IAAY;IACvD;QAAE,MAAM;QAAU,SAAS;QAAY,MAAM;IAAa;IAC1D;QAAE,MAAM;QAAe,SAAS;QAAM,MAAM;IAAmB;IAC/D;QAAE,MAAM;QAAW,SAAS;QAAe,MAAM;IAAc;CAChE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,46 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@g9tm/lynxcontrols-web",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "2.4.1",
|
|
4
|
+
"description": "Web platform layer for Lynx for Web: G9HostModule on a <lynx-view> (browser-storage preferences, safe-area insets, a typed unsupported for what a browser cannot do), the counterpart of -native and -lynxtron.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"sideEffects": false,
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"source": "./src/index.ts",
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"default": "./dist/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./module": {
|
|
15
|
+
"source": "./src/module.ts",
|
|
16
|
+
"types": "./dist/module.d.ts",
|
|
17
|
+
"default": "./dist/module.js"
|
|
18
|
+
},
|
|
19
|
+
"./static": {
|
|
20
|
+
"source": "./src/static.ts",
|
|
21
|
+
"types": "./dist/static.d.ts",
|
|
22
|
+
"default": "./dist/static.js"
|
|
23
|
+
},
|
|
24
|
+
"./package.json": "./package.json",
|
|
25
|
+
"./catalog": "./catalog/catalog.json"
|
|
26
|
+
},
|
|
27
|
+
"files": [
|
|
28
|
+
"dist",
|
|
29
|
+
"README.md",
|
|
30
|
+
"catalog"
|
|
31
|
+
],
|
|
32
|
+
"scripts": {
|
|
33
|
+
"build": "rslib build"
|
|
34
|
+
},
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"@g9tm/lynxcontrols-foundation": "2.4.1"
|
|
37
|
+
},
|
|
38
|
+
"peerDependencies": {
|
|
39
|
+
"@lynx-js/web-core": ">=0.26.0"
|
|
40
|
+
},
|
|
41
|
+
"peerDependenciesMeta": {
|
|
42
|
+
"@lynx-js/web-core": {
|
|
43
|
+
"optional": true
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|