@antscorp/antsomi-ui 1.1.10-beta.43 → 1.1.10-beta.44

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 +1,6 @@
1
- export { DatePicker } from 'antd';
1
+ import { DatePicker as AntdDatePicker } from 'antd';
2
+ import { AdvancedPicker } from './components/AdvancedPicker';
3
+ export type TDatePicker = typeof AntdDatePicker & {
4
+ AdvancedPicker: typeof AdvancedPicker;
5
+ };
6
+ export declare const DatePicker: TDatePicker;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { TAdvancedType, TOperatorKey, TOption } from './types';
3
- export interface AdvancedProps {
3
+ export interface AdvancedPickerProps {
4
4
  title?: string;
5
5
  dateTypeKeysShow?: string[];
6
6
  defaultDateTypeKey?: string;
@@ -21,4 +21,4 @@ export interface AdvancedProps {
21
21
  option: TOption;
22
22
  }) => void;
23
23
  }
24
- export declare const DatePickerAdvanced: React.FC<AdvancedProps>;
24
+ export declare const AdvancedPicker: React.FC<AdvancedPickerProps>;
@@ -0,0 +1,3 @@
1
+ export { AdvancedPicker } from './AdvancedPicker';
2
+ export type { AdvancedPickerProps } from './AdvancedPicker';
3
+ export type { TOption as TAdvancedPickerOption } from './types';
@@ -1,3 +1,2 @@
1
1
  export { DatePicker } from './DatePicker';
2
- export { DatePickerAdvanced } from './components/DatePickerAdvanced';
3
- export type { TOption as TDatePickerAdvancedOption } from './components/DatePickerAdvanced/types';
2
+ export type { AdvancedPickerProps, TAdvancedPickerOption } from './components/AdvancedPicker';
@@ -4,4 +4,5 @@ export { Dropdown } from './Dropdown';
4
4
  export { Modal } from './Modal';
5
5
  export { Select } from './Select';
6
6
  export { CustomComponent } from './CustomComponent';
7
- export { DatePicker, DatePickerAdvanced, TDatePickerAdvancedOption } from './DatePicker';
7
+ export { DatePicker } from './DatePicker';
8
+ export type { AdvancedPickerProps, TAdvancedPickerOption } from './DatePicker';
package/package.json CHANGED
@@ -1,17 +1,15 @@
1
1
  {
2
2
  "name": "@antscorp/antsomi-ui",
3
- "version": "1.1.10-beta.43",
3
+ "version": "1.1.10-beta.44",
4
4
  "description": "An enterprise-class UI design language and React UI library.",
5
5
  "main": "dist/index.js",
6
6
  "files": [
7
7
  "dist"
8
8
  ],
9
9
  "types": "dist/types",
10
- "sideEffects": false,
11
10
  "scripts": {
12
11
  "dev": "vite",
13
- "build": "rollup -c",
14
- "build:webpack": "webpack --config webpack.build.js",
12
+ "build": "webpack --config webpack.build.js",
15
13
  "eslint": "eslint --ext js,ts,tsx",
16
14
  "lint": "yarn run eslint src",
17
15
  "lint:fix": "yarn run eslint src --fix",
@@ -47,10 +45,6 @@
47
45
  "@commitlint/cli": "^17.5.0",
48
46
  "@commitlint/config-conventional": "^17.4.4",
49
47
  "@emotion/react": "^11.10.6",
50
- "@rollup/plugin-commonjs": "^24.0.1",
51
- "@rollup/plugin-image": "^3.0.2",
52
- "@rollup/plugin-node-resolve": "^15.0.1",
53
- "@rollup/plugin-typescript": "^11.0.0",
54
48
  "@storybook/addon-actions": "^6.5.16",
55
49
  "@storybook/addon-essentials": "^6.5.16",
56
50
  "@storybook/addon-interactions": "^6.5.16",
@@ -85,18 +79,13 @@
85
79
  "file-loader": "^6.2.0",
86
80
  "husky": "^8.0.3",
87
81
  "lint-staged": "^13.2.0",
82
+ "mini-css-extract-plugin": "^2.7.5",
88
83
  "postcss": "^8.4.21",
89
84
  "postcss-loader": "^7.1.0",
90
85
  "prettier": "^2.8.7",
91
86
  "react": "17.0.2",
92
87
  "react-dom": "17.0.2",
93
88
  "react-fast-compare": "^3.2.1",
94
- "rollup": "^3.20.0",
95
- "rollup-plugin-dts": "^5.3.0",
96
- "rollup-plugin-peer-deps-external": "^2.2.4",
97
- "rollup-plugin-postcss": "^4.0.2",
98
- "rollup-plugin-terser": "^7.0.2",
99
- "rollup-plugin-typescript-paths": "^1.4.0",
100
89
  "sass": "^1.60.0",
101
90
  "sass-loader": "^13.2.2",
102
91
  "style-loader": "^3.3.2",
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare const TestComponent: () => JSX.Element;
3
- export default TestComponent;
@@ -1 +0,0 @@
1
- export { DatePickerAdvanced } from './DatePickerAdvanced';