prlg-ui 1.8.266 → 1.8.267

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/rekaUI.d.ts CHANGED
@@ -2025,6 +2025,16 @@ export declare const AccordionRoot: __VLS_WithTemplateSlots_4<typeof __VLS_compo
2025
2025
 
2026
2026
  export declare const AccordionTrigger: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
2027
2027
 
2028
+ export declare const Alert: DefineComponent<IAlertProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2029
+ close: () => any;
2030
+ }, string, PublicProps, Readonly<IAlertProps> & Readonly<{
2031
+ onClose?: (() => any) | undefined;
2032
+ }>, {
2033
+ variant: AlertVariant;
2034
+ closable: boolean;
2035
+ showIcon: boolean;
2036
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
2037
+
2028
2038
  export declare const AlertDialogAction: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
2029
2039
 
2030
2040
  export declare const AlertDialogCancel: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
@@ -2043,6 +2053,11 @@ export declare const AlertDialogTitle: __VLS_WithTemplateSlots_10<typeof __VLS_c
2043
2053
 
2044
2054
  export declare const AlertDialogTrigger: __VLS_WithTemplateSlots_11<typeof __VLS_component_11, __VLS_TemplateResult_11["slots"]>;
2045
2055
 
2056
+ /**
2057
+ * Интерфейсы для Alert компонентов
2058
+ */
2059
+ export declare type AlertVariant = 'info' | 'success' | 'warning' | 'error';
2060
+
2046
2061
  export declare const Badge: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
2047
2062
 
2048
2063
  export declare const breakpoints: Record<"sm" | "lg" | "xl" | "mobile" | "md" | "xxl" | "xxxl", ComputedRef<boolean>> & {
@@ -2382,6 +2397,26 @@ declare interface IAlertDialogContentProps extends AlertDialogContentProps {
2382
2397
  declare interface IAlertDialogTriggerProps extends AlertDialogTriggerProps, IButtonProps {
2383
2398
  }
2384
2399
 
2400
+ export declare interface IAlertEmits {
2401
+ /** Событие при закрытии alert */
2402
+ close: [];
2403
+ }
2404
+
2405
+ export declare interface IAlertProps {
2406
+ /** Текст заголовка alert */
2407
+ title?: string;
2408
+ /** Основной текст alert */
2409
+ message: string;
2410
+ /** Вариант стилизации alert */
2411
+ variant?: AlertVariant;
2412
+ /** Показывать кнопку закрытия */
2413
+ closable?: boolean;
2414
+ /** Показывать иконку */
2415
+ showIcon?: boolean;
2416
+ /** Дополнительный CSS класс */
2417
+ class?: string;
2418
+ }
2419
+
2385
2420
  export declare interface IButtonProps {
2386
2421
  size?: ButtonSize;
2387
2422
  variant?: ButtonVariant;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "prlg-ui",
3
3
  "private": false,
4
- "version": "1.8.266",
4
+ "version": "1.8.267",
5
5
  "type": "module",
6
6
  "main": "dist/prlg-ui.umd.js",
7
7
  "module": "dist/prlg-ui.es.js",