@contentstudio/ui 0.2.25-rc.25 → 0.2.26-rc.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
@@ -1,58 +0,0 @@
1
- import { Radius } from '../../utils/radius';
2
- import { ColorVariant, VariantType } from '../../utils/colors';
3
- export type AvatarVariant = VariantType | 'transparent';
4
- export type AvatarSize = 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl';
5
- export interface AvatarProps {
6
- /** Width and height of the avatar */
7
- size?: AvatarSize | string | number;
8
- /** Border radius of the avatar */
9
- radius?: Radius;
10
- /** Color of the avatar */
11
- color?: ColorVariant | 'initials';
12
- /** Gradient configuration when variant is gradient */
13
- gradient?: {
14
- from: ColorVariant;
15
- to: ColorVariant;
16
- deg?: number;
17
- };
18
- /** Image source URL */
19
- src?: string | null;
20
- /** Image alt text and placeholder title */
21
- alt?: string;
22
- /** Additional image attributes */
23
- imageProps?: Record<string, any>;
24
- /** Avatar placeholder content */
25
- children?: any;
26
- /** Determines whether text color should depend on background-color */
27
- autoContrast?: boolean;
28
- /** User name for generating initials when src is not available */
29
- name?: string;
30
- /** Colors used for autogenerated initials */
31
- allowedInitialsColors?: ColorVariant[];
32
- /** Component variant */
33
- variant?: AvatarVariant;
34
- /** HTML element or component to render as */
35
- component?: string | object;
36
- /** Enable hover effect (scale and shadow) */
37
- hover?: boolean;
38
- /** Custom CSS classes to apply to the avatar */
39
- customClasses?: string | string[];
40
- }
41
- export interface AvatarGroupProps {
42
- /** Spacing between avatars (sm, md, lg) */
43
- spacing?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | number;
44
- /** Gap between avatars in the group */
45
- gap?: 'none' | 'xs' | 'sm' | 'md' | 'lg' | string | number;
46
- /** Outline width for avatars in the group */
47
- outlineWidth?: 'none' | 'thin' | 'normal' | 'medium' | 'thick' | string | number;
48
- /** Outline color for avatars in the group */
49
- outlineColor?: ColorVariant | string;
50
- /** Outline offset for avatars in the group */
51
- outlineOffset?: 'none' | 'inset' | 'small' | 'medium' | 'large' | string | number;
52
- /** Custom CSS classes to apply to the avatar group */
53
- customClasses?: string | string[];
54
- /** Maximum number of avatars to show before displaying a count */
55
- max?: number;
56
- /** Enable hover effect on avatars in the group */
57
- hover?: boolean;
58
- }
@@ -1,9 +0,0 @@
1
- import { ColorVariant } from '../../utils/colors';
2
- /**
3
- * Generates a color from a string (name) using a simple hash function
4
- */
5
- export declare function getInitialsColor(name: string, allowedColors?: ColorVariant[]): ColorVariant;
6
- /**
7
- * Extracts initials from a name string
8
- */
9
- export declare function getInitials(name: string): string;
@@ -1,109 +0,0 @@
1
- import { BadgeGradient, BadgeVariant } from './types';
2
- import { ComponentSize, ComponentRadius } from '../../types/common';
3
- declare function __VLS_template(): {
4
- slots: {
5
- default?(_: {}): any;
6
- };
7
- refs: {};
8
- attrs: Partial<{}>;
9
- };
10
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
- declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
12
- /** Badge variant */
13
- variant?: BadgeVariant;
14
- /** Badge color */
15
- color?: string;
16
- /** CSS class to apply to the text */
17
- textClass?: string;
18
- /** Badge size */
19
- size?: ComponentSize;
20
- /** Border radius */
21
- radius?: ComponentRadius;
22
- /** Whether the badge is a circle */
23
- circle?: boolean;
24
- /** Whether the badge should take full width */
25
- fullWidth?: boolean;
26
- /** Whether text color should automatically contrast with background */
27
- autoContrast?: boolean;
28
- /** Gradient configuration for gradient variant */
29
- gradient?: BadgeGradient;
30
- /** Content to display in the left section */
31
- leftSection?: string | any;
32
- /** Content to display in the right section */
33
- rightSection?: string | any;
34
- /** Component to render as */
35
- component?: string | any;
36
- }>, {
37
- variant: string;
38
- color: string;
39
- size: string;
40
- radius: string;
41
- circle: boolean;
42
- fullWidth: boolean;
43
- autoContrast: boolean;
44
- }>, {}, 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<{
45
- /** Badge variant */
46
- variant?: BadgeVariant;
47
- /** Badge color */
48
- color?: string;
49
- /** CSS class to apply to the text */
50
- textClass?: string;
51
- /** Badge size */
52
- size?: ComponentSize;
53
- /** Border radius */
54
- radius?: ComponentRadius;
55
- /** Whether the badge is a circle */
56
- circle?: boolean;
57
- /** Whether the badge should take full width */
58
- fullWidth?: boolean;
59
- /** Whether text color should automatically contrast with background */
60
- autoContrast?: boolean;
61
- /** Gradient configuration for gradient variant */
62
- gradient?: BadgeGradient;
63
- /** Content to display in the left section */
64
- leftSection?: string | any;
65
- /** Content to display in the right section */
66
- rightSection?: string | any;
67
- /** Component to render as */
68
- component?: string | any;
69
- }>, {
70
- variant: string;
71
- color: string;
72
- size: string;
73
- radius: string;
74
- circle: boolean;
75
- fullWidth: boolean;
76
- autoContrast: boolean;
77
- }>>>, {
78
- variant: BadgeVariant;
79
- color: string;
80
- size: ComponentSize;
81
- radius: ComponentRadius;
82
- fullWidth: boolean;
83
- circle: boolean;
84
- autoContrast: boolean;
85
- }>;
86
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
87
- export default _default;
88
- type __VLS_WithDefaults<P, D> = {
89
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
90
- default: D[K];
91
- }> : P[K];
92
- };
93
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
94
- type __VLS_TypePropsToOption<T> = {
95
- [K in keyof T]-?: {} extends Pick<T, K> ? {
96
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
97
- } : {
98
- type: import('vue').PropType<T[K]>;
99
- required: true;
100
- };
101
- };
102
- type __VLS_WithTemplateSlots<T, S> = T & {
103
- new (): {
104
- $slots: S;
105
- };
106
- };
107
- type __VLS_PrettifyLocal<T> = {
108
- [K in keyof T]: T[K];
109
- } & {};
@@ -1,2 +0,0 @@
1
- export { default as Badge } from './Badge.vue';
2
- export * from './types';
@@ -1,35 +0,0 @@
1
- import { Component } from 'vue';
2
- import { ComponentSize, ComponentRadius, ThemeColor } from '../../types/common';
3
- export type BadgeVariant = 'filled' | 'light' | 'outline' | 'gradient' | 'transparent';
4
- export interface BadgeGradient {
5
- /** First gradient color */
6
- from: string;
7
- /** Second gradient color */
8
- to: string;
9
- /** Gradient direction in degrees */
10
- deg?: number;
11
- }
12
- export interface BadgeProps {
13
- /** Controls font-size, height and horizontal padding */
14
- size?: ComponentSize;
15
- /** If set, badge min-width becomes equal to its height and horizontal padding is removed */
16
- circle?: boolean;
17
- /** Controls border-radius */
18
- radius?: ComponentRadius;
19
- /** Badge color */
20
- color?: ThemeColor | string;
21
- /** Gradient configuration used when variant="gradient" */
22
- gradient?: BadgeGradient;
23
- /** Content displayed on the left side of the badge label */
24
- leftSection?: string | Component;
25
- /** Content displayed on the right side of the badge label */
26
- rightSection?: string | Component;
27
- /** Determines whether Badge should take 100% of its parent width */
28
- fullWidth?: boolean;
29
- /** Badge variant */
30
- variant?: BadgeVariant;
31
- /** Polymorphic component prop - allows changing the root element */
32
- component?: string | Component;
33
- /** Automatically adjust text color for better contrast with background */
34
- autoContrast?: boolean;
35
- }
@@ -1,80 +0,0 @@
1
- import { ComponentSize, ComponentRadius, ThemeColor } from '../../types/common';
2
- import { Component } from 'vue';
3
- type BreadcrumbsSpacing = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
4
- interface Props {
5
- /** Separator between children, '/' by default */
6
- separator?: string | Component;
7
- /** Controls spacing between separator and breadcrumb, 'xs' by default */
8
- separatorMargin?: BreadcrumbsSpacing;
9
- /** Controls the size of the breadcrumbs */
10
- size?: ComponentSize;
11
- /** Controls border-radius of the active breadcrumb */
12
- radius?: ComponentRadius;
13
- /** Color of the active breadcrumb */
14
- color?: ThemeColor | string;
15
- /** Determines whether to highlight the active (last) breadcrumb */
16
- highlightActive?: boolean;
17
- /** Custom class for the container */
18
- class?: string;
19
- /** Custom class for the separator */
20
- separatorClass?: string;
21
- /** Custom class for the active breadcrumb */
22
- activeClass?: string;
23
- }
24
- declare function __VLS_template(): {
25
- slots: Partial<Record<`item-${number}`, (_: {
26
- isActive: boolean;
27
- }) => any>> & {
28
- default?(_: {}): any;
29
- separator?(_: {}): any;
30
- };
31
- refs: {};
32
- attrs: Partial<{}>;
33
- };
34
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
35
- declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
36
- separator: string;
37
- separatorMargin: string;
38
- size: string;
39
- radius: string;
40
- color: string;
41
- highlightActive: boolean;
42
- }>, {}, 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<Props>, {
43
- separator: string;
44
- separatorMargin: string;
45
- size: string;
46
- radius: string;
47
- color: string;
48
- highlightActive: boolean;
49
- }>>>, {
50
- color: ThemeColor | string;
51
- size: ComponentSize;
52
- radius: ComponentRadius;
53
- separator: string | Component;
54
- separatorMargin: BreadcrumbsSpacing;
55
- highlightActive: boolean;
56
- }>;
57
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
58
- export default _default;
59
- type __VLS_WithDefaults<P, D> = {
60
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
61
- default: D[K];
62
- }> : P[K];
63
- };
64
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
65
- type __VLS_TypePropsToOption<T> = {
66
- [K in keyof T]-?: {} extends Pick<T, K> ? {
67
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
68
- } : {
69
- type: import('vue').PropType<T[K]>;
70
- required: true;
71
- };
72
- };
73
- type __VLS_WithTemplateSlots<T, S> = T & {
74
- new (): {
75
- $slots: S;
76
- };
77
- };
78
- type __VLS_PrettifyLocal<T> = {
79
- [K in keyof T]: T[K];
80
- } & {};
@@ -1,3 +0,0 @@
1
- import { default as Breadcrumbs } from './Breadcrumbs.vue';
2
- export { Breadcrumbs };
3
- export default Breadcrumbs;
@@ -1,23 +0,0 @@
1
- import { Component } from 'vue';
2
- import { ComponentSize, ComponentRadius, ThemeColor } from '../../types/common';
3
- export type BreadcrumbsSpacing = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
4
- export interface BreadcrumbsProps {
5
- /** Separator between children, '/' by default */
6
- separator?: string | Component;
7
- /** Controls spacing between separator and breadcrumb, 'xs' by default */
8
- separatorMargin?: BreadcrumbsSpacing;
9
- /** Controls the size of the breadcrumbs */
10
- size?: ComponentSize;
11
- /** Controls border-radius of the active breadcrumb */
12
- radius?: ComponentRadius;
13
- /** Color of the active breadcrumb */
14
- color?: ThemeColor | string;
15
- /** Determines whether to highlight the active (last) breadcrumb */
16
- highlightActive?: boolean;
17
- /** Custom class for the container */
18
- class?: string;
19
- /** Custom class for the separator */
20
- separatorClass?: string;
21
- /** Custom class for the active (last) breadcrumb */
22
- activeClass?: string;
23
- }
@@ -1,85 +0,0 @@
1
- declare function __VLS_template(): {
2
- slots: {
3
- leftSection?(_: {}): any;
4
- default?(_: {}): any;
5
- loader?(_: {}): any;
6
- rightSection?(_: {}): any;
7
- };
8
- refs: {};
9
- attrs: Partial<{}>;
10
- };
11
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
- declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
13
- variant?: "filled" | "light" | "outline" | "subtle" | "text";
14
- color?: "primary" | "secondary" | "success" | "warning" | "danger" | "info" | "dark" | "light" | string;
15
- size?: "xs" | "sm" | "md" | "lg" | "xl";
16
- radius?: "xs" | "sm" | "md" | "lg" | "xl" | "none" | "full";
17
- disabled?: boolean;
18
- loading?: boolean;
19
- fullWidth?: boolean;
20
- type?: "button" | "submit" | "reset";
21
- }>, {
22
- variant: string;
23
- color: string;
24
- size: string;
25
- radius: string;
26
- disabled: boolean;
27
- loading: boolean;
28
- fullWidth: boolean;
29
- type: string;
30
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
31
- click: (event: MouseEvent) => void;
32
- }, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
33
- variant?: "filled" | "light" | "outline" | "subtle" | "text";
34
- color?: "primary" | "secondary" | "success" | "warning" | "danger" | "info" | "dark" | "light" | string;
35
- size?: "xs" | "sm" | "md" | "lg" | "xl";
36
- radius?: "xs" | "sm" | "md" | "lg" | "xl" | "none" | "full";
37
- disabled?: boolean;
38
- loading?: boolean;
39
- fullWidth?: boolean;
40
- type?: "button" | "submit" | "reset";
41
- }>, {
42
- variant: string;
43
- color: string;
44
- size: string;
45
- radius: string;
46
- disabled: boolean;
47
- loading: boolean;
48
- fullWidth: boolean;
49
- type: string;
50
- }>>> & {
51
- onClick?: ((event: MouseEvent) => any) | undefined;
52
- }, {
53
- disabled: boolean;
54
- variant: "filled" | "light" | "outline" | "subtle" | "text";
55
- color: "primary" | "secondary" | "success" | "warning" | "danger" | "info" | "dark" | "light" | string;
56
- size: "xs" | "sm" | "md" | "lg" | "xl";
57
- radius: "xs" | "sm" | "md" | "lg" | "xl" | "none" | "full";
58
- loading: boolean;
59
- fullWidth: boolean;
60
- type: "button" | "submit" | "reset";
61
- }>;
62
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
63
- export default _default;
64
- type __VLS_WithDefaults<P, D> = {
65
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
66
- default: D[K];
67
- }> : P[K];
68
- };
69
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
70
- type __VLS_TypePropsToOption<T> = {
71
- [K in keyof T]-?: {} extends Pick<T, K> ? {
72
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
73
- } : {
74
- type: import('vue').PropType<T[K]>;
75
- required: true;
76
- };
77
- };
78
- type __VLS_WithTemplateSlots<T, S> = T & {
79
- new (): {
80
- $slots: S;
81
- };
82
- };
83
- type __VLS_PrettifyLocal<T> = {
84
- [K in keyof T]: T[K];
85
- } & {};
@@ -1,2 +0,0 @@
1
- export { default as Button } from './Button.vue';
2
- export * from './types';
@@ -1,40 +0,0 @@
1
- import { ComponentSize, ComponentRadius, ButtonVariant, ThemeColor } from '../../types/common';
2
- export type MantineColor = 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info' | 'dark' | 'light';
3
- export type MantineGradient = {
4
- from: string;
5
- to: string;
6
- deg?: number;
7
- };
8
- export type MantineRadius = 'none' | 'sm' | 'md' | 'lg' | 'full' | number;
9
- export type MantineSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
10
- export type JustifyContent = 'start' | 'center' | 'end' | 'space-between';
11
- export interface ButtonLoaderProps {
12
- color?: MantineColor;
13
- size?: MantineSize | number;
14
- variant?: 'oval' | 'dots' | 'bars';
15
- }
16
- export interface ButtonProps {
17
- /** Button variant */
18
- variant?: ButtonVariant;
19
- /** Button color */
20
- color?: ThemeColor;
21
- /** Button size */
22
- size?: ComponentSize;
23
- /** Border radius */
24
- radius?: ComponentRadius;
25
- /** Disabled state */
26
- disabled?: boolean;
27
- /** Loading state */
28
- loading?: boolean;
29
- /** Full width button */
30
- fullWidth?: boolean;
31
- /** Custom class names */
32
- class?: string;
33
- /** Button type */
34
- type?: 'button' | 'submit' | 'reset';
35
- /** Left section content */
36
- onClick?: (event: MouseEvent) => any;
37
- }
38
- export type ButtonColor = NonNullable<ButtonProps['color']>;
39
- export type ButtonSize = NonNullable<ButtonProps['size']>;
40
- export type ButtonRadius = NonNullable<ButtonProps['radius']>;
@@ -1,202 +0,0 @@
1
- interface Props {
2
- /** Border radius */
3
- radius?: 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
4
- /** Whether to add a border */
5
- withBorder?: boolean;
6
- /** Whether to add a shadow */
7
- shadow?: 'none' | 'sm' | 'md' | 'lg' | 'xl' | 'soft';
8
- /** Custom padding */
9
- padding?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'none';
10
- /** Component to render as */
11
- component?: string;
12
- /** Custom class names */
13
- class?: string;
14
- /** Custom border color (only applied when withBorder is true) */
15
- borderColor?: string;
16
- }
17
- declare function __VLS_template(): {
18
- slots: {
19
- default?(_: {}): any;
20
- footer?(_: {}): any;
21
- };
22
- refs: {};
23
- attrs: Partial<{}>;
24
- };
25
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
26
- declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
27
- radius: string;
28
- withBorder: boolean;
29
- shadow: string;
30
- padding: string;
31
- component: string;
32
- }>, {
33
- Section: {
34
- new (...args: any[]): {
35
- $: import('vue').ComponentInternalInstance;
36
- $data: {};
37
- $props: Partial<{
38
- component: string;
39
- withBorder: boolean;
40
- inheritPadding: boolean;
41
- }> & Omit<Readonly<import('vue').ExtractPropTypes<{
42
- borderColor: {
43
- type: import('vue').PropType<string>;
44
- };
45
- class: {
46
- type: import('vue').PropType<string>;
47
- };
48
- component: {
49
- type: import('vue').PropType<string>;
50
- default: string;
51
- };
52
- withBorder: {
53
- type: import('vue').PropType<boolean>;
54
- default: boolean;
55
- };
56
- inheritPadding: {
57
- type: import('vue').PropType<boolean>;
58
- default: boolean;
59
- };
60
- }>> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "component" | "withBorder" | "inheritPadding">;
61
- $attrs: {
62
- [x: string]: unknown;
63
- };
64
- $refs: {
65
- [x: string]: unknown;
66
- };
67
- $slots: import('vue').Slots;
68
- $root: import('vue').ComponentPublicInstance | null;
69
- $parent: import('vue').ComponentPublicInstance | null;
70
- $emit: (event: string, ...args: any[]) => void;
71
- $el: any;
72
- $options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
73
- borderColor: {
74
- type: import('vue').PropType<string>;
75
- };
76
- class: {
77
- type: import('vue').PropType<string>;
78
- };
79
- component: {
80
- type: import('vue').PropType<string>;
81
- default: string;
82
- };
83
- withBorder: {
84
- type: import('vue').PropType<boolean>;
85
- default: boolean;
86
- };
87
- inheritPadding: {
88
- type: import('vue').PropType<boolean>;
89
- default: boolean;
90
- };
91
- }>>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
92
- component: string;
93
- withBorder: boolean;
94
- inheritPadding: boolean;
95
- }, {}, string> & {
96
- beforeCreate?: (() => void) | (() => void)[];
97
- created?: (() => void) | (() => void)[];
98
- beforeMount?: (() => void) | (() => void)[];
99
- mounted?: (() => void) | (() => void)[];
100
- beforeUpdate?: (() => void) | (() => void)[];
101
- updated?: (() => void) | (() => void)[];
102
- activated?: (() => void) | (() => void)[];
103
- deactivated?: (() => void) | (() => void)[];
104
- beforeDestroy?: (() => void) | (() => void)[];
105
- beforeUnmount?: (() => void) | (() => void)[];
106
- destroyed?: (() => void) | (() => void)[];
107
- unmounted?: (() => void) | (() => void)[];
108
- renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
109
- renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
110
- errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
111
- };
112
- $forceUpdate: () => void;
113
- $nextTick: typeof import('vue').nextTick;
114
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R]) => any : (...args: any) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
115
- } & Readonly<import('vue').ExtractPropTypes<{
116
- borderColor: {
117
- type: import('vue').PropType<string>;
118
- };
119
- class: {
120
- type: import('vue').PropType<string>;
121
- };
122
- component: {
123
- type: import('vue').PropType<string>;
124
- default: string;
125
- };
126
- withBorder: {
127
- type: import('vue').PropType<boolean>;
128
- default: boolean;
129
- };
130
- inheritPadding: {
131
- type: import('vue').PropType<boolean>;
132
- default: boolean;
133
- };
134
- }>> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {};
135
- __isFragment?: never;
136
- __isTeleport?: never;
137
- __isSuspense?: never;
138
- } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
139
- borderColor: {
140
- type: import('vue').PropType<string>;
141
- };
142
- class: {
143
- type: import('vue').PropType<string>;
144
- };
145
- component: {
146
- type: import('vue').PropType<string>;
147
- default: string;
148
- };
149
- withBorder: {
150
- type: import('vue').PropType<boolean>;
151
- default: boolean;
152
- };
153
- inheritPadding: {
154
- type: import('vue').PropType<boolean>;
155
- default: boolean;
156
- };
157
- }>>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
158
- component: string;
159
- withBorder: boolean;
160
- inheritPadding: boolean;
161
- }, {}, string> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
162
- $slots: {
163
- default?(_: {}): any;
164
- };
165
- });
166
- }, 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<Props>, {
167
- radius: string;
168
- withBorder: boolean;
169
- shadow: string;
170
- padding: string;
171
- component: string;
172
- }>>>, {
173
- radius: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full";
174
- padding: "xs" | "sm" | "md" | "lg" | "xl" | "none";
175
- component: string;
176
- shadow: "none" | "sm" | "md" | "lg" | "xl" | "soft";
177
- withBorder: boolean;
178
- }>;
179
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
180
- export default _default;
181
- type __VLS_WithDefaults<P, D> = {
182
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
183
- default: D[K];
184
- }> : P[K];
185
- };
186
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
187
- type __VLS_TypePropsToOption<T> = {
188
- [K in keyof T]-?: {} extends Pick<T, K> ? {
189
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
190
- } : {
191
- type: import('vue').PropType<T[K]>;
192
- required: true;
193
- };
194
- };
195
- type __VLS_WithTemplateSlots<T, S> = T & {
196
- new (): {
197
- $slots: S;
198
- };
199
- };
200
- type __VLS_PrettifyLocal<T> = {
201
- [K in keyof T]: T[K];
202
- } & {};