@aleph-alpha/ui-library 6.2.0 → 6.3.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.
Files changed (59) hide show
  1. package/dist/system/components/UiButtonGroup/index.d.ts +1 -0
  2. package/dist/system/components/UiCodeBlock/types.d.ts +11 -0
  3. package/dist/system/components/UiInputGroup/UiInputGroup.vue.d.ts +20 -0
  4. package/dist/system/components/UiInputGroup/UiInputGroupAddon.vue.d.ts +20 -0
  5. package/dist/system/components/UiInputGroup/UiInputGroupButton.vue.d.ts +17 -0
  6. package/dist/system/components/UiInputGroup/UiInputGroupInput.vue.d.ts +11 -0
  7. package/dist/system/components/UiInputGroup/UiInputGroupTextarea.vue.d.ts +11 -0
  8. package/dist/system/components/UiInputGroup/index.d.ts +7 -0
  9. package/dist/system/components/UiInputGroup/types.d.ts +151 -0
  10. package/dist/system/components/UiLabel/UiLabel.vue.d.ts +3 -1
  11. package/dist/system/components/UiLabel/types.d.ts +7 -0
  12. package/dist/system/components/core/input-group/InputGroup.vue.d.ts +25 -0
  13. package/dist/system/components/core/input-group/InputGroupAddon.vue.d.ts +25 -0
  14. package/dist/system/components/core/input-group/InputGroupButton.vue.d.ts +28 -0
  15. package/dist/system/components/core/input-group/InputGroupInput.vue.d.ts +12 -0
  16. package/dist/system/components/core/input-group/InputGroupText.vue.d.ts +21 -0
  17. package/dist/system/components/core/input-group/InputGroupTextarea.vue.d.ts +12 -0
  18. package/dist/system/components/core/input-group/index.d.ts +18 -0
  19. package/dist/system/components/index.d.ts +1 -0
  20. package/dist/system/lib.js +14300 -13931
  21. package/package.json +1 -1
  22. package/src/components/UiButtonGroup/index.ts +4 -0
  23. package/src/components/UiCodeBlock/UiCodeBlock.stories.ts +83 -0
  24. package/src/components/UiCodeBlock/UiCodeBlock.vue +30 -2
  25. package/src/components/UiCodeBlock/__tests__/UiCodeBlock.test.ts +21 -0
  26. package/src/components/UiCodeBlock/types.ts +11 -0
  27. package/src/components/UiField/UiField.stories.ts +329 -52
  28. package/src/components/UiField/UiFieldLabelInfo.vue +1 -1
  29. package/src/components/UiInput/UiInput.stories.ts +3 -1
  30. package/src/components/UiInput/UiInput.vue +26 -5
  31. package/src/components/UiInputGroup/UiInputGroup.stories.ts +2083 -0
  32. package/src/components/UiInputGroup/UiInputGroup.vue +18 -0
  33. package/src/components/UiInputGroup/UiInputGroupAddon.vue +18 -0
  34. package/src/components/UiInputGroup/UiInputGroupButton.vue +30 -0
  35. package/src/components/UiInputGroup/UiInputGroupInput.vue +16 -0
  36. package/src/components/UiInputGroup/UiInputGroupTextarea.vue +16 -0
  37. package/src/components/UiInputGroup/__tests__/UiInputGroup.test.ts +195 -0
  38. package/src/components/UiInputGroup/index.ts +10 -0
  39. package/src/components/UiInputGroup/types.ts +171 -0
  40. package/src/components/UiLabel/UiLabel.vue +7 -2
  41. package/src/components/UiLabel/types.ts +8 -0
  42. package/src/components/core/button/index.ts +23 -13
  43. package/src/components/core/button-group/ButtonGroupText.vue +4 -0
  44. package/src/components/core/button-group/index.ts +6 -2
  45. package/src/components/core/field/FieldError.vue +1 -1
  46. package/src/components/core/field/FieldLabel.vue +1 -1
  47. package/src/components/core/field/index.ts +7 -1
  48. package/src/components/core/input/Input.vue +4 -1
  49. package/src/components/core/input-group/InputGroup.vue +27 -0
  50. package/src/components/core/input-group/InputGroupAddon.vue +53 -0
  51. package/src/components/core/input-group/InputGroupButton.vue +35 -0
  52. package/src/components/core/input-group/InputGroupInput.vue +65 -0
  53. package/src/components/core/input-group/InputGroupText.vue +26 -0
  54. package/src/components/core/input-group/InputGroupTextarea.vue +62 -0
  55. package/src/components/core/input-group/index.ts +103 -0
  56. package/src/components/core/label/Label.vue +1 -1
  57. package/src/components/index.ts +1 -0
  58. package/src/theme/Typography.stories.ts +144 -6
  59. package/src/theme/__tests__/typography.test.ts +136 -0
@@ -1,2 +1,3 @@
1
1
  export { default as UiButtonGroup } from './UiButtonGroup.vue';
2
+ export { ButtonGroupText as UiButtonGroupText } from '../core/button-group';
2
3
  export type { UiButtonGroupProps, UiButtonGroupOrientation } from './types';
@@ -1,6 +1,17 @@
1
1
  /**
2
2
  * A code block component for displaying source code with syntax highlighting,
3
3
  * line numbers, and copy-to-clipboard functionality. Powered by Shiki.
4
+ *
5
+ * The header (language label + copy button) can be recolored from the outside
6
+ * with CSS custom properties, set on the code block or on any ancestor. Use
7
+ * them when the block sits on a surface the default muted header clashes with:
8
+ *
9
+ * - `--ui-code-block-header-surface` — header background
10
+ * - `--ui-code-block-header-content` — label and copy-icon color
11
+ * - `--ui-code-block-header-border` — divider under the header
12
+ *
13
+ * Each takes a full CSS color (`#0d1117`, `oklch(var(--background-surface-primary))`)
14
+ * and falls back to the design token it used before when unset.
4
15
  * @category Content
5
16
  * @useCases code display, code snippet, syntax highlighting, API response, terminal output
6
17
  * @keywords code, codeblock, syntax, highlight, copy, pre, snippet
@@ -0,0 +1,20 @@
1
+ import { UiInputGroupProps } from './types';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ default?(_: {}): any;
6
+ };
7
+ refs: {};
8
+ rootEl: HTMLDivElement;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: import('vue').DefineComponent<UiInputGroupProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UiInputGroupProps> & Readonly<{}>, {
12
+ type: import('./types').UiInputGroupType;
13
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
14
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
15
+ export default _default;
16
+ type __VLS_WithTemplateSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
@@ -0,0 +1,20 @@
1
+ import { UiInputGroupAddonProps } from './types';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ default?(_: {}): any;
6
+ };
7
+ refs: {};
8
+ rootEl: any;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: import('vue').DefineComponent<UiInputGroupAddonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UiInputGroupAddonProps> & Readonly<{}>, {
12
+ align: import('./types').UiInputGroupAddonAlign;
13
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
15
+ export default _default;
16
+ type __VLS_WithTemplateSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
@@ -0,0 +1,17 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {};
7
+ rootEl: any;
8
+ };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import('vue').DefineComponent<import('./types').UiInputGroupButtonTextProps | import('./types').UiInputGroupButtonIconProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('./types').UiInputGroupButtonTextProps | import('./types').UiInputGroupButtonIconProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
12
+ export default _default;
13
+ type __VLS_WithTemplateSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
@@ -0,0 +1,11 @@
1
+ import { UiInputGroupInputProps } from './types';
2
+ type __VLS_Props = UiInputGroupInputProps;
3
+ type __VLS_PublicProps = {
4
+ modelValue?: string | number;
5
+ } & __VLS_Props;
6
+ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
+ "update:modelValue": (value: string | number) => any;
8
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
9
+ "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
10
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
11
+ export default _default;
@@ -0,0 +1,11 @@
1
+ import { UiInputGroupTextareaProps } from './types';
2
+ type __VLS_Props = UiInputGroupTextareaProps;
3
+ type __VLS_PublicProps = {
4
+ modelValue?: string | number;
5
+ } & __VLS_Props;
6
+ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
+ "update:modelValue": (value: string | number) => any;
8
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
9
+ "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
10
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
11
+ export default _default;
@@ -0,0 +1,7 @@
1
+ export { default as UiInputGroup } from './UiInputGroup.vue';
2
+ export { default as UiInputGroupAddon } from './UiInputGroupAddon.vue';
3
+ export { default as UiInputGroupButton } from './UiInputGroupButton.vue';
4
+ export { default as UiInputGroupInput } from './UiInputGroupInput.vue';
5
+ export { default as UiInputGroupTextarea } from './UiInputGroupTextarea.vue';
6
+ export { InputGroupText as UiInputGroupText } from '../core/input-group';
7
+ export type * from './types';
@@ -0,0 +1,151 @@
1
+ import { UiButtonVariant } from '../UiButton';
2
+ /**
3
+ * The kind of control hosted by a `UiInputGroup`.
4
+ * - `'input'` — single-line control; the group renders as a fixed-height row.
5
+ * - `'textarea'` — multi-line control; the group grows with its content.
6
+ */
7
+ export type UiInputGroupType = 'input' | 'textarea';
8
+ /**
9
+ * Placement of a `UiInputGroupAddon` relative to the control.
10
+ * - `'inline-start'` / `'inline-end'` — same row as the control (for inputs).
11
+ * - `'block-start'` / `'block-end'` — own row above/below the control (for textareas).
12
+ */
13
+ export type UiInputGroupAddonAlign = 'inline-start' | 'inline-end' | 'block-start' | 'block-end';
14
+ /**
15
+ * Compact button sizes available inside input group addons. `icon-*` sizes
16
+ * render icon-only buttons and require an accessible label.
17
+ */
18
+ export type UiInputGroupButtonSize = 'xs' | 'sm' | 'icon-xs' | 'icon-sm';
19
+ /**
20
+ * Attaches addons — icons, text affixes, keyboard shortcuts, buttons, or
21
+ * status — to an input or textarea inside one shared field boundary. The
22
+ * group renders a `role="group"` container that carries the border, focus
23
+ * ring, and error ring for the control inside it, so the field and its
24
+ * addons read as a single control.
25
+ * @category Form Inputs
26
+ * @useCases search field with shortcut, currency input, url input with prefix, input with copy button, chat textarea with actions, loading input
27
+ * @keywords input group, addon, prefix, suffix, affix, adornment, input actions, field
28
+ * @related UiInput, UiTextarea, UiButtonGroup, UiField
29
+ */
30
+ export interface UiInputGroupProps {
31
+ /**
32
+ * The kind of control the group hosts. Use `'textarea'` together with
33
+ * `UiInputGroupTextarea` so the group grows with its content instead of
34
+ * staying a fixed-height row.
35
+ * @default 'input'
36
+ */
37
+ type?: UiInputGroupType;
38
+ }
39
+ /**
40
+ * Positions icons, text, buttons, or status elements alongside the control
41
+ * of a `UiInputGroup`. Clicking a non-interactive addon focuses the group's
42
+ * control. Place addons after the control in the markup so the control keeps
43
+ * the first tab stop.
44
+ * @category Form Inputs
45
+ * @useCases input icon, currency prefix, unit suffix, inline field actions, textarea toolbar
46
+ * @keywords addon, adornment, prefix, suffix, inline, block
47
+ * @related UiInputGroup, UiInputGroupButton, UiInputGroupText
48
+ */
49
+ export interface UiInputGroupAddonProps {
50
+ /**
51
+ * Where the addon sits relative to the control. Use the `inline-*` values
52
+ * next to `UiInputGroupInput` and the `block-*` values with
53
+ * `UiInputGroupTextarea` (own row above/below the control).
54
+ * @default 'inline-start'
55
+ */
56
+ align?: UiInputGroupAddonAlign;
57
+ }
58
+ /** Props shared by every `UiInputGroupButton` size. */
59
+ interface UiInputGroupButtonBaseProps {
60
+ /**
61
+ * The visual style of the button.
62
+ * @default 'ghost'
63
+ */
64
+ variant?: UiButtonVariant;
65
+ /**
66
+ * The native button type.
67
+ * @default 'button'
68
+ */
69
+ type?: 'button' | 'submit' | 'reset';
70
+ /**
71
+ * Disables the button.
72
+ */
73
+ disabled?: boolean;
74
+ }
75
+ /** Text button sizes: the slot content provides the accessible name. */
76
+ export interface UiInputGroupButtonTextProps extends UiInputGroupButtonBaseProps {
77
+ /**
78
+ * The size of the button. `xs`/`sm` render text buttons.
79
+ * @default 'xs'
80
+ */
81
+ size?: 'xs' | 'sm';
82
+ /**
83
+ * Accessible label for the button. Optional for text sizes — the visible
84
+ * label already names the button.
85
+ */
86
+ ariaLabel?: string;
87
+ }
88
+ /** Icon-only button sizes: an accessible label is mandatory. */
89
+ export interface UiInputGroupButtonIconProps extends UiInputGroupButtonBaseProps {
90
+ /**
91
+ * The size of the button. `icon-xs`/`icon-sm` render icon-only buttons.
92
+ */
93
+ size: 'icon-xs' | 'icon-sm';
94
+ /**
95
+ * Accessible label for the button. **Required** for the icon-only sizes —
96
+ * without it the button has no accessible name.
97
+ */
98
+ ariaLabel: string;
99
+ }
100
+ /**
101
+ * A compact action button sized for use inside `UiInputGroupAddon` — clear,
102
+ * copy, submit, visibility toggles, and similar actions on the value.
103
+ * The props form a discriminated union on `size`: the icon-only sizes
104
+ * (`icon-xs`, `icon-sm`) require `ariaLabel`, so an icon button without an
105
+ * accessible name is a type error.
106
+ * @category Form Inputs
107
+ * @useCases copy input value, clear field, submit search, toggle password visibility, send message
108
+ * @keywords input button, inline action, field action, compact button
109
+ * @related UiInputGroup, UiInputGroupAddon, UiButton
110
+ */
111
+ export type UiInputGroupButtonProps = UiInputGroupButtonTextProps | UiInputGroupButtonIconProps;
112
+ /**
113
+ * The single-line text control of a `UiInputGroup`. Replaces `UiInput`
114
+ * inside a group: the border, background, and focus ring are drawn by the
115
+ * group container instead of the control. Native input attributes
116
+ * (`type`, `placeholder`, `disabled`, `required`, `name`, …) are forwarded
117
+ * to the underlying `<input>`.
118
+ * @category Form Inputs
119
+ * @useCases text entry inside input group, search field, url field, currency amount
120
+ * @keywords input, group input, control, textbox
121
+ * @related UiInputGroup, UiInput
122
+ */
123
+ export interface UiInputGroupInputProps {
124
+ /**
125
+ * The text value of the control.
126
+ * - Omit for uncontrolled mode
127
+ * - Use `v-model` for controlled mode
128
+ */
129
+ modelValue?: string | number;
130
+ }
131
+ /**
132
+ * The multi-line text control of a `UiInputGroup`. Replaces `UiTextarea`
133
+ * inside a group: the border, background, and focus ring are drawn by the
134
+ * group container instead of the control. Pair with
135
+ * `<UiInputGroup type="textarea">` and `block-start`/`block-end` addons.
136
+ * Native textarea attributes (`placeholder`, `disabled`, `rows`, …) are
137
+ * forwarded to the underlying `<textarea>`.
138
+ * @category Form Inputs
139
+ * @useCases chat message box with actions, code editor field, comment box with counter
140
+ * @keywords textarea, group textarea, control, multiline
141
+ * @related UiInputGroup, UiTextarea
142
+ */
143
+ export interface UiInputGroupTextareaProps {
144
+ /**
145
+ * The text value of the control.
146
+ * - Omit for uncontrolled mode
147
+ * - Use `v-model` for controlled mode
148
+ */
149
+ modelValue?: string | number;
150
+ }
151
+ export {};
@@ -8,7 +8,9 @@ declare function __VLS_template(): {
8
8
  rootEl: any;
9
9
  };
10
10
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
- declare const __VLS_component: import('vue').DefineComponent<UiLabelProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UiLabelProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
11
+ declare const __VLS_component: import('vue').DefineComponent<UiLabelProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UiLabelProps> & Readonly<{}>, {
12
+ error: boolean;
13
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
12
14
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
13
15
  export default _default;
14
16
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -12,4 +12,11 @@ export interface UiLabelProps {
12
12
  * When provided, clicking the label will focus the associated element.
13
13
  */
14
14
  for: string;
15
+ /**
16
+ * Renders the label in the error color (`border/input/error`) to match an
17
+ * invalid control. Inside a `UiField` with `data-invalid` the label colors
18
+ * automatically; use this prop for labels outside a field.
19
+ * @default false
20
+ */
21
+ error?: boolean;
15
22
  }
@@ -0,0 +1,25 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ import { InputGroupType } from '.';
3
+ type __VLS_Props = {
4
+ type?: InputGroupType;
5
+ class?: HTMLAttributes['class'];
6
+ };
7
+ declare function __VLS_template(): {
8
+ attrs: Partial<{}>;
9
+ slots: {
10
+ default?(_: {}): any;
11
+ };
12
+ refs: {};
13
+ rootEl: HTMLDivElement;
14
+ };
15
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
17
+ type: InputGroupType;
18
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
19
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
20
+ export default _default;
21
+ type __VLS_WithTemplateSlots<T, S> = T & {
22
+ new (): {
23
+ $slots: S;
24
+ };
25
+ };
@@ -0,0 +1,25 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ import { InputGroupAddonVariants } from '.';
3
+ type __VLS_Props = {
4
+ align?: InputGroupAddonVariants['align'];
5
+ class?: HTMLAttributes['class'];
6
+ };
7
+ declare function __VLS_template(): {
8
+ attrs: Partial<{}>;
9
+ slots: {
10
+ default?(_: {}): any;
11
+ };
12
+ refs: {};
13
+ rootEl: any;
14
+ };
15
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
17
+ align: "inline-start" | "inline-end" | "block-start" | "block-end" | null;
18
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
19
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
20
+ export default _default;
21
+ type __VLS_WithTemplateSlots<T, S> = T & {
22
+ new (): {
23
+ $slots: S;
24
+ };
25
+ };
@@ -0,0 +1,28 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ import { ButtonVariants } from '../button';
3
+ import { InputGroupButtonVariants } from '.';
4
+ type __VLS_Props = {
5
+ variant?: ButtonVariants['variant'];
6
+ size?: InputGroupButtonVariants['size'];
7
+ class?: HTMLAttributes['class'];
8
+ };
9
+ declare function __VLS_template(): {
10
+ attrs: Partial<{}>;
11
+ slots: {
12
+ default?(_: {}): any;
13
+ };
14
+ refs: {};
15
+ rootEl: any;
16
+ };
17
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
18
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
19
+ size: "xs" | "sm" | "icon-xs" | "icon-sm" | null;
20
+ variant: "default" | "link" | "destructive" | "outline" | "secondary" | "ghost" | null;
21
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
22
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
23
+ export default _default;
24
+ type __VLS_WithTemplateSlots<T, S> = T & {
25
+ new (): {
26
+ $slots: S;
27
+ };
28
+ };
@@ -0,0 +1,12 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ type __VLS_Props = {
3
+ defaultValue?: string | number;
4
+ modelValue?: string | number;
5
+ class?: HTMLAttributes['class'];
6
+ };
7
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
8
+ "update:modelValue": (payload: string | number) => any;
9
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
10
+ "onUpdate:modelValue"?: ((payload: string | number) => any) | undefined;
11
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
12
+ export default _default;
@@ -0,0 +1,21 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ type __VLS_Props = {
3
+ class?: HTMLAttributes['class'];
4
+ };
5
+ declare function __VLS_template(): {
6
+ attrs: Partial<{}>;
7
+ slots: {
8
+ default?(_: {}): any;
9
+ };
10
+ refs: {};
11
+ rootEl: HTMLSpanElement;
12
+ };
13
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
15
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
16
+ export default _default;
17
+ type __VLS_WithTemplateSlots<T, S> = T & {
18
+ new (): {
19
+ $slots: S;
20
+ };
21
+ };
@@ -0,0 +1,12 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ type __VLS_Props = {
3
+ defaultValue?: string | number;
4
+ modelValue?: string | number;
5
+ class?: HTMLAttributes['class'];
6
+ };
7
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
8
+ "update:modelValue": (payload: string | number) => any;
9
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
10
+ "onUpdate:modelValue"?: ((payload: string | number) => any) | undefined;
11
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
12
+ export default _default;
@@ -0,0 +1,18 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ export { default as InputGroup } from './InputGroup.vue';
3
+ export { default as InputGroupAddon } from './InputGroupAddon.vue';
4
+ export { default as InputGroupButton } from './InputGroupButton.vue';
5
+ export { default as InputGroupInput } from './InputGroupInput.vue';
6
+ export { default as InputGroupText } from './InputGroupText.vue';
7
+ export { default as InputGroupTextarea } from './InputGroupTextarea.vue';
8
+ export declare const inputGroupVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
9
+ /** The kind of control hosted by an InputGroup, exposed as `data-type`. */
10
+ export type InputGroupType = 'input' | 'textarea';
11
+ export declare const inputGroupAddonVariants: (props?: ({
12
+ align?: "inline-start" | "inline-end" | "block-start" | "block-end" | null | undefined;
13
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
14
+ export type InputGroupAddonVariants = VariantProps<typeof inputGroupAddonVariants>;
15
+ export declare const inputGroupButtonVariants: (props?: ({
16
+ size?: "xs" | "sm" | "icon-xs" | "icon-sm" | null | undefined;
17
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
18
+ export type InputGroupButtonVariants = VariantProps<typeof inputGroupButtonVariants>;
@@ -27,6 +27,7 @@ export * from './UiFileType';
27
27
  export * from './UiFileUploadBox';
28
28
  export * from './UiIcon';
29
29
  export * from './UiInput';
30
+ export * from './UiInputGroup';
30
31
  export * from './UiItem';
31
32
  export * from './UiKbd';
32
33
  export * from './UiLabel';