@milaboratories/uikit 1.2.21 → 1.2.22

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.
@@ -18,7 +18,7 @@ declare const _default: <M = unknown>(__VLS_props: NonNullable<Awaited<typeof __
18
18
  /**
19
19
  * List of available options for the component
20
20
  */
21
- options: SimpleOption<M>[];
21
+ options: Readonly<SimpleOption<M>[]>;
22
22
  /**
23
23
  * If `true`, the component is disabled and cannot be interacted with.
24
24
  */
@@ -25,5 +25,6 @@ export declare function listToOptions<T>(list: T[] | readonly T[]): ListOption<T
25
25
  export declare function normalizeListOptions<V = unknown>(options: Readonly<ListOption<V>[]>): {
26
26
  label: string;
27
27
  value: V;
28
+ description: string | undefined;
28
29
  }[];
29
30
  export {};
@@ -17,6 +17,14 @@ export type ElementPosition = Omit<DOMRect, 'toJSON'> & {
17
17
  export type SimpleOption<T = unknown> = {
18
18
  text: string;
19
19
  value: T;
20
+ } | {
21
+ label: string;
22
+ value: T;
23
+ };
24
+ export type SimpleOptionNormalized<T = unknown> = {
25
+ label: string;
26
+ description?: string;
27
+ value: T;
20
28
  };
21
29
  export type ListOption<T = unknown> = {
22
30
  text: string;
@@ -27,16 +35,16 @@ export type ListOption<T = unknown> = {
27
35
  description?: string;
28
36
  value: T;
29
37
  };
30
- export type { ModelRef };
31
- export type RefOption = {
32
- readonly label: string;
33
- readonly ref: ModelRef;
34
- };
35
38
  export type ListOptionNormalized<T = unknown> = {
36
39
  label: string;
37
40
  description?: string;
38
41
  value: T;
39
42
  };
43
+ export type { ModelRef };
44
+ export type RefOption = {
45
+ readonly label: string;
46
+ readonly ref: ModelRef;
47
+ };
40
48
  export type ListOptionType<Type> = Type extends ListOption<infer X>[] ? X : never;
41
49
  export declare const maskIcons16: readonly ["checkmark", "import", "clear", "chevron-right", "add", "play", "loading", "arrow-right", "clipboard", "link", "comp", "close", "restart", "stop", "settings-2"];
42
50
  export type MaskIconName16 = (typeof maskIcons16)[number];