@yueglobal/ui 1.0.0 → 1.0.2

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.
Files changed (55) hide show
  1. package/README.md +147 -148
  2. package/{dist/components → components}/svg-icon/declaration.svg +23 -23
  3. package/{dist/components → components}/svg-icon/expo.svg +23 -23
  4. package/{dist/components → components}/svg-icon/home.svg +13 -13
  5. package/{dist/components → components}/svg-icon/hwc.svg +20 -20
  6. package/{dist/components → components}/svg-icon/insurance.svg +14 -14
  7. package/{dist/components → components}/svg-icon/law.svg +23 -23
  8. package/{dist/components → components}/svg-icon/location.svg +9 -9
  9. package/{dist/components → components}/svg-icon/selection.svg +16 -16
  10. package/{dist/components → components}/svg-icon/single-window.svg +8 -8
  11. package/{dist/components → components}/svg-icon/taxation.svg +13 -13
  12. package/{dist/components → components}/svg-icon/trade-data.svg +18 -18
  13. package/{dist/components → components}/svg-icon/training.svg +17 -17
  14. package/package.json +7 -55
  15. package/{dist/yue-page-footer → yue-page-footer}/index.less +168 -168
  16. package/yue-page-header/breadcrumb/index.d.ts +12 -0
  17. package/yue-page-header/breadcrumb/index.js +130 -0
  18. package/yue-page-header/breadcrumb/index.less +30 -0
  19. package/yue-page-header/first-menus/index.d.ts +11 -0
  20. package/{dist/yue-page-header → yue-page-header}/first-menus/index.js +51 -15
  21. package/{dist/yue-page-header → yue-page-header}/first-menus/index.less +119 -86
  22. package/{dist/yue-page-header → yue-page-header}/helper.d.ts +9 -0
  23. package/{dist/yue-page-header → yue-page-header}/helper.js +106 -36
  24. package/{dist/yue-page-header → yue-page-header}/index.d.ts +1 -0
  25. package/{dist/yue-page-header → yue-page-header}/index.js +50 -17
  26. package/{dist/yue-page-header → yue-page-header}/index.less +44 -43
  27. package/{dist/yue-page-header → yue-page-header}/right-content/index.less +35 -35
  28. package/yue-page-header/second-menus/index.d.ts +12 -0
  29. package/{dist/yue-page-header → yue-page-header}/second-menus/index.js +27 -44
  30. package/{dist/yue-page-header → yue-page-header}/second-menus/index.less +160 -161
  31. package/dist/yue-page-header/breadcrumb/index.d.ts +0 -5
  32. package/dist/yue-page-header/breadcrumb/index.js +0 -82
  33. package/dist/yue-page-header/first-menus/index.d.ts +0 -7
  34. package/dist/yue-page-header/second-menus/index.d.ts +0 -8
  35. /package/{dist/assets → assets}/gw-logo.png +0 -0
  36. /package/{dist/assets → assets}/hs-logo.png +0 -0
  37. /package/{dist/assets → assets}/hs-wx.png +0 -0
  38. /package/{dist/assets → assets}/platform-logo.png +0 -0
  39. /package/{dist/assets → assets}/yldm-applet.png +0 -0
  40. /package/{dist/assets → assets}/ylqq-title.png +0 -0
  41. /package/{dist/assets → assets}/yxh-applet.png +0 -0
  42. /package/{dist/components → components}/svg-icon/index.d.ts +0 -0
  43. /package/{dist/components → components}/svg-icon/index.js +0 -0
  44. /package/{dist/index.d.ts → index.d.ts} +0 -0
  45. /package/{dist/index.js → index.js} +0 -0
  46. /package/{dist/yue-page-footer → yue-page-footer}/data/privacy-policy.d.ts +0 -0
  47. /package/{dist/yue-page-footer → yue-page-footer}/data/privacy-policy.js +0 -0
  48. /package/{dist/yue-page-footer → yue-page-footer}/data/terms-of-service.d.ts +0 -0
  49. /package/{dist/yue-page-footer → yue-page-footer}/data/terms-of-service.js +0 -0
  50. /package/{dist/yue-page-footer → yue-page-footer}/index.d.ts +0 -0
  51. /package/{dist/yue-page-footer → yue-page-footer}/index.js +0 -0
  52. /package/{dist/yue-page-footer → yue-page-footer}/info-modal/index.d.ts +0 -0
  53. /package/{dist/yue-page-footer → yue-page-footer}/info-modal/index.js +0 -0
  54. /package/{dist/yue-page-header → yue-page-header}/right-content/index.d.ts +0 -0
  55. /package/{dist/yue-page-header → yue-page-header}/right-content/index.js +0 -0
@@ -1,161 +1,160 @@
1
- .yue-page-header-second-menu {
2
- height: 60px;
3
- background: linear-gradient(90deg, #17f1a1, #1a4bff);
4
- opacity: 1;
5
- transition: opacity 0.2s ease-in-out;
6
-
7
- &.hidden {
8
- //opacity: 0;
9
- }
10
-
11
- .wrapper {
12
- margin: 0 auto;
13
- justify-content: space-between;
14
- height: 100%;
15
- color: #fff;
16
- max-width: 100%;
17
- }
18
-
19
- .left {
20
- gap: 20px;
21
- height: 100%;
22
- }
23
-
24
- .module-info {
25
- gap: 14px;
26
- margin-right: 10px;
27
- flex-shrink: 0;
28
- }
29
-
30
- .module-icon {
31
- font-size: 27px;
32
- line-height: 0;
33
- }
34
-
35
- .module-title {
36
- font-size: 24px;
37
- font-weight: bold;
38
- }
39
-
40
- .vr {
41
- width: 1px;
42
- height: 28px;
43
- background-color: rgba(255, 255, 255, 85%);
44
- flex-shrink: 0;
45
- }
46
-
47
- .menus {
48
- //max-width: 82%;
49
- height: 100%;
50
- padding-block: 1px;
51
- flex: 1 1 0%;
52
- min-width: 0;
53
- }
54
-
55
- .breadcrumb {
56
- gap: 12px;
57
- flex-shrink: 0;
58
-
59
- a {
60
- height: max-content;
61
- color: #fff;
62
-
63
- &:hover {
64
- color: #fff;
65
- background-color: transparent;
66
- }
67
- }
68
- }
69
- }
70
-
71
- .yue-second-menu-bar {
72
- &.ant-menu-root {
73
- background-color: transparent;
74
- font-size: 18px;
75
- height: 100%;
76
- border-bottom: none;
77
- gap: 4px;
78
-
79
- & > li {
80
- display: flex;
81
- align-items: center;
82
- justify-content: center;
83
- }
84
-
85
- .ant-menu-submenu-title {
86
- height: 100%;
87
- display: flex;
88
- align-items: center;
89
- justify-content: center;
90
- }
91
-
92
- .ant-menu-title-content {
93
- height: 34px;
94
- line-height: 32px;
95
- border-radius: 16px;
96
- padding-inline: 16px;
97
- }
98
-
99
- .ant-menu-submenu-active,
100
- .ant-menu-item-active {
101
- .ant-menu-title-content {
102
- background-color: rgba(255, 255, 255, 20%);
103
- }
104
- }
105
-
106
- .ant-menu-submenu-selected,
107
- .ant-menu-item-selected {
108
- .ant-menu-title-content {
109
- background-color: #fff;
110
- }
111
- }
112
- }
113
-
114
- &.ant-menu-submenu-popup {
115
- left: 0 !important;
116
- padding: 0;
117
- font-size: 18px;
118
- background-color: rgba(0, 0, 0, 45%);
119
- border-radius: 0;
120
- width: 100%;
121
-
122
- .ant-menu-sub {
123
- display: flex;
124
- justify-content: center;
125
- background-color: transparent;
126
- border-radius: 0;
127
- box-shadow: none;
128
- }
129
-
130
- .ant-menu-item {
131
- width: max-content;
132
- flex: unset;
133
- color: #fff;
134
- margin: 0;
135
- border-radius: 0;
136
- height: 60px;
137
- line-height: 30px;
138
- display: flex;
139
- align-items: center;
140
- padding-inline: 25px 18px;
141
- flex-shrink: 0;
142
- position: relative;
143
-
144
- &::before {
145
- content: '';
146
- position: absolute;
147
- left: 10px;
148
- top: 50%;
149
- transform: translateY(-50%);
150
- width: 4px;
151
- height: 4px;
152
- border-radius: 50%;
153
- background-color: rgba(255, 255, 255, 85%);
154
- }
155
- }
156
-
157
- .ant-menu-item-selected {
158
- background-color: rgba(0, 0, 0, 40%);
159
- }
160
- }
161
- }
1
+ .yue-page-header-second-menu {
2
+ height: 60px;
3
+ background: linear-gradient(90deg, #17f1a1, #1a4bff);
4
+ opacity: 1;
5
+ transition: opacity 0.2s ease-in-out;
6
+
7
+ &.hidden {
8
+ //opacity: 0;
9
+ }
10
+
11
+ .wrapper {
12
+ margin: 0 auto;
13
+ justify-content: space-between;
14
+ height: 100%;
15
+ color: #fff;
16
+ max-width: 98%;
17
+ }
18
+
19
+ .left {
20
+ gap: 8px;
21
+ height: 100%;
22
+ }
23
+
24
+ .module-info {
25
+ gap: 14px;
26
+ margin-right: 10px;
27
+ flex-shrink: 0;
28
+ }
29
+
30
+ .module-icon {
31
+ font-size: 27px;
32
+ line-height: 0;
33
+ }
34
+
35
+ .module-title {
36
+ font-size: 24px;
37
+ font-weight: bold;
38
+ min-width: 147px;
39
+ max-width: 300px;
40
+ white-space: nowrap;
41
+ overflow: hidden;
42
+ text-overflow: ellipsis;
43
+ }
44
+
45
+ .vr {
46
+ width: 1px;
47
+ height: 28px;
48
+ background-color: rgba(255, 255, 255, 85%);
49
+ flex-shrink: 0;
50
+ }
51
+
52
+ .menus {
53
+ //max-width: 82%;
54
+ height: 100%;
55
+ padding-block: 1px;
56
+ flex: 1 1 0;
57
+ min-width: 0;
58
+ padding-right: 30px;
59
+ }
60
+ }
61
+
62
+ .yue-second-menu-bar {
63
+ &.ant-menu-root {
64
+ background-color: transparent;
65
+ font-size: 18px;
66
+ height: 100%;
67
+ border-bottom: none;
68
+ gap: 4px;
69
+
70
+ & > li {
71
+ display: flex;
72
+ align-items: center;
73
+ justify-content: center;
74
+ }
75
+
76
+ .ant-menu-submenu-title {
77
+ height: 100%;
78
+ display: flex;
79
+ align-items: center;
80
+ justify-content: center;
81
+ }
82
+
83
+ .ant-menu-title-content {
84
+ height: 34px;
85
+ line-height: 32px;
86
+ border-radius: 16px;
87
+ padding-inline: 16px;
88
+ min-width: 80px;
89
+ text-align: center;
90
+ }
91
+
92
+ .ant-menu-submenu-active,
93
+ .ant-menu-item-active {
94
+ .ant-menu-title-content {
95
+ background-color: rgba(255, 255, 255, 20%);
96
+ }
97
+ }
98
+
99
+ .ant-menu-submenu-selected,
100
+ .ant-menu-item-selected {
101
+ .ant-menu-title-content {
102
+ background-color: #fff;
103
+ }
104
+ }
105
+ }
106
+
107
+ &.ant-menu-submenu-popup {
108
+ left: 0 !important;
109
+ padding: 0;
110
+ font-size: 18px;
111
+ //background-color: rgba(0, 0, 0, 45%);
112
+ background-color: rgba(4, 41, 131, 0.65);
113
+ border-radius: 0;
114
+ width: 100%;
115
+
116
+ .ant-menu-sub {
117
+ display: flex;
118
+ justify-content: center;
119
+ background-color: transparent;
120
+ border-radius: 0;
121
+ box-shadow: none;
122
+ }
123
+
124
+ .ant-menu-item {
125
+ width: max-content;
126
+ flex: unset;
127
+ color: #fff;
128
+ margin: 0;
129
+ border-radius: 0;
130
+ height: 60px;
131
+ line-height: 30px;
132
+ display: flex;
133
+ align-items: center;
134
+ padding-inline: 25px 18px;
135
+ flex-shrink: 0;
136
+ position: relative;
137
+
138
+ &::before {
139
+ content: '';
140
+ position: absolute;
141
+ left: 10px;
142
+ top: 50%;
143
+ transform: translateY(-50%);
144
+ width: 4px;
145
+ height: 4px;
146
+ border-radius: 50%;
147
+ background-color: rgba(255, 255, 255, 85%);
148
+ }
149
+ }
150
+
151
+ .ant-menu-item-active,
152
+ .ant-menu-item-selected {
153
+ background: linear-gradient(90deg, #17f1a1, #1a4bff);
154
+ }
155
+
156
+ /*.ant-menu-item-selected {
157
+ background-color: rgba(0, 0, 0, 40%);
158
+ }*/
159
+ }
160
+ }
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import { YuePageHeaderProps } from '../index';
3
- type Props = Pick<YuePageHeaderProps, 'breadcrumbs' | 'routes' | 'pathname' | 'onRouteChange'>;
4
- declare const _default: React.NamedExoticComponent<Props>;
5
- export default _default;
@@ -1,82 +0,0 @@
1
- import { Breadcrumb } from 'antd';
2
- import React, { memo, useMemo } from 'react';
3
- import { LocationIcon } from "../../components/svg-icon";
4
- import { getFullPathNodesByPath, uniqByPath } from "../helper";
5
- var Index = function Index(_ref) {
6
- var breadcrumbs = _ref.breadcrumbs,
7
- routes = _ref.routes,
8
- pathname = _ref.pathname,
9
- onRouteChange = _ref.onRouteChange;
10
- var breadcrumbItems = useMemo(function () {
11
- if (breadcrumbs) {
12
- return breadcrumbs.map(function (item) {
13
- var _item$key;
14
- return {
15
- path: (_item$key = item.key) !== null && _item$key !== void 0 && _item$key.startsWith('/') ? item.key : undefined,
16
- title: item.label
17
- };
18
- });
19
- }
20
- if (routes && pathname) {
21
- var _paths;
22
- var routeList = Object.values(routes).filter(function (d) {
23
- return !d.redirect && d.access !== false && !d.isLayout;
24
- });
25
- var paths = getFullPathNodesByPath(routeList, pathname);
26
- if (!paths.find(function (p) {
27
- return p.title === '首页' || p.name === '首页' || p.path === '/' || p.path === '/home';
28
- })) {
29
- paths.unshift({
30
- title: '首页',
31
- path: '/'
32
- });
33
- }
34
- if ((_paths = paths) !== null && _paths !== void 0 && _paths.length) {
35
- paths = uniqByPath(paths);
36
- if (paths.length > 1) {
37
- return paths.map(function (item) {
38
- return {
39
- path: item.realpath || item.path,
40
- title: item.title
41
- };
42
- });
43
- }
44
- }
45
- }
46
- return undefined;
47
- }, [breadcrumbs, routes, pathname]);
48
- var itemRender = function itemRender(currentRoute, _, items, paths) {
49
- var _items;
50
- var isLast = (currentRoute === null || currentRoute === void 0 ? void 0 : currentRoute.path) === ((_items = items[items.length - 1]) === null || _items === void 0 ? void 0 : _items.path);
51
- var fullPath = paths.join('/');
52
- if (!fullPath.startsWith('/')) {
53
- fullPath = '/' + fullPath;
54
- }
55
- return isLast ? /*#__PURE__*/React.createElement("span", null, currentRoute.title) : /*#__PURE__*/React.createElement("a", {
56
- onClick: function onClick() {
57
- onRouteChange === null || onRouteChange === void 0 || onRouteChange({
58
- key: fullPath,
59
- label: currentRoute.title
60
- });
61
- }
62
- }, currentRoute.title);
63
- };
64
- if (!(breadcrumbItems !== null && breadcrumbItems !== void 0 && breadcrumbItems.length)) {
65
- return null;
66
- }
67
- return /*#__PURE__*/React.createElement("div", {
68
- className: "yue-flex breadcrumb"
69
- }, /*#__PURE__*/React.createElement(LocationIcon, {
70
- style: {
71
- fontSize: 16
72
- }
73
- }), /*#__PURE__*/React.createElement(Breadcrumb, {
74
- separator: ">",
75
- items: breadcrumbItems,
76
- style: {
77
- fontSize: 12
78
- },
79
- itemRender: itemRender
80
- }));
81
- };
82
- export default /*#__PURE__*/memo(Index);
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- interface Props {
4
- setVisible: (visible: boolean) => void;
5
- }
6
- declare const _default: React.NamedExoticComponent<Props>;
7
- export default _default;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import { YuePageHeaderProps } from '../index';
3
- import './index.less';
4
- interface Props extends Omit<YuePageHeaderProps, 'rightContent'> {
5
- visible: boolean;
6
- }
7
- declare const _default: React.NamedExoticComponent<Props>;
8
- export default _default;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes