@vouched-id/ui 0.1.1 → 0.1.3
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/Button.d.ts +3 -3
- package/dist/Button.js +3 -3
- package/dist/InputGroup.d.ts +12 -0
- package/dist/InputGroup.d.ts.map +1 -0
- package/dist/InputGroup.js +31 -0
- package/dist/InputGroup.js.map +1 -0
- package/dist/InputOTP.d.ts +13 -0
- package/dist/InputOTP.d.ts.map +1 -0
- package/dist/InputOTP.js +21 -0
- package/dist/InputOTP.js.map +1 -0
- package/dist/MotionIcons.d.ts +32 -0
- package/dist/MotionIcons.d.ts.map +1 -0
- package/dist/MotionIcons.js +93 -0
- package/dist/MotionIcons.js.map +1 -0
- package/dist/Toast.d.ts +1 -1
- package/dist/public.d.ts +4 -1
- package/dist/public.d.ts.map +1 -1
- package/dist/public.js +4 -1
- package/dist/public.js.map +1 -1
- package/dist/theme-scope.d.ts +4 -12
- package/dist/theme-scope.d.ts.map +1 -1
- package/dist/theme-scope.js +6 -21
- package/dist/theme-scope.js.map +1 -1
- package/dist/tokens.generated.d.ts +1 -1
- package/dist/tokens.generated.js +1 -1
- package/package.json +6 -1
- package/styles/README.md +13 -13
- package/styles/base.css +2 -4
- package/styles/canvas.css +1 -1
- package/styles/colors_and_type.css +14 -14
- package/styles/motion-icons.css +91 -0
- package/styles/primitive-skins.css +12 -12
- package/styles/semantic-bindings.css +5 -6
- package/styles/shell.css +13 -13
- package/styles/tailwind-bridge.css +1 -1
- package/styles/theme.css +1 -0
- package/styles/tokens.css +18 -29
package/dist/Button.d.ts
CHANGED
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
*
|
|
23
23
|
* Radius is `--radius-btn` (tokens.css) — the SAME token
|
|
24
24
|
* the SSOT `.btn` chrome consumes, so this primitive and the top-nav
|
|
25
|
-
* buttons cannot drift apart. NOT `rounded-md`: the
|
|
26
|
-
* `--radius-md` token is also 8px, but inside the
|
|
25
|
+
* buttons cannot drift apart. NOT `rounded-md`: the
|
|
26
|
+
* `--radius-md` token is also 8px, but inside the base theme scope the
|
|
27
27
|
* radius doctrine in shell.css flattens `.rounded-md` to `--radius-xs` (2px),
|
|
28
28
|
* which would make this component sharper than the `.btn` chrome next
|
|
29
|
-
* to it. The 8px fallback covers render scopes where the
|
|
29
|
+
* to it. The 8px fallback covers render scopes where the design system's tokens
|
|
30
30
|
* aren't mounted. Focus ring uses the brand-soft halo + brand border
|
|
31
31
|
* per the v5 accessibility commitment.
|
|
32
32
|
*/
|
package/dist/Button.js
CHANGED
|
@@ -23,11 +23,11 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
23
23
|
*
|
|
24
24
|
* Radius is `--radius-btn` (tokens.css) — the SAME token
|
|
25
25
|
* the SSOT `.btn` chrome consumes, so this primitive and the top-nav
|
|
26
|
-
* buttons cannot drift apart. NOT `rounded-md`: the
|
|
27
|
-
* `--radius-md` token is also 8px, but inside the
|
|
26
|
+
* buttons cannot drift apart. NOT `rounded-md`: the
|
|
27
|
+
* `--radius-md` token is also 8px, but inside the base theme scope the
|
|
28
28
|
* radius doctrine in shell.css flattens `.rounded-md` to `--radius-xs` (2px),
|
|
29
29
|
* which would make this component sharper than the `.btn` chrome next
|
|
30
|
-
* to it. The 8px fallback covers render scopes where the
|
|
30
|
+
* to it. The 8px fallback covers render scopes where the design system's tokens
|
|
31
31
|
* aren't mounted. Focus ring uses the brand-soft halo + brand border
|
|
32
32
|
* per the v5 accessibility commitment.
|
|
33
33
|
*/
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
import { Input } from './Input.js';
|
|
3
|
+
import { Textarea } from './Textarea.js';
|
|
4
|
+
export declare function InputGroup({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
|
|
5
|
+
type AddonAlignment = 'inline-start' | 'inline-end' | 'block-start' | 'block-end';
|
|
6
|
+
export declare function InputGroupAddon({ align, className, onClick, ...props }: ComponentProps<'div'> & {
|
|
7
|
+
align?: AddonAlignment;
|
|
8
|
+
}): import("react").JSX.Element;
|
|
9
|
+
export declare function InputGroupInput({ className, ...props }: ComponentProps<typeof Input>): import("react").JSX.Element;
|
|
10
|
+
export declare function InputGroupTextarea({ className, ...props }: ComponentProps<typeof Textarea>): import("react").JSX.Element;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=InputGroup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InputGroup.d.ts","sourceRoot":"","sources":["../src/InputGroup.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAGzC,wBAAgB,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,KAAK,CAAC,+BAcxE;AAED,KAAK,cAAc,GAAG,cAAc,GAAG,YAAY,GAAG,aAAa,GAAG,WAAW,CAAC;AAQlF,wBAAgB,eAAe,CAAC,EAC9B,KAAsB,EACtB,SAAS,EACT,OAAO,EACP,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,KAAK,CAAC,GAAG;IAAE,KAAK,CAAC,EAAE,cAAc,CAAA;CAAE,+BAqBpD;AAGD,wBAAgB,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,OAAO,KAAK,CAAC,+BAEpF;AACD,wBAAgB,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,OAAO,QAAQ,CAAC,+BAQ1F"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { Input } from './Input.js';
|
|
4
|
+
import { Textarea } from './Textarea.js';
|
|
5
|
+
import { cn } from './lib/utils.js';
|
|
6
|
+
export function InputGroup({ className, ...props }) {
|
|
7
|
+
return (_jsx("div", { role: "group", "data-slot": "input-group", className: cn('flex w-full min-w-0 items-center rounded-md border border-border-default bg-canvas', 'has-[[data-control]:focus-visible]:outline-2 has-[[data-control]:focus-visible]:outline-offset-2 has-[[data-control]:focus-visible]:outline-ring', 'has-[[aria-invalid=true]]:border-deny has-[[data-align^=block]]:flex-col', className), ...props }));
|
|
8
|
+
}
|
|
9
|
+
const alignment = {
|
|
10
|
+
'inline-start': 'order-first ps-3',
|
|
11
|
+
'inline-end': 'order-last pe-3',
|
|
12
|
+
'block-start': 'order-first w-full px-3 pt-2',
|
|
13
|
+
'block-end': 'order-last w-full px-3 pb-2',
|
|
14
|
+
};
|
|
15
|
+
export function InputGroupAddon({ align = 'inline-start', className, onClick, ...props }) {
|
|
16
|
+
return (_jsx("div", { "data-align": align, className: cn('flex shrink-0 items-center gap-2 text-ink-subtle', alignment[align], className), onClick: (event) => {
|
|
17
|
+
onClick?.(event);
|
|
18
|
+
if (event.defaultPrevented ||
|
|
19
|
+
event.target.closest('button, a, input, select, textarea, [role="button"]'))
|
|
20
|
+
return;
|
|
21
|
+
event.currentTarget.parentElement?.querySelector('[data-control]')?.focus();
|
|
22
|
+
}, ...props }));
|
|
23
|
+
}
|
|
24
|
+
const control = 'min-w-0 flex-1 rounded-none border-0 bg-transparent focus-visible:outline-none';
|
|
25
|
+
export function InputGroupInput({ className, ...props }) {
|
|
26
|
+
return _jsx(Input, { "data-control": "", className: cn(control, className), ...props });
|
|
27
|
+
}
|
|
28
|
+
export function InputGroupTextarea({ className, ...props }) {
|
|
29
|
+
return (_jsx(Textarea, { "data-control": "", className: cn(control, 'focus:bg-transparent', className), ...props }));
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=InputGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InputGroup.js","sour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AG,KAAK,EAAgC;IACnF,OAAO,KAAC,KAAK,oBAAc,EAAE,EAAC,SAAS,EAAE,EAAE,CAAC,OAAO,EAAE,SAAS,CAAC,KAAM,KAAK,GAAI,CAAC;AACjF,CAAC;AACD,MAAM,UAAU,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAmC;IACzF,OAAO,CACL,KAAC,QAAQ,oBACM,EAAE,EACf,SAAS,EAAE,EAAE,CAAC,OAAO,EAAE,sBAAsB,EAAE,SAAS,CAAC,KACrD,KAAK,GACT,CACH,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type ComponentProps } from 'react';
|
|
2
|
+
import { OTPInput } from 'input-otp';
|
|
3
|
+
export type InputOTPProps = Omit<ComponentProps<typeof OTPInput>, 'render' | 'children' | 'maxLength'> & {
|
|
4
|
+
maxLength?: number;
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
};
|
|
7
|
+
export declare function InputOTP({ maxLength, children, containerClassName, ...props }: InputOTPProps): import("react").JSX.Element;
|
|
8
|
+
export declare function InputOTPGroup({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
|
|
9
|
+
export declare function InputOTPSlot({ index, className, ...props }: ComponentProps<'div'> & {
|
|
10
|
+
index: number;
|
|
11
|
+
}): import("react").JSX.Element | null;
|
|
12
|
+
export declare function InputOTPSeparator(): import("react").JSX.Element;
|
|
13
|
+
//# sourceMappingURL=InputOTP.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InputOTP.d.ts","sourceRoot":"","sources":["../src/InputOTP.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAmB,MAAM,WAAW,CAAC;AAGtD,MAAM,MAAM,aAAa,GAAG,IAAI,CAC9B,cAAc,CAAC,OAAO,QAAQ,CAAC,EAC/B,QAAQ,GAAG,UAAU,GAAG,WAAW,CACpC,GAAG;IACF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;AAEF,wBAAgB,QAAQ,CAAC,EAAE,SAAa,EAAE,QAAQ,EAAE,kBAAkB,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,+BAoBhG;AAED,wBAAgB,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,KAAK,CAAC,+BAE3E;AAED,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,SAAS,EACT,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,KAAK,CAAC,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,sCAmB3C;AAED,wBAAgB,iBAAiB,gCAMhC"}
|
package/dist/InputOTP.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useContext } from 'react';
|
|
4
|
+
import { OTPInput, OTPInputContext } from 'input-otp';
|
|
5
|
+
import { cn } from './lib/utils.js';
|
|
6
|
+
export function InputOTP({ maxLength = 6, children, containerClassName, ...props }) {
|
|
7
|
+
return (_jsx(OTPInput, { maxLength: maxLength, autoComplete: "one-time-code", containerClassName: cn('group/otp flex items-center gap-2 has-[:disabled]:opacity-50', containerClassName), ...props, children: children ?? (_jsx(InputOTPGroup, { children: Array.from({ length: maxLength }, (_, index) => (_jsx(InputOTPSlot, { index: index }, index))) })) }));
|
|
8
|
+
}
|
|
9
|
+
export function InputOTPGroup({ className, ...props }) {
|
|
10
|
+
return _jsx("div", { "aria-hidden": "true", className: cn('flex items-center', className), ...props });
|
|
11
|
+
}
|
|
12
|
+
export function InputOTPSlot({ index, className, ...props }) {
|
|
13
|
+
const slot = useContext(OTPInputContext).slots[index];
|
|
14
|
+
if (!slot)
|
|
15
|
+
return null;
|
|
16
|
+
return (_jsxs("div", { "aria-hidden": "true", "data-active": slot.isActive || undefined, className: cn('relative flex size-10 items-center justify-center border-y border-e border-border-default bg-canvas font-mono text-ink', 'first:rounded-s-md first:border-s last:rounded-e-md group-has-[[aria-invalid=true]]/otp:border-deny', 'data-[active]:z-10 data-[active]:outline-2 data-[active]:outline-ring', className), ...props, children: [slot.char ?? _jsx("span", { className: "text-ink-faint", children: slot.placeholderChar }), slot.hasFakeCaret && _jsx("span", { className: "absolute h-4 w-px bg-current" })] }));
|
|
17
|
+
}
|
|
18
|
+
export function InputOTPSeparator() {
|
|
19
|
+
return (_jsx("span", { "aria-hidden": "true", className: "text-ink-subtle", children: "\u2013" }));
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=InputOTP.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InputOTP.js","sourceRoot":"","sources":["../src/InputOTP.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,UAAU,EAAuB,MAAM,OAAO,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACtD,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AAUpC,MAAM,UAAU,QAAQ,CAAC,EAAE,SAAS,GAAG,CAAC,EAAE,QAAQ,EAAE,kBAAkB,EAAE,GAAG,KAAK,EAAiB;IAC/F,OAAO,CACL,KAAC,QAAQ,IACP,SAAS,EAAE,SAAS,EACpB,YAAY,EAAC,eAAe,EAC5B,kBAAkB,EAAE,EAAE,CACpB,8DAA8D,EAC9D,kBAAkB,CACnB,KACG,KAAK,YAER,QAAQ,IAAI,CACX,KAAC,aAAa,cACX,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,CAC/C,KAAC,YAAY,IAAa,KAAK,EAAE,KAAK,IAAnB,KAAK,CAAkB,CAC3C,CAAC,GACY,CACjB,GACQ,CACZ,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAyB;IAC1E,OAAO,6BAAiB,MAAM,EAAC,SAAS,EAAE,EAAE,CAAC,mBAAmB,EAAE,SAAS,CAAC,KAAM,KAAK,GAAI,CAAC;AAC9F,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,EAC3B,KAAK,EACL,SAAS,EACT,GAAG,KAAK,EACkC;IAC1C,MAAM,IAAI,GAAG,UAAU,CAAC,eAAe,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IACtD,IAAI,CAAC,IAAI;QAAE,OAAO,IAAI,CAAC;IACvB,OAAO,CACL,8BACc,MAAM,iBACL,IAAI,CAAC,QAAQ,IAAI,SAAS,EACvC,SAAS,EAAE,EAAE,CACX,wHAAwH,EACxH,qGAAqG,EACrG,uEAAuE,EACvE,SAAS,CACV,KACG,KAAK,aAER,IAAI,CAAC,IAAI,IAAI,eAAM,SAAS,EAAC,gBAAgB,YAAE,IAAI,CAAC,eAAe,GAAQ,EAC3E,IAAI,CAAC,YAAY,IAAI,eAAM,SAAS,EAAC,8BAA8B,GAAG,IACnE,CACP,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,iBAAiB;IAC/B,OAAO,CACL,8BAAkB,MAAM,EAAC,SAAS,EAAC,iBAAiB,uBAE7C,CACR,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
export interface MotionIconProps extends Omit<ComponentProps<'svg'>, 'children'> {
|
|
3
|
+
size?: number | string;
|
|
4
|
+
/** By default, the containing button or link plays the icon on hover or keyboard focus. */
|
|
5
|
+
active?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare function ScanFaceIcon(props: MotionIconProps): import("react").JSX.Element;
|
|
8
|
+
export declare function FingerprintIcon(props: MotionIconProps): import("react").JSX.Element;
|
|
9
|
+
export declare function CopyIcon(props: MotionIconProps): import("react").JSX.Element;
|
|
10
|
+
export declare function ActivityIcon(props: MotionIconProps): import("react").JSX.Element;
|
|
11
|
+
export declare function AudioLinesIcon(props: MotionIconProps): import("react").JSX.Element;
|
|
12
|
+
export declare function BanIcon(props: MotionIconProps): import("react").JSX.Element;
|
|
13
|
+
export declare function BotIcon(props: MotionIconProps): import("react").JSX.Element;
|
|
14
|
+
export declare function CheckIcon(props: MotionIconProps): import("react").JSX.Element;
|
|
15
|
+
export declare function ChevronRightIcon(props: MotionIconProps): import("react").JSX.Element;
|
|
16
|
+
export declare function ChevronsUpDownIcon(props: MotionIconProps): import("react").JSX.Element;
|
|
17
|
+
export declare function CircleCheckIcon(props: MotionIconProps): import("react").JSX.Element;
|
|
18
|
+
export declare function DeleteIcon(props: MotionIconProps): import("react").JSX.Element;
|
|
19
|
+
export declare function ExternalLinkIcon(props: MotionIconProps): import("react").JSX.Element;
|
|
20
|
+
export declare function FolderOpenIcon(props: MotionIconProps): import("react").JSX.Element;
|
|
21
|
+
export declare function LogoutIcon(props: MotionIconProps): import("react").JSX.Element;
|
|
22
|
+
export declare function PanelLeft(props: MotionIconProps): import("react").JSX.Element;
|
|
23
|
+
export declare function PlusIcon(props: MotionIconProps): import("react").JSX.Element;
|
|
24
|
+
export declare function RefreshCWIcon(props: MotionIconProps): import("react").JSX.Element;
|
|
25
|
+
export declare function RouteIcon(props: MotionIconProps): import("react").JSX.Element;
|
|
26
|
+
/** Clip the rails at their fixed ends while each handle and its gap slide together. */
|
|
27
|
+
export declare function SlidersHorizontalIcon(props: MotionIconProps): import("react").JSX.Element;
|
|
28
|
+
export { SlidersHorizontalIcon as SettingsIcon };
|
|
29
|
+
export declare function AnimatedSparklesIcon(props: MotionIconProps): import("react").JSX.Element;
|
|
30
|
+
export declare function TerminalIcon(props: MotionIconProps): import("react").JSX.Element;
|
|
31
|
+
export declare function XIcon(props: MotionIconProps): import("react").JSX.Element;
|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BAS/C;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,eAAe,+BAQ9C;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,eAAe,+BAQnD;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,eAAe,+BAY/C;AAED,uFAAuF;AACvF,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,eAAe,+BAgB3D;AAGD,OAAO,EAAE,qBAAqB,IAAI,YAAY,EAAE,CAAC;AAEjD,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,eAAe,+BAU1D;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,eAAe,+BAOlD;AAED,wBAAgB,KAAK,CAAC,KAAK,EAAE,eAAe,+BAO3C"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
function Icon({ size = 16, active, children, ...props }) {
|
|
3
|
+
const named = Boolean(props['aria-label'] || props['aria-labelledby']);
|
|
4
|
+
return (_jsx("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", focusable: "false", role: named ? 'img' : undefined, "aria-hidden": named ? undefined : true, "data-vouched-icon": active === undefined ? 'auto' : active ? 'play' : 'still', ...props, children: children }));
|
|
5
|
+
}
|
|
6
|
+
export function ScanFaceIcon(props) {
|
|
7
|
+
return (_jsxs(Icon, { ...props, children: [_jsx("path", { "data-part": "frame", d: "M3 7V5a2 2 0 0 1 2-2h2 M17 3h2a2 2 0 0 1 2 2v2 M21 17v2a2 2 0 0 1-2 2h-2 M7 21H5a2 2 0 0 1-2-2v-2" }), _jsx("path", { d: "M9 9h.01 M15 9h.01 M8 14s1.5 2 4 2 4-2 4-2" })] }));
|
|
8
|
+
}
|
|
9
|
+
const ridges = [
|
|
10
|
+
'M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4',
|
|
11
|
+
'M14 13.12c0 2.38 0 6.38-1 8.88',
|
|
12
|
+
'M17.29 21.02c.12-.6.43-2.3.5-3.02',
|
|
13
|
+
'M2 12a10 10 0 0 1 18-6',
|
|
14
|
+
'M2 16h.01',
|
|
15
|
+
'M21.8 16c.2-2 .131-5.354 0-6',
|
|
16
|
+
'M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2',
|
|
17
|
+
'M8.65 22c.21-.66.45-1.32.57-2',
|
|
18
|
+
'M9 6.8a6 6 0 0 1 9 5.2v2',
|
|
19
|
+
];
|
|
20
|
+
export function FingerprintIcon(props) {
|
|
21
|
+
return (_jsx(Icon, { ...props, children: ridges.map((d) => (_jsx("path", { "data-part": "ridge", d: d, pathLength: "1" }, d))) }));
|
|
22
|
+
}
|
|
23
|
+
export function CopyIcon(props) {
|
|
24
|
+
return (_jsxs(Icon, { ...props, children: [_jsx("path", { d: "M4 16a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2" }), _jsx("rect", { "data-part": "sheet", x: "8", y: "8", width: "14", height: "14", rx: "2" })] }));
|
|
25
|
+
}
|
|
26
|
+
/** Move a group of strokes together, in the icon's 24-unit coordinate system. */
|
|
27
|
+
function Move({ to, children }) {
|
|
28
|
+
return (_jsx("g", { "data-part": "move", style: { '--icon-pose': to }, children: children }));
|
|
29
|
+
}
|
|
30
|
+
export function ActivityIcon(props) {
|
|
31
|
+
return (_jsx(Icon, { ...props, children: _jsx("path", { "data-part": "trace", pathLength: "1", d: "M22 12h-4l-3 9L9 3l-3 9H2" }) }));
|
|
32
|
+
}
|
|
33
|
+
export function AudioLinesIcon(props) {
|
|
34
|
+
return (_jsxs(Icon, { ...props, children: [_jsx("path", { d: "M2 10v3 M22 10v3" }), _jsx("path", { "data-part": "wave", d: "M6 6v11" }), _jsx("path", { "data-part": "wave", d: "M10 3v18" }), _jsx("path", { "data-part": "wave", d: "M14 8v7" }), _jsx("path", { "data-part": "wave", d: "M18 5v13" })] }));
|
|
35
|
+
}
|
|
36
|
+
export function BanIcon(props) {
|
|
37
|
+
return (_jsxs(Icon, { ...props, children: [_jsx("circle", { "data-part": "trace", cx: "12", cy: "12", r: "10", pathLength: "1" }), _jsx("path", { "data-part": "trace-later", pathLength: "1", d: "m4.9 4.9 14.2 14.2" })] }));
|
|
38
|
+
}
|
|
39
|
+
export function BotIcon(props) {
|
|
40
|
+
return (_jsxs(Icon, { ...props, children: [_jsx("path", { d: "M12 8V4H8 M2 14h2 M20 14h2" }), _jsx("rect", { x: "4", y: "8", width: "16", height: "12", rx: "2" }), _jsx(Move, { to: "scaleY(.12)", children: _jsx("path", { d: "M9 13v2 M15 13v2" }) })] }));
|
|
41
|
+
}
|
|
42
|
+
export function CheckIcon(props) {
|
|
43
|
+
return (_jsx(Icon, { ...props, children: _jsx("path", { "data-part": "trace", pathLength: "1", d: "M4 12 9 17 20 6" }) }));
|
|
44
|
+
}
|
|
45
|
+
export function ChevronRightIcon(props) {
|
|
46
|
+
return (_jsx(Icon, { ...props, children: _jsx(Move, { to: "translateX(2px)", children: _jsx("path", { d: "m9 18 6-6-6-6" }) }) }));
|
|
47
|
+
}
|
|
48
|
+
export function ChevronsUpDownIcon(props) {
|
|
49
|
+
return (_jsxs(Icon, { ...props, children: [_jsx(Move, { to: "translateY(2px)", children: _jsx("path", { d: "m7 15 5 5 5-5" }) }), _jsx(Move, { to: "translateY(-2px)", children: _jsx("path", { d: "m7 9 5-5 5 5" }) })] }));
|
|
50
|
+
}
|
|
51
|
+
export function CircleCheckIcon(props) {
|
|
52
|
+
return (_jsxs(Icon, { ...props, children: [_jsx("circle", { cx: "12", cy: "12", r: "10" }), _jsx("path", { "data-part": "trace", pathLength: "1", d: "m9 12 2 2 4-4" })] }));
|
|
53
|
+
}
|
|
54
|
+
export function DeleteIcon(props) {
|
|
55
|
+
return (_jsxs(Icon, { ...props, children: [_jsx(Move, { to: "translateY(-1.1px)", children: _jsx("path", { d: "M3 6h18 M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2" }) }), _jsx(Move, { to: "translateY(1px)", children: _jsx("path", { d: "M19 8v12c0 1-1 2-2 2H7c-1 0-2-1-2-2V8 M10 11v6 M14 11v6" }) })] }));
|
|
56
|
+
}
|
|
57
|
+
export function ExternalLinkIcon(props) {
|
|
58
|
+
return (_jsxs(Icon, { ...props, children: [_jsx("path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" }), _jsx(Move, { to: "translate(2px,-2px)", children: _jsx("path", { d: "M15 3h6v6 M10 14 21 3" }) })] }));
|
|
59
|
+
}
|
|
60
|
+
export function FolderOpenIcon(props) {
|
|
61
|
+
return (_jsxs(Icon, { ...props, children: [_jsx(Move, { to: "rotate(-2deg)", children: _jsx("path", { d: "M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z" }) }), _jsx(Move, { to: "translateY(-2px)", children: _jsx("path", { d: "M2 10l4.5 8.5a1 1 0 0 0 .86.5h11.28a1 1 0 0 0 .86-.5L22 10" }) })] }));
|
|
62
|
+
}
|
|
63
|
+
export function LogoutIcon(props) {
|
|
64
|
+
return (_jsxs(Icon, { ...props, children: [_jsx("path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" }), _jsx(Move, { to: "translateX(2px)", children: _jsx("path", { d: "m16 17 5-5-5-5 M21 12H9" }) })] }));
|
|
65
|
+
}
|
|
66
|
+
export function PanelLeft(props) {
|
|
67
|
+
return (_jsxs(Icon, { ...props, children: [_jsx("rect", { width: "18", height: "18", x: "3", y: "3", rx: "2" }), _jsx(Move, { to: "translateX(-2px)", children: _jsx("path", { d: "M9 3v18" }) })] }));
|
|
68
|
+
}
|
|
69
|
+
export function PlusIcon(props) {
|
|
70
|
+
return (_jsx(Icon, { ...props, children: _jsx(Move, { to: "rotate(180deg)", children: _jsx("path", { d: "M5 12h14 M12 5v14" }) }) }));
|
|
71
|
+
}
|
|
72
|
+
export function RefreshCWIcon(props) {
|
|
73
|
+
return (_jsx(Icon, { ...props, children: _jsx(Move, { to: "rotate(50deg)", children: _jsx("path", { d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8 M21 3v5h-5 M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16 M8 16H3v5" }) }) }));
|
|
74
|
+
}
|
|
75
|
+
export function RouteIcon(props) {
|
|
76
|
+
return (_jsxs(Icon, { ...props, children: [_jsx("circle", { "data-part": "trace", pathLength: "1", cx: "6", cy: "19", r: "3" }), _jsx("path", { "data-part": "trace", pathLength: "1", d: "M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15" }), _jsx("circle", { "data-part": "trace-later", pathLength: "1", cx: "18", cy: "5", r: "3" })] }));
|
|
77
|
+
}
|
|
78
|
+
/** Clip the rails at their fixed ends while each handle and its gap slide together. */
|
|
79
|
+
export function SlidersHorizontalIcon(props) {
|
|
80
|
+
return (_jsx(Icon, { ...props, children: _jsxs("svg", { x: "2", y: "1", width: "20", height: "22", viewBox: "2 1 20 22", overflow: "hidden", children: [_jsx(Move, { to: "translateX(-5px)", children: _jsx("path", { d: "M-6 4h16 M14 4h16 M14 2v4" }) }), _jsx(Move, { to: "translateX(6px)", children: _jsx("path", { d: "M-6 12H8 M12 12h18 M8 10v4" }) }), _jsx(Move, { to: "translateX(-8px)", children: _jsx("path", { d: "M-6 20h18 M16 20h14 M16 18v4" }) })] }) }));
|
|
81
|
+
}
|
|
82
|
+
// Checkpoint exposes both names for its three-slider settings control.
|
|
83
|
+
export { SlidersHorizontalIcon as SettingsIcon };
|
|
84
|
+
export function AnimatedSparklesIcon(props) {
|
|
85
|
+
return (_jsxs(Icon, { ...props, children: [_jsx("path", { "data-part": "sparkle", d: "M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z" }), _jsx("path", { "data-part": "blink", d: "M20 3v4 M22 5h-4 M4 17v2 M5 18H3" })] }));
|
|
86
|
+
}
|
|
87
|
+
export function TerminalIcon(props) {
|
|
88
|
+
return (_jsxs(Icon, { ...props, children: [_jsx("path", { d: "m4 17 6-6-6-6" }), _jsx("path", { "data-part": "cursor", d: "M12 19h8" })] }));
|
|
89
|
+
}
|
|
90
|
+
export function XIcon(props) {
|
|
91
|
+
return (_jsxs(Icon, { ...props, children: [_jsx("path", { "data-part": "trace", pathLength: "1", d: "M18 6 6 18" }), _jsx("path", { "data-part": "trace-later", pathLength: "1", d: "m6 6 12 12" })] }));
|
|
92
|
+
}
|
|
93
|
+
//# sourceMappingURL=MotionIcons.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MotionIcons.js","sourceRoot":"","sources":["../src/MotionIcons.tsx"],"names":[],"mappings":";AAQA,SAAS,IAAI,CAAC,EACZ,IAAI,GAAG,EAAE,EACT,MAAM,EACN,QAAQ,EACR,GAAG,KAAK,EACkD;IAC1D,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,YAAY,CAAC,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC;IACvE,OAAO,CACL,cACE,KAAK,EAAE,IAAI,EACX,MAAM,EAAE,IAAI,EACZ,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,WAAW,EAAC,GAAG,EACf,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,EACtB,SAAS,EAAC,OAAO,EACjB,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,iBAClB,KAAK,CAA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uE;AACvE,OAAO,EAAE,qBAAqB,IAAI,YAAY,EAAE,CAAC;AAEjD,MAAM,UAAU,oBAAoB,CAAC,KAAsB;IACzD,OAAO,CACL,MAAC,IAAI,OAAK,KAAK,aACb,4BACY,SAAS,EACnB,CAAC,EAAC,6PAA6P,GAC/P,EACF,4BAAgB,OAAO,EAAC,CAAC,EAAC,kCAAkC,GAAG,IAC1D,CACR,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,KAAsB;IACjD,OAAO,CACL,MAAC,IAAI,OAAK,KAAK,aACb,eAAM,CAAC,EAAC,eAAe,GAAG,EAC1B,4BAAgB,QAAQ,EAAC,CAAC,EAAC,UAAU,GAAG,IACnC,CACR,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,KAAK,CAAC,KAAsB;IAC1C,OAAO,CACL,MAAC,IAAI,OAAK,KAAK,aACb,4BAAgB,OAAO,EAAC,UAAU,EAAC,GAAG,EAAC,CAAC,EAAC,YAAY,GAAG,EACxD,4BAAgB,aAAa,EAAC,UAAU,EAAC,GAAG,EAAC,CAAC,EAAC,YAAY,GAAG,IACzD,CACR,CAAC;AACJ,CAAC"}
|
package/dist/Toast.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ import { Toaster as SonnerToaster, toast as sonnerToast } from 'sonner';
|
|
|
16
16
|
*
|
|
17
17
|
* Theme scope — identical problem/solution as Tooltip's portal scope.
|
|
18
18
|
* Sonner renders its container inline (not via Radix portal), but it still
|
|
19
|
-
* sits outside the `[data-theme
|
|
19
|
+
* sits outside the `[data-theme="base"]` ancestry unless we stamp
|
|
20
20
|
* the scope ourselves. `useThemeScope()` gives the theme and the mode
|
|
21
21
|
* (the nearest ThemeScopeProvider's, else next-themes') so the toast
|
|
22
22
|
* chrome follows the shell's active theme instead of being pinned to dark.
|
package/dist/public.d.ts
CHANGED
|
@@ -16,6 +16,9 @@ export { Button, Slot, buttonVariants, type ButtonProps } from './Button.js';
|
|
|
16
16
|
export { VouchedLogo, type VouchedLogoProps, type VouchedLogoPulse, type VouchedLogoPulseKind, } from './VouchedLogo.js';
|
|
17
17
|
export { Alert, AlertDescription, AlertTitle, alertVariants, type AlertProps } from './Alert.js';
|
|
18
18
|
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from './Accordion.js';
|
|
19
|
+
export * from './MotionIcons.js';
|
|
20
|
+
export { InputGroup, InputGroupAddon, InputGroupInput, InputGroupTextarea } from './InputGroup.js';
|
|
21
|
+
export { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator, type InputOTPProps, } from './InputOTP.js';
|
|
19
22
|
export { Input, type InputProps } from './Input.js';
|
|
20
23
|
export { Field } from './Field.js';
|
|
21
24
|
export { Label } from './Label.js';
|
|
@@ -47,7 +50,7 @@ export { Kbd, type KbdProps } from './Kbd.js';
|
|
|
47
50
|
export { EmptyState, type EmptyStateProps } from './EmptyState.js';
|
|
48
51
|
export { Skeleton, type SkeletonProps } from './Skeleton.js';
|
|
49
52
|
export { DenyGlyph, SuccessGlyph } from './_status-icons.js';
|
|
50
|
-
export { DEFAULT_THEME, ThemeScopeProvider, themeScopeProps, modeOfScope, useThemeScope,
|
|
53
|
+
export { DEFAULT_THEME, ThemeScopeProvider, themeScopeProps, modeOfScope, useThemeScope, type ThemeMode, type ThemeScope, } from './theme-scope.js';
|
|
51
54
|
export { CodeBlock, CodeToken, CodeCopyButton, type CodeBlockProps, type CodeTokenProps, type CodeTokenKind, type CodeCopyButtonProps, } from './CodeBlock.js';
|
|
52
55
|
export { InstallCommand, buildInstallCommand, type InstallCommandProps, type PackageManager, type InstallKind, } from './InstallCommand.js';
|
|
53
56
|
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider } from './Tooltip.js';
|
package/dist/public.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../src/public.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,MAAM,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AAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,EACjB,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,GAC5B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,wBAAwB,EACxB,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,eAAe,EACf,sBAAsB,EACtB,sBAAsB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,GACjC,MAAM,mBAAmB,CAAC"}
|
package/dist/public.js
CHANGED
|
@@ -16,6 +16,9 @@ export { Button, Slot, buttonVariants } from './Button.js';
|
|
|
16
16
|
export { VouchedLogo, } from './VouchedLogo.js';
|
|
17
17
|
export { Alert, AlertDescription, AlertTitle, alertVariants } from './Alert.js';
|
|
18
18
|
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from './Accordion.js';
|
|
19
|
+
export * from './MotionIcons.js';
|
|
20
|
+
export { InputGroup, InputGroupAddon, InputGroupInput, InputGroupTextarea } from './InputGroup.js';
|
|
21
|
+
export { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator, } from './InputOTP.js';
|
|
19
22
|
export { Input } from './Input.js';
|
|
20
23
|
export { Field } from './Field.js';
|
|
21
24
|
export { Label } from './Label.js';
|
|
@@ -49,7 +52,7 @@ export { Kbd } from './Kbd.js';
|
|
|
49
52
|
export { EmptyState } from './EmptyState.js';
|
|
50
53
|
export { Skeleton } from './Skeleton.js';
|
|
51
54
|
export { DenyGlyph, SuccessGlyph } from './_status-icons.js';
|
|
52
|
-
export { DEFAULT_THEME, ThemeScopeProvider, themeScopeProps, modeOfScope, useThemeScope,
|
|
55
|
+
export { DEFAULT_THEME, ThemeScopeProvider, themeScopeProps, modeOfScope, useThemeScope, } from './theme-scope.js';
|
|
53
56
|
// Code display — recessed ink-well code + install commands
|
|
54
57
|
export { CodeBlock, CodeToken, CodeCopyButton, } from './CodeBlock.js';
|
|
55
58
|
export { InstallCommand, buildInstallCommand, } from './InstallCommand.js';
|
package/dist/public.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public.js","sourceRoot":"","sources":["../src/public.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,EAAoB,MAAM,aAAa,CAAC;AAC7E,OAAO,EACL,WAAW,GAIZ,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,aAAa,EAAmB,MAAM,YAAY,CAAC;AACjG,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAC9F,OAAO,EAAE,KAAK,EAAmB,MAAM,YAAY,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAC/E,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACvF,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EACL,YAAY,EACZ,QAAQ,EACR,IAAI,EACJ,WAAW,EACX,QAA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jB,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,WAAW,EACX,aAAa,GAEd,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,KAAK,EACL,UAAU,EACV,YAAY,EACZ,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,YAAY,EACZ,WAAW,EACX,UAAU,EACV,YAAY,GAEb,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,GAGlB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,wBAAwB,EACxB,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,eAAe,EACf,sBAAsB,EACtB,sBAAsB,GAGvB,MAAM,mBAAmB,CAAC"}
|
package/dist/theme-scope.d.ts
CHANGED
|
@@ -12,21 +12,20 @@ export interface ThemeScope {
|
|
|
12
12
|
mode: ThemeMode;
|
|
13
13
|
}
|
|
14
14
|
/** The theme the primitives render in when no scope above them names another. */
|
|
15
|
-
export declare const DEFAULT_THEME = "
|
|
15
|
+
export declare const DEFAULT_THEME = "base";
|
|
16
16
|
/**
|
|
17
17
|
* The stamps for a scope element. Spread them on the element and merge
|
|
18
18
|
* `className` into its own classes, or set both by hand.
|
|
19
19
|
*
|
|
20
|
-
* @example <div {...themeScopeProps({ theme: '
|
|
20
|
+
* @example <div {...themeScopeProps({ theme: 'base', mode: 'dark' })} />
|
|
21
21
|
*/
|
|
22
22
|
export declare function themeScopeProps(scope: ThemeScope): {
|
|
23
23
|
'data-theme': string;
|
|
24
24
|
className: ThemeMode;
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
27
|
-
* The mode a scope element selects, or undefined when it selects none
|
|
28
|
-
* mode class
|
|
29
|
-
* the theme name still read: `checkpoint` is dark, any `*-light` is light.
|
|
27
|
+
* The mode a scope element selects, or undefined when it selects none: its
|
|
28
|
+
* mode class, since the theme name never carries a mode.
|
|
30
29
|
*/
|
|
31
30
|
export declare function modeOfScope(element: Element | null | undefined): ThemeMode | undefined;
|
|
32
31
|
/**
|
|
@@ -45,11 +44,4 @@ export declare function ThemeScopeProvider({ scope, children, }: {
|
|
|
45
44
|
* ThemeScopeProvider's, else DEFAULT_THEME in the page's mode.
|
|
46
45
|
*/
|
|
47
46
|
export declare function useThemeScope(): ThemeScope;
|
|
48
|
-
/**
|
|
49
|
-
* The scope as one `data-theme` value, in the deprecated form that folds the
|
|
50
|
-
* mode into the theme name (`checkpoint` for dark, `checkpoint-light`).
|
|
51
|
-
*
|
|
52
|
-
* @deprecated Stamp `useThemeScope()` with `themeScopeProps`.
|
|
53
|
-
*/
|
|
54
|
-
export declare function useCheckpointThemeAttr(): 'checkpoint' | 'checkpoint-light';
|
|
55
47
|
//# sourceMappingURL=theme-scope.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme-scope.d.ts","sourceRoot":"","sources":["../src/theme-scope.ts"],"names":[],"mappings":"AAEA,OAAO,EAA4C,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAGjF;;;;;;GAMG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;AAEzC,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,SAAS,CAAC;CACjB;AAED,iFAAiF;AACjF,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"theme-scope.d.ts","sourceRoot":"","sources":["../src/theme-scope.ts"],"names":[],"mappings":"AAEA,OAAO,EAA4C,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAGjF;;;;;;GAMG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;AAEzC,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,SAAS,CAAC;CACjB;AAED,iFAAiF;AACjF,eAAO,MAAM,aAAa,SAAS,CAAC;AAEpC;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,UAAU,GAAG;IAClD,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,SAAS,CAAC;CACtB,CAEA;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAKtF;AAID;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,KAAK,EACL,QAAQ,GACT,EAAE;IACD,KAAK,EAAE,UAAU,CAAC;IAClB,QAAQ,EAAE,SAAS,CAAC;CACrB,8FAEA;AA4BD;;;GAGG;AACH,wBAAgB,aAAa,IAAI,UAAU,CAI1C"}
|
package/dist/theme-scope.js
CHANGED
|
@@ -2,20 +2,19 @@
|
|
|
2
2
|
import { createContext, createElement, useContext } from 'react';
|
|
3
3
|
import { useTheme } from 'next-themes';
|
|
4
4
|
/** The theme the primitives render in when no scope above them names another. */
|
|
5
|
-
export const DEFAULT_THEME = '
|
|
5
|
+
export const DEFAULT_THEME = 'base';
|
|
6
6
|
/**
|
|
7
7
|
* The stamps for a scope element. Spread them on the element and merge
|
|
8
8
|
* `className` into its own classes, or set both by hand.
|
|
9
9
|
*
|
|
10
|
-
* @example <div {...themeScopeProps({ theme: '
|
|
10
|
+
* @example <div {...themeScopeProps({ theme: 'base', mode: 'dark' })} />
|
|
11
11
|
*/
|
|
12
12
|
export function themeScopeProps(scope) {
|
|
13
13
|
return { 'data-theme': scope.theme, className: scope.mode };
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
|
-
* The mode a scope element selects, or undefined when it selects none
|
|
17
|
-
* mode class
|
|
18
|
-
* the theme name still read: `checkpoint` is dark, any `*-light` is light.
|
|
16
|
+
* The mode a scope element selects, or undefined when it selects none: its
|
|
17
|
+
* mode class, since the theme name never carries a mode.
|
|
19
18
|
*/
|
|
20
19
|
export function modeOfScope(element) {
|
|
21
20
|
if (!element)
|
|
@@ -24,11 +23,6 @@ export function modeOfScope(element) {
|
|
|
24
23
|
return 'dark';
|
|
25
24
|
if (element.classList.contains('light'))
|
|
26
25
|
return 'light';
|
|
27
|
-
const theme = element.getAttribute('data-theme');
|
|
28
|
-
if (theme === DEFAULT_THEME)
|
|
29
|
-
return 'dark';
|
|
30
|
-
if (theme?.endsWith('-light'))
|
|
31
|
-
return 'light';
|
|
32
26
|
return undefined;
|
|
33
27
|
}
|
|
34
28
|
const ThemeScopeContext = createContext(null);
|
|
@@ -47,7 +41,7 @@ export function ThemeScopeProvider({ scope, children, }) {
|
|
|
47
41
|
*
|
|
48
42
|
* `resolvedTheme` is undefined until next-themes hydrates. A portaled surface
|
|
49
43
|
* has no scope ancestor to inherit from, so during that window it adopts the
|
|
50
|
-
* mode the pre-paint script stamped on the first
|
|
44
|
+
* mode the pre-paint script stamped on the first base theme scope in the
|
|
51
45
|
* document rather than defaulting to dark, or a dialog open before hydration
|
|
52
46
|
* would render dark chrome under a light shell. With nothing stamped it is
|
|
53
47
|
* light: brand surfaces are pinned light, and server-rendered portals must not
|
|
@@ -63,7 +57,7 @@ function usePageMode() {
|
|
|
63
57
|
if (effectiveTheme !== undefined)
|
|
64
58
|
return effectiveTheme === 'dark' ? 'dark' : 'light';
|
|
65
59
|
if (typeof document !== 'undefined') {
|
|
66
|
-
const stamped = modeOfScope(document.querySelector(
|
|
60
|
+
const stamped = modeOfScope(document.querySelector(`[data-theme='${DEFAULT_THEME}']`));
|
|
67
61
|
if (stamped)
|
|
68
62
|
return stamped;
|
|
69
63
|
}
|
|
@@ -78,13 +72,4 @@ export function useThemeScope() {
|
|
|
78
72
|
const mode = usePageMode();
|
|
79
73
|
return provided ?? { theme: DEFAULT_THEME, mode };
|
|
80
74
|
}
|
|
81
|
-
/**
|
|
82
|
-
* The scope as one `data-theme` value, in the deprecated form that folds the
|
|
83
|
-
* mode into the theme name (`checkpoint` for dark, `checkpoint-light`).
|
|
84
|
-
*
|
|
85
|
-
* @deprecated Stamp `useThemeScope()` with `themeScopeProps`.
|
|
86
|
-
*/
|
|
87
|
-
export function useCheckpointThemeAttr() {
|
|
88
|
-
return useThemeScope().mode === 'dark' ? 'checkpoint' : 'checkpoint-light';
|
|
89
|
-
}
|
|
90
75
|
//# sourceMappingURL=theme-scope.js.map
|
package/dist/theme-scope.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme-scope.js","sourceRoot":"","sources":["../src/theme-scope.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,UAAU,EAAkB,MAAM,OAAO,CAAC;AACjF,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAgBvC,iFAAiF;AACjF,MAAM,CAAC,MAAM,aAAa,GAAG,
|
|
1
|
+
{"version":3,"file":"theme-scope.js","sourceRoot":"","sources":["../src/theme-scope.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,UAAU,EAAkB,MAAM,OAAO,CAAC;AACjF,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAgBvC,iFAAiF;AACjF,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC;AAEpC;;;;;GAKG;AACH,MAAM,UAAU,eAAe,CAAC,KAAiB;IAI/C,OAAO,EAAE,YAAY,EAAE,KAAK,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC;AAC9D,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,WAAW,CAAC,OAAmC;IAC7D,IAAI,CAAC,OAAO;QAAE,OAAO,SAAS,CAAC;I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pD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* GENERATED - do not edit. Run `pnpm ds:generate` to refresh it.
|
|
3
3
|
*
|
|
4
|
-
* Inputs (sha256
|
|
4
|
+
* Inputs (sha256 45e0c9267f73e2ea, generator v1):
|
|
5
5
|
* - packages/ui/styles/tokens.css
|
|
6
6
|
* - packages/ui/styles/tailwind-bridge.css
|
|
7
7
|
* - packages/ui/styles/semantic-bindings.css
|
package/dist/tokens.generated.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* GENERATED - do not edit. Run `pnpm ds:generate` to refresh it.
|
|
3
3
|
*
|
|
4
|
-
* Inputs (sha256
|
|
4
|
+
* Inputs (sha256 45e0c9267f73e2ea, generator v1):
|
|
5
5
|
* - packages/ui/styles/tokens.css
|
|
6
6
|
* - packages/ui/styles/tailwind-bridge.css
|
|
7
7
|
* - packages/ui/styles/semantic-bindings.css
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vouched-id/ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "The Vouched design system: tokens, named themes and React components on Tailwind v4.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"repository": {
|
|
@@ -17,6 +17,10 @@
|
|
|
17
17
|
"types": "./dist/index.d.ts",
|
|
18
18
|
"default": "./dist/index.js"
|
|
19
19
|
},
|
|
20
|
+
"./icons": {
|
|
21
|
+
"types": "./dist/MotionIcons.d.ts",
|
|
22
|
+
"default": "./dist/MotionIcons.js"
|
|
23
|
+
},
|
|
20
24
|
"./tokens": {
|
|
21
25
|
"types": "./dist/tokens.generated.d.ts",
|
|
22
26
|
"default": "./dist/tokens.generated.js"
|
|
@@ -65,6 +69,7 @@
|
|
|
65
69
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
66
70
|
"class-variance-authority": "^0.7.1",
|
|
67
71
|
"clsx": "^2.1.1",
|
|
72
|
+
"input-otp": "^1.4.2",
|
|
68
73
|
"lucide-react": "^0.478.0",
|
|
69
74
|
"motion": "^12.34.0",
|
|
70
75
|
"recharts": "^2.15.4",
|
package/styles/README.md
CHANGED
|
@@ -22,11 +22,11 @@ Two sheets are opt-in: the registry ships them beside the theme, `theme.css` doe
|
|
|
22
22
|
| Bindings | `semantic-bindings.css` | The shadcn and component names, bound to the semantic tokens on every theme |
|
|
23
23
|
| Base | `base.css` | The `dark` variant, element defaults, the vertical scroll fade and the dialog motion guards |
|
|
24
24
|
| Public component contracts | `component-contracts.css` | `data-slot` and `data-variant` treatments for the primitives |
|
|
25
|
-
| Primitive skins | `primitive-skins.css` | The Avatar fallback and the Toast skin inside a
|
|
26
|
-
| Type (opt-in) | `colors_and_type.css` |
|
|
27
|
-
| Radius doctrine (opt-in) | `shell.css` | Inside a
|
|
25
|
+
| Primitive skins | `primitive-skins.css` | The Avatar fallback and the Toast skin inside a base theme scope |
|
|
26
|
+
| Type (opt-in) | `colors_and_type.css` | Heading, body and chrome assignments inside a base theme scope |
|
|
27
|
+
| Radius doctrine (opt-in) | `shell.css` | Inside a base theme scope, the medium and large Tailwind radii flatten to 2px |
|
|
28
28
|
|
|
29
|
-
The
|
|
29
|
+
The theme loads `vouched-logo.css` for the brand artwork and `motion-icons.css` for interactive glyphs. Both respect the operating system’s reduced-motion preference.
|
|
30
30
|
|
|
31
31
|
Two more sheets exist only for the npm package:
|
|
32
32
|
|
|
@@ -35,21 +35,21 @@ Two more sheets exist only for the npm package:
|
|
|
35
35
|
|
|
36
36
|
## Semantic token contract
|
|
37
37
|
|
|
38
|
-
A scope carries two stamps: `data-theme` names the theme (`
|
|
39
|
-
Light semantics are defined at `:root` and on a `data-theme="
|
|
38
|
+
A scope carries two stamps: `data-theme` names the theme (`base`) and a `dark` or `light` class picks the mode.
|
|
39
|
+
Light semantics are defined at `:root` and on a `data-theme="base"` scope with the `.light` class; `.dark` selects dark mode, so next-themes' class on `<html>` sets the page mode.
|
|
40
40
|
A bare `.light` does not select light, because libraries put one on their own roots (React Flow does on every canvas).
|
|
41
|
-
The
|
|
42
|
-
Put both stamps on an element to force a subtree, for example `<div data-theme="
|
|
41
|
+
The theme-scoped rules (the Avatar fallback and Toast skin in `primitive-skins.css`, the opt-in radius doctrine in `shell.css` and type assignments in `colors_and_type.css`, the bare `--spacing` unit) apply inside an element whose `data-theme` names `base`, so an app puts `data-theme="base"` on `<html>` or its root element.
|
|
42
|
+
Put both stamps on an element to force a subtree, for example `<div data-theme="base" className="dark">` for a dark panel on a light page.
|
|
43
43
|
`themeScopeProps({ theme, mode })` returns the two stamps.
|
|
44
|
-
|
|
44
|
+
Only the class picks the mode: `data-theme="base"` without one takes its mode from the nearest ancestor that sets one.
|
|
45
45
|
|
|
46
46
|
Primitives that portal to `<body>` (Dialog, AlertDialog, Sheet, Popover, Tooltip, Select, DropdownMenu, Toast) render outside the element that carries the scope, so they stamp a scope on their own surface.
|
|
47
|
-
That scope is the nearest `ThemeScopeProvider`'s, else the
|
|
48
|
-
A subtree that forces a mode its portals should follow wraps itself in `<ThemeScopeProvider scope={{ theme: '
|
|
47
|
+
That scope is the nearest `ThemeScopeProvider`'s, else the base theme in the page's next-themes mode.
|
|
48
|
+
A subtree that forces a mode its portals should follow wraps itself in `<ThemeScopeProvider scope={{ theme: 'base', mode: 'dark' }}>` beside the stamps on its element.
|
|
49
49
|
|
|
50
50
|
Metric primitives (`--text-*`, `--spacing-*` steps, `--radius-*`, weights, tracking) are also global.
|
|
51
51
|
They intentionally shadow Tailwind's theme variables, so both `var()` consumers and compiled `text-*`/`tracking-*` utilities resolve the design system's ladder everywhere.
|
|
52
|
-
Only the bare `--spacing` base unit stays scoped to `[data-theme
|
|
52
|
+
Only the bare `--spacing` base unit stays scoped to `[data-theme="base"]` (see its in-place note in `tokens.css`).
|
|
53
53
|
|
|
54
54
|
Every design token lives in these sheets, inside `@layer base`.
|
|
55
55
|
An app declares no design token in its own stylesheet; its product tokens go in its own sheets, in the same layer.
|
|
@@ -89,7 +89,7 @@ A registry consumer imports the installed theme entry once, after Tailwind:
|
|
|
89
89
|
`shadcn init` adds the `tw-animate-css` line.
|
|
90
90
|
The theme item installs `tailwindcss-animate`, which `tailwind-bridge.css` loads with `@plugin`.
|
|
91
91
|
|
|
92
|
-
Either way, to opt in to the
|
|
92
|
+
Either way, to opt in to the theme's type assignments or the radius doctrine, import the sheet after the theme (`@vouched-id/ui/styles/colors_and_type.css` from the package, `./components/kya-ds/colors_and_type.css` from the registry; the same for `shell.css`).
|
|
93
93
|
|
|
94
94
|
The catalog imports the sheets one by one in `apps/catalog/.ladle/catalog.css`, the opt-in ones included, and loads the faces from `apps/catalog/.ladle/fonts.ts`.
|
|
95
95
|
|
package/styles/base.css
CHANGED
|
@@ -7,10 +7,8 @@
|
|
|
7
7
|
tokens.css and semantic-bindings.css, on each mode selector, so a scope on
|
|
8
8
|
<html> or any element below it owns them. */
|
|
9
9
|
|
|
10
|
-
/* `dark:` follows the `.dark` mode class.
|
|
11
|
-
|
|
12
|
-
which meant dark. */
|
|
13
|
-
@custom-variant dark (&:is(.dark *, [data-theme='checkpoint']:where(:not(.light)) *));
|
|
10
|
+
/* `dark:` follows the `.dark` mode class. */
|
|
11
|
+
@custom-variant dark (&:is(.dark *));
|
|
14
12
|
|
|
15
13
|
/* Element defaults. Utility classes and the primitives' data-slot styles
|
|
16
14
|
live in the utilities layer and override these. */
|
package/styles/canvas.css
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
with `, 0` fallbacks so a light surface that accidentally takes
|
|
12
12
|
the class renders a clean canvas instead of invalid paint.
|
|
13
13
|
|
|
14
|
-
Inside `[data-theme
|
|
14
|
+
Inside `[data-theme='base']` subtrees semantic-bindings.css
|
|
15
15
|
still force-disables the pseudo-element stack (the dashboard's
|
|
16
16
|
"cards carry the visual weight" decision) — that rule has higher
|
|
17
17
|
specificity, so the Checkpoint shell is unaffected by this file.
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
theme. The dashboard layouts and Ladle import it.
|
|
15
15
|
|
|
16
16
|
Scope: every selector is namespaced behind
|
|
17
|
-
`[data-theme
|
|
17
|
+
`[data-theme="base"]` so surfaces outside the theme
|
|
18
18
|
stay untouched. v5's canonical file binds at the bare element
|
|
19
19
|
level (h1, body); the in-repo variant scopes those bindings to
|
|
20
|
-
the
|
|
20
|
+
the base theme so it doesn't leak.
|
|
21
21
|
|
|
22
22
|
Font loading: `--font-display` (Manrope) and `--font-ui`
|
|
23
23
|
(Inter Tight) are supplied by next/font in
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
(headings, body, chrome) inherits the same set without
|
|
51
51
|
per-component repetition.
|
|
52
52
|
============================================================ */
|
|
53
|
-
[data-theme
|
|
53
|
+
[data-theme='base'] {
|
|
54
54
|
font-feature-settings: 'ss01' 1;
|
|
55
55
|
-webkit-font-smoothing: antialiased;
|
|
56
56
|
-moz-osx-font-smoothing: grayscale;
|
|
@@ -59,9 +59,9 @@
|
|
|
59
59
|
/* ============================================================
|
|
60
60
|
Tabular numerics — instrument feel
|
|
61
61
|
============================================================ */
|
|
62
|
-
[data-theme
|
|
63
|
-
[data-theme
|
|
64
|
-
[data-theme
|
|
62
|
+
[data-theme='base'] .tnum,
|
|
63
|
+
[data-theme='base'] table,
|
|
64
|
+
[data-theme='base'] [data-tnum] {
|
|
65
65
|
font-variant-numeric: tabular-nums;
|
|
66
66
|
}
|
|
67
67
|
|
|
@@ -70,35 +70,35 @@
|
|
|
70
70
|
The display class is the largest, thinnest, most-tracked
|
|
71
71
|
variant; h1/h2/h3 step down weight and size.
|
|
72
72
|
============================================================ */
|
|
73
|
-
[data-theme
|
|
73
|
+
[data-theme='base'] :is(h1, .h1, h2, .h2, h3, .h3, .display, .title) {
|
|
74
74
|
font-family: var(--font-display);
|
|
75
75
|
letter-spacing: var(--tracking-tight);
|
|
76
76
|
margin: 0;
|
|
77
77
|
color: var(--fg-primary);
|
|
78
78
|
}
|
|
79
|
-
[data-theme
|
|
79
|
+
[data-theme='base'] .display {
|
|
80
80
|
font-weight: var(--font-weight-thin);
|
|
81
81
|
font-size: var(--text-4xl);
|
|
82
82
|
letter-spacing: var(--tracking-display);
|
|
83
83
|
line-height: 1.02;
|
|
84
84
|
}
|
|
85
|
-
[data-theme
|
|
85
|
+
[data-theme='base'] :is(h1, .h1) {
|
|
86
86
|
font-weight: var(--font-weight-regular);
|
|
87
87
|
font-size: var(--text-2xl);
|
|
88
88
|
letter-spacing: var(--tracking-h1);
|
|
89
89
|
line-height: 1.1;
|
|
90
90
|
}
|
|
91
|
-
[data-theme
|
|
91
|
+
[data-theme='base'] :is(h2, .h2) {
|
|
92
92
|
font-weight: var(--font-weight-medium);
|
|
93
93
|
font-size: var(--text-xl);
|
|
94
94
|
line-height: 1.25;
|
|
95
95
|
}
|
|
96
|
-
[data-theme
|
|
96
|
+
[data-theme='base'] :is(h3, .h3) {
|
|
97
97
|
font-weight: var(--font-weight-medium);
|
|
98
98
|
font-size: var(--text-lg);
|
|
99
99
|
line-height: 1.3;
|
|
100
100
|
}
|
|
101
|
-
[data-theme
|
|
101
|
+
[data-theme='base'] .title {
|
|
102
102
|
font-weight: var(--font-weight-medium);
|
|
103
103
|
font-size: var(--text-base);
|
|
104
104
|
line-height: 1.3;
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
spans. Components that want full-strength body color (data
|
|
111
111
|
rows, key facts) override with `color: var(--fg-primary)`.
|
|
112
112
|
============================================================ */
|
|
113
|
-
[data-theme
|
|
113
|
+
[data-theme='base'] p {
|
|
114
114
|
margin: 0;
|
|
115
115
|
font-size: var(--text-base);
|
|
116
116
|
line-height: var(--text-base--line-height);
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
Eyebrow — small mono chrome label, tracked uppercase. The
|
|
126
126
|
"01 · ACTIVITY" or "LIVE FEED · SAMPLE" pattern.
|
|
127
127
|
============================================================ */
|
|
128
|
-
[data-theme
|
|
128
|
+
[data-theme='base'] .eyebrow {
|
|
129
129
|
font-family: var(--font-mono);
|
|
130
130
|
font-size: var(--text-eyebrow);
|
|
131
131
|
font-weight: var(--font-weight-medium);
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
@keyframes vouched-scan-frame {
|
|
2
|
+
50% {
|
|
3
|
+
transform: scale(0.83);
|
|
4
|
+
}
|
|
5
|
+
}
|
|
6
|
+
@keyframes vouched-trace-ridge {
|
|
7
|
+
from {
|
|
8
|
+
stroke-dashoffset: 1;
|
|
9
|
+
}
|
|
10
|
+
to {
|
|
11
|
+
stroke-dashoffset: 0;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
@keyframes vouched-copy-sheet {
|
|
15
|
+
50% {
|
|
16
|
+
transform: translate(-3px, -3px);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@keyframes vouched-icon-move {
|
|
21
|
+
50% {
|
|
22
|
+
transform: var(--icon-pose);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
@keyframes vouched-icon-wave {
|
|
26
|
+
50% {
|
|
27
|
+
transform: scaleY(0.4);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
@keyframes vouched-icon-blink {
|
|
31
|
+
50% {
|
|
32
|
+
opacity: 0;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
@keyframes vouched-icon-sparkle {
|
|
36
|
+
50% {
|
|
37
|
+
transform: translateY(-1px);
|
|
38
|
+
fill-opacity: 1;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
42
|
+
:is(
|
|
43
|
+
[data-vouched-icon='play'],
|
|
44
|
+
:where(button:enabled, a[href], [role='button']):is(:hover, :focus-visible)
|
|
45
|
+
[data-vouched-icon='auto']
|
|
46
|
+
) {
|
|
47
|
+
& [data-part='frame'] {
|
|
48
|
+
transform-origin: center;
|
|
49
|
+
animation: vouched-scan-frame var(--duration-slow) var(--ease-out);
|
|
50
|
+
}
|
|
51
|
+
& [data-part='ridge'],
|
|
52
|
+
& [data-part='trace'],
|
|
53
|
+
& [data-part='trace-later'] {
|
|
54
|
+
stroke-dasharray: 1;
|
|
55
|
+
animation: vouched-trace-ridge var(--duration-slow) var(--ease-out);
|
|
56
|
+
}
|
|
57
|
+
& [data-part='sheet'] {
|
|
58
|
+
animation: vouched-copy-sheet var(--duration-medium) var(--ease-out);
|
|
59
|
+
}
|
|
60
|
+
& [data-part='trace-later'] {
|
|
61
|
+
animation-delay: var(--duration-fast);
|
|
62
|
+
animation-fill-mode: backwards;
|
|
63
|
+
}
|
|
64
|
+
& [data-part='move'] {
|
|
65
|
+
transform-box: fill-box;
|
|
66
|
+
transform-origin: center;
|
|
67
|
+
animation: vouched-icon-move var(--duration-slow) var(--ease-spring);
|
|
68
|
+
}
|
|
69
|
+
& [data-part='wave'] {
|
|
70
|
+
transform-box: fill-box;
|
|
71
|
+
transform-origin: center;
|
|
72
|
+
animation: vouched-icon-wave var(--duration-slow) ease-in-out infinite;
|
|
73
|
+
}
|
|
74
|
+
& [data-part='wave']:nth-child(odd) {
|
|
75
|
+
animation-direction: alternate-reverse;
|
|
76
|
+
animation-duration: calc(var(--duration-slow) * 1.5);
|
|
77
|
+
}
|
|
78
|
+
& [data-part='blink'],
|
|
79
|
+
& [data-part='cursor'] {
|
|
80
|
+
animation: vouched-icon-blink calc(var(--duration-slow) * 2) ease-in-out;
|
|
81
|
+
}
|
|
82
|
+
& [data-part='cursor'] {
|
|
83
|
+
animation-iteration-count: infinite;
|
|
84
|
+
}
|
|
85
|
+
& [data-part='sparkle'] {
|
|
86
|
+
fill: currentColor;
|
|
87
|
+
fill-opacity: 0;
|
|
88
|
+
animation: vouched-icon-sparkle calc(var(--duration-slow) * 2) var(--ease-out);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* The design system's skins for two primitives inside a
|
|
1
|
+
/* The design system's skins for two primitives inside a base theme
|
|
2
2
|
scope: the Avatar fallback colours and the Toast (Sonner) skin. theme.css
|
|
3
3
|
imports it, so every consumer gets them. Checkpoint loads it from its
|
|
4
4
|
styles/checkpoint/checkpoint.css, right after the opt-in radius doctrine
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
squared them all (reported as a regression 2026-07-13). Radius is
|
|
18
18
|
the primitive's; only fallback coloring is themed here.
|
|
19
19
|
============================================================== */
|
|
20
|
-
[data-theme
|
|
20
|
+
[data-theme='base'] [data-slot='avatar-fallback'] {
|
|
21
21
|
background: var(--bg-surface);
|
|
22
22
|
border: 1px solid var(--accent-line);
|
|
23
23
|
color: var(--accent-text);
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
no layer dependency, no chunk-order roulette.
|
|
33
33
|
============================================================== */
|
|
34
34
|
|
|
35
|
-
[data-theme
|
|
35
|
+
[data-theme='base'] [data-sonner-toast] {
|
|
36
36
|
background-color: var(--bg-elevated);
|
|
37
37
|
border: 1px solid var(--border-default);
|
|
38
38
|
border-radius: var(--radius-md);
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
/* Title — 14 px / 500 */
|
|
49
|
-
[data-theme
|
|
49
|
+
[data-theme='base'] [data-sonner-toast] [data-title] {
|
|
50
50
|
font-size: var(--text-sm);
|
|
51
51
|
font-weight: var(--font-weight-medium);
|
|
52
52
|
color: var(--fg-primary);
|
|
@@ -55,14 +55,14 @@
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
/* Description — 12.5 px / regular / secondary ink */
|
|
58
|
-
[data-theme
|
|
58
|
+
[data-theme='base'] [data-sonner-toast] [data-description] {
|
|
59
59
|
font-size: var(--text-caption);
|
|
60
60
|
color: var(--fg-secondary);
|
|
61
61
|
line-height: var(--text-caption--line-height);
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
/* Icon slot — 18 × 18, slight top nudge to optically align with title */
|
|
65
|
-
[data-theme
|
|
65
|
+
[data-theme='base'] [data-sonner-toast] [data-icon] {
|
|
66
66
|
flex-shrink: 0;
|
|
67
67
|
width: 18px;
|
|
68
68
|
height: 18px;
|
|
@@ -70,21 +70,21 @@
|
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
/* Status colour flows to the icon via currentColor on the svg */
|
|
73
|
-
[data-theme
|
|
73
|
+
[data-theme='base'] [data-sonner-toast][data-type='success'] [data-icon] {
|
|
74
74
|
color: var(--allow-text);
|
|
75
75
|
}
|
|
76
|
-
[data-theme
|
|
76
|
+
[data-theme='base'] [data-sonner-toast][data-type='error'] [data-icon] {
|
|
77
77
|
color: var(--deny-text);
|
|
78
78
|
}
|
|
79
|
-
[data-theme
|
|
79
|
+
[data-theme='base'] [data-sonner-toast][data-type='warning'] [data-icon] {
|
|
80
80
|
color: var(--warn-text);
|
|
81
81
|
}
|
|
82
|
-
[data-theme
|
|
82
|
+
[data-theme='base'] [data-sonner-toast][data-type='info'] [data-icon] {
|
|
83
83
|
color: var(--info-text);
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
/* Close button */
|
|
87
|
-
[data-theme
|
|
87
|
+
[data-theme='base'] [data-sonner-toast] [data-close-button] {
|
|
88
88
|
background: transparent;
|
|
89
89
|
border: 0;
|
|
90
90
|
color: var(--fg-muted);
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
color var(--duration-fast),
|
|
99
99
|
background var(--duration-fast);
|
|
100
100
|
}
|
|
101
|
-
[data-theme
|
|
101
|
+
[data-theme='base'] [data-sonner-toast] [data-close-button]:hover {
|
|
102
102
|
color: var(--fg-primary);
|
|
103
103
|
background: var(--surface-default);
|
|
104
104
|
}
|
|
@@ -30,9 +30,8 @@
|
|
|
30
30
|
@layer base {
|
|
31
31
|
:root,
|
|
32
32
|
.dark,
|
|
33
|
-
[data-theme='
|
|
34
|
-
:root[data-theme='
|
|
35
|
-
[data-theme='checkpoint-light'] {
|
|
33
|
+
[data-theme='base'],
|
|
34
|
+
:root[data-theme='base'] {
|
|
36
35
|
/* ---------- shadcn surfaces and text ---------- */
|
|
37
36
|
--background: var(--bg-canvas);
|
|
38
37
|
--foreground: var(--fg-primary);
|
|
@@ -109,10 +108,10 @@
|
|
|
109
108
|
|
|
110
109
|
/* ---------- Canvas atmosphere, kept off ----------
|
|
111
110
|
The .checkpoint-canvas::before/after wisp, dot and grain stack from
|
|
112
|
-
canvas.css stays off inside the
|
|
111
|
+
canvas.css stays off inside the base theme: cards carry the
|
|
113
112
|
visual weight. To revive the ambient texture, remove this rule. */
|
|
114
|
-
[data-theme
|
|
115
|
-
[data-theme
|
|
113
|
+
[data-theme='base'].checkpoint-canvas::before,
|
|
114
|
+
[data-theme='base'].checkpoint-canvas::after {
|
|
116
115
|
display: none !important;
|
|
117
116
|
background: none !important;
|
|
118
117
|
content: none !important;
|
package/styles/shell.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* The design system's radius doctrine: inside a
|
|
1
|
+
/* The design system's radius doctrine: inside a base theme scope, the
|
|
2
2
|
medium and large Tailwind radii flatten to 2px. It is opt-in. The registry
|
|
3
3
|
ships it beside theme.css, which does not import it; a consumer that wants
|
|
4
4
|
the doctrine imports it after the theme. Checkpoint's
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
==============================================================
|
|
12
12
|
The Instrument doctrine: hard 2px corners by default, no 12px+
|
|
13
13
|
rounding anywhere in product. Flatten the medium-large Tailwind
|
|
14
|
-
radii under the
|
|
14
|
+
radii under the base theme so the hundreds of legacy
|
|
15
15
|
`rounded-md/lg/xl/2xl/3xl` callsites in Checkpoint components inherit the
|
|
16
16
|
right shape without an N×N migration sweep. Shapes that genuinely
|
|
17
17
|
need a circle (dots, avatars) keep `rounded-full` (untouched).
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
match the home widget --radius-lg (14px). Flattening it to
|
|
27
27
|
--radius-xs was making the card-radius unification pass invisible.
|
|
28
28
|
The other sizes (md/lg/2xl/3xl) stay flattened. */
|
|
29
|
-
[data-theme
|
|
30
|
-
[data-theme
|
|
31
|
-
[data-theme
|
|
32
|
-
[data-theme
|
|
29
|
+
[data-theme='base'] .rounded-md,
|
|
30
|
+
[data-theme='base'] .rounded-lg,
|
|
31
|
+
[data-theme='base'] .rounded-2xl,
|
|
32
|
+
[data-theme='base'] .rounded-3xl {
|
|
33
33
|
border-radius: var(--radius-xs);
|
|
34
34
|
}
|
|
35
35
|
/* Arbitrary px values that scatter across Checkpoint components — every value
|
|
@@ -38,13 +38,13 @@
|
|
|
38
38
|
intended geometry. The chat composer (`[data-slot="chat-composer"]`)
|
|
39
39
|
is the one allowed exception: Checkpoint's
|
|
40
40
|
styles/checkpoint/checkpoint.css overrides it back to 14px. */
|
|
41
|
-
[data-theme
|
|
42
|
-
[data-theme
|
|
43
|
-
[data-theme
|
|
44
|
-
[data-theme
|
|
45
|
-
[data-theme
|
|
46
|
-
[data-theme
|
|
47
|
-
[data-theme
|
|
41
|
+
[data-theme='base'] .rounded-\[4px\],
|
|
42
|
+
[data-theme='base'] .rounded-\[6px\],
|
|
43
|
+
[data-theme='base'] .rounded-\[8px\],
|
|
44
|
+
[data-theme='base'] .rounded-\[10px\],
|
|
45
|
+
[data-theme='base'] .rounded-\[12px\],
|
|
46
|
+
[data-theme='base'] .rounded-\[14px\],
|
|
47
|
+
[data-theme='base'] .rounded-\[16px\] {
|
|
48
48
|
border-radius: var(--radius-xs);
|
|
49
49
|
}
|
|
50
50
|
}
|
|
@@ -207,7 +207,7 @@
|
|
|
207
207
|
themes. --tw-prose-pre-* stay unbound: the Checkpoint Code Block
|
|
208
208
|
component owns fenced-code surfaces (components/features/chat/code-block/). */
|
|
209
209
|
@layer base {
|
|
210
|
-
[data-theme
|
|
210
|
+
[data-theme='base'] {
|
|
211
211
|
--tw-prose-body: var(--fg-primary);
|
|
212
212
|
--tw-prose-headings: var(--fg-primary);
|
|
213
213
|
--tw-prose-lead: var(--fg-secondary);
|
package/styles/theme.css
CHANGED
package/styles/tokens.css
CHANGED
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
|
|
30
30
|
Scope (theme and mode):
|
|
31
31
|
· Theme and mode are two stamps. `data-theme` names the theme
|
|
32
|
-
(`
|
|
32
|
+
(`base`); the `.dark` or `.light` class picks the mode, the
|
|
33
33
|
way next-themes' `attribute="class"` sets it on <html>. COLOR
|
|
34
34
|
primitives and the LIGHT/DARK semantic layers are defined at
|
|
35
35
|
`:root`, `.light` and `.dark`, so every surface consumes the design
|
|
@@ -38,11 +38,10 @@
|
|
|
38
38
|
element (the Checkpoint shell, portaled menus, hi-ai, /dashboard/ds).
|
|
39
39
|
The mode blocks re-declare every role on any element with a mode
|
|
40
40
|
class, so the roles there resolve from that element's own bases.
|
|
41
|
-
· `[data-theme
|
|
42
|
-
|
|
43
|
-
·
|
|
44
|
-
|
|
45
|
-
`data-theme='checkpoint-light'` is light.
|
|
41
|
+
· `[data-theme='base']` gates the design system's own scoped rules
|
|
42
|
+
to themed surfaces, in either mode.
|
|
43
|
+
· A mode is only ever the class: `data-theme='base'` without one
|
|
44
|
+
takes its mode from the nearest ancestor that sets one.
|
|
46
45
|
· METRIC primitives (`--text-*`, `--spacing-*` steps,
|
|
47
46
|
`--radius-*` steps, weights, tracking) are GLOBAL (`:root`)
|
|
48
47
|
as of the flow-step-3 metric promotion. They share names
|
|
@@ -156,7 +155,7 @@
|
|
|
156
155
|
--color-vouched-pink: #ee4fa4;
|
|
157
156
|
--color-vouched-sun: #f7a23b;
|
|
158
157
|
|
|
159
|
-
/* Vouched logo fill outside a
|
|
158
|
+
/* Vouched logo fill outside a base theme scope (blog, hosted
|
|
160
159
|
consent, /connect): blue, as on paper. The theme blocks below set
|
|
161
160
|
it per theme. */
|
|
162
161
|
--kya-mark: var(--color-vouched-blue);
|
|
@@ -580,7 +579,7 @@
|
|
|
580
579
|
The metric scales (type/spacing steps/radius/weights/tracking)
|
|
581
580
|
live in the GLOBAL primitives block above.
|
|
582
581
|
============================================================ */
|
|
583
|
-
[data-theme
|
|
582
|
+
[data-theme='base'] {
|
|
584
583
|
/* ---------- Colliding ramp aliases → global `--ck-*` ---------- */
|
|
585
584
|
--color-violet-50: var(--ck-violet-50);
|
|
586
585
|
--color-violet-100: var(--ck-violet-100);
|
|
@@ -630,10 +629,7 @@
|
|
|
630
629
|
|
|
631
630
|
Cascade note: the LIGHT block below also matches <html> through
|
|
632
631
|
`:root` at the same (0,1,0) specificity, so `:root.dark` is listed to
|
|
633
|
-
win on <html class="dark"> whatever the source order.
|
|
634
|
-
selectors are the deprecated stamp, `data-theme='checkpoint'` with no
|
|
635
|
-
mode class; `:where()` keeps their specificity that of the attribute
|
|
636
|
-
alone.
|
|
632
|
+
win on <html class="dark"> whatever the source order.
|
|
637
633
|
|
|
638
634
|
Derived washes: most -soft, -faint, -line, -glow and -bg alphas
|
|
639
635
|
below are color-mix() of their base, so a theme retunes them by
|
|
@@ -643,9 +639,7 @@
|
|
|
643
639
|
that descendant inherits; re-declare them there too.
|
|
644
640
|
============================================================ */
|
|
645
641
|
.dark,
|
|
646
|
-
:root.dark
|
|
647
|
-
[data-theme='checkpoint']:where(:not(.light)),
|
|
648
|
-
:root[data-theme='checkpoint']:where(:not(.light)) {
|
|
642
|
+
:root.dark {
|
|
649
643
|
color-scheme: dark;
|
|
650
644
|
|
|
651
645
|
/* ---------- Surface ladder ----------
|
|
@@ -941,19 +935,17 @@
|
|
|
941
935
|
On the light --deny (#c01f3c) white already reads 6.0:1, and --on-deny
|
|
942
936
|
(--bg-surface, #ffffff) the same 6.0:1, so the fill is --deny unchanged. */
|
|
943
937
|
:root,
|
|
944
|
-
[data-theme='
|
|
945
|
-
[data-theme='checkpoint-light'] {
|
|
938
|
+
[data-theme='base']:where(.light) {
|
|
946
939
|
--deny-fill: var(--deny);
|
|
947
940
|
}
|
|
948
941
|
|
|
949
942
|
/* ============================================================
|
|
950
943
|
LAYER 2.5 · STRUCTURE (theme-invariant)
|
|
951
944
|
Dimensions that are the same in dark and light live under
|
|
952
|
-
[data-theme
|
|
953
|
-
|
|
954
|
-
'checkpoint-light' stamp), so no mode leaves them undefined.
|
|
945
|
+
[data-theme='base'], which matches every base scope whatever
|
|
946
|
+
its mode class, so no mode leaves them undefined.
|
|
955
947
|
============================================================ */
|
|
956
|
-
[data-theme
|
|
948
|
+
[data-theme='base'] {
|
|
957
949
|
/* Detail-sheet locked width (parity-spec locked rhythm) — the one
|
|
958
950
|
max-width every side-anchored checkpoint Sheet snaps to.
|
|
959
951
|
Consumed as `w-full max-w-[var(--sheet-width)]` so sub-540px
|
|
@@ -969,8 +961,7 @@
|
|
|
969
961
|
so it is declared once, here at :root, and every scope inherits it.
|
|
970
962
|
Every value is a global primitive (or a literal), never a
|
|
971
963
|
theme-varying semantic, which is what lets one :root declaration
|
|
972
|
-
resolve the same under `.dark
|
|
973
|
-
`data-theme` forms alike. --code-block-bg and
|
|
964
|
+
resolve the same under `.dark` and `.light` alike. --code-block-bg and
|
|
974
965
|
--code-block-surface sit in the two theme blocks, which both declare
|
|
975
966
|
the ink-800 well and its ink-600 surface.
|
|
976
967
|
|
|
@@ -1049,17 +1040,15 @@
|
|
|
1049
1040
|
The default (`:root`): marketing and legal are forced light by
|
|
1050
1041
|
providers.tsx, the auth surface resolves the user or system theme, and
|
|
1051
1042
|
operator surfaces resolve light here unless next-themes adds `.dark`.
|
|
1052
|
-
`data-theme='
|
|
1053
|
-
subtree
|
|
1054
|
-
|
|
1055
|
-
Flow does on every canvas).
|
|
1043
|
+
`data-theme='base'` with the `.light` class forces light for a
|
|
1044
|
+
subtree. A bare `.light` does not count: libraries put one on their
|
|
1045
|
+
own roots (React Flow does on every canvas).
|
|
1056
1046
|
The dark block above wins on <html class="dark"> through `:root.dark`.
|
|
1057
1047
|
On a subtree, the element that carries a mode class declares its own
|
|
1058
1048
|
roles, so the nearest one wins.
|
|
1059
1049
|
============================================================ */
|
|
1060
1050
|
:root,
|
|
1061
|
-
[data-theme='
|
|
1062
|
-
[data-theme='checkpoint-light'] {
|
|
1051
|
+
[data-theme='base']:where(.light) {
|
|
1063
1052
|
color-scheme: light;
|
|
1064
1053
|
|
|
1065
1054
|
/* Paper: a cool near-white carrying a breath of the Vouched hue
|