@jack.winter/pancake-ui 0.2.1 → 0.3.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/CHANGELOG.md +6 -0
- package/dist/components/Dialog/DialogActions.d.ts +3 -0
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +12 -4
- package/dist/components/DropdownMenu/MenuChoice.d.ts +9 -0
- package/dist/components/DropdownMenu/menuText.d.ts +3 -0
- package/dist/components/DropdownMenu/useMenuTrigger.d.ts +6 -0
- package/dist/components/List/List.d.ts +3 -0
- package/dist/components/List/ListItem.d.ts +8 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +168 -91
- package/dist/styles.css +1 -1
- package/docs/components.md +13 -4
- package/docs/styling.md +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.0
|
|
4
|
+
|
|
5
|
+
- Add `List` and `ListItem` for settings, people and status rows. `List` sets an explicit list role so Safari keeps announcing it without bullets. A row takes a `title`, an optional `description`, `leading` content such as an avatar, and `trailing` content such as a value or a button.
|
|
6
|
+
- Add `DialogActions` for the buttons at the end of a dialog. Buttons line up at the end in source order and wrap on narrow screens.
|
|
7
|
+
- `DropdownMenu` takes an `icon` to show on its trigger instead of the label, which becomes the trigger's accessible name. Items can be `{ type: "text" }` lines, such as the signed-in account. They describe the menu to assistive technology, and keyboard navigation and typeahead skip them. A menu with only text lines has a disabled trigger.
|
|
8
|
+
|
|
3
9
|
## 0.2.1
|
|
4
10
|
|
|
5
11
|
- Quieter tabs. Unselected tabs have no fill and secondary text; the selected tab takes the muted fill and full-strength text instead of the accent fill and underline. Hovering an unselected tab gives it the lighter canvas fill and full-strength text, so it never looks selected. The underline remains in forced colours, where fills are dropped. Vertical tabs align their labels to the start. No API changes.
|
|
@@ -1,11 +1,18 @@
|
|
|
1
|
-
import { type ComponentPropsWithRef } from "react";
|
|
1
|
+
import { type ComponentPropsWithRef, type ReactNode } from "react";
|
|
2
2
|
import { type ButtonProps } from "../Button/Button";
|
|
3
3
|
type MenuItemBase = Readonly<{
|
|
4
4
|
id: string;
|
|
5
5
|
label: string;
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
}>;
|
|
8
|
-
export type DropdownMenuItem =
|
|
8
|
+
export type DropdownMenuItem = Readonly<{
|
|
9
|
+
type: "text";
|
|
10
|
+
id: string;
|
|
11
|
+
label: string;
|
|
12
|
+
disabled?: never;
|
|
13
|
+
onSelect?: never;
|
|
14
|
+
href?: never;
|
|
15
|
+
}> | (MenuItemBase & ({
|
|
9
16
|
type: "action";
|
|
10
17
|
onSelect: () => void;
|
|
11
18
|
href?: never;
|
|
@@ -14,12 +21,13 @@ export type DropdownMenuItem = MenuItemBase & ({
|
|
|
14
21
|
href: string;
|
|
15
22
|
onSelect?: never;
|
|
16
23
|
download?: string | boolean;
|
|
17
|
-
} & Pick<ComponentPropsWithRef<"a">, "target" | "rel">));
|
|
24
|
+
} & Pick<ComponentPropsWithRef<"a">, "target" | "rel">)));
|
|
18
25
|
export type DropdownMenuProps = Omit<ComponentPropsWithRef<"div">, "children" | "id" | "popover" | "role" | "aria-label"> & {
|
|
19
26
|
label: string;
|
|
27
|
+
icon?: ReactNode;
|
|
20
28
|
items: readonly DropdownMenuItem[];
|
|
21
29
|
onOpenChange?: (open: boolean) => void;
|
|
22
30
|
triggerProps?: Omit<ButtonProps, "children" | "type" | "popoverTarget" | "popoverTargetAction" | "aria-haspopup" | "aria-expanded" | "aria-controls">;
|
|
23
31
|
};
|
|
24
|
-
export declare function DropdownMenu({ label, items, triggerProps, onOpenChange, onToggle, onKeyDown, ref, className, ...props }: DropdownMenuProps): import("react").JSX.Element;
|
|
32
|
+
export declare function DropdownMenu({ label, icon, items, triggerProps, onOpenChange, onToggle, onKeyDown, ref, className, "aria-describedby": consumerDescribedBy, ...props }: DropdownMenuProps): import("react").JSX.Element;
|
|
25
33
|
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { DropdownMenuItem } from "./DropdownMenu";
|
|
2
|
+
export type MenuChoiceItem = Exclude<DropdownMenuItem, {
|
|
3
|
+
type: "text";
|
|
4
|
+
}>;
|
|
5
|
+
export declare function MenuChoice({ item, onFocus, onChosen, }: {
|
|
6
|
+
item: MenuChoiceItem;
|
|
7
|
+
onFocus: () => void;
|
|
8
|
+
onChosen: () => void;
|
|
9
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { DropdownMenuItem } from "./DropdownMenu";
|
|
2
|
+
export declare const menuTextId: (menuId: string, index: number) => string;
|
|
3
|
+
export declare function menuDescription(menuId: string, items: readonly DropdownMenuItem[], describedBy: string | undefined): string | undefined;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { KeyboardEvent, MouseEvent, RefObject } from "react";
|
|
2
|
+
import type { ButtonProps } from "../Button/Button";
|
|
3
|
+
export declare function useMenuTrigger(panel: RefObject<HTMLDivElement | null>, triggerProps: Pick<ButtonProps, "onClick" | "onKeyDown">): {
|
|
4
|
+
onClick: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
5
|
+
onKeyDown: (event: KeyboardEvent<HTMLButtonElement>) => void;
|
|
6
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ComponentPropsWithRef, ReactNode } from "react";
|
|
2
|
+
export type ListItemProps = Omit<ComponentPropsWithRef<"li">, "title" | "children"> & {
|
|
3
|
+
title: ReactNode;
|
|
4
|
+
description?: ReactNode;
|
|
5
|
+
leading?: ReactNode;
|
|
6
|
+
trailing?: ReactNode;
|
|
7
|
+
};
|
|
8
|
+
export declare function ListItem({ title, description, leading, trailing, className, ...props }: ListItemProps): import("react").JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -22,6 +22,9 @@ export { Select, type SelectProps } from "./components/Select/Select";
|
|
|
22
22
|
export { IconButton, type IconButtonProps, } from "./components/Button/IconButton";
|
|
23
23
|
export { ButtonLink, type ButtonLinkProps, } from "./components/Button/ButtonLink";
|
|
24
24
|
export { Dialog, type DialogProps } from "./components/Dialog/Dialog";
|
|
25
|
+
export { DialogActions, type DialogActionsProps, } from "./components/Dialog/DialogActions";
|
|
26
|
+
export { List, type ListProps } from "./components/List/List";
|
|
27
|
+
export { ListItem, type ListItemProps } from "./components/List/ListItem";
|
|
25
28
|
export { RadioGroup, type RadioGroupProps, type RadioOption, } from "./components/RadioGroup/RadioGroup";
|
|
26
29
|
export { Switch, type SwitchProps } from "./components/Switch/Switch";
|
|
27
30
|
export { Tabs, type TabsProps, type TabItem } from "./components/Tabs/Tabs";
|
package/dist/index.js
CHANGED
|
@@ -351,14 +351,14 @@ function F({ items: e, max: r = 4, size: i = 40, className: a = "", "aria-label"
|
|
|
351
351
|
});
|
|
352
352
|
}
|
|
353
353
|
// src/components/feedback/StatusChip.tsx
|
|
354
|
-
function
|
|
354
|
+
function I({ tone: e = "neutral", className: n = "", ...r }) {
|
|
355
355
|
return /* @__PURE__ */ t("span", {
|
|
356
356
|
...r,
|
|
357
357
|
className: `pancake-status-chip pancake-tone-${e} ${n}`
|
|
358
358
|
});
|
|
359
359
|
}
|
|
360
360
|
// src/components/feedback/BannerToast.tsx
|
|
361
|
-
function
|
|
361
|
+
function ee({ title: e, children: r, tone: i = "info", onDismiss: a, dismissLabel: o = "Dismiss notification", className: s = "", ...c }) {
|
|
362
362
|
return /* @__PURE__ */ n("div", {
|
|
363
363
|
...c,
|
|
364
364
|
role: i === "error" ? "alert" : "status",
|
|
@@ -387,7 +387,7 @@ function te({ title: e, children: r, tone: i = "info", onDismiss: a, dismissLabe
|
|
|
387
387
|
});
|
|
388
388
|
}
|
|
389
389
|
// src/components/feedback/EmptyState.tsx
|
|
390
|
-
function
|
|
390
|
+
function te({ title: e, description: r, icon: i, action: a, className: o = "", ...s }) {
|
|
391
391
|
return /* @__PURE__ */ n("div", {
|
|
392
392
|
...s,
|
|
393
393
|
className: `pancake-empty-state ${o}`,
|
|
@@ -413,7 +413,7 @@ function ne({ title: e, description: r, icon: i, action: a, className: o = "", .
|
|
|
413
413
|
});
|
|
414
414
|
}
|
|
415
415
|
// src/components/navigation/SectionHeader.tsx
|
|
416
|
-
function
|
|
416
|
+
function ne({ title: e, description: r, action: i, headingLevel: a = 2, className: o = "", ...s }) {
|
|
417
417
|
let c = `h${a}`;
|
|
418
418
|
return /* @__PURE__ */ n("div", {
|
|
419
419
|
...s,
|
|
@@ -434,7 +434,7 @@ function re({ title: e, description: r, action: i, headingLevel: a = 2, classNam
|
|
|
434
434
|
});
|
|
435
435
|
}
|
|
436
436
|
// src/components/navigation/AppHeader.tsx
|
|
437
|
-
function
|
|
437
|
+
function re({ title: e, description: r, leading: i, trailing: a, className: o = "", ...s }) {
|
|
438
438
|
return /* @__PURE__ */ n("header", {
|
|
439
439
|
...s,
|
|
440
440
|
className: `pancake-app-header ${o}`,
|
|
@@ -461,7 +461,7 @@ function I({ title: e, description: r, leading: i, trailing: a, className: o = "
|
|
|
461
461
|
});
|
|
462
462
|
}
|
|
463
463
|
// src/components/navigation/BottomNavigation.tsx
|
|
464
|
-
function
|
|
464
|
+
function ie({ items: e, activeId: r, className: i = "", "aria-label": a = "Main navigation", ...o }) {
|
|
465
465
|
return /* @__PURE__ */ t("nav", {
|
|
466
466
|
...o,
|
|
467
467
|
"aria-label": a,
|
|
@@ -477,7 +477,7 @@ function L({ items: e, activeId: r, className: i = "", "aria-label": a = "Main n
|
|
|
477
477
|
});
|
|
478
478
|
}
|
|
479
479
|
// src/components/navigation/SegmentedControl.tsx
|
|
480
|
-
function
|
|
480
|
+
function ae({ label: e, options: r, value: i, defaultValue: a, onValueChange: s, name: c, disabled: l, required: u, className: d = "", ...f }) {
|
|
481
481
|
let p = o();
|
|
482
482
|
return /* @__PURE__ */ n("fieldset", {
|
|
483
483
|
...f,
|
|
@@ -505,7 +505,7 @@ function R({ label: e, options: r, value: i, defaultValue: a, onValueChange: s,
|
|
|
505
505
|
});
|
|
506
506
|
}
|
|
507
507
|
// src/components/navigation/StepProgress.tsx
|
|
508
|
-
function
|
|
508
|
+
function oe({ steps: e, currentStep: r, className: i = "", "aria-label": a = "Progress", ...o }) {
|
|
509
509
|
if (!Number.isInteger(r) || r < 0 || r > e.length || e.length === 0) throw Error("StepProgress requires steps and a currentStep from 0 through steps.length (complete).");
|
|
510
510
|
return /* @__PURE__ */ t("ol", {
|
|
511
511
|
...o,
|
|
@@ -529,7 +529,7 @@ function z({ steps: e, currentStep: r, className: i = "", "aria-label": a = "Pro
|
|
|
529
529
|
});
|
|
530
530
|
}
|
|
531
531
|
// src/components/Textarea/Textarea.tsx
|
|
532
|
-
function
|
|
532
|
+
function L({ label: e, rows: r = 4, helperText: i, error: a, id: s, className: c = "", required: l, "aria-describedby": u, "aria-invalid": d, ...f }) {
|
|
533
533
|
let p = o(), m = s ?? p, h = C({
|
|
534
534
|
generatedId: p,
|
|
535
535
|
error: a,
|
|
@@ -567,7 +567,7 @@ function B({ label: e, rows: r = 4, helperText: i, error: a, id: s, className: c
|
|
|
567
567
|
});
|
|
568
568
|
}
|
|
569
569
|
// src/components/Select/Select.tsx
|
|
570
|
-
function
|
|
570
|
+
function R({ label: e, helperText: r, error: i, id: a, className: s = "", required: c, "aria-describedby": l, "aria-invalid": u, ...d }) {
|
|
571
571
|
let f = o(), p = a ?? f, m = C({
|
|
572
572
|
generatedId: f,
|
|
573
573
|
error: i,
|
|
@@ -611,7 +611,7 @@ function V({ label: e, helperText: r, error: i, id: a, className: s = "", requir
|
|
|
611
611
|
});
|
|
612
612
|
}
|
|
613
613
|
// src/components/Button/IconButton.tsx
|
|
614
|
-
function
|
|
614
|
+
function z({ label: e, children: n, loading: r = !1, className: i = "", ...a }) {
|
|
615
615
|
return /* @__PURE__ */ t(x, {
|
|
616
616
|
...a,
|
|
617
617
|
loading: r,
|
|
@@ -625,14 +625,14 @@ function H({ label: e, children: n, loading: r = !1, className: i = "", ...a })
|
|
|
625
625
|
});
|
|
626
626
|
}
|
|
627
627
|
// src/components/Button/ButtonLink.tsx
|
|
628
|
-
function
|
|
628
|
+
function B({ variant: e = "primary", size: n = 36, className: r = "", ...i }) {
|
|
629
629
|
return /* @__PURE__ */ t("a", {
|
|
630
630
|
...i,
|
|
631
631
|
className: `pancake-button pancake-button--${e} pancake-button--${n} pancake-button-link ${r}`
|
|
632
632
|
});
|
|
633
633
|
}
|
|
634
634
|
// src/components/Dialog/Dialog.tsx
|
|
635
|
-
function
|
|
635
|
+
function V({ open: e, onOpenChange: r, title: i, description: a, closeLabel: u = "Close dialog", children: d, ref: f, className: p = "", onCancel: m, onClose: h, "aria-describedby": g, ..._ }) {
|
|
636
636
|
let v = l(null), y = o(), b = `${y}-title`, x = `${y}-description`;
|
|
637
637
|
return s(f, () => v.current, []), c(() => {
|
|
638
638
|
let t = v.current;
|
|
@@ -665,7 +665,7 @@ function W({ open: e, onOpenChange: r, title: i, description: a, closeLabel: u =
|
|
|
665
665
|
as: "h2",
|
|
666
666
|
variant: "heading",
|
|
667
667
|
children: i
|
|
668
|
-
}), /* @__PURE__ */ t(
|
|
668
|
+
}), /* @__PURE__ */ t(z, {
|
|
669
669
|
label: u,
|
|
670
670
|
variant: "ghost",
|
|
671
671
|
size: 32,
|
|
@@ -683,8 +683,51 @@ function W({ open: e, onOpenChange: r, title: i, description: a, closeLabel: u =
|
|
|
683
683
|
] })
|
|
684
684
|
});
|
|
685
685
|
}
|
|
686
|
+
// src/components/Dialog/DialogActions.tsx
|
|
687
|
+
function H({ className: e = "", ...n }) {
|
|
688
|
+
return /* @__PURE__ */ t("div", {
|
|
689
|
+
...n,
|
|
690
|
+
className: `pancake-dialog-actions ${e}`
|
|
691
|
+
});
|
|
692
|
+
}
|
|
693
|
+
// src/components/List/List.tsx
|
|
694
|
+
function U({ className: e = "", ...n }) {
|
|
695
|
+
return /* @__PURE__ */ t("ul", {
|
|
696
|
+
role: "list",
|
|
697
|
+
...n,
|
|
698
|
+
className: `pancake-list ${e}`
|
|
699
|
+
});
|
|
700
|
+
}
|
|
701
|
+
// src/components/List/ListItem.tsx
|
|
702
|
+
var W = (e) => e != null && e !== !1 && e !== "";
|
|
703
|
+
function G({ title: e, description: r, leading: i, trailing: a, className: o = "", ...s }) {
|
|
704
|
+
return /* @__PURE__ */ n("li", {
|
|
705
|
+
...s,
|
|
706
|
+
className: `pancake-list-item ${o}`,
|
|
707
|
+
children: [
|
|
708
|
+
W(i) && /* @__PURE__ */ t("span", {
|
|
709
|
+
className: "pancake-list-item-leading",
|
|
710
|
+
children: i
|
|
711
|
+
}),
|
|
712
|
+
/* @__PURE__ */ n("span", {
|
|
713
|
+
className: "pancake-list-item-text",
|
|
714
|
+
children: [/* @__PURE__ */ t("span", {
|
|
715
|
+
className: "pancake-list-item-title",
|
|
716
|
+
children: e
|
|
717
|
+
}), W(r) && /* @__PURE__ */ t("span", {
|
|
718
|
+
className: "pancake-list-item-description",
|
|
719
|
+
children: r
|
|
720
|
+
})]
|
|
721
|
+
}),
|
|
722
|
+
W(a) && /* @__PURE__ */ t("span", {
|
|
723
|
+
className: "pancake-list-item-trailing",
|
|
724
|
+
children: a
|
|
725
|
+
})
|
|
726
|
+
]
|
|
727
|
+
});
|
|
728
|
+
}
|
|
686
729
|
// src/components/RadioGroup/RadioGroup.tsx
|
|
687
|
-
function
|
|
730
|
+
function K({ label: e, options: r, value: i, defaultValue: a, onValueChange: s, required: c, helperText: l, error: u, name: d, disabled: f, className: p = "", "aria-describedby": m, "aria-invalid": h, ...g }) {
|
|
688
731
|
let _ = o(), v = `${_}-description`, y = u || l, b = [m, y ? v : void 0].filter(Boolean).join(" ") || void 0;
|
|
689
732
|
return /* @__PURE__ */ n("fieldset", {
|
|
690
733
|
...g,
|
|
@@ -741,7 +784,7 @@ function G({ label: e, options: r, value: i, defaultValue: a, onValueChange: s,
|
|
|
741
784
|
});
|
|
742
785
|
}
|
|
743
786
|
// src/components/Switch/Switch.tsx
|
|
744
|
-
function
|
|
787
|
+
function q({ label: e, onChange: r, onCheckedChange: i, id: a, className: s = "", ...c }) {
|
|
745
788
|
let l = o(), u = a ?? l;
|
|
746
789
|
return /* @__PURE__ */ n("label", {
|
|
747
790
|
className: "pancake-switch-label",
|
|
@@ -759,7 +802,7 @@ function K({ label: e, onChange: r, onCheckedChange: i, id: a, className: s = ""
|
|
|
759
802
|
});
|
|
760
803
|
}
|
|
761
804
|
// src/components/Tabs/Tabs.tsx
|
|
762
|
-
function
|
|
805
|
+
function se({ label: e, items: r, value: i, defaultValue: a, onValueChange: s, orientation: c = "horizontal", activation: l = "automatic", className: d = "", ...f }) {
|
|
763
806
|
let p = o(), m = (e) => `${p}-tab-${e}`, h = (e) => `${p}-panel-${e}`, [g, _] = u(a), [v, y] = u(), b = r.filter((e) => !e.disabled), x = i ?? g, S = b.find((e) => e.value === x)?.value ?? b[0]?.value, C = b.find((e) => e.value === v)?.value ?? S, w = (e) => {
|
|
764
807
|
e !== S && (i === void 0 && _(e), s?.(e));
|
|
765
808
|
};
|
|
@@ -806,7 +849,7 @@ function q({ label: e, items: r, value: i, defaultValue: a, onValueChange: s, or
|
|
|
806
849
|
});
|
|
807
850
|
}
|
|
808
851
|
// src/components/Disclosure/Disclosure.tsx
|
|
809
|
-
function
|
|
852
|
+
function ce({ summary: e, children: r, open: i, defaultOpen: a = !1, onOpenChange: o, onToggle: s, onClick: c, className: d = "", ...f }) {
|
|
810
853
|
let [p] = u(a), m = l(p);
|
|
811
854
|
return /* @__PURE__ */ n("details", {
|
|
812
855
|
...f,
|
|
@@ -831,7 +874,7 @@ function J({ summary: e, children: r, open: i, defaultOpen: a = !1, onOpenChange
|
|
|
831
874
|
});
|
|
832
875
|
}
|
|
833
876
|
// src/components/progress/Progress.tsx
|
|
834
|
-
function
|
|
877
|
+
function le({ label: e, value: r, max: i = 100, id: a, className: s = "", ...c }) {
|
|
835
878
|
let l = o(), u = a ?? l;
|
|
836
879
|
return /* @__PURE__ */ n("div", {
|
|
837
880
|
className: "pancake-progress-field",
|
|
@@ -849,7 +892,7 @@ function Y({ label: e, value: r, max: i = 100, id: a, className: s = "", ...c })
|
|
|
849
892
|
});
|
|
850
893
|
}
|
|
851
894
|
// src/components/progress/LoadingIndicator.tsx
|
|
852
|
-
function
|
|
895
|
+
function ue({ label: e, className: r = "", ...i }) {
|
|
853
896
|
return /* @__PURE__ */ n("div", {
|
|
854
897
|
"aria-atomic": "true",
|
|
855
898
|
...i,
|
|
@@ -867,7 +910,7 @@ function ie({ label: e, className: r = "", ...i }) {
|
|
|
867
910
|
});
|
|
868
911
|
}
|
|
869
912
|
// src/components/FileField/FileField.tsx
|
|
870
|
-
function
|
|
913
|
+
function de({ label: e, helperText: r, error: i, id: a, className: s = "", required: c, "aria-describedby": l, "aria-invalid": u, ...d }) {
|
|
871
914
|
let f = o(), p = a ?? f, m = C({
|
|
872
915
|
generatedId: f,
|
|
873
916
|
error: i,
|
|
@@ -905,7 +948,7 @@ function ae({ label: e, helperText: r, error: i, id: a, className: s = "", requi
|
|
|
905
948
|
});
|
|
906
949
|
}
|
|
907
950
|
// src/components/Popover/Popover.tsx
|
|
908
|
-
function
|
|
951
|
+
function fe({ label: e, onOpenChange: n, onToggle: r, className: i = "", ...a }) {
|
|
909
952
|
let o = l(!1);
|
|
910
953
|
return /* @__PURE__ */ t("div", {
|
|
911
954
|
...a,
|
|
@@ -919,16 +962,46 @@ function oe({ label: e, onOpenChange: n, onToggle: r, className: i = "", ...a })
|
|
|
919
962
|
}
|
|
920
963
|
});
|
|
921
964
|
}
|
|
965
|
+
// src/components/DropdownMenu/MenuChoice.tsx
|
|
966
|
+
function pe({ item: e, onFocus: n, onChosen: r }) {
|
|
967
|
+
let i = {
|
|
968
|
+
role: "menuitem",
|
|
969
|
+
tabIndex: -1,
|
|
970
|
+
"aria-disabled": e.disabled || void 0,
|
|
971
|
+
className: "pancake-dropdown-menu-item",
|
|
972
|
+
onFocus: n,
|
|
973
|
+
onClick: (t) => {
|
|
974
|
+
e.disabled ? t.preventDefault() : (r(), e.type === "action" && e.onSelect());
|
|
975
|
+
}
|
|
976
|
+
};
|
|
977
|
+
return e.type === "link" ? /* @__PURE__ */ t("a", {
|
|
978
|
+
...i,
|
|
979
|
+
href: e.disabled ? void 0 : e.href,
|
|
980
|
+
target: e.target,
|
|
981
|
+
rel: e.rel,
|
|
982
|
+
download: e.download,
|
|
983
|
+
children: e.label
|
|
984
|
+
}) : /* @__PURE__ */ t("button", {
|
|
985
|
+
...i,
|
|
986
|
+
type: "button",
|
|
987
|
+
children: e.label
|
|
988
|
+
});
|
|
989
|
+
}
|
|
990
|
+
// src/components/DropdownMenu/menuText.ts
|
|
991
|
+
var J = (e, t) => `${e}-text-${t}`;
|
|
992
|
+
function me(e, t, n) {
|
|
993
|
+
return [n, ...t.flatMap((t, n) => t.type === "text" ? [J(e, n)] : [])].filter(Boolean).join(" ") || void 0;
|
|
994
|
+
}
|
|
922
995
|
// src/components/DropdownMenu/menuKeyboard.ts
|
|
923
|
-
function
|
|
996
|
+
function Y(e) {
|
|
924
997
|
return Array.from(e.querySelectorAll("[role=\"menuitem\"]"));
|
|
925
998
|
}
|
|
926
|
-
var
|
|
927
|
-
function
|
|
999
|
+
var he = 500;
|
|
1000
|
+
function X(e) {
|
|
928
1001
|
let t = "", n = 0;
|
|
929
1002
|
return (r, i) => {
|
|
930
1003
|
if (r.defaultPrevented) return;
|
|
931
|
-
let a = r.currentTarget, o =
|
|
1004
|
+
let a = r.currentTarget, o = Y(a), s = o.indexOf(a.ownerDocument.activeElement), c;
|
|
932
1005
|
if (r.key === "Tab") a.hidePopover(), i?.focus();
|
|
933
1006
|
else {
|
|
934
1007
|
if (r.key === "ArrowDown") c = o[(s + 1) % o.length];
|
|
@@ -940,7 +1013,7 @@ function Z(e) {
|
|
|
940
1013
|
return;
|
|
941
1014
|
} else if (r.key.length === 1 && !r.ctrlKey && !r.metaKey && !r.altKey && r.key !== " ") {
|
|
942
1015
|
let i = e();
|
|
943
|
-
t = i - n >
|
|
1016
|
+
t = i - n > he ? r.key : t + r.key, n = i;
|
|
944
1017
|
let a = [...t].every((e) => e === t[0]) ? t[0] : t;
|
|
945
1018
|
c = o.slice(s + 1).concat(o.slice(0, s + 1)).find((e) => e.textContent?.trim().toLocaleLowerCase().startsWith(a.toLocaleLowerCase())), r.preventDefault();
|
|
946
1019
|
}
|
|
@@ -948,83 +1021,87 @@ function Z(e) {
|
|
|
948
1021
|
}
|
|
949
1022
|
};
|
|
950
1023
|
}
|
|
1024
|
+
// src/components/DropdownMenu/useMenuTrigger.ts
|
|
1025
|
+
function Z(e, t) {
|
|
1026
|
+
return {
|
|
1027
|
+
onClick: (n) => {
|
|
1028
|
+
t.onClick?.(n), !n.defaultPrevented && e.current && (n.preventDefault(), e.current.matches(":popover-open") ? e.current.hidePopover() : (n.currentTarget.focus(), e.current.showPopover({ source: n.currentTarget }), e.current.matches(":popover-open") && Y(e.current)[0]?.focus()));
|
|
1029
|
+
},
|
|
1030
|
+
onKeyDown: (n) => {
|
|
1031
|
+
if (t.onKeyDown?.(n), !n.defaultPrevented && ["ArrowDown", "ArrowUp"].includes(n.key) && (n.preventDefault(), e.current?.showPopover({ source: n.currentTarget }), e.current?.matches(":popover-open"))) {
|
|
1032
|
+
let t = Y(e.current);
|
|
1033
|
+
(n.key === "ArrowUp" ? t.at(-1) : t[0])?.focus();
|
|
1034
|
+
}
|
|
1035
|
+
}
|
|
1036
|
+
};
|
|
1037
|
+
}
|
|
951
1038
|
// src/components/DropdownMenu/DropdownMenu.tsx
|
|
952
|
-
var Q = () => Date.now();
|
|
953
|
-
function
|
|
954
|
-
let
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
1039
|
+
var Q = () => Date.now(), $ = (e) => e.type !== "text";
|
|
1040
|
+
function ge({ label: r, icon: i, items: a, triggerProps: d = {}, onOpenChange: f, onToggle: p, onKeyDown: m, ref: h, className: g = "", "aria-describedby": _, ...v }) {
|
|
1041
|
+
let y = o(), b = l(null), S = l(null), [C, w] = u(!1), T = l(!1), E = l(X(Q)), D = l(void 0), O = a.some($);
|
|
1042
|
+
c(() => {
|
|
1043
|
+
let e = b.current;
|
|
1044
|
+
e?.matches(":popover-open") && (O ? D.current !== void 0 && !a.some((e) => e.id === D.current && $(e)) && Y(e)[0]?.focus() : e.hidePopover());
|
|
1045
|
+
}, [a, O]), s(h, () => b.current, []), s(d.ref, () => S.current, []);
|
|
1046
|
+
let { onClick: k, onKeyDown: A } = Z(b, d), j = {
|
|
958
1047
|
...d,
|
|
959
|
-
ref:
|
|
1048
|
+
ref: S,
|
|
960
1049
|
type: "button",
|
|
961
|
-
disabled: d.disabled ||
|
|
962
|
-
popoverTarget:
|
|
1050
|
+
disabled: d.disabled || !O,
|
|
1051
|
+
popoverTarget: y,
|
|
963
1052
|
"aria-haspopup": "menu",
|
|
964
|
-
"aria-expanded":
|
|
965
|
-
"aria-controls":
|
|
966
|
-
onClick:
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
let t = X(y.current);
|
|
972
|
-
(e.key === "ArrowUp" ? t.at(-1) : t[0])?.focus();
|
|
973
|
-
}
|
|
974
|
-
},
|
|
1053
|
+
"aria-expanded": C,
|
|
1054
|
+
"aria-controls": y,
|
|
1055
|
+
onClick: k,
|
|
1056
|
+
onKeyDown: A
|
|
1057
|
+
};
|
|
1058
|
+
return /* @__PURE__ */ n(e, { children: [i === void 0 ? /* @__PURE__ */ t(x, {
|
|
1059
|
+
...j,
|
|
975
1060
|
children: r
|
|
1061
|
+
}) : /* @__PURE__ */ t(z, {
|
|
1062
|
+
...j,
|
|
1063
|
+
label: r,
|
|
1064
|
+
children: i
|
|
976
1065
|
}), /* @__PURE__ */ t("div", {
|
|
977
|
-
...
|
|
978
|
-
ref:
|
|
979
|
-
id:
|
|
1066
|
+
...v,
|
|
1067
|
+
ref: b,
|
|
1068
|
+
id: y,
|
|
980
1069
|
popover: "auto",
|
|
981
1070
|
role: "menu",
|
|
982
1071
|
"aria-label": r,
|
|
1072
|
+
"aria-describedby": me(y, a, _),
|
|
983
1073
|
className: `pancake-popover pancake-dropdown-menu ${g}`,
|
|
984
1074
|
onToggle: (e) => {
|
|
985
1075
|
let t = e.currentTarget.matches(":popover-open");
|
|
986
|
-
|
|
1076
|
+
w(t), t || (E.current = X(Q)), t && e.currentTarget.ownerDocument.activeElement === S.current && Y(e.currentTarget)[0]?.focus(), t !== T.current && (T.current = t, f?.(t)), p?.(e);
|
|
987
1077
|
},
|
|
988
1078
|
onKeyDown: (e) => {
|
|
989
|
-
m?.(e),
|
|
1079
|
+
m?.(e), E.current(e, S.current);
|
|
990
1080
|
},
|
|
991
|
-
children: a.map((e) => {
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
return e.type === "link" ? /* @__PURE__ */ i("a", {
|
|
1005
|
-
...t,
|
|
1006
|
-
key: e.id,
|
|
1007
|
-
href: e.disabled ? void 0 : e.href,
|
|
1008
|
-
target: e.target,
|
|
1009
|
-
rel: e.rel,
|
|
1010
|
-
download: e.download
|
|
1011
|
-
}, e.label) : /* @__PURE__ */ i("button", {
|
|
1012
|
-
...t,
|
|
1013
|
-
key: e.id,
|
|
1014
|
-
type: "button"
|
|
1015
|
-
}, e.label);
|
|
1016
|
-
})
|
|
1081
|
+
children: a.map((e, n) => e.type === "text" ? /* @__PURE__ */ t("div", {
|
|
1082
|
+
id: J(y, n),
|
|
1083
|
+
className: "pancake-dropdown-menu-text",
|
|
1084
|
+
children: e.label
|
|
1085
|
+
}, e.id) : /* @__PURE__ */ t(pe, {
|
|
1086
|
+
item: e,
|
|
1087
|
+
onFocus: () => {
|
|
1088
|
+
D.current = e.id;
|
|
1089
|
+
},
|
|
1090
|
+
onChosen: () => {
|
|
1091
|
+
b.current?.hidePopover(), S.current?.focus();
|
|
1092
|
+
}
|
|
1093
|
+
}, e.id))
|
|
1017
1094
|
})] });
|
|
1018
1095
|
}
|
|
1019
1096
|
// src/components/Tooltip/useTooltip.ts
|
|
1020
|
-
var
|
|
1021
|
-
function
|
|
1097
|
+
var _e = 150;
|
|
1098
|
+
function ve() {
|
|
1022
1099
|
let e = l(null), t = l(null), n = l(!1), r = l(!1), i = l(!1), o = l(!1), s = l(void 0), c = () => clearTimeout(s.current), u = () => {
|
|
1023
1100
|
c(), t.current?.matches(":popover-open") && t.current.hidePopover();
|
|
1024
1101
|
}, d = () => {
|
|
1025
1102
|
c(), !i.current && !o.current && e.current && t.current && t.current.showPopover({ source: e.current });
|
|
1026
1103
|
}, f = () => {
|
|
1027
|
-
c(), !n.current && !r.current && (i.current = !1, s.current = setTimeout(u,
|
|
1104
|
+
c(), !n.current && !r.current && (i.current = !1, s.current = setTimeout(u, _e));
|
|
1028
1105
|
};
|
|
1029
1106
|
return a(() => {
|
|
1030
1107
|
let n = e.current.ownerDocument, r = (e) => {
|
|
@@ -1056,8 +1133,8 @@ function $() {
|
|
|
1056
1133
|
};
|
|
1057
1134
|
}
|
|
1058
1135
|
// src/components/Tooltip/Tooltip.tsx
|
|
1059
|
-
function
|
|
1060
|
-
let p = o(), { anchor: m, panel: h, handlers: g } =
|
|
1136
|
+
function ye({ content: e, children: i, onOpenChange: a, onToggle: c, ref: u, className: d = "", ...f }) {
|
|
1137
|
+
let p = o(), { anchor: m, panel: h, handlers: g } = ve(), _ = l(!1);
|
|
1061
1138
|
return s(u, () => h.current, [h]), /* @__PURE__ */ n("span", {
|
|
1062
1139
|
ref: m,
|
|
1063
1140
|
className: "pancake-tooltip-anchor",
|
|
@@ -1082,7 +1159,7 @@ function ue({ content: e, children: i, onOpenChange: a, onToggle: c, ref: u, cla
|
|
|
1082
1159
|
});
|
|
1083
1160
|
}
|
|
1084
1161
|
// src/components/Table/Table.tsx
|
|
1085
|
-
function
|
|
1162
|
+
function be({ caption: e, children: r, className: i = "", ...a }) {
|
|
1086
1163
|
let s = o();
|
|
1087
1164
|
return /* @__PURE__ */ t("div", {
|
|
1088
1165
|
className: "pancake-table-scroll",
|
|
@@ -1100,13 +1177,13 @@ function de({ caption: e, children: r, className: i = "", ...a }) {
|
|
|
1100
1177
|
});
|
|
1101
1178
|
}
|
|
1102
1179
|
// src/components/Pagination/paginationPages.ts
|
|
1103
|
-
var
|
|
1104
|
-
function
|
|
1180
|
+
var xe = 7;
|
|
1181
|
+
function Se(e, t) {
|
|
1105
1182
|
let n = Number.isFinite(t) ? Math.min(2 ** 53 - 1, Math.max(0, Math.trunc(t))) : 0, r = n ? Math.min(n, Math.max(1, Math.trunc(Number.isFinite(e) ? e : 1))) : 0;
|
|
1106
1183
|
return {
|
|
1107
1184
|
count: n,
|
|
1108
1185
|
current: r,
|
|
1109
|
-
pages: n <=
|
|
1186
|
+
pages: n <= xe ? Array.from({ length: n }, (e, t) => t + 1) : [.../* @__PURE__ */ new Set([
|
|
1110
1187
|
1,
|
|
1111
1188
|
r - 1,
|
|
1112
1189
|
r,
|
|
@@ -1116,14 +1193,14 @@ function pe(e, t) {
|
|
|
1116
1193
|
};
|
|
1117
1194
|
}
|
|
1118
1195
|
// src/components/Pagination/Pagination.tsx
|
|
1119
|
-
function
|
|
1120
|
-
let { count: d, current: f, pages: p } =
|
|
1196
|
+
function Ce({ label: e, page: r, pageCount: i, labels: a = {}, getPageHref: o, onPageChange: s, linkProps: c, className: l = "", ...u }) {
|
|
1197
|
+
let { count: d, current: f, pages: p } = Se(r, i), m = a.page ?? ((e) => `Page ${e}`), h = a.previous ?? "Previous", g = a.next ?? "Next", _ = (e, n, r, i = !1) => {
|
|
1121
1198
|
let a = e === f;
|
|
1122
1199
|
return o ? i ? /* @__PURE__ */ t("span", {
|
|
1123
1200
|
className: "pancake-button pancake-button--secondary pancake-button--32 pancake-pagination-control pancake-pagination-unavailable",
|
|
1124
1201
|
"aria-disabled": "true",
|
|
1125
1202
|
children: n
|
|
1126
|
-
}) : /* @__PURE__ */ t(
|
|
1203
|
+
}) : /* @__PURE__ */ t(B, {
|
|
1127
1204
|
target: c?.target,
|
|
1128
1205
|
rel: c?.rel,
|
|
1129
1206
|
href: o(e),
|
|
@@ -1165,4 +1242,4 @@ function me({ label: e, page: r, pageCount: i, labels: a = {}, getPageHref: o, o
|
|
|
1165
1242
|
})
|
|
1166
1243
|
});
|
|
1167
1244
|
}
|
|
1168
|
-
export {
|
|
1245
|
+
export { re as AppHeader, P as Avatar, F as AvatarGroup, ee as BannerToast, ie as BottomNavigation, x as Button, B as ButtonLink, S as Checkbox, V as Dialog, H as DialogActions, ce as Disclosure, ge as DropdownMenu, te as EmptyState, de as FileField, z as IconButton, k as Inline, U as List, G as ListItem, ue as LoadingIndicator, Ce as Pagination, fe as Popover, le as Progress, K as RadioGroup, ne as SectionHeader, ae as SegmentedControl, R as Select, O as Stack, I as StatusChip, oe as StepProgress, b as Surface, q as Switch, be as Table, se as Tabs, j as Text, w as TextField, L as Textarea, ye as Tooltip, h as borders, d as colors, g as opacity, p as radii, m as sizing, f as spacing, y as typography };
|
package/dist/styles.css
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
2
|
-
@layer theme,base;@layer components{.pancake-button{border-radius:var(--radius-pancake-full);padding-inline:var(--spacing-pancake-12);font-family:var(--font-pancake);font-size:var(--text-pancake-body-strong);line-height:var(--tw-leading,var(--text-pancake-body-strong--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-body-strong--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-body-strong--font-weight));color:var(--color-pancake-ink);appearance:none;box-sizing:border-box;justify-content:center;align-items:center;gap:var(--spacing-pancake-8);cursor:pointer;padding-block:var(--spacing-pancake-4);text-align:center;border:0;display:inline-flex}.pancake-button--32{min-height:var(--spacing-pancake-32)}.pancake-button--36{min-height:var(--spacing-pancake-36)}.pancake-button--40{min-height:var(--spacing-pancake-40);padding-inline:var(--spacing-pancake-16)}.pancake-button--primary{background-color:var(--color-pancake-accent)}.pancake-button--secondary{background-color:var(--color-pancake-surface)}.pancake-button--destructive{background-color:var(--color-pancake-danger)}.pancake-button--ghost{background-color:var(--color-pancake-canvas)}.pancake-button--primary:hover:not(:disabled):not([aria-disabled=true]),.pancake-button--primary:active:not(:disabled):not([aria-disabled=true]){background-color:var(--color-pancake-surface-accent)}.pancake-button--secondary:hover:not(:disabled):not([aria-disabled=true]),.pancake-button--ghost:hover:not(:disabled):not([aria-disabled=true]){background-color:var(--color-pancake-surface-muted)}.pancake-button--destructive:hover:not(:disabled):not([aria-disabled=true]){background-color:var(--color-pancake-danger-hover)}.pancake-button:disabled{opacity:var(--pancake-opacity-disabled);cursor:not-allowed}.pancake-button:focus-visible{outline:var(--pancake-focus-ring-width) solid var(--color-pancake-deep);outline-offset:var(--spacing-pancake-4)}@media (forced-colors:active){.pancake-button{border:1px solid buttontext}}.pancake-checkbox:focus-visible{outline:var(--pancake-focus-ring-width) solid var(--color-pancake-control-focus);outline-offset:var(--spacing-pancake-4)}.pancake-checkbox-label{font-family:var(--font-pancake);font-size:var(--text-pancake-body);line-height:var(--tw-leading,var(--text-pancake-body--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-body--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-body--font-weight));color:var(--color-pancake-ink);align-items:center;gap:var(--spacing-pancake-8);min-height:var(--spacing-pancake-24);cursor:pointer;display:inline-flex}.pancake-checkbox-label:has(.pancake-checkbox:disabled){opacity:var(--pancake-opacity-disabled);cursor:not-allowed}.pancake-checkbox{border-radius:var(--radius-pancake-4);background-color:var(--color-pancake-surface);color:var(--color-pancake-ink);appearance:none;box-sizing:border-box;width:var(--spacing-pancake-20);height:var(--spacing-pancake-20);border:var(--pancake-border-default) solid var(--color-pancake-control-border);cursor:inherit;flex:none;place-content:center;margin:0;display:grid}.pancake-checkbox:checked{background-color:var(--color-pancake-accent)}.pancake-checkbox:checked:before{content:"";width:var(--spacing-pancake-4);height:var(--spacing-pancake-8);border:solid;border-width:0 var(--pancake-focus-ring-width) var(--pancake-focus-ring-width) 0;transform:translateY(-2px)rotate(45deg)}.pancake-checkbox:disabled{background-color:var(--color-pancake-surface-muted)}@media (forced-colors:active){.pancake-checkbox{appearance:auto}.pancake-checkbox:before{display:none}}.pancake-field{font-family:var(--font-pancake);color:var(--color-pancake-ink);width:100%;min-width:0}.pancake-field-label{font-size:var(--text-pancake-label);line-height:var(--tw-leading,var(--text-pancake-label--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-label--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-label--font-weight));color:var(--color-pancake-text-secondary);margin-bottom:var(--spacing-pancake-4);display:block}.pancake-field-input{border-radius:var(--radius-pancake-8);background-color:var(--color-pancake-surface);font-family:var(--font-pancake);font-size:var(--text-pancake-body);line-height:var(--tw-leading,var(--text-pancake-body--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-body--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-body--font-weight));color:var(--color-pancake-ink);box-sizing:border-box;width:100%;min-height:var(--spacing-pancake-40);padding:var(--spacing-pancake-8) var(--spacing-pancake-12);border:var(--pancake-border-default) solid var(--color-pancake-control-border)}.pancake-field-input::placeholder{color:var(--color-pancake-muted);opacity:1}.pancake-field-input:focus-visible{outline:var(--pancake-focus-ring-width) solid var(--color-pancake-control-focus);outline-offset:2px;border-color:var(--color-pancake-focus-ring)}.pancake-field-input[aria-invalid=true]{border-color:var(--color-pancake-error-strong);border-width:2px}.pancake-field-input:disabled{opacity:var(--pancake-opacity-disabled);cursor:not-allowed}.pancake-field-input:read-only{background:var(--color-pancake-surface-muted)}.pancake-field-description{font-size:var(--text-pancake-caption);line-height:var(--tw-leading,var(--text-pancake-caption--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-caption--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-caption--font-weight));margin:var(--spacing-pancake-4) 0 0}.pancake-stack,.pancake-inline{box-sizing:border-box;min-width:0;display:flex}.pancake-stack{flex-direction:column}.pancake-inline{flex-direction:row}.pancake-text{overflow-wrap:anywhere;margin:0}.pancake-avatar{border-radius:var(--radius-pancake-full);background-color:var(--color-pancake-info);font-family:var(--font-pancake);font-size:var(--text-pancake-label);line-height:var(--tw-leading,var(--text-pancake-label--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-label--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-label--font-weight));color:var(--color-pancake-ink);box-sizing:border-box;vertical-align:middle;flex:none;justify-content:center;align-items:center;display:inline-flex;overflow:hidden}.pancake-avatar img{object-fit:cover;width:100%;height:100%}.pancake-avatar-group{gap:var(--spacing-pancake-4);flex-wrap:wrap;margin:0;padding:0;list-style:none;display:flex}.pancake-avatar-group li{display:flex}.pancake-avatar-overflow{background-color:var(--color-pancake-surface-muted)}.pancake-status-chip{border-radius:var(--radius-pancake-full);font-family:var(--font-pancake);font-size:var(--text-pancake-label);line-height:var(--tw-leading,var(--text-pancake-label--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-label--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-label--font-weight));color:var(--color-pancake-ink);box-sizing:border-box;min-height:var(--spacing-pancake-24);padding:var(--spacing-pancake-4) var(--spacing-pancake-8);overflow-wrap:anywhere;justify-content:center;align-items:center;display:inline-flex}.pancake-tone-neutral{background-color:var(--color-pancake-surface-muted)}.pancake-tone-success{background-color:var(--color-pancake-surface-accent)}.pancake-tone-warning{background-color:var(--color-pancake-warning)}.pancake-tone-danger{background-color:var(--color-pancake-danger)}.pancake-tone-info{background-color:var(--color-pancake-info)}.pancake-banner{border-radius:var(--radius-pancake-12);font-family:var(--font-pancake);color:var(--color-pancake-ink);box-sizing:border-box;align-items:center;gap:var(--spacing-pancake-8);padding:var(--spacing-pancake-8) var(--spacing-pancake-12);min-height:var(--spacing-pancake-48);width:100%;display:flex}.pancake-banner-copy{overflow-wrap:anywhere;flex:1;min-width:0}.pancake-banner-title{font-size:var(--text-pancake-body-strong);line-height:var(--tw-leading,var(--text-pancake-body-strong--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-body-strong--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-body-strong--font-weight));display:block}.pancake-banner-description{font-size:var(--text-pancake-caption);line-height:var(--tw-leading,var(--text-pancake-caption--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-caption--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-caption--font-weight));color:var(--color-pancake-text-secondary)}.pancake-banner-dismiss{border-radius:var(--radius-pancake-full);font-family:var(--font-pancake);color:var(--color-pancake-ink);cursor:pointer;min-width:var(--spacing-pancake-32);min-height:var(--spacing-pancake-32);background:0 0;border:none;flex:none;font-size:24px}.pancake-banner-dismiss:hover{background-color:var(--color-pancake-surface)}.pancake-banner-dismiss:focus-visible{outline:var(--pancake-focus-ring-width) solid var(--color-pancake-deep);outline-offset:2px}.pancake-empty-state{font-family:var(--font-pancake);color:var(--color-pancake-ink);text-align:center;padding:var(--spacing-pancake-24);overflow-wrap:anywhere}.pancake-empty-icon{margin-bottom:var(--spacing-pancake-12)}.pancake-empty-title{font-size:var(--text-pancake-heading);line-height:var(--tw-leading,var(--text-pancake-heading--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-heading--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-heading--font-weight));margin:0}.pancake-empty-description{font-size:var(--text-pancake-body);line-height:var(--tw-leading,var(--text-pancake-body--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-body--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-body--font-weight));color:var(--color-pancake-text-secondary);margin-top:var(--spacing-pancake-4)}.pancake-empty-action{margin-top:var(--spacing-pancake-16)}.pancake-section-header,.pancake-app-header{font-family:var(--font-pancake);color:var(--color-pancake-ink);justify-content:space-between;align-items:center;gap:var(--spacing-pancake-12);min-height:var(--spacing-pancake-36);flex-wrap:wrap;display:flex}.pancake-app-header{border-radius:var(--radius-pancake-16);background-color:var(--color-pancake-canvas);min-height:var(--spacing-pancake-64);padding:var(--spacing-pancake-12) var(--spacing-pancake-16);box-sizing:border-box}.pancake-header-copy{overflow-wrap:anywhere;flex:160px;min-width:0}.pancake-section-title{font-size:var(--text-pancake-heading);line-height:var(--tw-leading,var(--text-pancake-heading--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-heading--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-heading--font-weight));margin:0}.pancake-app-title{font-size:var(--text-pancake-title);line-height:var(--tw-leading,var(--text-pancake-title--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-title--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-title--font-weight));margin:0}.pancake-header-description{font-size:var(--text-pancake-body);line-height:var(--tw-leading,var(--text-pancake-body--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-body--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-body--font-weight));color:var(--color-pancake-text-secondary);margin:var(--spacing-pancake-4) 0 0}.pancake-header-action{flex:0 auto;max-width:100%}.pancake-bottom-navigation{border-radius:var(--radius-pancake-full);background-color:var(--color-pancake-surface);font-family:var(--font-pancake);color:var(--color-pancake-ink);border:var(--pancake-border-default) solid var(--color-pancake-border)}.pancake-bottom-navigation ul{box-sizing:border-box;padding:var(--spacing-pancake-4);gap:var(--spacing-pancake-4);flex-wrap:wrap;margin:0;list-style:none;display:flex}.pancake-bottom-navigation li{flex:80px;min-width:0;display:flex}.pancake-bottom-navigation a{border-radius:var(--radius-pancake-12);font-size:var(--text-pancake-label);line-height:var(--tw-leading,var(--text-pancake-label--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-label--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-label--font-weight));color:var(--color-pancake-text-secondary);justify-content:center;align-items:center;gap:var(--spacing-pancake-4);padding:var(--spacing-pancake-4) var(--spacing-pancake-8);min-height:var(--spacing-pancake-40);box-sizing:border-box;text-align:center;overflow-wrap:anywhere;flex-direction:column;flex:1;text-decoration:none;display:flex}.pancake-bottom-navigation a[aria-current=page]{background-color:var(--color-pancake-accent);color:var(--color-pancake-ink)}.pancake-bottom-navigation a:hover{text-decoration:underline}.pancake-bottom-navigation a:focus-visible{outline:var(--pancake-focus-ring-width) solid var(--color-pancake-deep);outline-offset:2px}.pancake-segmented-control{font-family:var(--font-pancake);color:var(--color-pancake-ink);border:0;min-width:0;margin:0;padding:0}.pancake-segmented-control legend{font-size:var(--text-pancake-label);line-height:var(--tw-leading,var(--text-pancake-label--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-label--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-label--font-weight));margin-bottom:var(--spacing-pancake-4);padding:0}.pancake-segments{border-radius:var(--radius-pancake-20);background-color:var(--color-pancake-surface-muted);gap:var(--spacing-pancake-4);padding:var(--spacing-pancake-4);flex-wrap:wrap;display:flex}.pancake-segment{cursor:pointer;flex:80px;min-width:0;display:flex;position:relative}.pancake-segment input{opacity:0;width:100%;height:100%;cursor:inherit;margin:0;position:absolute;inset:0}.pancake-segment>span{border-radius:var(--radius-pancake-20);font-size:var(--text-pancake-body-strong);line-height:var(--tw-leading,var(--text-pancake-body-strong--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-body-strong--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-body-strong--font-weight));box-sizing:border-box;width:100%;min-height:var(--spacing-pancake-32);padding:var(--spacing-pancake-4) var(--spacing-pancake-12);text-align:center;overflow-wrap:anywhere;border:var(--pancake-border-default) solid transparent;justify-content:center;align-items:center;display:flex}.pancake-segment input:checked+span{text-underline-offset:var(--spacing-pancake-4);background-color:var(--color-pancake-surface);text-decoration:underline}.pancake-segment input:focus-visible+span{outline:var(--pancake-focus-ring-width) solid var(--color-pancake-deep);outline-offset:2px}.pancake-segment input:disabled{cursor:not-allowed}.pancake-segment input:disabled+span{opacity:var(--pancake-opacity-disabled)}.pancake-step-progress{font-family:var(--font-pancake);font-size:var(--text-pancake-label);line-height:var(--tw-leading,var(--text-pancake-label--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-label--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-label--font-weight));color:var(--color-pancake-ink);gap:var(--spacing-pancake-12);flex-wrap:wrap;margin:0;padding:0;list-style:none;display:flex}.pancake-step-progress li{align-items:center;gap:var(--spacing-pancake-8);overflow-wrap:anywhere;min-width:0;display:flex}.pancake-step-number{border-radius:var(--radius-pancake-full);background-color:var(--color-pancake-surface-muted);width:var(--spacing-pancake-24);height:var(--spacing-pancake-24);flex:none;place-items:center;display:grid}.pancake-step-progress [data-complete] .pancake-step-number{background-color:var(--color-pancake-accent)}.pancake-step-progress [aria-current=step] .pancake-step-number{outline:var(--pancake-focus-ring-width) solid var(--color-pancake-deep)}.pancake-navigation-sr-only{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}@media (forced-colors:active){.pancake-segment input:checked+span{border:2px solid highlight}.pancake-bottom-navigation a[aria-current=page]{outline:2px solid highlight}}.pancake-surface{border-radius:var(--radius-pancake-16);background-color:var(--color-pancake-surface);padding:var(--spacing-pancake-16);font-family:var(--font-pancake);color:var(--color-pancake-ink);box-sizing:border-box}.pancake-textarea{resize:vertical;display:block}.pancake-select-control{position:relative}.pancake-select{appearance:none;padding-inline-end:var(--spacing-pancake-32)}.pancake-select:read-only{background:var(--color-pancake-surface)}.pancake-select-control .pancake-select:disabled+.pancake-select-chevron{opacity:var(--pancake-opacity-disabled)}.pancake-select-chevron{pointer-events:none;inset-inline-end:var(--spacing-pancake-12);align-items:center;display:flex;position:absolute;top:0;bottom:0}.pancake-icon-button{flex-shrink:0;padding:0}.pancake-icon-button.pancake-button--32{width:var(--spacing-pancake-32);height:var(--spacing-pancake-32)}.pancake-icon-button.pancake-button--36{width:var(--spacing-pancake-36);height:var(--spacing-pancake-36)}.pancake-icon-button.pancake-button--40{width:var(--spacing-pancake-40);height:var(--spacing-pancake-40)}.pancake-icon-button-icon{width:var(--spacing-pancake-20);height:var(--spacing-pancake-20);justify-content:center;align-items:center;display:inline-flex}.pancake-button-link{overflow-wrap:anywhere;max-width:100%;text-decoration:none}.pancake-dialog{border-radius:var(--radius-pancake-16);background-color:var(--color-pancake-surface);font-family:var(--font-pancake);color:var(--color-pancake-ink);box-sizing:border-box;width:calc(100% - var(--spacing-pancake-32));max-width:var(--spacing-pancake-480);max-height:calc(100% - var(--spacing-pancake-32));padding:var(--spacing-pancake-20);border:var(--pancake-border-default) solid var(--color-pancake-border);overflow-wrap:anywhere;overflow:auto}.pancake-dialog::backdrop{background:var(--color-pancake-deep);opacity:var(--pancake-opacity-overlay)}.pancake-radio-group{font-family:var(--font-pancake);font-size:var(--text-pancake-body);line-height:var(--tw-leading,var(--text-pancake-body--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-body--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-body--font-weight));color:var(--color-pancake-ink);border:0;min-width:0;margin:0;padding:0}.pancake-radio-legend{font-size:var(--text-pancake-label);line-height:var(--tw-leading,var(--text-pancake-label--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-label--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-label--font-weight));margin-bottom:var(--spacing-pancake-4);padding:0}.pancake-radio-options{gap:var(--spacing-pancake-4);display:grid}.pancake-radio-option{align-items:center;gap:var(--spacing-pancake-4);min-height:var(--spacing-pancake-28);cursor:pointer;display:flex}.pancake-radio-input{border-radius:var(--radius-pancake-full);background-color:var(--color-pancake-surface);appearance:none;box-sizing:border-box;border:var(--pancake-border-default) solid var(--color-pancake-control-border);width:var(--spacing-pancake-16);height:var(--spacing-pancake-16);margin:var(--spacing-pancake-4);cursor:inherit;flex:none;place-content:center;display:grid}.pancake-radio-input:checked{background-color:var(--color-pancake-accent)}.pancake-radio-input:checked:before{border-radius:var(--radius-pancake-full);background-color:var(--color-pancake-deep);content:"";width:var(--spacing-pancake-8);height:var(--spacing-pancake-8)}.pancake-radio-input:focus{outline:var(--pancake-focus-ring-width) solid var(--color-pancake-control-focus);outline-offset:var(--spacing-pancake-4)}.pancake-radio-option:has(.pancake-radio-input:disabled){opacity:var(--pancake-opacity-disabled);cursor:not-allowed}.pancake-radio-copy{overflow-wrap:anywhere;min-width:0;display:grid}.pancake-radio-description{font-size:var(--text-pancake-caption);line-height:var(--tw-leading,var(--text-pancake-caption--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-caption--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-caption--font-weight));color:var(--color-pancake-muted);display:block}@media (forced-colors:active){.pancake-radio-input{appearance:auto}.pancake-radio-input:before{display:none}}.pancake-switch-label{font-family:var(--font-pancake);font-size:var(--text-pancake-body);line-height:var(--tw-leading,var(--text-pancake-body--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-body--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-body--font-weight));color:var(--color-pancake-ink);align-items:center;gap:var(--spacing-pancake-8);cursor:pointer;display:inline-flex}.pancake-switch{border-radius:var(--radius-pancake-full);background-color:var(--color-pancake-surface-muted);appearance:none;box-sizing:border-box;width:var(--spacing-pancake-40);height:var(--spacing-pancake-24);border:var(--pancake-border-default) solid var(--color-pancake-control-border);cursor:inherit;flex:none;margin:0;position:relative}.pancake-switch:before{border-radius:var(--radius-pancake-full);background-color:var(--color-pancake-deep);content:"";width:var(--spacing-pancake-16);height:var(--spacing-pancake-16);position:absolute;inset-block-start:calc(var(--spacing-pancake-4) - var(--pancake-border-default));inset-inline-start:calc(var(--spacing-pancake-4) - var(--pancake-border-default))}.pancake-switch:checked{background-color:var(--color-pancake-accent)}.pancake-switch:checked:before{inset-inline-start:calc(var(--spacing-pancake-20) - var(--pancake-border-default))}.pancake-switch:focus-visible{outline:var(--pancake-focus-ring-width) solid var(--color-pancake-control-focus);outline-offset:var(--spacing-pancake-4)}.pancake-switch-label:has(.pancake-switch:disabled){opacity:var(--pancake-opacity-disabled);cursor:not-allowed}@media (forced-colors:active){.pancake-switch{appearance:auto}.pancake-switch:before{display:none}}.pancake-tabs{font-family:var(--font-pancake);font-size:var(--text-pancake-body);line-height:var(--tw-leading,var(--text-pancake-body--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-body--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-body--font-weight));color:var(--color-pancake-ink);min-width:0}.pancake-tabs-list{gap:var(--spacing-pancake-4);padding:var(--spacing-pancake-4);flex-wrap:wrap;display:flex}.pancake-tabs-list--vertical{flex-direction:column;align-items:stretch}.pancake-tabs-list--vertical .pancake-tabs-tab{text-align:start}.pancake-tabs-tab{border-radius:var(--radius-pancake-8);background-color:var(--color-pancake-transparent);font-family:var(--font-pancake);font-size:var(--text-pancake-body-strong);line-height:var(--tw-leading,var(--text-pancake-body-strong--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-body-strong--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-body-strong--font-weight));color:var(--color-pancake-text-secondary);min-height:var(--spacing-pancake-36);min-width:0;max-width:100%;padding:var(--spacing-pancake-4) var(--spacing-pancake-12);border:var(--pancake-border-default) solid transparent;cursor:pointer;overflow-wrap:anywhere}.pancake-tabs-tab[aria-selected=false]:hover:not(:disabled){background-color:var(--color-pancake-canvas);color:var(--color-pancake-ink)}.pancake-tabs-tab[aria-selected=true]{background-color:var(--color-pancake-surface-muted);color:var(--color-pancake-ink)}.pancake-tabs-tab:disabled{opacity:var(--pancake-opacity-disabled);cursor:not-allowed}.pancake-tabs-tab:focus-visible,.pancake-tabs-panel:focus-visible{outline:var(--pancake-focus-ring-width) solid var(--color-pancake-deep);outline-offset:var(--spacing-pancake-4)}@media (forced-colors:active){.pancake-tabs-tab[aria-selected=true]{text-underline-offset:var(--spacing-pancake-4);text-decoration:underline}}.pancake-tabs-panel{padding:var(--spacing-pancake-12) var(--spacing-pancake-4);overflow-wrap:anywhere}.pancake-disclosure{border-radius:var(--radius-pancake-12);background-color:var(--color-pancake-surface);font-family:var(--font-pancake);font-size:var(--text-pancake-body);line-height:var(--tw-leading,var(--text-pancake-body--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-body--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-body--font-weight));color:var(--color-pancake-ink);border:var(--pancake-border-default) solid var(--color-pancake-border);overflow-wrap:anywhere;min-width:0}.pancake-disclosure-summary{font-size:var(--text-pancake-body-strong);line-height:var(--tw-leading,var(--text-pancake-body-strong--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-body-strong--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-body-strong--font-weight));padding:var(--spacing-pancake-8) var(--spacing-pancake-12);cursor:pointer}.pancake-disclosure-summary:focus-visible{outline:var(--pancake-focus-ring-width) solid var(--color-pancake-control-focus);outline-offset:var(--spacing-pancake-4)}.pancake-disclosure-content{padding:0 var(--spacing-pancake-12) var(--spacing-pancake-12)}.pancake-progress-field{gap:var(--spacing-pancake-4);min-width:0;display:grid}.pancake-progress-label{font-family:var(--font-pancake);font-size:var(--text-pancake-label);line-height:var(--tw-leading,var(--text-pancake-label--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-label--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-label--font-weight));color:var(--color-pancake-ink);overflow-wrap:anywhere}.pancake-progress{width:100%;height:var(--spacing-pancake-8);accent-color:var(--color-pancake-deep)}.pancake-loading-indicator{font-family:var(--font-pancake);font-size:var(--text-pancake-body);line-height:var(--tw-leading,var(--text-pancake-body--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-body--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-body--font-weight));color:var(--color-pancake-ink);align-items:center;gap:var(--spacing-pancake-8);overflow-wrap:anywhere;display:flex}.pancake-loading-dots{gap:var(--spacing-pancake-4);flex-shrink:0;display:inline-flex}.pancake-loading-dot{border-radius:var(--radius-pancake-full);width:var(--spacing-pancake-4);height:var(--spacing-pancake-4);background:currentColor}.pancake-file-field{min-width:0;padding-block:var(--spacing-pancake-4)}.pancake-file-field:read-only{background:var(--color-pancake-surface)}.pancake-file-field::file-selector-button{border-radius:var(--radius-pancake-full);font-family:var(--font-pancake);font-size:var(--text-pancake-label);line-height:var(--tw-leading,var(--text-pancake-label--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-label--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-label--font-weight));color:var(--color-pancake-ink);background:var(--color-pancake-surface-muted);padding:var(--spacing-pancake-4) var(--spacing-pancake-8);cursor:pointer;border:none;margin-inline-end:var(--spacing-pancake-8)}.pancake-file-field:disabled::file-selector-button{cursor:not-allowed}.pancake-popover{border-radius:var(--radius-pancake-16);background-color:var(--color-pancake-surface);font-family:var(--font-pancake);color:var(--color-pancake-ink);box-sizing:border-box;position-anchor:auto;position-area:block-end;position-try-fallbacks:flip-block;position-try-order:most-height;margin:var(--spacing-pancake-8);width:var(--spacing-pancake-320);max-width:calc(100% - var(--spacing-pancake-32));max-height:calc(100% - var(--spacing-pancake-32));padding:var(--spacing-pancake-16);border:var(--pancake-border-default) solid var(--color-pancake-border);overflow-wrap:anywhere;position:fixed;inset:auto;overflow:auto}.pancake-dropdown-menu{border-radius:var(--radius-pancake-12);padding:var(--spacing-pancake-4)}.pancake-dropdown-menu-item{border-radius:var(--radius-pancake-8);background-color:var(--color-pancake-transparent);font-family:var(--font-pancake);font-size:var(--text-pancake-body);line-height:var(--tw-leading,var(--text-pancake-body--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-body--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-body--font-weight));color:var(--color-pancake-ink);box-sizing:border-box;width:100%;min-height:var(--spacing-pancake-36);padding:var(--spacing-pancake-8);border:var(--spacing-pancake-0);text-align:start;overflow-wrap:anywhere;cursor:pointer;text-decoration:none;display:block}.pancake-dropdown-menu-item:focus-visible{outline:var(--pancake-focus-ring-width) solid var(--color-pancake-deep);outline-offset:var(--pancake-focus-ring-width)}.pancake-dropdown-menu-item:hover{background-color:var(--color-pancake-surface-muted)}.pancake-dropdown-menu-item[aria-disabled=true]{opacity:var(--pancake-opacity-disabled);cursor:default}.pancake-tooltip-anchor{align-self:flex-start;display:inline-flex}.pancake-tooltip{border-radius:var(--radius-pancake-8);font-size:var(--text-pancake-caption);line-height:var(--tw-leading,var(--text-pancake-caption--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-caption--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-caption--font-weight));width:max-content;max-width:min(var(--spacing-pancake-320), calc(100% - var(--spacing-pancake-32)));padding:var(--spacing-pancake-4) var(--spacing-pancake-8);margin:0}.pancake-table-scroll{min-width:0;max-width:100%;overflow:auto}.pancake-table-scroll:focus-visible{outline:var(--pancake-focus-ring-width) solid var(--color-pancake-deep);outline-offset:var(--pancake-focus-ring-width)}.pancake-table{background-color:var(--color-pancake-surface);font-family:var(--font-pancake);font-size:var(--text-pancake-body);line-height:var(--tw-leading,var(--text-pancake-body--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-body--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-body--font-weight));color:var(--color-pancake-ink);border-collapse:collapse;text-align:start;width:100%}.pancake-table>caption{font-size:var(--text-pancake-heading);line-height:var(--tw-leading,var(--text-pancake-heading--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-heading--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-heading--font-weight));padding-block:var(--spacing-pancake-12);text-align:start}.pancake-table>thead{background-color:var(--color-pancake-surface-muted)}.pancake-table>thead>tr>th,.pancake-table>tbody>tr>th,.pancake-table>tfoot>tr>th{font-size:var(--text-pancake-label);line-height:var(--tw-leading,var(--text-pancake-label--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-label--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-label--font-weight));text-align:start}.pancake-table>thead>tr>th,.pancake-table>thead>tr>td,.pancake-table>tbody>tr>th,.pancake-table>tbody>tr>td,.pancake-table>tfoot>tr>th,.pancake-table>tfoot>tr>td{min-width:var(--spacing-pancake-112);padding:var(--spacing-pancake-8) var(--spacing-pancake-12);border-bottom:var(--pancake-border-default) solid var(--color-pancake-border);vertical-align:top}.pancake-pagination{font-family:var(--font-pancake);font-size:var(--text-pancake-body);line-height:var(--tw-leading,var(--text-pancake-body--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-body--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-body--font-weight));color:var(--color-pancake-ink);min-width:0}.pancake-pagination-list{align-items:center;gap:var(--spacing-pancake-4);flex-wrap:wrap;margin:0;padding:0;list-style:none;display:flex}.pancake-pagination-list>li{min-width:0;max-width:100%;display:flex}.pancake-pagination-control{min-width:var(--spacing-pancake-32);max-width:100%;padding-inline:var(--spacing-pancake-8);overflow-wrap:anywhere}.pancake-pagination-unavailable{opacity:var(--pancake-opacity-disabled);cursor:default}.pancake-pagination-gap{padding-inline:var(--spacing-pancake-4)}}@layer utilities;:root,:host{--color-pancake-accent:#ade533;--color-pancake-accent-disabled-layer:#ade533cc;--color-pancake-border:#edede8;--color-pancake-canvas:#fbf8f0;--color-pancake-control-border:#7e8c70;--color-pancake-control-focus:#647a45;--color-pancake-error-strong:#a34c3e;--color-pancake-danger:#ffd6d6;--color-pancake-danger-hover:#ffc2c2;--color-pancake-deep:#384540;--color-pancake-info:#d6edfa;--color-pancake-ink:#0e1716;--color-pancake-muted:#636b6e;--color-pancake-olive:#636657;--color-pancake-surface:#fff;--color-pancake-surface-accent:#d1f28a;--color-pancake-surface-muted:#f0f0eb;--color-pancake-text-secondary:#3b4742;--color-pancake-transparent:transparent;--color-pancake-warning:#ffeb9e;--color-pancake-focus-ring:#ade533;--spacing-pancake-0:0px;--spacing-pancake-4:4px;--spacing-pancake-8:8px;--spacing-pancake-12:12px;--spacing-pancake-16:16px;--spacing-pancake-20:20px;--spacing-pancake-24:24px;--spacing-pancake-28:28px;--spacing-pancake-32:32px;--spacing-pancake-36:36px;--spacing-pancake-40:40px;--spacing-pancake-44:44px;--spacing-pancake-48:48px;--spacing-pancake-52:52px;--spacing-pancake-56:56px;--spacing-pancake-64:64px;--spacing-pancake-72:72px;--spacing-pancake-76:76px;--spacing-pancake-80:80px;--spacing-pancake-88:88px;--spacing-pancake-92:92px;--spacing-pancake-104:104px;--spacing-pancake-112:112px;--spacing-pancake-320:320px;--spacing-pancake-480:480px;--spacing-pancake-560:560px;--radius-pancake-4:4px;--radius-pancake-12:12px;--radius-pancake-16:16px;--radius-pancake-20:20px;--radius-pancake-28:28px;--radius-pancake-36:36px;--radius-pancake-8:8px;--radius-pancake-full:999px;--font-pancake:Inter, sans-serif;--text-pancake-body:14px;--text-pancake-body--line-height:20px;--text-pancake-body--font-weight:400;--text-pancake-body--letter-spacing:0px;--text-pancake-body-strong:14px;--text-pancake-body-strong--line-height:20px;--text-pancake-body-strong--font-weight:600;--text-pancake-body-strong--letter-spacing:0px;--text-pancake-caption:12px;--text-pancake-caption--line-height:16px;--text-pancake-caption--font-weight:400;--text-pancake-caption--letter-spacing:0px;--text-pancake-display:28px;--text-pancake-display--line-height:36px;--text-pancake-display--font-weight:700;--text-pancake-display--letter-spacing:0px;--text-pancake-heading:18px;--text-pancake-heading--line-height:24px;--text-pancake-heading--font-weight:700;--text-pancake-heading--letter-spacing:0px;--text-pancake-label:12px;--text-pancake-label--line-height:16px;--text-pancake-label--font-weight:600;--text-pancake-label--letter-spacing:0px;--text-pancake-micro:10px;--text-pancake-micro--line-height:12px;--text-pancake-micro--font-weight:600;--text-pancake-micro--letter-spacing:0px;--text-pancake-section:20px;--text-pancake-section--line-height:28px;--text-pancake-section--font-weight:700;--text-pancake-section--letter-spacing:0px;--text-pancake-title:24px;--text-pancake-title--line-height:32px;--text-pancake-title--font-weight:700;--text-pancake-title--letter-spacing:0px;--pancake-border-default:1px;--pancake-focus-ring-width:2px;--pancake-opacity-disabled:.4;--pancake-opacity-overlay:.5}
|
|
2
|
+
@layer theme,base;@layer components{.pancake-button{border-radius:var(--radius-pancake-full);padding-inline:var(--spacing-pancake-12);font-family:var(--font-pancake);font-size:var(--text-pancake-body-strong);line-height:var(--tw-leading,var(--text-pancake-body-strong--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-body-strong--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-body-strong--font-weight));color:var(--color-pancake-ink);appearance:none;box-sizing:border-box;justify-content:center;align-items:center;gap:var(--spacing-pancake-8);cursor:pointer;padding-block:var(--spacing-pancake-4);text-align:center;border:0;display:inline-flex}.pancake-button--32{min-height:var(--spacing-pancake-32)}.pancake-button--36{min-height:var(--spacing-pancake-36)}.pancake-button--40{min-height:var(--spacing-pancake-40);padding-inline:var(--spacing-pancake-16)}.pancake-button--primary{background-color:var(--color-pancake-accent)}.pancake-button--secondary{background-color:var(--color-pancake-surface)}.pancake-button--destructive{background-color:var(--color-pancake-danger)}.pancake-button--ghost{background-color:var(--color-pancake-canvas)}.pancake-button--primary:hover:not(:disabled):not([aria-disabled=true]),.pancake-button--primary:active:not(:disabled):not([aria-disabled=true]){background-color:var(--color-pancake-surface-accent)}.pancake-button--secondary:hover:not(:disabled):not([aria-disabled=true]),.pancake-button--ghost:hover:not(:disabled):not([aria-disabled=true]){background-color:var(--color-pancake-surface-muted)}.pancake-button--destructive:hover:not(:disabled):not([aria-disabled=true]){background-color:var(--color-pancake-danger-hover)}.pancake-button:disabled{opacity:var(--pancake-opacity-disabled);cursor:not-allowed}.pancake-button:focus-visible{outline:var(--pancake-focus-ring-width) solid var(--color-pancake-deep);outline-offset:var(--spacing-pancake-4)}@media (forced-colors:active){.pancake-button{border:1px solid buttontext}}.pancake-checkbox:focus-visible{outline:var(--pancake-focus-ring-width) solid var(--color-pancake-control-focus);outline-offset:var(--spacing-pancake-4)}.pancake-checkbox-label{font-family:var(--font-pancake);font-size:var(--text-pancake-body);line-height:var(--tw-leading,var(--text-pancake-body--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-body--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-body--font-weight));color:var(--color-pancake-ink);align-items:center;gap:var(--spacing-pancake-8);min-height:var(--spacing-pancake-24);cursor:pointer;display:inline-flex}.pancake-checkbox-label:has(.pancake-checkbox:disabled){opacity:var(--pancake-opacity-disabled);cursor:not-allowed}.pancake-checkbox{border-radius:var(--radius-pancake-4);background-color:var(--color-pancake-surface);color:var(--color-pancake-ink);appearance:none;box-sizing:border-box;width:var(--spacing-pancake-20);height:var(--spacing-pancake-20);border:var(--pancake-border-default) solid var(--color-pancake-control-border);cursor:inherit;flex:none;place-content:center;margin:0;display:grid}.pancake-checkbox:checked{background-color:var(--color-pancake-accent)}.pancake-checkbox:checked:before{content:"";width:var(--spacing-pancake-4);height:var(--spacing-pancake-8);border:solid;border-width:0 var(--pancake-focus-ring-width) var(--pancake-focus-ring-width) 0;transform:translateY(-2px)rotate(45deg)}.pancake-checkbox:disabled{background-color:var(--color-pancake-surface-muted)}@media (forced-colors:active){.pancake-checkbox{appearance:auto}.pancake-checkbox:before{display:none}}.pancake-field{font-family:var(--font-pancake);color:var(--color-pancake-ink);width:100%;min-width:0}.pancake-field-label{font-size:var(--text-pancake-label);line-height:var(--tw-leading,var(--text-pancake-label--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-label--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-label--font-weight));color:var(--color-pancake-text-secondary);margin-bottom:var(--spacing-pancake-4);display:block}.pancake-field-input{border-radius:var(--radius-pancake-8);background-color:var(--color-pancake-surface);font-family:var(--font-pancake);font-size:var(--text-pancake-body);line-height:var(--tw-leading,var(--text-pancake-body--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-body--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-body--font-weight));color:var(--color-pancake-ink);box-sizing:border-box;width:100%;min-height:var(--spacing-pancake-40);padding:var(--spacing-pancake-8) var(--spacing-pancake-12);border:var(--pancake-border-default) solid var(--color-pancake-control-border)}.pancake-field-input::placeholder{color:var(--color-pancake-muted);opacity:1}.pancake-field-input:focus-visible{outline:var(--pancake-focus-ring-width) solid var(--color-pancake-control-focus);outline-offset:2px;border-color:var(--color-pancake-focus-ring)}.pancake-field-input[aria-invalid=true]{border-color:var(--color-pancake-error-strong);border-width:2px}.pancake-field-input:disabled{opacity:var(--pancake-opacity-disabled);cursor:not-allowed}.pancake-field-input:read-only{background:var(--color-pancake-surface-muted)}.pancake-field-description{font-size:var(--text-pancake-caption);line-height:var(--tw-leading,var(--text-pancake-caption--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-caption--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-caption--font-weight));margin:var(--spacing-pancake-4) 0 0}.pancake-stack,.pancake-inline{box-sizing:border-box;min-width:0;display:flex}.pancake-stack{flex-direction:column}.pancake-inline{flex-direction:row}.pancake-text{overflow-wrap:anywhere;margin:0}.pancake-avatar{border-radius:var(--radius-pancake-full);background-color:var(--color-pancake-info);font-family:var(--font-pancake);font-size:var(--text-pancake-label);line-height:var(--tw-leading,var(--text-pancake-label--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-label--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-label--font-weight));color:var(--color-pancake-ink);box-sizing:border-box;vertical-align:middle;flex:none;justify-content:center;align-items:center;display:inline-flex;overflow:hidden}.pancake-avatar img{object-fit:cover;width:100%;height:100%}.pancake-avatar-group{gap:var(--spacing-pancake-4);flex-wrap:wrap;margin:0;padding:0;list-style:none;display:flex}.pancake-avatar-group li{display:flex}.pancake-avatar-overflow{background-color:var(--color-pancake-surface-muted)}.pancake-status-chip{border-radius:var(--radius-pancake-full);font-family:var(--font-pancake);font-size:var(--text-pancake-label);line-height:var(--tw-leading,var(--text-pancake-label--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-label--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-label--font-weight));color:var(--color-pancake-ink);box-sizing:border-box;min-height:var(--spacing-pancake-24);padding:var(--spacing-pancake-4) var(--spacing-pancake-8);overflow-wrap:anywhere;justify-content:center;align-items:center;display:inline-flex}.pancake-tone-neutral{background-color:var(--color-pancake-surface-muted)}.pancake-tone-success{background-color:var(--color-pancake-surface-accent)}.pancake-tone-warning{background-color:var(--color-pancake-warning)}.pancake-tone-danger{background-color:var(--color-pancake-danger)}.pancake-tone-info{background-color:var(--color-pancake-info)}.pancake-banner{border-radius:var(--radius-pancake-12);font-family:var(--font-pancake);color:var(--color-pancake-ink);box-sizing:border-box;align-items:center;gap:var(--spacing-pancake-8);padding:var(--spacing-pancake-8) var(--spacing-pancake-12);min-height:var(--spacing-pancake-48);width:100%;display:flex}.pancake-banner-copy{overflow-wrap:anywhere;flex:1;min-width:0}.pancake-banner-title{font-size:var(--text-pancake-body-strong);line-height:var(--tw-leading,var(--text-pancake-body-strong--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-body-strong--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-body-strong--font-weight));display:block}.pancake-banner-description{font-size:var(--text-pancake-caption);line-height:var(--tw-leading,var(--text-pancake-caption--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-caption--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-caption--font-weight));color:var(--color-pancake-text-secondary)}.pancake-banner-dismiss{border-radius:var(--radius-pancake-full);font-family:var(--font-pancake);color:var(--color-pancake-ink);cursor:pointer;min-width:var(--spacing-pancake-32);min-height:var(--spacing-pancake-32);background:0 0;border:none;flex:none;font-size:24px}.pancake-banner-dismiss:hover{background-color:var(--color-pancake-surface)}.pancake-banner-dismiss:focus-visible{outline:var(--pancake-focus-ring-width) solid var(--color-pancake-deep);outline-offset:2px}.pancake-empty-state{font-family:var(--font-pancake);color:var(--color-pancake-ink);text-align:center;padding:var(--spacing-pancake-24);overflow-wrap:anywhere}.pancake-empty-icon{margin-bottom:var(--spacing-pancake-12)}.pancake-empty-title{font-size:var(--text-pancake-heading);line-height:var(--tw-leading,var(--text-pancake-heading--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-heading--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-heading--font-weight));margin:0}.pancake-empty-description{font-size:var(--text-pancake-body);line-height:var(--tw-leading,var(--text-pancake-body--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-body--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-body--font-weight));color:var(--color-pancake-text-secondary);margin-top:var(--spacing-pancake-4)}.pancake-empty-action{margin-top:var(--spacing-pancake-16)}.pancake-section-header,.pancake-app-header{font-family:var(--font-pancake);color:var(--color-pancake-ink);justify-content:space-between;align-items:center;gap:var(--spacing-pancake-12);min-height:var(--spacing-pancake-36);flex-wrap:wrap;display:flex}.pancake-app-header{border-radius:var(--radius-pancake-16);background-color:var(--color-pancake-canvas);min-height:var(--spacing-pancake-64);padding:var(--spacing-pancake-12) var(--spacing-pancake-16);box-sizing:border-box}.pancake-header-copy{overflow-wrap:anywhere;flex:160px;min-width:0}.pancake-section-title{font-size:var(--text-pancake-heading);line-height:var(--tw-leading,var(--text-pancake-heading--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-heading--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-heading--font-weight));margin:0}.pancake-app-title{font-size:var(--text-pancake-title);line-height:var(--tw-leading,var(--text-pancake-title--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-title--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-title--font-weight));margin:0}.pancake-header-description{font-size:var(--text-pancake-body);line-height:var(--tw-leading,var(--text-pancake-body--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-body--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-body--font-weight));color:var(--color-pancake-text-secondary);margin:var(--spacing-pancake-4) 0 0}.pancake-header-action{flex:0 auto;max-width:100%}.pancake-bottom-navigation{border-radius:var(--radius-pancake-full);background-color:var(--color-pancake-surface);font-family:var(--font-pancake);color:var(--color-pancake-ink);border:var(--pancake-border-default) solid var(--color-pancake-border)}.pancake-bottom-navigation ul{box-sizing:border-box;padding:var(--spacing-pancake-4);gap:var(--spacing-pancake-4);flex-wrap:wrap;margin:0;list-style:none;display:flex}.pancake-bottom-navigation li{flex:80px;min-width:0;display:flex}.pancake-bottom-navigation a{border-radius:var(--radius-pancake-12);font-size:var(--text-pancake-label);line-height:var(--tw-leading,var(--text-pancake-label--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-label--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-label--font-weight));color:var(--color-pancake-text-secondary);justify-content:center;align-items:center;gap:var(--spacing-pancake-4);padding:var(--spacing-pancake-4) var(--spacing-pancake-8);min-height:var(--spacing-pancake-40);box-sizing:border-box;text-align:center;overflow-wrap:anywhere;flex-direction:column;flex:1;text-decoration:none;display:flex}.pancake-bottom-navigation a[aria-current=page]{background-color:var(--color-pancake-accent);color:var(--color-pancake-ink)}.pancake-bottom-navigation a:hover{text-decoration:underline}.pancake-bottom-navigation a:focus-visible{outline:var(--pancake-focus-ring-width) solid var(--color-pancake-deep);outline-offset:2px}.pancake-segmented-control{font-family:var(--font-pancake);color:var(--color-pancake-ink);border:0;min-width:0;margin:0;padding:0}.pancake-segmented-control legend{font-size:var(--text-pancake-label);line-height:var(--tw-leading,var(--text-pancake-label--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-label--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-label--font-weight));margin-bottom:var(--spacing-pancake-4);padding:0}.pancake-segments{border-radius:var(--radius-pancake-20);background-color:var(--color-pancake-surface-muted);gap:var(--spacing-pancake-4);padding:var(--spacing-pancake-4);flex-wrap:wrap;display:flex}.pancake-segment{cursor:pointer;flex:80px;min-width:0;display:flex;position:relative}.pancake-segment input{opacity:0;width:100%;height:100%;cursor:inherit;margin:0;position:absolute;inset:0}.pancake-segment>span{border-radius:var(--radius-pancake-20);font-size:var(--text-pancake-body-strong);line-height:var(--tw-leading,var(--text-pancake-body-strong--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-body-strong--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-body-strong--font-weight));box-sizing:border-box;width:100%;min-height:var(--spacing-pancake-32);padding:var(--spacing-pancake-4) var(--spacing-pancake-12);text-align:center;overflow-wrap:anywhere;border:var(--pancake-border-default) solid transparent;justify-content:center;align-items:center;display:flex}.pancake-segment input:checked+span{text-underline-offset:var(--spacing-pancake-4);background-color:var(--color-pancake-surface);text-decoration:underline}.pancake-segment input:focus-visible+span{outline:var(--pancake-focus-ring-width) solid var(--color-pancake-deep);outline-offset:2px}.pancake-segment input:disabled{cursor:not-allowed}.pancake-segment input:disabled+span{opacity:var(--pancake-opacity-disabled)}.pancake-step-progress{font-family:var(--font-pancake);font-size:var(--text-pancake-label);line-height:var(--tw-leading,var(--text-pancake-label--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-label--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-label--font-weight));color:var(--color-pancake-ink);gap:var(--spacing-pancake-12);flex-wrap:wrap;margin:0;padding:0;list-style:none;display:flex}.pancake-step-progress li{align-items:center;gap:var(--spacing-pancake-8);overflow-wrap:anywhere;min-width:0;display:flex}.pancake-step-number{border-radius:var(--radius-pancake-full);background-color:var(--color-pancake-surface-muted);width:var(--spacing-pancake-24);height:var(--spacing-pancake-24);flex:none;place-items:center;display:grid}.pancake-step-progress [data-complete] .pancake-step-number{background-color:var(--color-pancake-accent)}.pancake-step-progress [aria-current=step] .pancake-step-number{outline:var(--pancake-focus-ring-width) solid var(--color-pancake-deep)}.pancake-navigation-sr-only{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}@media (forced-colors:active){.pancake-segment input:checked+span{border:2px solid highlight}.pancake-bottom-navigation a[aria-current=page]{outline:2px solid highlight}}.pancake-surface{border-radius:var(--radius-pancake-16);background-color:var(--color-pancake-surface);padding:var(--spacing-pancake-16);font-family:var(--font-pancake);color:var(--color-pancake-ink);box-sizing:border-box}.pancake-list{margin:var(--spacing-pancake-0);padding:var(--spacing-pancake-0);list-style:none}.pancake-list-item{font-family:var(--font-pancake);font-size:var(--text-pancake-body);line-height:var(--tw-leading,var(--text-pancake-body--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-body--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-body--font-weight));color:var(--color-pancake-ink);align-items:center;gap:var(--spacing-pancake-12);min-height:var(--spacing-pancake-48);padding:var(--spacing-pancake-4) var(--spacing-pancake-0);display:flex}.pancake-list-item-leading,.pancake-list-item-trailing{align-items:center;gap:var(--spacing-pancake-8);flex-shrink:0;display:flex}.pancake-list-item-text{min-width:var(--spacing-pancake-0);overflow-wrap:anywhere;flex-direction:column;flex:1;display:flex}.pancake-list-item-description{font-size:var(--text-pancake-caption);line-height:var(--tw-leading,var(--text-pancake-caption--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-caption--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-caption--font-weight));color:var(--color-pancake-text-secondary)}.pancake-list-item-trailing{color:var(--color-pancake-text-secondary);text-align:end;overflow-wrap:anywhere;max-width:50%}.pancake-textarea{resize:vertical;display:block}.pancake-select-control{position:relative}.pancake-select{appearance:none;padding-inline-end:var(--spacing-pancake-32)}.pancake-select:read-only{background:var(--color-pancake-surface)}.pancake-select-control .pancake-select:disabled+.pancake-select-chevron{opacity:var(--pancake-opacity-disabled)}.pancake-select-chevron{pointer-events:none;inset-inline-end:var(--spacing-pancake-12);align-items:center;display:flex;position:absolute;top:0;bottom:0}.pancake-icon-button{flex-shrink:0;padding:0}.pancake-icon-button.pancake-button--32{width:var(--spacing-pancake-32);height:var(--spacing-pancake-32)}.pancake-icon-button.pancake-button--36{width:var(--spacing-pancake-36);height:var(--spacing-pancake-36)}.pancake-icon-button.pancake-button--40{width:var(--spacing-pancake-40);height:var(--spacing-pancake-40)}.pancake-icon-button-icon{width:var(--spacing-pancake-20);height:var(--spacing-pancake-20);justify-content:center;align-items:center;display:inline-flex}.pancake-button-link{overflow-wrap:anywhere;max-width:100%;text-decoration:none}.pancake-dialog{border-radius:var(--radius-pancake-16);background-color:var(--color-pancake-surface);font-family:var(--font-pancake);color:var(--color-pancake-ink);box-sizing:border-box;width:calc(100% - var(--spacing-pancake-32));max-width:var(--spacing-pancake-480);max-height:calc(100% - var(--spacing-pancake-32));padding:var(--spacing-pancake-20);border:var(--pancake-border-default) solid var(--color-pancake-border);overflow-wrap:anywhere;overflow:auto}.pancake-dialog::backdrop{background:var(--color-pancake-deep);opacity:var(--pancake-opacity-overlay)}.pancake-dialog-actions{justify-content:flex-end;gap:var(--spacing-pancake-8);flex-wrap:wrap;display:flex}.pancake-radio-group{font-family:var(--font-pancake);font-size:var(--text-pancake-body);line-height:var(--tw-leading,var(--text-pancake-body--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-body--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-body--font-weight));color:var(--color-pancake-ink);border:0;min-width:0;margin:0;padding:0}.pancake-radio-legend{font-size:var(--text-pancake-label);line-height:var(--tw-leading,var(--text-pancake-label--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-label--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-label--font-weight));margin-bottom:var(--spacing-pancake-4);padding:0}.pancake-radio-options{gap:var(--spacing-pancake-4);display:grid}.pancake-radio-option{align-items:center;gap:var(--spacing-pancake-4);min-height:var(--spacing-pancake-28);cursor:pointer;display:flex}.pancake-radio-input{border-radius:var(--radius-pancake-full);background-color:var(--color-pancake-surface);appearance:none;box-sizing:border-box;border:var(--pancake-border-default) solid var(--color-pancake-control-border);width:var(--spacing-pancake-16);height:var(--spacing-pancake-16);margin:var(--spacing-pancake-4);cursor:inherit;flex:none;place-content:center;display:grid}.pancake-radio-input:checked{background-color:var(--color-pancake-accent)}.pancake-radio-input:checked:before{border-radius:var(--radius-pancake-full);background-color:var(--color-pancake-deep);content:"";width:var(--spacing-pancake-8);height:var(--spacing-pancake-8)}.pancake-radio-input:focus{outline:var(--pancake-focus-ring-width) solid var(--color-pancake-control-focus);outline-offset:var(--spacing-pancake-4)}.pancake-radio-option:has(.pancake-radio-input:disabled){opacity:var(--pancake-opacity-disabled);cursor:not-allowed}.pancake-radio-copy{overflow-wrap:anywhere;min-width:0;display:grid}.pancake-radio-description{font-size:var(--text-pancake-caption);line-height:var(--tw-leading,var(--text-pancake-caption--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-caption--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-caption--font-weight));color:var(--color-pancake-muted);display:block}@media (forced-colors:active){.pancake-radio-input{appearance:auto}.pancake-radio-input:before{display:none}}.pancake-switch-label{font-family:var(--font-pancake);font-size:var(--text-pancake-body);line-height:var(--tw-leading,var(--text-pancake-body--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-body--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-body--font-weight));color:var(--color-pancake-ink);align-items:center;gap:var(--spacing-pancake-8);cursor:pointer;display:inline-flex}.pancake-switch{border-radius:var(--radius-pancake-full);background-color:var(--color-pancake-surface-muted);appearance:none;box-sizing:border-box;width:var(--spacing-pancake-40);height:var(--spacing-pancake-24);border:var(--pancake-border-default) solid var(--color-pancake-control-border);cursor:inherit;flex:none;margin:0;position:relative}.pancake-switch:before{border-radius:var(--radius-pancake-full);background-color:var(--color-pancake-deep);content:"";width:var(--spacing-pancake-16);height:var(--spacing-pancake-16);position:absolute;inset-block-start:calc(var(--spacing-pancake-4) - var(--pancake-border-default));inset-inline-start:calc(var(--spacing-pancake-4) - var(--pancake-border-default))}.pancake-switch:checked{background-color:var(--color-pancake-accent)}.pancake-switch:checked:before{inset-inline-start:calc(var(--spacing-pancake-20) - var(--pancake-border-default))}.pancake-switch:focus-visible{outline:var(--pancake-focus-ring-width) solid var(--color-pancake-control-focus);outline-offset:var(--spacing-pancake-4)}.pancake-switch-label:has(.pancake-switch:disabled){opacity:var(--pancake-opacity-disabled);cursor:not-allowed}@media (forced-colors:active){.pancake-switch{appearance:auto}.pancake-switch:before{display:none}}.pancake-tabs{font-family:var(--font-pancake);font-size:var(--text-pancake-body);line-height:var(--tw-leading,var(--text-pancake-body--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-body--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-body--font-weight));color:var(--color-pancake-ink);min-width:0}.pancake-tabs-list{gap:var(--spacing-pancake-4);padding:var(--spacing-pancake-4);flex-wrap:wrap;display:flex}.pancake-tabs-list--vertical{flex-direction:column;align-items:stretch}.pancake-tabs-list--vertical .pancake-tabs-tab{text-align:start}.pancake-tabs-tab{border-radius:var(--radius-pancake-8);background-color:var(--color-pancake-transparent);font-family:var(--font-pancake);font-size:var(--text-pancake-body-strong);line-height:var(--tw-leading,var(--text-pancake-body-strong--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-body-strong--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-body-strong--font-weight));color:var(--color-pancake-text-secondary);min-height:var(--spacing-pancake-36);min-width:0;max-width:100%;padding:var(--spacing-pancake-4) var(--spacing-pancake-12);border:var(--pancake-border-default) solid transparent;cursor:pointer;overflow-wrap:anywhere}.pancake-tabs-tab[aria-selected=false]:hover:not(:disabled){background-color:var(--color-pancake-canvas);color:var(--color-pancake-ink)}.pancake-tabs-tab[aria-selected=true]{background-color:var(--color-pancake-surface-muted);color:var(--color-pancake-ink)}.pancake-tabs-tab:disabled{opacity:var(--pancake-opacity-disabled);cursor:not-allowed}.pancake-tabs-tab:focus-visible,.pancake-tabs-panel:focus-visible{outline:var(--pancake-focus-ring-width) solid var(--color-pancake-deep);outline-offset:var(--spacing-pancake-4)}@media (forced-colors:active){.pancake-tabs-tab[aria-selected=true]{text-underline-offset:var(--spacing-pancake-4);text-decoration:underline}}.pancake-tabs-panel{padding:var(--spacing-pancake-12) var(--spacing-pancake-4);overflow-wrap:anywhere}.pancake-disclosure{border-radius:var(--radius-pancake-12);background-color:var(--color-pancake-surface);font-family:var(--font-pancake);font-size:var(--text-pancake-body);line-height:var(--tw-leading,var(--text-pancake-body--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-body--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-body--font-weight));color:var(--color-pancake-ink);border:var(--pancake-border-default) solid var(--color-pancake-border);overflow-wrap:anywhere;min-width:0}.pancake-disclosure-summary{font-size:var(--text-pancake-body-strong);line-height:var(--tw-leading,var(--text-pancake-body-strong--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-body-strong--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-body-strong--font-weight));padding:var(--spacing-pancake-8) var(--spacing-pancake-12);cursor:pointer}.pancake-disclosure-summary:focus-visible{outline:var(--pancake-focus-ring-width) solid var(--color-pancake-control-focus);outline-offset:var(--spacing-pancake-4)}.pancake-disclosure-content{padding:0 var(--spacing-pancake-12) var(--spacing-pancake-12)}.pancake-progress-field{gap:var(--spacing-pancake-4);min-width:0;display:grid}.pancake-progress-label{font-family:var(--font-pancake);font-size:var(--text-pancake-label);line-height:var(--tw-leading,var(--text-pancake-label--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-label--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-label--font-weight));color:var(--color-pancake-ink);overflow-wrap:anywhere}.pancake-progress{width:100%;height:var(--spacing-pancake-8);accent-color:var(--color-pancake-deep)}.pancake-loading-indicator{font-family:var(--font-pancake);font-size:var(--text-pancake-body);line-height:var(--tw-leading,var(--text-pancake-body--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-body--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-body--font-weight));color:var(--color-pancake-ink);align-items:center;gap:var(--spacing-pancake-8);overflow-wrap:anywhere;display:flex}.pancake-loading-dots{gap:var(--spacing-pancake-4);flex-shrink:0;display:inline-flex}.pancake-loading-dot{border-radius:var(--radius-pancake-full);width:var(--spacing-pancake-4);height:var(--spacing-pancake-4);background:currentColor}.pancake-file-field{min-width:0;padding-block:var(--spacing-pancake-4)}.pancake-file-field:read-only{background:var(--color-pancake-surface)}.pancake-file-field::file-selector-button{border-radius:var(--radius-pancake-full);font-family:var(--font-pancake);font-size:var(--text-pancake-label);line-height:var(--tw-leading,var(--text-pancake-label--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-label--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-label--font-weight));color:var(--color-pancake-ink);background:var(--color-pancake-surface-muted);padding:var(--spacing-pancake-4) var(--spacing-pancake-8);cursor:pointer;border:none;margin-inline-end:var(--spacing-pancake-8)}.pancake-file-field:disabled::file-selector-button{cursor:not-allowed}.pancake-popover{border-radius:var(--radius-pancake-16);background-color:var(--color-pancake-surface);font-family:var(--font-pancake);color:var(--color-pancake-ink);box-sizing:border-box;position-anchor:auto;position-area:block-end;position-try-fallbacks:flip-block;position-try-order:most-height;margin:var(--spacing-pancake-8);width:var(--spacing-pancake-320);max-width:calc(100% - var(--spacing-pancake-32));max-height:calc(100% - var(--spacing-pancake-32));padding:var(--spacing-pancake-16);border:var(--pancake-border-default) solid var(--color-pancake-border);overflow-wrap:anywhere;position:fixed;inset:auto;overflow:auto}.pancake-dropdown-menu{border-radius:var(--radius-pancake-12);padding:var(--spacing-pancake-4)}.pancake-dropdown-menu-item{border-radius:var(--radius-pancake-8);background-color:var(--color-pancake-transparent);font-family:var(--font-pancake);font-size:var(--text-pancake-body);line-height:var(--tw-leading,var(--text-pancake-body--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-body--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-body--font-weight));color:var(--color-pancake-ink);box-sizing:border-box;width:100%;min-height:var(--spacing-pancake-36);padding:var(--spacing-pancake-8);border:var(--spacing-pancake-0);text-align:start;overflow-wrap:anywhere;cursor:pointer;text-decoration:none;display:block}.pancake-dropdown-menu-text{font-family:var(--font-pancake);font-size:var(--text-pancake-caption);line-height:var(--tw-leading,var(--text-pancake-caption--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-caption--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-caption--font-weight));color:var(--color-pancake-text-secondary);padding:var(--spacing-pancake-4) var(--spacing-pancake-8);overflow-wrap:anywhere}.pancake-dropdown-menu-item:focus-visible{outline:var(--pancake-focus-ring-width) solid var(--color-pancake-deep);outline-offset:var(--pancake-focus-ring-width)}.pancake-dropdown-menu-item:hover{background-color:var(--color-pancake-surface-muted)}.pancake-dropdown-menu-item[aria-disabled=true]{opacity:var(--pancake-opacity-disabled);cursor:default}.pancake-tooltip-anchor{align-self:flex-start;display:inline-flex}.pancake-tooltip{border-radius:var(--radius-pancake-8);font-size:var(--text-pancake-caption);line-height:var(--tw-leading,var(--text-pancake-caption--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-caption--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-caption--font-weight));width:max-content;max-width:min(var(--spacing-pancake-320), calc(100% - var(--spacing-pancake-32)));padding:var(--spacing-pancake-4) var(--spacing-pancake-8);margin:0}.pancake-table-scroll{min-width:0;max-width:100%;overflow:auto}.pancake-table-scroll:focus-visible{outline:var(--pancake-focus-ring-width) solid var(--color-pancake-deep);outline-offset:var(--pancake-focus-ring-width)}.pancake-table{background-color:var(--color-pancake-surface);font-family:var(--font-pancake);font-size:var(--text-pancake-body);line-height:var(--tw-leading,var(--text-pancake-body--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-body--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-body--font-weight));color:var(--color-pancake-ink);border-collapse:collapse;text-align:start;width:100%}.pancake-table>caption{font-size:var(--text-pancake-heading);line-height:var(--tw-leading,var(--text-pancake-heading--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-heading--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-heading--font-weight));padding-block:var(--spacing-pancake-12);text-align:start}.pancake-table>thead{background-color:var(--color-pancake-surface-muted)}.pancake-table>thead>tr>th,.pancake-table>tbody>tr>th,.pancake-table>tfoot>tr>th{font-size:var(--text-pancake-label);line-height:var(--tw-leading,var(--text-pancake-label--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-label--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-label--font-weight));text-align:start}.pancake-table>thead>tr>th,.pancake-table>thead>tr>td,.pancake-table>tbody>tr>th,.pancake-table>tbody>tr>td,.pancake-table>tfoot>tr>th,.pancake-table>tfoot>tr>td{min-width:var(--spacing-pancake-112);padding:var(--spacing-pancake-8) var(--spacing-pancake-12);border-bottom:var(--pancake-border-default) solid var(--color-pancake-border);vertical-align:top}.pancake-pagination{font-family:var(--font-pancake);font-size:var(--text-pancake-body);line-height:var(--tw-leading,var(--text-pancake-body--line-height));letter-spacing:var(--tw-tracking,var(--text-pancake-body--letter-spacing));font-weight:var(--tw-font-weight,var(--text-pancake-body--font-weight));color:var(--color-pancake-ink);min-width:0}.pancake-pagination-list{align-items:center;gap:var(--spacing-pancake-4);flex-wrap:wrap;margin:0;padding:0;list-style:none;display:flex}.pancake-pagination-list>li{min-width:0;max-width:100%;display:flex}.pancake-pagination-control{min-width:var(--spacing-pancake-32);max-width:100%;padding-inline:var(--spacing-pancake-8);overflow-wrap:anywhere}.pancake-pagination-unavailable{opacity:var(--pancake-opacity-disabled);cursor:default}.pancake-pagination-gap{padding-inline:var(--spacing-pancake-4)}}@layer utilities;:root,:host{--color-pancake-accent:#ade533;--color-pancake-accent-disabled-layer:#ade533cc;--color-pancake-border:#edede8;--color-pancake-canvas:#fbf8f0;--color-pancake-control-border:#7e8c70;--color-pancake-control-focus:#647a45;--color-pancake-error-strong:#a34c3e;--color-pancake-danger:#ffd6d6;--color-pancake-danger-hover:#ffc2c2;--color-pancake-deep:#384540;--color-pancake-info:#d6edfa;--color-pancake-ink:#0e1716;--color-pancake-muted:#636b6e;--color-pancake-olive:#636657;--color-pancake-surface:#fff;--color-pancake-surface-accent:#d1f28a;--color-pancake-surface-muted:#f0f0eb;--color-pancake-text-secondary:#3b4742;--color-pancake-transparent:transparent;--color-pancake-warning:#ffeb9e;--color-pancake-focus-ring:#ade533;--spacing-pancake-0:0px;--spacing-pancake-4:4px;--spacing-pancake-8:8px;--spacing-pancake-12:12px;--spacing-pancake-16:16px;--spacing-pancake-20:20px;--spacing-pancake-24:24px;--spacing-pancake-28:28px;--spacing-pancake-32:32px;--spacing-pancake-36:36px;--spacing-pancake-40:40px;--spacing-pancake-44:44px;--spacing-pancake-48:48px;--spacing-pancake-52:52px;--spacing-pancake-56:56px;--spacing-pancake-64:64px;--spacing-pancake-72:72px;--spacing-pancake-76:76px;--spacing-pancake-80:80px;--spacing-pancake-88:88px;--spacing-pancake-92:92px;--spacing-pancake-104:104px;--spacing-pancake-112:112px;--spacing-pancake-320:320px;--spacing-pancake-480:480px;--spacing-pancake-560:560px;--radius-pancake-4:4px;--radius-pancake-12:12px;--radius-pancake-16:16px;--radius-pancake-20:20px;--radius-pancake-28:28px;--radius-pancake-36:36px;--radius-pancake-8:8px;--radius-pancake-full:999px;--font-pancake:Inter, sans-serif;--text-pancake-body:14px;--text-pancake-body--line-height:20px;--text-pancake-body--font-weight:400;--text-pancake-body--letter-spacing:0px;--text-pancake-body-strong:14px;--text-pancake-body-strong--line-height:20px;--text-pancake-body-strong--font-weight:600;--text-pancake-body-strong--letter-spacing:0px;--text-pancake-caption:12px;--text-pancake-caption--line-height:16px;--text-pancake-caption--font-weight:400;--text-pancake-caption--letter-spacing:0px;--text-pancake-display:28px;--text-pancake-display--line-height:36px;--text-pancake-display--font-weight:700;--text-pancake-display--letter-spacing:0px;--text-pancake-heading:18px;--text-pancake-heading--line-height:24px;--text-pancake-heading--font-weight:700;--text-pancake-heading--letter-spacing:0px;--text-pancake-label:12px;--text-pancake-label--line-height:16px;--text-pancake-label--font-weight:600;--text-pancake-label--letter-spacing:0px;--text-pancake-micro:10px;--text-pancake-micro--line-height:12px;--text-pancake-micro--font-weight:600;--text-pancake-micro--letter-spacing:0px;--text-pancake-section:20px;--text-pancake-section--line-height:28px;--text-pancake-section--font-weight:700;--text-pancake-section--letter-spacing:0px;--text-pancake-title:24px;--text-pancake-title--line-height:32px;--text-pancake-title--font-weight:700;--text-pancake-title--letter-spacing:0px;--pancake-border-default:1px;--pancake-focus-ring-width:2px;--pancake-opacity-disabled:.4;--pancake-opacity-overlay:.5}
|
|
3
3
|
/*$vite$:1*/
|
package/docs/components.md
CHANGED
|
@@ -35,14 +35,16 @@ The sample form verifies submission, required fields, custom errors, keyboard fo
|
|
|
35
35
|
| Actions | `Button`, `ButtonLink`, `IconButton` |
|
|
36
36
|
| Forms | `TextField`, `Textarea`, `Select`, `FileField`, `Checkbox`, `RadioGroup`, `Switch`, `SegmentedControl` |
|
|
37
37
|
| Navigation | `AppHeader`, `SectionHeader`, `BottomNavigation`, `Tabs`, `Pagination` |
|
|
38
|
-
| Overlays and disclosure | `Dialog`, `Popover`, `DropdownMenu`, `Tooltip`, `Disclosure`
|
|
39
|
-
| Data and identity | `Table`, `Avatar`, `AvatarGroup`
|
|
38
|
+
| Overlays and disclosure | `Dialog`, `DialogActions`, `Popover`, `DropdownMenu`, `Tooltip`, `Disclosure` |
|
|
39
|
+
| Data and identity | `Table`, `List`, `ListItem`, `Avatar`, `AvatarGroup` |
|
|
40
40
|
| Feedback and progress | `StatusChip`, `BannerToast`, `EmptyState`, `Progress`, `LoadingIndicator`, `StepProgress` |
|
|
41
41
|
|
|
42
42
|
`Stack` and `Inline` accept spacing token names (`gap="space24"`), alignment, padding, and native div props. Inline wraps by default. `Text` accepts a typography `variant`, colour token, and an `as` tag for semantic headings or paragraphs. Layout and text reference CSS variables so local themes apply.
|
|
43
43
|
|
|
44
44
|
`Avatar` requires a name, accepts an optional image `src`, and falls back to initials after a failed image. Changing `src` retries the image. Use `decorative` when adjacent text already supplies the name. `AvatarGroup` accepts `{ id, name, src? }` items and a positive integer `max`; hidden identities are named on the overflow indicator.
|
|
45
45
|
|
|
46
|
+
`List` is a `ul` without bullets, with an explicit list role so Safari keeps announcing it, for settings, people and status screens; name it with `aria-label` when no heading does. Each `ListItem` takes a `title` and optional `description`, `leading` content such as a decorative avatar, and `trailing` content such as a value or a button. Long titles wrap rather than widen the page; trailing values align to the end and take at most half the row.
|
|
47
|
+
|
|
46
48
|
`StatusChip` tones are neutral, success, warning, danger, and info. `BannerToast` accepts a title, children, an optional `onDismiss`, and success/warning/error/info tones. Error notifications use an alert; other tones use a polite status. Applications own notification timing and dismissal state. `EmptyState` accepts title, description, optional decorative icon, and action content.
|
|
47
49
|
|
|
48
50
|
`AppHeader` provides title, description, and leading/trailing slots. `SectionHeader` provides title, description, action, and heading levels 2–4. `BottomNavigation` takes `{ id, label, href, icon? }` items and `activeId`; navigation and active-route state remain with the application. It is in normal document flow rather than fixed to the viewport.
|
|
@@ -67,6 +69,8 @@ The example verifies avatar image recovery, notification dismissal, navigation l
|
|
|
67
69
|
|
|
68
70
|
`Dialog` is a controlled native modal. Pass `open`, `onOpenChange` and a visible `title`; an optional `description` is associated with the dialog. It uses `showModal()` after mounting, so server markup is stable and the modal opens after hydration. The browser owns modal focus containment and background inertness. Escape and the built-in close button request dismissal through `onOpenChange(false)`; the app must update `open`. Backdrop clicks do not dismiss it. Set `closeLabel` to localise the close button. Native refs, classes and styles target the dialog element.
|
|
69
71
|
|
|
72
|
+
Put the dialog's buttons in `DialogActions`. It lines them up at the end of the row in source order, so the main action goes last and the tab order matches what people see. It wraps on narrow screens and takes native div props and refs.
|
|
73
|
+
|
|
70
74
|
```tsx
|
|
71
75
|
const [open, setOpen] = useState(false);
|
|
72
76
|
|
|
@@ -74,7 +78,12 @@ const [open, setOpen] = useState(false);
|
|
|
74
78
|
<Button onClick={() => setOpen(true)}>Review changes</Button>
|
|
75
79
|
<Dialog open={open} onOpenChange={setOpen} title="Review changes">
|
|
76
80
|
<Text as="p">Check your changes before saving.</Text>
|
|
77
|
-
<
|
|
81
|
+
<DialogActions>
|
|
82
|
+
<Button variant="ghost" onClick={() => setOpen(false)}>
|
|
83
|
+
Cancel
|
|
84
|
+
</Button>
|
|
85
|
+
<Button onClick={() => setOpen(false)}>Save</Button>
|
|
86
|
+
</DialogActions>
|
|
78
87
|
</Dialog>
|
|
79
88
|
</>;
|
|
80
89
|
```
|
|
@@ -127,7 +136,7 @@ The browser owns visibility, outside-click dismissal, Escape, sibling/nested pop
|
|
|
127
136
|
|
|
128
137
|
## DropdownMenu
|
|
129
138
|
|
|
130
|
-
`DropdownMenu` combines a labelled button with a native anchored action menu. Provide a
|
|
139
|
+
`DropdownMenu` combines a labelled button with a native anchored action menu. Provide a `label` and `items` with unique `id` values. The label is the trigger's visible text, or its accessible name when you pass an `icon` to show instead. Action items use `{ type: "action", id, label, onSelect }`; link items use `{ type: "link", id, label, href }` and support native `target`, `rel` and `download`. Text items, `{ type: "text", id, label }`, show a line such as the signed-in account. They describe the menu to assistive technology and are skipped by keyboard navigation and typeahead; a menu with only text items has a disabled trigger. Item labels are strings for keyboard typeahead. Disabled items remain keyboard-focusable for discovery but cannot activate; disabled links have no destination.
|
|
131
140
|
|
|
132
141
|
Enter, Space or ArrowDown opens at the first item; ArrowUp opens at the last. Arrow keys wrap, Home/End reach the edges, and typing searches labels. Escape returns focus to the trigger; Tab/Shift+Tab closes and leaves the composite. Action selection closes the menu and restores trigger focus before calling `onSelect`, so the action can move focus into a new dialog. Browser-owned visibility follows the same native dismissal model as Popover; `onOpenChange` observes settled changes.
|
|
133
142
|
|
package/docs/styling.md
CHANGED
|
@@ -25,6 +25,7 @@ Pancake UI uses shared tokens and namespaced component styles. New components sh
|
|
|
25
25
|
- Tooltip reuses native Popover anchoring with caption typography, 4px by 8px padding and an 8px radius. Its trigger retains the original component styling.
|
|
26
26
|
- DropdownMenu reuses Popover anchoring, with 4px panel padding, a 12px panel radius, 36px minimum item heights and shared focus/disabled tokens. Long labels wrap within the panel.
|
|
27
27
|
- Popover uses a 320px width token, 16px padding, 16px radius and 8px anchor spacing. Native CSS anchor positioning chooses the side with more room; viewport constraints and overflow scrolling keep long content reachable.
|
|
28
|
+
- List rows are at least 48px tall with a 12px gap between leading content, text and trailing content; descriptions and menu text lines use the caption role in secondary text. Dialog actions sit 8px apart.
|
|
28
29
|
- Dialog uses a 480px maximum-width sizing token, 20px surface padding, 16px radius, a 32px close button, and a dedicated 50% backdrop-opacity token. Viewport margins and scrolling keep content reachable on narrow screens.
|
|
29
30
|
- RadioGroup uses 16px styled native radio inputs within 28px rows, with caption-sized option descriptions. Its outline applies on focus, including pointer focus, to retain a visible indicator during WebKit native arrow navigation. Switch uses a 40px by 24px track and a 16px thumb, with the existing focus and disabled tokens.
|
|
30
31
|
- Progress retains the native browser bar at an 8px height with a deep accent and a 4px label gap. LoadingIndicator uses static 4px decorative dots, body typography and an 8px text gap; status feedback does not depend on animation.
|