@ciridae/ui 1.2.1 → 1.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.
@@ -50,7 +50,7 @@ const popup = css({
50
50
  transitionDuration: "fast",
51
51
  "&[data-starting-style], &[data-ending-style]": { opacity: "[0]" },
52
52
  _motionReduce: { transition: "[none]" },
53
- _phone: { top: "layout.pageGap" },
53
+ _phone: { top: "[calc(token(spacing.layout.bannerInset) + token(spacing.layout.pageGap))]" },
54
54
  "& > [cmdk-root]": {
55
55
  display: "flex",
56
56
  flexDirection: "column",
@@ -9,7 +9,14 @@ import { HotkeyLayer } from "./hotkeys.js";
9
9
  import { icon } from "./icon.js";
10
10
  import { Eyebrow, heading } from "./layout.js";
11
11
  import { useCiridaeLocale } from "./locale.js";
12
- const viewport = css({ position: "fixed", inset: "none", zIndex: "drawer", pointerEvents: "none" });
12
+ const viewport = css({
13
+ position: "fixed",
14
+ top: "layout.bannerInset",
15
+ insetInline: "none",
16
+ bottom: "none",
17
+ zIndex: "drawer",
18
+ pointerEvents: "none",
19
+ });
13
20
  /*
14
21
  * A drawer sits beside the page, which stays usable: no scrim. The shell's padding is what keeps
15
22
  * the sheet off the window's edges, level with the main panel; a phone takes the sheet to the
@@ -54,6 +54,20 @@ function rememberDismissedForSession() {
54
54
  console.warn(`Could not save ${dismissedStorageKey}; the strip stays hidden until the page reloads`, error);
55
55
  }
56
56
  }
57
+ /** Overlays portal out of the frame, so the strip's height reaches them from the document root. */
58
+ function publishBannerInset(banner) {
59
+ if (!banner)
60
+ return;
61
+ const root = document.documentElement;
62
+ const observer = new ResizeObserver(() => {
63
+ root.style.setProperty("--environment-banner-inset", `${banner.offsetHeight}px`);
64
+ });
65
+ observer.observe(banner);
66
+ return () => {
67
+ observer.disconnect();
68
+ root.style.removeProperty("--environment-banner-inset");
69
+ };
70
+ }
57
71
  /** An environment strip, which the reader can dismiss for the session, and the AppShell viewport below it. */
58
72
  export function EnvironmentFrame({ label, tone = "info", children, className, ...props }) {
59
73
  const { labels } = useCiridaeLocale();
@@ -63,5 +77,5 @@ export function EnvironmentFrame({ label, tone = "info", children, className, ..
63
77
  rememberDismissedForSession();
64
78
  setDismissed(true);
65
79
  };
66
- return (_jsxs("div", { ...props, className: cx(frame, className), children: [shown && (_jsx(SiteBanner, { className: environmentBanner, tone: tone, onDismiss: dismiss, children: typeof label === "string" ? labels.shell.environment(label) : label })), _jsx("div", { className: viewport, children: children })] }));
80
+ return (_jsxs("div", { ...props, className: cx(frame, className), children: [shown && (_jsx(SiteBanner, { ref: publishBannerInset, className: environmentBanner, tone: tone, onDismiss: dismiss, children: typeof label === "string" ? labels.shell.environment(label) : label })), _jsx("div", { className: viewport, children: children })] }));
67
81
  }
@@ -16,7 +16,9 @@ import { useCiridaeLocale } from "./locale.js";
16
16
  import { useResolvedFileUrl } from "./resolved-file-url.js";
17
17
  const popup = css({
18
18
  position: "fixed",
19
- inset: "none",
19
+ top: "layout.bannerInset",
20
+ insetInline: "none",
21
+ bottom: "none",
20
22
  zIndex: "dialog",
21
23
  display: "grid",
22
24
  gridTemplateRows: "auto minmax(0, 1fr)",
@@ -151,6 +151,14 @@ export declare const englishLabels: {
151
151
  clearFilters: string;
152
152
  unavailable: string;
153
153
  };
154
+ profileDialog: {
155
+ title: string;
156
+ name: string;
157
+ saveName: string;
158
+ changePicture: string;
159
+ nameFailed: string;
160
+ pictureFailed: string;
161
+ };
154
162
  activity: {
155
163
  show: string;
156
164
  all: string;
@@ -124,6 +124,14 @@ export const englishLabels = {
124
124
  clearFilters: "Clear filters",
125
125
  unavailable: "Could not load members",
126
126
  },
127
+ profileDialog: {
128
+ title: "Profile",
129
+ name: "Name",
130
+ saveName: "Save name",
131
+ changePicture: "Change picture",
132
+ nameFailed: "Name was not saved.",
133
+ pictureFailed: "Picture was not saved.",
134
+ },
127
135
  activity: {
128
136
  show: "Show",
129
137
  all: "All",
@@ -493,6 +501,7 @@ function mergeLabels(overrides) {
493
501
  dropzone: { ...englishLabels.dropzone, ...overrides.dropzone },
494
502
  userChip: { ...englishLabels.userChip, ...overrides.userChip },
495
503
  memberDirectory: { ...englishLabels.memberDirectory, ...overrides.memberDirectory },
504
+ profileDialog: { ...englishLabels.profileDialog, ...overrides.profileDialog },
496
505
  activity: { ...englishLabels.activity, ...overrides.activity },
497
506
  notifications: { ...englishLabels.notifications, ...overrides.notifications },
498
507
  feedback: { ...englishLabels.feedback, ...overrides.feedback },
@@ -38,13 +38,13 @@ const dialogShell = css.raw({
38
38
  "--dialog-sheet": "token(sizes.overlay.dialog)",
39
39
  zIndex: "dialog",
40
40
  position: "fixed",
41
- top: "[50%]",
41
+ top: "[calc(50% + token(spacing.layout.bannerInset) / 2)]",
42
42
  left: "[50%]",
43
43
  display: "grid",
44
44
  gridTemplateRows: "minmax(0, 1fr)",
45
45
  width: "[calc(100vw - token(spacing.layout.pageGap) * 2)]",
46
46
  maxWidth: "[calc(var(--dialog-sheet) + 2 * (token(spacing.layout.tightGap) + token(sizes.border.hairline)))]",
47
- maxHeight: "[calc(100dvh - token(spacing.layout.pageGap) * 2)]",
47
+ maxHeight: "[calc(100dvh - token(spacing.layout.bannerInset) - token(spacing.layout.pageGap) * 2)]",
48
48
  padding: "layout.tightGap",
49
49
  border: "1px solid token(colors.border.control)",
50
50
  borderRadius: "shell",
@@ -0,0 +1,10 @@
1
+ import { type ComponentProps } from "react";
2
+ import { Dialog } from "./overlays.js";
3
+ export type ProfileDialogProps = Pick<ComponentProps<typeof Dialog>, "trigger" | "open" | "onOpenChange"> & {
4
+ name: string | null;
5
+ email: string | null;
6
+ pictureUrl: string | null;
7
+ onSaveName: (name: string) => Promise<unknown>;
8
+ onSavePicture: (picture: File) => Promise<unknown>;
9
+ };
10
+ export declare function ProfileDialog({ name, email, pictureUrl, onSaveName, onSavePicture, onOpenChange, ...dialogProps }: ProfileDialogProps): import("react").JSX.Element;
@@ -0,0 +1,46 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { PlusIcon } from "@phosphor-icons/react";
3
+ import { useMutation } from "@tanstack/react-query";
4
+ import { useRef, useState } from "react";
5
+ import { Button, IconButton } from "./button.js";
6
+ import { Avatar } from "./data-display.js";
7
+ import { Field, FieldError, FieldLabel, Form } from "./form-layout.js";
8
+ import { icon, Spinner } from "./icon.js";
9
+ import { Input } from "./input.js";
10
+ import { Cluster } from "./layout.js";
11
+ import { useCiridaeLocale } from "./locale.js";
12
+ import { Dialog } from "./overlays.js";
13
+ /*
14
+ * Edits the signed-in person's name and picture. The app saves them, so this works with any
15
+ * session; pass `trigger`, or `open` and `onOpenChange`. Each save settles on its own and the
16
+ * dialog stays open, so a new picture shows beside the name still being edited.
17
+ */
18
+ const PICTURE_TYPES = "image/png,image/jpeg,image/webp";
19
+ const MAX_NAME_LENGTH = 256;
20
+ /** The server's reason for a rejected change, or `fallback` when it gave none. */
21
+ function failureMessage(error, fallback) {
22
+ return "detail" in error && typeof error.detail === "string" ? error.detail : fallback;
23
+ }
24
+ export function ProfileDialog({ name, email, pictureUrl, onSaveName, onSavePicture, onOpenChange, ...dialogProps }) {
25
+ const { labels: allLabels } = useCiridaeLocale();
26
+ const labels = allLabels.profileDialog;
27
+ const pictureInput = useRef(null);
28
+ const [draft, setDraft] = useState(name ?? "");
29
+ const trimmedDraft = draft.trim();
30
+ const rename = useMutation({ mutationFn: onSaveName });
31
+ const picture = useMutation({ mutationFn: onSavePicture });
32
+ return (_jsxs(Dialog, { ...dialogProps, kind: "info", onOpenChange: (open, details) => {
33
+ setDraft(name ?? "");
34
+ rename.reset();
35
+ picture.reset();
36
+ onOpenChange?.(open, details);
37
+ }, pending: rename.isPending || picture.isPending, title: labels.title, children: [_jsx(Avatar, { badge: _jsx(IconButton, { "aria-busy": picture.isPending || undefined, "aria-label": labels.changePicture, disabled: picture.isPending, onClick: () => pictureInput.current?.click(), size: "compact", variant: "primary", children: picture.isPending ? (_jsx(Spinner, { "aria-hidden": "true" })) : (_jsx(PlusIcon, { className: icon({ size: "small" }) })) }), color: "blue", label: name ?? email ?? "", size: "large", src: pictureUrl }), _jsx("input", { accept: PICTURE_TYPES, hidden: true, onChange: (event) => {
38
+ const file = event.target.files?.[0];
39
+ event.target.value = "";
40
+ if (file)
41
+ picture.mutate(file);
42
+ }, ref: pictureInput, type: "file" }), picture.error ? (_jsx(FieldError, { children: failureMessage(picture.error, labels.pictureFailed) })) : null, _jsxs(Form, { onSubmit: (event) => {
43
+ event.preventDefault();
44
+ rename.mutate(trimmedDraft);
45
+ }, children: [_jsxs(Field, { children: [_jsx(FieldLabel, { children: labels.name }), _jsx(Input, { autoComplete: "name", maxLength: MAX_NAME_LENGTH, onChange: (event) => setDraft(event.target.value), value: draft })] }), rename.error ? (_jsx(FieldError, { children: failureMessage(rename.error, labels.nameFailed) })) : null, _jsx(Cluster, { children: _jsx(Button, { disabled: !trimmedDraft || trimmedDraft === name, loading: rename.isPending, type: "submit", children: labels.saveName }) })] })] }));
46
+ }
@@ -27,6 +27,13 @@ export type SelectProps = {
27
27
  disabled?: boolean;
28
28
  };
29
29
  export declare function Select({ options, value, onValueChange, placeholder, label, size: controlSize, variant, name, required, disabled, }: SelectProps): import("react").JSX.Element;
30
+ export type MultiSelectProps = Pick<SelectProps, "options" | "placeholder" | "label" | "size" | "variant" | "disabled"> & {
31
+ value: readonly string[];
32
+ onValueChange: (value: string[]) => void;
33
+ onOpenChange?: (open: boolean) => void;
34
+ };
35
+ /** A `Select` that holds several options; its menu stays open while they are toggled. */
36
+ export declare function MultiSelect({ options, value, onValueChange, onOpenChange, placeholder, label, size: controlSize, variant, disabled, }: MultiSelectProps): import("react").JSX.Element;
30
37
  export type SlicerProps = Omit<SelectProps, "size" | "variant" | "placeholder"> & {
31
38
  /** What the slicer filters by, shown muted before the chosen value. */
32
39
  label: string;
@@ -126,14 +126,33 @@ function density(size) {
126
126
  function SelectMenu({ options, popupClassName, itemClassName, }) {
127
127
  return (_jsx(BaseSelect.Portal, { children: _jsx(HotkeyLayer, { children: _jsx(BaseSelect.Positioner, { className: positioner, sideOffset: glassMenuOffsetFromTrigger, align: "start", alignItemWithTrigger: false, children: _jsx(BaseSelect.Popup, { className: popupClassName, "data-ciridae-ui": "", children: _jsx(BaseSelect.List, { className: list, children: options.map((option) => (_jsxs(BaseSelect.Item, { className: itemClassName, value: option.value, children: [_jsx(BaseSelect.ItemText, { children: option.label }), _jsx(BaseSelect.ItemIndicator, { className: itemIndicator, children: _jsx(CheckIcon, { className: icon({ size: "small" }) }) })] }, option.value))) }) }) }) }) }));
128
128
  }
129
- export function Select({ options, value, onValueChange, placeholder, label, size: controlSize = "small", variant = controlSize === "small" ? "raised" : "field", name, required, disabled, }) {
129
+ function SelectTrigger({ variant, size, label, children, }) {
130
130
  const { labels } = useCiridaeLocale();
131
131
  const fieldIds = useFieldControl({});
132
132
  const inField = useInField();
133
+ return (_jsxs(BaseSelect.Trigger, { ...fieldIds, className: cx(trigger({ variant, size }), variant === "raised" && toolbarEdge.className), "aria-label": label ?? (inField ? undefined : labels.select.label), "data-ciridae-ui": "", "data-edge": variant === "raised" ? toolbarEdge["data-edge"] : undefined, children: [children, _jsx(BaseSelect.Icon, { children: _jsx(CaretDownIcon, { className: icon({ size: "small" }) }) })] }));
134
+ }
135
+ export function Select({ options, value, onValueChange, placeholder, label, size: controlSize = "small", variant = controlSize === "small" ? "raised" : "field", name, required, disabled, }) {
136
+ const { labels } = useCiridaeLocale();
133
137
  const underline = variant === "underline";
134
138
  // An underline trigger is sized to its value, so its menu may run wider, at its body text.
135
139
  const size = underline ? "regular" : density(controlSize);
136
- return (_jsxs(BaseSelect.Root, { items: options, value: value, onValueChange: onValueChange, name: name, required: required, disabled: disabled, children: [_jsxs(BaseSelect.Trigger, { ...fieldIds, className: cx(trigger({ variant, size }), variant === "raised" && toolbarEdge.className), "aria-label": label ?? (inField ? undefined : labels.select.label), "data-ciridae-ui": "", "data-edge": variant === "raised" ? toolbarEdge["data-edge"] : undefined, children: [_jsx(BaseSelect.Value, { placeholder: placeholder ?? labels.select.placeholder }), _jsx(BaseSelect.Icon, { children: _jsx(CaretDownIcon, { className: icon({ size: "small" }) }) })] }), _jsx(SelectMenu, { options: options, popupClassName: underline ? popup.compact : popup[size], itemClassName: item[size] })] }));
140
+ return (_jsxs(BaseSelect.Root, { items: options, value: value, onValueChange: onValueChange, name: name, required: required, disabled: disabled, children: [_jsx(SelectTrigger, { variant: variant, size: size, label: label, children: _jsx(BaseSelect.Value, { placeholder: placeholder ?? labels.select.placeholder }) }), _jsx(SelectMenu, { options: options, popupClassName: underline ? popup.compact : popup[size], itemClassName: item[size] })] }));
141
+ }
142
+ /** A `Select` that holds several options; its menu stays open while they are toggled. */
143
+ export function MultiSelect({ options, value, onValueChange, onOpenChange, placeholder, label, size: controlSize = "small", variant = controlSize === "small" ? "raised" : "field", disabled, }) {
144
+ const { labels } = useCiridaeLocale();
145
+ // The trigger keeps its label while open, so toggling never resizes it and moves the menu.
146
+ const [valueWhenOpened, setValueWhenOpened] = useState(null);
147
+ const underline = variant === "underline";
148
+ const size = underline ? "regular" : density(controlSize);
149
+ return (_jsxs(BaseSelect.Root, { multiple: true, items: options, value: [...value], onValueChange: onValueChange, onOpenChange: (open) => {
150
+ setValueWhenOpened(open ? value : null);
151
+ onOpenChange?.(open);
152
+ }, disabled: disabled, children: [_jsx(SelectTrigger, { variant: variant, size: size, label: label, children: _jsx(BaseSelect.Value, { placeholder: placeholder ?? labels.select.placeholder, children: (selected) => options
153
+ .filter((option) => (valueWhenOpened ?? selected).includes(option.value))
154
+ .map((option) => option.label)
155
+ .join(", ") }) }), _jsx(SelectMenu, { options: options, popupClassName: underline ? popup.compact : popup[size], itemClassName: item[size] })] }));
137
156
  }
138
157
  /*
139
158
  * A slicer is a filter's pill: the dimension it cuts by, then the value chosen, then the caret.
@@ -55,7 +55,8 @@ const sidebar = css({
55
55
  // button, with its full labelled content rather than the rail.
56
56
  _phone: {
57
57
  position: "fixed",
58
- insetBlock: "none",
58
+ top: "layout.bannerInset",
59
+ bottom: "none",
59
60
  insetInlineStart: "none",
60
61
  zIndex: "drawer",
61
62
  width: "shell.sidebar",
package/dist/preset.js CHANGED
@@ -169,6 +169,8 @@ export function createCiridaePreset({ appBase = false, ...theme } = {}) {
169
169
  "layout.contentGap": { value: "12px" },
170
170
  "layout.clusterGap": { value: "16px" },
171
171
  "layout.pageGap": { value: "12px" },
172
+ // How far overlays start below the top of the window: `EnvironmentFrame` publishes its strip's height.
173
+ "layout.bannerInset": { value: "var(--environment-banner-inset, 0px)" },
172
174
  "layout.projectListOffset": { value: "28px" },
173
175
  "layout.sectionGap": { value: "12px" },
174
176
  // The design draws no centered card; one card alone on an empty page keeps more room than the sections of an app page.
@@ -97,6 +97,7 @@
97
97
  --spacing-layout\.content-gap: 12px;
98
98
  --spacing-layout\.cluster-gap: 16px;
99
99
  --spacing-layout\.page-gap: 12px;
100
+ --spacing-layout\.banner-inset: var(--environment-banner-inset, 0px);
100
101
  --spacing-layout\.project-list-offset: 28px;
101
102
  --spacing-layout\.section-gap: 12px;
102
103
  --spacing-layout\.centered-card-gap: 24px;
@@ -1573,6 +1574,10 @@
1573
1574
  border-radius: 3px;
1574
1575
  }
1575
1576
 
1577
+ .inset-x_none {
1578
+ inset-inline: var(--spacing-none);
1579
+ }
1580
+
1576
1581
  .inset-y_none {
1577
1582
  inset-block: var(--spacing-none);
1578
1583
  }
@@ -1825,10 +1830,6 @@
1825
1830
  border-color: var(--colors-bg\.surface);
1826
1831
  }
1827
1832
 
1828
- .inset-x_none {
1829
- inset-inline: var(--spacing-none);
1830
- }
1831
-
1832
1833
  .bd-t_2px_dashed_token\(colors\.border\.divider\) {
1833
1834
  border-top: 2px dashed var(--colors-border\.divider);
1834
1835
  }
@@ -3660,6 +3661,14 @@
3660
3661
  left: var(--spacing-none);
3661
3662
  }
3662
3663
 
3664
+ .top_layout\.bannerInset {
3665
+ top: var(--spacing-layout\.banner-inset);
3666
+ }
3667
+
3668
+ .bottom_none {
3669
+ bottom: var(--spacing-none);
3670
+ }
3671
+
3663
3672
  .min-h_control\.shortcut {
3664
3673
  min-height: var(--sizes-control\.shortcut);
3665
3674
  }
@@ -3975,12 +3984,16 @@
3975
3984
  padding-top: var(--spacing-layout\.cluster-gap);
3976
3985
  }
3977
3986
 
3987
+ .top_\[calc\(50\%_\+_token\(spacing\.layout\.bannerInset\)_\/_2\)\] {
3988
+ top: calc(50% + var(--spacing-layout\.banner-inset) / 2);
3989
+ }
3990
+
3978
3991
  .max-w_\[calc\(var\(--dialog-sheet\)_\+_2_\*_\(token\(spacing\.layout\.tightGap\)_\+_token\(sizes\.border\.hairline\)\)\)\] {
3979
3992
  max-width: calc(var(--dialog-sheet) + 2 * (var(--spacing-layout\.tight-gap) + var(--sizes-border\.hairline)));
3980
3993
  }
3981
3994
 
3982
- .max-h_\[calc\(100dvh_-_token\(spacing\.layout\.pageGap\)_\*_2\)\] {
3983
- max-height: calc(100dvh - var(--spacing-layout\.page-gap) * 2);
3995
+ .max-h_\[calc\(100dvh_-_token\(spacing\.layout\.bannerInset\)_-_token\(spacing\.layout\.pageGap\)_\*_2\)\] {
3996
+ max-height: calc(100dvh - var(--spacing-layout\.banner-inset) - var(--spacing-layout\.page-gap) * 2);
3984
3997
  }
3985
3998
 
3986
3999
  .w_overlay\.popoverNarrow {
@@ -4195,10 +4208,6 @@
4195
4208
  width: 320px;
4196
4209
  }
4197
4210
 
4198
- .bottom_none {
4199
- bottom: var(--spacing-none);
4200
- }
4201
-
4202
4211
  .w_var\(--sparkline-plot-width\,_100\%\) {
4203
4212
  width: var(--sparkline-plot-width, 100%);
4204
4213
  }
@@ -9892,9 +9901,6 @@
9892
9901
  }
9893
9902
  .phone\:gap_layout\.clusterGap {
9894
9903
  gap: var(--spacing-layout\.cluster-gap);
9895
- }
9896
- .phone\:inset-y_none {
9897
- inset-block: var(--spacing-none);
9898
9904
  }
9899
9905
  .phone\:bd-e_1px_solid_token\(colors\.border\.panel\) {
9900
9906
  border-inline-end: 1px solid var(--colors-border\.panel);
@@ -10007,14 +10013,20 @@
10007
10013
  .phone\:ov-x_auto {
10008
10014
  overflow-x: auto;
10009
10015
  }
10010
- .phone\:top_layout\.pageGap {
10011
- top: var(--spacing-layout\.page-gap);
10016
+ .phone\:top_\[calc\(token\(spacing\.layout\.bannerInset\)_\+_token\(spacing\.layout\.pageGap\)\)\] {
10017
+ top: calc(var(--spacing-layout\.banner-inset) + var(--spacing-layout\.page-gap));
10012
10018
  }
10013
10019
  .phone\:w_\[100vw\] {
10014
10020
  width: 100vw;
10015
10021
  }
10016
10022
  .phone\:w_full {
10017
10023
  width: var(--sizes-full);
10024
+ }
10025
+ .phone\:top_layout\.bannerInset {
10026
+ top: var(--spacing-layout\.banner-inset);
10027
+ }
10028
+ .phone\:bottom_none {
10029
+ bottom: var(--spacing-none);
10018
10030
  }
10019
10031
  .phone\:w_shell\.sidebar {
10020
10032
  width: var(--sizes-shell\.sidebar);
@@ -135,6 +135,10 @@ const tokens = {
135
135
  "value": "12px",
136
136
  "variable": "var(--spacing-layout\\.page-gap)"
137
137
  },
138
+ "spacing.layout.bannerInset": {
139
+ "value": "var(--environment-banner-inset, 0px)",
140
+ "variable": "var(--spacing-layout\\.banner-inset)"
141
+ },
138
142
  "spacing.layout.projectListOffset": {
139
143
  "value": "28px",
140
144
  "variable": "var(--spacing-layout\\.project-list-offset)"
@@ -1687,6 +1691,10 @@ const tokens = {
1687
1691
  "value": "calc(var(--spacing-layout\\.page-gap) * -1)",
1688
1692
  "variable": "var(--spacing-layout\\.page-gap)"
1689
1693
  },
1694
+ "spacing.-layout.bannerInset": {
1695
+ "value": "calc(var(--spacing-layout\\.banner-inset) * -1)",
1696
+ "variable": "var(--spacing-layout\\.banner-inset)"
1697
+ },
1690
1698
  "spacing.-layout.projectListOffset": {
1691
1699
  "value": "calc(var(--spacing-layout\\.project-list-offset) * -1)",
1692
1700
  "variable": "var(--spacing-layout\\.project-list-offset)"
@@ -5,7 +5,7 @@ export type ColorPalette = "transparent" | "currentColor" | "bg.canvas" | "bg.pa
5
5
 
6
6
  export type ColorToken = "transparent" | "currentColor" | "bg.canvas" | "bg.panel" | "bg.card" | "bg.avatar" | "bg.backdrop" | "bg.popover" | "bg.modalShell" | "bg.modalSheet" | "bg.drawerShell" | "bg.drawerSheet" | "bg.infoSubtle" | "bg.successSubtle" | "bg.warningSubtle" | "bg.errorSubtle" | "fg.archived" | "border.subtle" | "border.focus" | "fg.primary" | "fg.muted" | "fg.secondary" | "fg.subtle" | "fg.label" | "border.control" | "border.canvas" | "border.divider" | "border.popover" | "border.menuHover" | "bg.field" | "bg.formField" | "bg.openTrigger" | "bg.fieldDisabled" | "border.mark" | "border.error" | "bg.rowHover" | "bg.selected" | "bg.selectedHover" | "border.selected" | "bg.track" | "bg.knob" | "border.panel" | "border.card" | "border.glass" | "border.hairline" | "bg.surface" | "bg.control" | "bg.pill" | "bg.glass" | "bg.raised" | "bg.raisedHover" | "bg.check" | "bg.hover" | "bg.controlHover" | "bg.fill" | "bg.primary" | "bg.primaryHover" | "bg.warningTint" | "bg.successTint" | "bg.errorTint" | "accent.brand" | "accent.green" | "accent.red" | "accent.redDark" | "accent.yellow" | "accent.yellowIcon" | "accent.blue" | "accent.bronze" | "border.bronze" | "chart.bar" | "chart.trend" | "chart.category1" | "chart.category2" | "chart.category3" | "chart.category4" | "chart.barTrack" | "chart.progressTrack" | "chart.atRiskTrack" | "chart.neutral" | "chart.notStarted" | "fg.onAccent" | "colorPalette"
7
7
 
8
- export type SpacingToken = "none" | "control.trackInset" | "focus.ringWidth" | "focus.ringOffset" | "focus.ringReach" | "control.iconGap" | "control.block" | "control.inline" | "control.compactBlock" | "control.compactInline" | "control.largeInline" | "control.iconInline" | "control.launcherInlineEnd" | "search.inline" | "field.block" | "gap.4" | "gap.6" | "gap.8" | "gap.12" | "gap.16" | "gap.20" | "gap.24" | "layout.tightGap" | "sidebar.groupGap" | "sidebar.footerGap" | "sidebar.inline" | "sidebar.block" | "control.tabInline" | "layout.controlGap" | "layout.contentGap" | "layout.clusterGap" | "layout.pageGap" | "layout.projectListOffset" | "layout.sectionGap" | "layout.centeredCardGap" | "log.columnGap" | "log.detailIndent" | "log.detailIndentCompact" | "log.rowBlock" | "log.entryBlock" | "log.entryInline" | "log.entryCompactBlock" | "log.entryPanelBlock" | "log.entryPanelInline" | "menu.inset" | "menu.itemInline" | "sidebar.markGap" | "panel.hairline" | "panel.compact" | "panel.default" | "panel.comfortable" | "panelHeader.describedBottom" | "listRow.dividedBlock" | "panel.roomy" | "panel.card" | "tile.block" | "tile.inline" | "skeleton.tileGap" | "emptyState.pageBlock" | "emptyState.compactBlock" | "stage.connectorGap" | "list.numberGap" | "meter.rowGap" | "page.inline" | "shell.leading" | "table.cell" | "table.compactRowBlock" | "-none" | "-control.trackInset" | "-focus.ringWidth" | "-focus.ringOffset" | "-focus.ringReach" | "-control.iconGap" | "-control.block" | "-control.inline" | "-control.compactBlock" | "-control.compactInline" | "-control.largeInline" | "-control.iconInline" | "-control.launcherInlineEnd" | "-search.inline" | "-field.block" | "-gap.4" | "-gap.6" | "-gap.8" | "-gap.12" | "-gap.16" | "-gap.20" | "-gap.24" | "-layout.tightGap" | "-sidebar.groupGap" | "-sidebar.footerGap" | "-sidebar.inline" | "-sidebar.block" | "-control.tabInline" | "-layout.controlGap" | "-layout.contentGap" | "-layout.clusterGap" | "-layout.pageGap" | "-layout.projectListOffset" | "-layout.sectionGap" | "-layout.centeredCardGap" | "-log.columnGap" | "-log.detailIndent" | "-log.detailIndentCompact" | "-log.rowBlock" | "-log.entryBlock" | "-log.entryInline" | "-log.entryCompactBlock" | "-log.entryPanelBlock" | "-log.entryPanelInline" | "-menu.inset" | "-menu.itemInline" | "-sidebar.markGap" | "-panel.hairline" | "-panel.compact" | "-panel.default" | "-panel.comfortable" | "-panelHeader.describedBottom" | "-listRow.dividedBlock" | "-panel.roomy" | "-panel.card" | "-tile.block" | "-tile.inline" | "-skeleton.tileGap" | "-emptyState.pageBlock" | "-emptyState.compactBlock" | "-stage.connectorGap" | "-list.numberGap" | "-meter.rowGap" | "-page.inline" | "-shell.leading" | "-table.cell" | "-table.compactRowBlock"
8
+ export type SpacingToken = "none" | "control.trackInset" | "focus.ringWidth" | "focus.ringOffset" | "focus.ringReach" | "control.iconGap" | "control.block" | "control.inline" | "control.compactBlock" | "control.compactInline" | "control.largeInline" | "control.iconInline" | "control.launcherInlineEnd" | "search.inline" | "field.block" | "gap.4" | "gap.6" | "gap.8" | "gap.12" | "gap.16" | "gap.20" | "gap.24" | "layout.tightGap" | "sidebar.groupGap" | "sidebar.footerGap" | "sidebar.inline" | "sidebar.block" | "control.tabInline" | "layout.controlGap" | "layout.contentGap" | "layout.clusterGap" | "layout.pageGap" | "layout.bannerInset" | "layout.projectListOffset" | "layout.sectionGap" | "layout.centeredCardGap" | "log.columnGap" | "log.detailIndent" | "log.detailIndentCompact" | "log.rowBlock" | "log.entryBlock" | "log.entryInline" | "log.entryCompactBlock" | "log.entryPanelBlock" | "log.entryPanelInline" | "menu.inset" | "menu.itemInline" | "sidebar.markGap" | "panel.hairline" | "panel.compact" | "panel.default" | "panel.comfortable" | "panelHeader.describedBottom" | "listRow.dividedBlock" | "panel.roomy" | "panel.card" | "tile.block" | "tile.inline" | "skeleton.tileGap" | "emptyState.pageBlock" | "emptyState.compactBlock" | "stage.connectorGap" | "list.numberGap" | "meter.rowGap" | "page.inline" | "shell.leading" | "table.cell" | "table.compactRowBlock" | "-none" | "-control.trackInset" | "-focus.ringWidth" | "-focus.ringOffset" | "-focus.ringReach" | "-control.iconGap" | "-control.block" | "-control.inline" | "-control.compactBlock" | "-control.compactInline" | "-control.largeInline" | "-control.iconInline" | "-control.launcherInlineEnd" | "-search.inline" | "-field.block" | "-gap.4" | "-gap.6" | "-gap.8" | "-gap.12" | "-gap.16" | "-gap.20" | "-gap.24" | "-layout.tightGap" | "-sidebar.groupGap" | "-sidebar.footerGap" | "-sidebar.inline" | "-sidebar.block" | "-control.tabInline" | "-layout.controlGap" | "-layout.contentGap" | "-layout.clusterGap" | "-layout.pageGap" | "-layout.bannerInset" | "-layout.projectListOffset" | "-layout.sectionGap" | "-layout.centeredCardGap" | "-log.columnGap" | "-log.detailIndent" | "-log.detailIndentCompact" | "-log.rowBlock" | "-log.entryBlock" | "-log.entryInline" | "-log.entryCompactBlock" | "-log.entryPanelBlock" | "-log.entryPanelInline" | "-menu.inset" | "-menu.itemInline" | "-sidebar.markGap" | "-panel.hairline" | "-panel.compact" | "-panel.default" | "-panel.comfortable" | "-panelHeader.describedBottom" | "-listRow.dividedBlock" | "-panel.roomy" | "-panel.card" | "-tile.block" | "-tile.inline" | "-skeleton.tileGap" | "-emptyState.pageBlock" | "-emptyState.compactBlock" | "-stage.connectorGap" | "-list.numberGap" | "-meter.rowGap" | "-page.inline" | "-shell.leading" | "-table.cell" | "-table.compactRowBlock"
9
9
 
10
10
  export type SizeToken = "0" | "full" | "border.hairline" | "indicator.dot" | "indicator.live" | "indicator.badge" | "indicator.count" | "log.caretColumn" | "log.minimum" | "log.timeColumn" | "log.rawMaximum" | "assistant.orb" | "widget.header" | "avatar.welcome" | "avatar.micro" | "avatar.small" | "avatar.menu" | "avatar.agent" | "avatar.row" | "avatar.owner" | "avatar.large" | "mark.inline" | "progress.track" | "progress.segment" | "indicator.swatch" | "menu.item" | "code.maximum" | "brand.logo" | "indicator.radio" | "skeleton.line" | "skeleton.bar" | "skeleton.badge" | "skeleton.caption" | "skeleton.short" | "skeleton.pill" | "skeleton.textLine" | "tile.minimum" | "skeleton.card" | "skeleton.cardBody" | "skeleton.medium" | "skeleton.long" | "chart.small" | "chart.medium" | "chart.large" | "control.mark" | "file.chipName" | "control.checkbox" | "control.radio" | "control.knob" | "control.toggleTrack" | "control.clear" | "control.chip" | "control.wordKeycap" | "control.send" | "control.small" | "control.restingTab" | "control.row" | "control.round" | "control.roundRail" | "control.roundSmall" | "control.sidebarSearch" | "list.number" | "tile.icon" | "partsRollup.height" | "sparkline.width" | "sparkline.height" | "sparkline.plotWidth" | "sparkline.plotHeight" | "control.shortcut" | "control.compact" | "control.default" | "control.search" | "control.searchField" | "workspace.mark" | "workspace.avatar" | "control.field" | "sidebar.projectAction" | "sidebar.railRule" | "sidebar.shortRow" | "chat.footer" | "shell.header" | "shell.collapsed" | "table.scroll" | "table.headRow" | "field.textarea" | "field.inline" | "chat.input" | "chat.inputMobile" | "chat.composerMinimum" | "overlay.menu" | "overlay.menuList" | "overlay.helpMenu" | "overlay.tray" | "overlay.trayList" | "overlay.tooltip" | "overlay.popoverNarrow" | "overlay.popover" | "overlay.popoverWide" | "search.dropdownPreview" | "emptyState.minimum" | "search.regularPreview" | "search.sidebarPreview" | "search.toolbar" | "shell.sidebar" | "overlay.dialog" | "overlay.palette" | "commandPalette.query" | "commandPalette.row" | "commandPalette.footer" | "overlay.dialogWide" | "overlay.sheet" | "valueChange.label" | "sheet.footerNote" | "overlay.sheetNarrow" | "overlay.sheetDocked" | "toast.width" | "toast.progressWidth" | "toast.progressHeight" | "chat.thread" | "chat.composer" | "chat.bubble" | "chat.attachment" | "settings.column" | "card.centered" | "scroll.bar" | "card.centeredWide" | "card.centeredForm" | "steps.image" | "checklist.maximum" | "page.maximum"
11
11
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ciridae/ui",
3
- "version": "1.2.1",
3
+ "version": "1.3.0",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -202,6 +202,10 @@
202
202
  "types": "./dist/components/chip.d.ts",
203
203
  "default": "./dist/components/chip.js"
204
204
  },
205
+ "./profile-dialog": {
206
+ "types": "./dist/components/profile-dialog.d.ts",
207
+ "default": "./dist/components/profile-dialog.js"
208
+ },
205
209
  "./member-directory": {
206
210
  "types": "./dist/components/member-directory.d.ts",
207
211
  "default": "./dist/components/member-directory.js"