@alfadocs/ui-kit-debug 0.17.3 → 0.18.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/{carousel.agent-Xuw9LPZN.js → carousel.agent-CQPFfppK.js} +533 -513
- package/dist/_chunks/{carousel.agent-Xuw9LPZN.js.map → carousel.agent-CQPFfppK.js.map} +1 -1
- package/dist/_chunks/date-range-picker-9gANFNG9.js.map +1 -1
- package/dist/_chunks/freemium-paywall-DXc7XlGE.js.map +1 -1
- package/dist/_chunks/list-BdvDctBz.js.map +1 -1
- package/dist/_chunks/{patient-shell-BOOaWZA9.js → patient-shell-Dr64lBp_.js} +2 -2
- package/dist/_chunks/{patient-shell-BOOaWZA9.js.map → patient-shell-Dr64lBp_.js.map} +1 -1
- package/dist/_chunks/theme-root-BOO73p5t.js +26 -0
- package/dist/_chunks/theme-root-BOO73p5t.js.map +1 -0
- package/dist/agent-catalog.json +1 -1
- package/dist/components/carousel/carousel.d.ts.map +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/date-range-picker/date-range-picker.d.ts.map +1 -1
- package/dist/components/freemium-paywall/freemium-paywall.d.ts.map +1 -1
- package/dist/components/list/list.d.ts.map +1 -1
- package/dist/components/theme-root/index.js +1 -1
- package/dist/components/theme-root/theme-root.d.ts +11 -0
- package/dist/components/theme-root/theme-root.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/theme-root-CSKD5ZRm.js +0 -25
- package/dist/_chunks/theme-root-CSKD5ZRm.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfadocs/ui-kit-debug",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "AlfaDocs shared design system — tokens, components, patterns, and translations for platform, booking, and alfascribe. (debug build — identical runtime to @alfadocs/ui-kit, ships source maps for symbolication).",
|
|
6
6
|
"license": "BUSL-1.1",
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as n } from "react";
|
|
3
|
-
import { Slot as c } from "@radix-ui/react-slot";
|
|
4
|
-
function f(t, m, e) {
|
|
5
|
-
const o = [t === "dark" ? "theme-dark" : "theme-light"];
|
|
6
|
-
return m && o.push("theme-accessible"), e && o.push(e), o.join(" ");
|
|
7
|
-
}
|
|
8
|
-
const h = n(
|
|
9
|
-
({
|
|
10
|
-
theme: t = "light",
|
|
11
|
-
accessible: m = !1,
|
|
12
|
-
asChild: e = !1,
|
|
13
|
-
className: o,
|
|
14
|
-
children: s,
|
|
15
|
-
...r
|
|
16
|
-
}, a) => {
|
|
17
|
-
const i = f(t, m, o);
|
|
18
|
-
return /* @__PURE__ */ p(e ? c : "div", { ref: a, className: i, "data-component": "theme-root", ...r, children: s });
|
|
19
|
-
}
|
|
20
|
-
);
|
|
21
|
-
h.displayName = "ThemeRoot";
|
|
22
|
-
export {
|
|
23
|
-
h as T
|
|
24
|
-
};
|
|
25
|
-
//# sourceMappingURL=theme-root-CSKD5ZRm.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"theme-root-CSKD5ZRm.js","sources":["../../src/components/theme-root/theme-root.tsx"],"sourcesContent":["/* -------------------------------------------------------------------- */\n/* ThemeRoot — declarative wrapper that activates a DS theme. */\n/* */\n/* DS themes are composed from two orthogonal axes (see 04-theming.mdx): */\n/* base: `theme-light` | `theme-dark` */\n/* modifier: `theme-accessible` (AAA contrast, larger target size, */\n/* 0ms animations, 18px base font) */\n/* */\n/* `<ThemeRoot>` owns the class combination so consuming apps don't */\n/* hand-assemble it (and get it wrong under `accessible + dark`, where */\n/* the selector is `.theme-dark.theme-accessible`, not a separate class).*/\n/* */\n/* Rendered as a `<div>` by default. Pass `asChild` to merge the theme */\n/* classes onto a caller-supplied element via Radix `<Slot>` — preserves */\n/* the child's props and correctly forwards refs. Used when the theme */\n/* root is <html> or <body> in a server-rendered layout. */\n/* -------------------------------------------------------------------- */\n\nimport { forwardRef, type HTMLAttributes } from 'react';\nimport { Slot } from '@radix-ui/react-slot';\n\nexport type ThemeBase = 'light' | 'dark';\n\nexport interface ThemeRootProps extends HTMLAttributes<HTMLDivElement> {\n /** Which colour-scheme base to activate. Default: `light`. */\n theme?: ThemeBase;\n /** Layer the AAA `theme-accessible` modifier on top of the base. */\n accessible?: boolean;\n /**\n * When true, merges the theme classes onto the single child element\n * instead of rendering a wrapping `<div>`. Useful when the theme root\n * is `<html>` or `<body>` in an app shell. Refs forward to the child.\n */\n asChild?: boolean;\n}\n\nfunction composeClassName(\n theme: ThemeBase,\n accessible: boolean,\n extra?: string,\n): string {\n const parts = [theme === 'dark' ? 'theme-dark' : 'theme-light'];\n if (accessible) parts.push('theme-accessible');\n if (extra) parts.push(extra);\n return parts.join(' ');\n}\n\nexport const ThemeRoot = forwardRef<HTMLDivElement, ThemeRootProps>(\n (\n {\n theme = 'light',\n accessible = false,\n asChild = false,\n className,\n children,\n ...rest\n },\n ref,\n ) => {\n const merged = composeClassName(theme, accessible, className);\n const Comp = asChild ? Slot : 'div';\n return (\n <Comp ref={ref} className={merged} data-component=\"theme-root\" {...rest}>\n {children}\n </Comp>\n );\n },\n);\nThemeRoot.displayName = 'ThemeRoot';\n"],"names":["composeClassName","theme","accessible","extra","parts","ThemeRoot","forwardRef","asChild","className","children","rest","ref","merged","jsx","Slot"],"mappings":";;;AAoCA,SAASA,EACPC,GACAC,GACAC,GACQ;AACR,QAAMC,IAAQ,CAACH,MAAU,SAAS,eAAe,aAAa;AAC9D,SAAIC,KAAYE,EAAM,KAAK,kBAAkB,GACzCD,KAAOC,EAAM,KAAKD,CAAK,GACpBC,EAAM,KAAK,GAAG;AACvB;AAEO,MAAMC,IAAYC;AAAA,EACvB,CACE;AAAA,IACE,OAAAL,IAAQ;AAAA,IACR,YAAAC,IAAa;AAAA,IACb,SAAAK,IAAU;AAAA,IACV,WAAAC;AAAA,IACA,UAAAC;AAAA,IACA,GAAGC;AAAA,EAAA,GAELC,MACG;AACH,UAAMC,IAASZ,EAAiBC,GAAOC,GAAYM,CAAS;AAE5D,WACE,gBAAAK,EAFWN,IAAUO,IAAO,SAEtB,KAAAH,GAAU,WAAWC,GAAQ,kBAAe,cAAc,GAAGF,GAChE,UAAAD,EAAA,CACH;AAAA,EAEJ;AACF;AACAJ,EAAU,cAAc;"}
|