@glasshome/ui 1.7.0 → 1.9.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.
@@ -19,7 +19,33 @@ type SectionCardProps = {
19
19
  children?: JSX.Element;
20
20
  };
21
21
  export declare function SectionCard(props: SectionCardProps): JSX.Element;
22
- export declare function SectionRow(props: ComponentProps<"div">): JSX.Element;
22
+ export declare function SectionRow(props: ComponentProps<"div"> & {
23
+ interactive?: boolean;
24
+ }): JSX.Element;
25
+ type ListRowProps = {
26
+ /** Leading visual: SectionIcon, Avatar, drag handle. */
27
+ leading?: JSX.Element;
28
+ title: JSX.Element;
29
+ /** Chips inline after the title. */
30
+ badges?: JSX.Element;
31
+ subtitle?: JSX.Element;
32
+ /** Quiet trailing text: versions, timestamps, counts. */
33
+ meta?: JSX.Element;
34
+ /** Controls at the row's end. Stacked above the open overlay. */
35
+ actions?: JSX.Element;
36
+ /** Activates the whole row. Renders a chevron when there are no actions. */
37
+ onOpen?: () => void;
38
+ /** The whole row is a link. Same chevron and press target as onOpen. */
39
+ href?: string;
40
+ /** Accessible name for the whole-row activation; required with href or onOpen. */
41
+ openLabel?: string;
42
+ class?: string;
43
+ };
44
+ /**
45
+ * One item in a settings list. Fixed slots so every list reads the same
46
+ * whatever it holds; the row itself, not a nested button, is what you press.
47
+ */
48
+ export declare function ListRow(props: ListRowProps): JSX.Element;
23
49
  type SectionIconSize = "sm" | "md" | "lg";
24
50
  export declare function SectionIcon(props: {
25
51
  icon?: string;
@@ -33,10 +59,24 @@ export declare function SectionTitle(props: {
33
59
  children: JSX.Element;
34
60
  class?: string;
35
61
  }): JSX.Element;
62
+ /** @deprecated A bare heading has no owner: `SectionGroup` for a labelled group
63
+ * inside a card, `FieldLegend` for a titled group of form rows. */
36
64
  export declare function SectionSubtitle(props: {
37
65
  children: JSX.Element;
38
66
  class?: string;
39
67
  }): JSX.Element;
68
+ /** One labelled group inside a `SectionCard`: icon, label, optional count and
69
+ * action, then its rows. Proximity does the grouping, so a label sits close to
70
+ * its own rows and far from the group above; no rule is drawn. A zero count
71
+ * renders no pill: the empty group below already says it. */
72
+ export declare function SectionGroup(props: {
73
+ icon: string;
74
+ label: JSX.Element;
75
+ count?: number | string;
76
+ action?: JSX.Element;
77
+ class?: string;
78
+ children: JSX.Element;
79
+ }): JSX.Element;
40
80
  /** @deprecated SectionMeta, or FieldLegend for a titled group of rows. */
41
81
  export declare function SectionLabel(props: {
42
82
  children: JSX.Element;
@@ -134,14 +134,14 @@ var x = [
134
134
  primary: "oklch(0.48 0.2 215.221)",
135
135
  accent: "oklch(0.6 0.2 195)",
136
136
  secondary: "oklch(0.96 0.01 250)",
137
- border: "oklch(0.9 0.01 250)",
138
- card: "oklch(0.995 0.004 250)",
139
- background: "oklch(0.975 0.003 250)",
140
- popover: "oklch(0.995 0.003 250)",
137
+ border: "oklch(0.855 0.014 250)",
138
+ card: "oklch(0.96 0.005 250)",
139
+ background: "oklch(0.995 0.003 250)",
140
+ popover: "oklch(0.937 0.006 250)",
141
141
  muted: "oklch(0.9702 0.008 250)",
142
142
  mutedForeground: "oklch(0.34 0 0)",
143
- input: "oklch(0.9 0.012 250)",
144
- ring: "oklch(0.53 0.18 195)",
143
+ input: "oklch(0.85 0.016 250)",
144
+ ring: "oklch(0.48 0.2 215.221)",
145
145
  destructive: "oklch(0.54 0.19 23.0704)"
146
146
  },
147
147
  dark: {