@hirobius/design-system 0.13.1 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +49 -6
- package/dist/chunks/TokenDisplayContext-B3gxyQN7.js +1 -0
- package/dist/chunks/form-DnGRy27o.js +1 -0
- package/dist/contexts.js +63 -60
- package/dist/form.js +1 -0
- package/dist/hirobius-ui.js +4092 -3389
- package/dist/manifest.js +7 -7
- package/dist/scroll.js +1 -0
- package/dist/styles.css +1 -1
- package/dist/tokens.css +1 -1
- package/dist/types/src/app/components/activity-feed.d.ts +6 -0
- package/dist/types/src/app/components/alert.d.ts +1 -1
- package/dist/types/src/app/components/asset-img.d.ts +1 -1
- package/dist/types/src/app/components/avatar.d.ts +1 -0
- package/dist/types/src/app/components/badge.d.ts +1 -0
- package/dist/types/src/app/components/bleed.d.ts +1 -1
- package/dist/types/src/app/components/box.d.ts +2 -2
- package/dist/types/src/app/components/breadcrumb.d.ts +1 -0
- package/dist/types/src/app/components/button.d.ts +1 -0
- package/dist/types/src/app/components/callout.d.ts +1 -0
- package/dist/types/src/app/components/card.d.ts +10 -5
- package/dist/types/src/app/components/center.d.ts +1 -1
- package/dist/types/src/app/components/checkbox.d.ts +2 -2
- package/dist/types/src/app/components/cinematic-link.d.ts +1 -2
- package/dist/types/src/app/components/cluster.d.ts +1 -1
- package/dist/types/src/app/components/code-block.d.ts +2 -1
- package/dist/types/src/app/components/combobox.d.ts +1 -0
- package/dist/types/src/app/components/container.d.ts +1 -1
- package/dist/types/src/app/components/cover.d.ts +1 -1
- package/dist/types/src/app/components/dialog.d.ts +5 -0
- package/dist/types/src/app/components/disclosure.d.ts +2 -1
- package/dist/types/src/app/components/divider.d.ts +4 -0
- package/dist/types/src/app/components/doc-link-card.d.ts +1 -1
- package/dist/types/src/app/components/empty-state.d.ts +1 -0
- package/dist/types/src/app/components/error-boundary.d.ts +1 -1
- package/dist/types/src/app/components/error-pattern.d.ts +1 -2
- package/dist/types/src/app/components/field.d.ts +1 -0
- package/dist/types/src/app/components/form.d.ts +7 -1
- package/dist/types/src/app/components/frame.d.ts +1 -1
- package/dist/types/src/app/components/grid.d.ts +2 -2
- package/dist/types/src/app/components/heading-stack.d.ts +1 -1
- package/dist/types/src/app/components/icon-button.d.ts +3 -4
- package/dist/types/src/app/components/icon.d.ts +1 -1
- package/dist/types/src/app/components/image-lightbox.d.ts +1 -2
- package/dist/types/src/app/components/inline-code.d.ts +4 -1
- package/dist/types/src/app/components/inline-link.d.ts +2 -2
- package/dist/types/src/app/components/input.d.ts +1 -0
- package/dist/types/src/app/components/menu.d.ts +1 -0
- package/dist/types/src/app/components/nav-group.d.ts +3 -3
- package/dist/types/src/app/components/nav-item.d.ts +2 -2
- package/dist/types/src/app/components/page.d.ts +1 -1
- package/dist/types/src/app/components/pagination.d.ts +1 -0
- package/dist/types/src/app/components/pin.d.ts +1 -2
- package/dist/types/src/app/components/popover.d.ts +1 -0
- package/dist/types/src/app/components/progress.d.ts +1 -0
- package/dist/types/src/app/components/radio.d.ts +2 -2
- package/dist/types/src/app/components/reveal.d.ts +1 -2
- package/dist/types/src/app/components/segmented-control.d.ts +1 -1
- package/dist/types/src/app/components/sidebar.d.ts +1 -1
- package/dist/types/src/app/components/skeleton.d.ts +1 -0
- package/dist/types/src/app/components/slider.d.ts +2 -2
- package/dist/types/src/app/components/spinner.d.ts +1 -0
- package/dist/types/src/app/components/stack.d.ts +2 -2
- package/dist/types/src/app/components/stat.d.ts +1 -0
- package/dist/types/src/app/components/status-list-item.d.ts +1 -0
- package/dist/types/src/app/components/status-tile.d.ts +1 -0
- package/dist/types/src/app/components/stepper-field.d.ts +1 -2
- package/dist/types/src/app/components/surface.d.ts +2 -2
- package/dist/types/src/app/components/switcher.d.ts +1 -1
- package/dist/types/src/app/components/table.d.ts +1 -0
- package/dist/types/src/app/components/tabs.d.ts +6 -0
- package/dist/types/src/app/components/tag.d.ts +1 -0
- package/dist/types/src/app/components/textarea.d.ts +1 -0
- package/dist/types/src/app/components/toast.d.ts +1 -0
- package/dist/types/src/app/components/toggle.d.ts +2 -2
- package/dist/types/src/app/components/token.d.ts +1 -1
- package/dist/types/src/app/context/TenantContext.d.ts +19 -5
- package/dist/types/src/app/context/index.d.ts +7 -7
- package/dist/types/src/app/design-system/generated-token-refs.d.ts +1 -1
- package/dist/types/src/app/design-system/generated-token-values.d.ts +1 -1
- package/dist/types/src/app/design-system/theme.d.ts +1 -1
- package/dist/types/src/app/design-system/tokens.d.ts +2 -2
- package/dist/types/src/app/hooks/useHdsMotion.d.ts +1 -1
- package/dist/types/src/app/layouts/CaseStudyLayout.d.ts +2 -3
- package/dist/types/src/app/layouts/HdsSystemDocLayout.d.ts +1 -1
- package/dist/types/src/app/lib/hds-search.d.ts +1 -1
- package/dist/types/src/brand/index.d.ts +1 -1
- package/dist/types/src/form/index.d.ts +3 -3
- package/dist/types/src/index.d.ts +116 -116
- package/dist/types/src/lib/env.d.ts +31 -0
- package/dist/types/src/lib/manifest-entry.d.ts +1 -1
- package/dist/types/src/scroll/index.d.ts +2 -2
- package/hirobius.tokens.json +3 -3
- package/package.json +9 -6
- package/public/hds-manifest.json +785 -92
|
@@ -39,7 +39,7 @@ interface HdsSegmentedOption {
|
|
|
39
39
|
/** Optional supporting description shown below the label. */
|
|
40
40
|
description?: string;
|
|
41
41
|
}
|
|
42
|
-
interface SegmentedControlProps {
|
|
42
|
+
export interface SegmentedControlProps {
|
|
43
43
|
/** Accessible label for the control. */
|
|
44
44
|
label?: string;
|
|
45
45
|
/** Accessible label when no visible label should be rendered. */
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
import React from 'react';
|
|
23
23
|
type SidebarSide = 'start' | 'end';
|
|
24
24
|
type LayoutGap = 'tight' | 'normal' | 'inset' | 'spacious';
|
|
25
|
-
interface SidebarProps {
|
|
25
|
+
export interface SidebarProps {
|
|
26
26
|
/** Exactly two children: the rail first, the fluid content second (DOM order — `side` only changes visual order). */
|
|
27
27
|
children: [React.ReactNode, React.ReactNode];
|
|
28
28
|
/** Which visual edge the rail renders on. Defaults to 'start'. */
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Skeleton - placeholder shimmer for content that is still loading.
|
|
3
3
|
* @category Feedback
|
|
4
4
|
* @tier primitive
|
|
5
|
+
* @figma https://www.figma.com/design/c8MaVgwxOlxm4wr8wnH0Z4/HDS-Tokens-Components?node-id=88-95
|
|
5
6
|
*/
|
|
6
7
|
import * as React from 'react';
|
|
7
8
|
import { type VariantProps } from 'class-variance-authority';
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
* HdsSlider — range slider with label and value display.
|
|
3
3
|
* @category Inputs
|
|
4
4
|
* @tier primitive
|
|
5
|
+
* @figma https://www.figma.com/design/c8MaVgwxOlxm4wr8wnH0Z4/HDS-Tokens-Components?node-id=82-265
|
|
5
6
|
*/
|
|
6
7
|
/** HdsSlider — range slider with label and value display. */
|
|
7
|
-
interface SliderProps {
|
|
8
|
+
export interface SliderProps {
|
|
8
9
|
/** Slider label. */
|
|
9
10
|
label: string;
|
|
10
11
|
/** Minimum value in the range. */
|
|
@@ -19,4 +20,3 @@ interface SliderProps {
|
|
|
19
20
|
onChange: (v: number) => void;
|
|
20
21
|
}
|
|
21
22
|
export declare const HdsSlider: import("react").ForwardRefExoticComponent<SliderProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
22
|
-
export {};
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Spinner - indeterminate loading indicator.
|
|
3
3
|
* @category Feedback
|
|
4
4
|
* @tier primitive
|
|
5
|
+
* @figma https://www.figma.com/design/c8MaVgwxOlxm4wr8wnH0Z4/HDS-Tokens-Components?node-id=88-106
|
|
5
6
|
*/
|
|
6
7
|
import * as React from 'react';
|
|
7
8
|
import { type VariantProps } from 'class-variance-authority';
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @ai-rules Use Stack for flow spacing and simple flex alignment only. Do NOT use Stack to create card chrome, internal surface padding, or page-width constraints. Do NOT apply arbitrary margins to Stack to fake spacing between children when the gap prop should own that rhythm. Do NOT use Stack for true two-dimensional layouts that require Grid.
|
|
7
7
|
*/
|
|
8
8
|
import React from 'react';
|
|
9
|
-
import hds from '../design-system/tokens';
|
|
9
|
+
import hds from '../design-system/tokens.js';
|
|
10
10
|
type SemanticGap = 'tight' | 'normal' | 'inset' | 'spacious';
|
|
11
11
|
type ComponentGap = 'gap' | 'medium';
|
|
12
12
|
type SubgridGap = 'hairline' | 'xs' | 'gap';
|
|
@@ -14,7 +14,7 @@ type SectionGap = 'stack';
|
|
|
14
14
|
type GapOption = SemanticGap | ComponentGap | SubgridGap | SectionGap | keyof typeof hds.space;
|
|
15
15
|
type FlexAlign = 'start' | 'center' | 'end' | 'stretch';
|
|
16
16
|
type FlexJustify = 'start' | 'center' | 'end' | 'space-between';
|
|
17
|
-
interface StackProps {
|
|
17
|
+
export interface StackProps {
|
|
18
18
|
/** Stack content rendered inside the flex wrapper. */
|
|
19
19
|
children: React.ReactNode;
|
|
20
20
|
/** Flex direction for the stack. */
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @category Display
|
|
3
3
|
* @tier pattern
|
|
4
|
+
* @figma https://www.figma.com/design/c8MaVgwxOlxm4wr8wnH0Z4/HDS-Tokens-Components?node-id=88-292
|
|
4
5
|
*/
|
|
5
6
|
import * as React from 'react';
|
|
6
7
|
export type StatusTileTone = 'success' | 'warning' | 'danger' | 'info' | 'neutral';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
interface StepperFieldProps {
|
|
1
|
+
export interface StepperFieldProps {
|
|
2
2
|
label: string;
|
|
3
3
|
value: number;
|
|
4
4
|
min: number;
|
|
@@ -10,4 +10,3 @@ interface StepperFieldProps {
|
|
|
10
10
|
}
|
|
11
11
|
/** @public */
|
|
12
12
|
export declare function StepperField({ label, value, min, max, step, onChange, inputStep, precision, }: StepperFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React, { type CSSProperties, type HTMLAttributes, type ReactNode } from 'react';
|
|
2
2
|
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
-
import type { PaddingOption } from './surface-padding';
|
|
3
|
+
import type { PaddingOption } from './surface-padding.js';
|
|
4
4
|
declare const surfaceVariants: (props?: {
|
|
5
5
|
padding?: "none" | "item" | "px16" | "px24" | "component";
|
|
6
6
|
shadow?: boolean;
|
|
7
7
|
} & import("class-variance-authority/dist/types").ClassProp) => string;
|
|
8
8
|
type SurfaceVariantProps = VariantProps<typeof surfaceVariants>;
|
|
9
|
-
interface SurfaceProps extends Omit<HTMLAttributes<HTMLDivElement>, 'style' | 'className'>, Omit<SurfaceVariantProps, 'shadow'> {
|
|
9
|
+
export interface SurfaceProps extends Omit<HTMLAttributes<HTMLDivElement>, 'style' | 'className'>, Omit<SurfaceVariantProps, 'shadow'> {
|
|
10
10
|
/** Surface content. */
|
|
11
11
|
children?: ReactNode;
|
|
12
12
|
/** Padding: 'component' (24px, default) | 'item' (16px) | primitive px values | 'none' (0px). */
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*/
|
|
21
21
|
import React from 'react';
|
|
22
22
|
type LayoutGap = 'tight' | 'normal' | 'inset' | 'spacious';
|
|
23
|
-
interface SwitcherProps {
|
|
23
|
+
export interface SwitcherProps {
|
|
24
24
|
/** Switcher content — peer items that flip between row and column as a unit. */
|
|
25
25
|
children: React.ReactNode;
|
|
26
26
|
/** Container width below which items stack vertically (CSS length, e.g. '30rem'). Defaults to '30rem'. */
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Table - structured data table primitive for documentation and compact UI matrices.
|
|
3
3
|
* @category Display
|
|
4
4
|
* @tier primitive
|
|
5
|
+
* @figma https://www.figma.com/design/c8MaVgwxOlxm4wr8wnH0Z4/HDS-Tokens-Components?node-id=89-300
|
|
5
6
|
*/
|
|
6
7
|
import { type ReactNode } from 'react';
|
|
7
8
|
declare const tableHeaderCellVariants: (props?: {
|
|
@@ -21,6 +21,12 @@
|
|
|
21
21
|
* @tier primitive
|
|
22
22
|
*/
|
|
23
23
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
24
|
+
/**
|
|
25
|
+
* The tab set itself. Tagged here rather than in the file block because
|
|
26
|
+
* TabsList and TabsContent share this module and have no Figma node of their
|
|
27
|
+
* own — a file-level @figma would silently claim this node for all four.
|
|
28
|
+
* @figma https://www.figma.com/design/c8MaVgwxOlxm4wr8wnH0Z4/HDS-Tokens-Components?node-id=86-89
|
|
29
|
+
*/
|
|
24
30
|
export declare const Tabs: import("react").ForwardRefExoticComponent<TabsPrimitive.TabsProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
25
31
|
export declare function TabsList({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.List>): import("react/jsx-runtime").JSX.Element;
|
|
26
32
|
export declare function TabsTrigger({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Tag — interactive filter and category chip.
|
|
3
3
|
* @category Inputs
|
|
4
4
|
* @tier primitive
|
|
5
|
+
* @figma https://www.figma.com/design/c8MaVgwxOlxm4wr8wnH0Z4/HDS-Tokens-Components?node-id=32-11
|
|
5
6
|
*
|
|
6
7
|
* The outer <button> carries the accessible 44px hit target directly via the
|
|
7
8
|
* size token while the inner pill keeps the visible surface compact. Colors
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Textarea — multi-line text field primitive with label, helper, and error slots.
|
|
3
3
|
* @category Inputs
|
|
4
4
|
* @tier primitive
|
|
5
|
+
* @figma https://www.figma.com/design/c8MaVgwxOlxm4wr8wnH0Z4/HDS-Tokens-Components?node-id=85-14
|
|
5
6
|
*
|
|
6
7
|
* Mirrors Input's shell + token skin as a native `<textarea>`. Figma parity:
|
|
7
8
|
* the four states Default / Focus / Error / Disabled map to the focus-ring,
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Toast — transient feedback notifications (Radix Toast).
|
|
3
3
|
* @category Feedback
|
|
4
4
|
* @tier pattern
|
|
5
|
+
* @figma https://www.figma.com/design/c8MaVgwxOlxm4wr8wnH0Z4/HDS-Tokens-Components?node-id=93-367
|
|
5
6
|
* @doc-exempt: no Overlays/Feedback-overlay doc page yet — add demo when created
|
|
6
7
|
*
|
|
7
8
|
* Imperative API: wrap the app once in <ToastProvider>, then call
|
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
* HdsToggle — boolean on/off toggle with animated thumb.
|
|
3
3
|
* @category Inputs
|
|
4
4
|
* @tier primitive
|
|
5
|
+
* @figma https://www.figma.com/design/c8MaVgwxOlxm4wr8wnH0Z4/HDS-Tokens-Components?node-id=37-19
|
|
5
6
|
*/
|
|
6
7
|
import type { InputHTMLAttributes } from 'react';
|
|
7
8
|
/** HdsToggle — boolean on/off toggle with animated thumb. */
|
|
8
9
|
export type HdsToggleDemoState = 'rest' | 'hover' | 'focused' | 'pressed' | 'disabled';
|
|
9
|
-
interface ToggleProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'checked' | 'onChange'> {
|
|
10
|
+
export interface ToggleProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'checked' | 'onChange'> {
|
|
10
11
|
/** Toggle label displayed next to the control. */
|
|
11
12
|
label: string;
|
|
12
13
|
/** Current checked state. */
|
|
@@ -15,4 +16,3 @@ interface ToggleProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type'
|
|
|
15
16
|
onChange: (v: boolean) => void;
|
|
16
17
|
}
|
|
17
18
|
export declare const HdsToggle: import("react").ForwardRefExoticComponent<ToggleProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
18
|
-
export {};
|
|
@@ -69,7 +69,7 @@ type TokenDiagramProps = TokenBaseProps & {
|
|
|
69
69
|
rawValue?: React.ReactNode;
|
|
70
70
|
onClick?: () => void;
|
|
71
71
|
};
|
|
72
|
-
type TokenProps = TokenNodeSurfaceProps | TokenDiagramProps;
|
|
72
|
+
export type TokenProps = TokenNodeSurfaceProps | TokenDiagramProps;
|
|
73
73
|
/**
|
|
74
74
|
* Token - unified token component.
|
|
75
75
|
*
|
|
@@ -7,15 +7,29 @@ interface TenantCtx {
|
|
|
7
7
|
/**
|
|
8
8
|
* TenantProvider
|
|
9
9
|
*
|
|
10
|
-
*
|
|
11
|
-
* `data-tenant="<slug>"` onto `<html>` so CSS tenant-scope selectors
|
|
10
|
+
* Writes `data-tenant="<slug>"` onto `<html>` so CSS tenant-scope selectors
|
|
12
11
|
* (e.g. `[data-tenant="acme"] .hds-button`) resolve correctly at runtime.
|
|
13
12
|
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
13
|
+
* Pass the slug in. It used to be read from `VITE_TENANT_SLUG` via
|
|
14
|
+
* `import.meta.env`, which the library build evaluated at HDS's build time
|
|
15
|
+
* rather than the consumer's — it baked to `{}` in `dist/contexts.js`, so the
|
|
16
|
+
* provider had been an inert no-op for every installed consumer regardless of
|
|
17
|
+
* what they set. Taking a prop is therefore not a behaviour change for anyone
|
|
18
|
+
* downstream: it is the first version that works at all.
|
|
19
|
+
*
|
|
20
|
+
* An app that still wants an env var reads it itself and passes the result,
|
|
21
|
+
* which is the only place that knows its own build:
|
|
22
|
+
*
|
|
23
|
+
* ```tsx
|
|
24
|
+
* <TenantProvider slug={import.meta.env.VITE_TENANT_SLUG as TenantSlug}>
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* Omitting `slug` writes no attribute and populates no context value.
|
|
16
28
|
*/
|
|
17
|
-
export declare function TenantProvider({ children }: {
|
|
29
|
+
export declare function TenantProvider({ children, slug, }: {
|
|
18
30
|
children: ReactNode;
|
|
31
|
+
/** The active tenant, or null for a single-tenant deployment. */
|
|
32
|
+
slug?: TenantSlug | null;
|
|
19
33
|
}): import("react/jsx-runtime").JSX.Element;
|
|
20
34
|
/** Returns the active tenant slug (null in single-tenant mode). */
|
|
21
35
|
export declare function useTenant(): TenantCtx;
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
* {app}
|
|
11
11
|
* </FontProvider></ThemeProvider></LanguageProvider></TenantProvider>
|
|
12
12
|
*/
|
|
13
|
-
export * from './ThemeContext';
|
|
14
|
-
export * from './LanguageContext';
|
|
15
|
-
export * from './TenantContext';
|
|
16
|
-
export * from './FontContext';
|
|
17
|
-
export * from './DemoStateContext';
|
|
18
|
-
export * from './TokenDisplayContext';
|
|
19
|
-
export * from './RouterContext';
|
|
13
|
+
export * from './ThemeContext.js';
|
|
14
|
+
export * from './LanguageContext.js';
|
|
15
|
+
export * from './TenantContext.js';
|
|
16
|
+
export * from './FontContext.js';
|
|
17
|
+
export * from './DemoStateContext.js';
|
|
18
|
+
export * from './TokenDisplayContext.js';
|
|
19
|
+
export * from './RouterContext.js';
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* Import in tokens.ts or any component that needs a CSS var string without hardcoding.
|
|
8
8
|
*
|
|
9
9
|
* Usage:
|
|
10
|
-
* import { tokenRefs } from './generated-token-refs';
|
|
10
|
+
* import { tokenRefs } from './generated-token-refs.js';
|
|
11
11
|
* tokenRefs.semantic.typography.mono // { fontFamily: 'var(...)', ... }
|
|
12
12
|
* tokenRefs.semantic.color.surface.page // 'var(--semantic-color-surface-page)'
|
|
13
13
|
*/
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* Import in doc pages instead of hardcoding hex strings, font names, or OKLCH values.
|
|
8
8
|
*
|
|
9
9
|
* Usage:
|
|
10
|
-
* import { tokenValues } from './generated-token-values';
|
|
10
|
+
* import { tokenValues } from './generated-token-values.js';
|
|
11
11
|
* tokenValues.primitive.color.blue['500'] // '#1e2fff'
|
|
12
12
|
* tokenValues.primitive.typography.family.primary[0] // 'Clash Grotesk'
|
|
13
13
|
* tokenValues.primitive.color.blue['500'] // 'oklch(0.49 0.2903 266.54)'
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Import this wherever you need resolved colours for a given dark/light mode.
|
|
6
6
|
*
|
|
7
7
|
* Usage:
|
|
8
|
-
* import { ct } from '../design-system/theme';
|
|
8
|
+
* import { ct } from '../design-system/theme.js';
|
|
9
9
|
* const t = ct(isDark);
|
|
10
10
|
* // t.bg, t.content, t.accent, etc.
|
|
11
11
|
*/
|
|
@@ -329,5 +329,5 @@ declare const hds: {
|
|
|
329
329
|
};
|
|
330
330
|
/** @public */
|
|
331
331
|
export default hds;
|
|
332
|
-
export { ct } from './theme';
|
|
333
|
-
export { tokenValues } from './generated-token-values';
|
|
332
|
+
export { ct } from './theme.js';
|
|
333
|
+
export { tokenValues } from './generated-token-values.js';
|
|
@@ -11,6 +11,6 @@
|
|
|
11
11
|
* useReducedMotion() is true, one fix point instead of a `MotionConfig`
|
|
12
12
|
* wrapper per component.
|
|
13
13
|
*/
|
|
14
|
-
import hds from '../design-system/tokens';
|
|
14
|
+
import hds from '../design-system/tokens.js';
|
|
15
15
|
export type HdsMotionCategory = keyof typeof hds.motion;
|
|
16
16
|
export declare function useHdsMotion<Category extends HdsMotionCategory>(category: Category): (typeof hds.motion)[Category];
|
|
@@ -10,12 +10,11 @@
|
|
|
10
10
|
* contentSlot → full-width (maxWidth="max") — chapters, galleries, learnings
|
|
11
11
|
*/
|
|
12
12
|
import type { ReactNode } from 'react';
|
|
13
|
-
interface CaseStudyLayoutProps {
|
|
13
|
+
export interface CaseStudyLayoutProps {
|
|
14
14
|
heroSlot: ReactNode;
|
|
15
15
|
introSlot: ReactNode;
|
|
16
16
|
metricsSlot?: ReactNode;
|
|
17
17
|
contentSlot: ReactNode;
|
|
18
18
|
}
|
|
19
19
|
/** @public */
|
|
20
|
-
export declare function CaseStudyLayout({ heroSlot, introSlot, metricsSlot, contentSlot }: CaseStudyLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
-
export {};
|
|
20
|
+
export declare function CaseStudyLayout({ heroSlot, introSlot, metricsSlot, contentSlot, }: CaseStudyLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
-
import { type DocLayoutContentMaxWidth } from './DocLayout';
|
|
2
|
+
import { type DocLayoutContentMaxWidth } from './DocLayout.js';
|
|
3
3
|
/** @public */
|
|
4
4
|
export declare function HdsSystemDocLayout({ contentSlot, contentMaxWidth, }: {
|
|
5
5
|
contentSlot: ReactNode;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* narrow interface): the UI shell now imports { buildIndex, rank } and owns no
|
|
14
14
|
* search logic.
|
|
15
15
|
*/
|
|
16
|
-
import type { ManifestSpec, RoleToken, SystemManifest } from '../data/manifest-types';
|
|
16
|
+
import type { ManifestSpec, RoleToken, SystemManifest } from '../data/manifest-types.js';
|
|
17
17
|
export type { ManifestSpec, RoleToken, SystemManifest };
|
|
18
18
|
export type ResultKind = 'component' | 'pattern' | 'template' | 'utility' | 'token' | 'section';
|
|
19
19
|
export interface PaletteResult {
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
* no React and no Node built-ins, so it is safe to pull into a build step or an
|
|
7
7
|
* edge runtime. See ./overlay.ts and docs on the Astro consumption path.
|
|
8
8
|
*/
|
|
9
|
-
export { brandOverlayVars, brandOverlayStyle, brandOverlayCss, type BrandPalette } from './overlay';
|
|
9
|
+
export { brandOverlayVars, brandOverlayStyle, brandOverlayCss, type BrandPalette } from './overlay.js';
|
|
@@ -25,6 +25,6 @@
|
|
|
25
25
|
*
|
|
26
26
|
* @doc-ignore subpath barrel, not an HDS component
|
|
27
27
|
*/
|
|
28
|
-
export { useHdsForm } from './use-hds-form';
|
|
29
|
-
export { HdsForm, HdsFormField } from './hds-form';
|
|
30
|
-
export type { HdsFormProps, HdsFormFieldProps, HdsFieldRenderProps } from './hds-form';
|
|
28
|
+
export { useHdsForm } from './use-hds-form.js';
|
|
29
|
+
export { HdsForm, HdsFormField } from './hds-form.js';
|
|
30
|
+
export type { HdsFormProps, HdsFormFieldProps, HdsFieldRenderProps } from './hds-form.js';
|