aq-fe-framework 0.1.461 → 0.1.463

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,7 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { t as type_action } from '../types-B5rmBuXz.mjs';
3
3
  import { ActionIconProps, ButtonProps, ModalProps, ScrollAreaAutosizeProps, PaperProps, TextProps, GroupProps, ThemeIconProps, InputWrapperProps, SelectProps, TextInputProps, FlexProps } from '@mantine/core';
4
- import { ReactNode } from 'react';
4
+ import { ReactNode, ComponentPropsWithoutRef } from 'react';
5
5
  import { M as MyApiResponse } from '../createBaseApi-D9OK2lA_.mjs';
6
6
  import { AxiosResponse } from 'axios';
7
7
  import { UseFormReturnType } from '@mantine/form';
@@ -16,16 +16,17 @@ interface MyActionIconProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonEl
16
16
  }
17
17
  declare function MyActionIcon({ children, actionType, ...rest }: MyActionIconProps): react_jsx_runtime.JSX.Element;
18
18
 
19
- interface MyButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "color" | "style">, ButtonProps {
19
+ interface MyButtonProps$1 extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "color" | "style">, ButtonProps {
20
20
  actionType?: type_action;
21
21
  children?: ReactNode;
22
22
  }
23
- declare function MyButton({ children, actionType, ...rest }: MyButtonProps): react_jsx_runtime.JSX.Element;
23
+ declare function MyButton({ children, actionType, ...rest }: MyButtonProps$1): react_jsx_runtime.JSX.Element;
24
24
 
25
+ type MyButtonProps = ButtonProps & ComponentPropsWithoutRef<"button">;
25
26
  interface CoreButtonCreateUpdateProps<IReq, IRes> {
26
27
  modalProps?: Omit<ModalProps, "opened" | "onClose">;
27
28
  actionIconProps?: ActionIconProps;
28
- buttonProps?: ButtonProps;
29
+ buttonProps?: MyButtonProps;
29
30
  scrollAreaAutosizeProps?: ScrollAreaAutosizeProps;
30
31
  isUpdate?: boolean;
31
32
  onSubmit: (values: IReq) => Promise<AxiosResponse<MyApiResponse<IRes>>> | false | void;
@@ -54,7 +55,7 @@ interface MyButtonExportStructureProps {
54
55
  interface MyButtonModalProps {
55
56
  children?: ReactNode;
56
57
  disclosure: ReturnType<typeof useDisclosure>;
57
- buttonProps?: MyButtonProps;
58
+ buttonProps?: MyButtonProps$1;
58
59
  actionIconProps?: MyActionIconProps;
59
60
  modalProps?: Omit<ModalProps, "opened" | "onClose">;
60
61
  isActionIcon?: boolean;
@@ -172,4 +173,4 @@ interface MyFlexEndProps extends GroupProps {
172
173
  }
173
174
  declare function MyFlexEnd({ children, ...rest }: MyFlexEndProps): react_jsx_runtime.JSX.Element;
174
175
 
175
- export { type IWeeklySession, MyActionIcon, type MyActionIconProps, MyButton, MyButtonCreateUpdate, type MyButtonExportStructureProps, MyButtonModal, MyButtonModalCreateUpdate, type MyButtonModalProps, type MyButtonProps, MyDataTableSelectOne, MyDayOfWeekPicker, MyFlexColumn, MyFlexEnd, MyInfoBox, type MyInfoBoxItem, type MyInfoBoxProps, MyLabelValueRow, MyRichTextEditor, MySelect, MySelectFromAPI, type MySelectProps, MyStatsCard, MyTextInput, MyWeeklySessionSchedulerPicker, type WeeklySessionSchedulerProps };
176
+ export { type IWeeklySession, MyActionIcon, type MyActionIconProps, MyButton, MyButtonCreateUpdate, type MyButtonExportStructureProps, MyButtonModal, MyButtonModalCreateUpdate, type MyButtonModalProps, type MyButtonProps$1 as MyButtonProps, MyDataTableSelectOne, MyDayOfWeekPicker, MyFlexColumn, MyFlexEnd, MyInfoBox, type MyInfoBoxItem, type MyInfoBoxProps, MyLabelValueRow, MyRichTextEditor, MySelect, MySelectFromAPI, type MySelectProps, MyStatsCard, MyTextInput, MyWeeklySessionSchedulerPicker, type WeeklySessionSchedulerProps };
@@ -5666,6 +5666,11 @@ function F_authenticate_Login({
5666
5666
  username: ((_a = authenticate_store.state) == null ? void 0 : _a.username) || "",
5667
5667
  password: ""
5668
5668
  });
5669
+ if (process.env.NEXT_PUBLIC_APP_PROTOTYPE != "1") return;
5670
+ form.setValues({
5671
+ username: "admin",
5672
+ password: "123456"
5673
+ });
5669
5674
  }, [authenticate_store.state.username]);
5670
5675
  function handleSubmit(userName, passWord) {
5671
5676
  if (customSubmit) {
package/package.json CHANGED
@@ -42,7 +42,7 @@
42
42
  "types": "./dist/columns/index.d.mts"
43
43
  }
44
44
  },
45
- "version": "0.1.461",
45
+ "version": "0.1.463",
46
46
  "private": false,
47
47
  "files": [
48
48
  "dist"