@evixcard/evx-ui-kit 1.7.1 → 1.8.0

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.
@@ -1,4 +1,4 @@
1
- export type BadgeVariant = 'active' | 'inactive' | 'pending' | 'warning' | 'info' | 'error' | 'count' | 'count-neutral';
1
+ export type BadgeVariant = 'active' | 'success' | 'inactive' | 'pending' | 'warning' | 'info' | 'confirmed' | 'error' | 'count' | 'count-neutral';
2
2
  export declare const badgeBase = "inline-flex items-center";
3
3
  export declare const statusBase = "px-3 py-1 rounded-full text-xs-regular ring-1 ring-inset";
4
4
  export declare const countBase = "px-1.5 py-0.5 rounded text-[10px] font-medium leading-none";
@@ -10,6 +10,9 @@ export declare const variants: {
10
10
  danger: string;
11
11
  success: string;
12
12
  warning: string;
13
+ action: string;
14
+ growth: string;
15
+ accent: string;
13
16
  icon: string;
14
17
  };
15
18
  export declare const sizes: {
@@ -0,0 +1 @@
1
+ export {};
@@ -1,9 +1,14 @@
1
+ type __VLS_Props = {
2
+ variant?: 'default' | 'brand';
3
+ };
1
4
  type __VLS_PublicProps = {
2
5
  modelValue?: boolean;
3
- };
6
+ } & __VLS_Props;
4
7
  declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
5
8
  "update:modelValue": (value: boolean) => any;
6
9
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
7
10
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
8
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
11
+ }>, {
12
+ variant: "default" | "brand";
13
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
9
14
  export default _default;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,39 @@
1
+ import { EvDataTableColumn } from './types.ts';
2
+ declare const _default: <T extends Record<string, unknown> = Record<string, unknown>>(__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<{
4
+ readonly onClick?: (() => any) | undefined;
5
+ readonly onToggle?: (() => any) | undefined;
6
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onClick" | "onToggle"> & {
7
+ row: T;
8
+ /** Column shown as the card heading (top, full width). */
9
+ titleColumn?: EvDataTableColumn;
10
+ /** Columns rendered in the label:value grid. */
11
+ gridColumns?: EvDataTableColumn[];
12
+ /** Column rendered in the actions footer (right-aligned). */
13
+ actionsColumn?: EvDataTableColumn;
14
+ selectable?: boolean;
15
+ selected?: boolean;
16
+ selectLabel?: string;
17
+ /** Grid density for the label:value section. */
18
+ gridCols?: 1 | 2 | 3;
19
+ } & Partial<{}>> & import('vue').PublicProps;
20
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
21
+ attrs: any;
22
+ slots: Partial<Record<`cell-${string}`, (_: {
23
+ row: T;
24
+ value: unknown;
25
+ }) => any>> & Partial<Record<`cell-${string}`, (_: {
26
+ row: T;
27
+ value: unknown;
28
+ }) => any>> & Partial<Record<`cell-${string}`, (_: {
29
+ row: T;
30
+ value: unknown;
31
+ }) => any>>;
32
+ emit: ((evt: "click") => void) & ((evt: "toggle") => void);
33
+ }>) => import('vue').VNode & {
34
+ __ctx?: Awaited<typeof __VLS_setup>;
35
+ };
36
+ export default _default;
37
+ type __VLS_PrettifyLocal<T> = {
38
+ [K in keyof T]: T[K];
39
+ } & {};
@@ -3,28 +3,25 @@ declare const _default: <T extends Record<string, unknown> = Record<string, unkn
3
3
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
4
  readonly onSort?: ((field: string, direction: "desc" | "asc") => any) | undefined;
5
5
  readonly "onUpdate:page"?: ((page: number) => any) | undefined;
6
+ readonly "onUpdate:view"?: ((value: "table" | "cards") => any) | undefined;
6
7
  readonly "onRow-click"?: ((row: T) => any) | undefined;
7
8
  readonly "onUpdate:selectedKeys"?: ((keys: (string | number)[]) => any) | undefined;
8
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:page" | "onSort" | "onRow-click" | "onUpdate:selectedKeys"> & EvDataTableProps<T> & Partial<{}>> & import('vue').PublicProps;
9
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:page" | "onSort" | "onUpdate:view" | "onRow-click" | "onUpdate:selectedKeys"> & ({
10
+ view?: "table" | "cards";
11
+ } & EvDataTableProps<T>) & Partial<{}>> & import('vue').PublicProps;
9
12
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
10
13
  attrs: any;
11
14
  slots: Partial<Record<`cell-${string}`, (_: {
12
15
  row: T;
13
16
  value: unknown;
14
- }) => any>> & Partial<Record<`cell-${string}`, (_: {
15
- row: T;
16
- value: unknown;
17
- }) => any>> & Partial<Record<`cell-${string}`, (_: {
18
- row: T;
19
- value: unknown;
20
- }) => any>> & Partial<Record<`cell-${string}`, (_: {
17
+ }) => any>> & Partial<Record<number, (_: {
21
18
  row: T;
22
19
  value: unknown;
23
20
  }) => any>> & {
24
21
  empty?(_: {}): any;
25
22
  empty?(_: {}): any;
26
23
  };
27
- emit: ((evt: "sort", field: string, direction: "desc" | "asc") => void) & ((evt: "update:page", page: number) => void) & ((evt: "row-click", row: T) => void) & ((evt: "update:selectedKeys", keys: (string | number)[]) => void);
24
+ emit: (((evt: "sort", field: string, direction: "desc" | "asc") => void) & ((evt: "update:page", page: number) => void) & ((evt: "row-click", row: T) => void) & ((evt: "update:selectedKeys", keys: (string | number)[]) => void)) & ((evt: "update:view", value: "table" | "cards") => void);
28
25
  }>) => import('vue').VNode & {
29
26
  __ctx?: Awaited<typeof __VLS_setup>;
30
27
  };
@@ -1,2 +1,3 @@
1
1
  export { default as EvDataTable } from './EvDataTable.vue';
2
+ export { default as EvDataCard } from './EvDataCard.vue';
2
3
  export type { EvDataTableColumn, EvDataTableProps } from './types.ts';
@@ -24,6 +24,16 @@ export interface EvDataTableProps<T extends Record<string, unknown> = Record<str
24
24
  mobileLayout?: 'auto' | 'cards' | 'table';
25
25
  /** Column key used as the card title in card layout. Defaults to the first column. */
26
26
  cardTitleKey?: string;
27
+ /** Card grid density for the label:value section. Default 2. */
28
+ cardGridCols?: 1 | 2 | 3;
29
+ /**
30
+ * Scope of the Card/Table view toggle (DEV-611):
31
+ * - false (default): legacy — toggle under lg only, desktop always table (`mobileLayout` rules).
32
+ * - true: toggle shown at ALL breakpoints and switches table<->cards on desktop too,
33
+ * driven by the `view` v-model (defaults to 'table'). When true, `mobileLayout` is
34
+ * ignored and the card list renders as a responsive grid (1/2/3 cols by breakpoint).
35
+ */
36
+ viewToggle?: boolean;
27
37
  /**
28
38
  * Accessible-name builder for the per-row selection checkbox (card + table).
29
39
  * Defaults to `Select <rowKey value>`. The header select-all is always "Select all".
@@ -11,6 +11,7 @@ export declare const icons: {
11
11
  'layout-dashboard': import('vue').FunctionalComponent<import('lucide-vue-next').LucideProps, {}, any, {}>;
12
12
  'layout-grid': import('vue').FunctionalComponent<import('lucide-vue-next').LucideProps, {}, any, {}>;
13
13
  layers: import('vue').FunctionalComponent<import('lucide-vue-next').LucideProps, {}, any, {}>;
14
+ list: import('vue').FunctionalComponent<import('lucide-vue-next').LucideProps, {}, any, {}>;
14
15
  table: import('vue').FunctionalComponent<import('lucide-vue-next').LucideProps, {}, any, {}>;
15
16
  menu: import('vue').FunctionalComponent<import('lucide-vue-next').LucideProps, {}, any, {}>;
16
17
  'chevron-left': import('vue').FunctionalComponent<import('lucide-vue-next').LucideProps, {}, any, {}>;
@@ -0,0 +1 @@
1
+ export {};
@@ -10,6 +10,7 @@ export interface EvRadioProps {
10
10
  label?: string;
11
11
  disabled?: boolean;
12
12
  name?: string;
13
+ variant?: 'default' | 'brand';
13
14
  }
14
15
  declare const _default: import('vue').DefineComponent<EvRadioProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
15
16
  "update:modelValue": (...args: any[]) => void;
@@ -2,6 +2,7 @@ export interface EvRadioOptionProps {
2
2
  value: any;
3
3
  disabled?: boolean;
4
4
  as?: string | object;
5
+ variant?: 'default' | 'brand';
5
6
  }
6
7
  declare function __VLS_template(): {
7
8
  attrs: Partial<{}>;
@@ -25,6 +26,7 @@ declare function __VLS_template(): {
25
26
  };
26
27
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
27
28
  declare const __VLS_component: import('vue').DefineComponent<EvRadioOptionProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<EvRadioOptionProps> & Readonly<{}>, {
29
+ variant: "default" | "brand";
28
30
  as: string | object;
29
31
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
30
32
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,9 +1,14 @@
1
+ type __VLS_Props = {
2
+ variant?: 'default' | 'brand';
3
+ };
1
4
  type __VLS_PublicProps = {
2
5
  modelValue?: boolean;
3
- };
6
+ } & __VLS_Props;
4
7
  declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
5
8
  "update:modelValue": (value: boolean) => any;
6
9
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
7
10
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
8
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
11
+ }>, {
12
+ variant: "default" | "brand";
13
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
9
14
  export default _default;