@evixcard/evx-ui-kit 0.1.20 → 0.2.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.
- package/dist/components/EvAlert/EvAlert.vue.d.ts +27 -0
- package/dist/components/EvAlert/index.d.ts +2 -0
- package/dist/components/EvAppBackground/EvAppBackground.vue.d.ts +25 -0
- package/dist/components/EvAppBackground/index.d.ts +2 -0
- package/dist/components/EvConfirmDialog/EvConfirmDialog.vue.d.ts +54 -0
- package/dist/components/EvConfirmDialog/index.d.ts +2 -0
- package/dist/components/EvCookieBanner/EvCookieBanner.vue.d.ts +35 -0
- package/dist/components/EvCookieBanner/index.d.ts +2 -0
- package/dist/components/EvGlassCard/EvGlassCard.vue.d.ts +28 -0
- package/dist/components/EvGlassCard/index.d.ts +2 -0
- package/dist/components/EvHowToStep/EvHowToStep.vue.d.ts +22 -0
- package/dist/components/EvHowToStep/index.d.ts +2 -0
- package/dist/components/EvPopup/EvPopup.vue.d.ts +22 -1
- package/dist/components/EvPopup/index.d.ts +1 -1
- package/dist/components/EvSelect/EvSelect.vue.d.ts +32 -0
- package/dist/components/EvSelect/index.d.ts +2 -0
- package/dist/components/EvSelect/types.d.ts +6 -0
- package/dist/components/EvSpinner/EvSpinner.vue.d.ts +36 -0
- package/dist/components/EvSpinner/index.d.ts +2 -0
- package/dist/evx-ui-kit.cjs.js +6 -6
- package/dist/evx-ui-kit.cjs.js.map +1 -1
- package/dist/evx-ui-kit.css +1 -1
- package/dist/evx-ui-kit.es.js +2390 -1840
- package/dist/evx-ui-kit.es.js.map +1 -1
- package/dist/favicon.ico +0 -0
- package/dist/index.d.ts +8 -0
- package/package.json +3 -3
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export type EvAlertVariant = 'info' | 'warning' | 'success' | 'error';
|
|
2
|
+
export interface EvAlertProps {
|
|
3
|
+
variant?: EvAlertVariant;
|
|
4
|
+
title?: string;
|
|
5
|
+
class?: string;
|
|
6
|
+
}
|
|
7
|
+
declare function __VLS_template(): {
|
|
8
|
+
attrs: Partial<{}>;
|
|
9
|
+
slots: {
|
|
10
|
+
icon?(_: {}): any;
|
|
11
|
+
default?(_: {}): any;
|
|
12
|
+
actions?(_: {}): any;
|
|
13
|
+
};
|
|
14
|
+
refs: {};
|
|
15
|
+
rootEl: HTMLDivElement;
|
|
16
|
+
};
|
|
17
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
18
|
+
declare const __VLS_component: import('vue').DefineComponent<EvAlertProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<EvAlertProps> & Readonly<{}>, {
|
|
19
|
+
variant: EvAlertVariant;
|
|
20
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
21
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
24
|
+
new (): {
|
|
25
|
+
$slots: S;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface EvAppBackgroundProps {
|
|
2
|
+
/**
|
|
3
|
+
* Desktop (≥ 640px) background image URL. The component renders nothing visually
|
|
4
|
+
* if this is omitted on desktop viewports — consumers are expected to import the
|
|
5
|
+
* webp/png asset via their bundler and pass the resolved URL in.
|
|
6
|
+
*/
|
|
7
|
+
desktopSrc?: string;
|
|
8
|
+
/** Mobile (< 640px) background image URL. Falls back to desktopSrc when not set. */
|
|
9
|
+
mobileSrc?: string;
|
|
10
|
+
/** Base color shown while the image loads. */
|
|
11
|
+
backgroundColor?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Reserved for future ambient-motion variants. The current background is a static
|
|
14
|
+
* image; the prop preserves API parity with EvBackground.
|
|
15
|
+
*/
|
|
16
|
+
animate?: boolean;
|
|
17
|
+
/** @see animate — currently unused. */
|
|
18
|
+
speed?: number;
|
|
19
|
+
}
|
|
20
|
+
declare const _default: import('vue').DefineComponent<EvAppBackgroundProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<EvAppBackgroundProps> & Readonly<{}>, {
|
|
21
|
+
animate: boolean;
|
|
22
|
+
backgroundColor: string;
|
|
23
|
+
speed: number;
|
|
24
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
25
|
+
export default _default;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { EvPopupSize } from '../EvPopup';
|
|
2
|
+
export interface EvConfirmDialogProps {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
title: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
confirmLabel?: string;
|
|
7
|
+
cancelLabel?: string;
|
|
8
|
+
loading?: boolean;
|
|
9
|
+
destructive?: boolean;
|
|
10
|
+
error?: string | null;
|
|
11
|
+
/**
|
|
12
|
+
* Underlying EvPopup size. Defaults to `sm` for confirmation dialogs — gives a
|
|
13
|
+
* compact `max-w-sm rounded-2xl` panel with a smaller title that suits action
|
|
14
|
+
* prompts better than the generic-purpose `md` popup.
|
|
15
|
+
*/
|
|
16
|
+
size?: EvPopupSize;
|
|
17
|
+
/** Show the top-right close (X) button. Default `false` for confirm dialogs. */
|
|
18
|
+
showCloseButton?: boolean;
|
|
19
|
+
/** Use the blurred / darker backdrop. Default `true` for confirm dialogs. */
|
|
20
|
+
blur?: boolean;
|
|
21
|
+
}
|
|
22
|
+
declare function __VLS_template(): {
|
|
23
|
+
attrs: Partial<{}>;
|
|
24
|
+
slots: {
|
|
25
|
+
default?(_: {}): any;
|
|
26
|
+
};
|
|
27
|
+
refs: {};
|
|
28
|
+
rootEl: any;
|
|
29
|
+
};
|
|
30
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
31
|
+
declare const __VLS_component: import('vue').DefineComponent<EvConfirmDialogProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
32
|
+
cancel: () => any;
|
|
33
|
+
close: () => any;
|
|
34
|
+
confirm: () => any;
|
|
35
|
+
}, string, import('vue').PublicProps, Readonly<EvConfirmDialogProps> & Readonly<{
|
|
36
|
+
onCancel?: (() => any) | undefined;
|
|
37
|
+
onClose?: (() => any) | undefined;
|
|
38
|
+
onConfirm?: (() => any) | undefined;
|
|
39
|
+
}>, {
|
|
40
|
+
size: EvPopupSize;
|
|
41
|
+
blur: boolean;
|
|
42
|
+
showCloseButton: boolean;
|
|
43
|
+
confirmLabel: string;
|
|
44
|
+
cancelLabel: string;
|
|
45
|
+
loading: boolean;
|
|
46
|
+
destructive: boolean;
|
|
47
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
48
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
49
|
+
export default _default;
|
|
50
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
51
|
+
new (): {
|
|
52
|
+
$slots: S;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export interface EvCookieBannerProps {
|
|
2
|
+
visible: boolean;
|
|
3
|
+
text?: string;
|
|
4
|
+
learnMoreHref?: string;
|
|
5
|
+
acceptAllLabel?: string;
|
|
6
|
+
acceptEssentialLabel?: string;
|
|
7
|
+
class?: string;
|
|
8
|
+
}
|
|
9
|
+
declare function __VLS_template(): {
|
|
10
|
+
attrs: Partial<{}>;
|
|
11
|
+
slots: {
|
|
12
|
+
text?(_: {}): any;
|
|
13
|
+
actions?(_: {}): any;
|
|
14
|
+
};
|
|
15
|
+
refs: {};
|
|
16
|
+
rootEl: any;
|
|
17
|
+
};
|
|
18
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
19
|
+
declare const __VLS_component: import('vue').DefineComponent<EvCookieBannerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
20
|
+
"accept-all": () => any;
|
|
21
|
+
"accept-essential": () => any;
|
|
22
|
+
}, string, import('vue').PublicProps, Readonly<EvCookieBannerProps> & Readonly<{
|
|
23
|
+
"onAccept-all"?: (() => any) | undefined;
|
|
24
|
+
"onAccept-essential"?: (() => any) | undefined;
|
|
25
|
+
}>, {
|
|
26
|
+
acceptAllLabel: string;
|
|
27
|
+
acceptEssentialLabel: string;
|
|
28
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
29
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
32
|
+
new (): {
|
|
33
|
+
$slots: S;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export type EvGlassCardVariant = 'default' | 'blue' | 'purple' | 'pink' | 'dark';
|
|
2
|
+
export interface EvGlassCardProps {
|
|
3
|
+
variant?: EvGlassCardVariant;
|
|
4
|
+
animated?: boolean;
|
|
5
|
+
bubbles?: number;
|
|
6
|
+
class?: string;
|
|
7
|
+
}
|
|
8
|
+
declare function __VLS_template(): {
|
|
9
|
+
attrs: Partial<{}>;
|
|
10
|
+
slots: {
|
|
11
|
+
default?(_: {}): any;
|
|
12
|
+
};
|
|
13
|
+
refs: {};
|
|
14
|
+
rootEl: HTMLDivElement;
|
|
15
|
+
};
|
|
16
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
17
|
+
declare const __VLS_component: import('vue').DefineComponent<EvGlassCardProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<EvGlassCardProps> & Readonly<{}>, {
|
|
18
|
+
variant: EvGlassCardVariant;
|
|
19
|
+
animated: boolean;
|
|
20
|
+
bubbles: number;
|
|
21
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
22
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface EvHowToStepProps {
|
|
2
|
+
number: number | string;
|
|
3
|
+
class?: string;
|
|
4
|
+
}
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
|
+
attrs: Partial<{}>;
|
|
7
|
+
slots: {
|
|
8
|
+
icon?(_: {}): any;
|
|
9
|
+
default?(_: {}): any;
|
|
10
|
+
};
|
|
11
|
+
refs: {};
|
|
12
|
+
rootEl: HTMLDivElement;
|
|
13
|
+
};
|
|
14
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
|
+
declare const __VLS_component: import('vue').DefineComponent<EvHowToStepProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<EvHowToStepProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
16
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -1,6 +1,23 @@
|
|
|
1
|
+
export type EvPopupSize = 'sm' | 'md';
|
|
1
2
|
export interface EvPopupProps {
|
|
2
3
|
isOpen: boolean;
|
|
3
4
|
title?: string;
|
|
5
|
+
/**
|
|
6
|
+
* Panel size preset.
|
|
7
|
+
* - `md` (default): wider panel (`max-w-[500px]`, `rounded-lg`) with a large
|
|
8
|
+
* title (`text-[24px] font-bold`) — used for generic informational dialogs.
|
|
9
|
+
* - `sm`: compact panel (`max-w-sm`, `rounded-2xl`) with a smaller, near-black
|
|
10
|
+
* title (`text-lg font-semibold text-[#231F20]`) — designed for confirmation
|
|
11
|
+
* modals and other action-focused flows.
|
|
12
|
+
*/
|
|
13
|
+
size?: EvPopupSize;
|
|
14
|
+
/** When `false`, the top-right close (X) button is hidden. Default: `true`. */
|
|
15
|
+
showCloseButton?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* When `true`, the backdrop uses `bg-black/40 backdrop-blur-sm` instead of the
|
|
18
|
+
* default `bg-black/30`. Pair with destructive or attention-demanding flows.
|
|
19
|
+
*/
|
|
20
|
+
blur?: boolean;
|
|
4
21
|
}
|
|
5
22
|
declare function __VLS_template(): {
|
|
6
23
|
attrs: Partial<{}>;
|
|
@@ -15,7 +32,11 @@ declare const __VLS_component: import('vue').DefineComponent<EvPopupProps, {}, {
|
|
|
15
32
|
close: () => any;
|
|
16
33
|
}, string, import('vue').PublicProps, Readonly<EvPopupProps> & Readonly<{
|
|
17
34
|
onClose?: (() => any) | undefined;
|
|
18
|
-
}>, {
|
|
35
|
+
}>, {
|
|
36
|
+
size: EvPopupSize;
|
|
37
|
+
blur: boolean;
|
|
38
|
+
showCloseButton: boolean;
|
|
39
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
19
40
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
20
41
|
export default _default;
|
|
21
42
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as EvPopup } from './EvPopup.vue';
|
|
2
|
-
export type { EvPopupProps } from './EvPopup.vue';
|
|
2
|
+
export type { EvPopupProps, EvPopupSize } from './EvPopup.vue';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { EvSelectOption, EvSelectSize } from './types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
modelValue?: string | number | null;
|
|
4
|
+
options: EvSelectOption[];
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
size?: EvSelectSize;
|
|
7
|
+
id?: string;
|
|
8
|
+
name?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
required?: boolean;
|
|
11
|
+
error?: boolean;
|
|
12
|
+
errorMessage?: string | null;
|
|
13
|
+
helperText?: string | null;
|
|
14
|
+
class?: string;
|
|
15
|
+
selectClass?: string;
|
|
16
|
+
};
|
|
17
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
18
|
+
"update:modelValue": (value: string | number | null) => any;
|
|
19
|
+
change: (value: Event) => any;
|
|
20
|
+
focus: (value: FocusEvent) => any;
|
|
21
|
+
blur: (value: FocusEvent) => any;
|
|
22
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
23
|
+
"onUpdate:modelValue"?: ((value: string | number | null) => any) | undefined;
|
|
24
|
+
onChange?: ((value: Event) => any) | undefined;
|
|
25
|
+
onFocus?: ((value: FocusEvent) => any) | undefined;
|
|
26
|
+
onBlur?: ((value: FocusEvent) => any) | undefined;
|
|
27
|
+
}>, {
|
|
28
|
+
size: EvSelectSize;
|
|
29
|
+
disabled: boolean;
|
|
30
|
+
required: boolean;
|
|
31
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
32
|
+
export default _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export type EvSpinnerNamedSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
2
|
+
export type EvSpinnerNumericSize = 3 | 4 | 5 | 6 | 8 | 10 | 12 | 16;
|
|
3
|
+
export type EvSpinnerSize = EvSpinnerNamedSize | EvSpinnerNumericSize;
|
|
4
|
+
export type EvSpinnerVariant = 'arc' | 'track';
|
|
5
|
+
export interface EvSpinnerProps {
|
|
6
|
+
/**
|
|
7
|
+
* Spinner dimension. Accepts named tokens (`xs`/`sm`/`md`/`lg`/`xl`) for
|
|
8
|
+
* design-system parity, or a numeric Tailwind size (3/4/5/6/8/10/12/16) for
|
|
9
|
+
* pixel-perfect compatibility with existing inline `h-{n}` spinners.
|
|
10
|
+
*/
|
|
11
|
+
size?: EvSpinnerSize;
|
|
12
|
+
/**
|
|
13
|
+
* Visual style:
|
|
14
|
+
* - `arc` (default): top + right border colored, the rest transparent —
|
|
15
|
+
* produces a half-arc that traces around as it spins.
|
|
16
|
+
* - `track`: a faded ring (uses `color-mix()` to tint `color` to ~20% alpha)
|
|
17
|
+
* with the top border at full opacity — produces a "track + indicator"
|
|
18
|
+
* wheel similar to `border-X/20 + border-t-X` snippets in product code.
|
|
19
|
+
*/
|
|
20
|
+
variant?: EvSpinnerVariant;
|
|
21
|
+
/** Indicator color (any CSS color). Default: `#232525`. */
|
|
22
|
+
color?: string;
|
|
23
|
+
/** Override track tint for the `track` variant (default: 20% alpha of `color`). */
|
|
24
|
+
trackColor?: string;
|
|
25
|
+
/** Extra classes for the root element. */
|
|
26
|
+
class?: string;
|
|
27
|
+
/** Accessible label (announced to screen readers). */
|
|
28
|
+
label?: string;
|
|
29
|
+
}
|
|
30
|
+
declare const _default: import('vue').DefineComponent<EvSpinnerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<EvSpinnerProps> & Readonly<{}>, {
|
|
31
|
+
size: EvSpinnerSize;
|
|
32
|
+
variant: EvSpinnerVariant;
|
|
33
|
+
label: string;
|
|
34
|
+
color: string;
|
|
35
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
36
|
+
export default _default;
|