@epam/uui 5.11.0-alpha.0 → 5.11.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.
- package/assets/styles/effects.scss +1 -2
- package/assets/styles/typography.scss +2 -1
- package/components/buttons/Button.d.ts +1 -1
- package/components/buttons/Button.d.ts.map +1 -1
- package/components/datePickers/RangeDatePicker.d.ts.map +1 -1
- package/components/datePickers/RangeDatePickerInput.d.ts +4 -0
- package/components/datePickers/RangeDatePickerInput.d.ts.map +1 -1
- package/components/filters/PresetPanel/Preset.d.ts.map +1 -1
- package/components/filters/PresetPanel/PresetActionsDropdown.d.ts.map +1 -1
- package/components/inputs/MultiSwitch.d.ts +11 -3
- package/components/inputs/MultiSwitch.d.ts.map +1 -1
- package/components/inputs/Rating.d.ts +25 -0
- package/components/inputs/Rating.d.ts.map +1 -0
- package/components/inputs/index.d.ts +1 -0
- package/components/inputs/index.d.ts.map +1 -1
- package/components/layout/Accordion.d.ts.map +1 -1
- package/components/layout/ControlGroup.d.ts.map +1 -1
- package/components/overlays/Modals.d.ts.map +1 -1
- package/components/pickers/DataPickerFooter.d.ts.map +1 -1
- package/components/tables/columnsConfigurationModal/ColumnRow.d.ts.map +1 -1
- package/components/typography/Text.d.ts.map +1 -1
- package/index.esm.js +487 -445
- package/index.esm.js.map +1 -1
- package/index.js +487 -444
- package/index.js.map +1 -1
- package/package.json +6 -6
- package/settings.d.ts.map +1 -1
- package/settings.types.d.ts +2 -1
- package/settings.types.d.ts.map +1 -1
- package/stats.html +2 -2
- package/styles.css +2705 -2659
- package/styles.css.map +1 -1
package/index.esm.js
CHANGED
|
@@ -16,9 +16,24 @@ import customParseFormat from 'dayjs/plugin/customParseFormat.js';
|
|
|
16
16
|
import isoWeek from 'dayjs/plugin/isoWeek.js';
|
|
17
17
|
import FocusLock from 'react-focus-lock';
|
|
18
18
|
|
|
19
|
+
var _path$R;
|
|
20
|
+
function _extends$R() { _extends$R = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$R.apply(this, arguments); }
|
|
21
|
+
var SvgNavigationCloseOutline = function SvgNavigationCloseOutline(props, ref) {
|
|
22
|
+
return /*#__PURE__*/React.createElement("svg", _extends$R({
|
|
23
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
24
|
+
width: 24,
|
|
25
|
+
height: 24,
|
|
26
|
+
viewBox: "0 0 24 24",
|
|
27
|
+
ref: ref
|
|
28
|
+
}, props), _path$R || (_path$R = /*#__PURE__*/React.createElement("path", {
|
|
29
|
+
d: "M6.4 19 5 17.6l5.6-5.6L5 6.4 6.4 5l5.6 5.6L17.6 5 19 6.4 13.4 12l5.6 5.6-1.4 1.4-5.6-5.6L6.4 19z"
|
|
30
|
+
})));
|
|
31
|
+
};
|
|
32
|
+
var ForwardRef$R = /*#__PURE__*/forwardRef(SvgNavigationCloseOutline);
|
|
33
|
+
|
|
19
34
|
var _path$Q;
|
|
20
35
|
function _extends$Q() { _extends$Q = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$Q.apply(this, arguments); }
|
|
21
|
-
var
|
|
36
|
+
var SvgNavigationChevronDownOutline = function SvgNavigationChevronDownOutline(props, ref) {
|
|
22
37
|
return /*#__PURE__*/React.createElement("svg", _extends$Q({
|
|
23
38
|
xmlns: "http://www.w3.org/2000/svg",
|
|
24
39
|
width: 24,
|
|
@@ -26,14 +41,14 @@ var SvgNavigationCloseOutline = function SvgNavigationCloseOutline(props, ref) {
|
|
|
26
41
|
viewBox: "0 0 24 24",
|
|
27
42
|
ref: ref
|
|
28
43
|
}, props), _path$Q || (_path$Q = /*#__PURE__*/React.createElement("path", {
|
|
29
|
-
d: "
|
|
44
|
+
d: "M5.414 8.086 4 9.5l8 8 8-8-1.414-1.414L12 14.672 5.414 8.086z"
|
|
30
45
|
})));
|
|
31
46
|
};
|
|
32
|
-
var ForwardRef$Q = /*#__PURE__*/forwardRef(
|
|
47
|
+
var ForwardRef$Q = /*#__PURE__*/forwardRef(SvgNavigationChevronDownOutline);
|
|
33
48
|
|
|
34
49
|
var _path$P;
|
|
35
50
|
function _extends$P() { _extends$P = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$P.apply(this, arguments); }
|
|
36
|
-
var
|
|
51
|
+
var SvgNotificationDoneOutline = function SvgNotificationDoneOutline(props, ref) {
|
|
37
52
|
return /*#__PURE__*/React.createElement("svg", _extends$P({
|
|
38
53
|
xmlns: "http://www.w3.org/2000/svg",
|
|
39
54
|
width: 24,
|
|
@@ -41,14 +56,14 @@ var SvgNavigationChevronDownOutline = function SvgNavigationChevronDownOutline(p
|
|
|
41
56
|
viewBox: "0 0 24 24",
|
|
42
57
|
ref: ref
|
|
43
58
|
}, props), _path$P || (_path$P = /*#__PURE__*/React.createElement("path", {
|
|
44
|
-
d: "
|
|
59
|
+
d: "m20.503 7.4-1.778-1.78-9.175 9.176-4.275-4.275L3.496 12.3l6.054 6.053L20.503 7.4z"
|
|
45
60
|
})));
|
|
46
61
|
};
|
|
47
|
-
var ForwardRef$P = /*#__PURE__*/forwardRef(
|
|
62
|
+
var ForwardRef$P = /*#__PURE__*/forwardRef(SvgNotificationDoneOutline);
|
|
48
63
|
|
|
49
64
|
var _path$O;
|
|
50
65
|
function _extends$O() { _extends$O = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$O.apply(this, arguments); }
|
|
51
|
-
var
|
|
66
|
+
var SvgActionSearchOutline = function SvgActionSearchOutline(props, ref) {
|
|
52
67
|
return /*#__PURE__*/React.createElement("svg", _extends$O({
|
|
53
68
|
xmlns: "http://www.w3.org/2000/svg",
|
|
54
69
|
width: 24,
|
|
@@ -56,14 +71,16 @@ var SvgNotificationDoneOutline = function SvgNotificationDoneOutline(props, ref)
|
|
|
56
71
|
viewBox: "0 0 24 24",
|
|
57
72
|
ref: ref
|
|
58
73
|
}, props), _path$O || (_path$O = /*#__PURE__*/React.createElement("path", {
|
|
59
|
-
|
|
74
|
+
fillRule: "evenodd",
|
|
75
|
+
d: "M17.32 15.906 21.414 20 20 21.414l-4.094-4.094a8 8 0 1 1 1.414-1.414zM11 17a6 6 0 1 0 0-12 6 6 0 0 0 0 12z",
|
|
76
|
+
clipRule: "evenodd"
|
|
60
77
|
})));
|
|
61
78
|
};
|
|
62
|
-
var ForwardRef$O = /*#__PURE__*/forwardRef(
|
|
79
|
+
var ForwardRef$O = /*#__PURE__*/forwardRef(SvgActionSearchOutline);
|
|
63
80
|
|
|
64
81
|
var _path$N;
|
|
65
82
|
function _extends$N() { _extends$N = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$N.apply(this, arguments); }
|
|
66
|
-
var
|
|
83
|
+
var SvgActionCalendarFill = function SvgActionCalendarFill(props, ref) {
|
|
67
84
|
return /*#__PURE__*/React.createElement("svg", _extends$N({
|
|
68
85
|
xmlns: "http://www.w3.org/2000/svg",
|
|
69
86
|
width: 24,
|
|
@@ -71,16 +88,14 @@ var SvgActionSearchOutline = function SvgActionSearchOutline(props, ref) {
|
|
|
71
88
|
viewBox: "0 0 24 24",
|
|
72
89
|
ref: ref
|
|
73
90
|
}, props), _path$N || (_path$N = /*#__PURE__*/React.createElement("path", {
|
|
74
|
-
|
|
75
|
-
d: "M17.32 15.906 21.414 20 20 21.414l-4.094-4.094a8 8 0 1 1 1.414-1.414zM11 17a6 6 0 1 0 0-12 6 6 0 0 0 0 12z",
|
|
76
|
-
clipRule: "evenodd"
|
|
91
|
+
d: "M5 22a1.93 1.93 0 0 1-1.413-.587A1.928 1.928 0 0 1 3 20V6c0-.55.196-1.02.587-1.412A1.927 1.927 0 0 1 5 4h1V2h2v2h8V2h2v2h1c.55 0 1.021.196 1.413.588.391.391.587.862.587 1.412v14a1.93 1.93 0 0 1-.587 1.413A1.928 1.928 0 0 1 19 22H5zm0-2h14V10H5v10z"
|
|
77
92
|
})));
|
|
78
93
|
};
|
|
79
|
-
var ForwardRef$N = /*#__PURE__*/forwardRef(
|
|
94
|
+
var ForwardRef$N = /*#__PURE__*/forwardRef(SvgActionCalendarFill);
|
|
80
95
|
|
|
81
96
|
var _path$M;
|
|
82
97
|
function _extends$M() { _extends$M = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$M.apply(this, arguments); }
|
|
83
|
-
var
|
|
98
|
+
var SvgNotificationInfoOutline = function SvgNotificationInfoOutline(props, ref) {
|
|
84
99
|
return /*#__PURE__*/React.createElement("svg", _extends$M({
|
|
85
100
|
xmlns: "http://www.w3.org/2000/svg",
|
|
86
101
|
width: 24,
|
|
@@ -88,14 +103,14 @@ var SvgActionCalendarFill = function SvgActionCalendarFill(props, ref) {
|
|
|
88
103
|
viewBox: "0 0 24 24",
|
|
89
104
|
ref: ref
|
|
90
105
|
}, props), _path$M || (_path$M = /*#__PURE__*/React.createElement("path", {
|
|
91
|
-
d: "
|
|
106
|
+
d: "M11 17h2v-6h-2v6zm1-8a.968.968 0 0 0 .713-.288A.967.967 0 0 0 13 8a.97.97 0 0 0-.287-.713A.97.97 0 0 0 12 7a.967.967 0 0 0-.712.287A.968.968 0 0 0 11 8c0 .283.096.52.288.712A.965.965 0 0 0 12 9zm0 13a9.733 9.733 0 0 1-3.9-.788 10.092 10.092 0 0 1-3.175-2.137c-.9-.9-1.612-1.958-2.137-3.175A9.733 9.733 0 0 1 2 12a9.74 9.74 0 0 1 .788-3.9 10.092 10.092 0 0 1 2.137-3.175c.9-.9 1.958-1.613 3.175-2.138A9.743 9.743 0 0 1 12 2a9.74 9.74 0 0 1 3.9.787 10.105 10.105 0 0 1 3.175 2.138c.9.9 1.612 1.958 2.137 3.175A9.733 9.733 0 0 1 22 12a9.733 9.733 0 0 1-.788 3.9 10.092 10.092 0 0 1-2.137 3.175c-.9.9-1.958 1.612-3.175 2.137A9.733 9.733 0 0 1 12 22zm0-2c2.233 0 4.125-.775 5.675-2.325C19.225 16.125 20 14.233 20 12c0-2.233-.775-4.125-2.325-5.675C16.125 4.775 14.233 4 12 4c-2.233 0-4.125.775-5.675 2.325C4.775 7.875 4 9.767 4 12c0 2.233.775 4.125 2.325 5.675C7.875 19.225 9.767 20 12 20z"
|
|
92
107
|
})));
|
|
93
108
|
};
|
|
94
|
-
var ForwardRef$M = /*#__PURE__*/forwardRef(
|
|
109
|
+
var ForwardRef$M = /*#__PURE__*/forwardRef(SvgNotificationInfoOutline);
|
|
95
110
|
|
|
96
111
|
var _path$L;
|
|
97
112
|
function _extends$L() { _extends$L = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$L.apply(this, arguments); }
|
|
98
|
-
var
|
|
113
|
+
var SvgFileFileWordFill = function SvgFileFileWordFill(props, ref) {
|
|
99
114
|
return /*#__PURE__*/React.createElement("svg", _extends$L({
|
|
100
115
|
xmlns: "http://www.w3.org/2000/svg",
|
|
101
116
|
width: 24,
|
|
@@ -103,14 +118,16 @@ var SvgNotificationInfoOutline = function SvgNotificationInfoOutline(props, ref)
|
|
|
103
118
|
viewBox: "0 0 24 24",
|
|
104
119
|
ref: ref
|
|
105
120
|
}, props), _path$L || (_path$L = /*#__PURE__*/React.createElement("path", {
|
|
106
|
-
|
|
121
|
+
fillRule: "evenodd",
|
|
122
|
+
d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6zm1.2 18h-1.4L12 13.2 10.2 20H8.8l-2.2-9h1.5l1.4 6.8 1.8-6.8h1.3l1.8 6.8 1.4-6.8h1.5l-2.1 9zM13 9V3.5L18.5 9H13z",
|
|
123
|
+
clipRule: "evenodd"
|
|
107
124
|
})));
|
|
108
125
|
};
|
|
109
|
-
var ForwardRef$L = /*#__PURE__*/forwardRef(
|
|
126
|
+
var ForwardRef$L = /*#__PURE__*/forwardRef(SvgFileFileWordFill);
|
|
110
127
|
|
|
111
128
|
var _path$K;
|
|
112
129
|
function _extends$K() { _extends$K = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$K.apply(this, arguments); }
|
|
113
|
-
var
|
|
130
|
+
var SvgFileFileExcelFill = function SvgFileFileExcelFill(props, ref) {
|
|
114
131
|
return /*#__PURE__*/React.createElement("svg", _extends$K({
|
|
115
132
|
xmlns: "http://www.w3.org/2000/svg",
|
|
116
133
|
width: 24,
|
|
@@ -119,15 +136,15 @@ var SvgFileFileWordFill = function SvgFileFileWordFill(props, ref) {
|
|
|
119
136
|
ref: ref
|
|
120
137
|
}, props), _path$K || (_path$K = /*#__PURE__*/React.createElement("path", {
|
|
121
138
|
fillRule: "evenodd",
|
|
122
|
-
d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6zm1.
|
|
139
|
+
d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6zm1.8 18H14l-2-3.4-2 3.4H8.2l2.9-4.5L8.2 11H10l2 3.4 2-3.4h1.8l-2.9 4.5 2.9 4.5zM13 9V3.5L18.5 9H13z",
|
|
123
140
|
clipRule: "evenodd"
|
|
124
141
|
})));
|
|
125
142
|
};
|
|
126
|
-
var ForwardRef$K = /*#__PURE__*/forwardRef(
|
|
143
|
+
var ForwardRef$K = /*#__PURE__*/forwardRef(SvgFileFileExcelFill);
|
|
127
144
|
|
|
128
145
|
var _path$J;
|
|
129
146
|
function _extends$J() { _extends$J = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$J.apply(this, arguments); }
|
|
130
|
-
var
|
|
147
|
+
var SvgFileFilePdfFill = function SvgFileFilePdfFill(props, ref) {
|
|
131
148
|
return /*#__PURE__*/React.createElement("svg", _extends$J({
|
|
132
149
|
xmlns: "http://www.w3.org/2000/svg",
|
|
133
150
|
width: 24,
|
|
@@ -136,15 +153,15 @@ var SvgFileFileExcelFill = function SvgFileFileExcelFill(props, ref) {
|
|
|
136
153
|
ref: ref
|
|
137
154
|
}, props), _path$J || (_path$J = /*#__PURE__*/React.createElement("path", {
|
|
138
155
|
fillRule: "evenodd",
|
|
139
|
-
d: "
|
|
156
|
+
d: "M13 9h5.5L13 3.5V9zM6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm4.1 9.4c-.02.04-.29 1.76-2.1 4.69 0 0-3.5 1.82-2.67 3.18.67 1.08 2.32-.04 3.74-2.68 0 0 1.82-.64 4.24-.82 0 0 3.86 1.73 4.39-.11.52-1.86-3.06-1.44-3.7-1.25 0 0-2-1.35-2.5-3.21 0 0 1.14-3.95-.61-3.9-1.75.05-1.09 3.13-.79 4.1zm.81 1.04c.03.01.47 1.21 1.89 2.46 0 0-2.33.46-3.39.9 0 0 1-1.73 1.5-3.36zm3.93 2.72c.58-.16 2.33.15 2.26.48-.06.33-2.26-.48-2.26-.48zM7.77 17c-.53 1.24-1.44 2-1.67 2-.23 0 .7-1.6 1.67-2zm3.14-6.93c0-.07-.36-2.2 0-2.15.54.08 0 2.08 0 2.15z",
|
|
140
157
|
clipRule: "evenodd"
|
|
141
158
|
})));
|
|
142
159
|
};
|
|
143
|
-
var ForwardRef$J = /*#__PURE__*/forwardRef(
|
|
160
|
+
var ForwardRef$J = /*#__PURE__*/forwardRef(SvgFileFilePdfFill);
|
|
144
161
|
|
|
145
162
|
var _path$I;
|
|
146
163
|
function _extends$I() { _extends$I = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$I.apply(this, arguments); }
|
|
147
|
-
var
|
|
164
|
+
var SvgFileFileImageFill = function SvgFileFileImageFill(props, ref) {
|
|
148
165
|
return /*#__PURE__*/React.createElement("svg", _extends$I({
|
|
149
166
|
xmlns: "http://www.w3.org/2000/svg",
|
|
150
167
|
width: 24,
|
|
@@ -153,15 +170,15 @@ var SvgFileFilePdfFill = function SvgFileFilePdfFill(props, ref) {
|
|
|
153
170
|
ref: ref
|
|
154
171
|
}, props), _path$I || (_path$I = /*#__PURE__*/React.createElement("path", {
|
|
155
172
|
fillRule: "evenodd",
|
|
156
|
-
d: "M13 9h5.5L13 3.5V9zM6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-
|
|
173
|
+
d: "M13 9h5.5L13 3.5V9zM6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4c0-1.11.89-2 2-2zm0 18h12v-8l-4 4-2-2-6 6zM8 9a2 2 0 1 0 0 4 2 2 0 0 0 0-4z",
|
|
157
174
|
clipRule: "evenodd"
|
|
158
175
|
})));
|
|
159
176
|
};
|
|
160
|
-
var ForwardRef$I = /*#__PURE__*/forwardRef(
|
|
177
|
+
var ForwardRef$I = /*#__PURE__*/forwardRef(SvgFileFileImageFill);
|
|
161
178
|
|
|
162
|
-
var _path$H;
|
|
179
|
+
var _path$H, _path2$5;
|
|
163
180
|
function _extends$H() { _extends$H = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$H.apply(this, arguments); }
|
|
164
|
-
var
|
|
181
|
+
var SvgFileFileVideoFill = function SvgFileFileVideoFill(props, ref) {
|
|
165
182
|
return /*#__PURE__*/React.createElement("svg", _extends$H({
|
|
166
183
|
xmlns: "http://www.w3.org/2000/svg",
|
|
167
184
|
width: 24,
|
|
@@ -169,16 +186,18 @@ var SvgFileFileImageFill = function SvgFileFileImageFill(props, ref) {
|
|
|
169
186
|
viewBox: "0 0 24 24",
|
|
170
187
|
ref: ref
|
|
171
188
|
}, props), _path$H || (_path$H = /*#__PURE__*/React.createElement("path", {
|
|
189
|
+
d: "M14.992 14 9.5 17.138v-6.276L14.992 14z"
|
|
190
|
+
})), _path2$5 || (_path2$5 = /*#__PURE__*/React.createElement("path", {
|
|
172
191
|
fillRule: "evenodd",
|
|
173
|
-
d: "
|
|
192
|
+
d: "M4 4c0-1.11.89-2 2-2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4zm9-.5V9h5.5L13 3.5zM8.5 9.138v9.724L17.008 14 8.5 9.138z",
|
|
174
193
|
clipRule: "evenodd"
|
|
175
194
|
})));
|
|
176
195
|
};
|
|
177
|
-
var ForwardRef$H = /*#__PURE__*/forwardRef(
|
|
196
|
+
var ForwardRef$H = /*#__PURE__*/forwardRef(SvgFileFileVideoFill);
|
|
178
197
|
|
|
179
|
-
var _path$G
|
|
198
|
+
var _path$G;
|
|
180
199
|
function _extends$G() { _extends$G = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$G.apply(this, arguments); }
|
|
181
|
-
var
|
|
200
|
+
var SvgFileFileTableFill = function SvgFileFileTableFill(props, ref) {
|
|
182
201
|
return /*#__PURE__*/React.createElement("svg", _extends$G({
|
|
183
202
|
xmlns: "http://www.w3.org/2000/svg",
|
|
184
203
|
width: 24,
|
|
@@ -186,18 +205,16 @@ var SvgFileFileVideoFill = function SvgFileFileVideoFill(props, ref) {
|
|
|
186
205
|
viewBox: "0 0 24 24",
|
|
187
206
|
ref: ref
|
|
188
207
|
}, props), _path$G || (_path$G = /*#__PURE__*/React.createElement("path", {
|
|
189
|
-
d: "M14.992 14 9.5 17.138v-6.276L14.992 14z"
|
|
190
|
-
})), _path2$5 || (_path2$5 = /*#__PURE__*/React.createElement("path", {
|
|
191
208
|
fillRule: "evenodd",
|
|
192
|
-
d: "
|
|
209
|
+
d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6zm-4 17H7v-2h3v2zm0-3H7v-2h3v2zm0-3H7v-2h3v2zm4 6h-3v-2h3v2zm0-3h-3v-2h3v2zm0-3h-3v-2h3v2zm-1-4V3.5L18.5 9H13z",
|
|
193
210
|
clipRule: "evenodd"
|
|
194
211
|
})));
|
|
195
212
|
};
|
|
196
|
-
var ForwardRef$G = /*#__PURE__*/forwardRef(
|
|
213
|
+
var ForwardRef$G = /*#__PURE__*/forwardRef(SvgFileFileTableFill);
|
|
197
214
|
|
|
198
215
|
var _path$F;
|
|
199
216
|
function _extends$F() { _extends$F = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$F.apply(this, arguments); }
|
|
200
|
-
var
|
|
217
|
+
var SvgFileFileTextFill = function SvgFileFileTextFill(props, ref) {
|
|
201
218
|
return /*#__PURE__*/React.createElement("svg", _extends$F({
|
|
202
219
|
xmlns: "http://www.w3.org/2000/svg",
|
|
203
220
|
width: 24,
|
|
@@ -206,15 +223,15 @@ var SvgFileFileTableFill = function SvgFileFileTableFill(props, ref) {
|
|
|
206
223
|
ref: ref
|
|
207
224
|
}, props), _path$F || (_path$F = /*#__PURE__*/React.createElement("path", {
|
|
208
225
|
fillRule: "evenodd",
|
|
209
|
-
d: "
|
|
226
|
+
d: "M13 9h5.5L13 3.5V9zM6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4c0-1.11.89-2 2-2zm9 16v-2H6v2h9zm3-4v-2H6v2h12z",
|
|
210
227
|
clipRule: "evenodd"
|
|
211
228
|
})));
|
|
212
229
|
};
|
|
213
|
-
var ForwardRef$F = /*#__PURE__*/forwardRef(
|
|
230
|
+
var ForwardRef$F = /*#__PURE__*/forwardRef(SvgFileFileTextFill);
|
|
214
231
|
|
|
215
232
|
var _path$E;
|
|
216
233
|
function _extends$E() { _extends$E = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$E.apply(this, arguments); }
|
|
217
|
-
var
|
|
234
|
+
var SvgFileFileEmlFill = function SvgFileFileEmlFill(props, ref) {
|
|
218
235
|
return /*#__PURE__*/React.createElement("svg", _extends$E({
|
|
219
236
|
xmlns: "http://www.w3.org/2000/svg",
|
|
220
237
|
width: 24,
|
|
@@ -223,15 +240,15 @@ var SvgFileFileTextFill = function SvgFileFileTextFill(props, ref) {
|
|
|
223
240
|
ref: ref
|
|
224
241
|
}, props), _path$E || (_path$E = /*#__PURE__*/React.createElement("path", {
|
|
225
242
|
fillRule: "evenodd",
|
|
226
|
-
d: "
|
|
243
|
+
d: "M4 4c0-1.11.89-2 2-2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4zm9-.5V9h5.5L13 3.5zM7 18v-4.732l5 3.333 5-3.333V18a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1zm5-2.6 4.688-3.126A.997.997 0 0 0 16 12H8a.997.997 0 0 0-.688.274L12 15.399z",
|
|
227
244
|
clipRule: "evenodd"
|
|
228
245
|
})));
|
|
229
246
|
};
|
|
230
|
-
var ForwardRef$E = /*#__PURE__*/forwardRef(
|
|
247
|
+
var ForwardRef$E = /*#__PURE__*/forwardRef(SvgFileFileEmlFill);
|
|
231
248
|
|
|
232
249
|
var _path$D;
|
|
233
250
|
function _extends$D() { _extends$D = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$D.apply(this, arguments); }
|
|
234
|
-
var
|
|
251
|
+
var SvgFileFileFill = function SvgFileFileFill(props, ref) {
|
|
235
252
|
return /*#__PURE__*/React.createElement("svg", _extends$D({
|
|
236
253
|
xmlns: "http://www.w3.org/2000/svg",
|
|
237
254
|
width: 24,
|
|
@@ -239,46 +256,29 @@ var SvgFileFileEmlFill = function SvgFileFileEmlFill(props, ref) {
|
|
|
239
256
|
viewBox: "0 0 24 24",
|
|
240
257
|
ref: ref
|
|
241
258
|
}, props), _path$D || (_path$D = /*#__PURE__*/React.createElement("path", {
|
|
242
|
-
fillRule: "evenodd",
|
|
243
|
-
d: "M4 4c0-1.11.89-2 2-2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4zm9-.5V9h5.5L13 3.5zM7 18v-4.732l5 3.333 5-3.333V18a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1zm5-2.6 4.688-3.126A.997.997 0 0 0 16 12H8a.997.997 0 0 0-.688.274L12 15.399z",
|
|
244
|
-
clipRule: "evenodd"
|
|
245
|
-
})));
|
|
246
|
-
};
|
|
247
|
-
var ForwardRef$D = /*#__PURE__*/forwardRef(SvgFileFileEmlFill);
|
|
248
|
-
|
|
249
|
-
var _path$C;
|
|
250
|
-
function _extends$C() { _extends$C = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$C.apply(this, arguments); }
|
|
251
|
-
var SvgFileFileFill = function SvgFileFileFill(props, ref) {
|
|
252
|
-
return /*#__PURE__*/React.createElement("svg", _extends$C({
|
|
253
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
254
|
-
width: 24,
|
|
255
|
-
height: 24,
|
|
256
|
-
viewBox: "0 0 24 24",
|
|
257
|
-
ref: ref
|
|
258
|
-
}, props), _path$C || (_path$C = /*#__PURE__*/React.createElement("path", {
|
|
259
259
|
d: "M6 22c-.55 0-1.02-.196-1.412-.587A1.927 1.927 0 0 1 4 20V4c0-.55.196-1.021.588-1.413A1.925 1.925 0 0 1 6 2h8l6 6v12a1.93 1.93 0 0 1-.587 1.413A1.928 1.928 0 0 1 18 22H6zm7-13h5l-5-5v5z"
|
|
260
260
|
})));
|
|
261
261
|
};
|
|
262
|
-
var ForwardRef$
|
|
262
|
+
var ForwardRef$D = /*#__PURE__*/forwardRef(SvgFileFileFill);
|
|
263
263
|
|
|
264
264
|
const fileIcons = {
|
|
265
|
-
docIcon: ForwardRef$
|
|
266
|
-
exelIcon: ForwardRef$
|
|
267
|
-
pdfIcon: ForwardRef$
|
|
268
|
-
imgIcon: ForwardRef$
|
|
269
|
-
videoIcon: ForwardRef$
|
|
270
|
-
tableIcon: ForwardRef$
|
|
271
|
-
textIcon: ForwardRef$
|
|
272
|
-
mailIcon: ForwardRef$
|
|
273
|
-
fileIcon: ForwardRef$
|
|
265
|
+
docIcon: ForwardRef$L,
|
|
266
|
+
exelIcon: ForwardRef$K,
|
|
267
|
+
pdfIcon: ForwardRef$J,
|
|
268
|
+
imgIcon: ForwardRef$I,
|
|
269
|
+
videoIcon: ForwardRef$H,
|
|
270
|
+
tableIcon: ForwardRef$G,
|
|
271
|
+
textIcon: ForwardRef$F,
|
|
272
|
+
mailIcon: ForwardRef$E,
|
|
273
|
+
fileIcon: ForwardRef$D,
|
|
274
274
|
};
|
|
275
275
|
const systemIcons = {
|
|
276
|
-
clear: ForwardRef$
|
|
277
|
-
foldingArrow: ForwardRef$
|
|
278
|
-
accept: ForwardRef$
|
|
279
|
-
search: ForwardRef$
|
|
280
|
-
calendar: ForwardRef$
|
|
281
|
-
info: ForwardRef$
|
|
276
|
+
clear: ForwardRef$R,
|
|
277
|
+
foldingArrow: ForwardRef$Q,
|
|
278
|
+
accept: ForwardRef$P,
|
|
279
|
+
search: ForwardRef$O,
|
|
280
|
+
calendar: ForwardRef$N,
|
|
281
|
+
info: ForwardRef$M,
|
|
282
282
|
};
|
|
283
283
|
|
|
284
284
|
const settings = {
|
|
@@ -302,6 +302,7 @@ const settings = {
|
|
|
302
302
|
labeledInput: '36',
|
|
303
303
|
statusIndicator: '24',
|
|
304
304
|
paginator: '30',
|
|
305
|
+
rating: '18',
|
|
305
306
|
},
|
|
306
307
|
tag: {
|
|
307
308
|
countIndicator: {
|
|
@@ -548,7 +549,7 @@ const settings = {
|
|
|
548
549
|
modal: {
|
|
549
550
|
window: {
|
|
550
551
|
defaults: {
|
|
551
|
-
width:
|
|
552
|
+
width: 420,
|
|
552
553
|
},
|
|
553
554
|
},
|
|
554
555
|
},
|
|
@@ -562,11 +563,11 @@ const settings = {
|
|
|
562
563
|
},
|
|
563
564
|
};
|
|
564
565
|
|
|
565
|
-
var css$
|
|
566
|
+
var css$1x = {"uui-typography":"a9wva6","uuiTypography":"a9wva6","hero-header":"X46M0q","heroHeader":"X46M0q","promo-header":"NUIsoK","promoHeader":"NUIsoK","uui-critical":"AQwg9j","uuiCritical":"AQwg9j","uui-info":"HzZTlP","uuiInfo":"HzZTlP","uui-success":"pRmDn-","uuiSuccess":"pRmDn-","uui-warning":"JH4oZ-","uuiWarning":"JH4oZ-","uui-highlight":"ZhMviw","uuiHighlight":"ZhMviw","uui-typography-size-12":"IfHll8","uuiTypographySize12":"IfHll8","uui-typography-size-14":"uw16o-","uuiTypographySize14":"uw16o-","uui-typography-size-16":"h2NZLY","uuiTypographySize16":"h2NZLY","root":"Dm8T20"};
|
|
566
567
|
|
|
567
568
|
function applyButtonMods(mods) {
|
|
568
569
|
return [
|
|
569
|
-
css$
|
|
570
|
+
css$1x.root,
|
|
570
571
|
'uui-button',
|
|
571
572
|
`uui-fill-${mods.fill || 'solid'}`,
|
|
572
573
|
`uui-color-${mods.color || 'primary'}`,
|
|
@@ -580,10 +581,10 @@ const Button = /* @__PURE__ */withMods(uuiComponents.Button, applyButtonMods, ()
|
|
|
580
581
|
};
|
|
581
582
|
});
|
|
582
583
|
|
|
583
|
-
var css$
|
|
584
|
+
var css$1w = {"root":"_6qKT9r"};
|
|
584
585
|
|
|
585
586
|
function applyIconButtonMods(props) {
|
|
586
|
-
return ['uui-icon_button', `uui-color-${props.color || 'neutral'}`, css$
|
|
587
|
+
return ['uui-icon_button', `uui-color-${props.color || 'neutral'}`, css$1w.root];
|
|
587
588
|
}
|
|
588
589
|
const IconButton = /* @__PURE__ */withMods(uuiComponents.IconButton, applyIconButtonMods, (props) => {
|
|
589
590
|
const isDeprecated = ['info', 'success', 'error', 'warning'].includes(props.color);
|
|
@@ -617,7 +618,7 @@ function getIconClass(props) {
|
|
|
617
618
|
return [classList['has-left-icon'] ? 'uui-has-left-icon' : 'uui-no-left-icon', classList['has-right-icon'] ? 'uui-has-right-icon' : 'uui-no-right-icon'];
|
|
618
619
|
}
|
|
619
620
|
|
|
620
|
-
var css$
|
|
621
|
+
var css$1v = {"uui-typography":"fwvPe6","uuiTypography":"fwvPe6","hero-header":"_7iTb-4","heroHeader":"_7iTb-4","promo-header":"HuIpM6","promoHeader":"HuIpM6","uui-critical":"_9w2dx7","uuiCritical":"_9w2dx7","uui-info":"r61F36","uuiInfo":"r61F36","uui-success":"kamLnq","uuiSuccess":"kamLnq","uui-warning":"C4bVzT","uuiWarning":"C4bVzT","uui-highlight":"k9yHem","uuiHighlight":"k9yHem","uui-typography-size-12":"y8zKpO","uuiTypographySize12":"y8zKpO","uui-typography-size-14":"b24yFN","uuiTypographySize14":"b24yFN","uui-typography-size-16":"V1lhsy","uuiTypographySize16":"V1lhsy","root":"OiOfQB"};
|
|
621
622
|
|
|
622
623
|
const DEFAULT_COLOR = 'primary';
|
|
623
624
|
const DEFAULT_WEIGHT = 'semibold';
|
|
@@ -633,7 +634,7 @@ const LinkButton = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
633
634
|
}
|
|
634
635
|
const rootStyles = [
|
|
635
636
|
'uui-link_button',
|
|
636
|
-
css$
|
|
637
|
+
css$1v.root,
|
|
637
638
|
`uui-size-${props.size || settings.sizes.defaults.linkButton}`,
|
|
638
639
|
...getIconClass(props),
|
|
639
640
|
`uui-color-${props.color || DEFAULT_COLOR}`,
|
|
@@ -648,11 +649,11 @@ const LinkButton = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
648
649
|
props.isDropdown && (React.createElement(IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
649
650
|
});
|
|
650
651
|
|
|
651
|
-
var css$
|
|
652
|
+
var css$1u = {"root":"bTawbL"};
|
|
652
653
|
|
|
653
654
|
const CountIndicator = /* @__PURE__ */forwardRef((props, ref) => {
|
|
654
655
|
return (React__default.createElement("div", { ref: ref, className: cx([
|
|
655
|
-
css$
|
|
656
|
+
css$1u.root,
|
|
656
657
|
'uui-count_indicator',
|
|
657
658
|
`uui-size-${props.size || settings.sizes.defaults.countIndicator}`,
|
|
658
659
|
props.color && `uui-color-${props.color}`,
|
|
@@ -660,11 +661,11 @@ const CountIndicator = /* @__PURE__ */forwardRef((props, ref) => {
|
|
|
660
661
|
]) }, props.caption));
|
|
661
662
|
});
|
|
662
663
|
|
|
663
|
-
var css$
|
|
664
|
+
var css$1t = {"uui-typography":"mldBhE","uuiTypography":"mldBhE","hero-header":"kbhjMN","heroHeader":"kbhjMN","promo-header":"rXUjVj","promoHeader":"rXUjVj","uui-critical":"_0BSgMS","uuiCritical":"_0BSgMS","uui-info":"tbKHpF","uuiInfo":"tbKHpF","uui-success":"_9tXgAo","uuiSuccess":"_9tXgAo","uui-warning":"x3JxPY","uuiWarning":"x3JxPY","uui-highlight":"DcBG7n","uuiHighlight":"DcBG7n","uui-typography-size-12":"BRC8Rt","uuiTypographySize12":"BRC8Rt","uui-typography-size-14":"Gj6MQO","uuiTypographySize14":"Gj6MQO","uui-typography-size-16":"GzkPdu","uuiTypographySize16":"GzkPdu","root":"gBDtPi","withNotify":"ynnjAp"};
|
|
664
665
|
|
|
665
666
|
const TabButton = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
666
667
|
const styles = [
|
|
667
|
-
css$
|
|
668
|
+
css$1t.root,
|
|
668
669
|
'uui-tab-button',
|
|
669
670
|
`uui-size-${props.size || settings.sizes.defaults.tabButton}`,
|
|
670
671
|
...getIconClass(props),
|
|
@@ -676,48 +677,48 @@ const TabButton = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
|
676
677
|
props.icon && props.iconPosition !== 'right' && (React__default.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
677
678
|
(props.caption || props.withNotify) && (React__default.createElement("div", { className: cx$1(uuiElement.caption) },
|
|
678
679
|
props.caption,
|
|
679
|
-
props.withNotify && React__default.createElement("div", { className: css$
|
|
680
|
+
props.withNotify && React__default.createElement("div", { className: css$1t.withNotify }))),
|
|
680
681
|
props.icon && props.iconPosition === 'right' && (React__default.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
681
682
|
props.count !== undefined && props.count !== null && (React__default.createElement(CountIndicator, { color: "neutral", size: settings.sizes.tabButton.countIndicator[props.size || settings.sizes.defaults.tabButton], caption: props.count })),
|
|
682
683
|
props.isDropdown && (React__default.createElement(IconContainer, { icon: DropdownIcon, flipY: props.isOpen })),
|
|
683
684
|
props.onClear && !props.isDisabled && (React__default.createElement(IconContainer, { cx: uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
|
|
684
685
|
});
|
|
685
686
|
|
|
686
|
-
var css$
|
|
687
|
+
var css$1s = {"uui-typography":"EBYp5w","uuiTypography":"EBYp5w","hero-header":"z6pug3","heroHeader":"z6pug3","promo-header":"D28h84","promoHeader":"D28h84","uui-critical":"xLKd-N","uuiCritical":"xLKd-N","uui-info":"n8qxRt","uuiInfo":"n8qxRt","uui-success":"ogcEe9","uuiSuccess":"ogcEe9","uui-warning":"hCWidl","uuiWarning":"hCWidl","uui-highlight":"kUWwyd","uuiHighlight":"kUWwyd","uui-typography-size-12":"hXqrBs","uuiTypographySize12":"hXqrBs","uui-typography-size-14":"NgXYwQ","uuiTypographySize14":"NgXYwQ","uui-typography-size-16":"gM89kW","uuiTypographySize16":"gM89kW","root":"DLwggy"};
|
|
687
688
|
|
|
688
689
|
function applyVerticalTabButtonMods() {
|
|
689
|
-
return [css$
|
|
690
|
+
return [css$1s.root, 'uui-vertical-tab-button'];
|
|
690
691
|
}
|
|
691
692
|
const VerticalTabButton = /* @__PURE__ */withMods(TabButton, applyVerticalTabButtonMods);
|
|
692
693
|
|
|
693
|
-
var _path$
|
|
694
|
-
function _extends$
|
|
694
|
+
var _path$C;
|
|
695
|
+
function _extends$C() { _extends$C = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$C.apply(this, arguments); }
|
|
695
696
|
var SvgContentMinusOutline = function SvgContentMinusOutline(props, ref) {
|
|
696
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
697
|
+
return /*#__PURE__*/React.createElement("svg", _extends$C({
|
|
697
698
|
xmlns: "http://www.w3.org/2000/svg",
|
|
698
699
|
width: 24,
|
|
699
700
|
height: 24,
|
|
700
701
|
viewBox: "0 0 24 24",
|
|
701
702
|
ref: ref
|
|
702
|
-
}, props), _path$
|
|
703
|
+
}, props), _path$C || (_path$C = /*#__PURE__*/React.createElement("path", {
|
|
703
704
|
d: "M19 10.5H5v3h14v-3z"
|
|
704
705
|
})));
|
|
705
706
|
};
|
|
706
|
-
var ForwardRef$
|
|
707
|
+
var ForwardRef$C = /*#__PURE__*/forwardRef(SvgContentMinusOutline);
|
|
707
708
|
|
|
708
|
-
var css$
|
|
709
|
+
var css$1r = {"uui-typography":"CFiruR","uuiTypography":"CFiruR","hero-header":"Oeg92u","heroHeader":"Oeg92u","promo-header":"Aes-oj","promoHeader":"Aes-oj","uui-critical":"d6z7aT","uuiCritical":"d6z7aT","uui-info":"L6BN4Y","uuiInfo":"L6BN4Y","uui-success":"FHGHjv","uuiSuccess":"FHGHjv","uui-warning":"_27EX4t","uuiWarning":"_27EX4t","uui-highlight":"iFimV9","uuiHighlight":"iFimV9","uui-typography-size-12":"u83Y0o","uuiTypographySize12":"u83Y0o","uui-typography-size-14":"QtpgQO","uuiTypographySize14":"QtpgQO","uui-typography-size-16":"_5b1D25","uuiTypographySize16":"_5b1D25","root":"U-1YV9","mode-cell":"_3QC-iZ","modeCell":"_3QC-iZ"};
|
|
709
710
|
|
|
710
711
|
function applyCheckboxMods(mods) {
|
|
711
712
|
return [
|
|
712
|
-
css$
|
|
713
|
+
css$1r.root,
|
|
713
714
|
`uui-size-${mods.size || settings.sizes.defaults.checkbox}`,
|
|
714
|
-
css$
|
|
715
|
+
css$1r['mode-' + (mods.mode || 'form')],
|
|
715
716
|
'uui-color-primary',
|
|
716
717
|
];
|
|
717
718
|
}
|
|
718
719
|
const applyUUICheckboxProps = (props) => {
|
|
719
|
-
const defaultIcon = ForwardRef$
|
|
720
|
-
const defaultIndeterminateIcon = ForwardRef$
|
|
720
|
+
const defaultIcon = ForwardRef$P;
|
|
721
|
+
const defaultIndeterminateIcon = ForwardRef$C;
|
|
721
722
|
return {
|
|
722
723
|
icon: props.icon ? props.icon : defaultIcon,
|
|
723
724
|
indeterminateIcon: props.indeterminateIcon ? props.indeterminateIcon : defaultIndeterminateIcon,
|
|
@@ -725,38 +726,38 @@ const applyUUICheckboxProps = (props) => {
|
|
|
725
726
|
};
|
|
726
727
|
const Checkbox = /* @__PURE__ */withMods(uuiComponents.Checkbox, applyCheckboxMods, applyUUICheckboxProps);
|
|
727
728
|
|
|
728
|
-
var _path$
|
|
729
|
-
function _extends$
|
|
729
|
+
var _path$B;
|
|
730
|
+
function _extends$B() { _extends$B = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$B.apply(this, arguments); }
|
|
730
731
|
var SvgRadioDotFill = function SvgRadioDotFill(props, ref) {
|
|
731
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
732
|
+
return /*#__PURE__*/React.createElement("svg", _extends$B({
|
|
732
733
|
xmlns: "http://www.w3.org/2000/svg",
|
|
733
734
|
width: 24,
|
|
734
735
|
height: 24,
|
|
735
736
|
viewBox: "0 0 24 24",
|
|
736
737
|
ref: ref
|
|
737
|
-
}, props), _path$
|
|
738
|
+
}, props), _path$B || (_path$B = /*#__PURE__*/React.createElement("path", {
|
|
738
739
|
d: "M12 19a7 7 0 1 0 0-14 7 7 0 0 0 0 14z"
|
|
739
740
|
})));
|
|
740
741
|
};
|
|
741
|
-
var ForwardRef$
|
|
742
|
+
var ForwardRef$B = /*#__PURE__*/forwardRef(SvgRadioDotFill);
|
|
742
743
|
|
|
743
|
-
var css$
|
|
744
|
+
var css$1q = {"uui-typography":"vmcn1G","uuiTypography":"vmcn1G","hero-header":"avzDTp","heroHeader":"avzDTp","promo-header":"vVPV1L","promoHeader":"vVPV1L","uui-critical":"oFTvwp","uuiCritical":"oFTvwp","uui-info":"_79xamv","uuiInfo":"_79xamv","uui-success":"PTKTDQ","uuiSuccess":"PTKTDQ","uui-warning":"aa9RsC","uuiWarning":"aa9RsC","uui-highlight":"cfCFqS","uuiHighlight":"cfCFqS","uui-typography-size-12":"FeP-yo","uuiTypographySize12":"FeP-yo","uui-typography-size-14":"OOskJF","uuiTypographySize14":"OOskJF","uui-typography-size-16":"Hz9BNR","uuiTypographySize16":"Hz9BNR","root":"XSzyGV"};
|
|
744
745
|
|
|
745
746
|
function applyRadioInputMods(mods) {
|
|
746
747
|
return [
|
|
747
|
-
css$
|
|
748
|
+
css$1q.root,
|
|
748
749
|
`uui-size-${mods.size || settings.sizes.defaults.radioInput}`,
|
|
749
750
|
'uui-radio-input-container',
|
|
750
751
|
'uui-color-primary',
|
|
751
752
|
];
|
|
752
753
|
}
|
|
753
|
-
const RadioInput = /* @__PURE__ */withMods(RadioInput$1, applyRadioInputMods, (props) => ({ icon: props.icon ? props.icon : ForwardRef$
|
|
754
|
+
const RadioInput = /* @__PURE__ */withMods(RadioInput$1, applyRadioInputMods, (props) => ({ icon: props.icon ? props.icon : ForwardRef$B }));
|
|
754
755
|
|
|
755
|
-
var css$
|
|
756
|
+
var css$1p = {"root":"_7VxhFL"};
|
|
756
757
|
|
|
757
758
|
function applySwitchMods(mods) {
|
|
758
759
|
return [
|
|
759
|
-
css$
|
|
760
|
+
css$1p.root,
|
|
760
761
|
`uui-size-${mods.size || settings.sizes.defaults.switch}`,
|
|
761
762
|
'uui-color-primary',
|
|
762
763
|
];
|
|
@@ -820,7 +821,7 @@ var EditMode;
|
|
|
820
821
|
EditMode["INLINE"] = "inline";
|
|
821
822
|
})(EditMode || (EditMode = {}));
|
|
822
823
|
|
|
823
|
-
var textInputCss = {"uui-typography":"
|
|
824
|
+
var textInputCss = {"uui-typography":"zDnnZf","uuiTypography":"zDnnZf","hero-header":"_1cIJNw","heroHeader":"_1cIJNw","promo-header":"LKvEuX","promoHeader":"LKvEuX","uui-critical":"CBjUnZ","uuiCritical":"CBjUnZ","uui-info":"HQGUZv","uuiInfo":"HQGUZv","uui-success":"bJ-dEU","uuiSuccess":"bJ-dEU","uui-warning":"tJKLiL","uuiWarning":"tJKLiL","uui-highlight":"_77Ac0n","uuiHighlight":"_77Ac0n","uui-typography-size-12":"FaUZLX","uuiTypographySize12":"FaUZLX","uui-typography-size-14":"B5FC4G","uuiTypographySize14":"B5FC4G","uui-typography-size-16":"kh1bII","uuiTypographySize16":"kh1bII","root":"I5Ynue","mode-form":"imDvWc","modeForm":"imDvWc","mode-inline":"Yb7xb8","modeInline":"Yb7xb8","mode-cell":"_-3t6Uw","modeCell":"_-3t6Uw"};
|
|
824
825
|
|
|
825
826
|
const DEFAULT_MODE$3 = EditMode.FORM;
|
|
826
827
|
function applyTextInputMods(mods) {
|
|
@@ -846,22 +847,22 @@ const SearchInput = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
|
846
847
|
} })));
|
|
847
848
|
});
|
|
848
849
|
|
|
849
|
-
var css$
|
|
850
|
+
var css$1o = {"root":"BjIkf6"};
|
|
850
851
|
|
|
851
|
-
const ControlGroup = /* @__PURE__ */withMods(ControlGroup$1, () => [css$
|
|
852
|
+
const ControlGroup = /* @__PURE__ */withMods(ControlGroup$1, () => [css$1o.root, 'uui-control-group']);
|
|
852
853
|
|
|
853
854
|
function MultiSwitchComponent(props, ref) {
|
|
854
855
|
return (React.createElement(ControlGroup, { ref: ref, rawProps: Object.assign(Object.assign({}, props.rawProps), { role: 'tablist', 'aria-invalid': props.isInvalid, 'aria-required': props.isRequired, 'aria-disabled': props.isDisabled, 'aria-readonly': props.isReadonly }) }, props.items.map((item, index) => (React.createElement(Button, Object.assign({}, props, item, { isDisabled: props.isDisabled, key: index + '-' + item.id, onClick: () => props.onValueChange(item.id), fill: props.value === item.id ? 'solid' : 'outline', color: props.color, size: props.size, rawProps: { 'aria-current': props.value === item.id, role: 'tab' } }))))));
|
|
855
856
|
}
|
|
856
857
|
const MultiSwitch = /* @__PURE__ */React.forwardRef(MultiSwitchComponent);
|
|
857
858
|
|
|
858
|
-
var css$
|
|
859
|
+
var css$1n = {"uui-typography":"_07QUA-","uuiTypography":"_07QUA-","hero-header":"_4nCj2x","heroHeader":"_4nCj2x","promo-header":"eIwlmQ","promoHeader":"eIwlmQ","uui-critical":"rC7DcV","uuiCritical":"rC7DcV","uui-info":"zYZCcQ","uuiInfo":"zYZCcQ","uui-success":"_6Qvtgo","uuiSuccess":"_6Qvtgo","uui-warning":"g9OlnU","uuiWarning":"g9OlnU","uui-highlight":"WXXFsD","uuiHighlight":"WXXFsD","uui-typography-size-12":"B4aknu","uuiTypographySize12":"B4aknu","uui-typography-size-14":"f15cx-","uuiTypographySize14":"f15cx-","uui-typography-size-16":"m15NFk","uuiTypographySize16":"m15NFk","root":"Wx5Bqs","mode-form":"D6dno8","modeForm":"D6dno8","mode-cell":"YgAODU","modeCell":"YgAODU"};
|
|
859
860
|
|
|
860
861
|
const DEFAULT_MODE$2 = EditMode.FORM;
|
|
861
862
|
function applyNumericInputMods(mods) {
|
|
862
863
|
return [
|
|
863
864
|
textInputCss.root,
|
|
864
|
-
css$
|
|
865
|
+
css$1n.root,
|
|
865
866
|
`uui-size-${mods.size || settings.sizes.defaults.numericInput}`,
|
|
866
867
|
textInputCss['mode-' + (mods.mode || DEFAULT_MODE$2)],
|
|
867
868
|
];
|
|
@@ -876,15 +877,15 @@ const NumericInput = /* @__PURE__ */withMods(NumericInput$1, applyNumericInputMo
|
|
|
876
877
|
};
|
|
877
878
|
});
|
|
878
879
|
|
|
879
|
-
var css$
|
|
880
|
+
var css$1m = {"uui-typography":"Vd69Cv","uuiTypography":"Vd69Cv","hero-header":"Eonr3J","heroHeader":"Eonr3J","promo-header":"uiJDJN","promoHeader":"uiJDJN","uui-critical":"H8C7Vn","uuiCritical":"H8C7Vn","uui-info":"NFgVzG","uuiInfo":"NFgVzG","uui-success":"E7tiPT","uuiSuccess":"E7tiPT","uui-warning":"qZLwLB","uuiWarning":"qZLwLB","uui-highlight":"_7gcHhs","uuiHighlight":"_7gcHhs","uui-typography-size-12":"-AnmE-","uuiTypographySize12":"-AnmE-","uui-typography-size-14":"yat1zH","uuiTypographySize14":"yat1zH","uui-typography-size-16":"tyJdsC","uuiTypographySize16":"tyJdsC","root":"OfpLWo","mode-form":"_8YiUGA","modeForm":"_8YiUGA","mode-cell":"VT1TO-","modeCell":"VT1TO-","mode-inline":"q6yMr3","modeInline":"q6yMr3"};
|
|
880
881
|
|
|
881
882
|
const DEFAULT_MODE$1 = EditMode.FORM;
|
|
882
883
|
function applyTextAreaMods(mods) {
|
|
883
884
|
return [
|
|
884
|
-
css$
|
|
885
|
+
css$1m.root,
|
|
885
886
|
'uui-textarea',
|
|
886
887
|
'uui-size-' + (mods.size || settings.sizes.defaults.textArea),
|
|
887
|
-
css$
|
|
888
|
+
css$1m['mode-' + (mods.mode || DEFAULT_MODE$1)],
|
|
888
889
|
];
|
|
889
890
|
}
|
|
890
891
|
const TextArea = /* @__PURE__ */withMods(TextArea$1, applyTextAreaMods, (props) => {
|
|
@@ -917,95 +918,95 @@ function TREE_SHAKEABLE_INIT$1() {
|
|
|
917
918
|
};
|
|
918
919
|
}
|
|
919
920
|
|
|
920
|
-
var _path$
|
|
921
|
-
function _extends$
|
|
921
|
+
var _path$A;
|
|
922
|
+
function _extends$A() { _extends$A = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$A.apply(this, arguments); }
|
|
922
923
|
var SvgNotificationCheckFill = function SvgNotificationCheckFill(props, ref) {
|
|
923
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
924
|
+
return /*#__PURE__*/React.createElement("svg", _extends$A({
|
|
924
925
|
xmlns: "http://www.w3.org/2000/svg",
|
|
925
926
|
width: 24,
|
|
926
927
|
height: 24,
|
|
927
928
|
viewBox: "0 0 24 24",
|
|
928
929
|
ref: ref
|
|
929
|
-
}, props), _path$
|
|
930
|
+
}, props), _path$A || (_path$A = /*#__PURE__*/React.createElement("path", {
|
|
930
931
|
d: "m10.6 16.6 7.05-7.05-1.4-1.4-5.65 5.65-2.85-2.85-1.4 1.4 4.25 4.25zM12 22a9.733 9.733 0 0 1-3.9-.788 10.092 10.092 0 0 1-3.175-2.137c-.9-.9-1.612-1.958-2.137-3.175A9.733 9.733 0 0 1 2 12a9.74 9.74 0 0 1 .788-3.9 10.092 10.092 0 0 1 2.137-3.175c.9-.9 1.958-1.613 3.175-2.138A9.743 9.743 0 0 1 12 2a9.74 9.74 0 0 1 3.9.787 10.105 10.105 0 0 1 3.175 2.138c.9.9 1.612 1.958 2.137 3.175A9.733 9.733 0 0 1 22 12a9.733 9.733 0 0 1-.788 3.9 10.092 10.092 0 0 1-2.137 3.175c-.9.9-1.958 1.612-3.175 2.137A9.733 9.733 0 0 1 12 22z"
|
|
931
932
|
})));
|
|
932
933
|
};
|
|
933
|
-
var ForwardRef$
|
|
934
|
+
var ForwardRef$A = /*#__PURE__*/forwardRef(SvgNotificationCheckFill);
|
|
934
935
|
|
|
935
|
-
var _path$
|
|
936
|
-
function _extends$
|
|
936
|
+
var _path$z;
|
|
937
|
+
function _extends$z() { _extends$z = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$z.apply(this, arguments); }
|
|
937
938
|
var SvgNotificationWarningFill = function SvgNotificationWarningFill(props, ref) {
|
|
938
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
939
|
+
return /*#__PURE__*/React.createElement("svg", _extends$z({
|
|
939
940
|
xmlns: "http://www.w3.org/2000/svg",
|
|
940
941
|
width: 24,
|
|
941
942
|
height: 24,
|
|
942
943
|
viewBox: "0 0 24 24",
|
|
943
944
|
ref: ref
|
|
944
|
-
}, props), _path$
|
|
945
|
+
}, props), _path$z || (_path$z = /*#__PURE__*/React.createElement("path", {
|
|
945
946
|
d: "M1 21 12 2l11 19H1zm11-3a.968.968 0 0 0 .713-.288A.967.967 0 0 0 13 17a.967.967 0 0 0-.287-.712A.968.968 0 0 0 12 16a.965.965 0 0 0-.712.288A.965.965 0 0 0 11 17c0 .283.096.52.288.712A.965.965 0 0 0 12 18zm-1-3h2v-5h-2v5z"
|
|
946
947
|
})));
|
|
947
948
|
};
|
|
948
|
-
var ForwardRef$
|
|
949
|
+
var ForwardRef$z = /*#__PURE__*/forwardRef(SvgNotificationWarningFill);
|
|
949
950
|
|
|
950
|
-
var _path$
|
|
951
|
-
function _extends$
|
|
951
|
+
var _path$y;
|
|
952
|
+
function _extends$y() { _extends$y = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$y.apply(this, arguments); }
|
|
952
953
|
var SvgNotificationErrorFill = function SvgNotificationErrorFill(props, ref) {
|
|
953
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
954
|
+
return /*#__PURE__*/React.createElement("svg", _extends$y({
|
|
954
955
|
xmlns: "http://www.w3.org/2000/svg",
|
|
955
956
|
width: 24,
|
|
956
957
|
height: 24,
|
|
957
958
|
viewBox: "0 0 24 24",
|
|
958
959
|
ref: ref
|
|
959
|
-
}, props), _path$
|
|
960
|
+
}, props), _path$y || (_path$y = /*#__PURE__*/React.createElement("path", {
|
|
960
961
|
d: "M12 17a.968.968 0 0 0 .713-.288A.967.967 0 0 0 13 16a.97.97 0 0 0-.287-.713A.97.97 0 0 0 12 15a.967.967 0 0 0-.712.287A.968.968 0 0 0 11 16c0 .283.096.52.288.712A.965.965 0 0 0 12 17zm-1-4h2V7h-2v6zm1 9a9.733 9.733 0 0 1-3.9-.788 10.092 10.092 0 0 1-3.175-2.137c-.9-.9-1.612-1.958-2.137-3.175A9.733 9.733 0 0 1 2 12a9.74 9.74 0 0 1 .788-3.9 10.092 10.092 0 0 1 2.137-3.175c.9-.9 1.958-1.613 3.175-2.138A9.743 9.743 0 0 1 12 2a9.74 9.74 0 0 1 3.9.787 10.105 10.105 0 0 1 3.175 2.138c.9.9 1.612 1.958 2.137 3.175A9.733 9.733 0 0 1 22 12a9.733 9.733 0 0 1-.788 3.9 10.092 10.092 0 0 1-2.137 3.175c-.9.9-1.958 1.612-3.175 2.137A9.733 9.733 0 0 1 12 22z"
|
|
961
962
|
})));
|
|
962
963
|
};
|
|
963
|
-
var ForwardRef$
|
|
964
|
+
var ForwardRef$y = /*#__PURE__*/forwardRef(SvgNotificationErrorFill);
|
|
964
965
|
|
|
965
|
-
var _path$
|
|
966
|
-
function _extends$
|
|
966
|
+
var _path$x;
|
|
967
|
+
function _extends$x() { _extends$x = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$x.apply(this, arguments); }
|
|
967
968
|
var SvgNotificationInfoFill = function SvgNotificationInfoFill(props, ref) {
|
|
968
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
969
|
+
return /*#__PURE__*/React.createElement("svg", _extends$x({
|
|
969
970
|
xmlns: "http://www.w3.org/2000/svg",
|
|
970
971
|
width: 24,
|
|
971
972
|
height: 24,
|
|
972
973
|
viewBox: "0 0 24 24",
|
|
973
974
|
ref: ref
|
|
974
|
-
}, props), _path$
|
|
975
|
+
}, props), _path$x || (_path$x = /*#__PURE__*/React.createElement("path", {
|
|
975
976
|
d: "M11 17h2v-6h-2v6zm1-8a.968.968 0 0 0 .713-.288A.967.967 0 0 0 13 8a.97.97 0 0 0-.287-.713A.97.97 0 0 0 12 7a.967.967 0 0 0-.712.287A.968.968 0 0 0 11 8c0 .283.096.52.288.712A.965.965 0 0 0 12 9zm0 13a9.733 9.733 0 0 1-3.9-.788 10.092 10.092 0 0 1-3.175-2.137c-.9-.9-1.612-1.958-2.137-3.175A9.733 9.733 0 0 1 2 12a9.74 9.74 0 0 1 .788-3.9 10.092 10.092 0 0 1 2.137-3.175c.9-.9 1.958-1.613 3.175-2.138A9.743 9.743 0 0 1 12 2a9.74 9.74 0 0 1 3.9.787 10.105 10.105 0 0 1 3.175 2.138c.9.9 1.612 1.958 2.137 3.175A9.733 9.733 0 0 1 22 12a9.733 9.733 0 0 1-.788 3.9 10.092 10.092 0 0 1-2.137 3.175c-.9.9-1.958 1.612-3.175 2.137A9.733 9.733 0 0 1 12 22z"
|
|
976
977
|
})));
|
|
977
978
|
};
|
|
978
|
-
var ForwardRef$
|
|
979
|
+
var ForwardRef$x = /*#__PURE__*/forwardRef(SvgNotificationInfoFill);
|
|
979
980
|
|
|
980
|
-
var css$
|
|
981
|
+
var css$1l = {"uui-typography":"jpIPF-","uuiTypography":"jpIPF-","hero-header":"FmaBgn","heroHeader":"FmaBgn","promo-header":"MG2hmQ","promoHeader":"MG2hmQ","uui-critical":"l4B2tG","uuiCritical":"l4B2tG","uui-info":"_1pTkjs","uuiInfo":"_1pTkjs","uui-success":"yDEZEB","uuiSuccess":"yDEZEB","uui-warning":"_8yZqWS","uuiWarning":"_8yZqWS","uui-highlight":"_5bju26","uuiHighlight":"_5bju26","uui-typography-size-12":"eRkyG1","uuiTypographySize12":"eRkyG1","uui-typography-size-14":"NmFQzV","uuiTypographySize14":"NmFQzV","uui-typography-size-16":"PBe6G-","uuiTypographySize16":"PBe6G-","root":"YB-b4Q","icon-wrapper":"Gxttm-","iconWrapper":"Gxttm-","alert-wrapper":"_8I4FeV","alertWrapper":"_8I4FeV","size-48":"_0jdVu1","size48":"_0jdVu1","size-36":"HLpITV","size36":"HLpITV","action-wrapper":"_3lp57F","actionWrapper":"_3lp57F","action-icon":"ZPPCm-","actionIcon":"ZPPCm-","action-link":"nx8V27","actionLink":"nx8V27","close-icon":"FI9g85","closeIcon":"FI9g85","main-path":"_8pPcfU","mainPath":"_8pPcfU","content":"K7QjdV"};
|
|
981
982
|
|
|
982
|
-
const Alert = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement("div", Object.assign({ role: "alert", ref: ref, className: cx('uui-alert', css$
|
|
983
|
-
React.createElement("div", { className: css$
|
|
984
|
-
props.icon && (React.createElement("div", { className: css$
|
|
985
|
-
React.createElement(IconContainer, { icon: props.icon, cx: css$
|
|
986
|
-
React.createElement("div", { className: css$
|
|
983
|
+
const Alert = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement("div", Object.assign({ role: "alert", ref: ref, className: cx('uui-alert', css$1l.root, css$1l.alertWrapper, props.color && `uui-color-${props.color}`, props.cx, (props.size === '36' ? css$1l.size36 : css$1l.size48)) }, props.rawProps),
|
|
984
|
+
React.createElement("div", { className: css$1l.mainPath },
|
|
985
|
+
props.icon && (React.createElement("div", { className: css$1l.iconWrapper },
|
|
986
|
+
React.createElement(IconContainer, { icon: props.icon, cx: css$1l.actionIcon }))),
|
|
987
|
+
React.createElement("div", { className: css$1l.content },
|
|
987
988
|
props.children,
|
|
988
|
-
props.actions && (React.createElement("div", { className: css$
|
|
989
|
-
props.onClose && React.createElement(IconButton, { icon: ForwardRef$
|
|
990
|
-
const WarningAlert = /* @__PURE__ */React.forwardRef((props, ref) => React.createElement(Alert, Object.assign({ icon: ForwardRef$
|
|
991
|
-
const SuccessAlert = /* @__PURE__ */React.forwardRef((props, ref) => React.createElement(Alert, Object.assign({ icon: ForwardRef$
|
|
992
|
-
const HintAlert = /* @__PURE__ */React.forwardRef((props, ref) => React.createElement(Alert, Object.assign({ icon: ForwardRef$
|
|
993
|
-
const ErrorAlert = /* @__PURE__ */React.forwardRef((props, ref) => React.createElement(Alert, Object.assign({ icon: ForwardRef$
|
|
989
|
+
props.actions && (React.createElement("div", { className: css$1l.actionWrapper }, props.actions.map((action) => (React.createElement(LinkButton, { caption: action.name, onClick: action.action, key: action.name, cx: css$1l.actionLink, size: (props === null || props === void 0 ? void 0 : props.size) === '36' ? '24' : '30' })))))),
|
|
990
|
+
props.onClose && React.createElement(IconButton, { icon: ForwardRef$R, color: "neutral", onClick: props.onClose, cx: css$1l.closeIcon })))));
|
|
991
|
+
const WarningAlert = /* @__PURE__ */React.forwardRef((props, ref) => React.createElement(Alert, Object.assign({ icon: ForwardRef$z, color: "warning", ref: ref }, props)));
|
|
992
|
+
const SuccessAlert = /* @__PURE__ */React.forwardRef((props, ref) => React.createElement(Alert, Object.assign({ icon: ForwardRef$A, color: "success", ref: ref }, props)));
|
|
993
|
+
const HintAlert = /* @__PURE__ */React.forwardRef((props, ref) => React.createElement(Alert, Object.assign({ icon: ForwardRef$x, color: "info", ref: ref }, props)));
|
|
994
|
+
const ErrorAlert = /* @__PURE__ */React.forwardRef((props, ref) => React.createElement(Alert, Object.assign({ icon: ForwardRef$y, color: "error", ref: ref }, props)));
|
|
994
995
|
|
|
995
996
|
const Dropdown = /* @__PURE__ */withMods(Dropdown$1);
|
|
996
997
|
|
|
997
|
-
var css$
|
|
998
|
+
var css$1k = {"root":"_6D2bo6"};
|
|
998
999
|
|
|
999
1000
|
function applyDropdownContainerMods(mods) {
|
|
1000
1001
|
return [
|
|
1001
|
-
css$
|
|
1002
|
+
css$1k.root,
|
|
1002
1003
|
mods.vPadding && `vPadding-${mods.vPadding}`,
|
|
1003
1004
|
mods.padding && `padding-${mods.padding}`,
|
|
1004
1005
|
];
|
|
1005
1006
|
}
|
|
1006
1007
|
const DropdownContainer = /* @__PURE__ */withMods(uuiComponents.DropdownContainer, applyDropdownContainerMods);
|
|
1007
1008
|
|
|
1008
|
-
var css$
|
|
1009
|
+
var css$1j = {"uui-typography":"IYNJwq","uuiTypography":"IYNJwq","hero-header":"bVkGlx","heroHeader":"bVkGlx","promo-header":"a3tjA1","promoHeader":"a3tjA1","uui-critical":"NtHO4A","uuiCritical":"NtHO4A","uui-info":"_1YtnDv","uuiInfo":"_1YtnDv","uui-success":"WJ9409","uuiSuccess":"WJ9409","uui-warning":"PHz64d","uuiWarning":"PHz64d","uui-highlight":"_9a31Ya","uuiHighlight":"_9a31Ya","uui-typography-size-12":"_0zDWfT","uuiTypographySize12":"_0zDWfT","uui-typography-size-14":"IEiK88","uuiTypographySize14":"IEiK88","uui-typography-size-16":"a8bR-a","uuiTypographySize16":"a8bR-a","submenu-root-item-rtl":"toYNAR","submenuRootItemRtl":"toYNAR","icon-after":"-axF-B","iconAfter":"-axF-B","submenu-root-item":"-iHo-x","submenuRootItem":"-iHo-x","icon-check":"_56GJQd","iconCheck":"_56GJQd","splitter-root":"Un9aye","splitterRoot":"Un9aye","splitter":"_18WUL5","header-root":"fLapyK","headerRoot":"fLapyK","item-root":"UV0NzG","itemRoot":"UV0NzG","icon":"v8QuZY","link":"qCcVJl","indent":"mLl3Py","selected-mark":"mingzZ","selectedMark":"mingzZ"};
|
|
1009
1010
|
|
|
1010
1011
|
var IDropdownControlKeys;
|
|
1011
1012
|
(function (IDropdownControlKeys) {
|
|
@@ -1066,17 +1067,17 @@ const DropdownMenuButton = /* @__PURE__ */React__default.forwardRef((props, ref)
|
|
|
1066
1067
|
const getMenuButtonContent = () => {
|
|
1067
1068
|
const isIconBefore = Boolean(icon && iconPosition !== 'right');
|
|
1068
1069
|
const isIconAfter = Boolean(icon && iconPosition === 'right');
|
|
1069
|
-
const iconElement = (React__default.createElement(IconButton, { icon: icon, color: isActive ? 'primary' : 'neutral', onClick: onIconClick, isDisabled: isDisabled, cx: cx$1(css$
|
|
1070
|
+
const iconElement = (React__default.createElement(IconButton, { icon: icon, color: isActive ? 'primary' : 'neutral', onClick: onIconClick, isDisabled: isDisabled, cx: cx$1(css$1j.icon, iconPosition === 'right' ? css$1j.iconAfter : css$1j.iconBefore) }));
|
|
1070
1071
|
return (React__default.createElement(React__default.Fragment, null,
|
|
1071
1072
|
isIconBefore && iconElement,
|
|
1072
|
-
React__default.createElement(Text$1, { cx: props.indent && css$
|
|
1073
|
+
React__default.createElement(Text$1, { cx: props.indent && css$1j.indent }, caption),
|
|
1073
1074
|
isIconAfter && (React__default.createElement(React__default.Fragment, null,
|
|
1074
1075
|
React__default.createElement(FlexSpacer, null),
|
|
1075
1076
|
iconElement))));
|
|
1076
1077
|
};
|
|
1077
1078
|
const isAnchor = Boolean(link || href);
|
|
1078
|
-
const itemClassNames = cx$1(props.cx, css$
|
|
1079
|
-
return isAnchor ? (React__default.createElement(Anchor$1, { cx: cx$1(css$
|
|
1079
|
+
const itemClassNames = cx$1(props.cx, css$1j.itemRoot, isDisabled && uuiMod.disabled, isActive && uuiMod.active, isOpen && uuiMod.opened);
|
|
1080
|
+
return isAnchor ? (React__default.createElement(Anchor$1, { cx: cx$1(css$1j.link, itemClassNames), link: link, href: href, rawProps: { role: 'menuitem', tabIndex: isDisabled ? -1 : 0 }, onClick: handleClick, isLinkActive: isActive, isDisabled: isDisabled, target: target }, getMenuButtonContent())) : (React__default.createElement(FlexRow$1, { rawProps: {
|
|
1080
1081
|
tabIndex: isDisabled ? -1 : 0,
|
|
1081
1082
|
role: 'menuitem',
|
|
1082
1083
|
onKeyDown: isDisabled ? null : handleOpenDropdown,
|
|
@@ -1084,15 +1085,15 @@ const DropdownMenuButton = /* @__PURE__ */React__default.forwardRef((props, ref)
|
|
|
1084
1085
|
getMenuButtonContent(),
|
|
1085
1086
|
isSelected && (React__default.createElement(React__default.Fragment, null,
|
|
1086
1087
|
React__default.createElement(FlexSpacer, null),
|
|
1087
|
-
React__default.createElement(IconContainer, { icon: systemIcons.accept, cx: css$
|
|
1088
|
+
React__default.createElement(IconContainer, { icon: systemIcons.accept, cx: css$1j.selectedMark })))));
|
|
1088
1089
|
});
|
|
1089
1090
|
function DropdownMenuSplitter(props) {
|
|
1090
|
-
return (React__default.createElement("div", { className: cx$1(props.cx, css$
|
|
1091
|
-
React__default.createElement("hr", { className: css$
|
|
1091
|
+
return (React__default.createElement("div", { className: cx$1(props.cx, css$1j.splitterRoot) },
|
|
1092
|
+
React__default.createElement("hr", { className: css$1j.splitter })));
|
|
1092
1093
|
}
|
|
1093
1094
|
function DropdownMenuHeader(props) {
|
|
1094
|
-
return (React__default.createElement("div", { className: cx$1('uui-dropdown-menu-header', props.cx, css$
|
|
1095
|
-
React__default.createElement("span", { className: css$
|
|
1095
|
+
return (React__default.createElement("div", { className: cx$1('uui-dropdown-menu-header', props.cx, css$1j.headerRoot) },
|
|
1096
|
+
React__default.createElement("span", { className: css$1j.header }, props.caption)));
|
|
1096
1097
|
}
|
|
1097
1098
|
function DropdownSubMenu(props) {
|
|
1098
1099
|
const subMenuModifiers = [
|
|
@@ -1114,7 +1115,7 @@ function DropdownSubMenu(props) {
|
|
|
1114
1115
|
const isRtl = (window === null || window === void 0 ? void 0 : window.document.dir) === 'rtl';
|
|
1115
1116
|
return (React__default.createElement(Dropdown$1, { openOnHover: props.openOnHover || true, closeOnMouseLeave: "boundary", openDelay: 400, closeDelay: 400, placement: isRtl ? 'left-start' : 'right-start', modifiers: subMenuModifiers, renderBody: (dropdownProps) => !props.isDisabled && (React__default.createElement(DropdownMenuBody, Object.assign({ closeOnKey: IDropdownControlKeys.LEFT_ARROW }, props, dropdownProps))), renderTarget: (_a) => {
|
|
1116
1117
|
var { toggleDropdownOpening } = _a, targetProps = __rest(_a, ["toggleDropdownOpening"]);
|
|
1117
|
-
return (React__default.createElement(DropdownMenuButton, Object.assign({ cx: cx$1(isRtl ? css$
|
|
1118
|
+
return (React__default.createElement(DropdownMenuButton, Object.assign({ cx: cx$1(isRtl ? css$1j.submenuRootItemRtl : css$1j.submenuRootItem), icon: systemIcons.foldingArrow, iconPosition: "right", isDropdown: true, toggleDropdownOpening: toggleDropdownOpening }, props, targetProps)));
|
|
1118
1119
|
} }));
|
|
1119
1120
|
}
|
|
1120
1121
|
function DropdownMenuSwitchButton(props) {
|
|
@@ -1131,32 +1132,29 @@ function DropdownMenuSwitchButton(props) {
|
|
|
1131
1132
|
onHandleValueChange(!isSelected);
|
|
1132
1133
|
}
|
|
1133
1134
|
};
|
|
1134
|
-
return (React__default.createElement(FlexRow$1, { cx: cx$1(props.cx, css$
|
|
1135
|
-
icon && React__default.createElement(IconContainer, { icon: icon, cx: css$
|
|
1135
|
+
return (React__default.createElement(FlexRow$1, { cx: cx$1(props.cx, css$1j.itemRoot, isDisabled && uuiMod.disabled), onClick: () => onHandleValueChange(!isSelected), rawProps: { role: 'menuitem', onKeyDown: handleKeySelect, tabIndex: isDisabled ? -1 : 0 } },
|
|
1136
|
+
icon && React__default.createElement(IconContainer, { icon: icon, cx: css$1j.iconBefore }),
|
|
1136
1137
|
React__default.createElement(Text$1, null, caption),
|
|
1137
1138
|
React__default.createElement(FlexSpacer, null),
|
|
1138
1139
|
React__default.createElement(Switch, { value: isSelected, tabIndex: -1, onValueChange: onHandleValueChange })));
|
|
1139
1140
|
}
|
|
1140
1141
|
|
|
1141
|
-
var css$
|
|
1142
|
+
var css$1i = {"uui-typography":"x6CbcU","uuiTypography":"x6CbcU","hero-header":"JLvEOP","heroHeader":"JLvEOP","promo-header":"JTQzKx","promoHeader":"JTQzKx","uui-critical":"_5Ybnsq","uuiCritical":"_5Ybnsq","uui-info":"WWurVA","uuiInfo":"WWurVA","uui-success":"l9QRyS","uuiSuccess":"l9QRyS","uui-warning":"Mc-yo3","uuiWarning":"Mc-yo3","uui-highlight":"oPbab0","uuiHighlight":"oPbab0","uui-typography-size-12":"AFI8JP","uuiTypographySize12":"AFI8JP","uui-typography-size-14":"fdIox-","uuiTypographySize14":"fdIox-","uui-typography-size-16":"Q6YKW9","uuiTypographySize16":"Q6YKW9","root":"CJl-In","mode-block":"oLZagb","modeBlock":"oLZagb","mode-inline":"huUMiB","modeInline":"huUMiB","padding-0":"-rz93r","padding0":"-rz93r","padding-6":"KwK5cj","padding6":"KwK5cj","padding-12":"tulnC5","padding12":"tulnC5","padding-18":"_3eGtcw","padding18":"_3eGtcw"};
|
|
1142
1143
|
|
|
1143
|
-
const getMode = (mode) => {
|
|
1144
|
-
return mode || 'block';
|
|
1145
|
-
};
|
|
1146
1144
|
function applyAccordionMods(mods) {
|
|
1147
1145
|
return [
|
|
1148
|
-
css$
|
|
1149
|
-
css$
|
|
1150
|
-
mods.padding && css$
|
|
1146
|
+
css$1i.root,
|
|
1147
|
+
css$1i[`mode-${mods.mode || 'block'}`],
|
|
1148
|
+
mods.padding && css$1i['padding-' + mods.padding],
|
|
1151
1149
|
];
|
|
1152
1150
|
}
|
|
1153
1151
|
const Accordion = /* @__PURE__ */withMods(uuiComponents.Accordion, applyAccordionMods, (mods) => ({
|
|
1154
1152
|
dropdownIcon: mods.dropdownIcon !== null && systemIcons.foldingArrow,
|
|
1155
1153
|
}));
|
|
1156
1154
|
|
|
1157
|
-
var css$
|
|
1155
|
+
var css$1h = {"uui-typography":"oHfyMC","uuiTypography":"oHfyMC","hero-header":"HqnB5k","heroHeader":"HqnB5k","promo-header":"EsIgU9","promoHeader":"EsIgU9","uui-critical":"UjOHeb","uuiCritical":"UjOHeb","uui-info":"TbltJK","uuiInfo":"TbltJK","uui-success":"dbia6-","uuiSuccess":"dbia6-","uui-warning":"cFSXUb","uuiWarning":"cFSXUb","uui-highlight":"m8E7zA","uuiHighlight":"m8E7zA","uui-typography-size-12":"W8wlwt","uuiTypographySize12":"W8wlwt","uui-typography-size-14":"_9eodOg","uuiTypographySize14":"_9eodOg","uui-typography-size-16":"n3kdlb","uuiTypographySize16":"n3kdlb","root":"Wki18O","border-top":"hjjUlx","borderTop":"hjjUlx","border-bottom":"SFfln5","borderBottom":"SFfln5","top-shadow":"Veyx7x","topShadow":"Veyx7x","padding-6":"YXQndc","padding6":"YXQndc","padding-12":"b-bgAB","padding12":"b-bgAB","padding-18":"_6oo4ZD","padding18":"_6oo4ZD","padding-24":"URnri9","padding24":"URnri9","margin-24":"GDy6D6","margin24":"GDy6D6","margin-12":"PZLxNu","margin12":"PZLxNu","vPadding-12":"oesCt-","vPadding12":"oesCt-","vPadding-18":"A5VH9M","vPadding18":"A5VH9M","vPadding-24":"w8bcfi","vPadding24":"w8bcfi","vPadding-36":"yulwz3","vPadding36":"yulwz3","vPadding-48":"emNUD4","vPadding48":"emNUD4","spacing-6":"_37Z7U0","spacing6":"_37Z7U0","spacing-12":"_7uwos8","spacing12":"_7uwos8","spacing-18":"r5x4tF","spacing18":"r5x4tF","uui-surface-main":"oUxZTj","uuiSurfaceMain":"oUxZTj"};
|
|
1158
1156
|
|
|
1159
|
-
const FlexCell = /* @__PURE__ */withMods(FlexCell$1, () => [css$
|
|
1157
|
+
const FlexCell = /* @__PURE__ */withMods(FlexCell$1, () => [css$1h.flexCell]);
|
|
1160
1158
|
|
|
1161
1159
|
const FlexRow = /* @__PURE__ */withMods(FlexRow$1, (props) => {
|
|
1162
1160
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -1165,54 +1163,54 @@ const FlexRow = /* @__PURE__ */withMods(FlexRow$1, (props) => {
|
|
|
1165
1163
|
}
|
|
1166
1164
|
}
|
|
1167
1165
|
return [
|
|
1168
|
-
css$
|
|
1166
|
+
css$1h.root,
|
|
1169
1167
|
props.size !== null && 'uui-size-' + (props.size || '36'),
|
|
1170
|
-
props.padding && css$
|
|
1171
|
-
props.vPadding && css$
|
|
1172
|
-
props.margin && css$
|
|
1173
|
-
props.topShadow && css$
|
|
1174
|
-
props.borderBottom && css$
|
|
1175
|
-
props.borderTop && css$
|
|
1176
|
-
props.spacing && css$
|
|
1177
|
-
props.background && css$
|
|
1168
|
+
props.padding && css$1h['padding-' + props.padding],
|
|
1169
|
+
props.vPadding && css$1h['vPadding-' + props.vPadding],
|
|
1170
|
+
props.margin && css$1h['margin-' + props.margin],
|
|
1171
|
+
props.topShadow && css$1h.topShadow,
|
|
1172
|
+
props.borderBottom && css$1h.borderBottom,
|
|
1173
|
+
props.borderTop && css$1h.borderTop,
|
|
1174
|
+
props.spacing && css$1h['spacing-' + props.spacing],
|
|
1175
|
+
props.background && css$1h[`uui-${props.background}`],
|
|
1178
1176
|
];
|
|
1179
1177
|
});
|
|
1180
1178
|
|
|
1181
|
-
var css$
|
|
1179
|
+
var css$1g = {"root":"_8FmHb6","margin-24":"qAIvJR","margin24":"qAIvJR","padding-12":"_5-WhZw","padding12":"_5-WhZw","padding-24":"TN7x8L","padding24":"TN7x8L","shadow":"Hq0j4J","uui-surface-main":"HmbF37","uuiSurfaceMain":"HmbF37"};
|
|
1182
1180
|
|
|
1183
1181
|
const Panel = /* @__PURE__ */withMods(VPanel, (props) => [
|
|
1184
1182
|
'uui-panel',
|
|
1185
|
-
css$
|
|
1186
|
-
props.shadow && css$
|
|
1187
|
-
props.margin && css$
|
|
1188
|
-
props.background && css$
|
|
1183
|
+
css$1g.root,
|
|
1184
|
+
props.shadow && css$1g.shadow,
|
|
1185
|
+
props.margin && css$1g['margin-' + props.margin],
|
|
1186
|
+
props.background && css$1g[`uui-${props.background}`],
|
|
1189
1187
|
]);
|
|
1190
1188
|
|
|
1191
|
-
var css$
|
|
1189
|
+
var css$1f = {"root":"ELavfQ"};
|
|
1192
1190
|
|
|
1193
1191
|
function applyTooltipMods(mods) {
|
|
1194
1192
|
return [
|
|
1195
|
-
css$
|
|
1193
|
+
css$1f.root,
|
|
1196
1194
|
`uui-color-${mods.color || 'inverted'}`,
|
|
1197
1195
|
];
|
|
1198
1196
|
}
|
|
1199
1197
|
const Tooltip = /* @__PURE__ */withMods(uuiComponents.Tooltip, applyTooltipMods);
|
|
1200
1198
|
|
|
1201
|
-
var css$
|
|
1199
|
+
var css$1e = {"uui-typography":"TnXYPE","uuiTypography":"TnXYPE","hero-header":"b-F4cn","heroHeader":"b-F4cn","promo-header":"vSg2rL","promoHeader":"vSg2rL","uui-critical":"-VxxmG","uuiCritical":"-VxxmG","uui-info":"jia2UF","uuiInfo":"jia2UF","uui-success":"_0ktCeE","uuiSuccess":"_0ktCeE","uui-warning":"WuRMx2","uuiWarning":"WuRMx2","uui-highlight":"jiMhkg","uuiHighlight":"jiMhkg","uui-typography-size-12":"_1QhafP","uuiTypographySize12":"_1QhafP","uui-typography-size-14":"wmh5hG","uuiTypographySize14":"wmh5hG","uui-typography-size-16":"LMsx-n","uuiTypographySize16":"LMsx-n","root":"FOVz-i"};
|
|
1202
1200
|
|
|
1203
1201
|
function applyLabeledInputMods(mods) {
|
|
1204
1202
|
return [
|
|
1205
1203
|
'uui-labeled-input',
|
|
1206
|
-
css$
|
|
1204
|
+
css$1e.root,
|
|
1207
1205
|
'uui-size-' + (mods.size || settings.sizes.defaults.labeledInput),
|
|
1208
1206
|
];
|
|
1209
1207
|
}
|
|
1210
1208
|
const LabeledInput = /* @__PURE__ */withMods(uuiComponents.LabeledInput, applyLabeledInputMods, (props) => ({
|
|
1211
1209
|
Tooltip: props.Tooltip || Tooltip,
|
|
1212
|
-
infoIcon: props.infoIcon || (settings.sizes.labeledInput.fillIcon.includes(props.size) ? ForwardRef$
|
|
1210
|
+
infoIcon: props.infoIcon || (settings.sizes.labeledInput.fillIcon.includes(props.size) ? ForwardRef$x : ForwardRef$M),
|
|
1213
1211
|
}));
|
|
1214
1212
|
|
|
1215
|
-
var css$
|
|
1213
|
+
var css$1d = {"root":"hmqj4U"};
|
|
1216
1214
|
|
|
1217
1215
|
function RadioGroup(props) {
|
|
1218
1216
|
const direction = props.direction || 'vertical';
|
|
@@ -1221,34 +1219,34 @@ function RadioGroup(props) {
|
|
|
1221
1219
|
props.onValueChange(newVal);
|
|
1222
1220
|
}
|
|
1223
1221
|
};
|
|
1224
|
-
return (React.createElement("fieldset", Object.assign({ ref: props.forwardedRef, className: cx$1(css$
|
|
1222
|
+
return (React.createElement("fieldset", Object.assign({ ref: props.forwardedRef, className: cx$1(css$1d.root, directionMode[direction], props.cx), onFocus: props.onFocus, onBlur: props.onBlur }, props.rawProps), props.items.map((i) => {
|
|
1225
1223
|
const restItemProps = __rest(i, ["id", "name", "renderName"]);
|
|
1226
1224
|
return (React.createElement(RadioInput, Object.assign({ name: props.name, renderLabel: i.renderName ? i.renderName : () => i.name, value: props.value === i.id, onValueChange: () => handleChange(i.id), isDisabled: props.isDisabled || i.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, isRequired: props.isRequired, key: i.id.toString(), size: props.size || i.size }, restItemProps)));
|
|
1227
1225
|
})));
|
|
1228
1226
|
}
|
|
1229
1227
|
|
|
1230
|
-
var css$
|
|
1228
|
+
var css$1c = {"root":"KM9qJu"};
|
|
1231
1229
|
|
|
1232
1230
|
function applyScrollBarsMods() {
|
|
1233
1231
|
return [
|
|
1234
|
-
css$
|
|
1232
|
+
css$1c.root, 'uui-scroll-bars', 'uui-shadow-top', 'uui-shadow-bottom',
|
|
1235
1233
|
];
|
|
1236
1234
|
}
|
|
1237
1235
|
const ScrollBars = /* @__PURE__ */withMods(ScrollBars$1, applyScrollBarsMods);
|
|
1238
1236
|
|
|
1239
|
-
var css$
|
|
1237
|
+
var css$1b = {"scroll-container":"ARCi7J","scrollContainer":"ARCi7J","list-container":"z9sHZe","listContainer":"z9sHZe"};
|
|
1240
1238
|
|
|
1241
|
-
var css$
|
|
1239
|
+
var css$1a = {"root":"mzsARs"};
|
|
1242
1240
|
|
|
1243
|
-
const AvatarStack = /* @__PURE__ */withMods(AvatarStack$1, () => [css$
|
|
1241
|
+
const AvatarStack = /* @__PURE__ */withMods(AvatarStack$1, () => [css$1a.root]);
|
|
1244
1242
|
|
|
1245
|
-
var css$
|
|
1243
|
+
var css$19 = {"uui-typography":"_9b8h-3","uuiTypography":"_9b8h-3","hero-header":"EiW0w6","heroHeader":"EiW0w6","promo-header":"_95Zxf-","promoHeader":"_95Zxf-","uui-critical":"-sHhFn","uuiCritical":"-sHhFn","uui-info":"_-7O-Ex","uuiInfo":"_-7O-Ex","uui-success":"Bi-5Rx","uuiSuccess":"Bi-5Rx","uui-warning":"_6mBCWb","uuiWarning":"_6mBCWb","uui-highlight":"_94bwj-","uuiHighlight":"_94bwj-","uui-typography-size-12":"zHd6zC","uuiTypographySize12":"zHd6zC","uui-typography-size-14":"CgxWcD","uuiTypographySize14":"CgxWcD","uui-typography-size-16":"AAkfv2","uuiTypographySize16":"AAkfv2","root":"JY-5V4"};
|
|
1246
1244
|
|
|
1247
1245
|
const DEFAULT_FILL = 'solid';
|
|
1248
1246
|
function applyBadgeMods(mods) {
|
|
1249
1247
|
return [
|
|
1250
1248
|
'uui-badge',
|
|
1251
|
-
css$
|
|
1249
|
+
css$19.root,
|
|
1252
1250
|
`uui-size-${mods.size || settings.sizes.defaults.badge}`,
|
|
1253
1251
|
`uui-fill-${mods.fill || DEFAULT_FILL}`,
|
|
1254
1252
|
`uui-color-${mods.color || 'info'}`,
|
|
@@ -1266,11 +1264,11 @@ const Badge = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
|
1266
1264
|
props.isDropdown && (React__default.createElement(IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
1267
1265
|
});
|
|
1268
1266
|
|
|
1269
|
-
var css$
|
|
1267
|
+
var css$18 = {"uui-typography":"bHUTqc","uuiTypography":"bHUTqc","hero-header":"PoueDO","heroHeader":"PoueDO","promo-header":"_0HjPyh","promoHeader":"_0HjPyh","uui-critical":"ygZvLa","uuiCritical":"ygZvLa","uui-info":"Sv61Ed","uuiInfo":"Sv61Ed","uui-success":"Dmtbt-","uuiSuccess":"Dmtbt-","uui-warning":"Ye9ESy","uuiWarning":"Ye9ESy","uui-highlight":"li1wob","uuiHighlight":"li1wob","uui-typography-size-12":"RK2Zv6","uuiTypographySize12":"RK2Zv6","uui-typography-size-14":"_1p9N6q","uuiTypographySize14":"_1p9N6q","uui-typography-size-16":"Y-avZH","uuiTypographySize16":"Y-avZH","root":"WAHKHZ"};
|
|
1270
1268
|
|
|
1271
1269
|
function applyTagMods(props) {
|
|
1272
1270
|
return [
|
|
1273
|
-
css$
|
|
1271
|
+
css$18.root,
|
|
1274
1272
|
`uui-size-${props.size || settings.sizes.defaults.tag}`,
|
|
1275
1273
|
`uui-color-${props.color || 'neutral'}`,
|
|
1276
1274
|
`uui-fill-${props.fill || 'solid'}`,
|
|
@@ -1290,94 +1288,94 @@ const Tag = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
|
1290
1288
|
props.onClear && !props.isDisabled && (React__default.createElement(IconContainer, { cx: uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
|
|
1291
1289
|
});
|
|
1292
1290
|
|
|
1293
|
-
var css$
|
|
1291
|
+
var css$17 = {"root":"i27qdq","uui-spinner":"_62n3C-","uuiSpinner":"_62n3C-"};
|
|
1294
1292
|
|
|
1295
1293
|
function applySpinnerMods() {
|
|
1296
|
-
return [css$
|
|
1294
|
+
return [css$17.root, 'uui-spinner'];
|
|
1297
1295
|
}
|
|
1298
1296
|
const Spinner = /* @__PURE__ */withMods(Spinner$1, applySpinnerMods);
|
|
1299
1297
|
|
|
1300
|
-
var _path$
|
|
1301
|
-
function _extends$
|
|
1298
|
+
var _path$w;
|
|
1299
|
+
function _extends$w() { _extends$w = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$w.apply(this, arguments); }
|
|
1302
1300
|
var SvgNavigationChevronLeftOutline = function SvgNavigationChevronLeftOutline(props, ref) {
|
|
1303
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
1301
|
+
return /*#__PURE__*/React.createElement("svg", _extends$w({
|
|
1304
1302
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1305
1303
|
width: 24,
|
|
1306
1304
|
height: 24,
|
|
1307
1305
|
viewBox: "0 0 24 24",
|
|
1308
1306
|
ref: ref
|
|
1309
|
-
}, props), _path$
|
|
1307
|
+
}, props), _path$w || (_path$w = /*#__PURE__*/React.createElement("path", {
|
|
1310
1308
|
d: "M15.914 5.414 14.5 4l-8 8 8 8 1.414-1.414L9.328 12l6.586-6.586z"
|
|
1311
1309
|
})));
|
|
1312
1310
|
};
|
|
1313
|
-
var ForwardRef$
|
|
1311
|
+
var ForwardRef$w = /*#__PURE__*/forwardRef(SvgNavigationChevronLeftOutline);
|
|
1314
1312
|
|
|
1315
|
-
var _path$
|
|
1316
|
-
function _extends$
|
|
1313
|
+
var _path$v;
|
|
1314
|
+
function _extends$v() { _extends$v = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$v.apply(this, arguments); }
|
|
1317
1315
|
var SvgNavigationChevronRightOutline = function SvgNavigationChevronRightOutline(props, ref) {
|
|
1318
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
1316
|
+
return /*#__PURE__*/React.createElement("svg", _extends$v({
|
|
1319
1317
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1320
1318
|
width: 24,
|
|
1321
1319
|
height: 24,
|
|
1322
1320
|
viewBox: "0 0 24 24",
|
|
1323
1321
|
ref: ref
|
|
1324
|
-
}, props), _path$
|
|
1322
|
+
}, props), _path$v || (_path$v = /*#__PURE__*/React.createElement("path", {
|
|
1325
1323
|
d: "M8.086 18.586 9.5 20l8-8-8-8-1.414 1.414L14.672 12l-6.586 6.586z"
|
|
1326
1324
|
})));
|
|
1327
1325
|
};
|
|
1328
|
-
var ForwardRef$
|
|
1326
|
+
var ForwardRef$v = /*#__PURE__*/forwardRef(SvgNavigationChevronRightOutline);
|
|
1329
1327
|
|
|
1330
|
-
var css$
|
|
1328
|
+
var css$16 = {"root":"-J3zd-","page":"-g-B82","spacer":"_5QbgpA","mode-ghost":"nUJ23j","modeGhost":"nUJ23j"};
|
|
1331
1329
|
|
|
1332
1330
|
function Paginator(props) {
|
|
1333
|
-
const renderPaginator = (params) => (React__default.createElement("nav", Object.assign({ role: "navigation", className: cx(css$
|
|
1334
|
-
React__default.createElement(Button, { size: props.size || settings.sizes.defaults.paginator, icon: ForwardRef$
|
|
1331
|
+
const renderPaginator = (params) => (React__default.createElement("nav", Object.assign({ role: "navigation", className: cx(css$16.root, 'uui-paginator', `uui-size-${props.size || settings.sizes.defaults.paginator}`) }, params.rawProps),
|
|
1332
|
+
React__default.createElement(Button, { size: props.size || settings.sizes.defaults.paginator, icon: ForwardRef$w, onClick: params.goToPrev, isDisabled: params.isFirst || props.isDisabled, fill: "outline", color: "secondary" }),
|
|
1335
1333
|
params.pages.map((page, index) => {
|
|
1336
1334
|
if (page.type === 'spacer') {
|
|
1337
|
-
return (React__default.createElement(Button, { cx: cx(css$
|
|
1335
|
+
return (React__default.createElement(Button, { cx: cx(css$16.spacer, css$16.page), size: props.size || settings.sizes.defaults.paginator, key: `${index}_spacer`, caption: "...", fill: "ghost", color: "secondary", tabIndex: -1, isDisabled: props.isDisabled }));
|
|
1338
1336
|
}
|
|
1339
1337
|
else {
|
|
1340
|
-
return (React__default.createElement(Button, { cx: cx(css$
|
|
1338
|
+
return (React__default.createElement(Button, { cx: cx(css$16[`mode-${!page.isActive && 'ghost'}`], css$16.page), size: props.size || settings.sizes.defaults.paginator, key: page.pageNumber, caption: page.pageNumber, onClick: () => { var _a; return (_a = page.onClick) === null || _a === void 0 ? void 0 : _a.call(page); }, rawProps: { 'aria-current': page.isActive }, fill: (page.isActive && 'outline') || 'ghost', color: "primary", isDisabled: props.isDisabled }));
|
|
1341
1339
|
}
|
|
1342
1340
|
}),
|
|
1343
|
-
React__default.createElement(Button, { size: props.size || settings.sizes.defaults.paginator, icon: ForwardRef$
|
|
1341
|
+
React__default.createElement(Button, { size: props.size || settings.sizes.defaults.paginator, icon: ForwardRef$v, onClick: params.goToNext, isDisabled: params.isLast || props.isDisabled, fill: "outline", color: "secondary" })));
|
|
1344
1342
|
return React__default.createElement(Paginator$1, Object.assign({}, props, { render: renderPaginator }));
|
|
1345
1343
|
}
|
|
1346
1344
|
|
|
1347
|
-
var css$
|
|
1345
|
+
var css$15 = {"root":"HdV07u","progress-bar":"J6BXUx","progressBar":"J6BXUx","progressBar-indeterminate":"L9XDP7","progressBarIndeterminate":"L9XDP7","size-12":"bPJA9a","size12":"bPJA9a","size-18":"BuhaHx","size18":"BuhaHx","size-24":"_7pMgnu","size24":"_7pMgnu"};
|
|
1348
1346
|
|
|
1349
1347
|
const IndeterminateBar = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
1350
|
-
return (React.createElement("div", { ref: ref, className: cx('uui-indeterminate_bar', props.cx, css$
|
|
1351
|
-
React.createElement("div", { className: cx(css$
|
|
1348
|
+
return (React.createElement("div", { ref: ref, className: cx('uui-indeterminate_bar', props.cx, css$15.root, css$15[`size-${props.size || 12}`]) },
|
|
1349
|
+
React.createElement("div", { className: cx(css$15.progressBar) })));
|
|
1352
1350
|
});
|
|
1353
1351
|
|
|
1354
|
-
var css$
|
|
1352
|
+
var css$14 = {"root":"_1YCdxB","striped":"jRJs9L","animate-stripes":"_2j3HVg","animateStripes":"_2j3HVg","size-12":"MmxsHd","size12":"MmxsHd","size-18":"s4A05l","size18":"s4A05l","size-24":"_7P1Awi","size24":"_7P1Awi"};
|
|
1355
1353
|
|
|
1356
1354
|
const DEFAULT_SIZE = '12';
|
|
1357
1355
|
function applyProgressBarMods(mods) {
|
|
1358
1356
|
const size = mods.size || DEFAULT_SIZE;
|
|
1359
1357
|
return [
|
|
1360
|
-
css$
|
|
1361
|
-
css$
|
|
1362
|
-
mods.striped && css$
|
|
1358
|
+
css$14.root,
|
|
1359
|
+
css$14[`size-${size}`],
|
|
1360
|
+
mods.striped && css$14.striped,
|
|
1363
1361
|
];
|
|
1364
1362
|
}
|
|
1365
1363
|
const ProgressBar = /* @__PURE__ */withMods(uuiComponents.ProgressBar, applyProgressBarMods, (props) => ({
|
|
1366
1364
|
hideLabel: props.hideLabel || props.striped,
|
|
1367
1365
|
}));
|
|
1368
1366
|
|
|
1369
|
-
var css$
|
|
1367
|
+
var css$13 = {"root":"FwszS8"};
|
|
1370
1368
|
|
|
1371
1369
|
const IndicatorBar = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
1372
1370
|
const { progress } = props;
|
|
1373
|
-
return progress || progress === 0 ? (React.createElement(ProgressBar, { ref: ref, progress: progress, cx: cx(css$
|
|
1371
|
+
return progress || progress === 0 ? (React.createElement(ProgressBar, { ref: ref, progress: progress, cx: cx(css$13.root, props.cx), hideLabel: true })) : (React.createElement(IndeterminateBar, { ref: ref, cx: cx(css$13.root, props.cx) }));
|
|
1374
1372
|
});
|
|
1375
1373
|
|
|
1376
|
-
var css$
|
|
1374
|
+
var css$12 = {"root":"kipjiY"};
|
|
1377
1375
|
|
|
1378
1376
|
const StatusIndicator = /* @__PURE__ */forwardRef((props, ref) => {
|
|
1379
1377
|
return (React__default.createElement("div", { ref: ref, className: cx([
|
|
1380
|
-
css$
|
|
1378
|
+
css$12.root,
|
|
1381
1379
|
`uui-size-${props.size || settings.sizes.defaults.statusIndicator}`,
|
|
1382
1380
|
'uui-status_indicator',
|
|
1383
1381
|
`uui-color-${props.color || 'neutral'}`,
|
|
@@ -1388,7 +1386,7 @@ const StatusIndicator = /* @__PURE__ */forwardRef((props, ref) => {
|
|
|
1388
1386
|
React__default.createElement("p", { className: "uui-status_indicator-caption" }, props.caption)));
|
|
1389
1387
|
});
|
|
1390
1388
|
|
|
1391
|
-
var css$
|
|
1389
|
+
var css$11 = {"drag-handle":"qeEuet","dragHandle":"qeEuet","icon-container":"I-ZiwZ","iconContainer":"I-ZiwZ"};
|
|
1392
1390
|
|
|
1393
1391
|
function DataRowAddons(props) {
|
|
1394
1392
|
var _a, _b;
|
|
@@ -1400,19 +1398,19 @@ function DataRowAddons(props) {
|
|
|
1400
1398
|
return settings.sizes.rowAddons.indentWidth[props.size] || settings.sizes.rowAddons.defaults.indentWidth;
|
|
1401
1399
|
};
|
|
1402
1400
|
return (React__default.createElement(React__default.Fragment, null,
|
|
1403
|
-
((_a = row.dnd) === null || _a === void 0 ? void 0 : _a.srcData) && React__default.createElement(DragHandle, { key: "dh", cx: css$
|
|
1401
|
+
((_a = row.dnd) === null || _a === void 0 ? void 0 : _a.srcData) && React__default.createElement(DragHandle, { key: "dh", cx: css$11.dragHandle, rawProps: Object.assign({}, props.eventHandlers) }),
|
|
1404
1402
|
((_b = row === null || row === void 0 ? void 0 : row.checkbox) === null || _b === void 0 ? void 0 : _b.isVisible) && (React__default.createElement(Checkbox, { key: "cb", cx: "uui-dr_addons-checkbox", tabIndex: props.tabIndex, size: settings.sizes.rowAddons.checkbox[props.size], value: row.isChecked, indeterminate: !row.isChecked && row.isChildrenChecked, onValueChange: () => { var _a; return (_a = row.onCheck) === null || _a === void 0 ? void 0 : _a.call(row, row); }, isDisabled: row.checkbox.isDisabled, isInvalid: row.checkbox.isInvalid })),
|
|
1405
1403
|
row.indent > 0 && (React__default.createElement("div", { key: "fold", className: cx('uui-dr_addons-indent', `uui-size-${props.size}`), style: { marginInlineStart: getIndent(), width: getWidth() } }, row.isFoldable && (React__default.createElement(IconContainer, { rawProps: {
|
|
1406
1404
|
'aria-label': row.isFolded ? 'Unfold' : 'Fold',
|
|
1407
1405
|
role: 'button',
|
|
1408
|
-
}, key: "icon", icon: ForwardRef$
|
|
1409
|
-
uuiElement.foldingArrow, uuiMarkers.clickable, css$
|
|
1406
|
+
}, key: "icon", icon: ForwardRef$Q, cx: [
|
|
1407
|
+
uuiElement.foldingArrow, uuiMarkers.clickable, css$11.iconContainer,
|
|
1410
1408
|
], rotate: row.isFolded ? '90ccw' : '0', onClick: () => row.onFold(row), size: settings.sizes.rowAddons.icon[props.size] || settings.sizes.rowAddons.defaults.icon }))))));
|
|
1411
1409
|
}
|
|
1412
1410
|
|
|
1413
|
-
var css
|
|
1411
|
+
var css$10 = {"root":"EBnQe3"};
|
|
1414
1412
|
|
|
1415
|
-
const Blocker = /* @__PURE__ */withMods(Blocker$1, () => [css
|
|
1413
|
+
const Blocker = /* @__PURE__ */withMods(Blocker$1, () => [css$10.root], (cmpProps) => ({ renderSpinner: cmpProps.renderSpinner || (() => React__default.createElement(Spinner, null)) }));
|
|
1416
1414
|
|
|
1417
1415
|
const VirtualList = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
1418
1416
|
const { listContainerRef, offsetY, handleScroll, estimatedHeight, scrollContainerRef, } = useVirtualList({
|
|
@@ -1428,7 +1426,7 @@ const VirtualList = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1428
1426
|
var _a;
|
|
1429
1427
|
return ((_a = props.renderRows) === null || _a === void 0 ? void 0 : _a.call(props, {
|
|
1430
1428
|
listContainerRef, estimatedHeight, offsetY, scrollShadows,
|
|
1431
|
-
})) || (React.createElement("div", { className: css$
|
|
1429
|
+
})) || (React.createElement("div", { className: css$1b.listContainer, style: { minHeight: `${estimatedHeight}px` } },
|
|
1432
1430
|
React.createElement("div", { ref: listContainerRef, role: props.role, style: { marginTop: offsetY } }, props.rows)));
|
|
1433
1431
|
};
|
|
1434
1432
|
const renderView = ({ style }) => (React.createElement(VirtualListView, { isLoading: props.isLoading, style: style, rawProps: props.rawProps }));
|
|
@@ -1438,7 +1436,7 @@ const VirtualList = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1438
1436
|
return;
|
|
1439
1437
|
scrollContainerRef.current = scrollbars.container.firstChild;
|
|
1440
1438
|
}, []);
|
|
1441
|
-
return (React.createElement(ScrollBars, { cx: cx$1(css$
|
|
1439
|
+
return (React.createElement(ScrollBars, { cx: cx$1(css$1b.scrollContainer, props.cx, {
|
|
1442
1440
|
[uuiMarkers.scrolledLeft]: scrollShadows.horizontalLeft,
|
|
1443
1441
|
[uuiMarkers.scrolledRight]: scrollShadows.horizontalRight,
|
|
1444
1442
|
[uuiMarkers.scrolledTop]: scrollShadows.verticalTop,
|
|
@@ -1451,7 +1449,7 @@ const VirtualListView = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1451
1449
|
React.createElement(Blocker, { isEnabled: props.isLoading })));
|
|
1452
1450
|
});
|
|
1453
1451
|
|
|
1454
|
-
var css
|
|
1452
|
+
var css$$ = {"root":"PD3ZlP"};
|
|
1455
1453
|
|
|
1456
1454
|
function CheckboxGroup(props) {
|
|
1457
1455
|
const currentValue = props.value || [];
|
|
@@ -1467,62 +1465,16 @@ function CheckboxGroup(props) {
|
|
|
1467
1465
|
}
|
|
1468
1466
|
props.onValueChange(newSelection);
|
|
1469
1467
|
};
|
|
1470
|
-
return (React.createElement("fieldset", Object.assign({ ref: props.forwardedRef, className: cx$1(css
|
|
1468
|
+
return (React.createElement("fieldset", Object.assign({ ref: props.forwardedRef, className: cx$1(css$$.root, directionMode[direction], props.cx) }, props.rawProps), props.items.map((i) => {
|
|
1471
1469
|
const restItemProps = __rest(i, ["id", "name", "renderName"]);
|
|
1472
1470
|
return (React.createElement(Checkbox, Object.assign({ renderLabel: i.renderName ? i.renderName : () => i.name, value: currentValue.indexOf(i.id) !== -1, onValueChange: (selected) => handleChange(selected, i.id), isDisabled: props.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, isRequired: props.isRequired, key: i.id.toString(), size: props.size || i.size }, restItemProps)));
|
|
1473
1471
|
})));
|
|
1474
1472
|
}
|
|
1475
1473
|
|
|
1476
|
-
var css$
|
|
1477
|
-
|
|
1478
|
-
function applyTextMods(mods) {
|
|
1479
|
-
return [
|
|
1480
|
-
css$Z.root,
|
|
1481
|
-
'uui-text',
|
|
1482
|
-
`uui-size-${mods.size || settings.sizes.defaults.text}`,
|
|
1483
|
-
(mods.size !== 'none' || mods.lineHeight) && css$Z.lineHeight,
|
|
1484
|
-
(mods.size !== 'none' || mods.fontSize) && css$Z.fontSize,
|
|
1485
|
-
`uui-color-${mods.color || 'primary'}`,
|
|
1486
|
-
`uui-font-weight-${mods.fontWeight || '400'}`,
|
|
1487
|
-
`uui-font-style-${mods.fontStyle || 'normal'}`,
|
|
1488
|
-
'uui-typography',
|
|
1489
|
-
];
|
|
1490
|
-
}
|
|
1491
|
-
const Text = /* @__PURE__ */withMods(uuiComponents.Text, applyTextMods, (props) => {
|
|
1492
|
-
var _a;
|
|
1493
|
-
if (props.fontSize || props.lineHeight) {
|
|
1494
|
-
const style = {};
|
|
1495
|
-
props.fontSize && (style['--uui-text-font-size'] = `${props.fontSize}px`);
|
|
1496
|
-
props.lineHeight && (style['--uui-text-line-height'] = `${props.lineHeight}px`);
|
|
1497
|
-
return {
|
|
1498
|
-
rawProps: Object.assign({ style: Object.assign(Object.assign({}, style), (_a = props === null || props === void 0 ? void 0 : props.rawProps) === null || _a === void 0 ? void 0 : _a.style) }, props === null || props === void 0 ? void 0 : props.rawProps),
|
|
1499
|
-
};
|
|
1500
|
-
}
|
|
1501
|
-
});
|
|
1502
|
-
|
|
1503
|
-
var css$Y = {"root":"p4WTiN","loading-word":"_0ibkqa","animated-loading":"svNd9S","skeleton_loading":"WPSnJo","loadingWord":"_0ibkqa","animatedLoading":"svNd9S","skeletonLoading":"WPSnJo"};
|
|
1504
|
-
|
|
1505
|
-
const TextPlaceholder = (props) => {
|
|
1506
|
-
const pattern = ' ';
|
|
1507
|
-
const text = React.useMemo(() => {
|
|
1508
|
-
const words = [];
|
|
1509
|
-
for (let i = 0; i < (props.wordsCount || 1); i++) {
|
|
1510
|
-
const lengthWord = Math.floor(Math.random() * 10 + 8);
|
|
1511
|
-
words.push(pattern.repeat(lengthWord));
|
|
1512
|
-
}
|
|
1513
|
-
return words;
|
|
1514
|
-
}, [props.wordsCount]);
|
|
1515
|
-
return (React.createElement("div", Object.assign({ "aria-busy": true, className: cx(css$Y.root, 'uui-text-placeholder') }, props.rawProps), text.map((it, index) => (React.createElement("span", { key: index, className: cx([
|
|
1516
|
-
props.cx, css$Y.loadingWord, !props.isNotAnimated && css$Y.animatedLoading,
|
|
1517
|
-
]), dangerouslySetInnerHTML: { __html: it } })))));
|
|
1518
|
-
};
|
|
1519
|
-
|
|
1520
|
-
const RichTextView = /* @__PURE__ */withMods(uuiComponents.RichTextView, (mods) => ['uui-typography', `uui-typography-size-${mods.size || '14'}`]);
|
|
1474
|
+
var css$_ = {"uui-typography":"_8ANzWI","uuiTypography":"_8ANzWI","hero-header":"_0r-X1m","heroHeader":"_0r-X1m","promo-header":"Fz1F6o","promoHeader":"Fz1F6o","uui-critical":"_8gTHM9","uuiCritical":"_8gTHM9","uui-info":"z3Jfik","uuiInfo":"z3Jfik","uui-success":"UxsD8t","uuiSuccess":"UxsD8t","uui-warning":"NI4hIV","uuiWarning":"NI4hIV","uui-highlight":"_8bRjon","uuiHighlight":"_8bRjon","uui-typography-size-12":"QksPrt","uuiTypographySize12":"QksPrt","uui-typography-size-14":"czV-Hi","uuiTypographySize14":"czV-Hi","uui-typography-size-16":"rkIy1X","uuiTypographySize16":"rkIy1X","root":"EV8sxD","modal-blocker":"wbzbp9","modalBlocker":"wbzbp9","animateModalBlocker":"IIErRL","modal":"ZS-IJ5","modal-footer":"bFjO8k","modalFooter":"bFjO8k","modal-header":"f3ZQNt","modalHeader":"f3ZQNt"};
|
|
1521
1475
|
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
const ModalBlocker = /* @__PURE__ */withMods(ModalBlocker$1, () => [css$X.modalBlocker]);
|
|
1525
|
-
const ModalWindow = /* @__PURE__ */withMods(ModalWindow$1, () => [css$X.root, css$X.modal], (props) => {
|
|
1476
|
+
const ModalBlocker = /* @__PURE__ */withMods(ModalBlocker$1, () => [css$_.modalBlocker]);
|
|
1477
|
+
const ModalWindow = /* @__PURE__ */withMods(ModalWindow$1, () => [css$_.root, css$_.modal], (props) => {
|
|
1526
1478
|
const width = props.width || settings.sizes.modal.window.defaults.width;
|
|
1527
1479
|
const height = props.height || 'auto';
|
|
1528
1480
|
const maxHeight = isMobile() ? '100dvh' : (props.maxHeight || '80dvh');
|
|
@@ -1534,19 +1486,19 @@ const ModalWindow = /* @__PURE__ */withMods(ModalWindow$1, () => [css$X.root, cs
|
|
|
1534
1486
|
});
|
|
1535
1487
|
class ModalHeader extends React__default.Component {
|
|
1536
1488
|
render() {
|
|
1537
|
-
return (React__default.createElement(FlexRow, { padding: this.props.padding || '24', vPadding: "
|
|
1538
|
-
this.props.title && (React__default.createElement(
|
|
1489
|
+
return (React__default.createElement(FlexRow, { padding: this.props.padding || '24', size: null, vPadding: "36", borderBottom: this.props.borderBottom, cx: [css$_.root, css$_.modalHeader, this.props.cx], columnGap: "12", rawProps: this.props.rawProps },
|
|
1490
|
+
this.props.title && (React__default.createElement("div", { className: cx('uui-modal-title', 'uui-typography') }, this.props.title)),
|
|
1539
1491
|
this.props.children,
|
|
1540
1492
|
this.props.onClose && React__default.createElement(FlexSpacer, null),
|
|
1541
1493
|
this.props.onClose && (React__default.createElement(FlexCell, { shrink: 0, width: "auto" },
|
|
1542
|
-
React__default.createElement(IconButton, { rawProps: { 'aria-label': 'Close modal' }, icon: ForwardRef$
|
|
1494
|
+
React__default.createElement(IconButton, { rawProps: { 'aria-label': 'Close modal' }, icon: ForwardRef$R, onClick: this.props.onClose })))));
|
|
1543
1495
|
}
|
|
1544
1496
|
}
|
|
1545
1497
|
class ModalFooter extends React__default.Component {
|
|
1546
1498
|
render() {
|
|
1547
1499
|
return (React__default.createElement(FlexRow, { columnGap: this.props.columnGap || '12', cx: [
|
|
1548
|
-
css$
|
|
1549
|
-
css$
|
|
1500
|
+
css$_.root,
|
|
1501
|
+
css$_.modalFooter,
|
|
1550
1502
|
this.props.cx,
|
|
1551
1503
|
], borderTop: this.props.borderTop, padding: this.props.padding || '24', vPadding: this.props.vPadding || '24', rawProps: this.props.rawProps }, this.props.children));
|
|
1552
1504
|
}
|
|
@@ -1693,22 +1645,22 @@ const TREE_SHAKEABLE_INIT = () => (Object.assign(Object.assign({}, i18n$1), { da
|
|
|
1693
1645
|
} }));
|
|
1694
1646
|
const i18n = /* @__PURE__ */TREE_SHAKEABLE_INIT();
|
|
1695
1647
|
|
|
1696
|
-
var _path$
|
|
1697
|
-
function _extends$
|
|
1648
|
+
var _path$u;
|
|
1649
|
+
function _extends$u() { _extends$u = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$u.apply(this, arguments); }
|
|
1698
1650
|
var SvgNotificationHelpFill = function SvgNotificationHelpFill(props, ref) {
|
|
1699
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
1651
|
+
return /*#__PURE__*/React.createElement("svg", _extends$u({
|
|
1700
1652
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1701
1653
|
width: 24,
|
|
1702
1654
|
height: 24,
|
|
1703
1655
|
viewBox: "0 0 24 24",
|
|
1704
1656
|
ref: ref
|
|
1705
|
-
}, props), _path$
|
|
1657
|
+
}, props), _path$u || (_path$u = /*#__PURE__*/React.createElement("path", {
|
|
1706
1658
|
d: "M11.95 18c.35 0 .646-.121.888-.363.241-.241.362-.537.362-.887s-.12-.646-.362-.887a1.208 1.208 0 0 0-.888-.363c-.35 0-.646.121-.888.363a1.206 1.206 0 0 0-.362.887c0 .35.12.646.362.887.242.242.538.363.888.363zm-.9-3.85h1.85c0-.55.063-.983.188-1.3.125-.317.479-.75 1.062-1.3a7.483 7.483 0 0 0 1.025-1.238c.25-.391.375-.862.375-1.412 0-.933-.342-1.65-1.025-2.15-.683-.5-1.492-.75-2.425-.75-.95 0-1.72.25-2.312.75-.592.5-1.005 1.1-1.238 1.8l1.65.65c.083-.3.271-.625.563-.975.291-.35.737-.525 1.337-.525.533 0 .933.146 1.2.437.267.292.4.613.4.963 0 .333-.1.646-.3.937-.2.292-.45.563-.75.813-.733.65-1.183 1.142-1.35 1.475-.167.333-.25.942-.25 1.825zM12 22a9.733 9.733 0 0 1-3.9-.788 10.092 10.092 0 0 1-3.175-2.137c-.9-.9-1.612-1.958-2.137-3.175A9.733 9.733 0 0 1 2 12a9.74 9.74 0 0 1 .788-3.9 10.092 10.092 0 0 1 2.137-3.175c.9-.9 1.958-1.613 3.175-2.138A9.743 9.743 0 0 1 12 2a9.74 9.74 0 0 1 3.9.787 10.105 10.105 0 0 1 3.175 2.138c.9.9 1.612 1.958 2.137 3.175A9.733 9.733 0 0 1 22 12a9.733 9.733 0 0 1-.788 3.9 10.092 10.092 0 0 1-2.137 3.175c-.9.9-1.958 1.612-3.175 2.137A9.733 9.733 0 0 1 12 22z"
|
|
1707
1659
|
})));
|
|
1708
1660
|
};
|
|
1709
|
-
var ForwardRef$
|
|
1661
|
+
var ForwardRef$u = /*#__PURE__*/forwardRef(SvgNotificationHelpFill);
|
|
1710
1662
|
|
|
1711
|
-
var css$
|
|
1663
|
+
var css$Z = {"uui-typography":"BJT4Ga","uuiTypography":"BJT4Ga","hero-header":"onxFU4","heroHeader":"onxFU4","promo-header":"G2R4Ye","promoHeader":"G2R4Ye","uui-critical":"XSCgTG","uuiCritical":"XSCgTG","uui-info":"fY8wTf","uuiInfo":"fY8wTf","uui-success":"-Lx0i7","uuiSuccess":"-Lx0i7","uui-warning":"liVTsM","uuiWarning":"liVTsM","uui-highlight":"b7spcI","uuiHighlight":"b7spcI","uui-typography-size-12":"jqihgi","uuiTypographySize12":"jqihgi","uui-typography-size-14":"-S1ZPY","uuiTypographySize14":"-S1ZPY","uui-typography-size-16":"iehGRS","uuiTypographySize16":"iehGRS","root":"cQjQsj","icon-wrapper":"SgADQu","iconWrapper":"SgADQu","action-wrapper":"CgejM8","actionWrapper":"CgejM8","action-link":"_68L8Kf","actionLink":"_68L8Kf","close-icon":"RFYjNa","closeIcon":"RFYjNa","main-path":"_1BtyvV","mainPath":"_1BtyvV","content":"G3C2zJ","close-wrapper":"VqzVi-","closeWrapper":"VqzVi-","notification-wrapper":"CNKzL9","notificationWrapper":"CNKzL9","clear-button":"-W8dut","clearButton":"-W8dut"};
|
|
1712
1664
|
|
|
1713
1665
|
const NotificationCard = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
1714
1666
|
const notificationCardNode = React__default.useRef(null);
|
|
@@ -1723,27 +1675,27 @@ const NotificationCard = /* @__PURE__ */React__default.forwardRef((props, ref) =
|
|
|
1723
1675
|
(_b = notificationCardNode.current) === null || _b === void 0 ? void 0 : _b.removeEventListener('mouseleave', props.refreshTimer);
|
|
1724
1676
|
};
|
|
1725
1677
|
}, []);
|
|
1726
|
-
return (React__default.createElement("div", Object.assign({ role: "alert", className: cx('uui-notification_card', props.color && `uui-color-${props.color}`, css$
|
|
1727
|
-
React__default.createElement("div", { className: css$
|
|
1728
|
-
props.icon && (React__default.createElement("div", { className: css$
|
|
1678
|
+
return (React__default.createElement("div", Object.assign({ role: "alert", className: cx('uui-notification_card', props.color && `uui-color-${props.color}`, css$Z.root, props.cx), ref: notificationCardNode }, props.rawProps),
|
|
1679
|
+
React__default.createElement("div", { className: css$Z.mainPath },
|
|
1680
|
+
props.icon && (React__default.createElement("div", { className: css$Z.iconWrapper },
|
|
1729
1681
|
React__default.createElement(IconContainer, { size: 24, icon: props.icon }))),
|
|
1730
|
-
React__default.createElement("div", { className: css$
|
|
1682
|
+
React__default.createElement("div", { className: css$Z.content },
|
|
1731
1683
|
props.children,
|
|
1732
|
-
props.actions && (React__default.createElement("div", { className: css$
|
|
1733
|
-
props.onClose && (React__default.createElement("div", { className: css$
|
|
1734
|
-
React__default.createElement(IconButton, { icon: ForwardRef$
|
|
1684
|
+
props.actions && (React__default.createElement("div", { className: css$Z.actionWrapper }, props.actions.map((action) => (React__default.createElement(LinkButton, { caption: action.name, onClick: action.action, key: action.name, cx: css$Z.actionLink, size: "36", rawProps: action.rawProps })))))),
|
|
1685
|
+
props.onClose && (React__default.createElement("div", { className: css$Z.closeWrapper },
|
|
1686
|
+
React__default.createElement(IconButton, { icon: ForwardRef$R, color: "neutral", onClick: props.onClose, cx: css$Z.closeIcon }))))));
|
|
1735
1687
|
});
|
|
1736
|
-
const WarningNotification = /* @__PURE__ */React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$
|
|
1737
|
-
const SuccessNotification = /* @__PURE__ */React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$
|
|
1738
|
-
const HintNotification = /* @__PURE__ */React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$
|
|
1739
|
-
const ErrorNotification = /* @__PURE__ */React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$
|
|
1688
|
+
const WarningNotification = /* @__PURE__ */React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$z, color: "warning" }, props, { ref: ref, cx: props.cx }))));
|
|
1689
|
+
const SuccessNotification = /* @__PURE__ */React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$A, color: "success" }, props, { ref: ref, cx: props.cx }))));
|
|
1690
|
+
const HintNotification = /* @__PURE__ */React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$u, color: "info" }, props, { ref: ref, cx: props.cx }))));
|
|
1691
|
+
const ErrorNotification = /* @__PURE__ */React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$y, color: "error" }, props, { ref: ref, cx: props.cx }))));
|
|
1740
1692
|
function ClearNotification() {
|
|
1741
1693
|
const uuiCtx = useUuiContext();
|
|
1742
|
-
return (React__default.createElement("div", { className: cx(css$
|
|
1694
|
+
return (React__default.createElement("div", { className: cx(css$Z.notificationWrapper, css$Z.clearButton) },
|
|
1743
1695
|
React__default.createElement(LinkButton, { caption: i18n.notificationCard.closeAllNotificationsButton, onClick: () => uuiCtx.uuiNotifications.clearAll() })));
|
|
1744
1696
|
}
|
|
1745
1697
|
|
|
1746
|
-
var css$
|
|
1698
|
+
var css$Y = {"footer":"ZiE-I1"};
|
|
1747
1699
|
|
|
1748
1700
|
class ConfirmationModal extends React.Component {
|
|
1749
1701
|
render() {
|
|
@@ -1755,7 +1707,7 @@ class ConfirmationModal extends React.Component {
|
|
|
1755
1707
|
React.createElement(ModalWindow, { width: 420 },
|
|
1756
1708
|
React.createElement(ModalHeader, { borderBottom: true, title: this.props.caption, onClose: () => this.props.abort() }),
|
|
1757
1709
|
React.createElement(ScrollBars, null, bodyContent),
|
|
1758
|
-
React.createElement(ModalFooter, { cx: css$
|
|
1710
|
+
React.createElement(ModalFooter, { cx: css$Y.footer },
|
|
1759
1711
|
this.props.hideCancelButton || (React.createElement(Button, { caption: i18n.form.modals.discardButton, onClick: () => this.props.success(false), fill: "outline", color: "secondary" })),
|
|
1760
1712
|
React.createElement(Button, { caption: i18n.form.modals.saveButton, onClick: () => this.props.success(true), color: "primary" })))));
|
|
1761
1713
|
}
|
|
@@ -1785,7 +1737,7 @@ function useReliableForceUpdate() {
|
|
|
1785
1737
|
return red[1];
|
|
1786
1738
|
}
|
|
1787
1739
|
|
|
1788
|
-
var css$
|
|
1740
|
+
var css$X = {"root":"_8lNo6Q","timepicker-input":"hGynS5","timepickerInput":"hGynS5","ltr-always":"EaNOsO","ltrAlways":"EaNOsO"};
|
|
1789
1741
|
|
|
1790
1742
|
const uuiTimePicker = {
|
|
1791
1743
|
container: 'uui-timepicker-container',
|
|
@@ -1824,23 +1776,23 @@ function TimePickerBody(props) {
|
|
|
1824
1776
|
const minutesToSubtract = value.minute() % minutesStep === 0 ? minutesStep : value.minute() % minutesStep;
|
|
1825
1777
|
onMinutesChange(value.subtract(minutesToSubtract, 'm').minute());
|
|
1826
1778
|
};
|
|
1827
|
-
return (React.createElement("div", Object.assign({ className: cx$1(css$
|
|
1828
|
-
React.createElement("div", { className: css$
|
|
1779
|
+
return (React.createElement("div", Object.assign({ className: cx$1(css$X.root, uuiTimePicker.container, props.cx), ref: props.forwardedRef }, props.rawProps),
|
|
1780
|
+
React.createElement("div", { className: css$X.ltrAlways },
|
|
1829
1781
|
React.createElement("div", { className: uuiTimePicker.elementContainer },
|
|
1830
|
-
React.createElement(IconContainer, { size: 18, rawProps: { 'aria-label': 'Increment hours' }, cx: uuiTimePicker.iconUp, icon: ForwardRef$
|
|
1782
|
+
React.createElement(IconContainer, { size: 18, rawProps: { 'aria-label': 'Increment hours' }, cx: uuiTimePicker.iconUp, icon: ForwardRef$Q, onClick: () => onHoursChange(uuiDayjs.dayjs().set(props.value).add(1, 'h').hour()) }),
|
|
1831
1783
|
React.createElement(NumericInput$1, { cx: uuiTimePicker.input, onValueChange: onHoursChange, value: +(uuiDayjs.dayjs()
|
|
1832
1784
|
.set(props.value)
|
|
1833
1785
|
.format(MAX_HOURS === FORMAT_12H ? 'hh' : 'HH')), min: MIN_HOURS, max: MAX_HOURS }),
|
|
1834
|
-
React.createElement(IconContainer, { size: 18, rawProps: { 'aria-label': 'Decrement hours' }, cx: uuiTimePicker.iconDown, icon: ForwardRef$
|
|
1786
|
+
React.createElement(IconContainer, { size: 18, rawProps: { 'aria-label': 'Decrement hours' }, cx: uuiTimePicker.iconDown, icon: ForwardRef$Q, onClick: () => onHoursChange(uuiDayjs.dayjs().set(props.value).subtract(1, 'h').hour()) })),
|
|
1835
1787
|
React.createElement("div", { className: uuiTimePicker.elementContainer },
|
|
1836
|
-
React.createElement(IconContainer, { size: 18, rawProps: { 'aria-label': 'Increment minutes' }, cx: uuiTimePicker.iconUp, icon: ForwardRef$
|
|
1788
|
+
React.createElement(IconContainer, { size: 18, rawProps: { 'aria-label': 'Increment minutes' }, cx: uuiTimePicker.iconUp, icon: ForwardRef$Q, onClick: handleMinutesUpClick }),
|
|
1837
1789
|
React.createElement(NumericInput$1, { cx: uuiTimePicker.input, onValueChange: onMinutesChange, value: +uuiDayjs.dayjs().set(props.value).format('m'), min: MIN_MINUTES, max: MAX_MINUTES }),
|
|
1838
|
-
React.createElement(IconContainer, { size: 18, rawProps: { 'aria-label': 'Decrement minutes' }, cx: uuiTimePicker.iconDown, icon: ForwardRef$
|
|
1790
|
+
React.createElement(IconContainer, { size: 18, rawProps: { 'aria-label': 'Decrement minutes' }, cx: uuiTimePicker.iconDown, icon: ForwardRef$Q, onClick: handleMinutesDownClick }))),
|
|
1839
1791
|
MAX_HOURS === FORMAT_12H && (React.createElement("div", { className: uuiTimePicker.elementContainer },
|
|
1840
|
-
React.createElement(IconContainer, { size: 18, cx: uuiTimePicker.iconUp, icon: ForwardRef$
|
|
1792
|
+
React.createElement(IconContainer, { size: 18, cx: uuiTimePicker.iconUp, icon: ForwardRef$Q, onClick: onTimeTypeChange }),
|
|
1841
1793
|
React.createElement(TextInput$1, { cx: uuiTimePicker.input, onValueChange: () => {
|
|
1842
1794
|
}, isReadonly: true, value: uuiDayjs.dayjs().set(props.value).format('A') }),
|
|
1843
|
-
React.createElement(IconContainer, { size: 18, cx: uuiTimePicker.iconDown, icon: ForwardRef$
|
|
1795
|
+
React.createElement(IconContainer, { size: 18, cx: uuiTimePicker.iconDown, icon: ForwardRef$Q, onClick: onTimeTypeChange })))));
|
|
1844
1796
|
}
|
|
1845
1797
|
|
|
1846
1798
|
const getMeridian = (newValue, format) => {
|
|
@@ -1967,7 +1919,7 @@ function TimePicker(props) {
|
|
|
1967
1919
|
};
|
|
1968
1920
|
const renderInput = (inputProps) => {
|
|
1969
1921
|
var _a;
|
|
1970
|
-
return (React__default.createElement(TextInput, Object.assign({}, inputProps, { onClick: null, size: props.size || '36', isDisabled: props.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, cx: [css$
|
|
1922
|
+
return (React__default.createElement(TextInput, Object.assign({}, inputProps, { onClick: null, size: props.size || '36', isDisabled: props.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, cx: [css$X.root, css$X.timepickerInput, props.inputCx], value: state.inputValue, onValueChange: handleInputChange, onCancel: !props.disableClear && onClear, onFocus: handleFocus, onBlur: handleBlur, isDropdown: false, placeholder: props.placeholder ? props.placeholder : getFormat(), mode: props.mode || DEFAULT_MODE, rawProps: (_a = props.rawProps) === null || _a === void 0 ? void 0 : _a.input })));
|
|
1971
1923
|
};
|
|
1972
1924
|
const renderBody = (bodyProps) => {
|
|
1973
1925
|
var _a;
|
|
@@ -1978,22 +1930,52 @@ function TimePicker(props) {
|
|
|
1978
1930
|
return (React__default.createElement(Dropdown, { renderTarget: (targetProps) => (props.renderTarget ? props.renderTarget(targetProps) : renderInput(targetProps)), renderBody: (bodyProps) => !props.isDisabled && !props.isReadonly && renderBody(bodyProps), onValueChange: !props.isDisabled && !props.isReadonly ? onToggle : null, value: state.isOpen, modifiers: [{ name: 'offset', options: { offset: [0, 6] } }], forwardedRef: props.forwardedRef }));
|
|
1979
1931
|
}
|
|
1980
1932
|
|
|
1981
|
-
var css$
|
|
1933
|
+
var css$W = {"root":"_--uM47"};
|
|
1982
1934
|
|
|
1983
1935
|
function applyInputAddonMods() {
|
|
1984
1936
|
return [
|
|
1985
|
-
css$
|
|
1937
|
+
css$W.root,
|
|
1986
1938
|
];
|
|
1987
1939
|
}
|
|
1988
1940
|
const InputAddon = /* @__PURE__ */withMods(InputAddon$1, applyInputAddonMods);
|
|
1989
1941
|
|
|
1990
|
-
var css$
|
|
1942
|
+
var css$V = {"root":"aKGPxT"};
|
|
1991
1943
|
|
|
1992
1944
|
function applySliderMods() {
|
|
1993
|
-
return [css$
|
|
1945
|
+
return [css$V.root, 'uui-color-neutral'];
|
|
1994
1946
|
}
|
|
1995
1947
|
const Slider = /* @__PURE__ */withMods(Slider$1, applySliderMods);
|
|
1996
1948
|
|
|
1949
|
+
var _path$t;
|
|
1950
|
+
function _extends$t() { _extends$t = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$t.apply(this, arguments); }
|
|
1951
|
+
var SvgStarFilled = function SvgStarFilled(props, ref) {
|
|
1952
|
+
return /*#__PURE__*/React.createElement("svg", _extends$t({
|
|
1953
|
+
width: 24,
|
|
1954
|
+
height: 24,
|
|
1955
|
+
viewBox: "0 0 24 24",
|
|
1956
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1957
|
+
ref: ref
|
|
1958
|
+
}, props), _path$t || (_path$t = /*#__PURE__*/React.createElement("path", {
|
|
1959
|
+
fillRule: "evenodd",
|
|
1960
|
+
d: "M8.917 8.268 12.01 2l3.093 6.268 6.917 1.005-5.005 4.878 1.182 6.889-6.187-3.252-6.186 3.252 1.181-6.889L2 9.273z"
|
|
1961
|
+
})));
|
|
1962
|
+
};
|
|
1963
|
+
var ForwardRef$t = /*#__PURE__*/forwardRef(SvgStarFilled);
|
|
1964
|
+
|
|
1965
|
+
var css$U = {"root":"Sgbu2C","tooltip":"Nit79W"};
|
|
1966
|
+
|
|
1967
|
+
function applyRatingMods(mods) {
|
|
1968
|
+
return [
|
|
1969
|
+
css$U.root,
|
|
1970
|
+
`uui-size-${mods.size || settings.sizes.defaults.rating}`,
|
|
1971
|
+
];
|
|
1972
|
+
}
|
|
1973
|
+
const Rating = /* @__PURE__ */withMods(uuiComponents.Rating, applyRatingMods, (props) => ({
|
|
1974
|
+
filledStarIcon: props.icon || ForwardRef$t,
|
|
1975
|
+
emptyStarIcon: props.icon || ForwardRef$t,
|
|
1976
|
+
Tooltip,
|
|
1977
|
+
}));
|
|
1978
|
+
|
|
1997
1979
|
const defaultFormat = 'MMM D, YYYY';
|
|
1998
1980
|
const valueFormat = 'YYYY-MM-DD';
|
|
1999
1981
|
const supportedDateFormats = (format) => {
|
|
@@ -2122,7 +2104,7 @@ const getNextYearsList = (currentDate) => {
|
|
|
2122
2104
|
return currentDate.add(16, 'year');
|
|
2123
2105
|
};
|
|
2124
2106
|
|
|
2125
|
-
var css$
|
|
2107
|
+
var css$T = {"root":"szxv-D","container":"w2rfmQ"};
|
|
2126
2108
|
|
|
2127
2109
|
const uuiHeader = {
|
|
2128
2110
|
container: 'uui-datepicker-header-container',
|
|
@@ -2199,21 +2181,21 @@ function DatePickerHeader({ navIconLeft, navIconRight, value: { month, view }, o
|
|
|
2199
2181
|
}, [view, month]);
|
|
2200
2182
|
const disablePrev = view === 'YEAR_SELECTION' && !isYearWithinSoberRange(getPrevYearsList(month));
|
|
2201
2183
|
const disableNext = view === 'YEAR_SELECTION' && !isYearWithinSoberRange(getNextYearsList(month));
|
|
2202
|
-
return (React.createElement("div", { className: cx(css$
|
|
2184
|
+
return (React.createElement("div", { className: cx(css$T.root, uuiHeader.container, cx) },
|
|
2203
2185
|
React.createElement("header", { className: uuiHeader.headerNav },
|
|
2204
|
-
React.createElement(Button, { icon: navIconLeft || ForwardRef$
|
|
2186
|
+
React.createElement(Button, { icon: navIconLeft || ForwardRef$w, color: "secondary", fill: "ghost", cx: uuiHeader.navIconLeft, onClick: !isDisabled && (() => onLeftNavigationArrow()), isDisabled: disablePrev }),
|
|
2205
2187
|
React.createElement(Button, { caption: title, fill: "ghost", cx: uuiHeader.navTitle, onClick: !isDisabled && (() => onCaptionClick(view)) }),
|
|
2206
|
-
React.createElement(Button, { icon: navIconRight || ForwardRef$
|
|
2188
|
+
React.createElement(Button, { icon: navIconRight || ForwardRef$v, color: "secondary", fill: "ghost", cx: uuiHeader.navIconRight, onClick: !isDisabled && (() => onRightNavigationArrow()), isDisabled: disableNext }))));
|
|
2207
2189
|
}
|
|
2208
2190
|
|
|
2209
|
-
var css$
|
|
2191
|
+
var css$S = {"uui-typography":"yVjM1c","uuiTypography":"yVjM1c","hero-header":"umDTgw","heroHeader":"umDTgw","promo-header":"qaZfMT","promoHeader":"qaZfMT","uui-critical":"K-znIq","uuiCritical":"K-znIq","uui-info":"mQAywT","uuiInfo":"mQAywT","uui-success":"Nok88N","uuiSuccess":"Nok88N","uui-warning":"XDsTjB","uuiWarning":"XDsTjB","uui-highlight":"Y0RpfP","uuiHighlight":"Y0RpfP","uui-typography-size-12":"Bl9vR9","uuiTypographySize12":"Bl9vR9","uui-typography-size-14":"iEZedx","uuiTypographySize14":"iEZedx","uui-typography-size-16":"oYGwMX","uuiTypographySize16":"oYGwMX","root":"VMH1iG"};
|
|
2210
2192
|
|
|
2211
2193
|
function applyDateSelectionMods() {
|
|
2212
|
-
return [css$
|
|
2194
|
+
return [css$S.root, `uui-size-${settings.sizes.defaults.datePicker}`];
|
|
2213
2195
|
}
|
|
2214
2196
|
const Calendar = /* @__PURE__ */withMods(Calendar$1, applyDateSelectionMods);
|
|
2215
2197
|
|
|
2216
|
-
var css$
|
|
2198
|
+
var css$R = {"uui-typography":"aUSsNZ","uuiTypography":"aUSsNZ","hero-header":"_-17Yio","heroHeader":"_-17Yio","promo-header":"mMyfG7","promoHeader":"mMyfG7","uui-critical":"KsbagP","uuiCritical":"KsbagP","uui-info":"JygviN","uuiInfo":"JygviN","uui-success":"Bhw6jZ","uuiSuccess":"Bhw6jZ","uui-warning":"DnWG8j","uuiWarning":"DnWG8j","uui-highlight":"HyXau-","uuiHighlight":"HyXau-","uui-typography-size-12":"IQaP8B","uuiTypographySize12":"IQaP8B","uui-typography-size-14":"Arx3eF","uuiTypographySize14":"Arx3eF","uui-typography-size-16":"rk-h79","uuiTypographySize16":"rk-h79","root":"LTObrm"};
|
|
2217
2199
|
|
|
2218
2200
|
const uuiDatePickerBody = {
|
|
2219
2201
|
wrapper: 'uui-datepicker-body-wrapper',
|
|
@@ -2257,7 +2239,7 @@ function StatelessDatePickerBodyComp({ renderDay, isHoliday, cx: classes, filter
|
|
|
2257
2239
|
}
|
|
2258
2240
|
};
|
|
2259
2241
|
return (React__default.createElement("div", Object.assign({ ref: ref, className: cx$1(uuiDatePickerBodyBase.container, `uui-size-${settings.sizes.defaults.datePicker}`, classes) }, rawProps),
|
|
2260
|
-
React__default.createElement("div", { className: cx$1(css$
|
|
2242
|
+
React__default.createElement("div", { className: cx$1(css$R.root, uuiDatePickerBody.wrapper) },
|
|
2261
2243
|
React__default.createElement(DatePickerHeader, { value: {
|
|
2262
2244
|
view,
|
|
2263
2245
|
month,
|
|
@@ -2344,9 +2326,9 @@ function DatePickerComponent(props, ref) {
|
|
|
2344
2326
|
}
|
|
2345
2327
|
const DatePicker = /* @__PURE__ */React__default.forwardRef(DatePickerComponent);
|
|
2346
2328
|
|
|
2347
|
-
var css$
|
|
2329
|
+
var css$Q = {"uui-typography":"-R4ukp","uuiTypography":"-R4ukp","hero-header":"P3f4SQ","heroHeader":"P3f4SQ","promo-header":"iq-Wcj","promoHeader":"iq-Wcj","uui-critical":"NXynpn","uuiCritical":"NXynpn","uui-info":"CktR8i","uuiInfo":"CktR8i","uui-success":"-IyCeS","uuiSuccess":"-IyCeS","uui-warning":"_5w7ozd","uuiWarning":"_5w7ozd","uui-highlight":"s-AL30","uuiHighlight":"s-AL30","uui-typography-size-12":"JdLIiv","uuiTypographySize12":"JdLIiv","uui-typography-size-14":"szhirX","uuiTypographySize14":"szhirX","uui-typography-size-16":"_6G65Do","uuiTypographySize16":"_6G65Do","date-input":"LfUiBl","dateInput":"LfUiBl","root":"bToO6r","separator":"h9hza2","mode-form":"_17FaqQ","modeForm":"_17FaqQ","mode-cell":"_1New-i","modeCell":"_1New-i"};
|
|
2348
2330
|
|
|
2349
|
-
const RangeDatePickerInput = /* @__PURE__ */forwardRef(({ isDisabled, isInvalid, isReadonly, size, disableClear, rawProps, value, inFocus, format, onValueChange, onFocusInput, onBlurInput, onClick, getPlaceholder, filter, id, cx: classes, }, ref) => {
|
|
2331
|
+
const RangeDatePickerInput = /* @__PURE__ */forwardRef(({ isDisabled, isInvalid, isReadonly, size, disableClear, rawProps, value, inFocus, format, onValueChange, onFocusInput, onBlurInput, onClick, getPlaceholder, filter, onKeyDown, id, cx: classes, }, ref) => {
|
|
2350
2332
|
const [inputValue, setInputValue] = useState(toCustomDateRangeFormat(value, format));
|
|
2351
2333
|
useEffect(() => {
|
|
2352
2334
|
setInputValue(toCustomDateRangeFormat(value, format));
|
|
@@ -2376,15 +2358,17 @@ const RangeDatePickerInput = /* @__PURE__ */forwardRef(({ isDisabled, isInvalid,
|
|
|
2376
2358
|
}
|
|
2377
2359
|
};
|
|
2378
2360
|
const clearAllowed = !disableClear && inputValue.from && inputValue.to;
|
|
2379
|
-
return (
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
React__default.createElement(TextInput, { cx: cx$1(css$
|
|
2361
|
+
return (
|
|
2362
|
+
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
2363
|
+
React__default.createElement("div", { ref: ref, className: cx$1(`uui-size-${size || settings.sizes.defaults.rangeDatePicker}`, 'uui-range-date-picker', classes, css$Q.root, isDisabled && uuiMod.disabled, isReadonly && uuiMod.readonly, isInvalid && uuiMod.invalid, inFocus && uuiMod.focus), onKeyDown: onKeyDown },
|
|
2364
|
+
React__default.createElement(TextInput, { icon: systemIcons.calendar, cx: cx$1(css$Q.dateInput, inFocus === 'from' && uuiMod.focus), size: size || settings.sizes.defaults.rangeDatePicker, placeholder: getPlaceholder ? getPlaceholder('from') : i18n.rangeDatePicker.pickerPlaceholderFrom, value: inputValue.from || undefined, onValueChange: (v) => onInputChange(v || '', 'from'), onFocus: (event) => handleFocus(event, 'from'), onBlur: (event) => handleBlur(event, 'from'), isInvalid: isInvalid, isDisabled: isDisabled, isReadonly: isReadonly, isDropdown: false, rawProps: rawProps === null || rawProps === void 0 ? void 0 : rawProps.from, onClick: onClick, onKeyDown: onInputKeyDown, id: id }),
|
|
2365
|
+
React__default.createElement("div", { className: css$Q.separator }),
|
|
2366
|
+
React__default.createElement(TextInput, { cx: cx$1(css$Q.dateInput, inFocus === 'to' && uuiMod.focus), placeholder: getPlaceholder ? getPlaceholder('to') : i18n.rangeDatePicker.pickerPlaceholderTo, size: size || settings.sizes.defaults.rangeDatePicker, value: inputValue.to || undefined, onCancel: clearAllowed ? () => {
|
|
2383
2367
|
onValueChange(defaultRangeValue);
|
|
2384
2368
|
} : undefined, onValueChange: (v) => onInputChange(v || '', 'to'), onFocus: (e) => handleFocus(e, 'to'), onBlur: (e) => handleBlur(e, 'to'), isInvalid: isInvalid, isDisabled: isDisabled, isReadonly: isReadonly, isDropdown: false, rawProps: rawProps === null || rawProps === void 0 ? void 0 : rawProps.to, onClick: onClick, onKeyDown: onInputKeyDown })));
|
|
2385
2369
|
});
|
|
2386
2370
|
|
|
2387
|
-
var css$
|
|
2371
|
+
var css$P = {"uui-typography":"PQrlUZ","uuiTypography":"PQrlUZ","hero-header":"_-7iuND","heroHeader":"_-7iuND","promo-header":"r2b1AK","promoHeader":"r2b1AK","uui-critical":"yy048r","uuiCritical":"yy048r","uui-info":"cydC7a","uuiInfo":"cydC7a","uui-success":"j5OTwp","uuiSuccess":"j5OTwp","uui-warning":"HgOcoC","uuiWarning":"HgOcoC","uui-highlight":"tm4F0W","uuiHighlight":"tm4F0W","uui-typography-size-12":"FNz65V","uuiTypographySize12":"FNz65V","uui-typography-size-14":"x40xv8","uuiTypographySize14":"x40xv8","uui-typography-size-16":"_9qo9Lj","uuiTypographySize16":"_9qo9Lj","root":"CMjgXr"};
|
|
2388
2372
|
|
|
2389
2373
|
const uuiPresets = {
|
|
2390
2374
|
container: 'uui-presets-container',
|
|
@@ -2395,12 +2379,12 @@ const getPresets = (presets) => {
|
|
|
2395
2379
|
return Object.keys(presets).map((key) => (Object.assign(Object.assign({}, presets[key].getRange()), { name: presets[key].name, key }))).sort((a, b) => a.order - b.order);
|
|
2396
2380
|
};
|
|
2397
2381
|
function CalendarPresets(props) {
|
|
2398
|
-
return (React.createElement("div", Object.assign({ ref: props.forwardedRef, className: cx$1(uuiPresets.container, css$
|
|
2382
|
+
return (React.createElement("div", Object.assign({ ref: props.forwardedRef, className: cx$1(uuiPresets.container, css$P.root, props.cx) }, props.rawProps),
|
|
2399
2383
|
React.createElement("div", { className: uuiPresets.header }, "Presets"),
|
|
2400
2384
|
getPresets(props.presets).map((item) => (React.createElement(LinkButton, { key: item.key, caption: item.name, onClick: () => props.onPresetSet(item), size: "24" })))));
|
|
2401
2385
|
}
|
|
2402
2386
|
|
|
2403
|
-
var css$
|
|
2387
|
+
var css$O = {"uui-typography":"eiBmCW","uuiTypography":"eiBmCW","hero-header":"piyQax","heroHeader":"piyQax","promo-header":"q1t5dU","promoHeader":"q1t5dU","uui-critical":"md7arB","uuiCritical":"md7arB","uui-info":"_0-d-op","uuiInfo":"_0-d-op","uui-success":"xHWylb","uuiSuccess":"xHWylb","uui-warning":"kCXS3M","uuiWarning":"kCXS3M","uui-highlight":"mndSAg","uuiHighlight":"mndSAg","uui-typography-size-12":"C2-pYU","uuiTypographySize12":"C2-pYU","uui-typography-size-14":"EPSjnu","uuiTypographySize14":"EPSjnu","uui-typography-size-16":"Lf-uR2","uuiTypographySize16":"Lf-uR2","root":"U2JA-f","container":"rNGuSL","day-selection":"_4ix4HF","daySelection":"_4ix4HF","from-picker":"_4K1OeW","fromPicker":"_4K1OeW","to-picker":"v8pPq4","toPicker":"v8pPq4","bodes-wrapper":"nIDU0y","bodesWrapper":"nIDU0y","blocker":"K536mM"};
|
|
2404
2388
|
|
|
2405
2389
|
const uuiRangeDatePickerBody = {
|
|
2406
2390
|
inRange: 'uui-range-datepicker-in-range',
|
|
@@ -2541,21 +2525,21 @@ function RangeDatePickerBodyComp(props, ref) {
|
|
|
2541
2525
|
});
|
|
2542
2526
|
}, presets: presets })));
|
|
2543
2527
|
};
|
|
2544
|
-
return (React__default.createElement("div", Object.assign({ ref: ref, className: cx$1(css$
|
|
2545
|
-
React__default.createElement(FlexRow, { cx: [view === 'DAY_SELECTION' && css$
|
|
2528
|
+
return (React__default.createElement("div", Object.assign({ ref: ref, className: cx$1(css$O.root, uuiDatePickerBodyBase.container, props.cx) }, props.rawProps),
|
|
2529
|
+
React__default.createElement(FlexRow, { cx: [view === 'DAY_SELECTION' && css$O.daySelection, css$O.container], alignItems: "top" },
|
|
2546
2530
|
React__default.createElement(FlexCell, { width: "auto" },
|
|
2547
2531
|
React__default.createElement(FlexRow, null,
|
|
2548
|
-
React__default.createElement(FlexRow, { cx: css$
|
|
2549
|
-
React__default.createElement(StatelessDatePickerBody, Object.assign({ key: "date-picker-body-left", cx: cx$1(css$
|
|
2532
|
+
React__default.createElement(FlexRow, { cx: css$O.bodesWrapper, alignItems: "top" },
|
|
2533
|
+
React__default.createElement(StatelessDatePickerBody, Object.assign({ key: "date-picker-body-left", cx: cx$1(css$O.fromPicker) }, from, { onValueChange: (v) => onBodyValueChange(v, 'from'), onMonthChange: (m) => {
|
|
2550
2534
|
setMonth(m);
|
|
2551
2535
|
}, onViewChange: (v) => setView(v), filter: props.filter, isHoliday: props.isHoliday, renderDay: props.renderDay || renderDay, isDisabled: view !== 'DAY_SELECTION' && activeMonth === 'to' })),
|
|
2552
|
-
React__default.createElement(StatelessDatePickerBody, Object.assign({ key: "date-picker-body-right", cx: cx$1(css$
|
|
2536
|
+
React__default.createElement(StatelessDatePickerBody, Object.assign({ key: "date-picker-body-right", cx: cx$1(css$O.toPicker) }, to, { onValueChange: (v) => onBodyValueChange(v, 'to'), onMonthChange: (m) => {
|
|
2553
2537
|
setMonth(m.subtract(1, 'month'));
|
|
2554
2538
|
}, onViewChange: (v) => setView(v), filter: props.filter, renderDay: props.renderDay || renderDay, isHoliday: props.isHoliday, isDisabled: view !== 'DAY_SELECTION' && activeMonth === 'from' })),
|
|
2555
2539
|
view !== 'DAY_SELECTION' && (React__default.createElement("div", { style: {
|
|
2556
2540
|
left: activeMonth === 'from' ? '50%' : undefined,
|
|
2557
2541
|
right: activeMonth === 'to' ? '50%' : undefined,
|
|
2558
|
-
}, className: css$
|
|
2542
|
+
}, className: css$O.blocker }))),
|
|
2559
2543
|
props.presets && renderPresets(props.presets)),
|
|
2560
2544
|
props.renderFooter && props.renderFooter()))));
|
|
2561
2545
|
}
|
|
@@ -2575,7 +2559,7 @@ const getDayCX = (day, selectedDate) => {
|
|
|
2575
2559
|
return [cx$1(inRange && uuiRangeDatePickerBody.inRange, isFirst && uuiRangeDatePickerBody.firstDayInRangeWrapper, !inRange && isFirst && uuiRangeDatePickerBody.lastDayInRangeWrapper, isLast && uuiRangeDatePickerBody.lastDayInRangeWrapper, !inRange && isLast && uuiRangeDatePickerBody.firstDayInRangeWrapper, (dayValue === fromValue || dayValue === toValue) && uuiDaySelection.selectedDay)];
|
|
2576
2560
|
};
|
|
2577
2561
|
|
|
2578
|
-
var css$
|
|
2562
|
+
var css$N = {"dropdown-container":"_8EGDM5","dropdownContainer":"_8EGDM5"};
|
|
2579
2563
|
|
|
2580
2564
|
const modifiers = [{
|
|
2581
2565
|
name: 'offset',
|
|
@@ -2587,6 +2571,7 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
2587
2571
|
const context = useUuiContext();
|
|
2588
2572
|
const [isOpen, setIsOpen] = useState(false);
|
|
2589
2573
|
const [inFocus, setInFocus] = useState(null);
|
|
2574
|
+
const targetRef = React__default.useRef(null);
|
|
2590
2575
|
const onValueChange = (newValue) => {
|
|
2591
2576
|
const fromChanged = (value === null || value === void 0 ? void 0 : value.from) !== (newValue === null || newValue === void 0 ? void 0 : newValue.from);
|
|
2592
2577
|
const toChanged = (value === null || value === void 0 ? void 0 : value.to) !== (newValue === null || newValue === void 0 ? void 0 : newValue.to);
|
|
@@ -2602,6 +2587,10 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
2602
2587
|
var _a;
|
|
2603
2588
|
setIsOpen(newIsOpen);
|
|
2604
2589
|
(_a = props.onOpenChange) === null || _a === void 0 ? void 0 : _a.call(props, newIsOpen);
|
|
2590
|
+
if (!inFocus && newIsOpen) {
|
|
2591
|
+
setInFocus('from');
|
|
2592
|
+
targetRef.current.querySelector('.uui-input').focus();
|
|
2593
|
+
}
|
|
2605
2594
|
};
|
|
2606
2595
|
const onBodyValueChange = (newValue) => {
|
|
2607
2596
|
var _a;
|
|
@@ -2617,7 +2606,10 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
2617
2606
|
};
|
|
2618
2607
|
const renderBody = (renderProps) => {
|
|
2619
2608
|
var _a;
|
|
2620
|
-
return (React__default.createElement(DropdownContainer, Object.assign({}, renderProps, { cx: cx(css$
|
|
2609
|
+
return (React__default.createElement(DropdownContainer, Object.assign({}, renderProps, { cx: cx(css$N.dropdownContainer), shards: [targetRef], returnFocus: (node) => {
|
|
2610
|
+
console.log('lock', node);
|
|
2611
|
+
return true;
|
|
2612
|
+
} }),
|
|
2621
2613
|
React__default.createElement(FlexRow, null,
|
|
2622
2614
|
React__default.createElement(RangeDatePickerBody, { cx: cx(props.bodyCx), value: {
|
|
2623
2615
|
selectedDate: _value,
|
|
@@ -2627,33 +2619,83 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
2627
2619
|
return (_a = props.renderFooter) === null || _a === void 0 ? void 0 : _a.call(props, value);
|
|
2628
2620
|
}, isHoliday: props.isHoliday, rawProps: (_a = props.rawProps) === null || _a === void 0 ? void 0 : _a.body }))));
|
|
2629
2621
|
};
|
|
2622
|
+
const handleEscape = (e) => {
|
|
2623
|
+
if (e.key === 'Escape' && isOpen) {
|
|
2624
|
+
e.preventDefault();
|
|
2625
|
+
onOpenChange(false);
|
|
2626
|
+
}
|
|
2627
|
+
};
|
|
2630
2628
|
return (React__default.createElement(Dropdown$1, { renderTarget: (renderProps) => {
|
|
2631
2629
|
var _a;
|
|
2632
|
-
return ((_a = props.renderTarget) === null || _a === void 0 ? void 0 : _a.call(props, renderProps)) || (React__default.createElement(RangeDatePickerInput, { id: props.id, ref: renderProps.ref, cx: props.inputCx, onClick: renderProps.
|
|
2630
|
+
return ((_a = props.renderTarget) === null || _a === void 0 ? void 0 : _a.call(props, renderProps)) || (React__default.createElement(RangeDatePickerInput, { id: props.id, ref: (node) => { renderProps.ref(node); targetRef.current = node; }, cx: props.inputCx, onClick: () => renderProps.toggleDropdownOpening(true), isDisabled: props.isDisabled, isInvalid: props.isInvalid, isReadonly: props.isReadonly, size: props.size, getPlaceholder: props.getPlaceholder, disableClear: props.disableClear, rawProps: props.rawProps, inFocus: inFocus, value: value, format: format, onValueChange: onValueChange, onFocusInput: (e, type) => {
|
|
2633
2631
|
var _a;
|
|
2634
2632
|
(_a = props.onFocus) === null || _a === void 0 ? void 0 : _a.call(props, e, type);
|
|
2635
2633
|
setInFocus(type);
|
|
2636
|
-
}, onBlurInput: (e, type) => { var _a; (_a = props.onBlur) === null || _a === void 0 ? void 0 : _a.call(props, e, type); !isOpen && setInFocus(null); } }));
|
|
2634
|
+
}, onBlurInput: (e, type) => { var _a; (_a = props.onBlur) === null || _a === void 0 ? void 0 : _a.call(props, e, type); !isOpen && setInFocus(null); }, onKeyDown: handleEscape }));
|
|
2637
2635
|
}, renderBody: (renderProps) => renderBody(renderProps), onValueChange: (v) => onOpenChange(v), value: isOpen, modifiers: modifiers, placement: props.placement, forwardedRef: ref }));
|
|
2638
2636
|
}
|
|
2639
2637
|
const RangeDatePicker = /* @__PURE__ */React__default.forwardRef(RangeDatePickerComponent);
|
|
2640
2638
|
|
|
2641
|
-
var css$
|
|
2639
|
+
var css$M = {"root":"amJHPU","blocker":"J0ttvg","marker":"Us8vLQ","top":"f29Dpz","bottom":"CWYmdx","left":"QNc0Hq","right":"kS015b","inside":"hnFgUs"};
|
|
2642
2640
|
|
|
2643
2641
|
function DropMarker(props) {
|
|
2644
2642
|
return props.isDndInProgress
|
|
2645
2643
|
? (React.createElement(React.Fragment, null,
|
|
2646
|
-
props.enableBlocker && React.createElement("div", { className: css$
|
|
2644
|
+
props.enableBlocker && React.createElement("div", { className: css$M.blocker }),
|
|
2647
2645
|
React.createElement("div", { className: cx([
|
|
2648
|
-
css$
|
|
2649
|
-
css$
|
|
2650
|
-
css$
|
|
2646
|
+
css$M.root,
|
|
2647
|
+
css$M.marker,
|
|
2648
|
+
css$M[props.position],
|
|
2651
2649
|
props === null || props === void 0 ? void 0 : props.cx,
|
|
2652
2650
|
]) })))
|
|
2653
2651
|
: null;
|
|
2654
2652
|
}
|
|
2655
2653
|
|
|
2656
|
-
var css$
|
|
2654
|
+
var css$L = {"root":"pxbV8N","line-height":"J7DtPY","lineHeight":"J7DtPY","font-size":"bDGiEa","fontSize":"bDGiEa"};
|
|
2655
|
+
|
|
2656
|
+
function applyTextMods(mods) {
|
|
2657
|
+
return [
|
|
2658
|
+
css$L.root,
|
|
2659
|
+
'uui-text',
|
|
2660
|
+
`uui-size-${mods.size || settings.sizes.defaults.text}`,
|
|
2661
|
+
(mods.size !== 'none' || mods.lineHeight) && css$L.lineHeight,
|
|
2662
|
+
(mods.size !== 'none' || mods.fontSize) && css$L.fontSize,
|
|
2663
|
+
`uui-color-${mods.color || 'primary'}`,
|
|
2664
|
+
`uui-font-weight-${mods.fontWeight || '400'}`,
|
|
2665
|
+
`uui-font-style-${mods.fontStyle || 'normal'}`,
|
|
2666
|
+
'uui-typography',
|
|
2667
|
+
];
|
|
2668
|
+
}
|
|
2669
|
+
const Text = /* @__PURE__ */withMods(uuiComponents.Text, applyTextMods, (props) => {
|
|
2670
|
+
var _a;
|
|
2671
|
+
const style = ((_a = props === null || props === void 0 ? void 0 : props.rawProps) === null || _a === void 0 ? void 0 : _a.style) || {};
|
|
2672
|
+
props.fontSize && (style['--uui-text-font-size'] = `${props.fontSize}px`);
|
|
2673
|
+
props.lineHeight && (style['--uui-text-line-height'] = `${props.lineHeight}px`);
|
|
2674
|
+
return {
|
|
2675
|
+
rawProps: Object.assign(Object.assign({}, props === null || props === void 0 ? void 0 : props.rawProps), { style: style }),
|
|
2676
|
+
};
|
|
2677
|
+
});
|
|
2678
|
+
|
|
2679
|
+
var css$K = {"root":"xKLHQC","loading-word":"_07302B","loadingWord":"_07302B","animated-loading":"-PDPj9","animatedLoading":"-PDPj9","skeleton_loading":"_1G6SuV","skeletonLoading":"_1G6SuV"};
|
|
2680
|
+
|
|
2681
|
+
const TextPlaceholder = (props) => {
|
|
2682
|
+
const pattern = ' ';
|
|
2683
|
+
const text = React.useMemo(() => {
|
|
2684
|
+
const words = [];
|
|
2685
|
+
for (let i = 0; i < (props.wordsCount || 1); i++) {
|
|
2686
|
+
const lengthWord = Math.floor(Math.random() * 10 + 8);
|
|
2687
|
+
words.push(pattern.repeat(lengthWord));
|
|
2688
|
+
}
|
|
2689
|
+
return words;
|
|
2690
|
+
}, [props.wordsCount]);
|
|
2691
|
+
return (React.createElement("div", Object.assign({ "aria-busy": true, className: cx(css$K.root, 'uui-text-placeholder') }, props.rawProps), text.map((it, index) => (React.createElement("span", { key: index, className: cx([
|
|
2692
|
+
props.cx, css$K.loadingWord, !props.isNotAnimated && css$K.animatedLoading,
|
|
2693
|
+
]), dangerouslySetInnerHTML: { __html: it } })))));
|
|
2694
|
+
};
|
|
2695
|
+
|
|
2696
|
+
const RichTextView = /* @__PURE__ */withMods(uuiComponents.RichTextView, (mods) => ['uui-typography', `uui-typography-size-${mods.size || '14'}`]);
|
|
2697
|
+
|
|
2698
|
+
var css$J = {"uui-typography":"IUYT8q","uuiTypography":"IUYT8q","hero-header":"v9yLmi","heroHeader":"v9yLmi","promo-header":"pMtXMA","promoHeader":"pMtXMA","uui-critical":"hCnP9W","uuiCritical":"hCnP9W","uui-info":"wrElQl","uuiInfo":"wrElQl","uui-success":"VFcyTw","uuiSuccess":"VFcyTw","uui-warning":"Jm06oh","uuiWarning":"Jm06oh","uui-highlight":"IxaFVr","uuiHighlight":"IxaFVr","uui-typography-size-12":"_5GQdfx","uuiTypographySize12":"_5GQdfx","uui-typography-size-14":"-t8c-f","uuiTypographySize14":"-t8c-f","uui-typography-size-16":"ZNNh2J","uuiTypographySize16":"ZNNh2J","modal":"yf4IP9","search-wrapper":"ul4kUn","searchWrapper":"ul4kUn","no-data":"AEf2C6","noData":"AEf2C6","type-search-to-load-size-24":"nRjCYN","typeSearchToLoadSize24":"nRjCYN"};
|
|
2657
2699
|
|
|
2658
2700
|
class DataPickerBody extends PickerBodyBase {
|
|
2659
2701
|
constructor() {
|
|
@@ -2701,41 +2743,38 @@ class DataPickerBody extends PickerBodyBase {
|
|
|
2701
2743
|
}
|
|
2702
2744
|
}
|
|
2703
2745
|
|
|
2704
|
-
var css$I = {"footer":"
|
|
2746
|
+
var css$I = {"footer":"jsrYpw"};
|
|
2705
2747
|
|
|
2706
2748
|
function DataPickerFooterImpl(props) {
|
|
2707
2749
|
const { search, clearSelection, view, showSelected, selectionMode, isSearchTooShort, } = props;
|
|
2708
2750
|
const size = isMobile() ? settings.sizes.pickerInput.body.mobile.footer.linkButton : props.size;
|
|
2709
2751
|
const hasSelection = view.getSelectedRowsCount() > 0;
|
|
2710
2752
|
const rowsCount = view.getListProps().rowsCount;
|
|
2711
|
-
const isEmptyRowsAndHasNoSelection = (rowsCount === 0 && !hasSelection);
|
|
2712
2753
|
const isSinglePicker = selectionMode === 'single';
|
|
2713
2754
|
const clearAllText = i18n.pickerInput.clearSelectionButton;
|
|
2714
2755
|
const clearSingleText = i18n.pickerInput.clearSelectionButtonSingle;
|
|
2715
2756
|
const selectAllText = i18n.pickerInput.selectAllButton;
|
|
2716
|
-
|
|
2717
|
-
const
|
|
2718
|
-
const
|
|
2757
|
+
const isSearching = search === null || search === void 0 ? void 0 : search.length;
|
|
2758
|
+
const hideFooter = isSearchTooShort || rowsCount === 0 || isSearching || (isSinglePicker && props.disableClear);
|
|
2759
|
+
const showClear = !props.disableClear && (isSinglePicker ? true : (!view.selectAll || hasSelection));
|
|
2719
2760
|
return !hideFooter && (React__default.createElement(FlexRow, { cx: css$I.footer },
|
|
2720
2761
|
!isSinglePicker && (React__default.createElement(Switch, { size: settings.sizes.pickerInput.body.dropdown.footer.switch[props.size], value: showSelected.value, isDisabled: !hasSelection, onValueChange: showSelected.onValueChange, label: i18n.pickerInput.showOnlySelectedLabel })),
|
|
2721
2762
|
React__default.createElement(FlexSpacer, null),
|
|
2722
2763
|
React__default.createElement(FlexCell, { width: "auto", alignSelf: "center" },
|
|
2723
|
-
view.selectAll && (React__default.createElement(LinkButton, {
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
'aria-label': isSinglePicker ? clearSingleText : clearAllText,
|
|
2728
|
-
} })))));
|
|
2764
|
+
view.selectAll && !hasSelection && (React__default.createElement(LinkButton, { key: "SelectAll/ClearAll" // We use the same key for these buttons, because we need to leave focus on it after click, so we need to react doesn't remount it.
|
|
2765
|
+
, size: size, caption: selectAllText, onClick: () => view.selectAll.onValueChange(true) })),
|
|
2766
|
+
showClear && (React__default.createElement(LinkButton, { key: "SelectAll/ClearAll" // We use the same key for these buttons, because we need to leave focus on it after click, so we need to react doesn't remount it. Basically it's the same button, but with different caption.
|
|
2767
|
+
, size: size, caption: isSinglePicker ? clearSingleText : clearAllText, onClick: clearSelection, isDisabled: !hasSelection })))));
|
|
2729
2768
|
}
|
|
2730
2769
|
const DataPickerFooter = /* @__PURE__ */React__default.memo(DataPickerFooterImpl);
|
|
2731
2770
|
|
|
2732
|
-
var css$H = {"header":"
|
|
2771
|
+
var css$H = {"header":"_9-GjJD","title":"wlsnYy","close":"JSP4n1"};
|
|
2733
2772
|
|
|
2734
2773
|
const DataPickerHeaderImpl = (props) => {
|
|
2735
2774
|
const title = props.title && typeof props.title === 'string' ? props.title.charAt(0).toUpperCase() + props.title.slice(1) : '';
|
|
2736
2775
|
return (React__default.createElement(FlexRow, { alignItems: "center", borderBottom: true, cx: css$H.header },
|
|
2737
2776
|
React__default.createElement(Text, { size: settings.sizes.pickerInput.body.mobile.header.titleSize, cx: css$H.title }, title),
|
|
2738
|
-
React__default.createElement(IconButton, { icon: ForwardRef$
|
|
2777
|
+
React__default.createElement(IconButton, { icon: ForwardRef$R, onClick: () => { var _a; return (_a = props.close) === null || _a === void 0 ? void 0 : _a.call(props); }, cx: css$H.close })));
|
|
2739
2778
|
};
|
|
2740
2779
|
const DataPickerHeader = /* @__PURE__ */React__default.memo(DataPickerHeaderImpl);
|
|
2741
2780
|
|
|
@@ -2754,7 +2793,7 @@ var SvgNotificationDoneFill = function SvgNotificationDoneFill(props, ref) {
|
|
|
2754
2793
|
};
|
|
2755
2794
|
var ForwardRef$s = /*#__PURE__*/forwardRef(SvgNotificationDoneFill);
|
|
2756
2795
|
|
|
2757
|
-
var css$G = {"uui-typography":"
|
|
2796
|
+
var css$G = {"uui-typography":"ftoqeT","uuiTypography":"ftoqeT","hero-header":"TZXufz","heroHeader":"TZXufz","promo-header":"rKVz6H","promoHeader":"rKVz6H","uui-critical":"ttj0oX","uuiCritical":"ttj0oX","uui-info":"p-u4HK","uuiInfo":"p-u4HK","uui-success":"j8uB7S","uuiSuccess":"j8uB7S","uui-warning":"Enc7KB","uuiWarning":"Enc7KB","uui-highlight":"NnPErn","uuiHighlight":"NnPErn","uui-typography-size-12":"RXyDR3","uuiTypographySize12":"RXyDR3","uui-typography-size-14":"t9K14N","uuiTypographySize14":"t9K14N","uui-typography-size-16":"s8bzMC","uuiTypographySize16":"s8bzMC","root":"_1XKLH4","align-widgets-top":"_3nFqes","alignWidgetsTop":"_3nFqes","align-widgets-center":"Z7KV92","alignWidgetsCenter":"Z7KV92","icon-container":"CDTwyo","iconContainer":"CDTwyo","loading-cell":"ikZeHN","loadingCell":"ikZeHN","content-wrapper":"r37x-E","contentWrapper":"r37x-E","render-item":"omEOf9","renderItem":"omEOf9","icon-wrapper":"PlP8--","iconWrapper":"PlP8--","icon-default":"BNMDdu","iconDefault":"BNMDdu","selected-mark":"n74ywA","selectedMark":"n74ywA"};
|
|
2758
2797
|
|
|
2759
2798
|
function DataPickerCell(props) {
|
|
2760
2799
|
const ref = React.useRef();
|
|
@@ -2773,7 +2812,7 @@ function DataPickerCell(props) {
|
|
|
2773
2812
|
props.renderItem(props.rowProps.value, props.rowProps),
|
|
2774
2813
|
React.createElement(FlexSpacer, null),
|
|
2775
2814
|
(props.rowProps.isChildrenSelected || props.rowProps.isSelected) && (React.createElement("div", { className: cx$1(css$G.iconWrapper, uuiMod.selected) },
|
|
2776
|
-
React.createElement(IconContainer, { size: settings.sizes.pickerInput.body.dropdown.row.cell.icon[props.size], icon: settings.sizes.pickerInput.body.dropdown.row.cell.isBoldSelectionIcon[props.size] ? ForwardRef$s : ForwardRef$
|
|
2815
|
+
React.createElement(IconContainer, { size: settings.sizes.pickerInput.body.dropdown.row.cell.icon[props.size], icon: settings.sizes.pickerInput.body.dropdown.row.cell.isBoldSelectionIcon[props.size] ? ForwardRef$s : ForwardRef$P, cx: props.rowProps.isChildrenSelected ? css$G.iconDefault : css$G.selectedMark, rawProps: { 'aria-label': props.rowProps.isChildrenSelected
|
|
2777
2816
|
? 'Child is selected'
|
|
2778
2817
|
: 'Selected' } })))));
|
|
2779
2818
|
}
|
|
@@ -2791,7 +2830,7 @@ function DataPickerCell(props) {
|
|
|
2791
2830
|
getWrappedContent()));
|
|
2792
2831
|
}
|
|
2793
2832
|
|
|
2794
|
-
var css$F = {"uui-typography":"
|
|
2833
|
+
var css$F = {"uui-typography":"qkK8TA","uuiTypography":"qkK8TA","hero-header":"pZHAFs","heroHeader":"pZHAFs","promo-header":"Sp2wrG","promoHeader":"Sp2wrG","uui-critical":"sfYtT-","uuiCritical":"sfYtT-","uui-info":"n59E05","uuiInfo":"n59E05","uui-success":"QcXceC","uuiSuccess":"QcXceC","uui-warning":"FzgzHW","uuiWarning":"FzgzHW","uui-highlight":"PSDki4","uuiHighlight":"PSDki4","uui-typography-size-12":"_6JV5dY","uuiTypographySize12":"_6JV5dY","uui-typography-size-14":"XGy1RU","uuiTypographySize14":"XGy1RU","uui-typography-size-16":"_9I-Kmo","uuiTypographySize16":"_9I-Kmo","picker-row":"ECXD70","pickerRow":"ECXD70"};
|
|
2795
2834
|
|
|
2796
2835
|
class DataPickerRow extends React.Component {
|
|
2797
2836
|
constructor() {
|
|
@@ -2805,7 +2844,7 @@ class DataPickerRow extends React.Component {
|
|
|
2805
2844
|
}
|
|
2806
2845
|
}
|
|
2807
2846
|
|
|
2808
|
-
var css$E = {"uui-typography":"
|
|
2847
|
+
var css$E = {"uui-typography":"_5VuYHA","uuiTypography":"_5VuYHA","hero-header":"_9-1GvG","heroHeader":"_9-1GvG","promo-header":"Tnfxa7","promoHeader":"Tnfxa7","uui-critical":"M4jw-f","uuiCritical":"M4jw-f","uui-info":"_9Ytvj0","uuiInfo":"_9Ytvj0","uui-success":"ZVfVIK","uuiSuccess":"ZVfVIK","uui-warning":"_97of9P","uuiWarning":"_97of9P","uui-highlight":"UR2Bzt","uuiHighlight":"UR2Bzt","uui-typography-size-12":"_9s7gCE","uuiTypographySize12":"_9s7gCE","uui-typography-size-14":"_5iY75R","uuiTypographySize14":"_5iY75R","uui-typography-size-16":"nyOC7G","uuiTypographySize16":"nyOC7G","done":"NeYQx4","container":"DvjV1V"};
|
|
2809
2848
|
|
|
2810
2849
|
const PickerBodyMobileView = (props) => {
|
|
2811
2850
|
const isMobileView = isMobile();
|
|
@@ -2839,7 +2878,7 @@ var SvgSearchWithBackground = function SvgSearchWithBackground(props, ref) {
|
|
|
2839
2878
|
};
|
|
2840
2879
|
var ForwardRef$r = /*#__PURE__*/forwardRef(SvgSearchWithBackground);
|
|
2841
2880
|
|
|
2842
|
-
var css$D = {"uui-typography":"
|
|
2881
|
+
var css$D = {"uui-typography":"O2O9Yv","uuiTypography":"O2O9Yv","hero-header":"_08Ld6-","heroHeader":"_08Ld6-","promo-header":"Xl6xgZ","promoHeader":"Xl6xgZ","uui-critical":"VAiTSx","uuiCritical":"VAiTSx","uui-info":"ViaoWI","uuiInfo":"ViaoWI","uui-success":"nqEZPy","uuiSuccess":"nqEZPy","uui-warning":"HPGzrX","uuiWarning":"HPGzrX","uui-highlight":"L2e7vz","uuiHighlight":"L2e7vz","uui-typography-size-12":"qjs--8","uuiTypographySize12":"qjs--8","uui-typography-size-14":"Kvb2CS","uuiTypographySize14":"Kvb2CS","uui-typography-size-16":"OQlShX","uuiTypographySize16":"OQlShX","sub-header-wrapper":"fXUWhf","subHeaderWrapper":"fXUWhf","switch":"hjhh40","no-found-modal-container":"_8MsYtS","noFoundModalContainer":"_8MsYtS","no-found-modal-container-icon":"P3HeZu","noFoundModalContainerIcon":"P3HeZu","no-found-modal-container-text":"NlEvrD","noFoundModalContainerText":"NlEvrD"};
|
|
2843
2882
|
|
|
2844
2883
|
const mergeHighlightRanges = (ranges) => {
|
|
2845
2884
|
const mergedRanges = [];
|
|
@@ -2906,7 +2945,7 @@ const getHighlightedSearchMatches = (str, search) => {
|
|
|
2906
2945
|
return getDecoratedText(str, ranges);
|
|
2907
2946
|
};
|
|
2908
2947
|
|
|
2909
|
-
var css$C = {"root":"
|
|
2948
|
+
var css$C = {"root":"nIqccQ","column-gap":"r-acSI","columnGap":"r-acSI","multiline":"FweHeM","text":"Z-PORy"};
|
|
2910
2949
|
|
|
2911
2950
|
function PickerItem(props) {
|
|
2912
2951
|
var _a;
|
|
@@ -2981,7 +3020,7 @@ function PickerModal(props) {
|
|
|
2981
3020
|
React__default.createElement(ModalFooter, { padding: "24", vPadding: "24" }, props.renderFooter ? props.renderFooter(getFooterProps()) : renderFooter()))));
|
|
2982
3021
|
}
|
|
2983
3022
|
|
|
2984
|
-
var css$B = {"tooltip":"
|
|
3023
|
+
var css$B = {"tooltip":"gCXaJa"};
|
|
2985
3024
|
|
|
2986
3025
|
const PickerTogglerTag = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
2987
3026
|
var _a;
|
|
@@ -2996,7 +3035,7 @@ const PickerTogglerTag = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
2996
3035
|
}
|
|
2997
3036
|
});
|
|
2998
3037
|
|
|
2999
|
-
var css$A = {"uui-typography":"
|
|
3038
|
+
var css$A = {"uui-typography":"zvw7k8","uuiTypography":"zvw7k8","hero-header":"sHkmMR","heroHeader":"sHkmMR","promo-header":"xjS5jn","promoHeader":"xjS5jn","uui-critical":"IhPZ3p","uuiCritical":"IhPZ3p","uui-info":"vMlzMW","uuiInfo":"vMlzMW","uui-success":"_8Xh-jv","uuiSuccess":"_8Xh-jv","uui-warning":"VzeSu9","uuiWarning":"VzeSu9","uui-highlight":"UPo2Zc","uuiHighlight":"UPo2Zc","uui-typography-size-12":"gwNjwH","uuiTypographySize12":"gwNjwH","uui-typography-size-14":"SjKGPM","uuiTypographySize14":"SjKGPM","uui-typography-size-16":"sBE35t","uuiTypographySize16":"sBE35t","root":"ShPHNh","mode-form":"JFKtBt","modeForm":"JFKtBt","mode-cell":"FfkBal","modeCell":"FfkBal","mode-inline":"CI1XLX","modeInline":"CI1XLX"};
|
|
3000
3039
|
|
|
3001
3040
|
const defaultMode = EditMode.FORM;
|
|
3002
3041
|
function applyPickerTogglerMods(mods) {
|
|
@@ -3093,7 +3132,7 @@ function PickerInputComponent(_a, ref) {
|
|
|
3093
3132
|
}
|
|
3094
3133
|
const PickerInput = /* @__PURE__ */React__default.forwardRef(PickerInputComponent);
|
|
3095
3134
|
|
|
3096
|
-
var css$z = {"row":"
|
|
3135
|
+
var css$z = {"row":"l7xfMW"};
|
|
3097
3136
|
|
|
3098
3137
|
function PickerListItem(props) {
|
|
3099
3138
|
var _a;
|
|
@@ -3114,7 +3153,7 @@ function PickerListItem(props) {
|
|
|
3114
3153
|
return (React__default.createElement("div", Object.assign({ role: "option", "aria-selected": props.isSelectable ? props.isSelected : undefined, "aria-busy": props.isLoading, "aria-posinset": props.index + 1 }, (((_a = props.checkbox) === null || _a === void 0 ? void 0 : _a.isVisible) && { 'aria-checked': props.isChecked }), { className: css$z.row }), component));
|
|
3115
3154
|
}
|
|
3116
3155
|
|
|
3117
|
-
var css$y = {"root":"
|
|
3156
|
+
var css$y = {"root":"sGLTPF"};
|
|
3118
3157
|
|
|
3119
3158
|
function PickerList(props) {
|
|
3120
3159
|
const { context, view, onlySelectedView, getName, getEntityName, appendLastSelected, getSelectedIdsArray, buildRowsList, getMaxDefaultItems, dataSourceState, getModalTogglerCaption, } = usePickerList(props);
|
|
@@ -3149,7 +3188,7 @@ function PickerList(props) {
|
|
|
3149
3188
|
}, selectedRows)));
|
|
3150
3189
|
}
|
|
3151
3190
|
|
|
3152
|
-
var css$x = {"uui-typography":"
|
|
3191
|
+
var css$x = {"uui-typography":"jVO8Qs","uuiTypography":"jVO8Qs","hero-header":"rGwWFS","heroHeader":"rGwWFS","promo-header":"bxuVH7","promoHeader":"bxuVH7","uui-critical":"sxAC4T","uuiCritical":"sxAC4T","uui-info":"OPMr-G","uuiInfo":"OPMr-G","uui-success":"_30FFQ9","uuiSuccess":"_30FFQ9","uui-warning":"pdUnGa","uuiWarning":"pdUnGa","uui-highlight":"BhAKXa","uuiHighlight":"BhAKXa","uui-typography-size-12":"s-8Idg","uuiTypographySize12":"s-8Idg","uui-typography-size-14":"_4Soimw","uuiTypographySize14":"_4Soimw","uui-typography-size-16":"GJDr49","uuiTypographySize16":"GJDr49","root":"gF-oYQ","wrapper":"MusYVu","align-widgets-top":"BzCWbF","alignWidgetsTop":"BzCWbF","align-widgets-center":"F4K3Nc","alignWidgetsCenter":"F4K3Nc"};
|
|
3153
3192
|
|
|
3154
3193
|
function DataTableCell(initialProps) {
|
|
3155
3194
|
const props = Object.assign({}, initialProps);
|
|
@@ -3198,7 +3237,7 @@ function DataTableCell(initialProps) {
|
|
|
3198
3237
|
return React.createElement(DataTableCell$1, Object.assign({}, props));
|
|
3199
3238
|
}
|
|
3200
3239
|
|
|
3201
|
-
var css$w = {"uui-typography":"
|
|
3240
|
+
var css$w = {"uui-typography":"IGqwPJ","uuiTypography":"IGqwPJ","hero-header":"-fYpv5","heroHeader":"-fYpv5","promo-header":"O2rMRJ","promoHeader":"O2rMRJ","uui-critical":"FDYQUR","uuiCritical":"FDYQUR","uui-info":"_4XCAy8","uuiInfo":"_4XCAy8","uui-success":"L7GsH0","uuiSuccess":"L7GsH0","uui-warning":"_29k0X2","uuiWarning":"_29k0X2","uui-highlight":"JWZloF","uuiHighlight":"JWZloF","uui-typography-size-12":"ydvdmM","uuiTypographySize12":"ydvdmM","uui-typography-size-14":"Rjq7Mu","uuiTypographySize14":"Rjq7Mu","uui-typography-size-16":"wJcvx4","uuiTypographySize16":"wJcvx4","root":"ZvoHuY"};
|
|
3202
3241
|
|
|
3203
3242
|
// Here we define a single instance of the renderCell function to make DataTableRow#shouldComponentUpdate work.
|
|
3204
3243
|
// As we need our mods to style the cell properly, we extract them from DataTableCellProps.rowProps, which is a hack, but it's reliable enough.
|
|
@@ -3214,7 +3253,7 @@ const DataTableRow = /* @__PURE__ */withMods(DataTableRow$1, ({ borderBottom = t
|
|
|
3214
3253
|
];
|
|
3215
3254
|
}, () => propsMods);
|
|
3216
3255
|
|
|
3217
|
-
var css$v = {"uui-typography":"
|
|
3256
|
+
var css$v = {"uui-typography":"dmA7C-","uuiTypography":"dmA7C-","hero-header":"BUi5JU","heroHeader":"BUi5JU","promo-header":"sN1It-","promoHeader":"sN1It-","uui-critical":"PnOkK5","uuiCritical":"PnOkK5","uui-info":"Exmyma","uuiInfo":"Exmyma","uui-success":"mSL2UK","uuiSuccess":"mSL2UK","uui-warning":"_5uPiJW","uuiWarning":"_5uPiJW","uui-highlight":"MV7G09","uuiHighlight":"MV7G09","uui-typography-size-12":"H8AVPM","uuiTypographySize12":"H8AVPM","uui-typography-size-14":"HrZX2p","uuiTypographySize14":"HrZX2p","uui-typography-size-16":"U-Vk76","uuiTypographySize16":"U-Vk76","sorting-panel-container":"q0XLwx","sortingPanelContainer":"q0XLwx"};
|
|
3218
3257
|
|
|
3219
3258
|
var _path$q;
|
|
3220
3259
|
function _extends$q() { _extends$q = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$q.apply(this, arguments); }
|
|
@@ -3344,7 +3383,7 @@ var SvgNavigationExpandAllOutline = function SvgNavigationExpandAllOutline(props
|
|
|
3344
3383
|
};
|
|
3345
3384
|
var ForwardRef$k = /*#__PURE__*/forwardRef(SvgNavigationExpandAllOutline);
|
|
3346
3385
|
|
|
3347
|
-
var css$u = {"uui-typography":"
|
|
3386
|
+
var css$u = {"uui-typography":"_3iuO1T","uuiTypography":"_3iuO1T","hero-header":"j40-ev","heroHeader":"j40-ev","promo-header":"Ns5Z-W","promoHeader":"Ns5Z-W","uui-critical":"HKTLGG","uuiCritical":"HKTLGG","uui-info":"_2FUPfm","uuiInfo":"_2FUPfm","uui-success":"qtfaki","uuiSuccess":"qtfaki","uui-warning":"yWkRwr","uuiWarning":"yWkRwr","uui-highlight":"gMog6M","uuiHighlight":"gMog6M","uui-typography-size-12":"KaM--N","uuiTypographySize12":"KaM--N","uui-typography-size-14":"vU6ZuN","uuiTypographySize14":"vU6ZuN","uui-typography-size-16":"_5jB1RO","uuiTypographySize16":"_5jB1RO","root":"ihYDgJ","caption-wrapper":"ZXlTl-","captionWrapper":"ZXlTl-","sort-icon":"R2flhi","sortIcon":"R2flhi","dropdown-icon":"NGYjr-","dropdownIcon":"NGYjr-","infoIcon":"Z-gpMW","resizable":"_0Vy1jM","align-right":"_7GQcgo","alignRight":"_7GQcgo","align-center":"jCQAxD","alignCenter":"jCQAxD","caption":"gydiq9","truncate":"reVv4Y","checkbox":"TA-WDO","icon":"CVU3cC","fold-all-icon":"ZSSI5d","foldAllIcon":"ZSSI5d","cell-tooltip":"_0DOOS6","cellTooltip":"_0DOOS6","upper-case":"czviB3","upperCase":"czviB3","resizing-marker":"NRv4aX","resizingMarker":"NRv4aX","pinned-right":"oZSpBK","pinnedRight":"oZSpBK","draggable":"zVJLb4","ghost":"NjCtB9","is-dragged-out":"ITBRvj","isDraggedOut":"ITBRvj","dnd-marker-left":"CIOrQw","dndMarkerLeft":"CIOrQw","dnd-marker-right":"jHsd9T","dndMarkerRight":"jHsd9T","cell-tooltip-wrapper":"AILd5s","cellTooltipWrapper":"AILd5s","cell-tooltip-text":"XE0itx","cellTooltipText":"XE0itx","tooltip-caption":"-Ejt4B","tooltipCaption":"-Ejt4B","tooltip-info":"qSbWLI","tooltipInfo":"qSbWLI"};
|
|
3348
3387
|
|
|
3349
3388
|
class DataTableHeaderCell extends React.Component {
|
|
3350
3389
|
constructor() {
|
|
@@ -3368,7 +3407,7 @@ class DataTableHeaderCell extends React.Component {
|
|
|
3368
3407
|
React.createElement(Text, { key: "text", fontSize: settings.sizes.dataTable.header.row.cell.columnCaption[this.props.textCase === 'upper' ? 'uppercase' : 'fontSize'], size: settings.sizes.dataTable.header.row.cell.columnCaption.size, cx: captionCx }, this.props.column.caption)),
|
|
3369
3408
|
this.props.column.isSortable && (!this.props.column.renderFilter || this.props.sortDirection) && (React.createElement(IconButton, { key: "sort", cx: cx$1(css$u.icon, css$u.sortIcon, this.props.sortDirection && css$u.sortIconActive, uuiDataTableHeaderCell.uuiTableHeaderSortIcon), color: this.props.sortDirection ? 'neutral' : 'secondary', icon: this.props.sortDirection === 'desc' ? ForwardRef$p : this.props.sortDirection === 'asc' ? ForwardRef$q : ForwardRef$o })),
|
|
3370
3409
|
this.props.isFilterActive && (React.createElement(IconButton, { key: "filter", cx: cx$1(css$u.icon, !this.props.sortDirection && css$u.filterIcon, uuiDataTableHeaderCell.uuiTableHeaderFilterIcon), color: "neutral", icon: ForwardRef$n })),
|
|
3371
|
-
this.props.column.renderFilter && (React.createElement(IconButton, { key: "dropdown", cx: cx$1(css$u.icon, css$u.dropdownIcon, uuiDataTableHeaderCell.uuiTableHeaderDropdownIcon), color: "secondary", icon: this.state.isDropdownOpen ? ForwardRef$m : ForwardRef$
|
|
3410
|
+
this.props.column.renderFilter && (React.createElement(IconButton, { key: "dropdown", cx: cx$1(css$u.icon, css$u.dropdownIcon, uuiDataTableHeaderCell.uuiTableHeaderDropdownIcon), color: "secondary", icon: this.state.isDropdownOpen ? ForwardRef$m : ForwardRef$Q }))));
|
|
3372
3411
|
};
|
|
3373
3412
|
this.renderHeaderCheckbox = () => {
|
|
3374
3413
|
if (this.props.selectAll && this.props.isFirstColumn) {
|
|
@@ -3450,7 +3489,7 @@ var SvgActionSettingsFill = function SvgActionSettingsFill(props, ref) {
|
|
|
3450
3489
|
};
|
|
3451
3490
|
var ForwardRef$j = /*#__PURE__*/forwardRef(SvgActionSettingsFill);
|
|
3452
3491
|
|
|
3453
|
-
var css$t = {"uui-typography":"
|
|
3492
|
+
var css$t = {"uui-typography":"k4fKti","uuiTypography":"k4fKti","hero-header":"BoHshy","heroHeader":"BoHshy","promo-header":"_19w13S","promoHeader":"_19w13S","uui-critical":"Y7fs1l","uuiCritical":"Y7fs1l","uui-info":"pmsLv-","uuiInfo":"pmsLv-","uui-success":"gTtblb","uuiSuccess":"gTtblb","uui-warning":"T701Fo","uuiWarning":"T701Fo","uui-highlight":"vQ0enm","uuiHighlight":"vQ0enm","uui-typography-size-12":"mYz2ma","uuiTypographySize12":"mYz2ma","uui-typography-size-14":"rY4G8o","uuiTypographySize14":"rY4G8o","uui-typography-size-16":"QJnMR-","uuiTypographySize16":"QJnMR-","root":"LaGAoE"};
|
|
3454
3493
|
|
|
3455
3494
|
const DataTableHeaderRow = /* @__PURE__ */withMods(DataTableHeaderRow$1, () => [css$t.root, 'uui-dt-vars'], (mods) => ({
|
|
3456
3495
|
renderCell: (props) => (React.createElement(DataTableHeaderCell, Object.assign({}, props, { size: mods.size, textCase: mods.textCase || 'normal', key: props.column.key, columnsGap: mods.columnsGap }))),
|
|
@@ -3462,7 +3501,7 @@ const UUI_FILTERS_PANEL_ADD_BUTTON_BODY = 'uui-filters-panel-add-button-body';
|
|
|
3462
3501
|
const UUI_FILTERS_PANEL_ITEM_BODY = 'uui-filters-panel-item-body';
|
|
3463
3502
|
const UUI_FILTERS_PANEL_ITEM_TOGGLER = 'uui-filters-panel-item-toggler';
|
|
3464
3503
|
|
|
3465
|
-
var css$s = {"uui-typography":"
|
|
3504
|
+
var css$s = {"uui-typography":"xGnsmL","uuiTypography":"xGnsmL","hero-header":"_1-qR6o","heroHeader":"_1-qR6o","promo-header":"JDIkUb","promoHeader":"JDIkUb","uui-critical":"HI4nkh","uuiCritical":"HI4nkh","uui-info":"Ucvnh-","uuiInfo":"Ucvnh-","uui-success":"iKXEjC","uuiSuccess":"iKXEjC","uui-warning":"bKQdHk","uuiWarning":"bKQdHk","uui-highlight":"KOBzRx","uuiHighlight":"KOBzRx","uui-typography-size-12":"zTNMsc","uuiTypographySize12":"zTNMsc","uui-typography-size-14":"n9Dp-E","uuiTypographySize14":"n9Dp-E","uui-typography-size-16":"fphABN","uuiTypographySize16":"fphABN","root":"luZ9eH","title-wrapper":"-exLGv","titleWrapper":"-exLGv","title":"zK2IHF","text-wrapper":"NZXbcM","textWrapper":"NZXbcM","selection":"rlxmpy","postfix":"Bee87m","selected":"xBXX2o"};
|
|
3466
3505
|
|
|
3467
3506
|
const defaultSize = '36';
|
|
3468
3507
|
const FilterPanelItemToggler = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
@@ -3640,7 +3679,7 @@ function FilterRangeDatePickerBody(props) {
|
|
|
3640
3679
|
React__default.createElement(LinkButton, { isDisabled: !value.from && !value.to, caption: i18n.pickerModal.clearAllButton, onClick: () => onValueChange(defaultRangeValue) })))));
|
|
3641
3680
|
}
|
|
3642
3681
|
|
|
3643
|
-
var css$r = {"container":"
|
|
3682
|
+
var css$r = {"container":"_35-Hf5"};
|
|
3644
3683
|
|
|
3645
3684
|
function FilterNumericBody(props) {
|
|
3646
3685
|
var _a, _b;
|
|
@@ -3738,7 +3777,7 @@ var SvgActionDeleteOutline = function SvgActionDeleteOutline(props, ref) {
|
|
|
3738
3777
|
};
|
|
3739
3778
|
var ForwardRef$i = /*#__PURE__*/forwardRef(SvgActionDeleteOutline);
|
|
3740
3779
|
|
|
3741
|
-
var css$q = {"uui-typography":"
|
|
3780
|
+
var css$q = {"uui-typography":"LYkD-U","uuiTypography":"LYkD-U","hero-header":"_3SCLv0","heroHeader":"_3SCLv0","promo-header":"ao5Iz1","promoHeader":"ao5Iz1","uui-critical":"geIe9N","uuiCritical":"geIe9N","uui-info":"xwIHTE","uuiInfo":"xwIHTE","uui-success":"RhWIe2","uuiSuccess":"RhWIe2","uui-warning":"mDunoL","uuiWarning":"mDunoL","uui-highlight":"jVO1Nd","uuiHighlight":"jVO1Nd","uui-typography-size-12":"cab24Y","uuiTypographySize12":"cab24Y","uui-typography-size-14":"_6P1lzN","uuiTypographySize14":"_6P1lzN","uui-typography-size-16":"_1gYEzH","uuiTypographySize16":"_1gYEzH","header":"B-vrqc","removeButton":"lA0D3a","with-search":"_9nNXLs","withSearch":"_9nNXLs"};
|
|
3742
3781
|
|
|
3743
3782
|
function useView(props, value) {
|
|
3744
3783
|
const forceUpdate = useForceUpdate();
|
|
@@ -4059,7 +4098,7 @@ function FiltersToolbarImpl(props) {
|
|
|
4059
4098
|
}
|
|
4060
4099
|
const FiltersPanel = /* @__PURE__ */React__default.memo(FiltersToolbarImpl);
|
|
4061
4100
|
|
|
4062
|
-
var css$p = {"divider":"
|
|
4101
|
+
var css$p = {"divider":"_3fkZWS","dropdownDeleteIcon":"XkxKNw","presetsWrapper":"FOdokW","addPresetContainer":"QT3CDN","dropContainer":"iQynkI"};
|
|
4063
4102
|
|
|
4064
4103
|
var _path$g;
|
|
4065
4104
|
function _extends$g() { _extends$g = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$g.apply(this, arguments); }
|
|
@@ -4172,7 +4211,7 @@ var SvgContentLinkOutline = function SvgContentLinkOutline(props, ref) {
|
|
|
4172
4211
|
};
|
|
4173
4212
|
var ForwardRef$a = /*#__PURE__*/forwardRef(SvgContentLinkOutline);
|
|
4174
4213
|
|
|
4175
|
-
var css$o = {"delete-button":"
|
|
4214
|
+
var css$o = {"delete-button":"VfW9p1","deleteButton":"VfW9p1","tab-button":"GMxFqX","tabButton":"GMxFqX","targetOpen":"y0OpGE"};
|
|
4176
4215
|
|
|
4177
4216
|
function PresetActionsDropdown(props) {
|
|
4178
4217
|
const { uuiNotifications } = useUuiContext();
|
|
@@ -4213,12 +4252,14 @@ function PresetActionsDropdown(props) {
|
|
|
4213
4252
|
const isRenameAvailable = props.preset.id === props.activePresetId && !isReadonlyPreset;
|
|
4214
4253
|
return (React__default.createElement(DropdownMenuBody, Object.assign({}, dropdownProps),
|
|
4215
4254
|
isPresetChanged && (React__default.createElement(React__default.Fragment, null,
|
|
4216
|
-
!isReadonlyPreset && (React__default.createElement(DropdownMenuButton, { key: `${props.preset.id}-save-in-current`, icon: ForwardRef$f, caption: "Save in current", onClick: saveInCurrentHandler })),
|
|
4217
|
-
React__default.createElement(DropdownMenuButton, { key: `${props.preset.id}-save-as-new`, icon: ForwardRef$e, caption: "Save as new",
|
|
4218
|
-
|
|
4255
|
+
!isReadonlyPreset && (React__default.createElement(DropdownMenuButton, { key: `${props.preset.id}-save-in-current`, icon: ForwardRef$f, caption: "Save in current", onClick: () => { dropdownProps.onClose(); saveInCurrentHandler(); } })),
|
|
4256
|
+
React__default.createElement(DropdownMenuButton, { key: `${props.preset.id}-save-as-new`, icon: ForwardRef$e, caption: "Save as new",
|
|
4257
|
+
// We add setTimeout to call addPreset after dropdown will be closed, since dropdown has focus lock, and it broke autofocus on add new preset input
|
|
4258
|
+
onClick: () => { dropdownProps.onClose(); setTimeout(() => props.addPreset(), 0); } }),
|
|
4259
|
+
React__default.createElement(DropdownMenuButton, { key: `${props.preset.id}-discard`, icon: ForwardRef$d, caption: "Discard all changes", onClick: () => { dropdownProps.onClose(); discardAllChangesHandler(); } }),
|
|
4219
4260
|
React__default.createElement(DropdownMenuSplitter, { key: "discard-splitter" }))),
|
|
4220
4261
|
isRenameAvailable && (React__default.createElement(DropdownMenuButton, { key: `${props.preset.id}-rename`, icon: ForwardRef$b, caption: "Rename", onClick: props.renamePreset })),
|
|
4221
|
-
React__default.createElement(DropdownMenuButton, { key: `${props.preset.id}-duplicate`, icon: ForwardRef$c, caption: "Duplicate", onClick: duplicateHandler }),
|
|
4262
|
+
React__default.createElement(DropdownMenuButton, { key: `${props.preset.id}-duplicate`, icon: ForwardRef$c, caption: "Duplicate", onClick: () => { dropdownProps.onClose(); duplicateHandler(); } }),
|
|
4222
4263
|
React__default.createElement(DropdownMenuButton, { key: `${props.preset.id}-copyLink`, icon: ForwardRef$a, caption: "Copy Link", onClick: copyUrlToClipboard }),
|
|
4223
4264
|
!isReadonlyPreset && (React__default.createElement(React__default.Fragment, null,
|
|
4224
4265
|
React__default.createElement(DropdownMenuSplitter, { key: "delete-splitter" }),
|
|
@@ -4230,7 +4271,7 @@ function PresetActionsDropdown(props) {
|
|
|
4230
4271
|
return (React__default.createElement(Dropdown, { renderBody: renderBody, renderTarget: renderTarget, placement: "bottom-end", modifiers: [{ name: 'offset', options: { offset: [0, 22] } }] }));
|
|
4231
4272
|
}
|
|
4232
4273
|
|
|
4233
|
-
var css$n = {"preset-input-cell":"
|
|
4274
|
+
var css$n = {"preset-input-cell":"BwjaAV","presetInputCell":"BwjaAV","preset-input":"iySDJT","presetInput":"iySDJT"};
|
|
4234
4275
|
|
|
4235
4276
|
const UUI_PRESETS_PANEL_ADD_BUTTON = 'uui-presets-panel-add-button';
|
|
4236
4277
|
const UUI_PRESETS_PANEL_MORE_BUTTON = 'uui-presets-panel-more-button';
|
|
@@ -4263,7 +4304,7 @@ function PresetInput(props) {
|
|
|
4263
4304
|
React__default.createElement(TextInput, { cx: css$n.presetInput, onValueChange: setPresetCaption, value: presetCaption, onCancel: cancelActionHandler, onAccept: acceptActionHandler, onBlur: newPresetOnBlurHandler, autoFocus: true, maxLength: 50, isReadonly: readonly })));
|
|
4264
4305
|
}
|
|
4265
4306
|
|
|
4266
|
-
var css$m = {"preset":"
|
|
4307
|
+
var css$m = {"preset":"_6X5y3z","activePreset":"tSWayU"};
|
|
4267
4308
|
|
|
4268
4309
|
function Preset(props) {
|
|
4269
4310
|
const [isRenamePreset, setIsRenamePreset] = useState(false);
|
|
@@ -4281,7 +4322,8 @@ function Preset(props) {
|
|
|
4281
4322
|
return props.updatePreset(newPreset);
|
|
4282
4323
|
}, [props.preset]);
|
|
4283
4324
|
const isPresetActive = props.activePresetId === props.preset.id;
|
|
4284
|
-
|
|
4325
|
+
const PresetActionsDropdownComponent = useCallback(() => React__default.createElement(PresetActionsDropdown, Object.assign({ renamePreset: setPresetForRename }, props)), [props.preset, props.tableState, props.activePresetId]);
|
|
4326
|
+
return (React__default.createElement(FlexCell, { key: props.preset.id, alignSelf: "center", width: "auto" }, isRenamePreset ? (React__default.createElement(PresetInput, { onCancel: cancelRenamePreset, onSuccess: handlePresetRename, preset: props.preset })) : (React__default.createElement(TabButton, { caption: props.preset.name, onClick: !isPresetActive && choosePresetHandler, cx: [css$m.preset, isPresetActive && css$m.activePreset, UUI_PRESETS_PANEL_PRESET], size: "60", withNotify: isPresetActive && props.hasPresetChanged(props.preset), icon: PresetActionsDropdownComponent, iconPosition: "right", isLinkActive: isPresetActive }))));
|
|
4285
4327
|
}
|
|
4286
4328
|
|
|
4287
4329
|
var _path$9;
|
|
@@ -4437,7 +4479,7 @@ var SvgTableGroupColumnRightFill = function SvgTableGroupColumnRightFill(props,
|
|
|
4437
4479
|
};
|
|
4438
4480
|
var ForwardRef$6 = /*#__PURE__*/forwardRef(SvgTableGroupColumnRightFill);
|
|
4439
4481
|
|
|
4440
|
-
var css$l = {"unpin-icon":"
|
|
4482
|
+
var css$l = {"unpin-icon":"V7-RQt","unpinIcon":"V7-RQt","pin-toggler-icon":"bkr42U","pinTogglerIcon":"bkr42U"};
|
|
4441
4483
|
|
|
4442
4484
|
function PinIconButton(props) {
|
|
4443
4485
|
const i18nLocal = i18n.tables.columnsConfigurationModal;
|
|
@@ -4496,7 +4538,7 @@ var SvgActionDragIndicator18 = function SvgActionDragIndicator18(props, ref) {
|
|
|
4496
4538
|
};
|
|
4497
4539
|
var ForwardRef$5 = /*#__PURE__*/forwardRef(SvgActionDragIndicator18);
|
|
4498
4540
|
|
|
4499
|
-
var css$k = {"uui-typography":"
|
|
4541
|
+
var css$k = {"uui-typography":"jXMP5e","uuiTypography":"jXMP5e","hero-header":"cr-s6b","heroHeader":"cr-s6b","promo-header":"pqIj2S","promoHeader":"pqIj2S","uui-critical":"KgXHgt","uuiCritical":"KgXHgt","uui-info":"-wxEps","uuiInfo":"-wxEps","uui-success":"DEQ-Ax","uuiSuccess":"DEQ-Ax","uui-warning":"_9-lghP","uuiWarning":"_9-lghP","uui-highlight":"MhfNOp","uuiHighlight":"MhfNOp","uui-typography-size-12":"U9pdcF","uuiTypographySize12":"U9pdcF","uui-typography-size-14":"VBkyC0","uuiTypographySize14":"VBkyC0","uui-typography-size-16":"r9jeRD","uuiTypographySize16":"r9jeRD","row-wrapper":"jB7yeO","rowWrapper":"jB7yeO","pin-icon-button":"lW3w9a","pinIconButton":"lW3w9a","not-pinned":"KJuJbu","notPinned":"KJuJbu","checkbox":"nu8H4j","drag-handle":"ruAldc","dragHandle":"ruAldc","dnd-disabled":"hJ4IO2","dndDisabled":"hJ4IO2"};
|
|
4500
4542
|
|
|
4501
4543
|
const ColumnRow = /* @__PURE__ */React.memo(function ColumnRow(props) {
|
|
4502
4544
|
const { column } = props;
|
|
@@ -4506,10 +4548,10 @@ const ColumnRow = /* @__PURE__ */React.memo(function ColumnRow(props) {
|
|
|
4506
4548
|
const isPinned = !!pinPosition;
|
|
4507
4549
|
const data = { column, columnConfig };
|
|
4508
4550
|
const renderContent = (dndActorParams) => {
|
|
4509
|
-
const wrapperClasses = cx$1(css$k.rowWrapper, !isPinned && css$k.notPinned, dndActorParams.isDragGhost && uuiDndState.dragGhost);
|
|
4551
|
+
const wrapperClasses = cx$1(css$k.rowWrapper, !isPinned && css$k.notPinned, dndActorParams.isDragGhost && uuiDndState.dragGhost, 'uui-dt-columns-config-row');
|
|
4510
4552
|
const _a = dndActorParams.eventHandlers, { onTouchStart, onPointerDown } = _a, restEventHandlers = __rest(_a, ["onTouchStart", "onPointerDown"]);
|
|
4511
4553
|
const dndActorPropsWithoutRef = __rest(dndActorParams, ["ref"]);
|
|
4512
|
-
return (React.createElement(FlexRow, { size:
|
|
4554
|
+
return (React.createElement(FlexRow, { size: settings.sizes.dataTable.columnsConfigurationModal.columnRow, cx: wrapperClasses, ref: dndActorParams.ref, rawProps: Object.assign({}, restEventHandlers), alignItems: "top" },
|
|
4513
4555
|
React.createElement(DragHandle, { dragHandleIcon: ForwardRef$5, rawProps: { onTouchStart, onPointerDown }, isDisabled: !isDndAllowed, cx: cx$1(css$k.dragHandle, !isDndAllowed && css$k.dndDisabled) }),
|
|
4514
4556
|
React.createElement(Checkbox, { key: column.key, label: props.renderItem ? props.renderItem(props.column) : column.caption, value: isVisible, onValueChange: toggleVisibility, isReadonly: column.isAlwaysVisible || column.isLocked, cx: css$k.checkbox }),
|
|
4515
4557
|
React.createElement(FlexRow, { size: null, cx: css$k.pinIconButton },
|
|
@@ -4519,7 +4561,7 @@ const ColumnRow = /* @__PURE__ */React.memo(function ColumnRow(props) {
|
|
|
4519
4561
|
return (React.createElement(DndActor, { key: column.key, srcData: isDndAllowed && data, dstData: data, canAcceptDrop: onCanAcceptDrop, onDrop: onDrop, render: renderContent }));
|
|
4520
4562
|
});
|
|
4521
4563
|
|
|
4522
|
-
var css$j = {"uui-typography":"
|
|
4564
|
+
var css$j = {"uui-typography":"KgplVh","uuiTypography":"KgplVh","hero-header":"_3z46oz","heroHeader":"_3z46oz","promo-header":"aSfByy","promoHeader":"aSfByy","uui-critical":"-kmN6-","uuiCritical":"-kmN6-","uui-info":"gOCbKz","uuiInfo":"gOCbKz","uui-success":"s-j7wm","uuiSuccess":"s-j7wm","uui-warning":"bRdLIi","uuiWarning":"bRdLIi","uui-highlight":"_5ba1TS","uuiHighlight":"_5ba1TS","uui-typography-size-12":"aSpUTB","uuiTypographySize12":"aSpUTB","uui-typography-size-14":"GFCfcM","uuiTypographySize14":"GFCfcM","uui-typography-size-16":"M7tamb","uuiTypographySize16":"M7tamb","root":"YEj2G-","main-panel":"bvOmDB","mainPanel":"bvOmDB","group":"pJeATj","group-title":"_6xZk0n","groupTitle":"_6xZk0n","group-items":"LtZM3k","groupItems":"LtZM3k","no-data":"fXSkXm","noData":"fXSkXm","no-data-title":"JRLihe","noDataTitle":"JRLihe","no-data-sub-title":"OZtEVV","noDataSubTitle":"OZtEVV","h-divider":"A-jcwa","hDivider":"A-jcwa","search-area":"E01avZ","searchArea":"E01avZ","subgroup-accordion":"YXOcM0","subgroupAccordion":"YXOcM0","subgroup":"V7cY7x","subgroup-title":"k6Ccd1","subgroupTitle":"k6Ccd1"};
|
|
4523
4565
|
|
|
4524
4566
|
const renderGroupTitle = (title, amount) => (React.createElement(FlexRow, { cx: css$j.group },
|
|
4525
4567
|
React.createElement(Text, { size: "none", cx: css$j.groupTitle }, title),
|
|
@@ -4596,7 +4638,7 @@ function SubGroup(props) {
|
|
|
4596
4638
|
const content = (React.createElement(FlexRow, { cx: css$j.groupItems, size: settings.sizes.dataTable.columnsConfigurationModal.columnRow }, items.map((c) => (React.createElement(ColumnRow, { column: c, key: c.key, renderItem: renderItem })))));
|
|
4597
4639
|
if (isCollapsible) {
|
|
4598
4640
|
const renderTitle = (isOpened) => {
|
|
4599
|
-
const toggleIcon = isOpened ? ForwardRef$
|
|
4641
|
+
const toggleIcon = isOpened ? ForwardRef$Q : ForwardRef$v;
|
|
4600
4642
|
return (React.createElement(FlexRow, { cx: cx$1(css$j.subgroup) },
|
|
4601
4643
|
React.createElement(IconContainer, { size: settings.sizes.dataTable.columnsConfigurationModal.subgroupIcon, icon: toggleIcon }),
|
|
4602
4644
|
React.createElement(Text, { size: "none", color: "tertiary", cx: css$j.subgroupTitle }, title)));
|
|
@@ -4608,7 +4650,7 @@ function SubGroup(props) {
|
|
|
4608
4650
|
return null;
|
|
4609
4651
|
}
|
|
4610
4652
|
|
|
4611
|
-
var css$i = {"listContainer":"
|
|
4653
|
+
var css$i = {"listContainer":"GsO4aE","header":"RkAzZ1","group":"kfxV4L","stickyHeader":"yhqWI-"};
|
|
4612
4654
|
|
|
4613
4655
|
const getChildrenAndRest = (row, rows) => {
|
|
4614
4656
|
const firstNotChildIndex = rows.findIndex((other) => other.depth < row.depth || (row.depth === other.depth && other.isPinned));
|
|
@@ -4674,7 +4716,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4674
4716
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4675
4717
|
ref: ref
|
|
4676
4718
|
}, props), /*#__PURE__*/React.createElement("g", {
|
|
4677
|
-
clipPath: "url(#
|
|
4719
|
+
clipPath: "url(#irbdyv3sdbmavwq4s_a)"
|
|
4678
4720
|
}, _path$4 || (_path$4 = /*#__PURE__*/React.createElement("path", {
|
|
4679
4721
|
d: "M150.585 1.535C49.483-11.495 27.481 61.805 45.725 97.481c10.581 20.69-39.64 70.792 17.744 81.468 27.538 5.123 36-13.341 62.433-10.655 35.4 3.6 148.167-4.73 88.349-78.915-31.713-39.335 1.026-79.506-63.666-87.844Z",
|
|
4680
4722
|
fill: "#F5F6FA"
|
|
@@ -4695,7 +4737,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4695
4737
|
d: "M86.786 22.982c-2.55 0-4.965 2.07-4.965 4.552V120.6c0 2.484 2.4 4.572 4.965 4.572h88.101c2.582 0 4.986-2.089 4.986-4.572V27.534c0-2.464-2.418-4.552-4.986-4.552h-88.1Zm-5.793 4.552c0-3.022 2.874-5.38 5.793-5.38h88.101c2.935 0 5.814 2.374 5.814 5.38V120.6c0 3.021-2.86 5.4-5.814 5.4h-88.1c-2.94 0-5.794-2.381-5.794-5.4V27.534Z",
|
|
4696
4738
|
fill: "#1D1E26"
|
|
4697
4739
|
})), /*#__PURE__*/React.createElement("mask", {
|
|
4698
|
-
id: "
|
|
4740
|
+
id: "irbdyvz3fm0pkcuyb_b",
|
|
4699
4741
|
style: {
|
|
4700
4742
|
maskType: "alpha"
|
|
4701
4743
|
},
|
|
@@ -4708,7 +4750,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4708
4750
|
d: "M174.887 125.586h-88.1c-2.752 0-5.38-2.234-5.38-4.986V27.534c0-2.752 2.644-4.966 5.38-4.966h88.1c2.752 0 5.4 2.23 5.4 4.966V120.6c0 2.752-2.632 4.986-5.4 4.986Z",
|
|
4709
4751
|
fill: "#9BDEFF"
|
|
4710
4752
|
}))), _g || (_g = /*#__PURE__*/React.createElement("g", {
|
|
4711
|
-
mask: "url(#
|
|
4753
|
+
mask: "url(#irbdyvz3fm0pkcuyb_b)",
|
|
4712
4754
|
fillRule: "evenodd",
|
|
4713
4755
|
clipRule: "evenodd"
|
|
4714
4756
|
}, /*#__PURE__*/React.createElement("path", {
|
|
@@ -4794,7 +4836,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4794
4836
|
d: "M24.73 96.184a.414.414 0 0 1 .581.06l48.646 59.751a.413.413 0 1 1-.642.523L24.67 96.766a.414.414 0 0 1 .06-.582Z",
|
|
4795
4837
|
fill: "#fff"
|
|
4796
4838
|
}))), _defs || (_defs = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
4797
|
-
id: "
|
|
4839
|
+
id: "irbdyv3sdbmavwq4s_a"
|
|
4798
4840
|
}, /*#__PURE__*/React.createElement("path", {
|
|
4799
4841
|
fill: "#fff",
|
|
4800
4842
|
transform: "translate(.552)",
|
|
@@ -4803,7 +4845,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4803
4845
|
};
|
|
4804
4846
|
var ForwardRef$4 = /*#__PURE__*/forwardRef(SvgEmptyTable);
|
|
4805
4847
|
|
|
4806
|
-
var css$h = {"root":"
|
|
4848
|
+
var css$h = {"root":"GhBgB9","sticky-header":"OGC4-1","stickyHeader":"OGC4-1","no-results":"iRlySz","noResults":"iRlySz","icon":"tvWspJ","title":"Ryu-Nk"};
|
|
4807
4849
|
|
|
4808
4850
|
function DataTable(props) {
|
|
4809
4851
|
var _a, _b, _c, _d;
|
|
@@ -4854,9 +4896,9 @@ function DataTable(props) {
|
|
|
4854
4896
|
} }))));
|
|
4855
4897
|
}
|
|
4856
4898
|
|
|
4857
|
-
var css$g = {"root":"
|
|
4899
|
+
var css$g = {"root":"xeC7LW"};
|
|
4858
4900
|
|
|
4859
|
-
var css$f = {"root":"
|
|
4901
|
+
var css$f = {"root":"oCeI3l","burger-content":"gSsPDf","burgerContent":"gSsPDf"};
|
|
4860
4902
|
|
|
4861
4903
|
var _path$3;
|
|
4862
4904
|
function _extends$3() { _extends$3 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$3.apply(this, arguments); }
|
|
@@ -4878,7 +4920,7 @@ function applyBurgerMods() {
|
|
|
4878
4920
|
}
|
|
4879
4921
|
const Burger = /* @__PURE__ */withMods(Burger$1, applyBurgerMods, () => ({
|
|
4880
4922
|
burgerIcon: ForwardRef$3,
|
|
4881
|
-
crossIcon: ForwardRef$
|
|
4923
|
+
crossIcon: ForwardRef$R,
|
|
4882
4924
|
burgerContentCx: css$f.burgerContent,
|
|
4883
4925
|
}));
|
|
4884
4926
|
|
|
@@ -4899,7 +4941,7 @@ var SvgNavigationArrowDownOutline = function SvgNavigationArrowDownOutline(props
|
|
|
4899
4941
|
};
|
|
4900
4942
|
var ForwardRef$2 = /*#__PURE__*/forwardRef(SvgNavigationArrowDownOutline);
|
|
4901
4943
|
|
|
4902
|
-
var css$e = {"uui-typography":"
|
|
4944
|
+
var css$e = {"uui-typography":"ZzTofE","uuiTypography":"ZzTofE","hero-header":"wKBlr8","heroHeader":"wKBlr8","promo-header":"eIX-Cs","promoHeader":"eIX-Cs","uui-critical":"gpRqdU","uuiCritical":"gpRqdU","uui-info":"FFRb4n","uuiInfo":"FFRb4n","uui-success":"m-T41J","uuiSuccess":"m-T41J","uui-warning":"gzGKsY","uuiWarning":"gzGKsY","uui-highlight":"-dM322","uuiHighlight":"-dM322","uui-typography-size-12":"mAHoK8","uuiTypographySize12":"mAHoK8","uui-typography-size-14":"bRb0Xu","uuiTypographySize14":"bRb0Xu","uui-typography-size-16":"ycDlYm","uuiTypographySize16":"ycDlYm","root":"j4lRmx","button-primary":"_6RLX2S","buttonPrimary":"_6RLX2S","button-secondary":"cmMp21","buttonSecondary":"cmMp21","hasIcon":"_5QJOdw","dropdown":"_6l0Nke"};
|
|
4903
4945
|
|
|
4904
4946
|
const BurgerButton = /* @__PURE__ */withMods(Button$1, (props) => [
|
|
4905
4947
|
css$e.root,
|
|
@@ -4910,13 +4952,13 @@ const BurgerButton = /* @__PURE__ */withMods(Button$1, (props) => [
|
|
|
4910
4952
|
props.icon && css$e.hasIcon,
|
|
4911
4953
|
], () => ({ dropdownIcon: ForwardRef$2, dropdownIconPosition: 'left', role: 'menuitem' }));
|
|
4912
4954
|
|
|
4913
|
-
var css$d = {"search-input":"
|
|
4955
|
+
var css$d = {"search-input":"Wk-6Jm","searchInput":"Wk-6Jm"};
|
|
4914
4956
|
|
|
4915
4957
|
function BurgerSearch(props) {
|
|
4916
|
-
return (React.createElement(TextInput$1, { cx: cx(css$d.searchInput, 'uui-main_menu-burger-search'), iconPosition: "left", icon: ForwardRef$
|
|
4958
|
+
return (React.createElement(TextInput$1, { cx: cx(css$d.searchInput, 'uui-main_menu-burger-search'), iconPosition: "left", icon: ForwardRef$O, placeholder: props.placeholder, value: props.value, onValueChange: props.onValueChange, onCancel: props.onCancel, cancelIcon: props.value && ForwardRef$R }));
|
|
4917
4959
|
}
|
|
4918
4960
|
|
|
4919
|
-
var css$c = {"root":"
|
|
4961
|
+
var css$c = {"root":"eqs-qS","group-header":"ghB25R","groupHeader":"ghB25R","group-name":"_1fFoue","groupName":"_1fFoue","line":"sUZFjx"};
|
|
4920
4962
|
|
|
4921
4963
|
function BurgerGroupHeader(props) {
|
|
4922
4964
|
return (React.createElement("div", { className: cx(css$c.root, css$c.groupHeader, 'uui-burger-group-header') },
|
|
@@ -4924,7 +4966,7 @@ function BurgerGroupHeader(props) {
|
|
|
4924
4966
|
React.createElement("span", { className: css$c.groupName }, props.caption)));
|
|
4925
4967
|
}
|
|
4926
4968
|
|
|
4927
|
-
var css$b = {"uui-typography":"
|
|
4969
|
+
var css$b = {"uui-typography":"Qchoss","uuiTypography":"Qchoss","hero-header":"T0ggUo","heroHeader":"T0ggUo","promo-header":"tAt5t-","promoHeader":"tAt5t-","uui-critical":"O0h2-7","uuiCritical":"O0h2-7","uui-info":"IPeckj","uuiInfo":"IPeckj","uui-success":"WzVRDr","uuiSuccess":"WzVRDr","uui-warning":"HqWyOG","uuiWarning":"HqWyOG","uui-highlight":"_209B6v","uuiHighlight":"_209B6v","uui-typography-size-12":"Fp3viP","uuiTypographySize12":"Fp3viP","uui-typography-size-14":"e7SxT-","uuiTypographySize14":"e7SxT-","uui-typography-size-16":"JVj2cm","uuiTypographySize16":"JVj2cm","root":"RVJUZD","type-primary":"Z5-8e-","typePrimary":"Z5-8e-","type-secondary":"-Ztepj","typeSecondary":"-Ztepj"};
|
|
4928
4970
|
|
|
4929
4971
|
const MainMenuButton = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
4930
4972
|
const { type } = props, clickableProps = __rest(props, ["type"]);
|
|
@@ -4937,10 +4979,10 @@ const MainMenuButton = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
4937
4979
|
props.caption && (React.createElement("div", { className: uuiElement.caption }, props.caption)),
|
|
4938
4980
|
props.count !== undefined && props.count !== null && (React.createElement(CountIndicator, { caption: props.count, color: "neutral", size: "18" })),
|
|
4939
4981
|
props.icon && props.iconPosition === 'right' && (React.createElement(IconContainer, { icon: props.icon, onClick: props.onIconClick })),
|
|
4940
|
-
props.isDropdown && (React.createElement(IconContainer, { icon: ForwardRef$
|
|
4982
|
+
props.isDropdown && (React.createElement(IconContainer, { icon: ForwardRef$Q, flipY: props.isOpen }))));
|
|
4941
4983
|
});
|
|
4942
4984
|
|
|
4943
|
-
var css$a = {"dropdown-body":"
|
|
4985
|
+
var css$a = {"dropdown-body":"Q8Hvew","dropdownBody":"Q8Hvew"};
|
|
4944
4986
|
|
|
4945
4987
|
class MainMenuDropdown extends React.Component {
|
|
4946
4988
|
render() {
|
|
@@ -4995,31 +5037,31 @@ var SvgNavigationGlobalMenuOutlineOutline = function SvgNavigationGlobalMenuOutl
|
|
|
4995
5037
|
};
|
|
4996
5038
|
var ForwardRef$1 = /*#__PURE__*/forwardRef(SvgNavigationGlobalMenuOutlineOutline);
|
|
4997
5039
|
|
|
4998
|
-
var css$9 = {"global-menu-btn":"
|
|
5040
|
+
var css$9 = {"global-menu-btn":"HNp83b","globalMenuBtn":"HNp83b","global-menu-icon":"J8g7-p","globalMenuIcon":"J8g7-p"};
|
|
4999
5041
|
|
|
5000
5042
|
const GlobalMenu = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement("button", Object.assign({ ref: ref, id: "global_menu_toggle", className: cx(css$9.globalMenuBtn, props.cx) }, props.rawProps),
|
|
5001
5043
|
React.createElement(IconContainer, { size: 36, icon: ForwardRef$1, cx: css$9.globalMenuIcon }))));
|
|
5002
5044
|
|
|
5003
|
-
var css$8 = {"container":"
|
|
5045
|
+
var css$8 = {"container":"Wt8sGJ","open":"X-D-Un","folding-arrow":"K7lbt4","foldingArrow":"K7lbt4"};
|
|
5004
5046
|
|
|
5005
5047
|
const MainMenuAvatar = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement("button", { ref: ref, className: cx(css$8.container, props.isDropdown && css$8.dropdown, props.isOpen && css$8.open, props.onClick && uuiMarkers.clickable, props.cx), onClick: props.onClick },
|
|
5006
5048
|
React.createElement(Avatar, { size: "36", img: props.avatarUrl }),
|
|
5007
5049
|
props.icon && React.createElement(IconContainer, { icon: props.icon }),
|
|
5008
5050
|
props.isDropdown && (React.createElement("div", null,
|
|
5009
|
-
React.createElement(IconContainer, { size: 18, icon: ForwardRef$
|
|
5051
|
+
React.createElement(IconContainer, { size: 18, icon: ForwardRef$Q, flipY: props.isOpen, cx: css$8.foldingArrow }))))));
|
|
5010
5052
|
|
|
5011
|
-
var css$7 = {"search-input":"
|
|
5053
|
+
var css$7 = {"search-input":"TZAcG7","searchInput":"TZAcG7"};
|
|
5012
5054
|
|
|
5013
5055
|
const MainMenuSearch = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement(IEditableDebouncer, Object.assign({}, props, { render: (iEditable) => {
|
|
5014
5056
|
var _a;
|
|
5015
|
-
return (React.createElement(TextInput$1, Object.assign({ iconPosition: "left", icon: ForwardRef$
|
|
5057
|
+
return (React.createElement(TextInput$1, Object.assign({ iconPosition: "left", icon: ForwardRef$O, cancelIcon: ((_a = props.value) === null || _a === void 0 ? void 0 : _a.length) > 0 && ForwardRef$R }, props, iEditable, { ref: ref, cx: cx$1(css$7.searchInput, props.cx) }, props.rawProps)));
|
|
5016
5058
|
} }))));
|
|
5017
5059
|
|
|
5018
|
-
var css$6 = {"container":"
|
|
5060
|
+
var css$6 = {"container":"MCIorh"};
|
|
5019
5061
|
|
|
5020
5062
|
const MainMenuIcon = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement(IconButton, Object.assign({ ref: ref, icon: props.icon, cx: cx$1(props.cx, css$6.container) }, props))));
|
|
5021
5063
|
|
|
5022
|
-
var css$5 = {"root":"
|
|
5064
|
+
var css$5 = {"root":"J-24yd"};
|
|
5023
5065
|
|
|
5024
5066
|
const Anchor = /* @__PURE__ */withMods(Anchor$1, () => [css$5.root]);
|
|
5025
5067
|
|
|
@@ -5077,7 +5119,7 @@ var SvgFileCloudUploadFill = function SvgFileCloudUploadFill(props, ref) {
|
|
|
5077
5119
|
};
|
|
5078
5120
|
var ForwardRef = /*#__PURE__*/forwardRef(SvgFileCloudUploadFill);
|
|
5079
5121
|
|
|
5080
|
-
var css$4 = {"root":"
|
|
5122
|
+
var css$4 = {"root":"E3-Aah","drop-start":"Zj2nIn","dropStart":"Zj2nIn","drop-over":"W5zanS","dropOver":"W5zanS","link":"KkFQ7O","drop-area":"T-0TCs","dropArea":"T-0TCs","drop-caption":"yXyVlu","dropCaption":"yXyVlu","icon-blue":"-UJ5SO","iconBlue":"-UJ5SO"};
|
|
5081
5123
|
|
|
5082
5124
|
function DropSpot(props) {
|
|
5083
5125
|
const getInfoText = typeof props.infoText === 'string'
|
|
@@ -5095,9 +5137,9 @@ function DropSpot(props) {
|
|
|
5095
5137
|
return React.createElement(DropSpot$1, { render: renderAttachmentArea, onFilesDropped: props.onUploadFiles });
|
|
5096
5138
|
}
|
|
5097
5139
|
|
|
5098
|
-
var css$3 = {"uui-typography":"
|
|
5140
|
+
var css$3 = {"uui-typography":"D5I0Oj","uuiTypography":"D5I0Oj","hero-header":"MTh9Av","heroHeader":"MTh9Av","promo-header":"n-bTJX","promoHeader":"n-bTJX","uui-critical":"BRkqX1","uuiCritical":"BRkqX1","uui-info":"PCDl5S","uuiInfo":"PCDl5S","uui-success":"vkAd2j","uuiSuccess":"vkAd2j","uui-warning":"xg5ERg","uuiWarning":"xg5ERg","uui-highlight":"q2J0zc","uuiHighlight":"q2J0zc","uui-typography-size-12":"-nQyq9","uuiTypographySize12":"-nQyq9","uui-typography-size-14":"ii5gKm","uuiTypographySize14":"ii5gKm","uui-typography-size-16":"dJxzdw","uuiTypographySize16":"dJxzdw","root":"VWKwjk","file-name":"je5VsA","fileName":"je5VsA","default-color":"iVxlBa","defaultColor":"iVxlBa","doc-color":"aQwxNR","docColor":"aQwxNR","xls-color":"fU6Z4p","xlsColor":"fU6Z4p","pdf-color":"dQ0yRR","pdfColor":"dQ0yRR","movie-color":"_953Ltv","movieColor":"_953Ltv","img-color":"BaiaC-","imgColor":"BaiaC-","mov-color":"VCzps1","movColor":"VCzps1","error-block":"QG506f","errorBlock":"QG506f","icons-block":"z46Bwc","iconsBlock":"z46Bwc"};
|
|
5099
5141
|
|
|
5100
|
-
var css$2 = {"root":"
|
|
5142
|
+
var css$2 = {"root":"-Duubg"};
|
|
5101
5143
|
|
|
5102
5144
|
const SvgCircleProgress = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
5103
5145
|
const outsetRadius = props.size / 2 - 1;
|
|
@@ -5162,7 +5204,7 @@ const FileCard = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
5162
5204
|
};
|
|
5163
5205
|
const renderErrorContent = () => (React.createElement(Tooltip, { content: file.error.message, placement: "bottom-start" },
|
|
5164
5206
|
React.createElement("div", { className: css$3.errorBlock },
|
|
5165
|
-
React.createElement(IconContainer, { icon: ForwardRef$
|
|
5207
|
+
React.createElement(IconContainer, { icon: ForwardRef$y, size: 12 }),
|
|
5166
5208
|
i18n.fileCard.failedUploadErrorMessage)));
|
|
5167
5209
|
const renderSuccessfulContent = () => (React.createElement(Text, { size: "18", fontSize: "14", lineHeight: "18", color: "tertiary" },
|
|
5168
5210
|
fileExtension && `${fileExtension.toUpperCase()}, `,
|
|
@@ -5180,7 +5222,7 @@ const FileCard = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
5180
5222
|
(error === null || error === void 0 ? void 0 : error.isError) ? renderErrorContent() : renderSuccessfulContent()),
|
|
5181
5223
|
React.createElement("div", { className: cx$1(css$3.iconsBlock), onMouseEnter: mouseEnterHandler, onMouseLeave: mouseLeaveHandler },
|
|
5182
5224
|
isLoadingShow && isLoading && React.createElement(SvgCircleProgress, { progress: progress, size: 18 }),
|
|
5183
|
-
isCrossShow && React.createElement(IconButton, { icon: ForwardRef$
|
|
5225
|
+
isCrossShow && React.createElement(IconButton, { icon: ForwardRef$R, onClick: removeHandler })))));
|
|
5184
5226
|
});
|
|
5185
5227
|
|
|
5186
5228
|
const getRecoveryMessageConfig = () => ({
|
|
@@ -5222,7 +5264,7 @@ const getErrorPageConfig = () => ({
|
|
|
5222
5264
|
},
|
|
5223
5265
|
});
|
|
5224
5266
|
|
|
5225
|
-
var css$1 = {"container":"
|
|
5267
|
+
var css$1 = {"container":"kJ9Qbx"};
|
|
5226
5268
|
|
|
5227
5269
|
const ErrorPage = (props) => {
|
|
5228
5270
|
const isMobileScreen = isMobile();
|
|
@@ -5233,7 +5275,7 @@ const ErrorPage = (props) => {
|
|
|
5233
5275
|
React__default.createElement("div", { className: "uui-error-subtitle" }, props.subtitle))));
|
|
5234
5276
|
};
|
|
5235
5277
|
|
|
5236
|
-
var css = {"recovery-spinner":"
|
|
5278
|
+
var css = {"recovery-spinner":"Hn84-t","recoverySpinner":"Hn84-t","recovery-message":"Ta1Jnl","recoveryMessage":"Ta1Jnl","modal-blocker":"eqyz2j","modalBlocker":"eqyz2j","modalFadeIn":"_-90gZ1"};
|
|
5237
5279
|
|
|
5238
5280
|
function ErrorHandler(props) {
|
|
5239
5281
|
const { uuiNotifications, uuiModals, uuiApi } = useUuiContext();
|
|
@@ -5284,5 +5326,5 @@ function ErrorHandler(props) {
|
|
|
5284
5326
|
errorType === 'recovery' && renderRecoveryBlocker(errorInfo)));
|
|
5285
5327
|
}
|
|
5286
5328
|
|
|
5287
|
-
export { Accordion, Alert, Anchor, AvatarStack, Badge, Blocker, Burger, BurgerButton, BurgerGroupHeader, BurgerSearch, Button, Calendar, Checkbox, CheckboxGroup, ClearNotification, ColumnHeaderDropdown, ColumnsConfigurationModal, ConfirmationModal, ControlGroup, CountIndicator, DataPickerBody, DataPickerFooter, DataPickerHeader, DataPickerRow, DataRowAddons, DataRowsContainer, DataTable, DataTableCell, DataTableHeaderCell, DataTableHeaderRow, DataTableRow, DatePicker, DatePickerBody, DatePickerComponent, DropMarker, DropSpot, Dropdown, DropdownContainer, DropdownMenuBody, DropdownMenuButton, DropdownMenuHeader, DropdownMenuSplitter, DropdownMenuSwitchButton, DropdownSubMenu, ErrorAlert, ErrorHandler, ErrorNotification, ErrorPage, FileCard, FilterItemBody, FilterPickerBody, FiltersPanel, FlexCell, FlexRow, Form, GlobalMenu, HintAlert, HintNotification, IDropdownControlKeys, IconButton, IndeterminateBar, IndicatorBar, InputAddon, LabeledInput, LinkButton, MainMenu, MainMenuAvatar, MainMenuButton, MainMenuDropdown, MainMenuIcon, MainMenuSearch, ModalBlocker, ModalFooter, ModalHeader, ModalWindow, MultiSwitch, NotificationCard, NumericInput, Paginator, Panel, PickerBodyMobileView, PickerInput, PickerItem, PickerList, PickerListItem, PickerModal, PickerToggler, PickerTogglerTag, PresetsPanel, ProgressBar, RadioGroup, RadioInput, RangeDatePicker, RangeDatePickerBody, RangeDatePickerInput, RichTextView, ScrollBars, SearchInput, Slider, Snackbar, Spinner, StatusIndicator, SuccessAlert, SuccessNotification, SvgCircleProgress, Switch, TabButton, Tag, Text, TextArea, TextInput, TextPlaceholder, TimePicker, TimePickerBody, Tooltip, VerticalTabButton, VirtualList, WarningAlert, WarningNotification, applyDateSelectionMods, defaultPredicates, getErrorPageConfig, getHighlightRanges, getHighlightedSearchMatches, getRecoveryMessageConfig, i18n, propsMods, rangeDatePickerPresets, renderCell, renderDropMarkers, settings, useColumnsWithFilters, useForm, uuiDatePickerBody, uuiRangeDatePickerBody, uuiTimePicker };
|
|
5329
|
+
export { Accordion, Alert, Anchor, AvatarStack, Badge, Blocker, Burger, BurgerButton, BurgerGroupHeader, BurgerSearch, Button, Calendar, Checkbox, CheckboxGroup, ClearNotification, ColumnHeaderDropdown, ColumnsConfigurationModal, ConfirmationModal, ControlGroup, CountIndicator, DataPickerBody, DataPickerFooter, DataPickerHeader, DataPickerRow, DataRowAddons, DataRowsContainer, DataTable, DataTableCell, DataTableHeaderCell, DataTableHeaderRow, DataTableRow, DatePicker, DatePickerBody, DatePickerComponent, DropMarker, DropSpot, Dropdown, DropdownContainer, DropdownMenuBody, DropdownMenuButton, DropdownMenuHeader, DropdownMenuSplitter, DropdownMenuSwitchButton, DropdownSubMenu, ErrorAlert, ErrorHandler, ErrorNotification, ErrorPage, FileCard, FilterItemBody, FilterPickerBody, FiltersPanel, FlexCell, FlexRow, Form, GlobalMenu, HintAlert, HintNotification, IDropdownControlKeys, IconButton, IndeterminateBar, IndicatorBar, InputAddon, LabeledInput, LinkButton, MainMenu, MainMenuAvatar, MainMenuButton, MainMenuDropdown, MainMenuIcon, MainMenuSearch, ModalBlocker, ModalFooter, ModalHeader, ModalWindow, MultiSwitch, NotificationCard, NumericInput, Paginator, Panel, PickerBodyMobileView, PickerInput, PickerItem, PickerList, PickerListItem, PickerModal, PickerToggler, PickerTogglerTag, PresetsPanel, ProgressBar, RadioGroup, RadioInput, RangeDatePicker, RangeDatePickerBody, RangeDatePickerInput, Rating, RichTextView, ScrollBars, SearchInput, Slider, Snackbar, Spinner, StatusIndicator, SuccessAlert, SuccessNotification, SvgCircleProgress, Switch, TabButton, Tag, Text, TextArea, TextInput, TextPlaceholder, TimePicker, TimePickerBody, Tooltip, VerticalTabButton, VirtualList, WarningAlert, WarningNotification, applyDateSelectionMods, defaultPredicates, getErrorPageConfig, getHighlightRanges, getHighlightedSearchMatches, getRecoveryMessageConfig, i18n, propsMods, rangeDatePickerPresets, renderCell, renderDropMarkers, settings, useColumnsWithFilters, useForm, uuiDatePickerBody, uuiRangeDatePickerBody, uuiTimePicker };
|
|
5288
5330
|
//# sourceMappingURL=index.esm.js.map
|