@kuina-ui/vue 0.2.0 → 0.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 (42) hide show
  1. package/dist/components/alert/Alert.vue.d.ts +2 -0
  2. package/dist/components/date-picker/DateCalendar.vue.d.ts +40 -0
  3. package/dist/components/date-picker/DateCalendarMonth.vue.d.ts +27 -0
  4. package/dist/components/date-picker/DatePicker.vue.d.ts +44 -0
  5. package/dist/components/date-picker/DatePickerPanel.vue.d.ts +33 -0
  6. package/dist/components/date-picker/DateRangePicker.vue.d.ts +54 -0
  7. package/dist/components/date-picker/date-calendar.theme.d.ts +69 -0
  8. package/dist/components/date-picker/date-picker.theme.d.ts +19 -0
  9. package/dist/components/date-picker/datePickerProps.d.ts +39 -0
  10. package/dist/components/date-picker/index.d.ts +4 -0
  11. package/dist/components/date-picker/useDatePickerPopover.d.ts +21 -0
  12. package/dist/components/menu/Menu.vue.d.ts +2 -2
  13. package/dist/components/select/Select.vue.d.ts +81 -0
  14. package/dist/components/select/SelectField.vue.d.ts +70 -0
  15. package/dist/components/select/SelectOptionRow.vue.d.ts +33 -0
  16. package/dist/components/select/SelectPanel.vue.d.ts +67 -0
  17. package/dist/components/select/index.d.ts +6 -0
  18. package/dist/components/select/select-field.theme.d.ts +250 -0
  19. package/dist/components/select/select-panel.theme.d.ts +55 -0
  20. package/dist/components/select/selectOptions.d.ts +43 -0
  21. package/dist/components/select/useSelectControl.d.ts +77 -0
  22. package/dist/components/select/useSelectListbox.d.ts +48 -0
  23. package/dist/components/text-field/TextField.vue.d.ts +3 -0
  24. package/dist/components/text-field/text-field.theme.d.ts +6 -1
  25. package/dist/components/textarea/Textarea.vue.d.ts +3 -0
  26. package/dist/components/textarea/textarea.theme.d.ts +6 -1
  27. package/dist/elements/select-control/SelectControl.vue.d.ts +56 -0
  28. package/dist/elements/select-control/index.d.ts +3 -0
  29. package/dist/elements/select-control/select-control.theme.d.ts +87 -0
  30. package/dist/elements/text-link/TextLink.vue.d.ts +1 -1
  31. package/dist/index.d.ts +5 -0
  32. package/dist/index.js +1 -1
  33. package/dist/nuxt.js +1 -1
  34. package/dist/shared/composables/useCalendarLabels.d.ts +19 -0
  35. package/dist/shared/types/calendar.d.ts +14 -0
  36. package/dist/shared/utils/calendarMonth.d.ts +5 -0
  37. package/dist/shared/utils/createDateFormatters.d.ts +9 -0
  38. package/dist/shared/utils/floatingPanelTransition.d.ts +9 -0
  39. package/dist/shared/utils/isoDate.d.ts +18 -0
  40. package/dist/src-Cl5gtlze.js +6369 -0
  41. package/package.json +1 -1
  42. package/dist/src-Cn6KXW0m.js +0 -3486
@@ -0,0 +1,250 @@
1
+ import { type VariantProps } from '../../shared/utils/tv';
2
+ declare const selectFieldSizeScales: {
3
+ md: {
4
+ height: string;
5
+ fontSize: string;
6
+ leadingIconSize: string;
7
+ leadingAvatarSize: "3xs";
8
+ trailingIconSize: string;
9
+ loadingIndicatorSize: string;
10
+ clearButtonSize: string;
11
+ clearIconSize: string;
12
+ floatingLabelFontSize: string;
13
+ restingLabelFontSize: string;
14
+ pillShape: {
15
+ corners: string;
16
+ gutter: string;
17
+ labelOffset: string;
18
+ restingLabelOffsetWithLeadingIcon: string;
19
+ };
20
+ roundedShape: {
21
+ corners: string;
22
+ gutter: string;
23
+ labelOffset: string;
24
+ restingLabelOffsetWithLeadingIcon: string;
25
+ };
26
+ };
27
+ lg: {
28
+ height: string;
29
+ fontSize: string;
30
+ leadingIconSize: string;
31
+ leadingAvatarSize: "3xs";
32
+ trailingIconSize: string;
33
+ loadingIndicatorSize: string;
34
+ clearButtonSize: string;
35
+ clearIconSize: string;
36
+ floatingLabelFontSize: string;
37
+ restingLabelFontSize: string;
38
+ pillShape: {
39
+ corners: string;
40
+ gutter: string;
41
+ labelOffset: string;
42
+ restingLabelOffsetWithLeadingIcon: string;
43
+ };
44
+ roundedShape: {
45
+ corners: string;
46
+ gutter: string;
47
+ labelOffset: string;
48
+ restingLabelOffsetWithLeadingIcon: string;
49
+ };
50
+ };
51
+ xl: {
52
+ height: string;
53
+ fontSize: string;
54
+ leadingIconSize: string;
55
+ leadingAvatarSize: "2xs";
56
+ trailingIconSize: string;
57
+ loadingIndicatorSize: string;
58
+ clearButtonSize: string;
59
+ clearIconSize: string;
60
+ floatingLabelFontSize: string;
61
+ restingLabelFontSize: string;
62
+ pillShape: {
63
+ corners: string;
64
+ gutter: string;
65
+ labelOffset: string;
66
+ restingLabelOffsetWithLeadingIcon: string;
67
+ };
68
+ roundedShape: {
69
+ corners: string;
70
+ gutter: string;
71
+ labelOffset: string;
72
+ restingLabelOffsetWithLeadingIcon: string;
73
+ };
74
+ };
75
+ '2xl': {
76
+ height: string;
77
+ fontSize: string;
78
+ leadingIconSize: string;
79
+ leadingAvatarSize: "xs";
80
+ trailingIconSize: string;
81
+ loadingIndicatorSize: string;
82
+ clearButtonSize: string;
83
+ clearIconSize: string;
84
+ floatingLabelFontSize: string;
85
+ restingLabelFontSize: string;
86
+ pillShape: {
87
+ corners: string;
88
+ gutter: string;
89
+ labelOffset: string;
90
+ restingLabelOffsetWithLeadingIcon: string;
91
+ };
92
+ roundedShape: {
93
+ corners: string;
94
+ gutter: string;
95
+ labelOffset: string;
96
+ restingLabelOffsetWithLeadingIcon: string;
97
+ };
98
+ };
99
+ '3xl': {
100
+ height: string;
101
+ fontSize: string;
102
+ leadingIconSize: string;
103
+ leadingAvatarSize: "sm";
104
+ trailingIconSize: string;
105
+ loadingIndicatorSize: string;
106
+ clearButtonSize: string;
107
+ clearIconSize: string;
108
+ floatingLabelFontSize: string;
109
+ restingLabelFontSize: string;
110
+ pillShape: {
111
+ corners: string;
112
+ gutter: string;
113
+ labelOffset: string;
114
+ restingLabelOffsetWithLeadingIcon: string;
115
+ };
116
+ roundedShape: {
117
+ corners: string;
118
+ gutter: string;
119
+ labelOffset: string;
120
+ restingLabelOffsetWithLeadingIcon: string;
121
+ };
122
+ };
123
+ '4xl': {
124
+ height: string;
125
+ fontSize: string;
126
+ leadingIconSize: string;
127
+ leadingAvatarSize: "md";
128
+ trailingIconSize: string;
129
+ loadingIndicatorSize: string;
130
+ clearButtonSize: string;
131
+ clearIconSize: string;
132
+ floatingLabelFontSize: string;
133
+ restingLabelFontSize: string;
134
+ pillShape: {
135
+ corners: string;
136
+ gutter: string;
137
+ labelOffset: string;
138
+ restingLabelOffsetWithLeadingIcon: string;
139
+ };
140
+ roundedShape: {
141
+ corners: string;
142
+ gutter: string;
143
+ labelOffset: string;
144
+ restingLabelOffsetWithLeadingIcon: string;
145
+ };
146
+ };
147
+ };
148
+ type SelectFieldSizeName = keyof typeof selectFieldSizeScales;
149
+ export declare function findSelectFieldAvatarSize(selectFieldSize: SelectFieldSizeName): "3xs" | "2xs" | "xs" | "sm" | "md";
150
+ export declare const selectFieldTheme: import("tailwind-variants").TVReturnType<{
151
+ size: Record<"md" | "lg" | "xl" | "2xl" | "3xl" | "4xl", {
152
+ base: string[];
153
+ leadingIcon: string;
154
+ trailingIcon: string;
155
+ loadingIndicator: string;
156
+ clearButton: string;
157
+ clearIcon: string;
158
+ }>;
159
+ variant: {
160
+ outline: string;
161
+ soft: string;
162
+ };
163
+ pill: {
164
+ true: string;
165
+ false: string;
166
+ };
167
+ fieldState: {
168
+ invalid: {
169
+ base: string;
170
+ label: string;
171
+ };
172
+ disabled: {
173
+ label: string;
174
+ };
175
+ open: {
176
+ base: string;
177
+ label: string;
178
+ };
179
+ idle: {
180
+ label: string;
181
+ };
182
+ };
183
+ floatLabel: {
184
+ auto: string;
185
+ always: {
186
+ placeholder: string;
187
+ input: string;
188
+ };
189
+ };
190
+ labelFloating: {
191
+ true: {
192
+ label: string;
193
+ };
194
+ false: {
195
+ label: string;
196
+ };
197
+ };
198
+ hasLeadingIcon: {
199
+ true: string;
200
+ false: string;
201
+ };
202
+ disabled: {
203
+ true: {
204
+ container: string;
205
+ base: string;
206
+ };
207
+ false: {
208
+ base: string;
209
+ };
210
+ };
211
+ open: {
212
+ true: {
213
+ trailingIcon: string;
214
+ placeholder: string;
215
+ };
216
+ false: {
217
+ trailingIcon: string;
218
+ };
219
+ };
220
+ hasTrailingIcon: {
221
+ true: {
222
+ clearButton: string;
223
+ };
224
+ false: {
225
+ clearButton: string;
226
+ };
227
+ };
228
+ }, {
229
+ root: string;
230
+ container: string;
231
+ base: string;
232
+ leadingIcon: string;
233
+ leadingAvatar: string;
234
+ value: string;
235
+ input: string;
236
+ placeholder: string;
237
+ selectionForScreenReaders: string;
238
+ trailing: string;
239
+ clearButton: string;
240
+ clearIcon: string;
241
+ loadingIndicator: string;
242
+ trailingIcon: string;
243
+ label: string;
244
+ hint: string;
245
+ errorMessage: string;
246
+ errorIcon: string;
247
+ }, undefined, undefined, undefined, undefined>;
248
+ export type SelectFieldThemeVariants = VariantProps<typeof selectFieldTheme>;
249
+ export type SelectFieldSlotName = keyof ReturnType<typeof selectFieldTheme>;
250
+ export {};
@@ -0,0 +1,55 @@
1
+ import { type VariantProps } from '../../shared/utils/tv';
2
+ export declare const selectPanelTheme: import("tailwind-variants").TVReturnType<{
3
+ optionSelected: {
4
+ true: {
5
+ option: string;
6
+ };
7
+ };
8
+ optionDisabled: {
9
+ true: {
10
+ option: string;
11
+ };
12
+ false: {
13
+ option: string;
14
+ };
15
+ };
16
+ highlighted: {
17
+ true: {
18
+ option: string;
19
+ action: string;
20
+ };
21
+ };
22
+ optionLayout: {
23
+ text: {
24
+ option: string;
25
+ };
26
+ avatar: {
27
+ option: string;
28
+ optionAvatar: string;
29
+ };
30
+ avatarWithDescription: {
31
+ option: string;
32
+ };
33
+ };
34
+ }, {
35
+ panel: string;
36
+ search: string;
37
+ searchIcon: string;
38
+ searchInput: string;
39
+ optionList: string;
40
+ group: string;
41
+ groupLabel: string;
42
+ option: string;
43
+ optionIndicator: string;
44
+ optionCheckIcon: string;
45
+ optionAvatar: string;
46
+ optionText: string;
47
+ optionLabel: string;
48
+ optionDescription: string;
49
+ noResults: string;
50
+ actions: string;
51
+ action: string;
52
+ actionIcon: string;
53
+ }, undefined, undefined, undefined, undefined>;
54
+ export type SelectPanelThemeVariants = VariantProps<typeof selectPanelTheme>;
55
+ export type SelectPanelSlotName = keyof ReturnType<typeof selectPanelTheme>;
@@ -0,0 +1,43 @@
1
+ import type { AvatarProps } from '../../elements/avatar';
2
+ export type SelectOptionAvatar = Pick<AvatarProps, 'imageUrl' | 'initials' | 'icon' | 'color' | 'variant' | 'pill'>;
3
+ export interface SelectOption {
4
+ value: string | number;
5
+ label: string;
6
+ description?: string;
7
+ disabled?: boolean;
8
+ avatar?: SelectOptionAvatar | string;
9
+ }
10
+ export interface SelectOptionGroup<SourceOption = SelectOption> {
11
+ label: string;
12
+ options: SourceOption[];
13
+ }
14
+ export type SelectOptionEntry<SourceOption = SelectOption> = SourceOption | SelectOptionGroup<SourceOption>;
15
+ export interface SelectOptionFieldKeys {
16
+ valueKey: string;
17
+ labelKey: string;
18
+ descriptionKey: string;
19
+ avatarKey: string;
20
+ }
21
+ export interface ResolvedSelectOption<SourceOption = unknown> {
22
+ optionId: string;
23
+ value: unknown;
24
+ label: string;
25
+ description?: string;
26
+ disabled: boolean;
27
+ avatar?: SelectOptionAvatar;
28
+ sourceOption: SourceOption;
29
+ }
30
+ export interface ResolvedSelectGroup<SourceOption = unknown> {
31
+ groupLabel: string;
32
+ options: ResolvedSelectOption<SourceOption>[];
33
+ }
34
+ export type ResolvedSelectEntry<SourceOption = unknown> = ResolvedSelectOption<SourceOption> | ResolvedSelectGroup<SourceOption>;
35
+ export declare function isSelectOptionGroup<SourceOption>(optionEntry: SelectOptionEntry<SourceOption>): optionEntry is SelectOptionGroup<SourceOption>;
36
+ export declare function isResolvedSelectGroup<SourceOption>(resolvedEntry: ResolvedSelectEntry<SourceOption>): resolvedEntry is ResolvedSelectGroup<SourceOption>;
37
+ /** Read a field of an option, following dotted paths such as "profile.name". */
38
+ export declare function readOptionField(sourceOption: unknown, fieldPath: string): unknown;
39
+ /** Turn the options given to a select, raw API objects included, into options it can display. */
40
+ export declare function resolveSelectEntries<SourceOption>(optionEntries: SelectOptionEntry<SourceOption>[], fieldKeys: SelectOptionFieldKeys, optionIdPrefix: string): ResolvedSelectEntry<SourceOption>[];
41
+ /** Keep the options whose label contains the search query, and drop the groups left empty. */
42
+ export declare function filterSelectEntries<SourceOption>(resolvedEntries: ResolvedSelectEntry<SourceOption>[], searchQuery: string): ResolvedSelectEntry<SourceOption>[];
43
+ export declare function collectSelectOptions<SourceOption>(resolvedEntries: ResolvedSelectEntry<SourceOption>[]): ResolvedSelectOption<SourceOption>[];
@@ -0,0 +1,77 @@
1
+ import { type Component, type Ref } from 'vue';
2
+ import type { SelectOptionEntry } from './selectOptions';
3
+ import { type SelectAction } from './useSelectListbox';
4
+ export interface SelectControlProps<SourceOption> {
5
+ options: SelectOptionEntry<SourceOption>[];
6
+ multiple?: boolean;
7
+ valueKey?: string;
8
+ labelKey: string;
9
+ descriptionKey: string;
10
+ avatarKey: string;
11
+ searchable?: boolean;
12
+ searchPlacement?: 'list' | 'field';
13
+ clearable?: boolean;
14
+ loading?: boolean;
15
+ disabled?: boolean;
16
+ selectionLabel?: (selectedOptions: SourceOption[]) => string;
17
+ actions: SelectAction[];
18
+ trailingIcon?: Component | null;
19
+ }
20
+ interface SelectControlElements {
21
+ selectedValue: Ref<unknown>;
22
+ isOpen: Ref<boolean>;
23
+ rootElement: Readonly<Ref<HTMLElement | null>>;
24
+ triggerElement: Readonly<Ref<HTMLElement | null>>;
25
+ layerElement: Readonly<Ref<HTMLElement | null>>;
26
+ hasSelectionSlot: () => boolean;
27
+ }
28
+ /** Share between the select and the select field what their trigger shows and does, on top of their listbox. */
29
+ export declare function useSelectControl<SourceOption>(controlProps: SelectControlProps<SourceOption>, controlElements: SelectControlElements): {
30
+ isOpenable: import("vue").ComputedRef<boolean>;
31
+ searchesInTrigger: import("vue").ComputedRef<boolean>;
32
+ navigatesFromTrigger: import("vue").ComputedRef<boolean>;
33
+ triggerSearchValue: import("vue").ComputedRef<string>;
34
+ openTriggerSearchFromClick: (clickEvent: MouseEvent, triggerSearchInput: HTMLInputElement | null) => void;
35
+ searchFromTriggerInput: (inputEvent: Event) => void;
36
+ hasSelection: import("vue").ComputedRef<boolean>;
37
+ selectedSourceOptions: import("vue").ComputedRef<SourceOption[]>;
38
+ selectedLabels: import("vue").ComputedRef<string>;
39
+ selectionText: import("vue").ComputedRef<string>;
40
+ announcesSelectedLabelsSeparately: import("vue").ComputedRef<boolean>;
41
+ selectedAvatar: import("vue").ComputedRef<{
42
+ initials: string;
43
+ pill?: boolean | undefined;
44
+ variant?: "solid" | "soft" | undefined;
45
+ color?: "primary" | "secondary" | "gray" | "danger" | "success" | "info" | "discovery" | undefined;
46
+ icon?: Component | undefined;
47
+ imageUrl?: string | undefined;
48
+ } | undefined>;
49
+ resolvedTrailingIcon: import("vue").ComputedRef<Component | import("vue").FunctionalComponent<import("lucide-vue-next").LucideProps, {}, any, {}> | null>;
50
+ showsTrailingIcon: import("vue").ComputedRef<boolean>;
51
+ showsClearButton: import("vue").ComputedRef<boolean>;
52
+ clearSelectionFromButton: () => void;
53
+ listboxId: string;
54
+ searchQuery: import("vue").ShallowRef<string, string>;
55
+ hasStartedTriggerSearch: import("vue").ShallowRef<boolean, boolean>;
56
+ highlightedItemId: import("vue").ShallowRef<string | undefined, string | undefined>;
57
+ visibleEntries: import("vue").ComputedRef<import("./selectOptions").ResolvedSelectEntry<unknown>[]>;
58
+ visibleOptions: import("vue").ComputedRef<import("./selectOptions").ResolvedSelectOption<unknown>[]>;
59
+ selectedValues: import("vue").ComputedRef<unknown[]>;
60
+ selectedOptions: import("vue").ComputedRef<import("./selectOptions").ResolvedSelectOption<unknown>[]>;
61
+ isOptionSelected: (resolvedOption: import("./selectOptions").ResolvedSelectOption) => boolean;
62
+ highlightItem: (itemId: string | undefined) => void;
63
+ openListbox: (highlightTarget?: import("./useSelectListbox").SelectHighlightTarget) => void;
64
+ closeListbox: ({ restoreFocus }: {
65
+ restoreFocus: boolean;
66
+ }) => void;
67
+ toggleListbox: () => void;
68
+ selectOption: (resolvedOption: import("./selectOptions").ResolvedSelectOption) => void;
69
+ clearSelection: () => void;
70
+ runSelectAction: (selectAction: SelectAction, selectEvent: Event) => void;
71
+ handleTriggerKeydown: (keyboardEvent: KeyboardEvent) => void;
72
+ handleSearchKeydown: (keyboardEvent: KeyboardEvent) => void;
73
+ handleSearchTriggerKeydown: (keyboardEvent: KeyboardEvent) => void;
74
+ handleSearchTriggerPaste: (clipboardEvent: ClipboardEvent) => void;
75
+ searchFromTrigger: (typedQuery: string) => void;
76
+ };
77
+ export {};
@@ -0,0 +1,48 @@
1
+ import { type Component, type MaybeRefOrGetter, type Ref } from 'vue';
2
+ import { type ResolvedSelectOption, type SelectOptionEntry, type SelectOptionFieldKeys } from './selectOptions';
3
+ export interface SelectAction {
4
+ label: string;
5
+ icon?: Component;
6
+ onSelect?: (selectEvent: Event) => void;
7
+ }
8
+ export type SelectHighlightTarget = 'selected' | 'first' | 'last';
9
+ interface SelectListboxOptions {
10
+ optionEntries: MaybeRefOrGetter<SelectOptionEntry<unknown>[]>;
11
+ fieldKeys: MaybeRefOrGetter<SelectOptionFieldKeys>;
12
+ actions: MaybeRefOrGetter<SelectAction[]>;
13
+ multiple: MaybeRefOrGetter<boolean>;
14
+ searchable: MaybeRefOrGetter<boolean>;
15
+ searchInTrigger: MaybeRefOrGetter<boolean>;
16
+ openable: MaybeRefOrGetter<boolean>;
17
+ selectedValue: Ref<unknown>;
18
+ isOpen: Ref<boolean>;
19
+ focusTrigger: () => void;
20
+ }
21
+ export declare function createSelectActionId(listboxId: string, actionIndex: number): string;
22
+ /** Hold what a select shows and does: its options, selection, search, highlighted item and keyboard navigation. */
23
+ export declare function useSelectListbox(listboxOptions: SelectListboxOptions): {
24
+ listboxId: string;
25
+ searchQuery: import("vue").ShallowRef<string, string>;
26
+ hasStartedTriggerSearch: import("vue").ShallowRef<boolean, boolean>;
27
+ highlightedItemId: import("vue").ShallowRef<string | undefined, string | undefined>;
28
+ visibleEntries: import("vue").ComputedRef<import("./selectOptions").ResolvedSelectEntry<unknown>[]>;
29
+ visibleOptions: import("vue").ComputedRef<ResolvedSelectOption<unknown>[]>;
30
+ selectedValues: import("vue").ComputedRef<unknown[]>;
31
+ selectedOptions: import("vue").ComputedRef<ResolvedSelectOption<unknown>[]>;
32
+ isOptionSelected: (resolvedOption: ResolvedSelectOption) => boolean;
33
+ highlightItem: (itemId: string | undefined) => void;
34
+ openListbox: (highlightTarget?: SelectHighlightTarget) => void;
35
+ closeListbox: ({ restoreFocus }: {
36
+ restoreFocus: boolean;
37
+ }) => void;
38
+ toggleListbox: () => void;
39
+ selectOption: (resolvedOption: ResolvedSelectOption) => void;
40
+ clearSelection: () => void;
41
+ runSelectAction: (selectAction: SelectAction, selectEvent: Event) => void;
42
+ handleTriggerKeydown: (keyboardEvent: KeyboardEvent) => void;
43
+ handleSearchKeydown: (keyboardEvent: KeyboardEvent) => void;
44
+ handleSearchTriggerKeydown: (keyboardEvent: KeyboardEvent) => void;
45
+ handleSearchTriggerPaste: (clipboardEvent: ClipboardEvent) => void;
46
+ searchFromTrigger: (typedQuery: string) => void;
47
+ };
48
+ export {};
@@ -5,9 +5,11 @@ export interface TextFieldProps {
5
5
  label: string;
6
6
  id?: string;
7
7
  type?: 'text' | 'email' | 'password' | 'search' | 'tel' | 'url' | 'number';
8
+ placeholder?: string;
8
9
  variant?: TextFieldThemeVariants['variant'];
9
10
  size?: TextFieldThemeVariants['size'];
10
11
  pill?: boolean;
12
+ floatLabel?: TextFieldThemeVariants['floatLabel'];
11
13
  leadingIcon?: Component;
12
14
  trailingIcon?: Component;
13
15
  trailingIconLabel?: string;
@@ -39,4 +41,5 @@ declare const __VLS_export: import("vue").DefineComponent<TextFieldProps & {
39
41
  size: "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl";
40
42
  variant: "soft" | "outline";
41
43
  type: "number" | "search" | "text" | "email" | "password" | "tel" | "url";
44
+ floatLabel: "auto" | "always";
42
45
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -6,7 +6,6 @@ export declare const textFieldTheme: import("tailwind-variants").TVReturnType<{
6
6
  };
7
7
  size: Record<"md" | "lg" | "xl" | "2xl" | "3xl" | "4xl", {
8
8
  base: string[];
9
- label: string;
10
9
  leadingIcon: string;
11
10
  trailingIcon: string;
12
11
  trailingAction: string;
@@ -17,6 +16,12 @@ export declare const textFieldTheme: import("tailwind-variants").TVReturnType<{
17
16
  hasLeadingIcon: {
18
17
  true: string;
19
18
  };
19
+ floatLabel: {
20
+ auto: {
21
+ label: string;
22
+ };
23
+ always: string;
24
+ };
20
25
  trailingContent: {
21
26
  none: string;
22
27
  icon: {
@@ -3,6 +3,7 @@ import type { TextareaSlotName, TextareaThemeVariants } from './textarea.theme';
3
3
  export interface TextareaProps {
4
4
  label: string;
5
5
  id?: string;
6
+ placeholder?: string;
6
7
  rows?: number;
7
8
  autoResize?: boolean;
8
9
  maxRows?: number;
@@ -10,6 +11,7 @@ export interface TextareaProps {
10
11
  variant?: TextareaThemeVariants['variant'];
11
12
  size?: TextareaThemeVariants['size'];
12
13
  pill?: boolean;
14
+ floatLabel?: TextareaThemeVariants['floatLabel'];
13
15
  hint?: string;
14
16
  errorMessage?: string;
15
17
  invalid?: boolean;
@@ -31,6 +33,7 @@ declare const __VLS_export: import("vue").DefineComponent<TextareaProps & {
31
33
  pill: boolean;
32
34
  size: "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl";
33
35
  variant: "soft" | "outline";
36
+ floatLabel: "auto" | "always";
34
37
  rows: number;
35
38
  maxRows: number;
36
39
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -6,11 +6,16 @@ export declare const textareaTheme: import("tailwind-variants").TVReturnType<{
6
6
  };
7
7
  size: Record<"md" | "lg" | "xl" | "2xl" | "3xl" | "4xl", {
8
8
  base: string[];
9
- label: string[];
10
9
  }>;
11
10
  pill: {
12
11
  true: string;
13
12
  };
13
+ floatLabel: {
14
+ auto: {
15
+ label: string;
16
+ };
17
+ always: string;
18
+ };
14
19
  autoResize: {
15
20
  true: {
16
21
  base: string;
@@ -0,0 +1,56 @@
1
+ import type { Component } from 'vue';
2
+ import type { ClassNameValue } from '../../shared/utils/tv';
3
+ import type { SelectControlSlotName, SelectControlThemeVariants } from './select-control.theme';
4
+ export interface SelectControlProps {
5
+ size?: SelectControlThemeVariants['size'];
6
+ variant?: SelectControlThemeVariants['variant'];
7
+ pill?: boolean;
8
+ block?: boolean;
9
+ open?: boolean;
10
+ invalid?: boolean;
11
+ disabled?: boolean;
12
+ interactive?: boolean;
13
+ hasValue?: boolean;
14
+ searchesInTrigger?: boolean;
15
+ leadingIcon?: Component | null;
16
+ trailingIcon?: Component | null;
17
+ showsClearButton?: boolean;
18
+ clearLabel?: string;
19
+ spokenValue?: string;
20
+ triggerAttributes?: Record<string, unknown>;
21
+ ui?: Partial<Record<SelectControlSlotName, ClassNameValue>>;
22
+ class?: ClassNameValue;
23
+ }
24
+ export interface SelectControlSlots {
25
+ default?: () => unknown;
26
+ leading?: () => unknown;
27
+ input?: (inputSlotProps: {
28
+ inputClass: string;
29
+ }) => unknown;
30
+ status?: (statusSlotProps: {
31
+ statusClass: string;
32
+ }) => unknown;
33
+ popup?: () => unknown;
34
+ }
35
+ declare const _default: typeof __VLS_export;
36
+ export default _default;
37
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<SelectControlProps, {
38
+ rootElement: Readonly<import("vue").ShallowRef<HTMLElement | null>>;
39
+ triggerElement: Readonly<import("vue").ShallowRef<HTMLElement | null>>;
40
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
41
+ clear: () => any;
42
+ }, string, import("vue").PublicProps, Readonly<SelectControlProps> & Readonly<{
43
+ onClear?: (() => any) | undefined;
44
+ }>, {
45
+ pill: boolean;
46
+ size: "3xs" | "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl";
47
+ variant: "soft" | "outline" | "ghost";
48
+ block: boolean;
49
+ interactive: boolean;
50
+ clearLabel: string;
51
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, SelectControlSlots>;
52
+ type __VLS_WithSlots<T, S> = T & {
53
+ new (): {
54
+ $slots: S;
55
+ };
56
+ };
@@ -0,0 +1,3 @@
1
+ export { default as KSelectControl } from './SelectControl.vue';
2
+ export type { SelectControlProps, SelectControlSlots } from './SelectControl.vue';
3
+ export type { SelectControlSlotName, SelectControlThemeVariants } from './select-control.theme';