@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
@@ -1,105 +0,0 @@
1
- import { Component } from 'vue';
2
- import { ThemeColor, ComponentSize } from '../../types/common';
3
- interface Props {
4
- /** The variant style of the button */
5
- variant?: 'filled' | 'light' | 'outline' | 'subtle' | 'text';
6
- /** The color theme of the button */
7
- color?: ThemeColor | string;
8
- /** The size of the button */
9
- size?: ComponentSize;
10
- /** The border radius of the button */
11
- radius?: 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
12
- /** Whether the button is disabled */
13
- disabled?: boolean;
14
- /** Whether the button is in loading state */
15
- loading?: boolean;
16
- /** The icon to show in the dropdown trigger */
17
- dropdownIcon?: Component;
18
- /** Whether to show the divider between main button and dropdown */
19
- showDivider?: boolean;
20
- /** Custom class for the dropdown menu */
21
- dropdownMenuClass?: string;
22
- /** z-index for the dropdown menu (higher brings it to front) */
23
- zIndex?: number | string;
24
- }
25
- declare function __VLS_template(): {
26
- slots: {
27
- loader?(_: {}): any;
28
- default?(_: {}): any;
29
- "dropdown-icon"?(_: {}): any;
30
- menu?(_: {
31
- closeMenu: () => void;
32
- }): any;
33
- };
34
- refs: {
35
- triggerRef: HTMLButtonElement;
36
- floatingRef: HTMLDivElement;
37
- };
38
- attrs: Partial<{}>;
39
- };
40
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
41
- declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
42
- variant: string;
43
- color: string;
44
- size: string;
45
- radius: string;
46
- disabled: boolean;
47
- loading: boolean;
48
- showDivider: boolean;
49
- dropdownMenuClass: string;
50
- zIndex: number;
51
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
52
- click: () => void;
53
- "dropdown-click": () => void;
54
- open: () => void;
55
- close: () => void;
56
- }, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
57
- variant: string;
58
- color: string;
59
- size: string;
60
- radius: string;
61
- disabled: boolean;
62
- loading: boolean;
63
- showDivider: boolean;
64
- dropdownMenuClass: string;
65
- zIndex: number;
66
- }>>> & {
67
- onClick?: (() => any) | undefined;
68
- onClose?: (() => any) | undefined;
69
- onOpen?: (() => any) | undefined;
70
- "onDropdown-click"?: (() => any) | undefined;
71
- }, {
72
- disabled: boolean;
73
- variant: "filled" | "light" | "outline" | "subtle" | "text";
74
- color: ThemeColor | string;
75
- size: ComponentSize;
76
- radius: "none" | "xs" | "sm" | "md" | "lg" | "xl";
77
- loading: boolean;
78
- zIndex: number | string;
79
- showDivider: boolean;
80
- dropdownMenuClass: string;
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 SplitButton } from './SplitButton.vue';
2
- export * from './types';
@@ -1,22 +0,0 @@
1
- import { Component } from 'vue';
2
- import { ThemeColor, ComponentSize } from '../../types/common';
3
- export interface SplitButtonProps {
4
- /** The variant style of the button */
5
- variant?: "filled" | "light" | "outline" | "subtle" | "text";
6
- /** The color theme of the button */
7
- color?: ThemeColor | string;
8
- /** The size of the button */
9
- size?: ComponentSize;
10
- /** The border radius of the button */
11
- radius?: "none" | "xs" | "sm" | "md" | "lg" | "xl";
12
- /** Whether the button is disabled */
13
- disabled?: boolean;
14
- /** Whether the button is in loading state */
15
- loading?: boolean;
16
- /** The icon to show in the dropdown trigger */
17
- dropdownIcon?: Component;
18
- /** Whether to show the divider between main button and dropdown */
19
- showDivider?: boolean;
20
- /** Dropdown menu case*/
21
- dropdownMenuClass?: string;
22
- }
@@ -1,65 +0,0 @@
1
- import { StepData, StepperSize, StepperOrientation, StepperVariant } from './types';
2
- declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
3
- /** Array of step definitions */
4
- steps: StepData[];
5
- /** Zero-based index of the currently active step */
6
- active?: number;
7
- orientation?: StepperOrientation;
8
- size?: StepperSize;
9
- variant?: StepperVariant;
10
- /** Default accent color for active and completed states */
11
- color?: string;
12
- /** When true (default), idle/default state icons & numbers use the accent color. */
13
- colorDefault?: boolean;
14
- }>, {
15
- active: number;
16
- orientation: string;
17
- size: string;
18
- variant: string;
19
- color: string;
20
- colorDefault: boolean;
21
- }>, {}, 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<{
22
- /** Array of step definitions */
23
- steps: StepData[];
24
- /** Zero-based index of the currently active step */
25
- active?: number;
26
- orientation?: StepperOrientation;
27
- size?: StepperSize;
28
- variant?: StepperVariant;
29
- /** Default accent color for active and completed states */
30
- color?: string;
31
- /** When true (default), idle/default state icons & numbers use the accent color. */
32
- colorDefault?: boolean;
33
- }>, {
34
- active: number;
35
- orientation: string;
36
- size: string;
37
- variant: string;
38
- color: string;
39
- colorDefault: boolean;
40
- }>>>, {
41
- active: number;
42
- variant: StepperVariant;
43
- color: string;
44
- size: StepperSize;
45
- orientation: StepperOrientation;
46
- colorDefault: boolean;
47
- }>;
48
- export default _default;
49
- type __VLS_WithDefaults<P, D> = {
50
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
51
- default: D[K];
52
- }> : P[K];
53
- };
54
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
55
- type __VLS_TypePropsToOption<T> = {
56
- [K in keyof T]-?: {} extends Pick<T, K> ? {
57
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
58
- } : {
59
- type: import('vue').PropType<T[K]>;
60
- required: true;
61
- };
62
- };
63
- type __VLS_PrettifyLocal<T> = {
64
- [K in keyof T]: T[K];
65
- } & {};
@@ -1,79 +0,0 @@
1
- import { StepState, StepperSize, StepperVariant } from './types';
2
- declare function __VLS_template(): {
3
- slots: {
4
- icon?(_: {}): 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
- label: string;
12
- state?: StepState;
13
- size?: StepperSize;
14
- variant?: StepperVariant;
15
- /** 1-based step number shown in the number variant */
16
- step?: number;
17
- /** Accent color for active border, active text, and completed checkmark */
18
- color?: string;
19
- /** When true (default), idle/default state icons & numbers use the accent color.
20
- * When false, they render in a neutral grey. */
21
- colorDefault?: boolean;
22
- }>, {
23
- state: string;
24
- size: string;
25
- variant: string;
26
- step: number;
27
- color: string;
28
- colorDefault: boolean;
29
- }>, {}, 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<{
30
- label: string;
31
- state?: StepState;
32
- size?: StepperSize;
33
- variant?: StepperVariant;
34
- /** 1-based step number shown in the number variant */
35
- step?: number;
36
- /** Accent color for active border, active text, and completed checkmark */
37
- color?: string;
38
- /** When true (default), idle/default state icons & numbers use the accent color.
39
- * When false, they render in a neutral grey. */
40
- colorDefault?: boolean;
41
- }>, {
42
- state: string;
43
- size: string;
44
- variant: string;
45
- step: number;
46
- color: string;
47
- colorDefault: boolean;
48
- }>>>, {
49
- variant: StepperVariant;
50
- color: string;
51
- size: StepperSize;
52
- step: number;
53
- state: StepState;
54
- colorDefault: boolean;
55
- }>;
56
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
57
- export default _default;
58
- type __VLS_WithDefaults<P, D> = {
59
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
60
- default: D[K];
61
- }> : P[K];
62
- };
63
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
64
- type __VLS_TypePropsToOption<T> = {
65
- [K in keyof T]-?: {} extends Pick<T, K> ? {
66
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
67
- } : {
68
- type: import('vue').PropType<T[K]>;
69
- required: true;
70
- };
71
- };
72
- type __VLS_WithTemplateSlots<T, S> = T & {
73
- new (): {
74
- $slots: S;
75
- };
76
- };
77
- type __VLS_PrettifyLocal<T> = {
78
- [K in keyof T]: T[K];
79
- } & {};
@@ -1,3 +0,0 @@
1
- export { default as Stepper } from './Stepper.vue';
2
- export { default as StepperItem } from './StepperItem.vue';
3
- export * from './types';
@@ -1,14 +0,0 @@
1
- import { Component } from 'vue';
2
- export type StepState = 'default' | 'active' | 'completed' | 'disabled';
3
- export type StepperSize = 'sm' | 'md';
4
- export type StepperOrientation = 'horizontal' | 'vertical';
5
- export type StepperVariant = 'icon' | 'number';
6
- export interface StepData {
7
- label: string;
8
- icon?: Component | null;
9
- /** Per-step accent color override. Falls back to Stepper's color prop. */
10
- color?: string;
11
- description?: string;
12
- /** Force this step into the disabled state regardless of active index. */
13
- disabled?: boolean;
14
- }
@@ -1,117 +0,0 @@
1
- import { ComponentSize, ComponentRadius, ThemeColor } from '../../types/common';
2
- interface Props {
3
- /**
4
- * Value bound to the switch, used with v-model
5
- */
6
- modelValue?: boolean;
7
- /**
8
- * Label for the switch
9
- */
10
- label?: string;
11
- /**
12
- * Label when switch is in unchecked state
13
- */
14
- offLabel?: string;
15
- /**
16
- * Label when switch is in checked state
17
- */
18
- onLabel?: string;
19
- /**
20
- * Color of the switch when checked
21
- */
22
- color?: ThemeColor;
23
- /**
24
- * Size of the switch
25
- */
26
- size?: ComponentSize;
27
- /**
28
- * Border radius of the switch
29
- */
30
- radius?: ComponentRadius;
31
- /**
32
- * Icon inside the thumb (string or slot)
33
- */
34
- thumbIcon?: string;
35
- /**
36
- * Position of the label
37
- */
38
- labelPosition?: 'left' | 'right';
39
- /**
40
- * Description text shown below the label
41
- */
42
- description?: string;
43
- /**
44
- * Error message
45
- */
46
- error?: string;
47
- /**
48
- * Whether the switch is disabled
49
- */
50
- disabled?: boolean;
51
- /**
52
- * Name attribute of the input element
53
- */
54
- name?: string;
55
- }
56
- declare function __VLS_template(): {
57
- slots: {
58
- thumbIcon?(_: {
59
- checked: boolean;
60
- size: ComponentSize;
61
- }): any;
62
- default?(_: {
63
- checked: boolean;
64
- size: ComponentSize;
65
- }): any;
66
- };
67
- refs: {};
68
- attrs: Partial<{}>;
69
- };
70
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
71
- declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
72
- modelValue: boolean;
73
- size: string;
74
- color: string;
75
- labelPosition: string;
76
- disabled: boolean;
77
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
78
- "update:modelValue": (value: boolean) => void;
79
- }, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
80
- modelValue: boolean;
81
- size: string;
82
- color: string;
83
- labelPosition: string;
84
- disabled: boolean;
85
- }>>> & {
86
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
87
- }, {
88
- disabled: boolean;
89
- color: ThemeColor;
90
- size: ComponentSize;
91
- modelValue: boolean;
92
- labelPosition: "left" | "right";
93
- }>;
94
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
95
- export default _default;
96
- type __VLS_WithDefaults<P, D> = {
97
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
98
- default: D[K];
99
- }> : P[K];
100
- };
101
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
102
- type __VLS_TypePropsToOption<T> = {
103
- [K in keyof T]-?: {} extends Pick<T, K> ? {
104
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
105
- } : {
106
- type: import('vue').PropType<T[K]>;
107
- required: true;
108
- };
109
- };
110
- type __VLS_WithTemplateSlots<T, S> = T & {
111
- new (): {
112
- $slots: S;
113
- };
114
- };
115
- type __VLS_PrettifyLocal<T> = {
116
- [K in keyof T]: T[K];
117
- } & {};
@@ -1,4 +0,0 @@
1
- import { default as Switch } from './Switch.vue';
2
- export { Switch };
3
- export type { SwitchProps } from './types';
4
- export default Switch;
@@ -1,55 +0,0 @@
1
- import { ComponentSize as Size, ThemeColor as Color, ComponentRadius as Radius } from '../../types/common';
2
- export interface SwitchProps {
3
- /**
4
- * Value bound to the switch, used with v-model
5
- */
6
- modelValue?: boolean;
7
- /**
8
- * Label for the switch
9
- */
10
- label?: string;
11
- /**
12
- * Label when switch is in unchecked state
13
- */
14
- offLabel?: string;
15
- /**
16
- * Label when switch is in checked state
17
- */
18
- onLabel?: string;
19
- /**
20
- * Color of the switch when checked
21
- */
22
- color?: Color;
23
- /**
24
- * Size of the switch
25
- */
26
- size?: Size;
27
- /**
28
- * Border radius of the switch
29
- */
30
- radius?: Radius;
31
- /**
32
- * Icon inside the thumb (string or slot)
33
- */
34
- thumbIcon?: string;
35
- /**
36
- * Position of the label
37
- */
38
- labelPosition?: 'left' | 'right';
39
- /**
40
- * Description text shown below the label
41
- */
42
- description?: string;
43
- /**
44
- * Error message
45
- */
46
- error?: string;
47
- /**
48
- * Whether the switch is disabled
49
- */
50
- disabled?: boolean;
51
- /**
52
- * Name attribute of the input element
53
- */
54
- name?: string;
55
- }
@@ -1,78 +0,0 @@
1
- import { TableColumn, TableSortState, TableRowClickPayload, TableHeaderClickPayload } from './types';
2
- declare const _default: <T extends Record<string, any> = Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<Readonly<import('vue').ExtractPropTypes<{}>> & {
4
- "onUpdate:selectedRows"?: ((value: (string | number)[]) => any) | undefined;
5
- "onUpdate:sort"?: ((value: TableSortState | null) => any) | undefined;
6
- "onRow-click"?: ((payload: TableRowClickPayload<T>) => any) | undefined;
7
- "onHeader-click"?: ((payload: TableHeaderClickPayload) => any) | undefined;
8
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:selectedRows" | "onUpdate:sort" | "onRow-click" | "onHeader-click"> & {
9
- columns: TableColumn<T>[];
10
- rows: T[];
11
- rowKey?: string | ((row: T) => string | number);
12
- size?: "sm" | "md";
13
- rowHeight?: string | number;
14
- loading?: boolean;
15
- disabled?: boolean;
16
- striped?: boolean;
17
- hoverable?: boolean;
18
- hoverClass?: string;
19
- stickyHeader?: boolean;
20
- withRowSelection?: boolean;
21
- checkboxSize?: "xs" | "sm" | "md" | "lg" | "xl";
22
- selectedRows?: (string | number)[];
23
- sort?: TableSortState | null;
24
- wrapperClass?: string;
25
- virtual?: boolean;
26
- estimatedRowHeight?: number;
27
- }> & (import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps);
28
- expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
29
- attrs: any;
30
- slots: Partial<Record<`header-cell-${string}`, (_: {
31
- column: TableColumn<T>;
32
- }) => any>> & Partial<Record<"cell-actions", (_: {
33
- row: T;
34
- value: any;
35
- column: TableColumn<T>;
36
- rowIndex: number;
37
- }) => any>> & Partial<Record<`cell-${string}`, (_: {
38
- row: T;
39
- value: any;
40
- column: TableColumn<T>;
41
- rowIndex: number;
42
- }) => any>> & Partial<Record<"cell-actions", (_: {
43
- row: T;
44
- value: any;
45
- column: TableColumn<T>;
46
- rowIndex: number;
47
- }) => any>> & Partial<Record<`cell-${string}`, (_: {
48
- row: T;
49
- value: any;
50
- column: TableColumn<T>;
51
- rowIndex: number;
52
- }) => any>> & {
53
- loading?(_: {}): any;
54
- empty?(_: {}): any;
55
- actions?(_: {
56
- row: T;
57
- rowIndex: number;
58
- }): any;
59
- actions?(_: {
60
- row: T;
61
- rowIndex: number;
62
- }): any;
63
- default?(_: {}): any;
64
- footer?(_: {}): any;
65
- };
66
- emit: {
67
- (e: "update:selectedRows", value: (string | number)[]): void;
68
- (e: "update:sort", value: TableSortState | null): void;
69
- (e: "row-click", payload: TableRowClickPayload<T>): void;
70
- (e: "header-click", payload: TableHeaderClickPayload): void;
71
- };
72
- }>) => import('vue').VNode & {
73
- __ctx?: Awaited<typeof __VLS_setup>;
74
- };
75
- export default _default;
76
- type __VLS_PrettifyLocal<T> = {
77
- [K in keyof T]: T[K];
78
- } & {};
@@ -1,2 +0,0 @@
1
- export { default as Table } from './Table.vue';
2
- export * from './types';
@@ -1,25 +0,0 @@
1
- export interface TableColumn<T = Record<string, any>> {
2
- key: string;
3
- label?: string;
4
- width?: string | number;
5
- minWidth?: string | number;
6
- align?: 'left' | 'center' | 'right';
7
- sortable?: boolean;
8
- sticky?: 'left' | 'right';
9
- headerClass?: string;
10
- cellClass?: string;
11
- topAlign?: boolean;
12
- }
13
- export interface TableSortState {
14
- key: string;
15
- direction: 'asc' | 'desc';
16
- }
17
- export interface TableRowClickPayload<T = Record<string, any>> {
18
- row: T;
19
- rowIndex: number;
20
- event: MouseEvent;
21
- }
22
- export interface TableHeaderClickPayload {
23
- column: TableColumn;
24
- event: MouseEvent;
25
- }
@@ -1,78 +0,0 @@
1
- declare function __VLS_template(): {
2
- slots: {
3
- default?(_: {}): any;
4
- };
5
- refs: {};
6
- attrs: Partial<{}>;
7
- };
8
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
9
- declare const __VLS_component: import('vue').DefineComponent<{
10
- /** Value for controlled component */
11
- value: {
12
- type: StringConstructor;
13
- default: undefined;
14
- };
15
- /** Default value for uncontrolled component */
16
- defaultValue: {
17
- type: StringConstructor;
18
- default: string;
19
- };
20
- /** Orientation of tabs */
21
- orientation: {
22
- type: () => "horizontal" | "vertical";
23
- default: string;
24
- };
25
- /** Placement of tabs (left/right for vertical, top/bottom for horizontal) */
26
- placement: {
27
- type: () => "left" | "right" | "top" | "bottom";
28
- default: undefined;
29
- };
30
- /** Variant of the tabs */
31
- variant: {
32
- type: () => "filled" | "outline" | "light" | "subtle" | "text" | "bordered" | "bordered-transparent" | "white" | "default" | "gradient";
33
- default: string;
34
- };
35
- }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
36
- change: (...args: any[]) => void;
37
- }, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{
38
- /** Value for controlled component */
39
- value: {
40
- type: StringConstructor;
41
- default: undefined;
42
- };
43
- /** Default value for uncontrolled component */
44
- defaultValue: {
45
- type: StringConstructor;
46
- default: string;
47
- };
48
- /** Orientation of tabs */
49
- orientation: {
50
- type: () => "horizontal" | "vertical";
51
- default: string;
52
- };
53
- /** Placement of tabs (left/right for vertical, top/bottom for horizontal) */
54
- placement: {
55
- type: () => "left" | "right" | "top" | "bottom";
56
- default: undefined;
57
- };
58
- /** Variant of the tabs */
59
- variant: {
60
- type: () => "filled" | "outline" | "light" | "subtle" | "text" | "bordered" | "bordered-transparent" | "white" | "default" | "gradient";
61
- default: string;
62
- };
63
- }>> & {
64
- onChange?: ((...args: any[]) => any) | undefined;
65
- }, {
66
- variant: "light" | "filled" | "outline" | "subtle" | "text" | "gradient" | "white" | "default" | "bordered" | "bordered-transparent";
67
- value: string;
68
- defaultValue: string;
69
- placement: "left" | "right" | "bottom" | "top";
70
- orientation: "vertical" | "horizontal";
71
- }>;
72
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
73
- export default _default;
74
- type __VLS_WithTemplateSlots<T, S> = T & {
75
- new (): {
76
- $slots: S;
77
- };
78
- };