@stll/ui 0.76.0 → 0.77.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/button-classes.d.ts +23 -2
- package/dist/components/button-classes.js +14 -1
- package/dist/components/button.d.ts +10 -1
- package/dist/components/button.js +3 -8
- package/dist/components/command.js +1 -1
- package/dist/components/composer.js +10 -3
- package/dist/components/control-face.d.ts +26 -0
- package/dist/components/control-face.js +27 -3
- package/dist/components/details-grid.d.ts +8 -3
- package/dist/components/details-grid.js +28 -15
- package/dist/components/details-list-face.d.ts +7 -0
- package/dist/components/details-list-face.js +25 -0
- package/dist/components/field-classes.d.ts +4 -0
- package/dist/components/field-classes.js +6 -0
- package/dist/components/field.js +5 -3
- package/dist/components/outcome-screen-core.d.ts +25 -0
- package/dist/components/outcome-screen-core.js +76 -0
- package/dist/components/outcome-screen-face.d.ts +3 -0
- package/dist/components/outcome-screen-face.js +6 -0
- package/dist/components/outcome-screen-view.d.ts +9 -21
- package/dist/components/outcome-screen-view.js +36 -101
- package/dist/components/table-shell.d.ts +5 -0
- package/dist/components/table-shell.js +6 -1
- package/dist/inspector/pane-width.d.ts +7 -0
- package/dist/inspector/pane-width.js +20 -4
- package/dist/lib/{menu-row.js → list-row-metric.js} +1 -1
- package/package.json +9 -1
- /package/dist/lib/{menu-row.d.ts → list-row-metric.d.ts} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ButtonSize } from "./button.shared.js";
|
|
2
|
-
/** Every size
|
|
3
|
-
export type ButtonFaceSize =
|
|
2
|
+
/** Every size a button's face draws: all of the button's own. */
|
|
3
|
+
export type ButtonFaceSize = ButtonSize;
|
|
4
4
|
/** The box every sized button shares: layout, border, type, focus ring. */
|
|
5
5
|
export declare const BUTTON_BASE_CLASS = "focus-visible:ring-ring focus-visible:ring-offset-background relative inline-flex max-w-full shrink-0 cursor-pointer items-center justify-center gap-2 rounded-lg border text-base font-medium whitespace-nowrap outline-none select-none before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] focus-visible:ring-2 focus-visible:ring-offset-1 disabled:pointer-events-none disabled:opacity-64 sm:text-sm pointer-coarse:after:absolute pointer-coarse:after:size-full pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 [&_svg]:pointer-events-none [&_svg]:-mx-0.5 [&_svg]:shrink-0 [&_svg:not([class*='opacity-'])]:opacity-80 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4";
|
|
6
6
|
export declare const BUTTON_DEFAULT_SIZE = "default";
|
|
@@ -26,6 +26,27 @@ export declare const BUTTON_FACE_SIZE_CLASS_NAMES: {
|
|
|
26
26
|
readonly xl: "h-11 px-[calc(--spacing(4)-1px)] text-lg sm:h-10 sm:text-base [&_svg:not([class*='size-'])]:size-5 sm:[&_svg:not([class*='size-'])]:size-4.5";
|
|
27
27
|
readonly xs: "h-7 gap-1 rounded-md px-[calc(--spacing(2)-1px)] text-sm before:rounded-[calc(var(--radius-md)-1px)] sm:h-6 sm:text-xs [&_svg:not([class*='size-'])]:size-4 sm:[&_svg:not([class*='size-'])]:size-3.5";
|
|
28
28
|
};
|
|
29
|
+
/** Every size's metrics, the menu row's included: the button's and its
|
|
30
|
+
* face's. */
|
|
31
|
+
export declare const BUTTON_SIZE_CLASS_NAMES: {
|
|
32
|
+
readonly chip: "h-7 gap-1.5 rounded-full px-2.5 text-xs before:rounded-full sm:text-xs";
|
|
33
|
+
readonly default: "h-9 px-[calc(--spacing(3)-1px)] sm:h-8";
|
|
34
|
+
readonly icon: "size-9 sm:size-8";
|
|
35
|
+
readonly "icon-lg": "size-10 sm:size-9";
|
|
36
|
+
readonly "icon-round": "size-7 rounded-full sm:size-7";
|
|
37
|
+
readonly "icon-sm": "size-8 sm:size-7";
|
|
38
|
+
readonly "icon-xl": "size-11 sm:size-10 [&_svg:not([class*='size-'])]:size-5 sm:[&_svg:not([class*='size-'])]:size-4.5";
|
|
39
|
+
readonly "icon-2xs": "size-5 rounded-md before:rounded-[calc(var(--radius-md)-1px)] sm:size-4 [&_svg:not([class*='size-'])]:size-3.5 sm:[&_svg:not([class*='size-'])]:size-3";
|
|
40
|
+
readonly "icon-xs": "size-7 rounded-md before:rounded-[calc(var(--radius-md)-1px)] sm:size-6 not-in-data-[slot=input-group]:[&_svg:not([class*='size-'])]:size-4 sm:not-in-data-[slot=input-group]:[&_svg:not([class*='size-'])]:size-3.5";
|
|
41
|
+
readonly inline: "inline h-auto rounded-sm border-0 p-0 text-start text-[length:inherit] leading-[inherit] font-normal whitespace-normal select-text before:rounded-[calc(var(--radius-sm)-1px)] sm:text-[length:inherit] [&_svg]:mx-0 [&_svg]:inline [&_svg]:align-[-0.125em] [&_svg:not(:last-child)]:me-1";
|
|
42
|
+
readonly "inspector-row": "h-12 justify-start rounded-none px-3";
|
|
43
|
+
readonly lg: "h-10 px-[calc(--spacing(3.5)-1px)] sm:h-9";
|
|
44
|
+
readonly sm: "h-8 gap-1.5 px-[calc(--spacing(2.5)-1px)] text-sm sm:h-7 sm:text-xs";
|
|
45
|
+
readonly touch: "min-h-[44px] min-w-[44px] px-[calc(--spacing(3.5)-1px)]";
|
|
46
|
+
readonly xl: "h-11 px-[calc(--spacing(4)-1px)] text-lg sm:h-10 sm:text-base [&_svg:not([class*='size-'])]:size-5 sm:[&_svg:not([class*='size-'])]:size-4.5";
|
|
47
|
+
readonly xs: "h-7 gap-1 rounded-md px-[calc(--spacing(2)-1px)] text-sm before:rounded-[calc(var(--radius-md)-1px)] sm:h-6 sm:text-xs [&_svg:not([class*='size-'])]:size-4 sm:[&_svg:not([class*='size-'])]:size-3.5";
|
|
48
|
+
readonly row: "min-h-8 w-full min-w-0 justify-start gap-2 px-2 py-1 pointer-coarse:min-h-11 text-start text-sm sm:text-sm [&_[data-slot=checkbox]]:size-4 [&_[data-slot=checkbox]_svg]:size-3 [&_svg:not([class*='size-'])]:size-4 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:mx-0";
|
|
49
|
+
};
|
|
29
50
|
export declare const BUTTON_PRIMARY_STATE_CLASS = "shadow-primary/24 data-pressed:bg-primary/80 [:hover:not([data-pressed])]:bg-primary/90 shadow-xs not-disabled:inset-shadow-[0_1px_--theme(--color-white/16%)] [:active,[data-pressed]]:inset-shadow-[0_1px_--theme(--color-black/8%)] [:disabled,:active,[data-pressed]]:shadow-none";
|
|
30
51
|
export declare const BUTTON_VARIANT_CLASS_NAMES: {
|
|
31
52
|
readonly composer: `${string} shadow-primary/24 data-pressed:bg-primary/80 [:hover:not([data-pressed])]:bg-primary/90 shadow-xs not-disabled:inset-shadow-[0_1px_--theme(--color-white/16%)] [:active,[data-pressed]]:inset-shadow-[0_1px_--theme(--color-black/8%)] [:disabled,:active,[data-pressed]]:shadow-none hover:bg-foreground/90`;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { TOOLBAR_ROW_HEIGHT } from "../inspector/layout-tokens.js";
|
|
2
|
+
import { MENU_ROW_CLASS_NAME } from "../lib/list-row-metric.js";
|
|
2
3
|
import { BUTTON_VARIANT_TOKENS } from "./button.shared.js";
|
|
3
4
|
// src/components/button-classes.ts
|
|
4
5
|
/** The box every sized button shares: layout, border, type, focus ring. */
|
|
@@ -31,6 +32,18 @@ const BUTTON_FACE_SIZE_CLASS_NAMES = {
|
|
|
31
32
|
xl: "h-11 px-[calc(--spacing(4)-1px)] text-lg sm:h-10 sm:text-base [&_svg:not([class*='size-'])]:size-5 sm:[&_svg:not([class*='size-'])]:size-4.5",
|
|
32
33
|
xs: "h-7 gap-1 rounded-md px-[calc(--spacing(2)-1px)] text-sm before:rounded-[calc(var(--radius-md)-1px)] sm:h-6 sm:text-xs [&_svg:not([class*='size-'])]:size-4 sm:[&_svg:not([class*='size-'])]:size-3.5"
|
|
33
34
|
};
|
|
35
|
+
/**
|
|
36
|
+
* One row of a menu list. The metric is shared with `CommandItem`; the rest
|
|
37
|
+
* undoes the base button's centred content and its icon inset, so a button
|
|
38
|
+
* row and a command row read as the same box.
|
|
39
|
+
*/
|
|
40
|
+
const BUTTON_ROW_SIZE_CLASS = `${MENU_ROW_CLASS_NAME} [&_svg]:mx-0`;
|
|
41
|
+
/** Every size's metrics, the menu row's included: the button's and its
|
|
42
|
+
* face's. */
|
|
43
|
+
const BUTTON_SIZE_CLASS_NAMES = {
|
|
44
|
+
...BUTTON_FACE_SIZE_CLASS_NAMES,
|
|
45
|
+
row: BUTTON_ROW_SIZE_CLASS
|
|
46
|
+
};
|
|
34
47
|
const BUTTON_PRIMARY_STATE_CLASS = "shadow-primary/24 data-pressed:bg-primary/80 [:hover:not([data-pressed])]:bg-primary/90 shadow-xs not-disabled:inset-shadow-[0_1px_--theme(--color-white/16%)] [:active,[data-pressed]]:inset-shadow-[0_1px_--theme(--color-black/8%)] [:disabled,:active,[data-pressed]]:shadow-none";
|
|
35
48
|
const BUTTON_VARIANT_CLASS_NAMES = {
|
|
36
49
|
composer: `${tokens("composer")} ${BUTTON_PRIMARY_STATE_CLASS} hover:bg-foreground/90`,
|
|
@@ -46,4 +59,4 @@ const BUTTON_VARIANT_CLASS_NAMES = {
|
|
|
46
59
|
secondary: `${tokens("secondary")} data-pressed:bg-background data-pressed:inset-ring-input active:bg-secondary/80 [:hover:not([data-pressed])]:bg-secondary/90 data-pressed:shadow-xs/5 data-pressed:inset-ring`
|
|
47
60
|
};
|
|
48
61
|
const BUTTON_LAYOUT_CLASS_NAMES = { wrap: "h-auto min-h-11 items-start justify-start py-2 text-start whitespace-normal sm:h-auto" };
|
|
49
|
-
export { BUTTON_BASE_CLASS, BUTTON_DEFAULT_SIZE, BUTTON_FACE_SIZE_CLASS_NAMES, BUTTON_LAYOUT_CLASS_NAMES, BUTTON_PRIMARY_STATE_CLASS, BUTTON_VARIANT_CLASS_NAMES };
|
|
62
|
+
export { BUTTON_BASE_CLASS, BUTTON_DEFAULT_SIZE, BUTTON_FACE_SIZE_CLASS_NAMES, BUTTON_LAYOUT_CLASS_NAMES, BUTTON_PRIMARY_STATE_CLASS, BUTTON_SIZE_CLASS_NAMES, BUTTON_VARIANT_CLASS_NAMES };
|
|
@@ -78,12 +78,21 @@ declare const BUTTON_SIZE_CONTENT: {
|
|
|
78
78
|
type ButtonProps = Omit<ButtonContract, "children" | "disabled"> & {
|
|
79
79
|
layout?: keyof typeof BUTTON_LAYOUT_CLASS_NAMES;
|
|
80
80
|
tooltip?: ReactNode;
|
|
81
|
+
/**
|
|
82
|
+
* Why the button cannot act right now, in the reader's terms ("Type a
|
|
83
|
+
* message to send it."). While `disabled`, it is the button's tooltip, in
|
|
84
|
+
* place of `tooltip`, and the button stays hoverable and focusable
|
|
85
|
+
* (`aria-disabled`) with activation blocked, so whoever reaches for it
|
|
86
|
+
* learns what to do. The `disabled-control-needs-reason` rule asks for it
|
|
87
|
+
* on every disabled Button.
|
|
88
|
+
*/
|
|
89
|
+
disabledReason?: ReactNode;
|
|
81
90
|
focusRing?: ButtonFocusRing | undefined;
|
|
82
91
|
/** `variant="plain"` only: the outline its focus ring follows. */
|
|
83
92
|
shape?: ButtonPlainShape | undefined;
|
|
84
93
|
"data-accessible-disabled"?: "";
|
|
85
94
|
} & useRender.ComponentProps<"button">;
|
|
86
|
-
declare function Button({ className, variant: variantProp, size, render, layout, loading, icon, children, disabled, tooltip, selected, focusRing, shape, "data-accessible-disabled": accessibleDisabled, ...props }: ButtonProps): import("react").JSX.Element;
|
|
95
|
+
declare function Button({ className, variant: variantProp, size, render, layout, loading, icon, children, disabled, disabledReason, tooltip, selected, focusRing, shape, "data-accessible-disabled": accessibleDisabled, ...props }: ButtonProps): import("react").JSX.Element;
|
|
87
96
|
/**
|
|
88
97
|
* How a run shows it can be pressed: underlined like a link, or `plain`, by
|
|
89
98
|
* what it holds (a claim's text mark, which draws its own line), as a plain
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { BUTTON_DISPOSITION, blockDisabledActivation, blockDisabledKeyActivation, resolveButtonDisposition } from "../lib/button-disposition.js";
|
|
3
|
-
import { MENU_ROW_CLASS_NAME } from "../lib/menu-row.js";
|
|
4
3
|
import { rendersNothing } from "../lib/renders-nothing.js";
|
|
5
4
|
import { cn } from "../lib/utils.js";
|
|
6
|
-
import { BUTTON_BASE_CLASS, BUTTON_DEFAULT_SIZE,
|
|
5
|
+
import { BUTTON_BASE_CLASS, BUTTON_DEFAULT_SIZE, BUTTON_LAYOUT_CLASS_NAMES, BUTTON_SIZE_CLASS_NAMES, BUTTON_VARIANT_CLASS_NAMES } from "./button-classes.js";
|
|
7
6
|
import { BUTTON_PLAIN_VARIANT } from "./button.shared.js";
|
|
8
7
|
import { Loader } from "./loader.js";
|
|
9
8
|
import { renderTooltipTrigger } from "./tooltip-trigger-helper.js";
|
|
@@ -35,10 +34,6 @@ const buttonAccessibleDisabledClass = "cursor-not-allowed opacity-64";
|
|
|
35
34
|
* buttons keep the treatment of their surface instead.
|
|
36
35
|
*/
|
|
37
36
|
const buttonPressClass = "motion-safe:transition-transform motion-safe:duration-150 ease-out motion-safe:active:scale-[0.98]";
|
|
38
|
-
const BUTTON_SIZE_CLASS_NAMES = {
|
|
39
|
-
...BUTTON_FACE_SIZE_CLASS_NAMES,
|
|
40
|
-
row: `${MENU_ROW_CLASS_NAME} [&_svg]:mx-0`
|
|
41
|
-
};
|
|
42
37
|
const buttonVariants = cva(BUTTON_BASE_CLASS, {
|
|
43
38
|
compoundVariants: [{
|
|
44
39
|
className: "[:hover:not([data-pressed])]:bg-transparent",
|
|
@@ -179,10 +174,10 @@ const implicitTooltip = (size, accessibleName) => {
|
|
|
179
174
|
default: return panic(`Unhandled button content: ${String(content)}`);
|
|
180
175
|
}
|
|
181
176
|
};
|
|
182
|
-
function Button({ className, variant: variantProp, size, render, layout, loading, icon, children, disabled, tooltip, selected, focusRing = "outside", shape = "box", "data-accessible-disabled": accessibleDisabled, ...props }) {
|
|
177
|
+
function Button({ className, variant: variantProp, size, render, layout, loading, icon, children, disabled, disabledReason, tooltip, selected, focusRing = "outside", shape = "box", "data-accessible-disabled": accessibleDisabled, ...props }) {
|
|
183
178
|
const variant = variantProp ?? (size === "inline" ? "link" : void 0);
|
|
184
179
|
const typeValue = render ? void 0 : "button";
|
|
185
|
-
const tooltipContent = tooltip ?? implicitTooltip(size, props["aria-label"] ?? props.title);
|
|
180
|
+
const tooltipContent = disabled === true && disabledReason !== void 0 ? disabledReason : tooltip ?? implicitTooltip(size, props["aria-label"] ?? props.title);
|
|
186
181
|
const disposition = resolveButtonDisposition({
|
|
187
182
|
disabled,
|
|
188
183
|
loading,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { useContentDir } from "../hooks/use-content-dir.js";
|
|
3
3
|
import { SearchIcon } from "../icons.js";
|
|
4
4
|
import { CONTROL_SIZE } from "../lib/control-size.js";
|
|
5
|
-
import { MENU_ROW_CLASS_NAME } from "../lib/
|
|
5
|
+
import { MENU_ROW_CLASS_NAME } from "../lib/list-row-metric.js";
|
|
6
6
|
import { cn } from "../lib/utils.js";
|
|
7
7
|
import { DialogContent as DialogPopup } from "./dialog.js";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -22,6 +22,13 @@ const ComposerPlaceholder = ({ children, stature }) => /* @__PURE__ */ jsx(Trunc
|
|
|
22
22
|
children
|
|
23
23
|
});
|
|
24
24
|
/**
|
|
25
|
+
* The rendered status row is the `composer-status` container: the same row
|
|
26
|
+
* renders under the wide main chat and in a narrow side pane, so a control
|
|
27
|
+
* that compacts itself queries the row's width (`@max-xl/composer-status:`),
|
|
28
|
+
* not the viewport's. A loading view's row draws no such control.
|
|
29
|
+
*/
|
|
30
|
+
const COMPOSER_STATUS_CONTAINER_CLASS = "@container/composer-status";
|
|
31
|
+
/**
|
|
25
32
|
* The slim status row rendered beneath a composer box: a `text-xs` row with
|
|
26
33
|
* a start cluster and an end slot pinned to the far edge. Shared by every
|
|
27
34
|
* surface so the shell can never drift. Renders nothing when both slots are
|
|
@@ -30,7 +37,7 @@ const ComposerPlaceholder = ({ children, stature }) => /* @__PURE__ */ jsx(Trunc
|
|
|
30
37
|
const ComposerStatusRow = ({ start, end, center, className }) => {
|
|
31
38
|
if (start === void 0 && end === void 0 && center === void 0) return null;
|
|
32
39
|
if (center !== void 0) return /* @__PURE__ */ jsxs("div", {
|
|
33
|
-
className: cn(COMPOSER_STATUS_ROW_CENTERED_CLASS, className),
|
|
40
|
+
className: cn(COMPOSER_STATUS_ROW_CENTERED_CLASS, COMPOSER_STATUS_CONTAINER_CLASS, className),
|
|
34
41
|
children: [
|
|
35
42
|
/* @__PURE__ */ jsx("div", {
|
|
36
43
|
className: "flex min-w-0 items-center",
|
|
@@ -47,9 +54,9 @@ const ComposerStatusRow = ({ start, end, center, className }) => {
|
|
|
47
54
|
]
|
|
48
55
|
});
|
|
49
56
|
return /* @__PURE__ */ jsxs("div", {
|
|
50
|
-
className: cn(COMPOSER_STATUS_ROW_CLASS, className),
|
|
57
|
+
className: cn(COMPOSER_STATUS_ROW_CLASS, COMPOSER_STATUS_CONTAINER_CLASS, className),
|
|
51
58
|
children: [start, end !== void 0 && /* @__PURE__ */ jsx("div", {
|
|
52
|
-
className: "ms-auto",
|
|
59
|
+
className: "ms-auto min-w-0",
|
|
53
60
|
children: end
|
|
54
61
|
})]
|
|
55
62
|
});
|
|
@@ -95,6 +95,32 @@ export declare const LabelFace: ({ children, className }: {
|
|
|
95
95
|
children: ReactNode;
|
|
96
96
|
className?: string | undefined;
|
|
97
97
|
}) => import("react").JSX.Element;
|
|
98
|
+
/**
|
|
99
|
+
* How a field's face lays out its parts, in `Form`'s names: `stack` puts the
|
|
100
|
+
* caption over the control over its lines (the field's column), `inline` a
|
|
101
|
+
* checkbox or switch beside its caption.
|
|
102
|
+
*/
|
|
103
|
+
type FieldFaceLayout = "stack" | "inline";
|
|
104
|
+
/**
|
|
105
|
+
* How close a field's face sets its parts: `snug` a step closer (a checkbox
|
|
106
|
+
* row over its line).
|
|
107
|
+
*/
|
|
108
|
+
type FieldFaceDensity = "default" | "snug";
|
|
109
|
+
/**
|
|
110
|
+
* A form field's face, as `Field` draws it: the caption, the control's face
|
|
111
|
+
* and the quiet lines a pending view puts in, in the field's own box.
|
|
112
|
+
*/
|
|
113
|
+
export declare const FieldFace: ({ children, className, density, layout }: {
|
|
114
|
+
children: ReactNode;
|
|
115
|
+
className?: string | undefined;
|
|
116
|
+
density?: FieldFaceDensity | undefined;
|
|
117
|
+
layout?: FieldFaceLayout | undefined;
|
|
118
|
+
}) => import("react").JSX.Element;
|
|
119
|
+
/** A field's quiet line, as `FieldDescription` draws it. */
|
|
120
|
+
export declare const FieldDescriptionFace: ({ children, className }: {
|
|
121
|
+
children: ReactNode;
|
|
122
|
+
className?: string | undefined;
|
|
123
|
+
}) => import("react").JSX.Element;
|
|
98
124
|
/**
|
|
99
125
|
* A `default` tab strip's face: the well, each tab's box and label, and the
|
|
100
126
|
* raised chip under the tab that opens first.
|
|
@@ -2,7 +2,8 @@ import { ChevronDownIcon, ChevronsUpDownIcon } from "../icons.js";
|
|
|
2
2
|
import { CONTROL_SIZE } from "../lib/control-size.js";
|
|
3
3
|
import { FIELD_TRIGGER_CLASS_NAME } from "../lib/field-trigger.js";
|
|
4
4
|
import { cn } from "../lib/utils.js";
|
|
5
|
-
import { BUTTON_BASE_CLASS, BUTTON_FACE_SIZE_CLASS_NAMES, BUTTON_LAYOUT_CLASS_NAMES, BUTTON_VARIANT_CLASS_NAMES } from "./button-classes.js";
|
|
5
|
+
import { BUTTON_BASE_CLASS, BUTTON_FACE_SIZE_CLASS_NAMES, BUTTON_LAYOUT_CLASS_NAMES, BUTTON_SIZE_CLASS_NAMES, BUTTON_VARIANT_CLASS_NAMES } from "./button-classes.js";
|
|
6
|
+
import { FIELD_CLASS_NAME, FIELD_DESCRIPTION_CLASS_NAME } from "./field-classes.js";
|
|
6
7
|
import { INPUT_CONTROL_CLASS_NAME, INPUT_ELEMENT_CLASS_NAME, INPUT_SIZE_CLASS_NAMES } from "./input-control.js";
|
|
7
8
|
import { LABEL_VARIANT_CLASS_NAME } from "./label-classes.js";
|
|
8
9
|
import { SELECT_TRIGGER_ICON_CLASS_NAME, SELECT_TRIGGER_SIZE_CLASS_NAMES, SELECT_VALUE_CLASS_NAME } from "./select-classes.js";
|
|
@@ -19,7 +20,7 @@ const FACE_UNAVAILABLE_CLASS = "pointer-events-none opacity-64";
|
|
|
19
20
|
* it stands in for, unavailable. For the face of a button its caller
|
|
20
21
|
* restyles, on an element of that caller's own.
|
|
21
22
|
*/
|
|
22
|
-
const buttonFaceClassName = ({ size, variant }) => cn(BUTTON_BASE_CLASS,
|
|
23
|
+
const buttonFaceClassName = ({ size, variant }) => cn(BUTTON_BASE_CLASS, BUTTON_SIZE_CLASS_NAMES[size], BUTTON_VARIANT_CLASS_NAMES[variant], size === "inline" && variant === "link" && "underline", FACE_UNAVAILABLE_CLASS);
|
|
23
24
|
/** A button's face: its box, colours and content, disabled. */
|
|
24
25
|
const ButtonFace = ({ children, className, layout, size, variant }) => /* @__PURE__ */ jsx("span", {
|
|
25
26
|
"aria-hidden": "true",
|
|
@@ -117,6 +118,29 @@ const LabelFace = ({ children, className }) => /* @__PURE__ */ jsx("span", {
|
|
|
117
118
|
"data-slot": "label-face",
|
|
118
119
|
children
|
|
119
120
|
});
|
|
121
|
+
const FIELD_FACE_LAYOUT_CLASS_NAMES = {
|
|
122
|
+
stack: "",
|
|
123
|
+
inline: "flex-row items-center"
|
|
124
|
+
};
|
|
125
|
+
const FIELD_FACE_DENSITY_CLASS_NAMES = {
|
|
126
|
+
default: "",
|
|
127
|
+
snug: "gap-1"
|
|
128
|
+
};
|
|
129
|
+
/**
|
|
130
|
+
* A form field's face, as `Field` draws it: the caption, the control's face
|
|
131
|
+
* and the quiet lines a pending view puts in, in the field's own box.
|
|
132
|
+
*/
|
|
133
|
+
const FieldFace = ({ children, className, density = "default", layout = "stack" }) => /* @__PURE__ */ jsx("div", {
|
|
134
|
+
className: cn(FIELD_CLASS_NAME, FIELD_FACE_LAYOUT_CLASS_NAMES[layout], FIELD_FACE_DENSITY_CLASS_NAMES[density], className),
|
|
135
|
+
"data-slot": "field-face",
|
|
136
|
+
children
|
|
137
|
+
});
|
|
138
|
+
/** A field's quiet line, as `FieldDescription` draws it. */
|
|
139
|
+
const FieldDescriptionFace = ({ children, className }) => /* @__PURE__ */ jsx("p", {
|
|
140
|
+
className: cn(FIELD_DESCRIPTION_CLASS_NAME, className),
|
|
141
|
+
"data-slot": "field-description-face",
|
|
142
|
+
children
|
|
143
|
+
});
|
|
120
144
|
/**
|
|
121
145
|
* A `default` tab strip's face: the well, each tab's box and label, and the
|
|
122
146
|
* raised chip under the tab that opens first.
|
|
@@ -165,4 +189,4 @@ const SplitButtonFace = ({ children, size = "md" }) => /* @__PURE__ */ jsxs("spa
|
|
|
165
189
|
children: /* @__PURE__ */ jsx(SplitButtonChevron, {})
|
|
166
190
|
})]
|
|
167
191
|
});
|
|
168
|
-
export { ButtonFace, CheckboxFace, FaceLabelPending, FieldTriggerFace, InputFace, LabelFace, SPLIT_BUTTON_PRIMARY_CLASS, SPLIT_BUTTON_ROOT_CLASS, SPLIT_BUTTON_TRIGGER_CLASS, SegmentedIconToggleFace, SelectTriggerFace, SplitButtonChevron, SplitButtonFace, SwitchFace, TabsFace, buttonFaceClassName };
|
|
192
|
+
export { ButtonFace, CheckboxFace, FaceLabelPending, FieldDescriptionFace, FieldFace, FieldTriggerFace, InputFace, LabelFace, SPLIT_BUTTON_PRIMARY_CLASS, SPLIT_BUTTON_ROOT_CLASS, SPLIT_BUTTON_TRIGGER_CLASS, SegmentedIconToggleFace, SelectTriggerFace, SplitButtonChevron, SplitButtonFace, SwitchFace, TabsFace, buttonFaceClassName };
|
|
@@ -25,9 +25,14 @@ type DetailsLabelWidth = "auto" | "sm" | "md" | "lg";
|
|
|
25
25
|
type DetailsGridProps = React.ComponentProps<"dl"> & {
|
|
26
26
|
labelWidth?: DetailsLabelWidth;
|
|
27
27
|
orientation?: DetailsOrientation;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
} & ({
|
|
29
|
+
variant?: "sheet";
|
|
30
|
+
density?: "default" | "compact";
|
|
31
|
+
} | {
|
|
32
|
+
variant: "list";
|
|
33
|
+
density?: never;
|
|
34
|
+
});
|
|
35
|
+
declare const DetailsGrid: ({ className, density, labelWidth, orientation, variant, ...props }: DetailsGridProps) => React.JSX.Element;
|
|
31
36
|
type DetailsItemProps = React.ComponentProps<"div"> & {
|
|
32
37
|
label: React.ReactNode;
|
|
33
38
|
/** `wide` spans every pair column of a `sheet`. */
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { rendersNothing } from "../lib/renders-nothing.js";
|
|
2
2
|
import { cn } from "../lib/utils.js";
|
|
3
|
+
import { DetailsListFace, DetailsListItemFace } from "./details-list-face.js";
|
|
3
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
5
|
import { createContext, useContext } from "react";
|
|
5
6
|
// src/components/details-grid.tsx
|
|
@@ -10,12 +11,10 @@ const DetailsShapeContext = createContext({
|
|
|
10
11
|
});
|
|
11
12
|
const LIST_CLASS_NAME = {
|
|
12
13
|
auto: "flex min-w-0 flex-col gap-2 text-sm @min-[24rem]:grid @min-[24rem]:items-center @min-[24rem]:gap-x-4 @min-[24rem]:gap-y-1",
|
|
13
|
-
horizontal: "grid items-center gap-x-4 gap-y-1 text-sm",
|
|
14
14
|
vertical: "flex min-w-0 flex-col gap-2 text-sm"
|
|
15
15
|
};
|
|
16
16
|
/** The list's label and value tracks, per label width. */
|
|
17
17
|
const LIST_COLUMNS_CLASS_NAME = {
|
|
18
|
-
auto: "grid-cols-[auto_minmax(0,1fr)]",
|
|
19
18
|
lg: "grid-cols-[10rem_minmax(0,1fr)]",
|
|
20
19
|
md: "grid-cols-[7rem_minmax(0,1fr)]",
|
|
21
20
|
sm: "grid-cols-[5rem_minmax(0,1fr)]"
|
|
@@ -43,7 +42,6 @@ const SHEET_AUTO_ITEM_COLUMNS_CLASS_NAME = {
|
|
|
43
42
|
const ITEM_CLASS_NAME = {
|
|
44
43
|
list: {
|
|
45
44
|
auto: "flex min-w-0 flex-col gap-0.5 @min-[24rem]:col-span-full @min-[24rem]:grid @min-[24rem]:grid-cols-subgrid @min-[24rem]:items-center",
|
|
46
|
-
horizontal: "col-span-full grid grid-cols-subgrid items-center",
|
|
47
45
|
vertical: "flex min-w-0 flex-col gap-2"
|
|
48
46
|
},
|
|
49
47
|
sheet: {
|
|
@@ -55,7 +53,6 @@ const ITEM_CLASS_NAME = {
|
|
|
55
53
|
const LABEL_CLASS_NAME = {
|
|
56
54
|
list: {
|
|
57
55
|
auto: "text-muted-foreground min-w-0",
|
|
58
|
-
horizontal: "text-muted-foreground min-w-0",
|
|
59
56
|
vertical: "font-medium"
|
|
60
57
|
},
|
|
61
58
|
sheet: {
|
|
@@ -68,15 +65,22 @@ const VALUE_CLASS_NAME = {
|
|
|
68
65
|
list: "min-w-0 wrap-anywhere",
|
|
69
66
|
sheet: "text-foreground-strong-muted min-w-0 wrap-anywhere"
|
|
70
67
|
};
|
|
71
|
-
const DetailsGrid = ({ className, labelWidth, orientation = "horizontal", variant = "sheet", ...props }) => {
|
|
68
|
+
const DetailsGrid = ({ className, density, labelWidth, orientation = "horizontal", variant = "sheet", ...props }) => {
|
|
72
69
|
const shape = {
|
|
73
70
|
labelWidth: labelWidth ?? (variant === "list" ? "auto" : "md"),
|
|
74
71
|
orientation,
|
|
75
72
|
variant
|
|
76
73
|
};
|
|
77
74
|
if (variant === "list") {
|
|
75
|
+
if (orientation === "horizontal") return /* @__PURE__ */ jsx(DetailsShapeContext.Provider, {
|
|
76
|
+
value: shape,
|
|
77
|
+
children: /* @__PURE__ */ jsx(DetailsListFace, {
|
|
78
|
+
className: cn(shape.labelWidth === "auto" ? void 0 : LIST_COLUMNS_CLASS_NAME[shape.labelWidth], className),
|
|
79
|
+
...props
|
|
80
|
+
})
|
|
81
|
+
});
|
|
78
82
|
const list = /* @__PURE__ */ jsx("dl", {
|
|
79
|
-
className: cn(LIST_CLASS_NAME[orientation], orientation === "
|
|
83
|
+
className: cn(LIST_CLASS_NAME[orientation], orientation === "auto" && LIST_AUTO_COLUMNS_CLASS_NAME[shape.labelWidth], className),
|
|
80
84
|
"data-orientation": orientation,
|
|
81
85
|
"data-slot": "details-grid",
|
|
82
86
|
"data-variant": variant,
|
|
@@ -97,7 +101,7 @@ const DetailsGrid = ({ className, labelWidth, orientation = "horizontal", varian
|
|
|
97
101
|
className: "@container min-w-0 [contain-intrinsic-inline-size:20rem]",
|
|
98
102
|
"data-slot": "details-grid-container",
|
|
99
103
|
children: /* @__PURE__ */ jsx("dl", {
|
|
100
|
-
className: cn("grid grid-cols-[repeat(auto-fit,minmax(min(100%,20rem),1fr))] gap-x-6
|
|
104
|
+
className: cn("grid grid-cols-[repeat(auto-fit,minmax(min(100%,20rem),1fr))] gap-x-6 font-sans @min-[64rem]:grid-cols-3", density === "compact" ? "gap-y-1.5" : "gap-y-2", className),
|
|
101
105
|
"data-slot": "details-grid",
|
|
102
106
|
...props
|
|
103
107
|
})
|
|
@@ -106,21 +110,30 @@ const DetailsGrid = ({ className, labelWidth, orientation = "horizontal", varian
|
|
|
106
110
|
};
|
|
107
111
|
const DetailsItem = ({ label, children, span, className, ...props }) => {
|
|
108
112
|
const { labelWidth, orientation, variant } = useContext(DetailsShapeContext);
|
|
113
|
+
const value = isEmptyValue(children) ? /* @__PURE__ */ jsx("span", {
|
|
114
|
+
"aria-hidden": "true",
|
|
115
|
+
className: "text-foreground-disabled",
|
|
116
|
+
"data-slot": "details-empty",
|
|
117
|
+
children: "—"
|
|
118
|
+
}) : children;
|
|
119
|
+
if (variant === "list" && orientation === "horizontal") return /* @__PURE__ */ jsx(DetailsListItemFace, {
|
|
120
|
+
label,
|
|
121
|
+
className,
|
|
122
|
+
...props,
|
|
123
|
+
children: value
|
|
124
|
+
});
|
|
125
|
+
const itemClassName = variant === "list" && orientation !== "horizontal" ? ITEM_CLASS_NAME.list[orientation] : ITEM_CLASS_NAME.sheet[orientation];
|
|
126
|
+
const labelClassName = variant === "list" && orientation !== "horizontal" ? LABEL_CLASS_NAME.list[orientation] : LABEL_CLASS_NAME.sheet[orientation];
|
|
109
127
|
return /* @__PURE__ */ jsxs("div", {
|
|
110
|
-
className: cn(
|
|
128
|
+
className: cn(itemClassName, variant === "sheet" && orientation === "horizontal" && SHEET_ITEM_COLUMNS_CLASS_NAME[labelWidth], variant === "sheet" && orientation === "auto" && SHEET_AUTO_ITEM_COLUMNS_CLASS_NAME[labelWidth], variant === "sheet" && span === "wide" && "col-span-full", className),
|
|
111
129
|
"data-slot": "details-item",
|
|
112
130
|
...props,
|
|
113
131
|
children: [/* @__PURE__ */ jsx("dt", {
|
|
114
|
-
className:
|
|
132
|
+
className: labelClassName,
|
|
115
133
|
children: label
|
|
116
134
|
}), /* @__PURE__ */ jsx("dd", {
|
|
117
135
|
className: VALUE_CLASS_NAME[variant],
|
|
118
|
-
children:
|
|
119
|
-
"aria-hidden": "true",
|
|
120
|
-
className: "text-foreground-disabled",
|
|
121
|
-
"data-slot": "details-empty",
|
|
122
|
-
children: "—"
|
|
123
|
-
}) : children
|
|
136
|
+
children: value
|
|
124
137
|
})]
|
|
125
138
|
});
|
|
126
139
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentProps, ReactNode } from "react";
|
|
2
|
+
/** The fixed horizontal term list, independent of layout context. */
|
|
3
|
+
export declare const DetailsListFace: ({ className, ...props }: ComponentProps<"dl">) => import("react").JSX.Element;
|
|
4
|
+
/** The subgrid row aligns each label with the other labels in its list. */
|
|
5
|
+
export declare const DetailsListItemFace: ({ label, children, className, ...props }: ComponentProps<"div"> & {
|
|
6
|
+
label: ReactNode;
|
|
7
|
+
}) => import("react").JSX.Element;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { cn } from "../lib/utils.js";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
// src/components/details-list-face.tsx
|
|
4
|
+
/** The fixed horizontal term list, independent of layout context. */
|
|
5
|
+
const DetailsListFace = ({ className, ...props }) => /* @__PURE__ */ jsx("dl", {
|
|
6
|
+
className: cn("grid grid-cols-[auto_minmax(0,1fr)] items-center gap-x-4 gap-y-1 text-sm", className),
|
|
7
|
+
"data-orientation": "horizontal",
|
|
8
|
+
"data-slot": "details-grid",
|
|
9
|
+
"data-variant": "list",
|
|
10
|
+
...props
|
|
11
|
+
});
|
|
12
|
+
/** The subgrid row aligns each label with the other labels in its list. */
|
|
13
|
+
const DetailsListItemFace = ({ label, children, className, ...props }) => /* @__PURE__ */ jsxs("div", {
|
|
14
|
+
className: cn("col-span-full grid grid-cols-subgrid items-center", className),
|
|
15
|
+
"data-slot": "details-item",
|
|
16
|
+
...props,
|
|
17
|
+
children: [/* @__PURE__ */ jsx("dt", {
|
|
18
|
+
className: "text-muted-foreground min-w-0",
|
|
19
|
+
children: label
|
|
20
|
+
}), /* @__PURE__ */ jsx("dd", {
|
|
21
|
+
className: "min-w-0 wrap-anywhere",
|
|
22
|
+
children
|
|
23
|
+
})]
|
|
24
|
+
});
|
|
25
|
+
export { DetailsListFace, DetailsListItemFace };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** A field's column: its caption, its control and its quiet lines. */
|
|
2
|
+
export declare const FIELD_CLASS_NAME = "flex flex-col items-start gap-2";
|
|
3
|
+
/** A field's quiet line under its control. */
|
|
4
|
+
export declare const FIELD_DESCRIPTION_CLASS_NAME = "text-muted-foreground text-xs";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// src/components/field-classes.ts
|
|
2
|
+
/** A field's column: its caption, its control and its quiet lines. */
|
|
3
|
+
const FIELD_CLASS_NAME = "flex flex-col items-start gap-2";
|
|
4
|
+
/** A field's quiet line under its control. */
|
|
5
|
+
const FIELD_DESCRIPTION_CLASS_NAME = "text-muted-foreground text-xs";
|
|
6
|
+
export { FIELD_CLASS_NAME, FIELD_DESCRIPTION_CLASS_NAME };
|
package/dist/components/field.js
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn } from "../lib/utils.js";
|
|
3
|
+
import { FIELD_CLASS_NAME, FIELD_DESCRIPTION_CLASS_NAME } from "./field-classes.js";
|
|
4
|
+
import { LABEL_VARIANT_CLASS_NAME } from "./label-classes.js";
|
|
3
5
|
import { jsx } from "react/jsx-runtime";
|
|
4
6
|
import { Field as Field$1 } from "@base-ui/react/field";
|
|
5
7
|
// src/components/field.tsx
|
|
6
8
|
const Field = ({ className, ...props }) => /* @__PURE__ */ jsx(Field$1.Root, {
|
|
7
|
-
className: cn(
|
|
9
|
+
className: cn(FIELD_CLASS_NAME, className),
|
|
8
10
|
"data-slot": "field",
|
|
9
11
|
...props
|
|
10
12
|
});
|
|
11
13
|
const FieldLabel = ({ className, ...props }) => /* @__PURE__ */ jsx(Field$1.Label, {
|
|
12
|
-
className: cn(
|
|
14
|
+
className: cn(LABEL_VARIANT_CLASS_NAME.default, className),
|
|
13
15
|
"data-slot": "field-label",
|
|
14
16
|
...props
|
|
15
17
|
});
|
|
@@ -19,7 +21,7 @@ const FieldItem = ({ className, ...props }) => /* @__PURE__ */ jsx(Field$1.Item,
|
|
|
19
21
|
...props
|
|
20
22
|
});
|
|
21
23
|
const FieldDescription = ({ className, ...props }) => /* @__PURE__ */ jsx(Field$1.Description, {
|
|
22
|
-
className: cn(
|
|
24
|
+
className: cn(FIELD_DESCRIPTION_CLASS_NAME, className),
|
|
23
25
|
"data-slot": "field-description",
|
|
24
26
|
...props
|
|
25
27
|
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ReactNode, Ref } from "react";
|
|
2
|
+
export type OutcomeTone = "success" | "error";
|
|
3
|
+
export type OutcomeContentProps = {
|
|
4
|
+
tone: OutcomeTone;
|
|
5
|
+
title: ReactNode;
|
|
6
|
+
description?: ReactNode;
|
|
7
|
+
actions?: ReactNode;
|
|
8
|
+
documentTitle?: string;
|
|
9
|
+
headingRef?: Ref<HTMLHeadingElement>;
|
|
10
|
+
};
|
|
11
|
+
type OutcomeCoreProps = OutcomeContentProps & {
|
|
12
|
+
glyph?: ReactNode;
|
|
13
|
+
beforeActions?: ReactNode;
|
|
14
|
+
afterActions?: ReactNode;
|
|
15
|
+
};
|
|
16
|
+
export declare const OUTCOME_TILE_CLASS = "bg-card text-foreground shadow-outcome-tile relative flex size-14 shrink-0 items-center justify-center rounded-2xl";
|
|
17
|
+
export declare const OutcomeStatusBadge: ({ className, tone }: {
|
|
18
|
+
className?: string;
|
|
19
|
+
tone: OutcomeTone;
|
|
20
|
+
}) => import("react").JSX.Element;
|
|
21
|
+
export declare const StellaOutcomeTile: () => import("react").JSX.Element;
|
|
22
|
+
export declare const OutcomeTitle: ({ documentTitle, title }: Pick<OutcomeContentProps, "documentTitle" | "title">) => import("react").JSX.Element | null;
|
|
23
|
+
export declare const OutcomeContent: ({ tone, title, description, actions, headingRef, glyph, beforeActions, afterActions }: OutcomeCoreProps) => import("react").JSX.Element;
|
|
24
|
+
export declare const OutcomePage: (props: OutcomeCoreProps) => import("react").JSX.Element;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { CheckIcon, XIcon } from "../icons.js";
|
|
2
|
+
import { cn } from "../lib/utils.js";
|
|
3
|
+
import { StellaMark } from "./stella-mark.js";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
// src/components/outcome-screen-core.tsx
|
|
6
|
+
const TONE_BADGE = {
|
|
7
|
+
success: {
|
|
8
|
+
className: "bg-success",
|
|
9
|
+
Icon: CheckIcon
|
|
10
|
+
},
|
|
11
|
+
error: {
|
|
12
|
+
className: "bg-destructive",
|
|
13
|
+
Icon: XIcon
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
const OUTCOME_TILE_CLASS = "bg-card text-foreground shadow-outcome-tile relative flex size-14 shrink-0 items-center justify-center rounded-2xl";
|
|
17
|
+
const OutcomeStatusBadge = ({ className, tone }) => {
|
|
18
|
+
const { className: toneClass, Icon } = TONE_BADGE[tone];
|
|
19
|
+
return /* @__PURE__ */ jsx("span", {
|
|
20
|
+
className: cn("text-background ring-background motion-safe:animate-outcome-badge flex size-5 items-center justify-center rounded-full ring-2", toneClass, className),
|
|
21
|
+
"data-slot": "outcome-badge",
|
|
22
|
+
"data-tone": tone,
|
|
23
|
+
children: /* @__PURE__ */ jsx(Icon, {
|
|
24
|
+
className: "size-3",
|
|
25
|
+
strokeWidth: 3
|
|
26
|
+
})
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
const StellaOutcomeTile = () => /* @__PURE__ */ jsx("span", {
|
|
30
|
+
className: OUTCOME_TILE_CLASS,
|
|
31
|
+
"data-slot": "outcome-tile",
|
|
32
|
+
children: /* @__PURE__ */ jsx(StellaMark, { className: "size-7" })
|
|
33
|
+
});
|
|
34
|
+
const OutcomeGlyph = ({ tone }) => /* @__PURE__ */ jsxs("div", {
|
|
35
|
+
className: "relative",
|
|
36
|
+
"aria-hidden": "true",
|
|
37
|
+
children: [/* @__PURE__ */ jsx(StellaOutcomeTile, {}), /* @__PURE__ */ jsx(OutcomeStatusBadge, {
|
|
38
|
+
className: "absolute -end-1.25 -bottom-1.25",
|
|
39
|
+
tone
|
|
40
|
+
})]
|
|
41
|
+
});
|
|
42
|
+
const OutcomeTitle = ({ documentTitle, title }) => {
|
|
43
|
+
const text = documentTitle ?? (typeof title === "string" ? title : void 0);
|
|
44
|
+
return text === void 0 ? null : /* @__PURE__ */ jsx("title", { children: text });
|
|
45
|
+
};
|
|
46
|
+
const OutcomeContent = ({ tone, title, description, actions, headingRef, glyph, beforeActions, afterActions }) => /* @__PURE__ */ jsxs("section", {
|
|
47
|
+
className: "motion-safe:animate-rise flex w-full max-w-[26rem] flex-col items-center text-center wrap-anywhere",
|
|
48
|
+
"data-slot": "outcome",
|
|
49
|
+
"data-tone": tone,
|
|
50
|
+
role: "status",
|
|
51
|
+
children: [
|
|
52
|
+
glyph ?? /* @__PURE__ */ jsx(OutcomeGlyph, { tone }),
|
|
53
|
+
/* @__PURE__ */ jsx("h1", {
|
|
54
|
+
className: "mt-7 text-2xl font-semibold tracking-tight text-balance outline-none",
|
|
55
|
+
ref: headingRef,
|
|
56
|
+
tabIndex: headingRef === void 0 ? void 0 : -1,
|
|
57
|
+
children: title
|
|
58
|
+
}),
|
|
59
|
+
description === void 0 ? null : /* @__PURE__ */ jsx("p", {
|
|
60
|
+
className: "text-muted-foreground mt-2 max-w-[22rem] text-sm text-pretty",
|
|
61
|
+
children: description
|
|
62
|
+
}),
|
|
63
|
+
beforeActions,
|
|
64
|
+
actions === void 0 ? null : /* @__PURE__ */ jsx("div", {
|
|
65
|
+
className: "mt-7 flex flex-wrap justify-center gap-2",
|
|
66
|
+
children: actions
|
|
67
|
+
}),
|
|
68
|
+
afterActions
|
|
69
|
+
]
|
|
70
|
+
});
|
|
71
|
+
const OutcomePage = (props) => /* @__PURE__ */ jsxs("main", {
|
|
72
|
+
className: "bg-background text-foreground flex min-h-dvh w-full flex-col items-center justify-center px-4 pt-12 pb-[14svh] font-sans",
|
|
73
|
+
"data-slot": "outcome-screen",
|
|
74
|
+
children: [/* @__PURE__ */ jsx(OutcomeTitle, { ...props }), /* @__PURE__ */ jsx(OutcomeContent, { ...props })]
|
|
75
|
+
});
|
|
76
|
+
export { OUTCOME_TILE_CLASS, OutcomeContent, OutcomePage, OutcomeStatusBadge, OutcomeTitle, StellaOutcomeTile };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { OutcomeContentProps } from "./outcome-screen-core.js";
|
|
2
|
+
/** The page outcome before its interactive behavior mounts. */
|
|
3
|
+
export declare const OutcomeScreenFace: (props: Pick<OutcomeContentProps, "actions" | "description" | "title" | "tone">) => import("react").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { OutcomePage } from "./outcome-screen-core.js";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
// src/components/outcome-screen-face.tsx
|
|
4
|
+
/** The page outcome before its interactive behavior mounts. */
|
|
5
|
+
const OutcomeScreenFace = (props) => /* @__PURE__ */ jsx(OutcomePage, { ...props });
|
|
6
|
+
export { OutcomeScreenFace };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { OutcomeContentProps, OutcomeTone } from "./outcome-screen-core.js";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
3
|
/** One fact about what the flow connected, e.g. Account: jan@firm.example. */
|
|
4
4
|
export type OutcomeDetail = {
|
|
5
5
|
/** What the fact is, in a word or two. */
|
|
@@ -7,33 +7,21 @@ export type OutcomeDetail = {
|
|
|
7
7
|
/** The fact itself; isolated as its own bidi run (names, emails). */
|
|
8
8
|
value: ReactNode;
|
|
9
9
|
};
|
|
10
|
-
type OutcomeLayoutProps = {
|
|
11
|
-
tone: OutcomeTone;
|
|
12
|
-
/** What happened, in a few words. Also the document title. */
|
|
13
|
-
title: string;
|
|
14
|
-
/** What it means, or what to do next. */
|
|
15
|
-
description?: ReactNode;
|
|
10
|
+
type OutcomeLayoutProps = OutcomeContentProps & {
|
|
16
11
|
/** The other side's identity (a logo), drawn in a tile beside stella's. */
|
|
17
12
|
counterpart?: ReactNode;
|
|
18
13
|
/** The flow's facts, drawn by `OutcomeDetailList`. */
|
|
19
14
|
details?: ReactNode;
|
|
20
15
|
/** A command to run next, drawn by `OutcomeCommand`. */
|
|
21
16
|
command?: ReactNode;
|
|
22
|
-
/** The way on, as buttons or links. */
|
|
23
|
-
actions?: ReactNode;
|
|
24
17
|
/** A quiet footnote, drawn by `OutcomeNote`. */
|
|
25
18
|
note?: ReactNode;
|
|
26
|
-
/**
|
|
27
|
-
* `page` owns the viewport; `embedded` sits inside a layout that already
|
|
28
|
-
* frames the page (the sign-in layout).
|
|
29
|
-
*/
|
|
19
|
+
/** A page owns the viewport, or is embedded in a frame that already owns it. */
|
|
30
20
|
surface?: "page" | "embedded";
|
|
31
|
-
/** The document title, when it differs from `title` (an app suffix). */
|
|
32
|
-
documentTitle?: string;
|
|
33
|
-
/** Makes the heading focusable and hands it over, to move focus to it. */
|
|
34
|
-
headingRef?: Ref<HTMLHeadingElement>;
|
|
35
21
|
};
|
|
36
|
-
export type OutcomeScreenViewProps = Omit<OutcomeLayoutProps, "details" | "command" | "note"> & {
|
|
22
|
+
export type OutcomeScreenViewProps = Omit<OutcomeLayoutProps, "details" | "command" | "note" | "title"> & {
|
|
23
|
+
/** What happened. Also the document title when none is supplied. */
|
|
24
|
+
title: string;
|
|
37
25
|
/**
|
|
38
26
|
* What the flow connected, 1 to 3 facts it already holds (the account, the
|
|
39
27
|
* organization, the access granted). Leave it out when there is nothing
|
|
@@ -83,6 +71,6 @@ export declare const OutcomeNote: ({ children }: {
|
|
|
83
71
|
* The screen with every optional part already drawn: `OutcomeScreenView`
|
|
84
72
|
* draws them from props, the generator puts template slots in their place.
|
|
85
73
|
*/
|
|
86
|
-
export declare const OutcomeLayout: ({
|
|
74
|
+
export declare const OutcomeLayout: ({ counterpart, details, command, note, surface, ...layout }: OutcomeLayoutProps) => import("react").JSX.Element;
|
|
87
75
|
export declare const OutcomeScreenView: ({ details, command, note, ...layout }: OutcomeScreenViewProps) => import("react").JSX.Element;
|
|
88
|
-
export {};
|
|
76
|
+
export type { OutcomeTone };
|
|
@@ -1,68 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { StellaMark } from "./stella-mark.js";
|
|
4
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
1
|
+
import { OUTCOME_TILE_CLASS, OutcomeContent, OutcomePage, OutcomeStatusBadge, OutcomeTitle, StellaOutcomeTile } from "./outcome-screen-core.js";
|
|
2
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
3
|
// src/components/outcome-screen-view.tsx
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
};
|
|
29
|
-
const OutcomeGlyph = ({ counterpart, tone }) => {
|
|
30
|
-
const stellaTile = /* @__PURE__ */ jsx("span", {
|
|
31
|
-
className: TILE_CLASS,
|
|
32
|
-
"data-slot": "outcome-tile",
|
|
33
|
-
children: /* @__PURE__ */ jsx(StellaMark, { className: "size-7" })
|
|
34
|
-
});
|
|
35
|
-
if (counterpart === void 0 || counterpart === null) return /* @__PURE__ */ jsxs("div", {
|
|
36
|
-
className: "relative",
|
|
37
|
-
"aria-hidden": "true",
|
|
38
|
-
children: [stellaTile, /* @__PURE__ */ jsx(StatusBadge, {
|
|
39
|
-
className: "absolute -end-1.25 -bottom-1.25",
|
|
40
|
-
tone
|
|
41
|
-
})]
|
|
42
|
-
});
|
|
43
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
44
|
-
className: "flex items-center",
|
|
45
|
-
"aria-hidden": "true",
|
|
46
|
-
children: [
|
|
47
|
-
/* @__PURE__ */ jsx("span", {
|
|
48
|
-
className: TILE_CLASS,
|
|
49
|
-
"data-slot": "outcome-tile",
|
|
50
|
-
children: counterpart
|
|
51
|
-
}),
|
|
52
|
-
/* @__PURE__ */ jsxs("span", {
|
|
53
|
-
className: "relative flex w-16 items-center justify-center",
|
|
54
|
-
children: [/* @__PURE__ */ jsx("span", {
|
|
55
|
-
className: "bg-border motion-safe:animate-outcome-connector h-px w-full",
|
|
56
|
-
"data-slot": "outcome-connector"
|
|
57
|
-
}), /* @__PURE__ */ jsx(StatusBadge, {
|
|
58
|
-
className: "absolute",
|
|
59
|
-
tone
|
|
60
|
-
})]
|
|
61
|
-
}),
|
|
62
|
-
stellaTile
|
|
63
|
-
]
|
|
64
|
-
});
|
|
65
|
-
};
|
|
4
|
+
const PairedOutcomeGlyph = ({ counterpart, tone }) => /* @__PURE__ */ jsxs("div", {
|
|
5
|
+
className: "flex items-center",
|
|
6
|
+
"aria-hidden": "true",
|
|
7
|
+
children: [
|
|
8
|
+
/* @__PURE__ */ jsx("span", {
|
|
9
|
+
className: OUTCOME_TILE_CLASS,
|
|
10
|
+
"data-slot": "outcome-tile",
|
|
11
|
+
children: counterpart
|
|
12
|
+
}),
|
|
13
|
+
/* @__PURE__ */ jsxs("span", {
|
|
14
|
+
className: "relative flex w-16 items-center justify-center",
|
|
15
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
16
|
+
className: "bg-border motion-safe:animate-outcome-connector h-px w-full",
|
|
17
|
+
"data-slot": "outcome-connector"
|
|
18
|
+
}), /* @__PURE__ */ jsx(OutcomeStatusBadge, {
|
|
19
|
+
className: "absolute",
|
|
20
|
+
tone
|
|
21
|
+
})]
|
|
22
|
+
}),
|
|
23
|
+
/* @__PURE__ */ jsx(StellaOutcomeTile, {})
|
|
24
|
+
]
|
|
25
|
+
});
|
|
66
26
|
/** The facts' one quiet surface; its rows are `OutcomeDetailRow`s. */
|
|
67
27
|
const OutcomeDetailList = ({ children }) => /* @__PURE__ */ jsx("dl", {
|
|
68
28
|
className: "bg-muted mt-6 grid w-full max-w-[22rem] grid-cols-[max-content_minmax(0,1fr)] gap-x-4 rounded-xl px-4 py-2 text-start text-sm",
|
|
@@ -116,47 +76,22 @@ const OutcomeNote = ({ children }) => /* @__PURE__ */ jsx("p", {
|
|
|
116
76
|
* The screen with every optional part already drawn: `OutcomeScreenView`
|
|
117
77
|
* draws them from props, the generator puts template slots in their place.
|
|
118
78
|
*/
|
|
119
|
-
const OutcomeLayout = ({
|
|
120
|
-
const
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
}),
|
|
130
|
-
/* @__PURE__ */ jsx("h1", {
|
|
131
|
-
className: "mt-7 text-2xl font-semibold tracking-tight text-balance outline-none",
|
|
132
|
-
ref: headingRef,
|
|
133
|
-
tabIndex: headingRef === void 0 ? void 0 : -1,
|
|
134
|
-
children: title
|
|
135
|
-
}),
|
|
136
|
-
description === void 0 ? null : /* @__PURE__ */ jsx("p", {
|
|
137
|
-
className: "text-muted-foreground mt-2 max-w-[22rem] text-sm text-pretty",
|
|
138
|
-
children: description
|
|
139
|
-
}),
|
|
140
|
-
details,
|
|
141
|
-
command,
|
|
142
|
-
actions === void 0 ? null : /* @__PURE__ */ jsx("div", {
|
|
143
|
-
className: "mt-7 flex flex-wrap justify-center gap-2",
|
|
144
|
-
children: actions
|
|
145
|
-
}),
|
|
146
|
-
note
|
|
147
|
-
]
|
|
148
|
-
});
|
|
149
|
-
const titleElement = /* @__PURE__ */ jsx("title", { children: documentTitle ?? title });
|
|
79
|
+
const OutcomeLayout = ({ counterpart, details, command, note, surface = "page", ...layout }) => {
|
|
80
|
+
const content = {
|
|
81
|
+
...layout,
|
|
82
|
+
glyph: counterpart === void 0 || counterpart === null ? void 0 : /* @__PURE__ */ jsx(PairedOutcomeGlyph, {
|
|
83
|
+
counterpart,
|
|
84
|
+
tone: layout.tone
|
|
85
|
+
}),
|
|
86
|
+
beforeActions: /* @__PURE__ */ jsxs(Fragment, { children: [details, command] }),
|
|
87
|
+
afterActions: note
|
|
88
|
+
};
|
|
150
89
|
if (surface === "embedded") return /* @__PURE__ */ jsxs("div", {
|
|
151
90
|
className: "flex w-full justify-center py-10",
|
|
152
91
|
"data-slot": "outcome-screen",
|
|
153
|
-
children: [
|
|
154
|
-
});
|
|
155
|
-
return /* @__PURE__ */ jsxs("main", {
|
|
156
|
-
className: "bg-background text-foreground flex min-h-dvh w-full flex-col items-center justify-center px-4 pt-12 pb-[14svh] font-sans",
|
|
157
|
-
"data-slot": "outcome-screen",
|
|
158
|
-
children: [titleElement, outcome]
|
|
92
|
+
children: [/* @__PURE__ */ jsx(OutcomeTitle, { ...layout }), /* @__PURE__ */ jsx(OutcomeContent, { ...content })]
|
|
159
93
|
});
|
|
94
|
+
return /* @__PURE__ */ jsx(OutcomePage, { ...content });
|
|
160
95
|
};
|
|
161
96
|
const OutcomeScreenView = ({ details, command, note, ...layout }) => /* @__PURE__ */ jsx(OutcomeLayout, {
|
|
162
97
|
...layout,
|
|
@@ -90,6 +90,11 @@ declare const SORT_ICON_SLOT_CLASS = "inline-flex w-3 shrink-0 justify-center";
|
|
|
90
90
|
* head's, pulled back by a negative margin so the label lines up with the
|
|
91
91
|
* cells and the button never reaches past the table's edge. In an
|
|
92
92
|
* end-aligned (numeric) column the arrow sits before the label.
|
|
93
|
+
*
|
|
94
|
+
* The head's content box shrink-wraps the button's margin box, which the
|
|
95
|
+
* negative margin makes one padding narrower than the button. A button capped
|
|
96
|
+
* at `max-w-full` of that box would cut its label by that padding however
|
|
97
|
+
* wide the column is, so the cap adds the padding back.
|
|
93
98
|
*/
|
|
94
99
|
declare const sortableHeadButtonClassName: (endAligned: boolean) => string;
|
|
95
100
|
/** A head's label before its page has loaded: the cut line it sits on. */
|
|
@@ -73,8 +73,13 @@ const SORT_ICON_SLOT_CLASS = "inline-flex w-3 shrink-0 justify-center";
|
|
|
73
73
|
* head's, pulled back by a negative margin so the label lines up with the
|
|
74
74
|
* cells and the button never reaches past the table's edge. In an
|
|
75
75
|
* end-aligned (numeric) column the arrow sits before the label.
|
|
76
|
+
*
|
|
77
|
+
* The head's content box shrink-wraps the button's margin box, which the
|
|
78
|
+
* negative margin makes one padding narrower than the button. A button capped
|
|
79
|
+
* at `max-w-full` of that box would cut its label by that padding however
|
|
80
|
+
* wide the column is, so the cap adds the padding back.
|
|
76
81
|
*/
|
|
77
|
-
const sortableHeadButtonClassName = (endAligned) => cn("min-w-0 gap-1 px-2.5", endAligned ? "-me-2.5 flex-row-reverse" : "-ms-2.5");
|
|
82
|
+
const sortableHeadButtonClassName = (endAligned) => cn("max-w-[calc(100%+--spacing(2.5))] min-w-0 gap-1 px-2.5", endAligned ? "-me-2.5 flex-row-reverse" : "-ms-2.5");
|
|
78
83
|
/** A head's label before its page has loaded: the cut line it sits on. */
|
|
79
84
|
const TableHeadLabel = ({ children }) => /* @__PURE__ */ jsx("span", {
|
|
80
85
|
className: TRUNCATED_TEXT_LINES_CLASS[1],
|
|
@@ -75,6 +75,13 @@ export declare const resolveInspectorPaneMaxWidth: ({ sidebarWidth, viewportWidt
|
|
|
75
75
|
export declare const clampInspectorPaneWidth: (width: number) => number;
|
|
76
76
|
/** Width the pane renders at, given the width the user asked for. */
|
|
77
77
|
export declare const resolveInspectorPaneWidth: ({ desiredWidth, sidebarWidth, viewportWidth }: InspectorPaneWidthInput) => number;
|
|
78
|
+
/**
|
|
79
|
+
* `resolveInspectorPaneWidth` as CSS, for a frame drawn before the viewport
|
|
80
|
+
* is known (a server's paint, and the hydration of it): the same bounds and
|
|
81
|
+
* ceilings with `100vw` for the viewport's width, so the pane the frame
|
|
82
|
+
* reserves is the width the measured pane takes at any viewport.
|
|
83
|
+
*/
|
|
84
|
+
export declare const inspectorPaneWidthCss: ({ desiredWidth, sidebarWidth }: Omit<InspectorPaneWidthInput, "viewportWidth">) => string;
|
|
78
85
|
/**
|
|
79
86
|
* Width the dock reserves in the layout: the full pane while content is
|
|
80
87
|
* shown, the bare rail while it is collapsed or minimized.
|
|
@@ -42,6 +42,14 @@ const INSPECTOR_RAIL_WIDTH = 48;
|
|
|
42
42
|
*/
|
|
43
43
|
const shouldForceSidebarCollapsed = ({ expandedSidebarWidth, inspectorPaneOpen, viewportWidth }) => inspectorPaneOpen && viewportWidth > 0 && viewportWidth < expandedSidebarWidth + 400 + 320;
|
|
44
44
|
/**
|
|
45
|
+
* The pane's two viewport-relative ceilings, as what each leaves out of the
|
|
46
|
+
* viewport's width. Both bind. The readable one ignores the sidebar, which
|
|
47
|
+
* yields its width before the pane has to (see `shouldForceSidebarCollapsed`);
|
|
48
|
+
* the available one is what is actually left in the row once the sidebar has
|
|
49
|
+
* taken its share.
|
|
50
|
+
*/
|
|
51
|
+
const paneCeilingOffsets = (sidebarWidth) => [560, sidebarWidth + 400];
|
|
52
|
+
/**
|
|
45
53
|
* Largest width the pane may take without starving the content column.
|
|
46
54
|
* Never returns less than {@link INSPECTOR_PANE_MIN_WIDTH}: a pane too
|
|
47
55
|
* narrow to read is no better than a content column too narrow to read,
|
|
@@ -50,9 +58,7 @@ const shouldForceSidebarCollapsed = ({ expandedSidebarWidth, inspectorPaneOpen,
|
|
|
50
58
|
*/
|
|
51
59
|
const resolveInspectorPaneMaxWidth = ({ sidebarWidth, viewportWidth }) => {
|
|
52
60
|
if (viewportWidth <= 0) return 320;
|
|
53
|
-
|
|
54
|
-
const available = viewportWidth - sidebarWidth - 400;
|
|
55
|
-
return Math.max(320, Math.min(INSPECTOR_PANE_MAX_WIDTH, readable, available));
|
|
61
|
+
return Math.max(320, Math.min(INSPECTOR_PANE_MAX_WIDTH, ...paneCeilingOffsets(sidebarWidth).map((offset) => viewportWidth - offset)));
|
|
56
62
|
};
|
|
57
63
|
/**
|
|
58
64
|
* A width inside the pane's own bounds, independent of any viewport.
|
|
@@ -70,8 +76,18 @@ const resolveInspectorPaneWidth = ({ desiredWidth, sidebarWidth, viewportWidth }
|
|
|
70
76
|
viewportWidth
|
|
71
77
|
}));
|
|
72
78
|
/**
|
|
79
|
+
* `resolveInspectorPaneWidth` as CSS, for a frame drawn before the viewport
|
|
80
|
+
* is known (a server's paint, and the hydration of it): the same bounds and
|
|
81
|
+
* ceilings with `100vw` for the viewport's width, so the pane the frame
|
|
82
|
+
* reserves is the width the measured pane takes at any viewport.
|
|
83
|
+
*/
|
|
84
|
+
const inspectorPaneWidthCss = ({ desiredWidth, sidebarWidth }) => {
|
|
85
|
+
const ceilings = paneCeilingOffsets(sidebarWidth).map((offset) => `100vw - ${String(offset)}px`).join(", ");
|
|
86
|
+
return `min(${String(clampInspectorPaneWidth(desiredWidth))}px, max(${String(320)}px, min(${String(INSPECTOR_PANE_MAX_WIDTH)}px, ${ceilings})))`;
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
73
89
|
* Width the dock reserves in the layout: the full pane while content is
|
|
74
90
|
* shown, the bare rail while it is collapsed or minimized.
|
|
75
91
|
*/
|
|
76
92
|
const resolveInspectorDockWidth = ({ paneWidth, showPaneContent }) => showPaneContent ? paneWidth : 48;
|
|
77
|
-
export { INSPECTOR_CONTENT_MIN_WIDTH, INSPECTOR_EDITOR_MIN_WIDTH, INSPECTOR_PANE_DEFAULT_WIDTH, INSPECTOR_PANE_MAX_WIDTH, INSPECTOR_PANE_MIN_WIDTH, INSPECTOR_RAIL_WIDTH, clampInspectorPaneWidth, resolveInspectorDockWidth, resolveInspectorPaneMaxWidth, resolveInspectorPaneWidth, shouldForceSidebarCollapsed };
|
|
93
|
+
export { INSPECTOR_CONTENT_MIN_WIDTH, INSPECTOR_EDITOR_MIN_WIDTH, INSPECTOR_PANE_DEFAULT_WIDTH, INSPECTOR_PANE_MAX_WIDTH, INSPECTOR_PANE_MIN_WIDTH, INSPECTOR_RAIL_WIDTH, clampInspectorPaneWidth, inspectorPaneWidthCss, resolveInspectorDockWidth, resolveInspectorPaneMaxWidth, resolveInspectorPaneWidth, shouldForceSidebarCollapsed };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stll/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.77.1",
|
|
4
4
|
"description": "Stella's design system: bidi-aware React primitives built on Base UI, the dockable inspector pane, and the Tailwind v4 theme they are styled with.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"base-ui",
|
|
@@ -210,6 +210,10 @@
|
|
|
210
210
|
"types": "./dist/components/details-grid.d.ts",
|
|
211
211
|
"import": "./dist/components/details-grid.js"
|
|
212
212
|
},
|
|
213
|
+
"./details-list-face": {
|
|
214
|
+
"types": "./dist/components/details-list-face.d.ts",
|
|
215
|
+
"import": "./dist/components/details-list-face.js"
|
|
216
|
+
},
|
|
213
217
|
"./destructive-action-confirmation": {
|
|
214
218
|
"types": "./dist/components/destructive-action-confirmation.d.ts",
|
|
215
219
|
"import": "./dist/components/destructive-action-confirmation.js"
|
|
@@ -522,6 +526,10 @@
|
|
|
522
526
|
"types": "./dist/components/outcome-screen.d.ts",
|
|
523
527
|
"import": "./dist/components/outcome-screen.js"
|
|
524
528
|
},
|
|
529
|
+
"./outcome-screen-face": {
|
|
530
|
+
"types": "./dist/components/outcome-screen-face.d.ts",
|
|
531
|
+
"import": "./dist/components/outcome-screen-face.js"
|
|
532
|
+
},
|
|
525
533
|
"./skeleton": {
|
|
526
534
|
"types": "./dist/components/skeleton.d.ts",
|
|
527
535
|
"import": "./dist/components/skeleton.js"
|
|
File without changes
|