assui 2.1.54 → 2.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.
@@ -0,0 +1,2 @@
1
+ import 'rc-trigger/assets/index.css';
2
+ import './index.less';
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ require("rc-trigger/assets/index.css");
8
+
9
+ require("./index.less");
@@ -0,0 +1,46 @@
1
+ @import '~antd/lib/style/index.less';
2
+
3
+ .color-select-wrap {
4
+ display: flex;
5
+ }
6
+
7
+ .color-select {
8
+ position: relative;
9
+ width: 130px;
10
+ padding: @input-padding-vertical-base @input-padding-horizontal-base;
11
+ border: @border-width-base @border-style-base @input-border-color;
12
+ border-radius: @control-border-radius;
13
+
14
+ &:hover {
15
+ border: 1px solid @primary-color;
16
+ }
17
+
18
+ &:focus,
19
+ &-focused {
20
+ border-color: @primary-color-hover;
21
+ border-right-width: 1px;
22
+ outline: 0;
23
+ box-shadow: @input-outline-offset @outline-blur-size @outline-width @primary-color-outline;
24
+ }
25
+
26
+ &-value {
27
+ width: 80px;
28
+ height: 20px;
29
+ }
30
+
31
+ &-placeholder {
32
+ color: #bfbfbf;
33
+ }
34
+
35
+ .color-select-arrow {
36
+ position: absolute;
37
+ top: 50%;
38
+ right: 15px;
39
+ transform: translateY(-50%);
40
+
41
+ .spotecicon {
42
+ width: 12px;
43
+ height: 12px;
44
+ }
45
+ }
46
+ }
package/lib/index.d.ts CHANGED
@@ -40,6 +40,8 @@ export type { TextInputProps } from './text-input';
40
40
  export { default as TextInput } from './text-input';
41
41
  export type { LabelInputProps } from './label-input';
42
42
  export { default as LabelInput } from './label-input';
43
+ export type { ColorSelectProps } from './color-select';
44
+ export { default as ColorSelect } from './color-select';
43
45
  export type { LabelSelectProps } from './label-select';
44
46
  export { default as LabelSelect } from './label-select';
45
47
  export type { ASelectProps } from './a-select';
package/lib/index.js CHANGED
@@ -9,7 +9,7 @@ var __importDefault = this && this.__importDefault || function (mod) {
9
9
  Object.defineProperty(exports, "__esModule", {
10
10
  value: true
11
11
  });
12
- exports.Resizable = exports.BeautifulDnd = exports.RichTextEditor = exports.LabelCustomizeRangePicker = exports.LabelTreeSelect = exports.LabelConditionInput = exports.LabelNumberInput = exports.LabelAutoComplete = exports.LabelDatePicker = exports.LabelRangePicker = exports.JsonEditor = exports.AreaText = exports.LabelTextArea = exports.ASelect = exports.LabelSelect = exports.LabelInput = exports.TextInput = exports.TextArea = exports.SplitPane = exports.sortableHoc = exports.SingleImgUpload = exports.RcTransitionGroup = exports.RcQRcode = exports.RcEcharts = exports.StepNumberInput = exports.NumberInput = exports.RcMotion = exports.KeepTab = exports.ImgCrop = exports.HighlightWords = exports.HighlightTextarea = exports.CopyToClipboard = exports.NumberFormatInput = exports.ConfigProvider = exports.ConditionInput = exports.ButtonModal = exports.ButtonDrawer = void 0;
12
+ exports.Resizable = exports.BeautifulDnd = exports.RichTextEditor = exports.LabelCustomizeRangePicker = exports.LabelTreeSelect = exports.LabelConditionInput = exports.LabelNumberInput = exports.LabelAutoComplete = exports.LabelDatePicker = exports.LabelRangePicker = exports.JsonEditor = exports.AreaText = exports.LabelTextArea = exports.ASelect = exports.LabelSelect = exports.ColorSelect = exports.LabelInput = exports.TextInput = exports.TextArea = exports.SplitPane = exports.sortableHoc = exports.SingleImgUpload = exports.RcTransitionGroup = exports.RcQRcode = exports.RcEcharts = exports.StepNumberInput = exports.NumberInput = exports.RcMotion = exports.KeepTab = exports.ImgCrop = exports.HighlightWords = exports.HighlightTextarea = exports.CopyToClipboard = exports.NumberFormatInput = exports.ConfigProvider = exports.ConditionInput = exports.ButtonModal = exports.ButtonDrawer = void 0;
13
13
 
14
14
  var button_drawer_1 = require("./button-drawer");
15
15
 
@@ -209,6 +209,15 @@ Object.defineProperty(exports, "LabelInput", {
209
209
  }
210
210
  });
211
211
 
212
+ var color_select_1 = require("./color-select");
213
+
214
+ Object.defineProperty(exports, "ColorSelect", {
215
+ enumerable: true,
216
+ get: function get() {
217
+ return __importDefault(color_select_1)["default"];
218
+ }
219
+ });
220
+
212
221
  var label_select_1 = require("./label-select");
213
222
 
214
223
  Object.defineProperty(exports, "LabelSelect", {
@@ -12,8 +12,5 @@ export interface LabelConditionInputProps extends Omit<ConditionInputProps, 'onB
12
12
  /** 组件dom id */
13
13
  id?: string;
14
14
  }
15
- declare const LabelConditionInput: {
16
- (props: LabelConditionInputProps): JSX.Element;
17
- Option: new (text?: string | undefined, value?: string | undefined, defaultSelected?: boolean | undefined, selected?: boolean | undefined) => HTMLOptionElement;
18
- };
15
+ declare const LabelConditionInput: (props: LabelConditionInputProps) => JSX.Element;
19
16
  export default LabelConditionInput;
@@ -129,5 +129,4 @@ var LabelConditionInput = function LabelConditionInput(props) {
129
129
  }, label)));
130
130
  };
131
131
 
132
- exports["default"] = LabelConditionInput;
133
- LabelConditionInput.Option = Option;
132
+ exports["default"] = LabelConditionInput;
@@ -7,8 +7,5 @@ export interface LabelTreeSelectProps extends Omit<TreeSelectProps<string[]>, 'o
7
7
  unit?: React.ReactNode;
8
8
  onDropdownVisibleChange?: (value: boolean) => void;
9
9
  }
10
- declare const LabelTreeSelect: {
11
- (props: LabelTreeSelectProps): JSX.Element;
12
- Option: new (text?: string | undefined, value?: string | undefined, defaultSelected?: boolean | undefined, selected?: boolean | undefined) => HTMLOptionElement;
13
- };
10
+ declare const LabelTreeSelect: (props: LabelTreeSelectProps) => JSX.Element;
14
11
  export default LabelTreeSelect;
@@ -125,5 +125,4 @@ var LabelTreeSelect = function LabelTreeSelect(props) {
125
125
  }, label));
126
126
  };
127
127
 
128
- exports["default"] = LabelTreeSelect;
129
- LabelTreeSelect.Option = Option;
128
+ exports["default"] = LabelTreeSelect;
@@ -1,6 +1,9 @@
1
1
  declare const locale: {
2
2
  locale: string;
3
3
  lang: {
4
+ global: {
5
+ placeholder: string;
6
+ };
4
7
  labelCustomizeRangePicker: {
5
8
  customTime: string;
6
9
  toDay: string;
@@ -6,6 +6,9 @@ Object.defineProperty(exports, "__esModule", {
6
6
  var locale = {
7
7
  locale: 'en-US',
8
8
  lang: {
9
+ global: {
10
+ placeholder: 'Please select'
11
+ },
9
12
  labelCustomizeRangePicker: {
10
13
  customTime: 'CustomTime',
11
14
  toDay: 'ToDay',
@@ -15,8 +15,13 @@ export declare type LabelCustomizeRangePickerType = {
15
15
  last180days: string;
16
16
  last365days: string;
17
17
  };
18
+ export declare type Global = {
19
+ placeholder: string;
20
+ };
21
+ export declare type All = LabelCustomizeRangePickerType & Global;
18
22
  export declare type LangType = {
19
23
  labelCustomizeRangePicker: LabelCustomizeRangePickerType;
24
+ global: Global;
20
25
  };
21
- export declare type DisplayNameType = 'labelCustomizeRangePicker';
22
- export default function formatMessage(message: LangType, displayName: DisplayNameType, key: keyof LabelCustomizeRangePickerType): string;
26
+ export declare type DisplayNameType = 'labelCustomizeRangePicker' | 'global';
27
+ export default function formatMessage(message: LangType, displayName: DisplayNameType, key: keyof All): any;
@@ -1,6 +1,9 @@
1
1
  declare const locale: {
2
2
  locale: string;
3
3
  lang: {
4
+ global: {
5
+ placeholder: string;
6
+ };
4
7
  labelCustomizeRangePicker: {
5
8
  customTime: string;
6
9
  toDay: string;
@@ -6,6 +6,9 @@ Object.defineProperty(exports, "__esModule", {
6
6
  var locale = {
7
7
  locale: 'zh_CN',
8
8
  lang: {
9
+ global: {
10
+ placeholder: '请选择'
11
+ },
9
12
  labelCustomizeRangePicker: {
10
13
  customTime: '自定义时间',
11
14
  toDay: '今日',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "assui",
3
- "version": "2.1.54",
3
+ "version": "2.2.0",
4
4
  "description": "react ui library",
5
5
  "author": "jason <usochen@gmail.com>",
6
6
  "main": "./lib/index.js",
@@ -44,8 +44,10 @@
44
44
  "jsoneditor-react": "^3.1.2",
45
45
  "qrcode": "^1.4.4",
46
46
  "rc-motion": "^2.4.4",
47
+ "rc-trigger": "^5.3.1",
47
48
  "rc-util": "^5.13.2",
48
49
  "react-beautiful-dnd": "^13.1.0",
50
+ "react-color": "^2.19.3",
49
51
  "react-easy-crop": "^3.5.2",
50
52
  "react-highlight-words": "^0.17.0",
51
53
  "react-resizable": "^3.0.4",
@@ -64,6 +66,7 @@
64
66
  "@types/insert-css": "^2.0.1",
65
67
  "@types/jsoneditor": "^9.5.1",
66
68
  "@types/qrcode": "^1.4.1",
69
+ "@types/react-color": "^3.0.6",
67
70
  "@types/react-highlight-words": "^0.16.3",
68
71
  "@types/react-transition-group": "^4.4.2",
69
72
  "antd": "^4.21.7",
@@ -76,5 +79,5 @@
76
79
  "node": ">=10.0.0"
77
80
  },
78
81
  "license": "MIT",
79
- "gitHead": "17d94d75438b08256e76b9839610f2f26a474bf1"
82
+ "gitHead": "6050e84965327ec8fceeff6addbc708017f1ed1f"
80
83
  }