@faasjs/ant-design 0.0.5-beta.2 → 0.0.5-beta.3

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/index.d.mts CHANGED
@@ -5,7 +5,7 @@ import { ConfigProviderProps as ConfigProviderProps$1 } from 'antd/es/config-pro
5
5
  import { StyleProviderProps } from '@ant-design/cssinjs/lib/StyleContext';
6
6
  import { MessageInstance } from 'antd/es/message/interface';
7
7
  import { NotificationInstance } from 'antd/es/notification/interface';
8
- import { ModalProps as ModalProps$1, DrawerProps as DrawerProps$1, FormItemProps as FormItemProps$1, InputProps, InputNumberProps, SwitchProps, SelectProps, DatePickerProps, TimePickerProps, FormInstance, DescriptionsProps, TableColumnProps, TablePaginationConfig, TableProps as TableProps$1, FormProps as FormProps$1, ButtonProps, TabsProps as TabsProps$1 } from 'antd';
8
+ import { ModalProps as ModalProps$1, DrawerProps as DrawerProps$1, FormItemProps as FormItemProps$1, InputProps, InputNumberProps, SwitchProps, SelectProps, DatePickerProps, FormInstance, DescriptionsProps, TableColumnProps, TablePaginationConfig, TableProps as TableProps$1, FormProps as FormProps$1, ButtonProps, TabsProps as TabsProps$1 } from 'antd';
9
9
  export { Drawer, Modal } from 'antd';
10
10
  import { BrowserRouterProps, RouteProps } from 'react-router-dom';
11
11
  import * as react from 'react';
@@ -181,7 +181,7 @@ type ExtendTypes = {
181
181
  };
182
182
  type ExtendFormItemProps = BaseItemProps & FormItemProps$1;
183
183
  interface FormItemProps<T = any> extends FaasItemProps, Omit<FormItemProps$1<T>, 'id' | 'children' | 'render'> {
184
- input?: InputProps | InputNumberProps | SwitchProps | SelectProps<T> | DatePickerProps | TimePickerProps;
184
+ input?: InputProps | InputNumberProps | SwitchProps | SelectProps<T> | DatePickerProps;
185
185
  maxCount?: number;
186
186
  object?: FormItemProps[];
187
187
  disabled?: boolean;
package/dist/index.d.ts CHANGED
@@ -5,7 +5,7 @@ import { ConfigProviderProps as ConfigProviderProps$1 } from 'antd/es/config-pro
5
5
  import { StyleProviderProps } from '@ant-design/cssinjs/lib/StyleContext';
6
6
  import { MessageInstance } from 'antd/es/message/interface';
7
7
  import { NotificationInstance } from 'antd/es/notification/interface';
8
- import { ModalProps as ModalProps$1, DrawerProps as DrawerProps$1, FormItemProps as FormItemProps$1, InputProps, InputNumberProps, SwitchProps, SelectProps, DatePickerProps, TimePickerProps, FormInstance, DescriptionsProps, TableColumnProps, TablePaginationConfig, TableProps as TableProps$1, FormProps as FormProps$1, ButtonProps, TabsProps as TabsProps$1 } from 'antd';
8
+ import { ModalProps as ModalProps$1, DrawerProps as DrawerProps$1, FormItemProps as FormItemProps$1, InputProps, InputNumberProps, SwitchProps, SelectProps, DatePickerProps, FormInstance, DescriptionsProps, TableColumnProps, TablePaginationConfig, TableProps as TableProps$1, FormProps as FormProps$1, ButtonProps, TabsProps as TabsProps$1 } from 'antd';
9
9
  export { Drawer, Modal } from 'antd';
10
10
  import { BrowserRouterProps, RouteProps } from 'react-router-dom';
11
11
  import * as react from 'react';
@@ -181,7 +181,7 @@ type ExtendTypes = {
181
181
  };
182
182
  type ExtendFormItemProps = BaseItemProps & FormItemProps$1;
183
183
  interface FormItemProps<T = any> extends FaasItemProps, Omit<FormItemProps$1<T>, 'id' | 'children' | 'render'> {
184
- input?: InputProps | InputNumberProps | SwitchProps | SelectProps<T> | DatePickerProps | TimePickerProps;
184
+ input?: InputProps | InputNumberProps | SwitchProps | SelectProps<T> | DatePickerProps;
185
185
  maxCount?: number;
186
186
  object?: FormItemProps[];
187
187
  disabled?: boolean;
package/dist/index.js CHANGED
@@ -646,7 +646,12 @@ function FormItem(props) {
646
646
  case "date":
647
647
  return /* @__PURE__ */ jsxRuntime.jsx(antd.Form.Item, { ...computedProps, children: /* @__PURE__ */ jsxRuntime.jsx(antd.DatePicker, { ...computedProps.input }) });
648
648
  case "time":
649
- return /* @__PURE__ */ jsxRuntime.jsx(antd.Form.Item, { ...computedProps, children: /* @__PURE__ */ jsxRuntime.jsx(antd.TimePicker, { ...computedProps.input }) });
649
+ return /* @__PURE__ */ jsxRuntime.jsx(antd.Form.Item, { ...computedProps, children: /* @__PURE__ */ jsxRuntime.jsx(
650
+ antd.DatePicker,
651
+ {
652
+ ...{ ...computedProps.input, showTime: true }
653
+ }
654
+ ) });
650
655
  case "object":
651
656
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
652
657
  computedProps.label && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "ant-form-item-label", children: /* @__PURE__ */ jsxRuntime.jsx(
@@ -1595,23 +1600,23 @@ function Title(props) {
1595
1600
  return null;
1596
1601
  }
1597
1602
 
1598
- Object.defineProperty(exports, 'faas', {
1603
+ Object.defineProperty(exports, "faas", {
1599
1604
  enumerable: true,
1600
1605
  get: function () { return react.faas; }
1601
1606
  });
1602
- Object.defineProperty(exports, 'useFaas', {
1607
+ Object.defineProperty(exports, "useFaas", {
1603
1608
  enumerable: true,
1604
1609
  get: function () { return react.useFaas; }
1605
1610
  });
1606
- Object.defineProperty(exports, 'Drawer', {
1611
+ Object.defineProperty(exports, "Drawer", {
1607
1612
  enumerable: true,
1608
1613
  get: function () { return antd.Drawer; }
1609
1614
  });
1610
- Object.defineProperty(exports, 'Modal', {
1615
+ Object.defineProperty(exports, "Modal", {
1611
1616
  enumerable: true,
1612
1617
  get: function () { return antd.Modal; }
1613
1618
  });
1614
- Object.defineProperty(exports, 'lazy', {
1619
+ Object.defineProperty(exports, "lazy", {
1615
1620
  enumerable: true,
1616
1621
  get: function () { return react$1.lazy; }
1617
1622
  });
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { ErrorBoundary as ErrorBoundary$1, FaasReactClient, FaasDataWrapper as FaasDataWrapper$1, faas } from '@faasjs/react';
2
2
  export { faas, useFaas } from '@faasjs/react';
3
- import { Form as Form$1, Modal, Drawer, message, notification, ConfigProvider as ConfigProvider$1, Typography, Spin, Descriptions, Input, Button, Row, Col, TimePicker, DatePicker, Switch, Select, InputNumber, Radio, Result, Skeleton, Table as Table$1, Tabs as Tabs$1, Alert, Space } from 'antd';
3
+ import { Form as Form$1, Modal, Drawer, message, notification, ConfigProvider as ConfigProvider$1, Typography, Spin, Descriptions, Input, Button, Row, Col, DatePicker, Switch, Select, InputNumber, Radio, Result, Skeleton, Table as Table$1, Tabs as Tabs$1, Alert, Space } from 'antd';
4
4
  export { Drawer, Modal } from 'antd';
5
5
  import { StyleProvider, legacyLogicalPropertiesTransformer } from '@ant-design/cssinjs';
6
6
  import { createContext, useState, useEffect, useContext, useMemo, cloneElement, useCallback, isValidElement, Suspense } from 'react';
@@ -643,7 +643,12 @@ function FormItem(props) {
643
643
  case "date":
644
644
  return /* @__PURE__ */ jsx(Form$1.Item, { ...computedProps, children: /* @__PURE__ */ jsx(DatePicker, { ...computedProps.input }) });
645
645
  case "time":
646
- return /* @__PURE__ */ jsx(Form$1.Item, { ...computedProps, children: /* @__PURE__ */ jsx(TimePicker, { ...computedProps.input }) });
646
+ return /* @__PURE__ */ jsx(Form$1.Item, { ...computedProps, children: /* @__PURE__ */ jsx(
647
+ DatePicker,
648
+ {
649
+ ...{ ...computedProps.input, showTime: true }
650
+ }
651
+ ) });
647
652
  case "object":
648
653
  return /* @__PURE__ */ jsxs(Fragment, { children: [
649
654
  computedProps.label && /* @__PURE__ */ jsx("div", { className: "ant-form-item-label", children: /* @__PURE__ */ jsx(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faasjs/ant-design",
3
- "version": "0.0.5-beta.2",
3
+ "version": "0.0.5-beta.3",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -26,7 +26,7 @@
26
26
  "lodash-es": "*"
27
27
  },
28
28
  "peerDependencies": {
29
- "@faasjs/react": "0.0.5-beta.2",
29
+ "@faasjs/react": "0.0.5-beta.3",
30
30
  "antd": "*",
31
31
  "react": "*",
32
32
  "react-dom": "*",
@@ -37,7 +37,7 @@
37
37
  "@testing-library/jest-dom": "*",
38
38
  "@testing-library/react": "*",
39
39
  "@testing-library/user-event": "*",
40
- "@faasjs/react": "0.0.5-beta.2",
40
+ "@faasjs/react": "0.0.5-beta.3",
41
41
  "antd": "*",
42
42
  "react": "*",
43
43
  "react-dom": "*",