@glasshome/ui 1.0.0 → 1.1.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.
@@ -1,9 +1,12 @@
1
1
  import type { JSONSchema7 } from "json-schema";
2
+ import { type IconPickerProps } from "./icon-picker.js";
2
3
  interface SchemaFormProps {
3
4
  schema: JSONSchema7;
4
5
  data: Record<string, unknown>;
5
6
  onChange: (data: Record<string, unknown>) => void;
6
7
  errors?: string[];
8
+ /** Passed through to IconPicker for formType: "icon-picker" fields. */
9
+ searchIcons?: IconPickerProps["searchIcons"];
7
10
  }
8
11
  export declare function SchemaForm(props: SchemaFormProps): import("solid-js").JSX.Element;
9
12
  export {};
@@ -12,6 +12,7 @@ type SectionCardProps = {
12
12
  action?: JSX.Element;
13
13
  toolbar?: JSX.Element;
14
14
  headerClass?: string;
15
+ class?: string;
15
16
  glass?: GlassSurface;
16
17
  children: JSX.Element;
17
18
  };
@@ -1,8 +1,8 @@
1
1
  import { type JSX } from "solid-js";
2
+ import { type IconPickerProps } from "./icon-picker.js";
2
3
  /**
3
4
  * Generic settings/list row primitives, shared by dash settings and any list UI.
4
- * Presentational only — no app data or routing. (dash's LabeledIconPicker stays
5
- * local since it depends on the dash IconPicker.)
5
+ * Presentational only — no app data or routing.
6
6
  */
7
7
  export declare function SectionAddButton(props: {
8
8
  onClick: () => void;
@@ -21,6 +21,13 @@ export declare function LabeledField(props: {
21
21
  label: string;
22
22
  children: JSX.Element;
23
23
  }): JSX.Element;
24
+ export declare function LabeledIconPicker(props: {
25
+ label: string;
26
+ value: string;
27
+ onChange: (value: string) => void;
28
+ placeholder?: string;
29
+ searchIcons?: IconPickerProps["searchIcons"];
30
+ }): JSX.Element;
24
31
  export declare function LabeledInput(props: {
25
32
  label: string;
26
33
  value: string;