@contentstudio/ui 0.2.24-rc.23 → 0.2.25-rc.24

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.
@@ -0,0 +1,58 @@
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
+ } & {};
@@ -0,0 +1,63 @@
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
+ } & {};
@@ -0,0 +1,3 @@
1
+ export { default as Accordion } from './Accordion.vue';
2
+ export { default as AccordionItem } from './AccordionItem.vue';
3
+ export * from './types';
@@ -0,0 +1,15 @@
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>;
@@ -21,6 +21,23 @@ interface Props {
21
21
  disabled?: boolean;
22
22
  /** Icon name from Lucide icons library */
23
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;
24
41
  /** Style variant */
25
42
  variant?: ButtonVariant;
26
43
  /** Additional CSS class names */
@@ -23,6 +23,23 @@ export interface ActionIconProps {
23
23
  disabled?: boolean;
24
24
  /** Icon name from Lucide icons library */
25
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;
26
43
  /** Style variant */
27
44
  variant?: ActionIconVariant;
28
45
  /** Additional CSS class names */
@@ -4,17 +4,20 @@ interface Props {
4
4
  /** Whether to add a border */
5
5
  withBorder?: boolean;
6
6
  /** Whether to add a shadow */
7
- shadow?: 'none' | 'sm' | 'md' | 'lg' | 'xl';
7
+ shadow?: 'none' | 'sm' | 'md' | 'lg' | 'xl' | 'soft';
8
8
  /** Custom padding */
9
9
  padding?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'none';
10
10
  /** Component to render as */
11
11
  component?: string;
12
12
  /** Custom class names */
13
13
  class?: string;
14
+ /** Custom border color (only applied when withBorder is true) */
15
+ borderColor?: string;
14
16
  }
15
17
  declare function __VLS_template(): {
16
18
  slots: {
17
19
  default?(_: {}): any;
20
+ footer?(_: {}): any;
18
21
  };
19
22
  refs: {};
20
23
  attrs: Partial<{}>;
@@ -36,6 +39,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
36
39
  withBorder: boolean;
37
40
  inheritPadding: boolean;
38
41
  }> & Omit<Readonly<import('vue').ExtractPropTypes<{
42
+ borderColor: {
43
+ type: import('vue').PropType<string>;
44
+ };
39
45
  class: {
40
46
  type: import('vue').PropType<string>;
41
47
  };
@@ -64,6 +70,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
64
70
  $emit: (event: string, ...args: any[]) => void;
65
71
  $el: any;
66
72
  $options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
73
+ borderColor: {
74
+ type: import('vue').PropType<string>;
75
+ };
67
76
  class: {
68
77
  type: import('vue').PropType<string>;
69
78
  };
@@ -104,6 +113,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
104
113
  $nextTick: typeof import('vue').nextTick;
105
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;
106
115
  } & Readonly<import('vue').ExtractPropTypes<{
116
+ borderColor: {
117
+ type: import('vue').PropType<string>;
118
+ };
107
119
  class: {
108
120
  type: import('vue').PropType<string>;
109
121
  };
@@ -124,6 +136,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
124
136
  __isTeleport?: never;
125
137
  __isSuspense?: never;
126
138
  } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
139
+ borderColor: {
140
+ type: import('vue').PropType<string>;
141
+ };
127
142
  class: {
128
143
  type: import('vue').PropType<string>;
129
144
  };
@@ -158,7 +173,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
158
173
  radius: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full";
159
174
  padding: "xs" | "sm" | "md" | "lg" | "xl" | "none";
160
175
  component: string;
161
- shadow: "none" | "sm" | "md" | "lg" | "xl";
176
+ shadow: "none" | "sm" | "md" | "lg" | "xl" | "soft";
162
177
  withBorder: boolean;
163
178
  }>;
164
179
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -7,6 +7,8 @@ interface Props {
7
7
  component?: string;
8
8
  /** Custom class names */
9
9
  class?: string;
10
+ /** Custom border color (only applied when withBorder is true) */
11
+ borderColor?: string;
10
12
  }
11
13
  declare function __VLS_template(): {
12
14
  slots: {
@@ -5,13 +5,15 @@ export interface CardProps {
5
5
  /** Whether to add a border */
6
6
  withBorder?: boolean;
7
7
  /** Whether to add a shadow */
8
- shadow?: 'none' | 'sm' | 'md' | 'lg' | 'xl';
8
+ shadow?: 'none' | 'sm' | 'md' | 'lg' | 'xl' | 'soft';
9
9
  /** Custom padding */
10
- padding?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
10
+ padding?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'none';
11
11
  /** Component to render as */
12
12
  component?: string;
13
13
  /** Custom class names */
14
14
  class?: string;
15
+ /** Custom border color (only applied when withBorder is true) */
16
+ borderColor?: string;
15
17
  }
16
18
  export interface CardSectionProps {
17
19
  /** Whether to add a border */
@@ -22,6 +24,8 @@ export interface CardSectionProps {
22
24
  component?: string;
23
25
  /** Custom class names */
24
26
  class?: string;
27
+ /** Custom border color (only applied when withBorder is true) */
28
+ borderColor?: string;
25
29
  }
26
30
  export type CardRadius = NonNullable<CardProps['radius']>;
27
31
  export type CardShadow = NonNullable<CardProps['shadow']>;
@@ -7,6 +7,7 @@ declare function __VLS_template(): {
7
7
  slots: {
8
8
  "modal-header"?(_: {}): any;
9
9
  "modal-title"?(_: {}): any;
10
+ "modal-description"?(_: {}): any;
10
11
  default?(_: {}): any;
11
12
  "modal-footer"?(_: {}): any;
12
13
  };
@@ -25,6 +26,10 @@ declare const __VLS_component: import('vue').DefineComponent<{
25
26
  type: StringConstructor;
26
27
  default: string;
27
28
  };
29
+ description: {
30
+ type: StringConstructor;
31
+ default: string;
32
+ };
28
33
  modelValue: {
29
34
  type: BooleanConstructor;
30
35
  default: boolean;
@@ -117,6 +122,10 @@ declare const __VLS_component: import('vue').DefineComponent<{
117
122
  type: StringConstructor;
118
123
  default: string;
119
124
  };
125
+ bordered: {
126
+ type: BooleanConstructor;
127
+ default: boolean;
128
+ };
120
129
  headerClass: {
121
130
  type: StringConstructor;
122
131
  default: string;
@@ -228,6 +237,10 @@ declare const __VLS_component: import('vue').DefineComponent<{
228
237
  type: StringConstructor;
229
238
  default: string;
230
239
  };
240
+ description: {
241
+ type: StringConstructor;
242
+ default: string;
243
+ };
231
244
  modelValue: {
232
245
  type: BooleanConstructor;
233
246
  default: boolean;
@@ -320,6 +333,10 @@ declare const __VLS_component: import('vue').DefineComponent<{
320
333
  type: StringConstructor;
321
334
  default: string;
322
335
  };
336
+ bordered: {
337
+ type: BooleanConstructor;
338
+ default: boolean;
339
+ };
323
340
  headerClass: {
324
341
  type: StringConstructor;
325
342
  default: string;
@@ -423,6 +440,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
423
440
  title: string;
424
441
  modelValue: boolean;
425
442
  id: string;
443
+ description: string;
426
444
  ariaLabel: string;
427
445
  fullscreen: boolean;
428
446
  content: string;
@@ -455,6 +473,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
455
473
  hideFooter: boolean;
456
474
  hideHeaderClose: boolean;
457
475
  titleSrOnly: boolean;
476
+ bordered: boolean;
458
477
  ariaLabelledby: string;
459
478
  teleport: boolean;
460
479
  backdrop: boolean;
@@ -66,6 +66,10 @@ export interface ModalProps {
66
66
  titleSrOnly?: boolean;
67
67
  /** Accessible label when no visible title is provided */
68
68
  ariaLabel?: string;
69
+ /** Whether to render a 1px #ECECEC border around the modal content */
70
+ bordered?: boolean;
71
+ /** Optional description rendered below the title inside the header */
72
+ description?: string;
69
73
  }
70
74
  export type ModalSize = NonNullable<ModalProps['size']>;
71
75
  export type ModalRadius = NonNullable<ModalProps['radius']>;
@@ -1,5 +1,4 @@
1
1
  import { ColorVariant } from '../../utils/colors';
2
- import { Size } from '../../utils/sizes';
3
2
  import { PopoverPlacement } from './types';
4
3
  interface Props {
5
4
  /** Whether the popover is open */
@@ -13,9 +12,11 @@ interface Props {
13
12
  /** The color of the popover (for color variant) */
14
13
  color?: ColorVariant | string;
15
14
  /** The size of the popover */
16
- size?: Size;
15
+ size?: "xs" | "sm" | "md" | "lg" | "xl";
17
16
  /** The border radius of the popover */
18
17
  radius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full";
18
+ /** Whether to show a pin/arrow pointing to the target */
19
+ showPin?: boolean;
19
20
  /** Whether to hide the header */
20
21
  hideHeader?: boolean;
21
22
  /** Whether to show a close icon in the header */
@@ -54,7 +55,7 @@ interface Props {
54
55
  trapFocus?: boolean;
55
56
  /** The ID of the popover */
56
57
  id?: string;
57
- /** The shadow of the popover */
58
+ /** Tailwind shadow key override (e.g., 'sm' | 'md' | 'lg' | 'xl' | '2xl' | 'none'). When set, replaces the default Figma shadow on the shadow/color variants. */
58
59
  shadow?: string;
59
60
  /** The width of the popover */
60
61
  width?: number | string;
@@ -69,6 +70,7 @@ declare function __VLS_template(): {
69
70
  refs: {
70
71
  triggerRef: HTMLDivElement;
71
72
  popoverRef: HTMLDivElement;
73
+ arrowRef: HTMLDivElement;
72
74
  };
73
75
  attrs: Partial<{}>;
74
76
  };
@@ -81,6 +83,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
81
83
  color: string;
82
84
  size: string;
83
85
  radius: string;
86
+ showPin: boolean;
84
87
  hideHeader: boolean;
85
88
  showCloseIcon: boolean;
86
89
  hideFooter: boolean;
@@ -100,7 +103,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
100
103
  footerClass: string;
101
104
  trapFocus: boolean;
102
105
  id: () => string;
103
- shadow: string;
106
+ shadow: undefined;
104
107
  }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
105
108
  "update:open": (value: boolean) => void;
106
109
  open: () => void;
@@ -113,6 +116,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
113
116
  color: string;
114
117
  size: string;
115
118
  radius: string;
119
+ showPin: boolean;
116
120
  hideHeader: boolean;
117
121
  showCloseIcon: boolean;
118
122
  hideFooter: boolean;
@@ -132,7 +136,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
132
136
  footerClass: string;
133
137
  trapFocus: boolean;
134
138
  id: () => string;
135
- shadow: string;
139
+ shadow: undefined;
136
140
  }>>> & {
137
141
  onClose?: ((trigger: string) => any) | undefined;
138
142
  onOpen?: (() => any) | undefined;
@@ -141,7 +145,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
141
145
  disabled: boolean;
142
146
  variant: "shadow" | "outline" | "color";
143
147
  color: ColorVariant | string;
144
- size: Size;
148
+ size: "xs" | "sm" | "md" | "lg" | "xl";
145
149
  radius: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full";
146
150
  title: string;
147
151
  id: string;
@@ -160,6 +164,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
160
164
  backdrop: boolean | "transparent";
161
165
  shadow: string;
162
166
  defaultOpen: boolean;
167
+ showPin: boolean;
163
168
  showCloseIcon: boolean;
164
169
  closeOnClickOutside: boolean;
165
170
  closeOnEscape: boolean;
@@ -57,6 +57,8 @@ export interface PopoverProps {
57
57
  trapFocus?: boolean;
58
58
  /** The ID of the popover */
59
59
  id?: string;
60
+ /** Tailwind shadow key override (e.g., 'sm' | 'md' | 'lg' | 'xl' | '2xl' | 'none'). When set, replaces the default Figma shadow on the shadow/color variants. */
61
+ shadow?: string;
60
62
  /** The width of the popover */
61
63
  width?: number | string;
62
64
  }
@@ -0,0 +1,65 @@
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
+ } & {};
@@ -0,0 +1,79 @@
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
+ } & {};
@@ -0,0 +1,3 @@
1
+ export { default as Stepper } from './Stepper.vue';
2
+ export { default as StepperItem } from './StepperItem.vue';
3
+ export * from './types';
@@ -0,0 +1,14 @@
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
+ }