@dskripchenko/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.
@@ -23,11 +23,11 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
23
23
  required: boolean;
24
24
  disabled: boolean;
25
25
  error: string;
26
+ id: string;
26
27
  hint: string;
27
28
  name: string;
28
- id: string;
29
29
  indeterminate: boolean;
30
30
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
31
31
  inputRef: HTMLInputElement;
32
- }, HTMLDivElement>;
32
+ }, any>;
33
33
  export default _default;
@@ -44,5 +44,5 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
44
44
  controlRef: HTMLDivElement;
45
45
  inputRef: HTMLInputElement;
46
46
  listRef: HTMLDivElement;
47
- }, HTMLDivElement>;
47
+ }, any>;
48
48
  export default _default;
@@ -29,7 +29,7 @@ declare function __VLS_template(): {
29
29
  append?(): unknown;
30
30
  };
31
31
  refs: {};
32
- rootEl: HTMLDivElement;
32
+ rootEl: any;
33
33
  };
34
34
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
35
35
  declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {
@@ -48,7 +48,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
48
48
  required: boolean;
49
49
  disabled: boolean;
50
50
  readonly: boolean;
51
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
51
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
52
52
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
53
53
  export default _default;
54
54
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -25,10 +25,10 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
25
25
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
26
26
  }>, {
27
27
  filter: (option: MentionOption, query: string) => boolean;
28
- rows: number;
29
28
  prefix: string | string[];
29
+ rows: number;
30
30
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
31
31
  fieldRef: HTMLTextAreaElement;
32
32
  panelRef: HTMLDivElement;
33
- }, HTMLDivElement>;
33
+ }, any>;
34
34
  export default _default;
@@ -42,5 +42,5 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
42
42
  precision: number;
43
43
  controls: boolean;
44
44
  centered: boolean;
45
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
45
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
46
46
  export default _default;
@@ -13,5 +13,5 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
13
13
  }>, {
14
14
  label: string;
15
15
  options: number[];
16
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
16
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
17
17
  export default _default;
@@ -17,7 +17,7 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
17
17
  }>, {
18
18
  label: string;
19
19
  disabled: boolean;
20
- name: string;
21
20
  id: string;
22
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLLabelElement>;
21
+ name: string;
22
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
23
23
  export default _default;
@@ -39,5 +39,5 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
39
39
  marks: UidSliderMarks;
40
40
  ariaLabel: string;
41
41
  ariaLabelledby: string;
42
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
42
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
43
43
  export default _default;
@@ -17,6 +17,12 @@ export interface UidStatProps {
17
17
  footer?: string;
18
18
  /** BCP 47 tag for number formatting; defaults to the active kit locale. */
19
19
  locale?: string;
20
+ /**
21
+ * Where the trend sits: next to the value, wrapping under it when there is
22
+ * no room (`inline`, default), or always on its own line under the value
23
+ * (`below`) — which keeps a row of cards uniform whatever the value length.
24
+ */
25
+ trendPlacement?: 'inline' | 'below';
20
26
  }
21
27
  declare function __VLS_template(): {
22
28
  attrs: Partial<{}>;
@@ -43,6 +49,7 @@ declare const __VLS_component: import('vue').DefineComponent<UidStatProps, {}, {
43
49
  precision: number;
44
50
  tone: StatTone;
45
51
  trendSuffix: string;
52
+ trendPlacement: "inline" | "below";
46
53
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
47
54
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
48
55
  export default _default;
@@ -25,8 +25,8 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
25
25
  required: boolean;
26
26
  disabled: boolean;
27
27
  error: string;
28
+ id: string;
28
29
  hint: string;
29
30
  name: string;
30
- id: string;
31
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
31
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
32
32
  export default _default;
@@ -35,5 +35,5 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
35
35
  unique: boolean;
36
36
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
37
37
  inputRef: HTMLInputElement;
38
- }, HTMLDivElement>;
38
+ }, any>;
39
39
  export default _default;
@@ -37,17 +37,17 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
37
37
  required: boolean;
38
38
  disabled: boolean;
39
39
  error: string;
40
+ id: string;
40
41
  placeholder: string;
41
42
  readonly: boolean;
42
43
  hint: string;
43
44
  name: string;
44
45
  rules: RuleInput;
45
- id: string;
46
46
  rows: number;
47
47
  autoGrow: boolean;
48
48
  maxRows: number;
49
49
  resize: "none" | "vertical" | "horizontal" | "both";
50
50
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
51
51
  textareaRef: HTMLTextAreaElement;
52
- }, HTMLDivElement>;
52
+ }, any>;
53
53
  export default _default;
@@ -0,0 +1,16 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ export interface ControlAttrs {
3
+ /** `class` and `style` only: bind to the component root with `v-bind="rootAttrs()"`. */
4
+ rootAttrs: () => Pick<HTMLAttributes, 'class' | 'style'>;
5
+ /** Every other fallthrough attribute and `onXxx` listener: bind to the native control. */
6
+ controlAttrs: () => Record<string, unknown>;
7
+ }
8
+ /**
9
+ * For components with `inheritAttrs: false`. Splits the fallthrough attributes so
10
+ * that `class`/`style` stay on the root element and everything else (`list`,
11
+ * `maxlength`, `pattern`, `inputmode`, `name`, `data-*`, `aria-*`, listeners ...)
12
+ * reaches the native `<input>`/`<textarea>`/`<select>`.
13
+ *
14
+ * Call the returned functions from the template so they are re-read on every render.
15
+ */
16
+ export declare function useControlAttrs(): ControlAttrs;