@qn-pandora/pandora-component 4.0.12 → 4.0.13

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/lib/index.less CHANGED
@@ -1,50 +1,50 @@
1
1
  @import './style\mixin.less';
2
2
  @import './style\theme.less';
3
- @import './components\AutoComplete\style.less';
4
3
  @import './components\Breadcrumb\style.less';
4
+ @import './components\Button\style.less';
5
5
  @import './components\Card\style.less';
6
+ @import './components\AutoComplete\style.less';
6
7
  @import './components\Checkbox\style.less';
7
- @import './components\Button\style.less';
8
+ @import './components\CollapsiblePanel\style.less';
8
9
  @import './components\CheckboxList\style.less';
9
10
  @import './components\CheckTransformList\style.less';
10
11
  @import './components\Collapse\style.less';
11
- @import './components\CollapsiblePanel\style.less';
12
+ @import './components\Drawer\style.less';
13
+ @import './components\FileResumable\style.less';
12
14
  @import './components\DateTimePicker\style.less';
13
15
  @import './components\Input\style.less';
14
- @import './components\FileResumable\style.less';
15
- @import './components\Drawer\style.less';
16
16
  @import './components\KeyValuePair\style.less';
17
17
  @import './components\Modal\style.less';
18
- @import './components\NameExplainTooltip\style.less';
19
18
  @import './components\Menu\style.less';
19
+ @import './components\NameExplainTooltip\style.less';
20
20
  @import './components\NameLimiter\style.less';
21
- @import './components\OptionList\style.less';
22
21
  @import './components\RangeInput\style.less';
22
+ @import './components\OptionList\style.less';
23
23
  @import './components\RemarkName\style.less';
24
- @import './components\Selector\style.less';
25
24
  @import './components\RadioGroup\style.less';
25
+ @import './components\Selector\style.less';
26
26
  @import './components\Spin\style.less';
27
27
  @import './components\Steps\style.less';
28
28
  @import './components\Table\style.less';
29
- @import './components\Tabs\style.less';
30
29
  @import './components\TagList\style.less';
30
+ @import './components\Tabs\style.less';
31
31
  @import './components\Timeline\style.less';
32
32
  @import './components\Transfer\style.less';
33
33
  @import './components\TreeSelector\style.less';
34
34
  @import './components\Card\RowExtra\style.less';
35
35
  @import './components\Card\SearchInput\style.less';
36
+ @import './components\DateTimePicker\BaseMobile\style.less';
36
37
  @import './components\DateTimePicker\Base\style.less';
37
38
  @import './components\DateTimePicker\DisplayInput\style.less';
38
- @import './components\DateTimePicker\BaseMobile\style.less';
39
- @import './components\OptionList\OptionItem\style.less';
40
39
  @import './components\OptionList\InlineOptionList\style.less';
40
+ @import './components\OptionList\OptionItem\style.less';
41
41
  @import './components\OptionList\PopoverOptionList\style.less';
42
42
  @import './components\Steps\ControlButton\style.less';
43
43
  @import './components\Table\ColumnTag\style.less';
44
+ @import './components\TagList\Tag\style.less';
44
45
  @import './components\TagList\TagSwitch\style.less';
45
46
  @import './components\Timeline\TimelineItem\style.less';
46
- @import './components\TagList\Tag\style.less';
47
- @import './components\Transfer\List\style.less';
48
47
  @import './components\Transfer\ListBody\style.less';
48
+ @import './components\Transfer\List\style.less';
49
49
  @import './components\DateTimePicker\BaseMobile\Absolute\style.less';
50
50
  @import './components\DateTimePicker\Collapse\Panel\style.less';
@@ -388,5 +388,5 @@
388
388
  @editor_nav_border_color: #d8d8d8;
389
389
  @editor_nav_line_color: #fcce72;
390
390
  @image-operator-hover-bg: rgba(51, 51, 51, 0.7);
391
- @agent-user-color: #853ee8; // 智能机器人智能鼓用户头像颜色
392
- @agent-user-message-background-color: #f7f7f8; // 用户框背景色
391
+ @agent-agent-message-background-color: #f7f7f8; // 用户框背景色
392
+ @agent-user-avatar-color: #e6902d; // 机器人用户头像颜色;
@@ -0,0 +1 @@
1
+ export declare function doesDOMMatchSelector(selector: string, element: HTMLElement): boolean;
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ var __values = (this && this.__values) || function(o) {
3
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
4
+ if (m) return m.call(o);
5
+ if (o && typeof o.length === "number") return {
6
+ next: function () {
7
+ if (o && i >= o.length) o = void 0;
8
+ return { value: o && o[i++], done: !o };
9
+ }
10
+ };
11
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
12
+ };
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ // 判断css选择器selector是否命中element
15
+ function doesDOMMatchSelector(selector, element) {
16
+ var e_1, _a;
17
+ var _b;
18
+ // Check if the browser supports matches() method
19
+ if (typeof element.matches === 'function') {
20
+ return element.matches(selector);
21
+ }
22
+ // Check if the browser supports webkitMatchesSelector() method
23
+ if (typeof element.webkitMatchesSelector === 'function') {
24
+ return element.webkitMatchesSelector(selector);
25
+ }
26
+ // If none of the above methods are supported, fall back to querySelectorAll()
27
+ var matches = ((_b = element.ownerDocument) === null || _b === void 0 ? void 0 : _b.querySelectorAll(selector)) || [];
28
+ try {
29
+ for (var _c = __values(Array.from(matches)), _d = _c.next(); !_d.done; _d = _c.next()) {
30
+ var el = _d.value;
31
+ if (el === element) {
32
+ return true;
33
+ }
34
+ }
35
+ }
36
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
37
+ finally {
38
+ try {
39
+ if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
40
+ }
41
+ finally { if (e_1) throw e_1.error; }
42
+ }
43
+ return false;
44
+ }
45
+ exports.doesDOMMatchSelector = doesDOMMatchSelector;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qn-pandora/pandora-component",
3
- "version": "4.0.12",
3
+ "version": "4.0.13",
4
4
  "description": "基础组件",
5
5
  "author": "pandora <pandora@qiniu.com>",
6
6
  "homepage": "https://github.com/qbox/phoenix#readme",
@@ -66,8 +66,8 @@
66
66
  "dependencies": {
67
67
  "@ant-design/compatible": "1.0.8",
68
68
  "@ant-design/icons": "4.7.0",
69
- "@qn-pandora/pandora-component-icons": "^3.0.15",
70
- "@qn-pandora/app-sdk": "^3.0.16",
69
+ "@qn-pandora/pandora-component-icons": "^3.0.16",
70
+ "@qn-pandora/app-sdk": "^3.0.17",
71
71
  "flat": "^5.0.0",
72
72
  "antd-mobile": "2.3.3",
73
73
  "css": "3.0.0",
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- export default function popContainerWrapper<T>(Comp: React.ComponentType<T>): (props: T & {
3
- bodyStyle?: React.CSSProperties | undefined;
4
- children: React.ReactNode;
5
- }) => JSX.Element;
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- export default function popContainerWrapper<T>(Comp: React.ComponentType<T>): (props: T & {
3
- bodyStyle?: React.CSSProperties | undefined;
4
- children: React.ReactNode;
5
- }) => JSX.Element;