@contentstudio/ui 0.2.25 → 0.2.26

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 (164) hide show
  1. package/dist/index.d.ts +7520 -47
  2. package/package.json +1 -1
  3. package/dist/App.vue.d.ts +0 -2
  4. package/dist/components/Accordion/Accordion.vue.d.ts +0 -58
  5. package/dist/components/Accordion/AccordionItem.vue.d.ts +0 -63
  6. package/dist/components/Accordion/index.d.ts +0 -3
  7. package/dist/components/Accordion/types.d.ts +0 -15
  8. package/dist/components/ActionIcon/ActionIcon.vue.d.ts +0 -105
  9. package/dist/components/ActionIcon/index.d.ts +0 -2
  10. package/dist/components/ActionIcon/types.d.ts +0 -53
  11. package/dist/components/Alert/Alert.vue.d.ts +0 -94
  12. package/dist/components/Alert/index.d.ts +0 -4
  13. package/dist/components/Alert/types.d.ts +0 -30
  14. package/dist/components/Avatar/Avatar.vue.d.ts +0 -106
  15. package/dist/components/Avatar/AvatarGroup.vue.d.ts +0 -76
  16. package/dist/components/Avatar/index.d.ts +0 -5
  17. package/dist/components/Avatar/types.d.ts +0 -58
  18. package/dist/components/Avatar/utils.d.ts +0 -9
  19. package/dist/components/Badge/Badge.vue.d.ts +0 -109
  20. package/dist/components/Badge/index.d.ts +0 -2
  21. package/dist/components/Badge/types.d.ts +0 -35
  22. package/dist/components/Breadcrumbs/Breadcrumbs.vue.d.ts +0 -80
  23. package/dist/components/Breadcrumbs/index.d.ts +0 -3
  24. package/dist/components/Breadcrumbs/types.d.ts +0 -23
  25. package/dist/components/Button/Button.vue.d.ts +0 -85
  26. package/dist/components/Button/index.d.ts +0 -2
  27. package/dist/components/Button/types.d.ts +0 -40
  28. package/dist/components/Card/Card.vue.d.ts +0 -202
  29. package/dist/components/Card/CardSection.vue.d.ts +0 -57
  30. package/dist/components/Card/index.d.ts +0 -4
  31. package/dist/components/Card/types.d.ts +0 -31
  32. package/dist/components/Checkbox/Checkbox.vue.d.ts +0 -94
  33. package/dist/components/Checkbox/index.d.ts +0 -4
  34. package/dist/components/Checkbox/types.d.ts +0 -20
  35. package/dist/components/Chip/Chip.vue.d.ts +0 -108
  36. package/dist/components/Chip/index.d.ts +0 -4
  37. package/dist/components/Chip/types.d.ts +0 -48
  38. package/dist/components/ClientExtensionDemo/index.d.ts +0 -1
  39. package/dist/components/ClientExtensionDemo.vue.d.ts +0 -2
  40. package/dist/components/Collapsible/Collapsible.vue.d.ts +0 -77
  41. package/dist/components/Collapsible/index.d.ts +0 -4
  42. package/dist/components/Collapsible/types.d.ts +0 -9
  43. package/dist/components/Dialog/Dialog.vue.d.ts +0 -151
  44. package/dist/components/Dialog/index.d.ts +0 -4
  45. package/dist/components/Dialog/types.d.ts +0 -28
  46. package/dist/components/Drawer/Drawer.vue.d.ts +0 -134
  47. package/dist/components/Drawer/index.d.ts +0 -4
  48. package/dist/components/Drawer/types.d.ts +0 -61
  49. package/dist/components/Dropdown/Dropdown.vue.d.ts +0 -131
  50. package/dist/components/Dropdown/DropdownItem.vue.d.ts +0 -64
  51. package/dist/components/Dropdown/index.d.ts +0 -7
  52. package/dist/components/Dropdown/types.d.ts +0 -41
  53. package/dist/components/DropdownMenu/DropdownMenu.vue.d.ts +0 -109
  54. package/dist/components/DropdownMenu/index.d.ts +0 -3
  55. package/dist/components/HoverCard/HoverCard.vue.d.ts +0 -104
  56. package/dist/components/HoverCard/HoverCardTarget.vue.d.ts +0 -49
  57. package/dist/components/HoverCard/index.d.ts +0 -384
  58. package/dist/components/HoverCard/types.d.ts +0 -40
  59. package/dist/components/HoverCard/useHoverCard.d.ts +0 -20
  60. package/dist/components/Icon/Icon.vue.d.ts +0 -15
  61. package/dist/components/Icon/index.d.ts +0 -4
  62. package/dist/components/Icon/types.d.ts +0 -12
  63. package/dist/components/Indicator/Indicator.vue.d.ts +0 -129
  64. package/dist/components/Indicator/index.d.ts +0 -2
  65. package/dist/components/Indicator/types.d.ts +0 -29
  66. package/dist/components/ListItem/ListItem.vue.d.ts +0 -64
  67. package/dist/components/ListItem/index.d.ts +0 -6
  68. package/dist/components/ListItem/types.d.ts +0 -7
  69. package/dist/components/Loader/Loader.vue.d.ts +0 -65
  70. package/dist/components/Loader/index.d.ts +0 -2
  71. package/dist/components/Loader/types.d.ts +0 -16
  72. package/dist/components/Loader/variants/BarsLoader.vue.d.ts +0 -35
  73. package/dist/components/Loader/variants/DotsLoader.vue.d.ts +0 -35
  74. package/dist/components/Loader/variants/OvalLoader.vue.d.ts +0 -39
  75. package/dist/components/Modal/MessageBoxConfirm.vue.d.ts +0 -275
  76. package/dist/components/Modal/MessageBoxOk.vue.d.ts +0 -207
  77. package/dist/components/Modal/Modal.vue.d.ts +0 -494
  78. package/dist/components/Modal/directive.d.ts +0 -14
  79. package/dist/components/Modal/index.d.ts +0 -7
  80. package/dist/components/Modal/plugin.d.ts +0 -59
  81. package/dist/components/Modal/types.d.ts +0 -79
  82. package/dist/components/Pagination/Pagination.vue.d.ts +0 -84
  83. package/dist/components/Pagination/index.d.ts +0 -3
  84. package/dist/components/Pagination/types.d.ts +0 -32
  85. package/dist/components/Pill/Pill.vue.d.ts +0 -84
  86. package/dist/components/Pill/index.d.ts +0 -2
  87. package/dist/components/Pill/types.d.ts +0 -21
  88. package/dist/components/Popover/Popover.vue.d.ts +0 -197
  89. package/dist/components/Popover/index.d.ts +0 -4
  90. package/dist/components/Popover/types.d.ts +0 -67
  91. package/dist/components/Progress/Progress.vue.d.ts +0 -138
  92. package/dist/components/Progress/index.d.ts +0 -4
  93. package/dist/components/Progress/types.d.ts +0 -44
  94. package/dist/components/Radio/Radio.vue.d.ts +0 -99
  95. package/dist/components/Radio/index.d.ts +0 -2
  96. package/dist/components/Radio/types.d.ts +0 -53
  97. package/dist/components/RangeSlider/RangeSlider.vue.d.ts +0 -175
  98. package/dist/components/RangeSlider/index.d.ts +0 -2
  99. package/dist/components/RangeSlider/types.d.ts +0 -115
  100. package/dist/components/SearchInput/index.d.ts +0 -2
  101. package/dist/components/SearchInput/types.d.ts +0 -52
  102. package/dist/components/SegmentedControl/SegmentedControl.vue.d.ts +0 -97
  103. package/dist/components/SegmentedControl/index.d.ts +0 -4
  104. package/dist/components/SegmentedControl/types.d.ts +0 -55
  105. package/dist/components/Select/Select.vue.d.ts +0 -123
  106. package/dist/components/Select/index.d.ts +0 -2
  107. package/dist/components/Select/types.d.ts +0 -22
  108. package/dist/components/Slider/Slider.vue.d.ts +0 -164
  109. package/dist/components/Slider/index.d.ts +0 -3
  110. package/dist/components/Slider/types.d.ts +0 -145
  111. package/dist/components/SplitButton/SplitButton.vue.d.ts +0 -105
  112. package/dist/components/SplitButton/index.d.ts +0 -2
  113. package/dist/components/SplitButton/types.d.ts +0 -22
  114. package/dist/components/Stepper/Stepper.vue.d.ts +0 -65
  115. package/dist/components/Stepper/StepperItem.vue.d.ts +0 -79
  116. package/dist/components/Stepper/index.d.ts +0 -3
  117. package/dist/components/Stepper/types.d.ts +0 -14
  118. package/dist/components/Switch/Switch.vue.d.ts +0 -117
  119. package/dist/components/Switch/index.d.ts +0 -4
  120. package/dist/components/Switch/types.d.ts +0 -55
  121. package/dist/components/Table/Table.vue.d.ts +0 -78
  122. package/dist/components/Table/index.d.ts +0 -2
  123. package/dist/components/Table/types.d.ts +0 -25
  124. package/dist/components/Tabs/Tabs.vue.d.ts +0 -78
  125. package/dist/components/Tabs/TabsList.vue.d.ts +0 -52
  126. package/dist/components/Tabs/TabsPanel.vue.d.ts +0 -38
  127. package/dist/components/Tabs/TabsTab.vue.d.ts +0 -108
  128. package/dist/components/Tabs/index.d.ts +0 -5
  129. package/dist/components/Tabs/types.d.ts +0 -69
  130. package/dist/components/TextInput/index.d.ts +0 -2
  131. package/dist/components/TextInput/types.d.ts +0 -47
  132. package/dist/components/Textarea/index.d.ts +0 -2
  133. package/dist/components/Textarea/types.d.ts +0 -54
  134. package/dist/components/ThemeProvider/ThemeProvider.vue.d.ts +0 -88
  135. package/dist/components/ThemeProvider/index.d.ts +0 -1
  136. package/dist/components/ThemeToggle/ThemeToggle.vue.d.ts +0 -46
  137. package/dist/components/ThemeToggle/index.d.ts +0 -1
  138. package/dist/components/Toast/CustomToast.vue.d.ts +0 -50
  139. package/dist/components/Toast/Toast.vue.d.ts +0 -154
  140. package/dist/components/Toast/index.d.ts +0 -7
  141. package/dist/components/Toast/plugin.d.ts +0 -70
  142. package/dist/components/Toast/types.d.ts +0 -93
  143. package/dist/components/index.d.ts +0 -35
  144. package/dist/composables/index.d.ts +0 -1
  145. package/dist/composables/useDropdown.d.ts +0 -23
  146. package/dist/composables/useTheme.d.ts +0 -189
  147. package/dist/composables/useThemeContext.d.ts +0 -193
  148. package/dist/composables/useThemeMode.d.ts +0 -21
  149. package/dist/directives/click-away/index.d.ts +0 -2
  150. package/dist/main.d.ts +0 -0
  151. package/dist/theme/darkMode.d.ts +0 -17
  152. package/dist/theme/extensions.d.ts +0 -50
  153. package/dist/theme/generator.d.ts +0 -31
  154. package/dist/theme/tailwind.d.ts +0 -10
  155. package/dist/theme/types.d.ts +0 -47
  156. package/dist/types/common.d.ts +0 -14
  157. package/dist/types/index.d.ts +0 -70
  158. package/dist/utils/colors.d.ts +0 -89
  159. package/dist/utils/forms.d.ts +0 -35
  160. package/dist/utils/position.d.ts +0 -11
  161. package/dist/utils/radius.d.ts +0 -2
  162. package/dist/utils/shadows.d.ts +0 -9
  163. package/dist/utils/sizes.d.ts +0 -7
  164. package/dist/utils/states.d.ts +0 -28
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentstudio/ui",
3
- "version": "0.2.25",
3
+ "version": "0.2.26",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
package/dist/App.vue.d.ts DELETED
@@ -1,2 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}>;
2
- export default _default;
@@ -1,58 +0,0 @@
1
- import { AccordionItemData } from './types';
2
- declare function __VLS_template(): {
3
- slots: {
4
- default?(_: {}): any;
5
- };
6
- refs: {};
7
- attrs: Partial<{}>;
8
- };
9
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
- declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
11
- items?: AccordionItemData[];
12
- multiple?: boolean;
13
- defaultValue?: string | string[];
14
- }>, {
15
- items: undefined;
16
- multiple: boolean;
17
- defaultValue: undefined;
18
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
19
- change: (value: string) => void;
20
- }, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
21
- items?: AccordionItemData[];
22
- multiple?: boolean;
23
- defaultValue?: string | string[];
24
- }>, {
25
- items: undefined;
26
- multiple: boolean;
27
- defaultValue: undefined;
28
- }>>> & {
29
- onChange?: ((value: string) => any) | undefined;
30
- }, {
31
- defaultValue: string | string[];
32
- multiple: boolean;
33
- items: AccordionItemData[];
34
- }>;
35
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
36
- export default _default;
37
- type __VLS_WithDefaults<P, D> = {
38
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
39
- default: D[K];
40
- }> : P[K];
41
- };
42
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
43
- type __VLS_TypePropsToOption<T> = {
44
- [K in keyof T]-?: {} extends Pick<T, K> ? {
45
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
46
- } : {
47
- type: import('vue').PropType<T[K]>;
48
- required: true;
49
- };
50
- };
51
- type __VLS_WithTemplateSlots<T, S> = T & {
52
- new (): {
53
- $slots: S;
54
- };
55
- };
56
- type __VLS_PrettifyLocal<T> = {
57
- [K in keyof T]: T[K];
58
- } & {};
@@ -1,63 +0,0 @@
1
- declare function __VLS_template(): {
2
- slots: {
3
- icon?(_: {}): any;
4
- default?(_: {}): any;
5
- };
6
- refs: {};
7
- attrs: Partial<{}>;
8
- };
9
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
- declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
11
- value: string;
12
- title: string;
13
- content?: string;
14
- iconLeft?: boolean;
15
- secondaryText?: string;
16
- disabled?: boolean;
17
- }>, {
18
- content: string;
19
- iconLeft: boolean;
20
- secondaryText: string;
21
- disabled: boolean;
22
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
23
- value: string;
24
- title: string;
25
- content?: string;
26
- iconLeft?: boolean;
27
- secondaryText?: string;
28
- disabled?: boolean;
29
- }>, {
30
- content: string;
31
- iconLeft: boolean;
32
- secondaryText: string;
33
- disabled: boolean;
34
- }>>>, {
35
- disabled: boolean;
36
- content: string;
37
- iconLeft: boolean;
38
- secondaryText: string;
39
- }>;
40
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
41
- export default _default;
42
- type __VLS_WithDefaults<P, D> = {
43
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
44
- default: D[K];
45
- }> : P[K];
46
- };
47
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
48
- type __VLS_TypePropsToOption<T> = {
49
- [K in keyof T]-?: {} extends Pick<T, K> ? {
50
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
51
- } : {
52
- type: import('vue').PropType<T[K]>;
53
- required: true;
54
- };
55
- };
56
- type __VLS_WithTemplateSlots<T, S> = T & {
57
- new (): {
58
- $slots: S;
59
- };
60
- };
61
- type __VLS_PrettifyLocal<T> = {
62
- [K in keyof T]: T[K];
63
- } & {};
@@ -1,3 +0,0 @@
1
- export { default as Accordion } from './Accordion.vue';
2
- export { default as AccordionItem } from './AccordionItem.vue';
3
- export * from './types';
@@ -1,15 +0,0 @@
1
- import { Component, InjectionKey, Ref } from 'vue';
2
- export interface AccordionItemData {
3
- value: string;
4
- title: string;
5
- content: string;
6
- icon?: Component | null;
7
- secondaryText?: string;
8
- disabled?: boolean;
9
- }
10
- export interface AccordionContext {
11
- openItems: Ref<string[]>;
12
- multiple: boolean;
13
- toggle: (value: string) => void;
14
- }
15
- export declare const accordionContextKey: InjectionKey<AccordionContext>;
@@ -1,105 +0,0 @@
1
- import { ComponentSize, ComponentRadius, ButtonVariant, ThemeColor } from '../../types/common';
2
- import { LoaderProps } from '../Loader/types';
3
- interface Props {
4
- /** Determines whether Loader component should be displayed instead of the children */
5
- loading?: boolean;
6
- /** Props added to the Loader component (only visible when loading prop is set) */
7
- loaderProps?: LoaderProps;
8
- /** Controls width and height of the button */
9
- size?: ComponentSize;
10
- /** Color variant of the button */
11
- color?: ThemeColor;
12
- /** Border radius value */
13
- radius?: ComponentRadius;
14
- /** Gradient data used when variant="gradient" */
15
- gradient?: {
16
- from: string;
17
- to: string;
18
- deg?: number;
19
- };
20
- /** Sets disabled and data-disabled attributes on the button element */
21
- disabled?: boolean;
22
- /** Icon name from Lucide icons library */
23
- iconName?: string;
24
- /**
25
- * Raw CSS color value applied directly to the icon's SVG stroke via
26
- * lucide-vue-next's `:color` prop (e.g. "#4A4A4A", "red", "currentColor").
27
- * Only applies when `iconName` is used.
28
- * Use `iconColorClass` instead if you prefer Tailwind classes.
29
- */
30
- iconColor?: string;
31
- /**
32
- * Tailwind class(es) applied to the icon wrapper `<span>` to control color
33
- * via `currentColor` inheritance. Use this when you prefer Tailwind classes
34
- * (e.g. "text-gray-500", "cstu:text-gray-500", "text-[#4A4A4A]") over a raw
35
- * CSS color. Works with both the `iconName` path and slotted icon content,
36
- * provided the slotted SVG/icon inherits stroke from `currentColor`.
37
- * If `iconColor` is also provided, the explicit CSS color wins for the
38
- * `iconName` path because lucide sets the SVG stroke directly.
39
- */
40
- iconColorClass?: string;
41
- /** Style variant */
42
- variant?: ButtonVariant;
43
- /** Additional CSS class names */
44
- class?: string;
45
- /** Click event handler */
46
- onClick?: (event: MouseEvent) => void;
47
- }
48
- declare function __VLS_template(): {
49
- slots: {
50
- default?(_: {}): any;
51
- };
52
- refs: {};
53
- attrs: Partial<{}>;
54
- };
55
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
56
- declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
57
- size: string;
58
- variant: string;
59
- color: string;
60
- radius: string;
61
- loading: boolean;
62
- disabled: boolean;
63
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
64
- click: (event: MouseEvent) => void;
65
- }, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
66
- size: string;
67
- variant: string;
68
- color: string;
69
- radius: string;
70
- loading: boolean;
71
- disabled: boolean;
72
- }>>> & {
73
- onClick?: ((event: MouseEvent) => any) | undefined;
74
- }, {
75
- disabled: boolean;
76
- variant: ButtonVariant;
77
- color: ThemeColor;
78
- size: ComponentSize;
79
- radius: ComponentRadius;
80
- loading: boolean;
81
- }>;
82
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
83
- export default _default;
84
- type __VLS_WithDefaults<P, D> = {
85
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
86
- default: D[K];
87
- }> : P[K];
88
- };
89
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
90
- type __VLS_TypePropsToOption<T> = {
91
- [K in keyof T]-?: {} extends Pick<T, K> ? {
92
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
93
- } : {
94
- type: import('vue').PropType<T[K]>;
95
- required: true;
96
- };
97
- };
98
- type __VLS_WithTemplateSlots<T, S> = T & {
99
- new (): {
100
- $slots: S;
101
- };
102
- };
103
- type __VLS_PrettifyLocal<T> = {
104
- [K in keyof T]: T[K];
105
- } & {};
@@ -1,2 +0,0 @@
1
- export { default as ActionIcon } from './ActionIcon.vue';
2
- export * from './types';
@@ -1,53 +0,0 @@
1
- import { LoaderProps } from '../Loader/types';
2
- import { ComponentSize, ComponentRadius, ButtonVariant, ThemeColor } from '../../types/common';
3
- export type ActionIconVariant = ButtonVariant;
4
- export type ActionIconSize = ComponentSize;
5
- export interface ActionIconProps {
6
- /** Determines whether Loader component should be displayed instead of the children */
7
- loading?: boolean;
8
- /** Props added to the Loader component (only visible when loading prop is set) */
9
- loaderProps?: LoaderProps;
10
- /** Controls width and height of the button */
11
- size?: ActionIconSize;
12
- /** Color variant of the button */
13
- color?: ThemeColor;
14
- /** Border radius value */
15
- radius?: ComponentRadius;
16
- /** Gradient data used when variant="gradient" */
17
- gradient?: {
18
- from: string;
19
- to: string;
20
- deg?: number;
21
- };
22
- /** Sets disabled and data-disabled attributes on the button element */
23
- disabled?: boolean;
24
- /** Icon name from Lucide icons library */
25
- iconName?: string;
26
- /**
27
- * Raw CSS color value applied directly to the icon's SVG stroke via
28
- * lucide-vue-next's `:color` prop (e.g. "#4A4A4A", "red", "currentColor").
29
- * Only applies when `iconName` is used.
30
- * Use `iconColorClass` instead if you prefer Tailwind classes.
31
- */
32
- iconColor?: string;
33
- /**
34
- * Tailwind class(es) applied to the icon wrapper `<span>` to control color
35
- * via `currentColor` inheritance. Use this when you prefer Tailwind classes
36
- * (e.g. "text-gray-500", "cstu:text-gray-500", "text-[#4A4A4A]") over a raw
37
- * CSS color. Works with both the `iconName` path and slotted icon content,
38
- * provided the slotted SVG/icon inherits stroke from `currentColor`.
39
- * If `iconColor` is also provided, the explicit CSS color wins for the
40
- * `iconName` path because lucide sets the SVG stroke directly.
41
- */
42
- iconColorClass?: string;
43
- /** Style variant */
44
- variant?: ActionIconVariant;
45
- /** Additional CSS class names */
46
- class?: string;
47
- /** Click event handler */
48
- onClick?: (event: MouseEvent) => void;
49
- }
50
- export interface ActionIconEmits {
51
- /** Click event */
52
- click: [event: MouseEvent];
53
- }
@@ -1,94 +0,0 @@
1
- declare function __VLS_template(): {
2
- slots: {
3
- icon?(_: {}): any;
4
- default?(_: {}): any;
5
- };
6
- refs: {};
7
- attrs: Partial<{}>;
8
- };
9
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
- declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
11
- title?: string;
12
- message?: string;
13
- variant?: "filled" | "outline" | "light" | "gradient";
14
- color?: "primary" | "secondary" | "success" | "warning" | "danger" | "info" | "dark" | "light";
15
- size?: "xs" | "sm" | "md" | "lg" | "xl";
16
- radius?: "none" | "sm" | "md" | "lg" | "xl" | "full";
17
- closable?: boolean;
18
- onClose?: () => void;
19
- disabled?: boolean;
20
- loading?: boolean;
21
- valid?: boolean;
22
- invalid?: boolean;
23
- }>, {
24
- variant: string;
25
- color: string;
26
- size: string;
27
- radius: string;
28
- closable: boolean;
29
- disabled: boolean;
30
- loading: boolean;
31
- valid: undefined;
32
- invalid: undefined;
33
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
34
- close: () => void;
35
- }, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
36
- title?: string;
37
- message?: string;
38
- variant?: "filled" | "outline" | "light" | "gradient";
39
- color?: "primary" | "secondary" | "success" | "warning" | "danger" | "info" | "dark" | "light";
40
- size?: "xs" | "sm" | "md" | "lg" | "xl";
41
- radius?: "none" | "sm" | "md" | "lg" | "xl" | "full";
42
- closable?: boolean;
43
- onClose?: () => void;
44
- disabled?: boolean;
45
- loading?: boolean;
46
- valid?: boolean;
47
- invalid?: boolean;
48
- }>, {
49
- variant: string;
50
- color: string;
51
- size: string;
52
- radius: string;
53
- closable: boolean;
54
- disabled: boolean;
55
- loading: boolean;
56
- valid: undefined;
57
- invalid: undefined;
58
- }>>> & {
59
- onClose?: (() => any) | undefined;
60
- }, {
61
- disabled: boolean;
62
- variant: "filled" | "outline" | "light" | "gradient";
63
- color: "primary" | "secondary" | "success" | "warning" | "danger" | "info" | "dark" | "light";
64
- size: "xs" | "sm" | "md" | "lg" | "xl";
65
- radius: "none" | "sm" | "md" | "lg" | "xl" | "full";
66
- loading: boolean;
67
- invalid: boolean;
68
- closable: boolean;
69
- valid: boolean;
70
- }>;
71
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
72
- export default _default;
73
- type __VLS_WithDefaults<P, D> = {
74
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
75
- default: D[K];
76
- }> : P[K];
77
- };
78
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
79
- type __VLS_TypePropsToOption<T> = {
80
- [K in keyof T]-?: {} extends Pick<T, K> ? {
81
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
82
- } : {
83
- type: import('vue').PropType<T[K]>;
84
- required: true;
85
- };
86
- };
87
- type __VLS_WithTemplateSlots<T, S> = T & {
88
- new (): {
89
- $slots: S;
90
- };
91
- };
92
- type __VLS_PrettifyLocal<T> = {
93
- [K in keyof T]: T[K];
94
- } & {};
@@ -1,4 +0,0 @@
1
- import { default as Alert } from './Alert.vue';
2
- export { Alert };
3
- export * from './types';
4
- export default Alert;
@@ -1,30 +0,0 @@
1
- import { ComponentSize } from '../../types/common';
2
- import { ColorVariant, VariantType } from '../../utils/colors';
3
- export interface AlertProps {
4
- /** Title of the alert */
5
- title?: string;
6
- /** Main content of the alert */
7
- message?: string;
8
- /** Icon to display */
9
- icon?: string;
10
- /** Alert variant */
11
- variant?: VariantType;
12
- /** Color of the alert */
13
- color?: ColorVariant;
14
- /** Size of the alert */
15
- size?: ComponentSize;
16
- /** Whether to show close button */
17
- closable?: boolean;
18
- /** Callback when alert is closed */
19
- onClose?: () => void;
20
- /** Whether the alert is disabled */
21
- disabled?: boolean;
22
- /** Whether the alert is in loading state */
23
- loading?: boolean;
24
- /** Whether the alert is in valid state */
25
- valid?: boolean;
26
- /** Whether the alert is in invalid state */
27
- invalid?: boolean;
28
- /** Custom classes */
29
- class?: string;
30
- }
@@ -1,106 +0,0 @@
1
- import { ColorVariant, VariantType } from '../../utils/colors';
2
- import { Radius } from '../../utils/radius';
3
- type AvatarSize = 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl';
4
- type AvatarVariant = VariantType | 'transparent';
5
- interface AvatarProps {
6
- /** Width and height of the avatar */
7
- size?: AvatarSize | string | number;
8
- /** Border radius of the avatar */
9
- radius?: Radius;
10
- /**
11
- * Color of the avatar
12
- * Can be a predefined color variant or a custom CSS color
13
- */
14
- color?: string;
15
- /** Gradient configuration when variant is gradient */
16
- gradient?: {
17
- from: ColorVariant;
18
- to: ColorVariant;
19
- deg?: number;
20
- };
21
- /** Image source URL */
22
- src?: string | null;
23
- /** Image alt text and placeholder title */
24
- alt?: string;
25
- /** Additional image attributes */
26
- imageProps?: Record<string, any>;
27
- /** Avatar placeholder content */
28
- children?: any;
29
- /** Determines whether text color should depend on background-color */
30
- autoContrast?: boolean;
31
- /** User name for generating initials when src is not available */
32
- name?: string;
33
- /** Colors used for autogenerated initials */
34
- allowedInitialsColors?: ColorVariant[];
35
- /** Component variant */
36
- variant?: AvatarVariant;
37
- /** HTML element or component to render as */
38
- component?: string | object;
39
- /** Enable hover effect (scale and shadow) */
40
- hover?: boolean;
41
- /** Custom CSS classes to apply to the avatar */
42
- customClasses?: string | string[];
43
- }
44
- declare function __VLS_template(): {
45
- slots: {
46
- default?(_: {}): any;
47
- };
48
- refs: {};
49
- attrs: Partial<{}>;
50
- };
51
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
52
- declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<AvatarProps>, {
53
- size: string;
54
- radius: string;
55
- color: string;
56
- variant: VariantType;
57
- autoContrast: boolean;
58
- src: null;
59
- component: string;
60
- hover: boolean;
61
- customClasses: string;
62
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<AvatarProps>, {
63
- size: string;
64
- radius: string;
65
- color: string;
66
- variant: VariantType;
67
- autoContrast: boolean;
68
- src: null;
69
- component: string;
70
- hover: boolean;
71
- customClasses: string;
72
- }>>>, {
73
- hover: boolean;
74
- variant: AvatarVariant;
75
- color: string;
76
- size: AvatarSize | string | number;
77
- radius: Radius;
78
- autoContrast: boolean;
79
- src: string | null;
80
- customClasses: string | string[];
81
- component: string | object;
82
- }>;
83
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
84
- export default _default;
85
- type __VLS_WithDefaults<P, D> = {
86
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
87
- default: D[K];
88
- }> : P[K];
89
- };
90
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
91
- type __VLS_TypePropsToOption<T> = {
92
- [K in keyof T]-?: {} extends Pick<T, K> ? {
93
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
94
- } : {
95
- type: import('vue').PropType<T[K]>;
96
- required: true;
97
- };
98
- };
99
- type __VLS_WithTemplateSlots<T, S> = T & {
100
- new (): {
101
- $slots: S;
102
- };
103
- };
104
- type __VLS_PrettifyLocal<T> = {
105
- [K in keyof T]: T[K];
106
- } & {};
@@ -1,76 +0,0 @@
1
- import { ColorVariant } from '../../utils/colors';
2
- interface AvatarGroupProps {
3
- /** Spacing between avatars (sm, md, lg) */
4
- spacing?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | number;
5
- /** Gap between avatars in the group */
6
- gap?: 'none' | 'xs' | 'sm' | 'md' | 'lg' | string | number;
7
- /** Outline width for avatars in the group */
8
- outlineWidth?: 'none' | 'thin' | 'normal' | 'medium' | 'thick' | string | number;
9
- /** Outline color for avatars in the group */
10
- outlineColor?: ColorVariant | string;
11
- /** Outline offset for avatars in the group */
12
- outlineOffset?: 'none' | 'inset' | 'small' | 'medium' | 'large' | string | number;
13
- /** Custom CSS classes to apply to the avatar group */
14
- customClasses?: string | string[];
15
- /** Maximum number of avatars to show before displaying a count */
16
- max?: number;
17
- /** Enable hover effect on avatars in the group */
18
- hover?: boolean;
19
- }
20
- declare function __VLS_template(): {
21
- slots: {
22
- default?(_: {}): any;
23
- };
24
- refs: {};
25
- attrs: Partial<{}>;
26
- };
27
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
28
- declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<AvatarGroupProps>, {
29
- spacing: string;
30
- gap: string;
31
- outlineWidth: string;
32
- outlineColor: string;
33
- outlineOffset: string;
34
- hover: boolean;
35
- customClasses: string;
36
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<AvatarGroupProps>, {
37
- spacing: string;
38
- gap: string;
39
- outlineWidth: string;
40
- outlineColor: string;
41
- outlineOffset: string;
42
- hover: boolean;
43
- customClasses: string;
44
- }>>>, {
45
- hover: boolean;
46
- gap: "none" | "xs" | "sm" | "md" | "lg" | string | number;
47
- outlineColor: ColorVariant | string;
48
- outlineOffset: "none" | "inset" | "small" | "medium" | "large" | string | number;
49
- outlineWidth: "none" | "thin" | "normal" | "medium" | "thick" | string | number;
50
- customClasses: string | string[];
51
- spacing: "xs" | "sm" | "md" | "lg" | "xl" | number;
52
- }>;
53
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
54
- export default _default;
55
- type __VLS_WithDefaults<P, D> = {
56
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
57
- default: D[K];
58
- }> : P[K];
59
- };
60
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
61
- type __VLS_TypePropsToOption<T> = {
62
- [K in keyof T]-?: {} extends Pick<T, K> ? {
63
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
64
- } : {
65
- type: import('vue').PropType<T[K]>;
66
- required: true;
67
- };
68
- };
69
- type __VLS_WithTemplateSlots<T, S> = T & {
70
- new (): {
71
- $slots: S;
72
- };
73
- };
74
- type __VLS_PrettifyLocal<T> = {
75
- [K in keyof T]: T[K];
76
- } & {};
@@ -1,5 +0,0 @@
1
- import { default as Avatar } from './Avatar.vue';
2
- import { default as AvatarGroup } from './AvatarGroup.vue';
3
- export { Avatar, AvatarGroup };
4
- export * from './types';
5
- export * from './utils';