@robert-stackflow/oneui 0.6.39 → 0.6.41

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.
Files changed (60) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +347 -329
  3. package/components/AccountItem.module.css +103 -103
  4. package/components/AppShell.module.css +223 -223
  5. package/components/Badge.module.css +30 -30
  6. package/components/BarChart.module.css +35 -35
  7. package/components/Breadcrumb.module.css +97 -97
  8. package/components/Button.module.css +120 -120
  9. package/components/Card.d.ts +2 -1
  10. package/components/Card.js +3 -1
  11. package/components/Card.module.css +6 -1
  12. package/components/Checkbox.module.css +95 -95
  13. package/components/Control.module.css +86 -86
  14. package/components/DataTable.module.css +75 -75
  15. package/components/Descriptions.module.css +4 -3
  16. package/components/Form.d.ts +5 -1
  17. package/components/Form.js +5 -1
  18. package/components/FormField.js +1 -0
  19. package/components/FormField.module.css +11 -3
  20. package/components/HierarchyPicker.module.css +185 -185
  21. package/components/IconButton.module.css +6 -10
  22. package/components/Indicator.module.css +83 -83
  23. package/components/Layout.module.css +82 -82
  24. package/components/Markdown.module.css +227 -227
  25. package/components/NativeForm.d.ts +10 -0
  26. package/components/NativeForm.js +155 -0
  27. package/components/NavBar.module.css +130 -130
  28. package/components/Popover.js +12 -5
  29. package/components/Progress.module.css +33 -33
  30. package/components/RadioGroup.module.css +87 -87
  31. package/components/RangeSlider.module.css +141 -141
  32. package/components/ResizablePanel.module.css +101 -101
  33. package/components/ResourceCard.module.css +98 -98
  34. package/components/Section.d.ts +7 -4
  35. package/components/Section.js +24 -8
  36. package/components/Section.module.css +24 -5
  37. package/components/SettingRow.js +1 -1
  38. package/components/SettingRow.module.css +8 -6
  39. package/components/SettingsLayout.module.css +3 -2
  40. package/components/Slider.module.css +19 -19
  41. package/components/SplitButton.d.ts +14 -3
  42. package/components/SplitButton.js +76 -40
  43. package/components/SplitButton.module.css +34 -8
  44. package/components/Steps.module.css +176 -176
  45. package/components/Tab.module.css +148 -148
  46. package/components/ThemePicker.module.css +178 -178
  47. package/components/TimeColumns.module.css +47 -47
  48. package/components/Timeline.module.css +202 -202
  49. package/components/TreeTable.module.css +57 -57
  50. package/components/UptimeChart.module.css +15 -15
  51. package/components/field.d.ts +1 -1
  52. package/components/field.js +2 -1
  53. package/components/form-validation.d.ts +4 -0
  54. package/components/form-validation.js +22 -0
  55. package/components/index.d.ts +5 -3
  56. package/components/index.js +9 -3
  57. package/package.json +1 -1
  58. package/styles/base.css +9 -0
  59. package/styles/blue.css +270 -270
  60. package/styles/minimal.css +2 -2
@@ -1,98 +1,98 @@
1
- .card {
2
- display: flex;
3
- flex-direction: column;
4
- padding: 24px;
5
- color: var(--fg);
6
- text-decoration: none;
7
- transition:
8
- border-color var(--motion-hover),
9
- box-shadow var(--motion-hover);
10
- }
11
- .card:hover {
12
- border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
13
- box-shadow: var(--shadow);
14
- }
15
- .header {
16
- display: flex;
17
- align-items: center;
18
- gap: 12px;
19
- min-width: 0;
20
- }
21
- .icon {
22
- width: 40px;
23
- height: 40px;
24
- flex: none;
25
- border-radius: var(--radius);
26
- display: grid;
27
- place-items: center;
28
- background: var(--selected);
29
- color: var(--accent-ink, var(--accent));
30
- }
31
- .icon svg {
32
- width: 20px;
33
- height: 20px;
34
- }
35
- .heading {
36
- flex: 1;
37
- min-width: 0;
38
- }
39
- .heading h3 {
40
- font-size: 15px;
41
- font-weight: 600;
42
- color: var(--fg);
43
- overflow: hidden;
44
- text-overflow: ellipsis;
45
- white-space: nowrap;
46
- }
47
- .heading p {
48
- font-size: 12px;
49
- color: var(--muted);
50
- margin-top: 3px;
51
- overflow: hidden;
52
- text-overflow: ellipsis;
53
- white-space: nowrap;
54
- }
55
- .description {
56
- font-size: 13px;
57
- line-height: 1.7;
58
- margin: 18px 0 0;
59
- color: var(--muted);
60
- display: -webkit-box;
61
- -webkit-line-clamp: 2;
62
- -webkit-box-orient: vertical;
63
- overflow: hidden;
64
- }
65
- .footer {
66
- display: flex;
67
- align-items: center;
68
- justify-content: space-between;
69
- gap: 12px;
70
- margin-top: auto;
71
- padding-top: 20px;
72
- color: var(--muted);
73
- }
74
- .facts {
75
- display: flex;
76
- align-items: center;
77
- flex-wrap: wrap;
78
- gap: 6px 14px;
79
- font-size: 12px;
80
- }
81
- .facts > span + span {
82
- padding-left: 14px;
83
- border-left: 1px solid var(--line);
84
- }
85
- @media (max-width: 600px) {
86
- .card {
87
- padding: 18px;
88
- }
89
- .header {
90
- gap: 10px;
91
- }
92
- .facts {
93
- gap: 6px 10px;
94
- }
95
- .facts > span + span {
96
- padding-left: 10px;
97
- }
98
- }
1
+ .card {
2
+ display: flex;
3
+ flex-direction: column;
4
+ padding: 24px;
5
+ color: var(--fg);
6
+ text-decoration: none;
7
+ transition:
8
+ border-color var(--motion-hover),
9
+ box-shadow var(--motion-hover);
10
+ }
11
+ .card:hover {
12
+ border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
13
+ box-shadow: var(--shadow);
14
+ }
15
+ .header {
16
+ display: flex;
17
+ align-items: center;
18
+ gap: 12px;
19
+ min-width: 0;
20
+ }
21
+ .icon {
22
+ width: 40px;
23
+ height: 40px;
24
+ flex: none;
25
+ border-radius: var(--radius);
26
+ display: grid;
27
+ place-items: center;
28
+ background: var(--selected);
29
+ color: var(--accent-ink, var(--accent));
30
+ }
31
+ .icon svg {
32
+ width: 20px;
33
+ height: 20px;
34
+ }
35
+ .heading {
36
+ flex: 1;
37
+ min-width: 0;
38
+ }
39
+ .heading h3 {
40
+ font-size: 15px;
41
+ font-weight: 600;
42
+ color: var(--fg);
43
+ overflow: hidden;
44
+ text-overflow: ellipsis;
45
+ white-space: nowrap;
46
+ }
47
+ .heading p {
48
+ font-size: 12px;
49
+ color: var(--muted);
50
+ margin-top: 3px;
51
+ overflow: hidden;
52
+ text-overflow: ellipsis;
53
+ white-space: nowrap;
54
+ }
55
+ .description {
56
+ font-size: 13px;
57
+ line-height: 1.7;
58
+ margin: 18px 0 0;
59
+ color: var(--muted);
60
+ display: -webkit-box;
61
+ -webkit-line-clamp: 2;
62
+ -webkit-box-orient: vertical;
63
+ overflow: hidden;
64
+ }
65
+ .footer {
66
+ display: flex;
67
+ align-items: center;
68
+ justify-content: space-between;
69
+ gap: 12px;
70
+ margin-top: auto;
71
+ padding-top: 20px;
72
+ color: var(--muted);
73
+ }
74
+ .facts {
75
+ display: flex;
76
+ align-items: center;
77
+ flex-wrap: wrap;
78
+ gap: 6px 14px;
79
+ font-size: 12px;
80
+ }
81
+ .facts > span + span {
82
+ padding-left: 14px;
83
+ border-left: 1px solid var(--line);
84
+ }
85
+ @media (max-width: 600px) {
86
+ .card {
87
+ padding: 18px;
88
+ }
89
+ .header {
90
+ gap: 10px;
91
+ }
92
+ .facts {
93
+ gap: 6px 10px;
94
+ }
95
+ .facts > span + span {
96
+ padding-left: 10px;
97
+ }
98
+ }
@@ -1,6 +1,9 @@
1
- import type { ReactNode } from "react";
2
- export declare function Section({ title, children, aside, }: {
3
- title: string;
1
+ import { type ComponentPropsWithoutRef, type ReactNode } from "react";
2
+ export type SectionProps = Omit<ComponentPropsWithoutRef<"section">, "title"> & {
3
+ title: ReactNode;
4
4
  children: ReactNode;
5
5
  aside?: ReactNode;
6
- }): import("react").JSX.Element;
6
+ headingLevel?: 2 | 3 | 4 | 5 | 6;
7
+ contentLayout?: "default" | "settings";
8
+ };
9
+ export declare function Section({ title, children, aside, headingLevel, contentLayout, className, ...props }: SectionProps): import("react").JSX.Element;
@@ -1,18 +1,34 @@
1
1
  "use client";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { useId } from "react";
3
4
  import s from "./Section.module.css";
4
5
  function Section({
5
6
  title,
6
7
  children,
7
- aside
8
+ aside,
9
+ headingLevel = 2,
10
+ contentLayout = "default",
11
+ className = "",
12
+ ...props
8
13
  }) {
9
- return /* @__PURE__ */ jsxs("section", { className: s.section, children: [
10
- /* @__PURE__ */ jsxs("header", { children: [
11
- /* @__PURE__ */ jsx("h2", { children: title }),
12
- aside
13
- ] }),
14
- children
15
- ] });
14
+ const titleId = useId();
15
+ const Heading = `h${headingLevel}`;
16
+ return /* @__PURE__ */ jsxs(
17
+ "section",
18
+ {
19
+ ...props,
20
+ className: `${s.section} ${className}`,
21
+ "data-content-layout": contentLayout,
22
+ "aria-labelledby": props["aria-labelledby"] ?? (props["aria-label"] ? void 0 : titleId),
23
+ children: [
24
+ /* @__PURE__ */ jsxs("header", { children: [
25
+ /* @__PURE__ */ jsx(Heading, { id: titleId, className: s.title, children: title }),
26
+ aside
27
+ ] }),
28
+ children
29
+ ]
30
+ }
31
+ );
16
32
  }
17
33
  export {
18
34
  Section
@@ -1,14 +1,33 @@
1
1
  .section {
2
- margin-bottom: 27px;
2
+ margin: 0 0 var(--section-gap, 28px);
3
3
  min-width: 0;
4
4
  }
5
5
  .section > header {
6
6
  display: flex;
7
7
  align-items: center;
8
8
  justify-content: space-between;
9
- margin-bottom: 13px;
9
+ flex-wrap: wrap;
10
+ gap: 8px 16px;
11
+ margin-bottom: var(--section-title-gap, 12px);
10
12
  }
11
- .section > header h2 {
12
- font-size: 13px;
13
- font-weight: 500;
13
+ .title {
14
+ min-width: 0;
15
+ margin: 0;
16
+ color: var(--fg);
17
+ font-size: var(--section-title-size, 14px);
18
+ font-weight: var(--section-title-weight, 600);
19
+ line-height: var(--section-title-line-height, 1.5);
20
+ overflow-wrap: anywhere;
21
+ }
22
+ .section[data-content-layout="settings"] {
23
+ margin-bottom: max(
24
+ 0px,
25
+ calc(var(--section-gap, 28px) - var(--setting-row-padding-block, 15px))
26
+ );
27
+ }
28
+ .section[data-content-layout="settings"] > header {
29
+ margin-bottom: 0;
30
+ }
31
+ .section:last-child {
32
+ margin-bottom: 0;
14
33
  }
@@ -28,7 +28,7 @@ function SettingRow({
28
28
  "data-sized": controlWidth !== void 0,
29
29
  children: [
30
30
  /* @__PURE__ */ jsxs("div", { className: s.settingCopy, children: [
31
- /* @__PURE__ */ jsx("h3", { id: titleId, children: controlId ? /* @__PURE__ */ jsx("label", { htmlFor: controlId, children: title }) : title }),
31
+ /* @__PURE__ */ jsx("div", { id: titleId, className: s.settingTitle, children: controlId ? /* @__PURE__ */ jsx("label", { htmlFor: controlId, children: title }) : title }),
32
32
  description && /* @__PURE__ */ jsx("p", { id: descriptionId, children: description })
33
33
  ] }),
34
34
  /* @__PURE__ */ jsx(
@@ -4,7 +4,7 @@
4
4
  justify-content: space-between;
5
5
  gap: 24px;
6
6
  min-height: var(--row-height);
7
- padding: 15px 0;
7
+ padding: var(--setting-row-padding-block, 15px) 0;
8
8
  }
9
9
  .settingRow + .settingRow[data-divider="true"] {
10
10
  border-top: var(--separator-width) var(--separator-style)
@@ -17,20 +17,22 @@
17
17
  flex: 1;
18
18
  min-width: 0;
19
19
  }
20
- .settingCopy h3 {
21
- font-size: 13px;
22
- font-weight: 400;
20
+ .settingTitle {
21
+ font-size: var(--field-label-size, 13px);
22
+ font-weight: var(--field-label-weight, 400);
23
+ line-height: 1.5;
23
24
  }
24
25
  .settingCopy label {
25
26
  font: inherit;
26
27
  color: inherit;
27
28
  cursor: pointer;
28
29
  }
29
- .settingRow[data-title-bold="true"] .settingCopy h3 {
30
+ .settingRow[data-title-bold="true"] .settingTitle {
30
31
  font-weight: 600;
31
32
  }
32
33
  .settingCopy p {
33
- font-size: 11px;
34
+ font-size: var(--field-message-size, 12px);
35
+ line-height: 1.5;
34
36
  color: var(--muted);
35
37
  margin-top: 4px;
36
38
  max-width: 440px;
@@ -19,9 +19,10 @@
19
19
  min-width: 0;
20
20
  }
21
21
  .panel > h2 {
22
- font-size: 16px;
22
+ font-size: var(--card-title-size, 16px);
23
23
  margin: 2px 0 18px;
24
- font-weight: 600;
24
+ font-weight: var(--card-title-weight, 600);
25
+ line-height: 1.5;
25
26
  }
26
27
  .card {
27
28
  padding: 0 18px;
@@ -1,19 +1,19 @@
1
- .field {
2
- display: grid;
3
- gap: 12px;
4
- }
5
- .field label {
6
- display: flex;
7
- justify-content: space-between;
8
- font-size: 12px;
9
- }
10
- .field label span {
11
- color: var(--muted);
12
- font-variant-numeric: tabular-nums;
13
- }
14
- .field input {
15
- width: 100%;
16
- margin: 6px 0;
17
- accent-color: var(--accent-ink, var(--accent));
18
- cursor: pointer;
19
- }
1
+ .field {
2
+ display: grid;
3
+ gap: 12px;
4
+ }
5
+ .field label {
6
+ display: flex;
7
+ justify-content: space-between;
8
+ font-size: 12px;
9
+ }
10
+ .field label span {
11
+ color: var(--muted);
12
+ font-variant-numeric: tabular-nums;
13
+ }
14
+ .field input {
15
+ width: 100%;
16
+ margin: 6px 0;
17
+ accent-color: var(--accent-ink, var(--accent));
18
+ cursor: pointer;
19
+ }
@@ -7,11 +7,22 @@ export type SplitButtonItem = {
7
7
  description?: string;
8
8
  onSelect(): void;
9
9
  };
10
- export declare function SplitButton({ children, onClick, items, menuLabel, variant, disabled, }: {
10
+ export declare function SplitButton({ children, onClick, items, menuLabel, variant, disabled, label, iconOnly, size, pressed, panel, panelWidth, open: suppliedOpen, onOpenChange, portalContainer, }: {
11
11
  children: ReactNode;
12
12
  onClick(): void;
13
- items: SplitButtonItem[];
13
+ items?: SplitButtonItem[];
14
14
  menuLabel: string;
15
- variant?: "primary" | "secondary";
15
+ variant?: "primary" | "secondary" | "ghost";
16
16
  disabled?: boolean;
17
+ /** Accessible name for the primary action; required for icon-only content. */
18
+ label?: string;
19
+ iconOnly?: boolean;
20
+ size?: "small" | "normal";
21
+ pressed?: boolean;
22
+ /** Custom nonmodal panel in place of menu items, e.g. color or text settings. */
23
+ panel?: ReactNode;
24
+ panelWidth?: number;
25
+ open?: boolean;
26
+ onOpenChange?(open: boolean): void;
27
+ portalContainer?: HTMLElement | null;
17
28
  }): import("react").JSX.Element;
@@ -4,53 +4,83 @@ import { MenuItem } from "./MenuItem.js";
4
4
  import { useId, useRef, useState } from "react";
5
5
  import { Popover } from "./Popover.js";
6
6
  import { DisclosureChevron } from "./DisclosureChevron.js";
7
+ import { Tooltip } from "./Tooltip.js";
7
8
  import s from "./SplitButton.module.css";
8
9
  function SplitButton({
9
10
  children,
10
11
  onClick,
11
- items,
12
+ items = [],
12
13
  menuLabel,
13
14
  variant = "secondary",
14
- disabled = false
15
+ disabled = false,
16
+ label,
17
+ iconOnly = false,
18
+ size = "normal",
19
+ pressed,
20
+ panel,
21
+ panelWidth = 280,
22
+ open: suppliedOpen,
23
+ onOpenChange,
24
+ portalContainer
15
25
  }) {
16
- const [open, setOpen] = useState(false), anchor = useRef(null), root = useRef(null), id = useId();
26
+ const [localOpen, setLocalOpen] = useState(false), anchor = useRef(null), root = useRef(null), id = useId();
27
+ const open = suppliedOpen ?? localOpen;
28
+ const setOpen = (value) => {
29
+ if (suppliedOpen === void 0) setLocalOpen(value);
30
+ onOpenChange?.(value);
31
+ };
17
32
  const reserveIcon = items.some((item) => !!item.icon);
18
33
  return /* @__PURE__ */ jsxs(Fragment, { children: [
19
- /* @__PURE__ */ jsxs("div", { className: s.split, "data-variant": variant, "data-disabled": disabled, children: [
20
- /* @__PURE__ */ jsx(
21
- "button",
22
- {
23
- type: "button",
24
- disabled,
25
- onClick: () => {
26
- setOpen(false);
27
- onClick();
28
- },
29
- children
30
- }
31
- ),
32
- /* @__PURE__ */ jsx(
33
- "button",
34
- {
35
- ref: anchor,
36
- type: "button",
37
- className: s.arrow,
38
- disabled,
39
- "aria-label": menuLabel,
40
- "aria-haspopup": "menu",
41
- "aria-controls": id,
42
- "aria-expanded": open,
43
- onClick: () => setOpen((v) => !v),
44
- onKeyDown: (e) => {
45
- if (e.key === "ArrowDown") {
46
- e.preventDefault();
47
- setOpen(true);
34
+ /* @__PURE__ */ jsxs(
35
+ "div",
36
+ {
37
+ className: s.split,
38
+ "data-variant": variant,
39
+ "data-disabled": disabled,
40
+ "data-icon-only": iconOnly || void 0,
41
+ "data-size": size,
42
+ "data-expanded": open && !disabled,
43
+ "data-pressed": pressed && !disabled,
44
+ children: [
45
+ /* @__PURE__ */ jsx(Tooltip, { content: label || menuLabel, disabled: !iconOnly, children: /* @__PURE__ */ jsx(
46
+ "button",
47
+ {
48
+ type: "button",
49
+ className: s.action,
50
+ disabled,
51
+ "aria-label": label,
52
+ "aria-pressed": pressed,
53
+ onClick: () => {
54
+ setOpen(false);
55
+ onClick();
56
+ },
57
+ children
48
58
  }
49
- },
50
- children: /* @__PURE__ */ jsx(DisclosureChevron, { expanded: open })
51
- }
52
- )
53
- ] }),
59
+ ) }),
60
+ /* @__PURE__ */ jsx(
61
+ "button",
62
+ {
63
+ ref: anchor,
64
+ type: "button",
65
+ className: s.arrow,
66
+ disabled,
67
+ "aria-label": menuLabel,
68
+ "aria-haspopup": panel ? "dialog" : "menu",
69
+ "aria-controls": id,
70
+ "aria-expanded": open && !disabled,
71
+ onClick: () => setOpen(!open),
72
+ onKeyDown: (e) => {
73
+ if (e.key === "ArrowDown") {
74
+ e.preventDefault();
75
+ setOpen(true);
76
+ }
77
+ },
78
+ children: /* @__PURE__ */ jsx(DisclosureChevron, { expanded: open })
79
+ }
80
+ )
81
+ ]
82
+ }
83
+ ),
54
84
  /* @__PURE__ */ jsx(
55
85
  Popover,
56
86
  {
@@ -58,10 +88,16 @@ function SplitButton({
58
88
  open: open && !disabled,
59
89
  onClose: () => setOpen(false),
60
90
  id,
61
- role: "menu",
91
+ role: panel ? "dialog" : "menu",
62
92
  label: menuLabel,
63
- width: 235,
93
+ width: panel ? panelWidth : 235,
94
+ arrow: !!panel,
95
+ offset: panel ? 12 : void 0,
96
+ align: panel ? "center" : "start",
97
+ portalContainer,
98
+ autoFocus: !panel,
64
99
  onKeyDown: (e) => {
100
+ if (panel) return;
65
101
  const buttons = Array.from(
66
102
  root.current?.querySelectorAll(
67
103
  "button:not(:disabled)"
@@ -76,7 +112,7 @@ function SplitButton({
76
112
  buttons[e.key === "Home" ? 0 : e.key === "End" ? buttons.length - 1 : (index + (e.key === "ArrowDown" ? 1 : buttons.length - 1)) % buttons.length].focus();
77
113
  }
78
114
  },
79
- children: /* @__PURE__ */ jsx("div", { ref: root, className: s.menu, children: items.map((item, index) => /* @__PURE__ */ jsx(
115
+ children: panel || /* @__PURE__ */ jsx("div", { ref: root, className: s.menu, children: items.map((item, index) => /* @__PURE__ */ jsx(
80
116
  MenuItem,
81
117
  {
82
118
  label: item.label,
@@ -6,7 +6,7 @@
6
6
  overflow: hidden;
7
7
  background: var(--surface);
8
8
  }
9
- .split > button {
9
+ .split button {
10
10
  display: flex;
11
11
  align-items: center;
12
12
  justify-content: center;
@@ -27,30 +27,56 @@
27
27
  border-left: var(--separator-width) var(--separator-style)
28
28
  var(--separator-color);
29
29
  }
30
- .split > button:hover:not(:disabled),
31
- .split > button[aria-expanded="true"] {
30
+ .split button:hover:not(:disabled),
31
+ .split button[aria-expanded="true"] {
32
32
  background: var(--hover);
33
33
  }
34
- .split > button:active:not(:disabled) > svg {
34
+ .split button:active:not(:disabled) > svg {
35
35
  scale: 0.94;
36
36
  }
37
- .split > button:focus-visible {
37
+ .split button:focus-visible {
38
38
  outline-offset: -3px;
39
39
  }
40
40
  .split[data-variant="primary"] {
41
41
  background: var(--accent);
42
42
  border-color: var(--accent);
43
43
  }
44
- .split[data-variant="primary"] > button {
44
+ .split[data-variant="primary"] button {
45
45
  color: var(--on-accent);
46
46
  }
47
47
  .split[data-variant="primary"] > .arrow {
48
48
  border-left-color: color-mix(in srgb, var(--on-accent) 24%, transparent);
49
49
  }
50
- .split[data-variant="primary"] > button:hover:not(:disabled),
51
- .split[data-variant="primary"] > button[aria-expanded="true"] {
50
+ .split[data-variant="primary"] button:hover:not(:disabled),
51
+ .split[data-variant="primary"] button[aria-expanded="true"] {
52
52
  background: color-mix(in srgb, var(--on-accent) 14%, transparent);
53
53
  }
54
54
  .menu {
55
55
  display: block;
56
56
  }
57
+ .split[data-size="small"] button {
58
+ min-height: 30px;
59
+ padding-block: 0;
60
+ }
61
+ .split[data-icon-only] .action {
62
+ width: 30px;
63
+ padding-inline: 0;
64
+ }
65
+ .split[data-icon-only] > .arrow {
66
+ width: 19px;
67
+ min-width: 19px;
68
+ }
69
+ .split[data-variant="ghost"] {
70
+ border: 0;
71
+ background: transparent;
72
+ border-radius: calc(var(--radius) - 3px);
73
+ color: var(--muted);
74
+ }
75
+ .split[data-variant="ghost"] button {
76
+ color: inherit;
77
+ }
78
+ .split[data-variant="ghost"][data-expanded="true"],
79
+ .split[data-variant="ghost"][data-pressed="true"] {
80
+ background: var(--hover);
81
+ color: var(--accent-ink, var(--fg));
82
+ }