@aleph-alpha/ui-library 2.4.4 → 2.5.2

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 (103) hide show
  1. package/config.d.ts +33 -2
  2. package/config.js +145 -47
  3. package/dist/system/components/UiAvatar/UiAvatar.vue.d.ts +4 -1
  4. package/dist/system/components/UiAvatar/UiAvatarGroup.vue.d.ts +18 -0
  5. package/dist/system/components/UiAvatar/index.d.ts +1 -0
  6. package/dist/system/components/UiAvatar/types.d.ts +12 -1
  7. package/dist/system/components/UiFileItem/UiFileItem.vue.d.ts +6 -1
  8. package/dist/system/components/UiFileItem/types.d.ts +30 -10
  9. package/dist/system/components/UiFileType/UiFileType.vue.d.ts +8 -0
  10. package/dist/system/components/UiFileType/index.d.ts +2 -0
  11. package/dist/system/components/UiFileType/types.d.ts +33 -0
  12. package/dist/system/components/UiItem/UiItem.vue.d.ts +8 -1
  13. package/dist/system/components/UiItem/constants.d.ts +4 -3
  14. package/dist/system/components/UiItem/index.d.ts +1 -1
  15. package/dist/system/components/UiItem/types.d.ts +53 -13
  16. package/dist/system/components/core/avatar/Avatar.vue.d.ts +2 -0
  17. package/dist/system/components/core/avatar/index.d.ts +1 -0
  18. package/dist/system/components/core/calendar/Calendar.vue.d.ts +247 -3
  19. package/dist/system/components/core/item/Item.vue.d.ts +1 -1
  20. package/dist/system/components/core/item/ItemAction.vue.d.ts +25 -0
  21. package/dist/system/components/core/item/index.d.ts +8 -4
  22. package/dist/system/components/core/popover/PopoverContent.vue.d.ts +1 -1
  23. package/dist/system/components/core/range-calendar/RangeCalendar.vue.d.ts +139 -2
  24. package/dist/system/components/index.d.ts +1 -0
  25. package/dist/system/lib/activeIndicator.d.ts +1 -0
  26. package/dist/system/lib.js +6700 -6448
  27. package/dist/system/patterns/UiSidebar/activeIndicator.d.ts +1 -15
  28. package/package.json +1 -1
  29. package/src/components/UiAvatar/UiAvatar.stories.ts +103 -12
  30. package/src/components/UiAvatar/UiAvatar.vue +6 -1
  31. package/src/components/UiAvatar/UiAvatarGroup.vue +16 -0
  32. package/src/components/UiAvatar/UiAvatarImage.vue +1 -1
  33. package/src/components/UiAvatar/__tests__/UiAvatar.test.ts +86 -0
  34. package/src/components/UiAvatar/index.ts +1 -0
  35. package/src/components/UiAvatar/types.ts +15 -1
  36. package/src/components/UiButton/UiButton.stories.ts +60 -0
  37. package/src/components/UiCodeBlock/UiCodeBlock.vue +7 -2
  38. package/src/components/UiField/UiField.stories.ts +15 -9
  39. package/src/components/UiFileItem/UiFileItem.stories.ts +344 -185
  40. package/src/components/UiFileItem/UiFileItem.vue +110 -70
  41. package/src/components/UiFileItem/__tests__/UiFileItem.test.ts +64 -3
  42. package/src/components/UiFileItem/types.ts +33 -10
  43. package/src/components/UiFileType/UiFileType.stories.ts +193 -0
  44. package/src/components/UiFileType/UiFileType.vue +114 -0
  45. package/src/components/UiFileType/__tests__/UiFileType.test.ts +41 -0
  46. package/src/components/UiFileType/index.ts +2 -0
  47. package/src/components/UiFileType/types.ts +38 -0
  48. package/src/components/UiFileUploadBox/UiFileUploadBox.vue +58 -56
  49. package/src/components/UiItem/UiItem.stories.ts +555 -855
  50. package/src/components/UiItem/UiItem.vue +59 -4
  51. package/src/components/UiItem/UiItemMedia.vue +1 -1
  52. package/src/components/UiItem/__tests__/UiItem.test.ts +432 -26
  53. package/src/components/UiItem/constants.ts +16 -2
  54. package/src/components/UiItem/index.ts +1 -1
  55. package/src/components/UiItem/types.ts +64 -13
  56. package/src/components/UiKbd/UiKbd.stories.ts +1 -1
  57. package/src/components/UiListbox/UiListbox.stories.ts +1 -1
  58. package/src/components/UiNavigationMenu/UiNavigationMenu.stories.ts +4 -4
  59. package/src/components/UiSelect/UiSelectTrigger.vue +8 -2
  60. package/src/components/UiSelect/__tests__/UiSelectGroup.test.ts +2 -2
  61. package/src/components/UiSnackbar/UiSnackbar.stories.ts +1 -0
  62. package/src/components/UiTable/UiTable.stories.ts +6 -2
  63. package/src/components/UiTable/__tests__/UiTableRow.test.ts +4 -2
  64. package/src/components/UiTabs/UiTabs.stories.ts +2 -2
  65. package/src/components/UiTagsInput/UiTagsInput.stories.ts +12 -2
  66. package/src/components/core/avatar/Avatar.vue +17 -1
  67. package/src/components/core/avatar/AvatarFallback.vue +1 -1
  68. package/src/components/core/{item/ItemActions.vue → avatar/AvatarGroup.vue} +7 -2
  69. package/src/components/core/avatar/index.ts +1 -0
  70. package/src/components/core/button/index.ts +1 -1
  71. package/src/components/core/calendar/Calendar.vue +17 -1
  72. package/src/components/core/checkbox/Checkbox.vue +1 -0
  73. package/src/components/core/drawer/DrawerContent.vue +1 -1
  74. package/src/components/core/item/Item.vue +2 -2
  75. package/src/components/core/item/ItemAction.vue +30 -0
  76. package/src/components/core/item/ItemContent.vue +1 -1
  77. package/src/components/core/item/ItemDescription.vue +1 -1
  78. package/src/components/core/item/ItemGroup.vue +0 -1
  79. package/src/components/core/item/index.ts +32 -9
  80. package/src/components/core/kbd/Kbd.vue +1 -1
  81. package/src/components/core/listbox/ListboxContent.vue +1 -0
  82. package/src/components/core/native-select/NativeSelect.vue +6 -0
  83. package/src/components/core/range-calendar/RangeCalendar.vue +19 -0
  84. package/src/components/core/skeleton/Skeleton.vue +3 -1
  85. package/src/components/core/slider/Slider.vue +2 -1
  86. package/src/components/core/table/TableFooter.vue +4 -1
  87. package/src/components/core/table/TableRow.vue +1 -1
  88. package/src/components/index.ts +1 -0
  89. package/src/directives/vHover.stories.ts +16 -12
  90. package/src/lib/activeIndicator.ts +1 -0
  91. package/src/patterns/UiDataTable/UiDataTable.stories.ts +2 -2
  92. package/src/patterns/UiSidebar/UiSidebarMenuButton.vue +2 -2
  93. package/src/patterns/UiSidebar/UiSidebarMenuSubItem.vue +2 -2
  94. package/src/patterns/UiSidebar/UiSidebarPopoverMenuItem.vue +2 -2
  95. package/src/patterns/UiSidebar/UiSidebarPopoverTrigger.vue +2 -2
  96. package/src/patterns/UiSidebar/__tests__/UiSidebarMenuButton.test.ts +33 -0
  97. package/src/patterns/UiSidebar/activeIndicator.ts +1 -16
  98. package/src/theme/Background.stories.ts +16 -0
  99. package/src/theme/BorderRadius.stories.ts +12 -12
  100. package/src/theme/Flex.stories.ts +1 -1
  101. package/src/theme/Theme.stories.ts +3 -3
  102. package/tokens.json +4273 -1152
  103. /package/dist/system/components/core/{item/ItemActions.vue.d.ts → avatar/AvatarGroup.vue.d.ts} +0 -0
@@ -1,15 +1,19 @@
1
1
  /**
2
2
  * Variant types for the UiItem primitive component
3
3
  */
4
- export type UiItemVariants = 'default' | 'outline' | 'muted';
4
+ export type UiItemVariants = 'default' | 'active' | 'outline' | 'hover' | 'hover-action';
5
5
  /**
6
6
  * Size types for the UiItem primitive component
7
7
  */
8
- export type UiItemSizes = 'default' | 'sm';
8
+ export type UiItemSizes = 'default' | 'sm' | 'minimal';
9
9
  /**
10
10
  * Media variant types for the UiItemMedia component
11
11
  */
12
- export type UiItemMediaVariants = 'default' | 'icon' | 'image';
12
+ export type UiItemMediaVariants = 'default' | 'icon' | 'image' | 'avatar-group';
13
+ /**
14
+ * Action variant types for the UiItemAction component
15
+ */
16
+ export type UiItemActionVariants = 'default' | 'text' | 'button';
13
17
  /**
14
18
  * A versatile component that you can use to display any content.
15
19
  * The Item component is a straightforward flex container that can house
@@ -17,15 +21,17 @@ export type UiItemMediaVariants = 'default' | 'icon' | 'image';
17
21
  * Group it with the ItemGroup component to create a list of items.
18
22
  * @category Layout
19
23
  * @useCases list item, menu entry, settings row, navigation item, notification, user card
20
- * @keywords item, list, row, entry, menu, settings, navigation, selectable, card
24
+ * @keywords item, list, row, entry, menu, settings, navigation, card
21
25
  * @related UiCard, UiButton, UiListbox
22
26
  */
23
27
  export interface UiItemProps {
24
28
  /**
25
29
  * Visual variant of the item.
26
- * - `default`: Standard styling with subtle background
30
+ * - `default`: Standard styling without interactive affordance
31
+ * - `active`: Active row with a left-edge indicator and active background
27
32
  * - `outline`: Outlined style with clear borders and transparent background
28
- * - `muted`: Subdued appearance with muted colors for secondary content
33
+ * - `hover`: Row with hover feedback
34
+ * - `hover-action`: Actionable row with hover feedback, except while hovering actions
29
35
  * @default 'default'
30
36
  */
31
37
  variant?: UiItemVariants;
@@ -33,23 +39,43 @@ export interface UiItemProps {
33
39
  * Size of the item.
34
40
  * - `default`: Standard size with comfortable padding
35
41
  * - `sm`: Compact size for dense layouts
42
+ * - `minimal`: Compact size with smaller default action affordance
36
43
  * @default 'default'
37
44
  */
38
45
  size?: UiItemSizes;
46
+ /**
47
+ * Convenience title rendered with UiItemTitle.
48
+ */
49
+ title?: string;
50
+ /**
51
+ * Convenience description rendered with UiItemDescription.
52
+ */
53
+ description?: string;
54
+ /**
55
+ * Alias for `description`.
56
+ */
57
+ desc?: string;
39
58
  /**
40
59
  * Whether to render as a child element (using Radix's asChild pattern).
41
60
  * Useful for rendering the item as a link or custom component.
42
- * The hover and focus states will be applied to the custom component.
61
+ * Variant and focus styles will be applied to the custom component.
43
62
  * @default false
44
63
  */
45
64
  asChild?: boolean;
46
65
  /**
47
- * When true (default), sets `role="listitem"` for use inside lists.
48
- * Set false when the parent already provides list semantics (e.g. inside `<li>`).
49
- * @default true
66
+ * When true, sets `role="listitem"` for use inside a parent with `role="list"`.
67
+ * Keep false when rendering standalone items or when the parent already
68
+ * provides list item semantics (e.g. an `<li>`).
69
+ * @default false
50
70
  */
51
71
  withListSemantics?: boolean;
52
72
  }
73
+ export interface UiItemEmits {
74
+ /**
75
+ * Emitted when the built-in default action button is clicked.
76
+ */
77
+ action: [event: MouseEvent];
78
+ }
53
79
  /**
54
80
  * Props for the UiItemGroup component.
55
81
  * Container that groups related items together with consistent styling.
@@ -69,7 +95,8 @@ export interface UiItemMediaProps {
69
95
  * Visual variant of the media container.
70
96
  * - `default`: Standard styling, suitable for avatars
71
97
  * - `icon`: Styled for icon display with appropriate sizing
72
- * - `image`: Styled for image display
98
+ * - `image`: Styled for a single avatar or image thumbnail
99
+ * - `avatar-group`: Styled for stacked avatar groups
73
100
  * @default 'default'
74
101
  */
75
102
  variant?: UiItemMediaVariants;
@@ -90,10 +117,23 @@ export type UiItemTitleProps = Record<string, never>;
90
117
  */
91
118
  export type UiItemDescriptionProps = Record<string, never>;
92
119
  /**
93
- * Props for the UiItemActions component.
120
+ * Props for the UiItemAction component.
94
121
  * Displays action buttons or other interactive elements.
95
122
  */
96
- export type UiItemActionsProps = Record<string, never>;
123
+ export interface UiItemActionProps {
124
+ /**
125
+ * Visual variant of the action container.
126
+ * - `default`: Standard flex action layout
127
+ * - `text`: Muted label action
128
+ * - `button`: Compact button-like action affordance
129
+ * @default 'default'
130
+ */
131
+ variant?: UiItemActionVariants;
132
+ /**
133
+ * Optional tooltip shown when hovering or focusing the action container.
134
+ */
135
+ tooltip?: string;
136
+ }
97
137
  /**
98
138
  * Props for the UiItemHeader component.
99
139
  * Displays a header above the item content.
@@ -1,6 +1,8 @@
1
1
  import { HTMLAttributes } from 'vue';
2
+ type AvatarSize = 5 | 6 | 8 | 10 | 12 | '5' | '6' | '8' | '10' | '12';
2
3
  type __VLS_Props = {
3
4
  class?: HTMLAttributes['class'];
5
+ size?: AvatarSize;
4
6
  };
5
7
  declare function __VLS_template(): {
6
8
  attrs: Partial<{}>;
@@ -1,3 +1,4 @@
1
1
  export { default as Avatar } from './Avatar.vue';
2
2
  export { default as AvatarFallback } from './AvatarFallback.vue';
3
+ export { default as AvatarGroup } from './AvatarGroup.vue';
3
4
  export { default as AvatarImage } from './AvatarImage.vue';
@@ -1,5 +1,5 @@
1
1
  import { CalendarRootProps, DateValue } from 'reka-ui';
2
- import { HTMLAttributes } from 'vue';
2
+ import { HTMLAttributes, nextTick } from 'vue';
3
3
  import { LayoutTypes } from '.';
4
4
  type __VLS_Props = CalendarRootProps & {
5
5
  class?: HTMLAttributes['class'];
@@ -21,7 +21,129 @@ declare function __VLS_template(): {
21
21
  }, Record<"default", undefined>>;
22
22
  }): any;
23
23
  };
24
- refs: {};
24
+ refs: {
25
+ calendarRootRef: ({
26
+ $: import('vue').ComponentInternalInstance;
27
+ $data: {};
28
+ $props: {
29
+ readonly defaultValue?: DateValue | undefined;
30
+ readonly defaultPlaceholder?: DateValue | undefined;
31
+ readonly placeholder?: DateValue | undefined;
32
+ readonly pagedNavigation?: boolean | undefined;
33
+ readonly preventDeselect?: boolean | undefined;
34
+ readonly weekStartsOn?: import('reka-ui/date').WeekStartsOn | undefined;
35
+ readonly weekdayFormat?: import('reka-ui/date').WeekDayFormat | undefined;
36
+ readonly calendarLabel?: string | undefined;
37
+ readonly fixedWeeks?: boolean | undefined;
38
+ readonly maxValue?: DateValue | undefined;
39
+ readonly minValue?: DateValue | undefined;
40
+ readonly locale?: string | undefined;
41
+ readonly numberOfMonths?: number | undefined;
42
+ readonly disabled?: boolean | undefined;
43
+ readonly readonly?: boolean | undefined;
44
+ readonly initialFocus?: boolean | undefined;
45
+ readonly isDateDisabled?: import('reka-ui/date').Matcher | undefined;
46
+ readonly isDateUnavailable?: import('reka-ui/date').Matcher | undefined;
47
+ readonly dir?: ("ltr" | "rtl") | undefined;
48
+ readonly nextPage?: ((placeholder: DateValue) => DateValue) | undefined;
49
+ readonly prevPage?: ((placeholder: DateValue) => DateValue) | undefined;
50
+ readonly modelValue?: DateValue | DateValue[] | undefined;
51
+ readonly multiple?: boolean | undefined;
52
+ readonly disableDaysOutsideCurrentView?: boolean | undefined;
53
+ readonly asChild?: boolean | undefined;
54
+ readonly as?: (import('reka-ui').AsTag | import('vue').Component) | undefined;
55
+ readonly "onUpdate:modelValue"?: ((date: DateValue | undefined) => any) | undefined | undefined;
56
+ readonly "onUpdate:placeholder"?: ((date: DateValue) => any) | undefined | undefined;
57
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
58
+ $attrs: {
59
+ [x: string]: unknown;
60
+ };
61
+ $refs: {
62
+ [x: string]: unknown;
63
+ };
64
+ $slots: Readonly<{
65
+ [name: string]: import('vue').Slot<any> | undefined;
66
+ }>;
67
+ $root: import('vue').ComponentPublicInstance | null;
68
+ $parent: import('vue').ComponentPublicInstance | null;
69
+ $host: Element | null;
70
+ $emit: ((event: "update:modelValue", date: DateValue | undefined) => void) & ((event: "update:placeholder", date: DateValue) => void);
71
+ $el: any;
72
+ $options: import('vue').ComponentOptionsBase<Readonly<CalendarRootProps> & Readonly<{
73
+ "onUpdate:modelValue"?: ((date: DateValue | undefined) => any) | undefined;
74
+ "onUpdate:placeholder"?: ((date: DateValue) => any) | undefined;
75
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
76
+ "update:modelValue": (date: DateValue | undefined) => any;
77
+ "update:placeholder": (date: DateValue) => any;
78
+ }, string, {
79
+ as: import('reka-ui').AsTag | import('vue').Component;
80
+ disabled: boolean;
81
+ defaultValue: DateValue;
82
+ multiple: boolean;
83
+ placeholder: DateValue;
84
+ readonly: boolean;
85
+ pagedNavigation: boolean;
86
+ preventDeselect: boolean;
87
+ weekdayFormat: import('reka-ui/date').WeekDayFormat;
88
+ fixedWeeks: boolean;
89
+ numberOfMonths: number;
90
+ initialFocus: boolean;
91
+ isDateDisabled: import('reka-ui/date').Matcher;
92
+ isDateUnavailable: import('reka-ui/date').Matcher;
93
+ disableDaysOutsideCurrentView: boolean;
94
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
95
+ beforeCreate?: (() => void) | (() => void)[];
96
+ created?: (() => void) | (() => void)[];
97
+ beforeMount?: (() => void) | (() => void)[];
98
+ mounted?: (() => void) | (() => void)[];
99
+ beforeUpdate?: (() => void) | (() => void)[];
100
+ updated?: (() => void) | (() => void)[];
101
+ activated?: (() => void) | (() => void)[];
102
+ deactivated?: (() => void) | (() => void)[];
103
+ beforeDestroy?: (() => void) | (() => void)[];
104
+ beforeUnmount?: (() => void) | (() => void)[];
105
+ destroyed?: (() => void) | (() => void)[];
106
+ unmounted?: (() => void) | (() => void)[];
107
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
108
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
109
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
110
+ };
111
+ $forceUpdate: () => void;
112
+ $nextTick: typeof nextTick;
113
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
114
+ } & Readonly<{
115
+ as: import('reka-ui').AsTag | import('vue').Component;
116
+ disabled: boolean;
117
+ defaultValue: DateValue;
118
+ multiple: boolean;
119
+ placeholder: DateValue;
120
+ readonly: boolean;
121
+ pagedNavigation: boolean;
122
+ preventDeselect: boolean;
123
+ weekdayFormat: import('reka-ui/date').WeekDayFormat;
124
+ fixedWeeks: boolean;
125
+ numberOfMonths: number;
126
+ initialFocus: boolean;
127
+ isDateDisabled: import('reka-ui/date').Matcher;
128
+ isDateUnavailable: import('reka-ui/date').Matcher;
129
+ disableDaysOutsideCurrentView: boolean;
130
+ }> & Omit<Readonly<CalendarRootProps> & Readonly<{
131
+ "onUpdate:modelValue"?: ((date: DateValue | undefined) => any) | undefined;
132
+ "onUpdate:placeholder"?: ((date: DateValue) => any) | undefined;
133
+ }>, "disabled" | "as" | "defaultValue" | "multiple" | "placeholder" | "pagedNavigation" | "preventDeselect" | "weekdayFormat" | "fixedWeeks" | "numberOfMonths" | "readonly" | "initialFocus" | "isDateDisabled" | "isDateUnavailable" | "disableDaysOutsideCurrentView"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
134
+ $slots: {
135
+ default?: (props: {
136
+ date: DateValue;
137
+ grid: import('reka-ui/date').Grid<DateValue>[];
138
+ weekDays: string[];
139
+ weekStartsOn: import('reka-ui/date').WeekStartsOn;
140
+ locale: string;
141
+ fixedWeeks: boolean;
142
+ modelValue: DateValue | DateValue[] | undefined;
143
+ }) => any;
144
+ };
145
+ }) | null;
146
+ };
25
147
  rootEl: any;
26
148
  };
27
149
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
@@ -34,7 +156,129 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
34
156
  }>, {
35
157
  modelValue: DateValue | DateValue[];
36
158
  layout: "month-and-year" | "month-only" | "year-only";
37
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
159
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
160
+ calendarRootRef: ({
161
+ $: import('vue').ComponentInternalInstance;
162
+ $data: {};
163
+ $props: {
164
+ readonly defaultValue?: DateValue | undefined;
165
+ readonly defaultPlaceholder?: DateValue | undefined;
166
+ readonly placeholder?: DateValue | undefined;
167
+ readonly pagedNavigation?: boolean | undefined;
168
+ readonly preventDeselect?: boolean | undefined;
169
+ readonly weekStartsOn?: import('reka-ui/date').WeekStartsOn | undefined;
170
+ readonly weekdayFormat?: import('reka-ui/date').WeekDayFormat | undefined;
171
+ readonly calendarLabel?: string | undefined;
172
+ readonly fixedWeeks?: boolean | undefined;
173
+ readonly maxValue?: DateValue | undefined;
174
+ readonly minValue?: DateValue | undefined;
175
+ readonly locale?: string | undefined;
176
+ readonly numberOfMonths?: number | undefined;
177
+ readonly disabled?: boolean | undefined;
178
+ readonly readonly?: boolean | undefined;
179
+ readonly initialFocus?: boolean | undefined;
180
+ readonly isDateDisabled?: import('reka-ui/date').Matcher | undefined;
181
+ readonly isDateUnavailable?: import('reka-ui/date').Matcher | undefined;
182
+ readonly dir?: ("ltr" | "rtl") | undefined;
183
+ readonly nextPage?: ((placeholder: DateValue) => DateValue) | undefined;
184
+ readonly prevPage?: ((placeholder: DateValue) => DateValue) | undefined;
185
+ readonly modelValue?: DateValue | DateValue[] | undefined;
186
+ readonly multiple?: boolean | undefined;
187
+ readonly disableDaysOutsideCurrentView?: boolean | undefined;
188
+ readonly asChild?: boolean | undefined;
189
+ readonly as?: (import('reka-ui').AsTag | import('vue').Component) | undefined;
190
+ readonly "onUpdate:modelValue"?: ((date: DateValue | undefined) => any) | undefined | undefined;
191
+ readonly "onUpdate:placeholder"?: ((date: DateValue) => any) | undefined | undefined;
192
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
193
+ $attrs: {
194
+ [x: string]: unknown;
195
+ };
196
+ $refs: {
197
+ [x: string]: unknown;
198
+ };
199
+ $slots: Readonly<{
200
+ [name: string]: import('vue').Slot<any> | undefined;
201
+ }>;
202
+ $root: import('vue').ComponentPublicInstance | null;
203
+ $parent: import('vue').ComponentPublicInstance | null;
204
+ $host: Element | null;
205
+ $emit: ((event: "update:modelValue", date: DateValue | undefined) => void) & ((event: "update:placeholder", date: DateValue) => void);
206
+ $el: any;
207
+ $options: import('vue').ComponentOptionsBase<Readonly<CalendarRootProps> & Readonly<{
208
+ "onUpdate:modelValue"?: ((date: DateValue | undefined) => any) | undefined;
209
+ "onUpdate:placeholder"?: ((date: DateValue) => any) | undefined;
210
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
211
+ "update:modelValue": (date: DateValue | undefined) => any;
212
+ "update:placeholder": (date: DateValue) => any;
213
+ }, string, {
214
+ as: import('reka-ui').AsTag | import('vue').Component;
215
+ disabled: boolean;
216
+ defaultValue: DateValue;
217
+ multiple: boolean;
218
+ placeholder: DateValue;
219
+ readonly: boolean;
220
+ pagedNavigation: boolean;
221
+ preventDeselect: boolean;
222
+ weekdayFormat: import('reka-ui/date').WeekDayFormat;
223
+ fixedWeeks: boolean;
224
+ numberOfMonths: number;
225
+ initialFocus: boolean;
226
+ isDateDisabled: import('reka-ui/date').Matcher;
227
+ isDateUnavailable: import('reka-ui/date').Matcher;
228
+ disableDaysOutsideCurrentView: boolean;
229
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
230
+ beforeCreate?: (() => void) | (() => void)[];
231
+ created?: (() => void) | (() => void)[];
232
+ beforeMount?: (() => void) | (() => void)[];
233
+ mounted?: (() => void) | (() => void)[];
234
+ beforeUpdate?: (() => void) | (() => void)[];
235
+ updated?: (() => void) | (() => void)[];
236
+ activated?: (() => void) | (() => void)[];
237
+ deactivated?: (() => void) | (() => void)[];
238
+ beforeDestroy?: (() => void) | (() => void)[];
239
+ beforeUnmount?: (() => void) | (() => void)[];
240
+ destroyed?: (() => void) | (() => void)[];
241
+ unmounted?: (() => void) | (() => void)[];
242
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
243
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
244
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
245
+ };
246
+ $forceUpdate: () => void;
247
+ $nextTick: typeof nextTick;
248
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
249
+ } & Readonly<{
250
+ as: import('reka-ui').AsTag | import('vue').Component;
251
+ disabled: boolean;
252
+ defaultValue: DateValue;
253
+ multiple: boolean;
254
+ placeholder: DateValue;
255
+ readonly: boolean;
256
+ pagedNavigation: boolean;
257
+ preventDeselect: boolean;
258
+ weekdayFormat: import('reka-ui/date').WeekDayFormat;
259
+ fixedWeeks: boolean;
260
+ numberOfMonths: number;
261
+ initialFocus: boolean;
262
+ isDateDisabled: import('reka-ui/date').Matcher;
263
+ isDateUnavailable: import('reka-ui/date').Matcher;
264
+ disableDaysOutsideCurrentView: boolean;
265
+ }> & Omit<Readonly<CalendarRootProps> & Readonly<{
266
+ "onUpdate:modelValue"?: ((date: DateValue | undefined) => any) | undefined;
267
+ "onUpdate:placeholder"?: ((date: DateValue) => any) | undefined;
268
+ }>, "disabled" | "as" | "defaultValue" | "multiple" | "placeholder" | "pagedNavigation" | "preventDeselect" | "weekdayFormat" | "fixedWeeks" | "numberOfMonths" | "readonly" | "initialFocus" | "isDateDisabled" | "isDateUnavailable" | "disableDaysOutsideCurrentView"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
269
+ $slots: {
270
+ default?: (props: {
271
+ date: DateValue;
272
+ grid: import('reka-ui/date').Grid<DateValue>[];
273
+ weekDays: string[];
274
+ weekStartsOn: import('reka-ui/date').WeekStartsOn;
275
+ locale: string;
276
+ fixedWeeks: boolean;
277
+ modelValue: DateValue | DateValue[] | undefined;
278
+ }) => any;
279
+ };
280
+ }) | null;
281
+ }, any>;
38
282
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
39
283
  export default _default;
40
284
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -5,7 +5,7 @@ type __VLS_Props = PrimitiveProps & {
5
5
  class?: HTMLAttributes['class'];
6
6
  variant?: ItemVariants['variant'];
7
7
  size?: ItemVariants['size'];
8
- /** When false, omits `role="listitem"` (e.g. item is already inside an `<li>`). */
8
+ /** When true, sets `role="listitem"` for use inside an element with `role="list"`. */
9
9
  withListSemantics?: boolean;
10
10
  };
11
11
  declare function __VLS_template(): {
@@ -0,0 +1,25 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ import { ItemActionVariants } from '.';
3
+ type __VLS_Props = {
4
+ class?: HTMLAttributes['class'];
5
+ variant?: ItemActionVariants['variant'];
6
+ tooltip?: string;
7
+ };
8
+ declare function __VLS_template(): {
9
+ attrs: Partial<{}>;
10
+ slots: {
11
+ default?(_: {}): any;
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<{}>, {}, {}, {}, {}, 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
+ };
@@ -1,6 +1,6 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
2
  export { default as Item } from './Item.vue';
3
- export { default as ItemActions } from './ItemActions.vue';
3
+ export { default as ItemAction } from './ItemAction.vue';
4
4
  export { default as ItemContent } from './ItemContent.vue';
5
5
  export { default as ItemDescription } from './ItemDescription.vue';
6
6
  export { default as ItemFooter } from './ItemFooter.vue';
@@ -10,11 +10,15 @@ export { default as ItemMedia } from './ItemMedia.vue';
10
10
  export { default as ItemSeparator } from './ItemSeparator.vue';
11
11
  export { default as ItemTitle } from './ItemTitle.vue';
12
12
  export declare const itemVariants: (props?: ({
13
- variant?: "default" | "outline" | "muted" | null | undefined;
14
- size?: "default" | "sm" | null | undefined;
13
+ variant?: "default" | "outline" | "active" | "hover" | "hover-action" | null | undefined;
14
+ size?: "default" | "sm" | "minimal" | null | undefined;
15
15
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
16
16
  export declare const itemMediaVariants: (props?: ({
17
- variant?: "default" | "image" | "icon" | null | undefined;
17
+ variant?: "default" | "image" | "icon" | "avatar-group" | null | undefined;
18
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
19
+ export declare const itemActionVariants: (props?: ({
20
+ variant?: "button" | "default" | "text" | null | undefined;
18
21
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
19
22
  export type ItemVariants = VariantProps<typeof itemVariants>;
20
23
  export type ItemMediaVariants = VariantProps<typeof itemMediaVariants>;
24
+ export type ItemActionVariants = VariantProps<typeof itemActionVariants>;
@@ -28,7 +28,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
28
28
  onCloseAutoFocus?: ((event: Event) => any) | undefined;
29
29
  }>, {
30
30
  sideOffset: number;
31
- align: "start" | "center" | "end";
31
+ align: "center" | "start" | "end";
32
32
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
33
33
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
34
34
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { RangeCalendarRootProps } from 'reka-ui';
2
- import { HTMLAttributes } from 'vue';
2
+ import { HTMLAttributes, nextTick } from 'vue';
3
3
  type __VLS_Props = RangeCalendarRootProps & {
4
4
  class?: HTMLAttributes['class'];
5
5
  };
@@ -13,5 +13,142 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
13
13
  "onUpdate:placeholder"?: ((date: import('reka-ui').DateValue) => any) | undefined;
14
14
  "onUpdate:validModelValue"?: ((date: import('reka-ui').DateRange) => any) | undefined;
15
15
  "onUpdate:startValue"?: ((date: import('reka-ui').DateValue | undefined) => any) | undefined;
16
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
16
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
17
+ rangeCalendarRootRef: ({
18
+ $: import('vue').ComponentInternalInstance;
19
+ $data: {};
20
+ $props: {
21
+ readonly defaultPlaceholder?: import('reka-ui').DateValue | undefined;
22
+ readonly defaultValue?: import('reka-ui').DateRange | undefined;
23
+ readonly modelValue?: (import('reka-ui').DateRange | null) | undefined;
24
+ readonly placeholder?: import('reka-ui').DateValue | undefined;
25
+ readonly allowNonContiguousRanges?: boolean | undefined;
26
+ readonly pagedNavigation?: boolean | undefined;
27
+ readonly preventDeselect?: boolean | undefined;
28
+ readonly maximumDays?: number | undefined;
29
+ readonly weekStartsOn?: import('reka-ui/date').WeekStartsOn | undefined;
30
+ readonly weekdayFormat?: import('reka-ui/date').WeekDayFormat | undefined;
31
+ readonly calendarLabel?: string | undefined;
32
+ readonly fixedWeeks?: boolean | undefined;
33
+ readonly maxValue?: import('reka-ui').DateValue | undefined;
34
+ readonly minValue?: import('reka-ui').DateValue | undefined;
35
+ readonly locale?: string | undefined;
36
+ readonly numberOfMonths?: number | undefined;
37
+ readonly disabled?: boolean | undefined;
38
+ readonly readonly?: boolean | undefined;
39
+ readonly initialFocus?: boolean | undefined;
40
+ readonly isDateDisabled?: import('reka-ui/date').Matcher | undefined;
41
+ readonly isDateUnavailable?: import('reka-ui/date').Matcher | undefined;
42
+ readonly isDateHighlightable?: import('reka-ui/date').Matcher | undefined;
43
+ readonly dir?: ("ltr" | "rtl") | undefined;
44
+ readonly nextPage?: ((placeholder: import('reka-ui').DateValue) => import('reka-ui').DateValue) | undefined;
45
+ readonly prevPage?: ((placeholder: import('reka-ui').DateValue) => import('reka-ui').DateValue) | undefined;
46
+ readonly disableDaysOutsideCurrentView?: boolean | undefined;
47
+ readonly fixedDate?: "start" | "end" | undefined;
48
+ readonly asChild?: boolean | undefined;
49
+ readonly as?: (import('reka-ui').AsTag | import('vue').Component) | undefined;
50
+ readonly "onUpdate:modelValue"?: ((date: import('reka-ui').DateRange) => any) | undefined | undefined;
51
+ readonly "onUpdate:validModelValue"?: ((date: import('reka-ui').DateRange) => any) | undefined | undefined;
52
+ readonly "onUpdate:placeholder"?: ((date: import('reka-ui').DateValue) => any) | undefined | undefined;
53
+ readonly "onUpdate:startValue"?: ((date: import('reka-ui').DateValue | undefined) => any) | undefined | undefined;
54
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
55
+ $attrs: {
56
+ [x: string]: unknown;
57
+ };
58
+ $refs: {
59
+ [x: string]: unknown;
60
+ };
61
+ $slots: Readonly<{
62
+ [name: string]: import('vue').Slot<any> | undefined;
63
+ }>;
64
+ $root: import('vue').ComponentPublicInstance | null;
65
+ $parent: import('vue').ComponentPublicInstance | null;
66
+ $host: Element | null;
67
+ $emit: ((event: "update:modelValue", date: import('reka-ui').DateRange) => void) & ((event: "update:placeholder", date: import('reka-ui').DateValue) => void) & ((event: "update:validModelValue", date: import('reka-ui').DateRange) => void) & ((event: "update:startValue", date: import('reka-ui').DateValue | undefined) => void);
68
+ $el: any;
69
+ $options: import('vue').ComponentOptionsBase<Readonly<RangeCalendarRootProps> & Readonly<{
70
+ "onUpdate:modelValue"?: ((date: import('reka-ui').DateRange) => any) | undefined;
71
+ "onUpdate:validModelValue"?: ((date: import('reka-ui').DateRange) => any) | undefined;
72
+ "onUpdate:placeholder"?: ((date: import('reka-ui').DateValue) => any) | undefined;
73
+ "onUpdate:startValue"?: ((date: import('reka-ui').DateValue | undefined) => any) | undefined;
74
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
75
+ "update:modelValue": (date: import('reka-ui').DateRange) => any;
76
+ "update:validModelValue": (date: import('reka-ui').DateRange) => any;
77
+ "update:placeholder": (date: import('reka-ui').DateValue) => any;
78
+ "update:startValue": (date: import('reka-ui').DateValue | undefined) => any;
79
+ }, string, {
80
+ as: import('reka-ui').AsTag | import('vue').Component;
81
+ disabled: boolean;
82
+ defaultValue: import('reka-ui').DateRange;
83
+ placeholder: import('reka-ui').DateValue;
84
+ readonly: boolean;
85
+ allowNonContiguousRanges: boolean;
86
+ pagedNavigation: boolean;
87
+ preventDeselect: boolean;
88
+ maximumDays: number;
89
+ weekdayFormat: import('reka-ui/date').WeekDayFormat;
90
+ fixedWeeks: boolean;
91
+ numberOfMonths: number;
92
+ initialFocus: boolean;
93
+ isDateDisabled: import('reka-ui/date').Matcher;
94
+ isDateUnavailable: import('reka-ui/date').Matcher;
95
+ isDateHighlightable: import('reka-ui/date').Matcher;
96
+ disableDaysOutsideCurrentView: boolean;
97
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
98
+ beforeCreate?: (() => void) | (() => void)[];
99
+ created?: (() => void) | (() => void)[];
100
+ beforeMount?: (() => void) | (() => void)[];
101
+ mounted?: (() => void) | (() => void)[];
102
+ beforeUpdate?: (() => void) | (() => void)[];
103
+ updated?: (() => void) | (() => void)[];
104
+ activated?: (() => void) | (() => void)[];
105
+ deactivated?: (() => void) | (() => void)[];
106
+ beforeDestroy?: (() => void) | (() => void)[];
107
+ beforeUnmount?: (() => void) | (() => void)[];
108
+ destroyed?: (() => void) | (() => void)[];
109
+ unmounted?: (() => void) | (() => void)[];
110
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
111
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
112
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
113
+ };
114
+ $forceUpdate: () => void;
115
+ $nextTick: typeof nextTick;
116
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
117
+ } & Readonly<{
118
+ as: import('reka-ui').AsTag | import('vue').Component;
119
+ disabled: boolean;
120
+ defaultValue: import('reka-ui').DateRange;
121
+ placeholder: import('reka-ui').DateValue;
122
+ readonly: boolean;
123
+ allowNonContiguousRanges: boolean;
124
+ pagedNavigation: boolean;
125
+ preventDeselect: boolean;
126
+ maximumDays: number;
127
+ weekdayFormat: import('reka-ui/date').WeekDayFormat;
128
+ fixedWeeks: boolean;
129
+ numberOfMonths: number;
130
+ initialFocus: boolean;
131
+ isDateDisabled: import('reka-ui/date').Matcher;
132
+ isDateUnavailable: import('reka-ui/date').Matcher;
133
+ isDateHighlightable: import('reka-ui/date').Matcher;
134
+ disableDaysOutsideCurrentView: boolean;
135
+ }> & Omit<Readonly<RangeCalendarRootProps> & Readonly<{
136
+ "onUpdate:modelValue"?: ((date: import('reka-ui').DateRange) => any) | undefined;
137
+ "onUpdate:validModelValue"?: ((date: import('reka-ui').DateRange) => any) | undefined;
138
+ "onUpdate:placeholder"?: ((date: import('reka-ui').DateValue) => any) | undefined;
139
+ "onUpdate:startValue"?: ((date: import('reka-ui').DateValue | undefined) => any) | undefined;
140
+ }>, "disabled" | "as" | "defaultValue" | "placeholder" | "pagedNavigation" | "preventDeselect" | "weekdayFormat" | "fixedWeeks" | "numberOfMonths" | "readonly" | "initialFocus" | "isDateDisabled" | "isDateUnavailable" | "disableDaysOutsideCurrentView" | "allowNonContiguousRanges" | "maximumDays" | "isDateHighlightable"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
141
+ $slots: {
142
+ default?: (props: {
143
+ date: import('reka-ui').DateValue;
144
+ grid: import('reka-ui/date').Grid<import('reka-ui').DateValue>[];
145
+ weekDays: string[];
146
+ weekStartsOn: import('reka-ui/date').WeekStartsOn;
147
+ locale: string;
148
+ fixedWeeks: boolean;
149
+ modelValue: import('reka-ui').DateRange;
150
+ }) => any;
151
+ };
152
+ }) | null;
153
+ }, any>;
17
154
  export default _default;
@@ -19,6 +19,7 @@ export * from './UiDropdownMenu';
19
19
  export * from './UiEmpty';
20
20
  export * from './UiField';
21
21
  export * from './UiFileItem';
22
+ export * from './UiFileType';
22
23
  export * from './UiFileUploadBox';
23
24
  export * from './UiIcon';
24
25
  export * from './UiInput';
@@ -0,0 +1 @@
1
+ export declare const ACTIVE_INDICATOR_CLASS = "ui-active-indicator";