sit-onyx 1.0.0-beta.97 → 1.0.0-beta.99

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.
@@ -8,6 +8,7 @@ declare function __VLS_template(): {
8
8
  default(): unknown;
9
9
  /**
10
10
  * Optional slot to override the headline with custom content.
11
+ * If unset, the `label` property will be shown.
11
12
  */
12
13
  headline?(bindings: Pick<OnyxAlertDialogProps, "label">): unknown;
13
14
  /**
@@ -27,6 +28,7 @@ declare function __VLS_template(): {
27
28
  default(): unknown;
28
29
  /**
29
30
  * Optional slot to override the headline with custom content.
31
+ * If unset, the `label` property will be shown.
30
32
  */
31
33
  headline?(bindings: Pick<OnyxAlertDialogProps, "label">): unknown;
32
34
  /**
@@ -1,4 +1,4 @@
1
- import { type Component, type ComponentInstance, type WatchSource } from "vue";
1
+ import { type Component, type WatchSource } from "vue";
2
2
  import OnyxListItem from "../../OnyxListItem/OnyxListItem.vue";
3
3
  import type { DataGridRendererColumn, DataGridRendererRow } from "../OnyxDataGridRenderer/types";
4
4
  import type { DataGridEntry, DataGridMetadata } from "../types";
@@ -28,7 +28,7 @@ export type DataGridFeature<TEntry extends DataGridEntry, TFeatureName extends s
28
28
  */
29
29
  actions?: (column: keyof TEntry) => {
30
30
  iconComponent: Component;
31
- listItems?: ComponentInstance<typeof OnyxListItem>[];
31
+ listItems: Component<typeof OnyxListItem>[];
32
32
  }[];
33
33
  };
34
34
  };
@@ -8,12 +8,13 @@ declare function __VLS_template(): {
8
8
  default(): unknown;
9
9
  /**
10
10
  * Optional slot to override the headline with custom content.
11
+ * If unset, the `label` property will be shown.
11
12
  */
12
13
  headline?(bindings: Pick<OnyxModalDialogProps, "label">): unknown;
13
14
  /**
14
- * Optional slot to add custom content to the dialog header (below the headline).
15
+ * Optional slot to add custom content, e.g. a description to the dialog header (below the headline).
15
16
  */
16
- subtitle?(): unknown;
17
+ description?(): unknown;
17
18
  }> & {
18
19
  /**
19
20
  * Dialog content.
@@ -21,12 +22,13 @@ declare function __VLS_template(): {
21
22
  default(): unknown;
22
23
  /**
23
24
  * Optional slot to override the headline with custom content.
25
+ * If unset, the `label` property will be shown.
24
26
  */
25
27
  headline?(bindings: Pick<OnyxModalDialogProps, "label">): unknown;
26
28
  /**
27
- * Optional slot to add custom content to the dialog header (below the headline).
29
+ * Optional slot to add custom content, e.g. a description to the dialog header (below the headline).
28
30
  */
29
- subtitle?(): unknown;
31
+ description?(): unknown;
30
32
  };
31
33
  refs: {};
32
34
  rootEl: any;
@@ -1,4 +1,4 @@
1
- import { type App, type ComputedRef, type InjectionKey, type MaybeRef } from "vue";
1
+ import { type App, type InjectionKey, type MaybeRef } from "vue";
2
2
  import type { FlattenedKeysOf } from "../types/i18n";
3
3
  import type { DeepPartial } from "../types/utils";
4
4
  import enUS from "./locales/en-US.json";
@@ -56,7 +56,7 @@ export type ProvideI18nOptions = {
56
56
  *
57
57
  * Note: If a custom `t` function is used, passed messages will not be used.
58
58
  */
59
- t?: ComputedRef<TranslationFunction>;
59
+ t?: MaybeRef<TranslationFunction>;
60
60
  };
61
61
  export type TranslationFunction = (key: OnyxTranslationKey,
62
62
  /** Named values to interpolate into the translation. The property `n` is special as it represents the number of elements for pluralization. */
@@ -68,23 +68,23 @@ export declare const I18N_INJECTION_KEY: InjectionKey<ReturnType<typeof createI1
68
68
  * Creates a new i18n instance.
69
69
  */
70
70
  declare const createI18n: (options?: ProvideI18nOptions) => {
71
- t: ComputedRef<TranslationFunction>;
72
- locale: ComputedRef<string>;
71
+ t: Readonly<import("vue").Ref<TranslationFunction, TranslationFunction>>;
72
+ locale: Readonly<import("vue").Ref<string, string>>;
73
73
  };
74
74
  /**
75
75
  * Provides a global i18n instance that is used by onyx.
76
76
  * Must only be called once in the `App.vue` file of a project that consumes onyx.
77
77
  */
78
78
  export declare const provideI18n: (app: App, options?: ProvideI18nOptions) => {
79
- t: ComputedRef<TranslationFunction>;
80
- locale: ComputedRef<string>;
79
+ t: Readonly<import("vue").Ref<TranslationFunction, TranslationFunction>>;
80
+ locale: Readonly<import("vue").Ref<string, string>>;
81
81
  };
82
82
  /**
83
83
  * Injects the onyx i18n instance.
84
84
  * Creates a fallback if provide was never called.
85
85
  */
86
86
  export declare const injectI18n: () => {
87
- t: ComputedRef<TranslationFunction>;
88
- locale: ComputedRef<string>;
87
+ t: Readonly<import("vue").Ref<TranslationFunction, TranslationFunction>>;
88
+ locale: Readonly<import("vue").Ref<string, string>>;
89
89
  };
90
90
  export {};