@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.js
CHANGED
|
@@ -49,9 +49,24 @@ var customParseFormat__default = /*#__PURE__*/_interopDefault(customParseFormat)
|
|
|
49
49
|
var isoWeek__default = /*#__PURE__*/_interopDefault(isoWeek);
|
|
50
50
|
var FocusLock__default = /*#__PURE__*/_interopDefault(FocusLock);
|
|
51
51
|
|
|
52
|
+
var _path$R;
|
|
53
|
+
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); }
|
|
54
|
+
var SvgNavigationCloseOutline = function SvgNavigationCloseOutline(props, ref) {
|
|
55
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$R({
|
|
56
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
57
|
+
width: 24,
|
|
58
|
+
height: 24,
|
|
59
|
+
viewBox: "0 0 24 24",
|
|
60
|
+
ref: ref
|
|
61
|
+
}, props), _path$R || (_path$R = /*#__PURE__*/React__namespace.createElement("path", {
|
|
62
|
+
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"
|
|
63
|
+
})));
|
|
64
|
+
};
|
|
65
|
+
var ForwardRef$R = /*#__PURE__*/React.forwardRef(SvgNavigationCloseOutline);
|
|
66
|
+
|
|
52
67
|
var _path$Q;
|
|
53
68
|
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); }
|
|
54
|
-
var
|
|
69
|
+
var SvgNavigationChevronDownOutline = function SvgNavigationChevronDownOutline(props, ref) {
|
|
55
70
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$Q({
|
|
56
71
|
xmlns: "http://www.w3.org/2000/svg",
|
|
57
72
|
width: 24,
|
|
@@ -59,14 +74,14 @@ var SvgNavigationCloseOutline = function SvgNavigationCloseOutline(props, ref) {
|
|
|
59
74
|
viewBox: "0 0 24 24",
|
|
60
75
|
ref: ref
|
|
61
76
|
}, props), _path$Q || (_path$Q = /*#__PURE__*/React__namespace.createElement("path", {
|
|
62
|
-
d: "
|
|
77
|
+
d: "M5.414 8.086 4 9.5l8 8 8-8-1.414-1.414L12 14.672 5.414 8.086z"
|
|
63
78
|
})));
|
|
64
79
|
};
|
|
65
|
-
var ForwardRef$Q = /*#__PURE__*/React.forwardRef(
|
|
80
|
+
var ForwardRef$Q = /*#__PURE__*/React.forwardRef(SvgNavigationChevronDownOutline);
|
|
66
81
|
|
|
67
82
|
var _path$P;
|
|
68
83
|
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); }
|
|
69
|
-
var
|
|
84
|
+
var SvgNotificationDoneOutline = function SvgNotificationDoneOutline(props, ref) {
|
|
70
85
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$P({
|
|
71
86
|
xmlns: "http://www.w3.org/2000/svg",
|
|
72
87
|
width: 24,
|
|
@@ -74,14 +89,14 @@ var SvgNavigationChevronDownOutline = function SvgNavigationChevronDownOutline(p
|
|
|
74
89
|
viewBox: "0 0 24 24",
|
|
75
90
|
ref: ref
|
|
76
91
|
}, props), _path$P || (_path$P = /*#__PURE__*/React__namespace.createElement("path", {
|
|
77
|
-
d: "
|
|
92
|
+
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"
|
|
78
93
|
})));
|
|
79
94
|
};
|
|
80
|
-
var ForwardRef$P = /*#__PURE__*/React.forwardRef(
|
|
95
|
+
var ForwardRef$P = /*#__PURE__*/React.forwardRef(SvgNotificationDoneOutline);
|
|
81
96
|
|
|
82
97
|
var _path$O;
|
|
83
98
|
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); }
|
|
84
|
-
var
|
|
99
|
+
var SvgActionSearchOutline = function SvgActionSearchOutline(props, ref) {
|
|
85
100
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$O({
|
|
86
101
|
xmlns: "http://www.w3.org/2000/svg",
|
|
87
102
|
width: 24,
|
|
@@ -89,14 +104,16 @@ var SvgNotificationDoneOutline = function SvgNotificationDoneOutline(props, ref)
|
|
|
89
104
|
viewBox: "0 0 24 24",
|
|
90
105
|
ref: ref
|
|
91
106
|
}, props), _path$O || (_path$O = /*#__PURE__*/React__namespace.createElement("path", {
|
|
92
|
-
|
|
107
|
+
fillRule: "evenodd",
|
|
108
|
+
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",
|
|
109
|
+
clipRule: "evenodd"
|
|
93
110
|
})));
|
|
94
111
|
};
|
|
95
|
-
var ForwardRef$O = /*#__PURE__*/React.forwardRef(
|
|
112
|
+
var ForwardRef$O = /*#__PURE__*/React.forwardRef(SvgActionSearchOutline);
|
|
96
113
|
|
|
97
114
|
var _path$N;
|
|
98
115
|
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); }
|
|
99
|
-
var
|
|
116
|
+
var SvgActionCalendarFill = function SvgActionCalendarFill(props, ref) {
|
|
100
117
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$N({
|
|
101
118
|
xmlns: "http://www.w3.org/2000/svg",
|
|
102
119
|
width: 24,
|
|
@@ -104,16 +121,14 @@ var SvgActionSearchOutline = function SvgActionSearchOutline(props, ref) {
|
|
|
104
121
|
viewBox: "0 0 24 24",
|
|
105
122
|
ref: ref
|
|
106
123
|
}, props), _path$N || (_path$N = /*#__PURE__*/React__namespace.createElement("path", {
|
|
107
|
-
|
|
108
|
-
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",
|
|
109
|
-
clipRule: "evenodd"
|
|
124
|
+
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"
|
|
110
125
|
})));
|
|
111
126
|
};
|
|
112
|
-
var ForwardRef$N = /*#__PURE__*/React.forwardRef(
|
|
127
|
+
var ForwardRef$N = /*#__PURE__*/React.forwardRef(SvgActionCalendarFill);
|
|
113
128
|
|
|
114
129
|
var _path$M;
|
|
115
130
|
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); }
|
|
116
|
-
var
|
|
131
|
+
var SvgNotificationInfoOutline = function SvgNotificationInfoOutline(props, ref) {
|
|
117
132
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$M({
|
|
118
133
|
xmlns: "http://www.w3.org/2000/svg",
|
|
119
134
|
width: 24,
|
|
@@ -121,14 +136,14 @@ var SvgActionCalendarFill = function SvgActionCalendarFill(props, ref) {
|
|
|
121
136
|
viewBox: "0 0 24 24",
|
|
122
137
|
ref: ref
|
|
123
138
|
}, props), _path$M || (_path$M = /*#__PURE__*/React__namespace.createElement("path", {
|
|
124
|
-
d: "
|
|
139
|
+
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"
|
|
125
140
|
})));
|
|
126
141
|
};
|
|
127
|
-
var ForwardRef$M = /*#__PURE__*/React.forwardRef(
|
|
142
|
+
var ForwardRef$M = /*#__PURE__*/React.forwardRef(SvgNotificationInfoOutline);
|
|
128
143
|
|
|
129
144
|
var _path$L;
|
|
130
145
|
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); }
|
|
131
|
-
var
|
|
146
|
+
var SvgFileFileWordFill = function SvgFileFileWordFill(props, ref) {
|
|
132
147
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$L({
|
|
133
148
|
xmlns: "http://www.w3.org/2000/svg",
|
|
134
149
|
width: 24,
|
|
@@ -136,14 +151,16 @@ var SvgNotificationInfoOutline = function SvgNotificationInfoOutline(props, ref)
|
|
|
136
151
|
viewBox: "0 0 24 24",
|
|
137
152
|
ref: ref
|
|
138
153
|
}, props), _path$L || (_path$L = /*#__PURE__*/React__namespace.createElement("path", {
|
|
139
|
-
|
|
154
|
+
fillRule: "evenodd",
|
|
155
|
+
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",
|
|
156
|
+
clipRule: "evenodd"
|
|
140
157
|
})));
|
|
141
158
|
};
|
|
142
|
-
var ForwardRef$L = /*#__PURE__*/React.forwardRef(
|
|
159
|
+
var ForwardRef$L = /*#__PURE__*/React.forwardRef(SvgFileFileWordFill);
|
|
143
160
|
|
|
144
161
|
var _path$K;
|
|
145
162
|
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); }
|
|
146
|
-
var
|
|
163
|
+
var SvgFileFileExcelFill = function SvgFileFileExcelFill(props, ref) {
|
|
147
164
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$K({
|
|
148
165
|
xmlns: "http://www.w3.org/2000/svg",
|
|
149
166
|
width: 24,
|
|
@@ -152,15 +169,15 @@ var SvgFileFileWordFill = function SvgFileFileWordFill(props, ref) {
|
|
|
152
169
|
ref: ref
|
|
153
170
|
}, props), _path$K || (_path$K = /*#__PURE__*/React__namespace.createElement("path", {
|
|
154
171
|
fillRule: "evenodd",
|
|
155
|
-
d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6zm1.
|
|
172
|
+
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",
|
|
156
173
|
clipRule: "evenodd"
|
|
157
174
|
})));
|
|
158
175
|
};
|
|
159
|
-
var ForwardRef$K = /*#__PURE__*/React.forwardRef(
|
|
176
|
+
var ForwardRef$K = /*#__PURE__*/React.forwardRef(SvgFileFileExcelFill);
|
|
160
177
|
|
|
161
178
|
var _path$J;
|
|
162
179
|
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); }
|
|
163
|
-
var
|
|
180
|
+
var SvgFileFilePdfFill = function SvgFileFilePdfFill(props, ref) {
|
|
164
181
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$J({
|
|
165
182
|
xmlns: "http://www.w3.org/2000/svg",
|
|
166
183
|
width: 24,
|
|
@@ -169,15 +186,15 @@ var SvgFileFileExcelFill = function SvgFileFileExcelFill(props, ref) {
|
|
|
169
186
|
ref: ref
|
|
170
187
|
}, props), _path$J || (_path$J = /*#__PURE__*/React__namespace.createElement("path", {
|
|
171
188
|
fillRule: "evenodd",
|
|
172
|
-
d: "
|
|
189
|
+
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",
|
|
173
190
|
clipRule: "evenodd"
|
|
174
191
|
})));
|
|
175
192
|
};
|
|
176
|
-
var ForwardRef$J = /*#__PURE__*/React.forwardRef(
|
|
193
|
+
var ForwardRef$J = /*#__PURE__*/React.forwardRef(SvgFileFilePdfFill);
|
|
177
194
|
|
|
178
195
|
var _path$I;
|
|
179
196
|
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); }
|
|
180
|
-
var
|
|
197
|
+
var SvgFileFileImageFill = function SvgFileFileImageFill(props, ref) {
|
|
181
198
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$I({
|
|
182
199
|
xmlns: "http://www.w3.org/2000/svg",
|
|
183
200
|
width: 24,
|
|
@@ -186,15 +203,15 @@ var SvgFileFilePdfFill = function SvgFileFilePdfFill(props, ref) {
|
|
|
186
203
|
ref: ref
|
|
187
204
|
}, props), _path$I || (_path$I = /*#__PURE__*/React__namespace.createElement("path", {
|
|
188
205
|
fillRule: "evenodd",
|
|
189
|
-
d: "M13 9h5.5L13 3.5V9zM6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-
|
|
206
|
+
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",
|
|
190
207
|
clipRule: "evenodd"
|
|
191
208
|
})));
|
|
192
209
|
};
|
|
193
|
-
var ForwardRef$I = /*#__PURE__*/React.forwardRef(
|
|
210
|
+
var ForwardRef$I = /*#__PURE__*/React.forwardRef(SvgFileFileImageFill);
|
|
194
211
|
|
|
195
|
-
var _path$H;
|
|
212
|
+
var _path$H, _path2$5;
|
|
196
213
|
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); }
|
|
197
|
-
var
|
|
214
|
+
var SvgFileFileVideoFill = function SvgFileFileVideoFill(props, ref) {
|
|
198
215
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$H({
|
|
199
216
|
xmlns: "http://www.w3.org/2000/svg",
|
|
200
217
|
width: 24,
|
|
@@ -202,16 +219,18 @@ var SvgFileFileImageFill = function SvgFileFileImageFill(props, ref) {
|
|
|
202
219
|
viewBox: "0 0 24 24",
|
|
203
220
|
ref: ref
|
|
204
221
|
}, props), _path$H || (_path$H = /*#__PURE__*/React__namespace.createElement("path", {
|
|
222
|
+
d: "M14.992 14 9.5 17.138v-6.276L14.992 14z"
|
|
223
|
+
})), _path2$5 || (_path2$5 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
205
224
|
fillRule: "evenodd",
|
|
206
|
-
d: "
|
|
225
|
+
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",
|
|
207
226
|
clipRule: "evenodd"
|
|
208
227
|
})));
|
|
209
228
|
};
|
|
210
|
-
var ForwardRef$H = /*#__PURE__*/React.forwardRef(
|
|
229
|
+
var ForwardRef$H = /*#__PURE__*/React.forwardRef(SvgFileFileVideoFill);
|
|
211
230
|
|
|
212
|
-
var _path$G
|
|
231
|
+
var _path$G;
|
|
213
232
|
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); }
|
|
214
|
-
var
|
|
233
|
+
var SvgFileFileTableFill = function SvgFileFileTableFill(props, ref) {
|
|
215
234
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$G({
|
|
216
235
|
xmlns: "http://www.w3.org/2000/svg",
|
|
217
236
|
width: 24,
|
|
@@ -219,18 +238,16 @@ var SvgFileFileVideoFill = function SvgFileFileVideoFill(props, ref) {
|
|
|
219
238
|
viewBox: "0 0 24 24",
|
|
220
239
|
ref: ref
|
|
221
240
|
}, props), _path$G || (_path$G = /*#__PURE__*/React__namespace.createElement("path", {
|
|
222
|
-
d: "M14.992 14 9.5 17.138v-6.276L14.992 14z"
|
|
223
|
-
})), _path2$5 || (_path2$5 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
224
241
|
fillRule: "evenodd",
|
|
225
|
-
d: "
|
|
242
|
+
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",
|
|
226
243
|
clipRule: "evenodd"
|
|
227
244
|
})));
|
|
228
245
|
};
|
|
229
|
-
var ForwardRef$G = /*#__PURE__*/React.forwardRef(
|
|
246
|
+
var ForwardRef$G = /*#__PURE__*/React.forwardRef(SvgFileFileTableFill);
|
|
230
247
|
|
|
231
248
|
var _path$F;
|
|
232
249
|
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); }
|
|
233
|
-
var
|
|
250
|
+
var SvgFileFileTextFill = function SvgFileFileTextFill(props, ref) {
|
|
234
251
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$F({
|
|
235
252
|
xmlns: "http://www.w3.org/2000/svg",
|
|
236
253
|
width: 24,
|
|
@@ -239,15 +256,15 @@ var SvgFileFileTableFill = function SvgFileFileTableFill(props, ref) {
|
|
|
239
256
|
ref: ref
|
|
240
257
|
}, props), _path$F || (_path$F = /*#__PURE__*/React__namespace.createElement("path", {
|
|
241
258
|
fillRule: "evenodd",
|
|
242
|
-
d: "
|
|
259
|
+
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",
|
|
243
260
|
clipRule: "evenodd"
|
|
244
261
|
})));
|
|
245
262
|
};
|
|
246
|
-
var ForwardRef$F = /*#__PURE__*/React.forwardRef(
|
|
263
|
+
var ForwardRef$F = /*#__PURE__*/React.forwardRef(SvgFileFileTextFill);
|
|
247
264
|
|
|
248
265
|
var _path$E;
|
|
249
266
|
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); }
|
|
250
|
-
var
|
|
267
|
+
var SvgFileFileEmlFill = function SvgFileFileEmlFill(props, ref) {
|
|
251
268
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$E({
|
|
252
269
|
xmlns: "http://www.w3.org/2000/svg",
|
|
253
270
|
width: 24,
|
|
@@ -256,15 +273,15 @@ var SvgFileFileTextFill = function SvgFileFileTextFill(props, ref) {
|
|
|
256
273
|
ref: ref
|
|
257
274
|
}, props), _path$E || (_path$E = /*#__PURE__*/React__namespace.createElement("path", {
|
|
258
275
|
fillRule: "evenodd",
|
|
259
|
-
d: "
|
|
276
|
+
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",
|
|
260
277
|
clipRule: "evenodd"
|
|
261
278
|
})));
|
|
262
279
|
};
|
|
263
|
-
var ForwardRef$E = /*#__PURE__*/React.forwardRef(
|
|
280
|
+
var ForwardRef$E = /*#__PURE__*/React.forwardRef(SvgFileFileEmlFill);
|
|
264
281
|
|
|
265
282
|
var _path$D;
|
|
266
283
|
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); }
|
|
267
|
-
var
|
|
284
|
+
var SvgFileFileFill = function SvgFileFileFill(props, ref) {
|
|
268
285
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$D({
|
|
269
286
|
xmlns: "http://www.w3.org/2000/svg",
|
|
270
287
|
width: 24,
|
|
@@ -272,46 +289,29 @@ var SvgFileFileEmlFill = function SvgFileFileEmlFill(props, ref) {
|
|
|
272
289
|
viewBox: "0 0 24 24",
|
|
273
290
|
ref: ref
|
|
274
291
|
}, props), _path$D || (_path$D = /*#__PURE__*/React__namespace.createElement("path", {
|
|
275
|
-
fillRule: "evenodd",
|
|
276
|
-
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",
|
|
277
|
-
clipRule: "evenodd"
|
|
278
|
-
})));
|
|
279
|
-
};
|
|
280
|
-
var ForwardRef$D = /*#__PURE__*/React.forwardRef(SvgFileFileEmlFill);
|
|
281
|
-
|
|
282
|
-
var _path$C;
|
|
283
|
-
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); }
|
|
284
|
-
var SvgFileFileFill = function SvgFileFileFill(props, ref) {
|
|
285
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$C({
|
|
286
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
287
|
-
width: 24,
|
|
288
|
-
height: 24,
|
|
289
|
-
viewBox: "0 0 24 24",
|
|
290
|
-
ref: ref
|
|
291
|
-
}, props), _path$C || (_path$C = /*#__PURE__*/React__namespace.createElement("path", {
|
|
292
292
|
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"
|
|
293
293
|
})));
|
|
294
294
|
};
|
|
295
|
-
var ForwardRef$
|
|
295
|
+
var ForwardRef$D = /*#__PURE__*/React.forwardRef(SvgFileFileFill);
|
|
296
296
|
|
|
297
297
|
const fileIcons = {
|
|
298
|
-
docIcon: ForwardRef$
|
|
299
|
-
exelIcon: ForwardRef$
|
|
300
|
-
pdfIcon: ForwardRef$
|
|
301
|
-
imgIcon: ForwardRef$
|
|
302
|
-
videoIcon: ForwardRef$
|
|
303
|
-
tableIcon: ForwardRef$
|
|
304
|
-
textIcon: ForwardRef$
|
|
305
|
-
mailIcon: ForwardRef$
|
|
306
|
-
fileIcon: ForwardRef$
|
|
298
|
+
docIcon: ForwardRef$L,
|
|
299
|
+
exelIcon: ForwardRef$K,
|
|
300
|
+
pdfIcon: ForwardRef$J,
|
|
301
|
+
imgIcon: ForwardRef$I,
|
|
302
|
+
videoIcon: ForwardRef$H,
|
|
303
|
+
tableIcon: ForwardRef$G,
|
|
304
|
+
textIcon: ForwardRef$F,
|
|
305
|
+
mailIcon: ForwardRef$E,
|
|
306
|
+
fileIcon: ForwardRef$D,
|
|
307
307
|
};
|
|
308
308
|
const systemIcons = {
|
|
309
|
-
clear: ForwardRef$
|
|
310
|
-
foldingArrow: ForwardRef$
|
|
311
|
-
accept: ForwardRef$
|
|
312
|
-
search: ForwardRef$
|
|
313
|
-
calendar: ForwardRef$
|
|
314
|
-
info: ForwardRef$
|
|
309
|
+
clear: ForwardRef$R,
|
|
310
|
+
foldingArrow: ForwardRef$Q,
|
|
311
|
+
accept: ForwardRef$P,
|
|
312
|
+
search: ForwardRef$O,
|
|
313
|
+
calendar: ForwardRef$N,
|
|
314
|
+
info: ForwardRef$M,
|
|
315
315
|
};
|
|
316
316
|
|
|
317
317
|
const settings = {
|
|
@@ -335,6 +335,7 @@ const settings = {
|
|
|
335
335
|
labeledInput: '36',
|
|
336
336
|
statusIndicator: '24',
|
|
337
337
|
paginator: '30',
|
|
338
|
+
rating: '18',
|
|
338
339
|
},
|
|
339
340
|
tag: {
|
|
340
341
|
countIndicator: {
|
|
@@ -581,7 +582,7 @@ const settings = {
|
|
|
581
582
|
modal: {
|
|
582
583
|
window: {
|
|
583
584
|
defaults: {
|
|
584
|
-
width:
|
|
585
|
+
width: 420,
|
|
585
586
|
},
|
|
586
587
|
},
|
|
587
588
|
},
|
|
@@ -595,11 +596,11 @@ const settings = {
|
|
|
595
596
|
},
|
|
596
597
|
};
|
|
597
598
|
|
|
598
|
-
var css$
|
|
599
|
+
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"};
|
|
599
600
|
|
|
600
601
|
function applyButtonMods(mods) {
|
|
601
602
|
return [
|
|
602
|
-
css$
|
|
603
|
+
css$1x.root,
|
|
603
604
|
'uui-button',
|
|
604
605
|
`uui-fill-${mods.fill || 'solid'}`,
|
|
605
606
|
`uui-color-${mods.color || 'primary'}`,
|
|
@@ -613,10 +614,10 @@ const Button = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Button,
|
|
|
613
614
|
};
|
|
614
615
|
});
|
|
615
616
|
|
|
616
|
-
var css$
|
|
617
|
+
var css$1w = {"root":"_6qKT9r"};
|
|
617
618
|
|
|
618
619
|
function applyIconButtonMods(props) {
|
|
619
|
-
return ['uui-icon_button', `uui-color-${props.color || 'neutral'}`, css$
|
|
620
|
+
return ['uui-icon_button', `uui-color-${props.color || 'neutral'}`, css$1w.root];
|
|
620
621
|
}
|
|
621
622
|
const IconButton = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.IconButton, applyIconButtonMods, (props) => {
|
|
622
623
|
const isDeprecated = ['info', 'success', 'error', 'warning'].includes(props.color);
|
|
@@ -650,7 +651,7 @@ function getIconClass(props) {
|
|
|
650
651
|
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'];
|
|
651
652
|
}
|
|
652
653
|
|
|
653
|
-
var css$
|
|
654
|
+
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"};
|
|
654
655
|
|
|
655
656
|
const DEFAULT_COLOR = 'primary';
|
|
656
657
|
const DEFAULT_WEIGHT = 'semibold';
|
|
@@ -666,7 +667,7 @@ const LinkButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
|
666
667
|
}
|
|
667
668
|
const rootStyles = [
|
|
668
669
|
'uui-link_button',
|
|
669
|
-
css$
|
|
670
|
+
css$1v.root,
|
|
670
671
|
`uui-size-${props.size || settings.sizes.defaults.linkButton}`,
|
|
671
672
|
...getIconClass(props),
|
|
672
673
|
`uui-color-${props.color || DEFAULT_COLOR}`,
|
|
@@ -681,11 +682,11 @@ const LinkButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
|
681
682
|
props.isDropdown && (React__namespace.createElement(uuiComponents.IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
682
683
|
});
|
|
683
684
|
|
|
684
|
-
var css$
|
|
685
|
+
var css$1u = {"root":"bTawbL"};
|
|
685
686
|
|
|
686
687
|
const CountIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
687
688
|
return (React__namespace.default.createElement("div", { ref: ref, className: cx__default.default([
|
|
688
|
-
css$
|
|
689
|
+
css$1u.root,
|
|
689
690
|
'uui-count_indicator',
|
|
690
691
|
`uui-size-${props.size || settings.sizes.defaults.countIndicator}`,
|
|
691
692
|
props.color && `uui-color-${props.color}`,
|
|
@@ -693,11 +694,11 @@ const CountIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
693
694
|
]) }, props.caption));
|
|
694
695
|
});
|
|
695
696
|
|
|
696
|
-
var css$
|
|
697
|
+
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"};
|
|
697
698
|
|
|
698
699
|
const TabButton = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
699
700
|
const styles = [
|
|
700
|
-
css$
|
|
701
|
+
css$1t.root,
|
|
701
702
|
'uui-tab-button',
|
|
702
703
|
`uui-size-${props.size || settings.sizes.defaults.tabButton}`,
|
|
703
704
|
...getIconClass(props),
|
|
@@ -709,48 +710,48 @@ const TabButton = /* @__PURE__ */React__namespace.default.forwardRef((props, ref
|
|
|
709
710
|
props.icon && props.iconPosition !== 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
710
711
|
(props.caption || props.withNotify) && (React__namespace.default.createElement("div", { className: uuiCore.cx(uuiCore.uuiElement.caption) },
|
|
711
712
|
props.caption,
|
|
712
|
-
props.withNotify && React__namespace.default.createElement("div", { className: css$
|
|
713
|
+
props.withNotify && React__namespace.default.createElement("div", { className: css$1t.withNotify }))),
|
|
713
714
|
props.icon && props.iconPosition === 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
714
715
|
props.count !== undefined && props.count !== null && (React__namespace.default.createElement(CountIndicator, { color: "neutral", size: settings.sizes.tabButton.countIndicator[props.size || settings.sizes.defaults.tabButton], caption: props.count })),
|
|
715
716
|
props.isDropdown && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: DropdownIcon, flipY: props.isOpen })),
|
|
716
717
|
props.onClear && !props.isDisabled && (React__namespace.default.createElement(uuiComponents.IconContainer, { cx: uuiCore.uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
|
|
717
718
|
});
|
|
718
719
|
|
|
719
|
-
var css$
|
|
720
|
+
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"};
|
|
720
721
|
|
|
721
722
|
function applyVerticalTabButtonMods() {
|
|
722
|
-
return [css$
|
|
723
|
+
return [css$1s.root, 'uui-vertical-tab-button'];
|
|
723
724
|
}
|
|
724
725
|
const VerticalTabButton = /* @__PURE__ */uuiCore.withMods(TabButton, applyVerticalTabButtonMods);
|
|
725
726
|
|
|
726
|
-
var _path$
|
|
727
|
-
function _extends$
|
|
727
|
+
var _path$C;
|
|
728
|
+
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); }
|
|
728
729
|
var SvgContentMinusOutline = function SvgContentMinusOutline(props, ref) {
|
|
729
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
730
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$C({
|
|
730
731
|
xmlns: "http://www.w3.org/2000/svg",
|
|
731
732
|
width: 24,
|
|
732
733
|
height: 24,
|
|
733
734
|
viewBox: "0 0 24 24",
|
|
734
735
|
ref: ref
|
|
735
|
-
}, props), _path$
|
|
736
|
+
}, props), _path$C || (_path$C = /*#__PURE__*/React__namespace.createElement("path", {
|
|
736
737
|
d: "M19 10.5H5v3h14v-3z"
|
|
737
738
|
})));
|
|
738
739
|
};
|
|
739
|
-
var ForwardRef$
|
|
740
|
+
var ForwardRef$C = /*#__PURE__*/React.forwardRef(SvgContentMinusOutline);
|
|
740
741
|
|
|
741
|
-
var css$
|
|
742
|
+
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"};
|
|
742
743
|
|
|
743
744
|
function applyCheckboxMods(mods) {
|
|
744
745
|
return [
|
|
745
|
-
css$
|
|
746
|
+
css$1r.root,
|
|
746
747
|
`uui-size-${mods.size || settings.sizes.defaults.checkbox}`,
|
|
747
|
-
css$
|
|
748
|
+
css$1r['mode-' + (mods.mode || 'form')],
|
|
748
749
|
'uui-color-primary',
|
|
749
750
|
];
|
|
750
751
|
}
|
|
751
752
|
const applyUUICheckboxProps = (props) => {
|
|
752
|
-
const defaultIcon = ForwardRef$
|
|
753
|
-
const defaultIndeterminateIcon = ForwardRef$
|
|
753
|
+
const defaultIcon = ForwardRef$P;
|
|
754
|
+
const defaultIndeterminateIcon = ForwardRef$C;
|
|
754
755
|
return {
|
|
755
756
|
icon: props.icon ? props.icon : defaultIcon,
|
|
756
757
|
indeterminateIcon: props.indeterminateIcon ? props.indeterminateIcon : defaultIndeterminateIcon,
|
|
@@ -758,38 +759,38 @@ const applyUUICheckboxProps = (props) => {
|
|
|
758
759
|
};
|
|
759
760
|
const Checkbox = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Checkbox, applyCheckboxMods, applyUUICheckboxProps);
|
|
760
761
|
|
|
761
|
-
var _path$
|
|
762
|
-
function _extends$
|
|
762
|
+
var _path$B;
|
|
763
|
+
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); }
|
|
763
764
|
var SvgRadioDotFill = function SvgRadioDotFill(props, ref) {
|
|
764
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
765
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$B({
|
|
765
766
|
xmlns: "http://www.w3.org/2000/svg",
|
|
766
767
|
width: 24,
|
|
767
768
|
height: 24,
|
|
768
769
|
viewBox: "0 0 24 24",
|
|
769
770
|
ref: ref
|
|
770
|
-
}, props), _path$
|
|
771
|
+
}, props), _path$B || (_path$B = /*#__PURE__*/React__namespace.createElement("path", {
|
|
771
772
|
d: "M12 19a7 7 0 1 0 0-14 7 7 0 0 0 0 14z"
|
|
772
773
|
})));
|
|
773
774
|
};
|
|
774
|
-
var ForwardRef$
|
|
775
|
+
var ForwardRef$B = /*#__PURE__*/React.forwardRef(SvgRadioDotFill);
|
|
775
776
|
|
|
776
|
-
var css$
|
|
777
|
+
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"};
|
|
777
778
|
|
|
778
779
|
function applyRadioInputMods(mods) {
|
|
779
780
|
return [
|
|
780
|
-
css$
|
|
781
|
+
css$1q.root,
|
|
781
782
|
`uui-size-${mods.size || settings.sizes.defaults.radioInput}`,
|
|
782
783
|
'uui-radio-input-container',
|
|
783
784
|
'uui-color-primary',
|
|
784
785
|
];
|
|
785
786
|
}
|
|
786
|
-
const RadioInput = /* @__PURE__ */uuiCore.withMods(uuiComponents.RadioInput, applyRadioInputMods, (props) => ({ icon: props.icon ? props.icon : ForwardRef$
|
|
787
|
+
const RadioInput = /* @__PURE__ */uuiCore.withMods(uuiComponents.RadioInput, applyRadioInputMods, (props) => ({ icon: props.icon ? props.icon : ForwardRef$B }));
|
|
787
788
|
|
|
788
|
-
var css$
|
|
789
|
+
var css$1p = {"root":"_7VxhFL"};
|
|
789
790
|
|
|
790
791
|
function applySwitchMods(mods) {
|
|
791
792
|
return [
|
|
792
|
-
css$
|
|
793
|
+
css$1p.root,
|
|
793
794
|
`uui-size-${mods.size || settings.sizes.defaults.switch}`,
|
|
794
795
|
'uui-color-primary',
|
|
795
796
|
];
|
|
@@ -853,7 +854,7 @@ var EditMode;
|
|
|
853
854
|
EditMode["INLINE"] = "inline";
|
|
854
855
|
})(EditMode || (EditMode = {}));
|
|
855
856
|
|
|
856
|
-
var textInputCss = {"uui-typography":"
|
|
857
|
+
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"};
|
|
857
858
|
|
|
858
859
|
const DEFAULT_MODE$3 = EditMode.FORM;
|
|
859
860
|
function applyTextInputMods(mods) {
|
|
@@ -879,22 +880,22 @@ const SearchInput = /* @__PURE__ */React__namespace.default.forwardRef((props, r
|
|
|
879
880
|
} })));
|
|
880
881
|
});
|
|
881
882
|
|
|
882
|
-
var css$
|
|
883
|
+
var css$1o = {"root":"BjIkf6"};
|
|
883
884
|
|
|
884
|
-
const ControlGroup = /* @__PURE__ */uuiCore.withMods(uuiComponents.ControlGroup, () => [css$
|
|
885
|
+
const ControlGroup = /* @__PURE__ */uuiCore.withMods(uuiComponents.ControlGroup, () => [css$1o.root, 'uui-control-group']);
|
|
885
886
|
|
|
886
887
|
function MultiSwitchComponent(props, ref) {
|
|
887
888
|
return (React__namespace.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__namespace.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' } }))))));
|
|
888
889
|
}
|
|
889
890
|
const MultiSwitch = /* @__PURE__ */React__namespace.forwardRef(MultiSwitchComponent);
|
|
890
891
|
|
|
891
|
-
var css$
|
|
892
|
+
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"};
|
|
892
893
|
|
|
893
894
|
const DEFAULT_MODE$2 = EditMode.FORM;
|
|
894
895
|
function applyNumericInputMods(mods) {
|
|
895
896
|
return [
|
|
896
897
|
textInputCss.root,
|
|
897
|
-
css$
|
|
898
|
+
css$1n.root,
|
|
898
899
|
`uui-size-${mods.size || settings.sizes.defaults.numericInput}`,
|
|
899
900
|
textInputCss['mode-' + (mods.mode || DEFAULT_MODE$2)],
|
|
900
901
|
];
|
|
@@ -909,15 +910,15 @@ const NumericInput = /* @__PURE__ */uuiCore.withMods(uuiComponents.NumericInput,
|
|
|
909
910
|
};
|
|
910
911
|
});
|
|
911
912
|
|
|
912
|
-
var css$
|
|
913
|
+
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"};
|
|
913
914
|
|
|
914
915
|
const DEFAULT_MODE$1 = EditMode.FORM;
|
|
915
916
|
function applyTextAreaMods(mods) {
|
|
916
917
|
return [
|
|
917
|
-
css$
|
|
918
|
+
css$1m.root,
|
|
918
919
|
'uui-textarea',
|
|
919
920
|
'uui-size-' + (mods.size || settings.sizes.defaults.textArea),
|
|
920
|
-
css$
|
|
921
|
+
css$1m['mode-' + (mods.mode || DEFAULT_MODE$1)],
|
|
921
922
|
];
|
|
922
923
|
}
|
|
923
924
|
const TextArea = /* @__PURE__ */uuiCore.withMods(uuiComponents.TextArea, applyTextAreaMods, (props) => {
|
|
@@ -950,95 +951,95 @@ function TREE_SHAKEABLE_INIT$1() {
|
|
|
950
951
|
};
|
|
951
952
|
}
|
|
952
953
|
|
|
953
|
-
var _path$
|
|
954
|
-
function _extends$
|
|
954
|
+
var _path$A;
|
|
955
|
+
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); }
|
|
955
956
|
var SvgNotificationCheckFill = function SvgNotificationCheckFill(props, ref) {
|
|
956
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
957
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$A({
|
|
957
958
|
xmlns: "http://www.w3.org/2000/svg",
|
|
958
959
|
width: 24,
|
|
959
960
|
height: 24,
|
|
960
961
|
viewBox: "0 0 24 24",
|
|
961
962
|
ref: ref
|
|
962
|
-
}, props), _path$
|
|
963
|
+
}, props), _path$A || (_path$A = /*#__PURE__*/React__namespace.createElement("path", {
|
|
963
964
|
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"
|
|
964
965
|
})));
|
|
965
966
|
};
|
|
966
|
-
var ForwardRef$
|
|
967
|
+
var ForwardRef$A = /*#__PURE__*/React.forwardRef(SvgNotificationCheckFill);
|
|
967
968
|
|
|
968
|
-
var _path$
|
|
969
|
-
function _extends$
|
|
969
|
+
var _path$z;
|
|
970
|
+
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); }
|
|
970
971
|
var SvgNotificationWarningFill = function SvgNotificationWarningFill(props, ref) {
|
|
971
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
972
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$z({
|
|
972
973
|
xmlns: "http://www.w3.org/2000/svg",
|
|
973
974
|
width: 24,
|
|
974
975
|
height: 24,
|
|
975
976
|
viewBox: "0 0 24 24",
|
|
976
977
|
ref: ref
|
|
977
|
-
}, props), _path$
|
|
978
|
+
}, props), _path$z || (_path$z = /*#__PURE__*/React__namespace.createElement("path", {
|
|
978
979
|
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"
|
|
979
980
|
})));
|
|
980
981
|
};
|
|
981
|
-
var ForwardRef$
|
|
982
|
+
var ForwardRef$z = /*#__PURE__*/React.forwardRef(SvgNotificationWarningFill);
|
|
982
983
|
|
|
983
|
-
var _path$
|
|
984
|
-
function _extends$
|
|
984
|
+
var _path$y;
|
|
985
|
+
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); }
|
|
985
986
|
var SvgNotificationErrorFill = function SvgNotificationErrorFill(props, ref) {
|
|
986
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
987
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$y({
|
|
987
988
|
xmlns: "http://www.w3.org/2000/svg",
|
|
988
989
|
width: 24,
|
|
989
990
|
height: 24,
|
|
990
991
|
viewBox: "0 0 24 24",
|
|
991
992
|
ref: ref
|
|
992
|
-
}, props), _path$
|
|
993
|
+
}, props), _path$y || (_path$y = /*#__PURE__*/React__namespace.createElement("path", {
|
|
993
994
|
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"
|
|
994
995
|
})));
|
|
995
996
|
};
|
|
996
|
-
var ForwardRef$
|
|
997
|
+
var ForwardRef$y = /*#__PURE__*/React.forwardRef(SvgNotificationErrorFill);
|
|
997
998
|
|
|
998
|
-
var _path$
|
|
999
|
-
function _extends$
|
|
999
|
+
var _path$x;
|
|
1000
|
+
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); }
|
|
1000
1001
|
var SvgNotificationInfoFill = function SvgNotificationInfoFill(props, ref) {
|
|
1001
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1002
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$x({
|
|
1002
1003
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1003
1004
|
width: 24,
|
|
1004
1005
|
height: 24,
|
|
1005
1006
|
viewBox: "0 0 24 24",
|
|
1006
1007
|
ref: ref
|
|
1007
|
-
}, props), _path$
|
|
1008
|
+
}, props), _path$x || (_path$x = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1008
1009
|
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"
|
|
1009
1010
|
})));
|
|
1010
1011
|
};
|
|
1011
|
-
var ForwardRef$
|
|
1012
|
+
var ForwardRef$x = /*#__PURE__*/React.forwardRef(SvgNotificationInfoFill);
|
|
1012
1013
|
|
|
1013
|
-
var css$
|
|
1014
|
+
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"};
|
|
1014
1015
|
|
|
1015
|
-
const Alert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement("div", Object.assign({ role: "alert", ref: ref, className: cx__default.default('uui-alert', css$
|
|
1016
|
-
React__namespace.createElement("div", { className: css$
|
|
1017
|
-
props.icon && (React__namespace.createElement("div", { className: css$
|
|
1018
|
-
React__namespace.createElement(uuiComponents.IconContainer, { icon: props.icon, cx: css$
|
|
1019
|
-
React__namespace.createElement("div", { className: css$
|
|
1016
|
+
const Alert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement("div", Object.assign({ role: "alert", ref: ref, className: cx__default.default('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),
|
|
1017
|
+
React__namespace.createElement("div", { className: css$1l.mainPath },
|
|
1018
|
+
props.icon && (React__namespace.createElement("div", { className: css$1l.iconWrapper },
|
|
1019
|
+
React__namespace.createElement(uuiComponents.IconContainer, { icon: props.icon, cx: css$1l.actionIcon }))),
|
|
1020
|
+
React__namespace.createElement("div", { className: css$1l.content },
|
|
1020
1021
|
props.children,
|
|
1021
|
-
props.actions && (React__namespace.createElement("div", { className: css$
|
|
1022
|
-
props.onClose && React__namespace.createElement(IconButton, { icon: ForwardRef$
|
|
1023
|
-
const WarningAlert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$
|
|
1024
|
-
const SuccessAlert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$
|
|
1025
|
-
const HintAlert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$
|
|
1026
|
-
const ErrorAlert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$
|
|
1022
|
+
props.actions && (React__namespace.createElement("div", { className: css$1l.actionWrapper }, props.actions.map((action) => (React__namespace.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' })))))),
|
|
1023
|
+
props.onClose && React__namespace.createElement(IconButton, { icon: ForwardRef$R, color: "neutral", onClick: props.onClose, cx: css$1l.closeIcon })))));
|
|
1024
|
+
const WarningAlert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$z, color: "warning", ref: ref }, props)));
|
|
1025
|
+
const SuccessAlert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$A, color: "success", ref: ref }, props)));
|
|
1026
|
+
const HintAlert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$x, color: "info", ref: ref }, props)));
|
|
1027
|
+
const ErrorAlert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$y, color: "error", ref: ref }, props)));
|
|
1027
1028
|
|
|
1028
1029
|
const Dropdown = /* @__PURE__ */uuiCore.withMods(uuiComponents.Dropdown);
|
|
1029
1030
|
|
|
1030
|
-
var css$
|
|
1031
|
+
var css$1k = {"root":"_6D2bo6"};
|
|
1031
1032
|
|
|
1032
1033
|
function applyDropdownContainerMods(mods) {
|
|
1033
1034
|
return [
|
|
1034
|
-
css$
|
|
1035
|
+
css$1k.root,
|
|
1035
1036
|
mods.vPadding && `vPadding-${mods.vPadding}`,
|
|
1036
1037
|
mods.padding && `padding-${mods.padding}`,
|
|
1037
1038
|
];
|
|
1038
1039
|
}
|
|
1039
1040
|
const DropdownContainer = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.DropdownContainer, applyDropdownContainerMods);
|
|
1040
1041
|
|
|
1041
|
-
var css$
|
|
1042
|
+
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"};
|
|
1042
1043
|
|
|
1043
1044
|
exports.IDropdownControlKeys = void 0;
|
|
1044
1045
|
(function (IDropdownControlKeys) {
|
|
@@ -1099,17 +1100,17 @@ const DropdownMenuButton = /* @__PURE__ */React__namespace.default.forwardRef((p
|
|
|
1099
1100
|
const getMenuButtonContent = () => {
|
|
1100
1101
|
const isIconBefore = Boolean(icon && iconPosition !== 'right');
|
|
1101
1102
|
const isIconAfter = Boolean(icon && iconPosition === 'right');
|
|
1102
|
-
const iconElement = (React__namespace.default.createElement(IconButton, { icon: icon, color: isActive ? 'primary' : 'neutral', onClick: onIconClick, isDisabled: isDisabled, cx: uuiCore.cx(css$
|
|
1103
|
+
const iconElement = (React__namespace.default.createElement(IconButton, { icon: icon, color: isActive ? 'primary' : 'neutral', onClick: onIconClick, isDisabled: isDisabled, cx: uuiCore.cx(css$1j.icon, iconPosition === 'right' ? css$1j.iconAfter : css$1j.iconBefore) }));
|
|
1103
1104
|
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
1104
1105
|
isIconBefore && iconElement,
|
|
1105
|
-
React__namespace.default.createElement(uuiComponents.Text, { cx: props.indent && css$
|
|
1106
|
+
React__namespace.default.createElement(uuiComponents.Text, { cx: props.indent && css$1j.indent }, caption),
|
|
1106
1107
|
isIconAfter && (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
1107
1108
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
1108
1109
|
iconElement))));
|
|
1109
1110
|
};
|
|
1110
1111
|
const isAnchor = Boolean(link || href);
|
|
1111
|
-
const itemClassNames = uuiCore.cx(props.cx, css$
|
|
1112
|
-
return isAnchor ? (React__namespace.default.createElement(uuiComponents.Anchor, { cx: uuiCore.cx(css$
|
|
1112
|
+
const itemClassNames = uuiCore.cx(props.cx, css$1j.itemRoot, isDisabled && uuiCore.uuiMod.disabled, isActive && uuiCore.uuiMod.active, isOpen && uuiCore.uuiMod.opened);
|
|
1113
|
+
return isAnchor ? (React__namespace.default.createElement(uuiComponents.Anchor, { cx: uuiCore.cx(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__namespace.default.createElement(uuiComponents.FlexRow, { rawProps: {
|
|
1113
1114
|
tabIndex: isDisabled ? -1 : 0,
|
|
1114
1115
|
role: 'menuitem',
|
|
1115
1116
|
onKeyDown: isDisabled ? null : handleOpenDropdown,
|
|
@@ -1117,15 +1118,15 @@ const DropdownMenuButton = /* @__PURE__ */React__namespace.default.forwardRef((p
|
|
|
1117
1118
|
getMenuButtonContent(),
|
|
1118
1119
|
isSelected && (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
1119
1120
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
1120
|
-
React__namespace.default.createElement(uuiComponents.IconContainer, { icon: systemIcons.accept, cx: css$
|
|
1121
|
+
React__namespace.default.createElement(uuiComponents.IconContainer, { icon: systemIcons.accept, cx: css$1j.selectedMark })))));
|
|
1121
1122
|
});
|
|
1122
1123
|
function DropdownMenuSplitter(props) {
|
|
1123
|
-
return (React__namespace.default.createElement("div", { className: uuiCore.cx(props.cx, css$
|
|
1124
|
-
React__namespace.default.createElement("hr", { className: css$
|
|
1124
|
+
return (React__namespace.default.createElement("div", { className: uuiCore.cx(props.cx, css$1j.splitterRoot) },
|
|
1125
|
+
React__namespace.default.createElement("hr", { className: css$1j.splitter })));
|
|
1125
1126
|
}
|
|
1126
1127
|
function DropdownMenuHeader(props) {
|
|
1127
|
-
return (React__namespace.default.createElement("div", { className: uuiCore.cx('uui-dropdown-menu-header', props.cx, css$
|
|
1128
|
-
React__namespace.default.createElement("span", { className: css$
|
|
1128
|
+
return (React__namespace.default.createElement("div", { className: uuiCore.cx('uui-dropdown-menu-header', props.cx, css$1j.headerRoot) },
|
|
1129
|
+
React__namespace.default.createElement("span", { className: css$1j.header }, props.caption)));
|
|
1129
1130
|
}
|
|
1130
1131
|
function DropdownSubMenu(props) {
|
|
1131
1132
|
const subMenuModifiers = [
|
|
@@ -1147,7 +1148,7 @@ function DropdownSubMenu(props) {
|
|
|
1147
1148
|
const isRtl = (window === null || window === void 0 ? void 0 : window.document.dir) === 'rtl';
|
|
1148
1149
|
return (React__namespace.default.createElement(uuiComponents.Dropdown, { openOnHover: props.openOnHover || true, closeOnMouseLeave: "boundary", openDelay: 400, closeDelay: 400, placement: isRtl ? 'left-start' : 'right-start', modifiers: subMenuModifiers, renderBody: (dropdownProps) => !props.isDisabled && (React__namespace.default.createElement(DropdownMenuBody, Object.assign({ closeOnKey: exports.IDropdownControlKeys.LEFT_ARROW }, props, dropdownProps))), renderTarget: (_a) => {
|
|
1149
1150
|
var { toggleDropdownOpening } = _a, targetProps = __rest(_a, ["toggleDropdownOpening"]);
|
|
1150
|
-
return (React__namespace.default.createElement(DropdownMenuButton, Object.assign({ cx: uuiCore.cx(isRtl ? css$
|
|
1151
|
+
return (React__namespace.default.createElement(DropdownMenuButton, Object.assign({ cx: uuiCore.cx(isRtl ? css$1j.submenuRootItemRtl : css$1j.submenuRootItem), icon: systemIcons.foldingArrow, iconPosition: "right", isDropdown: true, toggleDropdownOpening: toggleDropdownOpening }, props, targetProps)));
|
|
1151
1152
|
} }));
|
|
1152
1153
|
}
|
|
1153
1154
|
function DropdownMenuSwitchButton(props) {
|
|
@@ -1164,32 +1165,29 @@ function DropdownMenuSwitchButton(props) {
|
|
|
1164
1165
|
onHandleValueChange(!isSelected);
|
|
1165
1166
|
}
|
|
1166
1167
|
};
|
|
1167
|
-
return (React__namespace.default.createElement(uuiComponents.FlexRow, { cx: uuiCore.cx(props.cx, css$
|
|
1168
|
-
icon && React__namespace.default.createElement(uuiComponents.IconContainer, { icon: icon, cx: css$
|
|
1168
|
+
return (React__namespace.default.createElement(uuiComponents.FlexRow, { cx: uuiCore.cx(props.cx, css$1j.itemRoot, isDisabled && uuiCore.uuiMod.disabled), onClick: () => onHandleValueChange(!isSelected), rawProps: { role: 'menuitem', onKeyDown: handleKeySelect, tabIndex: isDisabled ? -1 : 0 } },
|
|
1169
|
+
icon && React__namespace.default.createElement(uuiComponents.IconContainer, { icon: icon, cx: css$1j.iconBefore }),
|
|
1169
1170
|
React__namespace.default.createElement(uuiComponents.Text, null, caption),
|
|
1170
1171
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
1171
1172
|
React__namespace.default.createElement(Switch, { value: isSelected, tabIndex: -1, onValueChange: onHandleValueChange })));
|
|
1172
1173
|
}
|
|
1173
1174
|
|
|
1174
|
-
var css$
|
|
1175
|
+
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"};
|
|
1175
1176
|
|
|
1176
|
-
const getMode = (mode) => {
|
|
1177
|
-
return mode || 'block';
|
|
1178
|
-
};
|
|
1179
1177
|
function applyAccordionMods(mods) {
|
|
1180
1178
|
return [
|
|
1181
|
-
css$
|
|
1182
|
-
css$
|
|
1183
|
-
mods.padding && css$
|
|
1179
|
+
css$1i.root,
|
|
1180
|
+
css$1i[`mode-${mods.mode || 'block'}`],
|
|
1181
|
+
mods.padding && css$1i['padding-' + mods.padding],
|
|
1184
1182
|
];
|
|
1185
1183
|
}
|
|
1186
1184
|
const Accordion = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Accordion, applyAccordionMods, (mods) => ({
|
|
1187
1185
|
dropdownIcon: mods.dropdownIcon !== null && systemIcons.foldingArrow,
|
|
1188
1186
|
}));
|
|
1189
1187
|
|
|
1190
|
-
var css$
|
|
1188
|
+
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"};
|
|
1191
1189
|
|
|
1192
|
-
const FlexCell = /* @__PURE__ */uuiCore.withMods(uuiComponents.FlexCell, () => [css$
|
|
1190
|
+
const FlexCell = /* @__PURE__ */uuiCore.withMods(uuiComponents.FlexCell, () => [css$1h.flexCell]);
|
|
1193
1191
|
|
|
1194
1192
|
const FlexRow = /* @__PURE__ */uuiCore.withMods(uuiComponents.FlexRow, (props) => {
|
|
1195
1193
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -1198,54 +1196,54 @@ const FlexRow = /* @__PURE__ */uuiCore.withMods(uuiComponents.FlexRow, (props) =
|
|
|
1198
1196
|
}
|
|
1199
1197
|
}
|
|
1200
1198
|
return [
|
|
1201
|
-
css$
|
|
1199
|
+
css$1h.root,
|
|
1202
1200
|
props.size !== null && 'uui-size-' + (props.size || '36'),
|
|
1203
|
-
props.padding && css$
|
|
1204
|
-
props.vPadding && css$
|
|
1205
|
-
props.margin && css$
|
|
1206
|
-
props.topShadow && css$
|
|
1207
|
-
props.borderBottom && css$
|
|
1208
|
-
props.borderTop && css$
|
|
1209
|
-
props.spacing && css$
|
|
1210
|
-
props.background && css$
|
|
1201
|
+
props.padding && css$1h['padding-' + props.padding],
|
|
1202
|
+
props.vPadding && css$1h['vPadding-' + props.vPadding],
|
|
1203
|
+
props.margin && css$1h['margin-' + props.margin],
|
|
1204
|
+
props.topShadow && css$1h.topShadow,
|
|
1205
|
+
props.borderBottom && css$1h.borderBottom,
|
|
1206
|
+
props.borderTop && css$1h.borderTop,
|
|
1207
|
+
props.spacing && css$1h['spacing-' + props.spacing],
|
|
1208
|
+
props.background && css$1h[`uui-${props.background}`],
|
|
1211
1209
|
];
|
|
1212
1210
|
});
|
|
1213
1211
|
|
|
1214
|
-
var css$
|
|
1212
|
+
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"};
|
|
1215
1213
|
|
|
1216
1214
|
const Panel = /* @__PURE__ */uuiCore.withMods(uuiComponents.VPanel, (props) => [
|
|
1217
1215
|
'uui-panel',
|
|
1218
|
-
css$
|
|
1219
|
-
props.shadow && css$
|
|
1220
|
-
props.margin && css$
|
|
1221
|
-
props.background && css$
|
|
1216
|
+
css$1g.root,
|
|
1217
|
+
props.shadow && css$1g.shadow,
|
|
1218
|
+
props.margin && css$1g['margin-' + props.margin],
|
|
1219
|
+
props.background && css$1g[`uui-${props.background}`],
|
|
1222
1220
|
]);
|
|
1223
1221
|
|
|
1224
|
-
var css$
|
|
1222
|
+
var css$1f = {"root":"ELavfQ"};
|
|
1225
1223
|
|
|
1226
1224
|
function applyTooltipMods(mods) {
|
|
1227
1225
|
return [
|
|
1228
|
-
css$
|
|
1226
|
+
css$1f.root,
|
|
1229
1227
|
`uui-color-${mods.color || 'inverted'}`,
|
|
1230
1228
|
];
|
|
1231
1229
|
}
|
|
1232
1230
|
const Tooltip = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Tooltip, applyTooltipMods);
|
|
1233
1231
|
|
|
1234
|
-
var css$
|
|
1232
|
+
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"};
|
|
1235
1233
|
|
|
1236
1234
|
function applyLabeledInputMods(mods) {
|
|
1237
1235
|
return [
|
|
1238
1236
|
'uui-labeled-input',
|
|
1239
|
-
css$
|
|
1237
|
+
css$1e.root,
|
|
1240
1238
|
'uui-size-' + (mods.size || settings.sizes.defaults.labeledInput),
|
|
1241
1239
|
];
|
|
1242
1240
|
}
|
|
1243
1241
|
const LabeledInput = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.LabeledInput, applyLabeledInputMods, (props) => ({
|
|
1244
1242
|
Tooltip: props.Tooltip || Tooltip,
|
|
1245
|
-
infoIcon: props.infoIcon || (settings.sizes.labeledInput.fillIcon.includes(props.size) ? ForwardRef$
|
|
1243
|
+
infoIcon: props.infoIcon || (settings.sizes.labeledInput.fillIcon.includes(props.size) ? ForwardRef$x : ForwardRef$M),
|
|
1246
1244
|
}));
|
|
1247
1245
|
|
|
1248
|
-
var css$
|
|
1246
|
+
var css$1d = {"root":"hmqj4U"};
|
|
1249
1247
|
|
|
1250
1248
|
function RadioGroup(props) {
|
|
1251
1249
|
const direction = props.direction || 'vertical';
|
|
@@ -1254,34 +1252,34 @@ function RadioGroup(props) {
|
|
|
1254
1252
|
props.onValueChange(newVal);
|
|
1255
1253
|
}
|
|
1256
1254
|
};
|
|
1257
|
-
return (React__namespace.createElement("fieldset", Object.assign({ ref: props.forwardedRef, className: uuiCore.cx(css$
|
|
1255
|
+
return (React__namespace.createElement("fieldset", Object.assign({ ref: props.forwardedRef, className: uuiCore.cx(css$1d.root, uuiCore.directionMode[direction], props.cx), onFocus: props.onFocus, onBlur: props.onBlur }, props.rawProps), props.items.map((i) => {
|
|
1258
1256
|
const restItemProps = __rest(i, ["id", "name", "renderName"]);
|
|
1259
1257
|
return (React__namespace.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)));
|
|
1260
1258
|
})));
|
|
1261
1259
|
}
|
|
1262
1260
|
|
|
1263
|
-
var css$
|
|
1261
|
+
var css$1c = {"root":"KM9qJu"};
|
|
1264
1262
|
|
|
1265
1263
|
function applyScrollBarsMods() {
|
|
1266
1264
|
return [
|
|
1267
|
-
css$
|
|
1265
|
+
css$1c.root, 'uui-scroll-bars', 'uui-shadow-top', 'uui-shadow-bottom',
|
|
1268
1266
|
];
|
|
1269
1267
|
}
|
|
1270
1268
|
const ScrollBars = /* @__PURE__ */uuiCore.withMods(uuiComponents.ScrollBars, applyScrollBarsMods);
|
|
1271
1269
|
|
|
1272
|
-
var css$
|
|
1270
|
+
var css$1b = {"scroll-container":"ARCi7J","scrollContainer":"ARCi7J","list-container":"z9sHZe","listContainer":"z9sHZe"};
|
|
1273
1271
|
|
|
1274
|
-
var css$
|
|
1272
|
+
var css$1a = {"root":"mzsARs"};
|
|
1275
1273
|
|
|
1276
|
-
const AvatarStack = /* @__PURE__ */uuiCore.withMods(uuiComponents.AvatarStack, () => [css$
|
|
1274
|
+
const AvatarStack = /* @__PURE__ */uuiCore.withMods(uuiComponents.AvatarStack, () => [css$1a.root]);
|
|
1277
1275
|
|
|
1278
|
-
var css$
|
|
1276
|
+
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"};
|
|
1279
1277
|
|
|
1280
1278
|
const DEFAULT_FILL = 'solid';
|
|
1281
1279
|
function applyBadgeMods(mods) {
|
|
1282
1280
|
return [
|
|
1283
1281
|
'uui-badge',
|
|
1284
|
-
css$
|
|
1282
|
+
css$19.root,
|
|
1285
1283
|
`uui-size-${mods.size || settings.sizes.defaults.badge}`,
|
|
1286
1284
|
`uui-fill-${mods.fill || DEFAULT_FILL}`,
|
|
1287
1285
|
`uui-color-${mods.color || 'info'}`,
|
|
@@ -1299,11 +1297,11 @@ const Badge = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) =>
|
|
|
1299
1297
|
props.isDropdown && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
1300
1298
|
});
|
|
1301
1299
|
|
|
1302
|
-
var css$
|
|
1300
|
+
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"};
|
|
1303
1301
|
|
|
1304
1302
|
function applyTagMods(props) {
|
|
1305
1303
|
return [
|
|
1306
|
-
css$
|
|
1304
|
+
css$18.root,
|
|
1307
1305
|
`uui-size-${props.size || settings.sizes.defaults.tag}`,
|
|
1308
1306
|
`uui-color-${props.color || 'neutral'}`,
|
|
1309
1307
|
`uui-fill-${props.fill || 'solid'}`,
|
|
@@ -1323,94 +1321,94 @@ const Tag = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
|
1323
1321
|
props.onClear && !props.isDisabled && (React__namespace.default.createElement(uuiComponents.IconContainer, { cx: uuiCore.uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
|
|
1324
1322
|
});
|
|
1325
1323
|
|
|
1326
|
-
var css$
|
|
1324
|
+
var css$17 = {"root":"i27qdq","uui-spinner":"_62n3C-","uuiSpinner":"_62n3C-"};
|
|
1327
1325
|
|
|
1328
1326
|
function applySpinnerMods() {
|
|
1329
|
-
return [css$
|
|
1327
|
+
return [css$17.root, 'uui-spinner'];
|
|
1330
1328
|
}
|
|
1331
1329
|
const Spinner = /* @__PURE__ */uuiCore.withMods(uuiComponents.Spinner, applySpinnerMods);
|
|
1332
1330
|
|
|
1333
|
-
var _path$
|
|
1334
|
-
function _extends$
|
|
1331
|
+
var _path$w;
|
|
1332
|
+
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); }
|
|
1335
1333
|
var SvgNavigationChevronLeftOutline = function SvgNavigationChevronLeftOutline(props, ref) {
|
|
1336
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1334
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$w({
|
|
1337
1335
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1338
1336
|
width: 24,
|
|
1339
1337
|
height: 24,
|
|
1340
1338
|
viewBox: "0 0 24 24",
|
|
1341
1339
|
ref: ref
|
|
1342
|
-
}, props), _path$
|
|
1340
|
+
}, props), _path$w || (_path$w = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1343
1341
|
d: "M15.914 5.414 14.5 4l-8 8 8 8 1.414-1.414L9.328 12l6.586-6.586z"
|
|
1344
1342
|
})));
|
|
1345
1343
|
};
|
|
1346
|
-
var ForwardRef$
|
|
1344
|
+
var ForwardRef$w = /*#__PURE__*/React.forwardRef(SvgNavigationChevronLeftOutline);
|
|
1347
1345
|
|
|
1348
|
-
var _path$
|
|
1349
|
-
function _extends$
|
|
1346
|
+
var _path$v;
|
|
1347
|
+
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); }
|
|
1350
1348
|
var SvgNavigationChevronRightOutline = function SvgNavigationChevronRightOutline(props, ref) {
|
|
1351
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1349
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$v({
|
|
1352
1350
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1353
1351
|
width: 24,
|
|
1354
1352
|
height: 24,
|
|
1355
1353
|
viewBox: "0 0 24 24",
|
|
1356
1354
|
ref: ref
|
|
1357
|
-
}, props), _path$
|
|
1355
|
+
}, props), _path$v || (_path$v = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1358
1356
|
d: "M8.086 18.586 9.5 20l8-8-8-8-1.414 1.414L14.672 12l-6.586 6.586z"
|
|
1359
1357
|
})));
|
|
1360
1358
|
};
|
|
1361
|
-
var ForwardRef$
|
|
1359
|
+
var ForwardRef$v = /*#__PURE__*/React.forwardRef(SvgNavigationChevronRightOutline);
|
|
1362
1360
|
|
|
1363
|
-
var css$
|
|
1361
|
+
var css$16 = {"root":"-J3zd-","page":"-g-B82","spacer":"_5QbgpA","mode-ghost":"nUJ23j","modeGhost":"nUJ23j"};
|
|
1364
1362
|
|
|
1365
1363
|
function Paginator(props) {
|
|
1366
|
-
const renderPaginator = (params) => (React__namespace.default.createElement("nav", Object.assign({ role: "navigation", className: cx__default.default(css$
|
|
1367
|
-
React__namespace.default.createElement(Button, { size: props.size || settings.sizes.defaults.paginator, icon: ForwardRef$
|
|
1364
|
+
const renderPaginator = (params) => (React__namespace.default.createElement("nav", Object.assign({ role: "navigation", className: cx__default.default(css$16.root, 'uui-paginator', `uui-size-${props.size || settings.sizes.defaults.paginator}`) }, params.rawProps),
|
|
1365
|
+
React__namespace.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" }),
|
|
1368
1366
|
params.pages.map((page, index) => {
|
|
1369
1367
|
if (page.type === 'spacer') {
|
|
1370
|
-
return (React__namespace.default.createElement(Button, { cx: cx__default.default(css$
|
|
1368
|
+
return (React__namespace.default.createElement(Button, { cx: cx__default.default(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 }));
|
|
1371
1369
|
}
|
|
1372
1370
|
else {
|
|
1373
|
-
return (React__namespace.default.createElement(Button, { cx: cx__default.default(css$
|
|
1371
|
+
return (React__namespace.default.createElement(Button, { cx: cx__default.default(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 }));
|
|
1374
1372
|
}
|
|
1375
1373
|
}),
|
|
1376
|
-
React__namespace.default.createElement(Button, { size: props.size || settings.sizes.defaults.paginator, icon: ForwardRef$
|
|
1374
|
+
React__namespace.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" })));
|
|
1377
1375
|
return React__namespace.default.createElement(uuiComponents.Paginator, Object.assign({}, props, { render: renderPaginator }));
|
|
1378
1376
|
}
|
|
1379
1377
|
|
|
1380
|
-
var css$
|
|
1378
|
+
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"};
|
|
1381
1379
|
|
|
1382
1380
|
const IndeterminateBar = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
1383
|
-
return (React__namespace.createElement("div", { ref: ref, className: cx__default.default('uui-indeterminate_bar', props.cx, css$
|
|
1384
|
-
React__namespace.createElement("div", { className: cx__default.default(css$
|
|
1381
|
+
return (React__namespace.createElement("div", { ref: ref, className: cx__default.default('uui-indeterminate_bar', props.cx, css$15.root, css$15[`size-${props.size || 12}`]) },
|
|
1382
|
+
React__namespace.createElement("div", { className: cx__default.default(css$15.progressBar) })));
|
|
1385
1383
|
});
|
|
1386
1384
|
|
|
1387
|
-
var css$
|
|
1385
|
+
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"};
|
|
1388
1386
|
|
|
1389
1387
|
const DEFAULT_SIZE = '12';
|
|
1390
1388
|
function applyProgressBarMods(mods) {
|
|
1391
1389
|
const size = mods.size || DEFAULT_SIZE;
|
|
1392
1390
|
return [
|
|
1393
|
-
css$
|
|
1394
|
-
css$
|
|
1395
|
-
mods.striped && css$
|
|
1391
|
+
css$14.root,
|
|
1392
|
+
css$14[`size-${size}`],
|
|
1393
|
+
mods.striped && css$14.striped,
|
|
1396
1394
|
];
|
|
1397
1395
|
}
|
|
1398
1396
|
const ProgressBar = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.ProgressBar, applyProgressBarMods, (props) => ({
|
|
1399
1397
|
hideLabel: props.hideLabel || props.striped,
|
|
1400
1398
|
}));
|
|
1401
1399
|
|
|
1402
|
-
var css$
|
|
1400
|
+
var css$13 = {"root":"FwszS8"};
|
|
1403
1401
|
|
|
1404
1402
|
const IndicatorBar = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
1405
1403
|
const { progress } = props;
|
|
1406
|
-
return progress || progress === 0 ? (React__namespace.createElement(ProgressBar, { ref: ref, progress: progress, cx: cx__default.default(css$
|
|
1404
|
+
return progress || progress === 0 ? (React__namespace.createElement(ProgressBar, { ref: ref, progress: progress, cx: cx__default.default(css$13.root, props.cx), hideLabel: true })) : (React__namespace.createElement(IndeterminateBar, { ref: ref, cx: cx__default.default(css$13.root, props.cx) }));
|
|
1407
1405
|
});
|
|
1408
1406
|
|
|
1409
|
-
var css$
|
|
1407
|
+
var css$12 = {"root":"kipjiY"};
|
|
1410
1408
|
|
|
1411
1409
|
const StatusIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
1412
1410
|
return (React__namespace.default.createElement("div", { ref: ref, className: cx__default.default([
|
|
1413
|
-
css$
|
|
1411
|
+
css$12.root,
|
|
1414
1412
|
`uui-size-${props.size || settings.sizes.defaults.statusIndicator}`,
|
|
1415
1413
|
'uui-status_indicator',
|
|
1416
1414
|
`uui-color-${props.color || 'neutral'}`,
|
|
@@ -1421,7 +1419,7 @@ const StatusIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1421
1419
|
React__namespace.default.createElement("p", { className: "uui-status_indicator-caption" }, props.caption)));
|
|
1422
1420
|
});
|
|
1423
1421
|
|
|
1424
|
-
var css$
|
|
1422
|
+
var css$11 = {"drag-handle":"qeEuet","dragHandle":"qeEuet","icon-container":"I-ZiwZ","iconContainer":"I-ZiwZ"};
|
|
1425
1423
|
|
|
1426
1424
|
function DataRowAddons(props) {
|
|
1427
1425
|
var _a, _b;
|
|
@@ -1433,19 +1431,19 @@ function DataRowAddons(props) {
|
|
|
1433
1431
|
return settings.sizes.rowAddons.indentWidth[props.size] || settings.sizes.rowAddons.defaults.indentWidth;
|
|
1434
1432
|
};
|
|
1435
1433
|
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
1436
|
-
((_a = row.dnd) === null || _a === void 0 ? void 0 : _a.srcData) && React__namespace.default.createElement(uuiComponents.DragHandle, { key: "dh", cx: css$
|
|
1434
|
+
((_a = row.dnd) === null || _a === void 0 ? void 0 : _a.srcData) && React__namespace.default.createElement(uuiComponents.DragHandle, { key: "dh", cx: css$11.dragHandle, rawProps: Object.assign({}, props.eventHandlers) }),
|
|
1437
1435
|
((_b = row === null || row === void 0 ? void 0 : row.checkbox) === null || _b === void 0 ? void 0 : _b.isVisible) && (React__namespace.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 })),
|
|
1438
1436
|
row.indent > 0 && (React__namespace.default.createElement("div", { key: "fold", className: cx__default.default('uui-dr_addons-indent', `uui-size-${props.size}`), style: { marginInlineStart: getIndent(), width: getWidth() } }, row.isFoldable && (React__namespace.default.createElement(uuiComponents.IconContainer, { rawProps: {
|
|
1439
1437
|
'aria-label': row.isFolded ? 'Unfold' : 'Fold',
|
|
1440
1438
|
role: 'button',
|
|
1441
|
-
}, key: "icon", icon: ForwardRef$
|
|
1442
|
-
uuiCore.uuiElement.foldingArrow, uuiCore.uuiMarkers.clickable, css$
|
|
1439
|
+
}, key: "icon", icon: ForwardRef$Q, cx: [
|
|
1440
|
+
uuiCore.uuiElement.foldingArrow, uuiCore.uuiMarkers.clickable, css$11.iconContainer,
|
|
1443
1441
|
], rotate: row.isFolded ? '90ccw' : '0', onClick: () => row.onFold(row), size: settings.sizes.rowAddons.icon[props.size] || settings.sizes.rowAddons.defaults.icon }))))));
|
|
1444
1442
|
}
|
|
1445
1443
|
|
|
1446
|
-
var css
|
|
1444
|
+
var css$10 = {"root":"EBnQe3"};
|
|
1447
1445
|
|
|
1448
|
-
const Blocker = /* @__PURE__ */uuiCore.withMods(uuiComponents.Blocker, () => [css
|
|
1446
|
+
const Blocker = /* @__PURE__ */uuiCore.withMods(uuiComponents.Blocker, () => [css$10.root], (cmpProps) => ({ renderSpinner: cmpProps.renderSpinner || (() => React__namespace.default.createElement(Spinner, null)) }));
|
|
1449
1447
|
|
|
1450
1448
|
const VirtualList = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
1451
1449
|
const { listContainerRef, offsetY, handleScroll, estimatedHeight, scrollContainerRef, } = uuiCore.useVirtualList({
|
|
@@ -1461,7 +1459,7 @@ const VirtualList = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
|
1461
1459
|
var _a;
|
|
1462
1460
|
return ((_a = props.renderRows) === null || _a === void 0 ? void 0 : _a.call(props, {
|
|
1463
1461
|
listContainerRef, estimatedHeight, offsetY, scrollShadows,
|
|
1464
|
-
})) || (React__namespace.createElement("div", { className: css$
|
|
1462
|
+
})) || (React__namespace.createElement("div", { className: css$1b.listContainer, style: { minHeight: `${estimatedHeight}px` } },
|
|
1465
1463
|
React__namespace.createElement("div", { ref: listContainerRef, role: props.role, style: { marginTop: offsetY } }, props.rows)));
|
|
1466
1464
|
};
|
|
1467
1465
|
const renderView = ({ style }) => (React__namespace.createElement(VirtualListView, { isLoading: props.isLoading, style: style, rawProps: props.rawProps }));
|
|
@@ -1471,7 +1469,7 @@ const VirtualList = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
|
1471
1469
|
return;
|
|
1472
1470
|
scrollContainerRef.current = scrollbars.container.firstChild;
|
|
1473
1471
|
}, []);
|
|
1474
|
-
return (React__namespace.createElement(ScrollBars, { cx: uuiCore.cx(css$
|
|
1472
|
+
return (React__namespace.createElement(ScrollBars, { cx: uuiCore.cx(css$1b.scrollContainer, props.cx, {
|
|
1475
1473
|
[uuiCore.uuiMarkers.scrolledLeft]: scrollShadows.horizontalLeft,
|
|
1476
1474
|
[uuiCore.uuiMarkers.scrolledRight]: scrollShadows.horizontalRight,
|
|
1477
1475
|
[uuiCore.uuiMarkers.scrolledTop]: scrollShadows.verticalTop,
|
|
@@ -1484,7 +1482,7 @@ const VirtualListView = /* @__PURE__ */React__namespace.forwardRef((props, ref)
|
|
|
1484
1482
|
React__namespace.createElement(Blocker, { isEnabled: props.isLoading })));
|
|
1485
1483
|
});
|
|
1486
1484
|
|
|
1487
|
-
var css
|
|
1485
|
+
var css$$ = {"root":"PD3ZlP"};
|
|
1488
1486
|
|
|
1489
1487
|
function CheckboxGroup(props) {
|
|
1490
1488
|
const currentValue = props.value || [];
|
|
@@ -1500,62 +1498,16 @@ function CheckboxGroup(props) {
|
|
|
1500
1498
|
}
|
|
1501
1499
|
props.onValueChange(newSelection);
|
|
1502
1500
|
};
|
|
1503
|
-
return (React__namespace.createElement("fieldset", Object.assign({ ref: props.forwardedRef, className: uuiCore.cx(css
|
|
1501
|
+
return (React__namespace.createElement("fieldset", Object.assign({ ref: props.forwardedRef, className: uuiCore.cx(css$$.root, uuiCore.directionMode[direction], props.cx) }, props.rawProps), props.items.map((i) => {
|
|
1504
1502
|
const restItemProps = __rest(i, ["id", "name", "renderName"]);
|
|
1505
1503
|
return (React__namespace.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)));
|
|
1506
1504
|
})));
|
|
1507
1505
|
}
|
|
1508
1506
|
|
|
1509
|
-
var css$
|
|
1510
|
-
|
|
1511
|
-
function applyTextMods(mods) {
|
|
1512
|
-
return [
|
|
1513
|
-
css$Z.root,
|
|
1514
|
-
'uui-text',
|
|
1515
|
-
`uui-size-${mods.size || settings.sizes.defaults.text}`,
|
|
1516
|
-
(mods.size !== 'none' || mods.lineHeight) && css$Z.lineHeight,
|
|
1517
|
-
(mods.size !== 'none' || mods.fontSize) && css$Z.fontSize,
|
|
1518
|
-
`uui-color-${mods.color || 'primary'}`,
|
|
1519
|
-
`uui-font-weight-${mods.fontWeight || '400'}`,
|
|
1520
|
-
`uui-font-style-${mods.fontStyle || 'normal'}`,
|
|
1521
|
-
'uui-typography',
|
|
1522
|
-
];
|
|
1523
|
-
}
|
|
1524
|
-
const Text = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Text, applyTextMods, (props) => {
|
|
1525
|
-
var _a;
|
|
1526
|
-
if (props.fontSize || props.lineHeight) {
|
|
1527
|
-
const style = {};
|
|
1528
|
-
props.fontSize && (style['--uui-text-font-size'] = `${props.fontSize}px`);
|
|
1529
|
-
props.lineHeight && (style['--uui-text-line-height'] = `${props.lineHeight}px`);
|
|
1530
|
-
return {
|
|
1531
|
-
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),
|
|
1532
|
-
};
|
|
1533
|
-
}
|
|
1534
|
-
});
|
|
1535
|
-
|
|
1536
|
-
var css$Y = {"root":"p4WTiN","loading-word":"_0ibkqa","animated-loading":"svNd9S","skeleton_loading":"WPSnJo","loadingWord":"_0ibkqa","animatedLoading":"svNd9S","skeletonLoading":"WPSnJo"};
|
|
1537
|
-
|
|
1538
|
-
const TextPlaceholder = (props) => {
|
|
1539
|
-
const pattern = ' ';
|
|
1540
|
-
const text = React__namespace.useMemo(() => {
|
|
1541
|
-
const words = [];
|
|
1542
|
-
for (let i = 0; i < (props.wordsCount || 1); i++) {
|
|
1543
|
-
const lengthWord = Math.floor(Math.random() * 10 + 8);
|
|
1544
|
-
words.push(pattern.repeat(lengthWord));
|
|
1545
|
-
}
|
|
1546
|
-
return words;
|
|
1547
|
-
}, [props.wordsCount]);
|
|
1548
|
-
return (React__namespace.createElement("div", Object.assign({ "aria-busy": true, className: cx__default.default(css$Y.root, 'uui-text-placeholder') }, props.rawProps), text.map((it, index) => (React__namespace.createElement("span", { key: index, className: cx__default.default([
|
|
1549
|
-
props.cx, css$Y.loadingWord, !props.isNotAnimated && css$Y.animatedLoading,
|
|
1550
|
-
]), dangerouslySetInnerHTML: { __html: it } })))));
|
|
1551
|
-
};
|
|
1552
|
-
|
|
1553
|
-
const RichTextView = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.RichTextView, (mods) => ['uui-typography', `uui-typography-size-${mods.size || '14'}`]);
|
|
1507
|
+
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"};
|
|
1554
1508
|
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
const ModalBlocker = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalBlocker, () => [css$X.modalBlocker]);
|
|
1558
|
-
const ModalWindow = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalWindow, () => [css$X.root, css$X.modal], (props) => {
|
|
1509
|
+
const ModalBlocker = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalBlocker, () => [css$_.modalBlocker]);
|
|
1510
|
+
const ModalWindow = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalWindow, () => [css$_.root, css$_.modal], (props) => {
|
|
1559
1511
|
const width = props.width || settings.sizes.modal.window.defaults.width;
|
|
1560
1512
|
const height = props.height || 'auto';
|
|
1561
1513
|
const maxHeight = uuiCore.isMobile() ? '100dvh' : (props.maxHeight || '80dvh');
|
|
@@ -1567,19 +1519,19 @@ const ModalWindow = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalWindow, (
|
|
|
1567
1519
|
});
|
|
1568
1520
|
class ModalHeader extends React__namespace.default.Component {
|
|
1569
1521
|
render() {
|
|
1570
|
-
return (React__namespace.default.createElement(FlexRow, { padding: this.props.padding || '24', vPadding: "
|
|
1571
|
-
this.props.title && (React__namespace.default.createElement(
|
|
1522
|
+
return (React__namespace.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 },
|
|
1523
|
+
this.props.title && (React__namespace.default.createElement("div", { className: cx__default.default('uui-modal-title', 'uui-typography') }, this.props.title)),
|
|
1572
1524
|
this.props.children,
|
|
1573
1525
|
this.props.onClose && React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
1574
1526
|
this.props.onClose && (React__namespace.default.createElement(FlexCell, { shrink: 0, width: "auto" },
|
|
1575
|
-
React__namespace.default.createElement(IconButton, { rawProps: { 'aria-label': 'Close modal' }, icon: ForwardRef$
|
|
1527
|
+
React__namespace.default.createElement(IconButton, { rawProps: { 'aria-label': 'Close modal' }, icon: ForwardRef$R, onClick: this.props.onClose })))));
|
|
1576
1528
|
}
|
|
1577
1529
|
}
|
|
1578
1530
|
class ModalFooter extends React__namespace.default.Component {
|
|
1579
1531
|
render() {
|
|
1580
1532
|
return (React__namespace.default.createElement(FlexRow, { columnGap: this.props.columnGap || '12', cx: [
|
|
1581
|
-
css$
|
|
1582
|
-
css$
|
|
1533
|
+
css$_.root,
|
|
1534
|
+
css$_.modalFooter,
|
|
1583
1535
|
this.props.cx,
|
|
1584
1536
|
], borderTop: this.props.borderTop, padding: this.props.padding || '24', vPadding: this.props.vPadding || '24', rawProps: this.props.rawProps }, this.props.children));
|
|
1585
1537
|
}
|
|
@@ -1726,22 +1678,22 @@ const TREE_SHAKEABLE_INIT = () => (Object.assign(Object.assign({}, uuiCore.i18n)
|
|
|
1726
1678
|
} }));
|
|
1727
1679
|
const i18n = /* @__PURE__ */TREE_SHAKEABLE_INIT();
|
|
1728
1680
|
|
|
1729
|
-
var _path$
|
|
1730
|
-
function _extends$
|
|
1681
|
+
var _path$u;
|
|
1682
|
+
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); }
|
|
1731
1683
|
var SvgNotificationHelpFill = function SvgNotificationHelpFill(props, ref) {
|
|
1732
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1684
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$u({
|
|
1733
1685
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1734
1686
|
width: 24,
|
|
1735
1687
|
height: 24,
|
|
1736
1688
|
viewBox: "0 0 24 24",
|
|
1737
1689
|
ref: ref
|
|
1738
|
-
}, props), _path$
|
|
1690
|
+
}, props), _path$u || (_path$u = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1739
1691
|
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"
|
|
1740
1692
|
})));
|
|
1741
1693
|
};
|
|
1742
|
-
var ForwardRef$
|
|
1694
|
+
var ForwardRef$u = /*#__PURE__*/React.forwardRef(SvgNotificationHelpFill);
|
|
1743
1695
|
|
|
1744
|
-
var css$
|
|
1696
|
+
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"};
|
|
1745
1697
|
|
|
1746
1698
|
const NotificationCard = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
1747
1699
|
const notificationCardNode = React__namespace.default.useRef(null);
|
|
@@ -1756,27 +1708,27 @@ const NotificationCard = /* @__PURE__ */React__namespace.default.forwardRef((pro
|
|
|
1756
1708
|
(_b = notificationCardNode.current) === null || _b === void 0 ? void 0 : _b.removeEventListener('mouseleave', props.refreshTimer);
|
|
1757
1709
|
};
|
|
1758
1710
|
}, []);
|
|
1759
|
-
return (React__namespace.default.createElement("div", Object.assign({ role: "alert", className: cx__default.default('uui-notification_card', props.color && `uui-color-${props.color}`, css$
|
|
1760
|
-
React__namespace.default.createElement("div", { className: css$
|
|
1761
|
-
props.icon && (React__namespace.default.createElement("div", { className: css$
|
|
1711
|
+
return (React__namespace.default.createElement("div", Object.assign({ role: "alert", className: cx__default.default('uui-notification_card', props.color && `uui-color-${props.color}`, css$Z.root, props.cx), ref: notificationCardNode }, props.rawProps),
|
|
1712
|
+
React__namespace.default.createElement("div", { className: css$Z.mainPath },
|
|
1713
|
+
props.icon && (React__namespace.default.createElement("div", { className: css$Z.iconWrapper },
|
|
1762
1714
|
React__namespace.default.createElement(uuiComponents.IconContainer, { size: 24, icon: props.icon }))),
|
|
1763
|
-
React__namespace.default.createElement("div", { className: css$
|
|
1715
|
+
React__namespace.default.createElement("div", { className: css$Z.content },
|
|
1764
1716
|
props.children,
|
|
1765
|
-
props.actions && (React__namespace.default.createElement("div", { className: css$
|
|
1766
|
-
props.onClose && (React__namespace.default.createElement("div", { className: css$
|
|
1767
|
-
React__namespace.default.createElement(IconButton, { icon: ForwardRef$
|
|
1717
|
+
props.actions && (React__namespace.default.createElement("div", { className: css$Z.actionWrapper }, props.actions.map((action) => (React__namespace.default.createElement(LinkButton, { caption: action.name, onClick: action.action, key: action.name, cx: css$Z.actionLink, size: "36", rawProps: action.rawProps })))))),
|
|
1718
|
+
props.onClose && (React__namespace.default.createElement("div", { className: css$Z.closeWrapper },
|
|
1719
|
+
React__namespace.default.createElement(IconButton, { icon: ForwardRef$R, color: "neutral", onClick: props.onClose, cx: css$Z.closeIcon }))))));
|
|
1768
1720
|
});
|
|
1769
|
-
const WarningNotification = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$
|
|
1770
|
-
const SuccessNotification = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$
|
|
1771
|
-
const HintNotification = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$
|
|
1772
|
-
const ErrorNotification = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$
|
|
1721
|
+
const WarningNotification = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$z, color: "warning" }, props, { ref: ref, cx: props.cx }))));
|
|
1722
|
+
const SuccessNotification = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$A, color: "success" }, props, { ref: ref, cx: props.cx }))));
|
|
1723
|
+
const HintNotification = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$u, color: "info" }, props, { ref: ref, cx: props.cx }))));
|
|
1724
|
+
const ErrorNotification = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$y, color: "error" }, props, { ref: ref, cx: props.cx }))));
|
|
1773
1725
|
function ClearNotification() {
|
|
1774
1726
|
const uuiCtx = uuiCore.useUuiContext();
|
|
1775
|
-
return (React__namespace.default.createElement("div", { className: cx__default.default(css$
|
|
1727
|
+
return (React__namespace.default.createElement("div", { className: cx__default.default(css$Z.notificationWrapper, css$Z.clearButton) },
|
|
1776
1728
|
React__namespace.default.createElement(LinkButton, { caption: i18n.notificationCard.closeAllNotificationsButton, onClick: () => uuiCtx.uuiNotifications.clearAll() })));
|
|
1777
1729
|
}
|
|
1778
1730
|
|
|
1779
|
-
var css$
|
|
1731
|
+
var css$Y = {"footer":"ZiE-I1"};
|
|
1780
1732
|
|
|
1781
1733
|
class ConfirmationModal extends React__namespace.Component {
|
|
1782
1734
|
render() {
|
|
@@ -1788,7 +1740,7 @@ class ConfirmationModal extends React__namespace.Component {
|
|
|
1788
1740
|
React__namespace.createElement(ModalWindow, { width: 420 },
|
|
1789
1741
|
React__namespace.createElement(ModalHeader, { borderBottom: true, title: this.props.caption, onClose: () => this.props.abort() }),
|
|
1790
1742
|
React__namespace.createElement(ScrollBars, null, bodyContent),
|
|
1791
|
-
React__namespace.createElement(ModalFooter, { cx: css$
|
|
1743
|
+
React__namespace.createElement(ModalFooter, { cx: css$Y.footer },
|
|
1792
1744
|
this.props.hideCancelButton || (React__namespace.createElement(Button, { caption: i18n.form.modals.discardButton, onClick: () => this.props.success(false), fill: "outline", color: "secondary" })),
|
|
1793
1745
|
React__namespace.createElement(Button, { caption: i18n.form.modals.saveButton, onClick: () => this.props.success(true), color: "primary" })))));
|
|
1794
1746
|
}
|
|
@@ -1818,7 +1770,7 @@ function useReliableForceUpdate() {
|
|
|
1818
1770
|
return red[1];
|
|
1819
1771
|
}
|
|
1820
1772
|
|
|
1821
|
-
var css$
|
|
1773
|
+
var css$X = {"root":"_8lNo6Q","timepicker-input":"hGynS5","timepickerInput":"hGynS5","ltr-always":"EaNOsO","ltrAlways":"EaNOsO"};
|
|
1822
1774
|
|
|
1823
1775
|
const uuiTimePicker = {
|
|
1824
1776
|
container: 'uui-timepicker-container',
|
|
@@ -1857,23 +1809,23 @@ function TimePickerBody(props) {
|
|
|
1857
1809
|
const minutesToSubtract = value.minute() % minutesStep === 0 ? minutesStep : value.minute() % minutesStep;
|
|
1858
1810
|
onMinutesChange(value.subtract(minutesToSubtract, 'm').minute());
|
|
1859
1811
|
};
|
|
1860
|
-
return (React__namespace.createElement("div", Object.assign({ className: uuiCore.cx(css$
|
|
1861
|
-
React__namespace.createElement("div", { className: css$
|
|
1812
|
+
return (React__namespace.createElement("div", Object.assign({ className: uuiCore.cx(css$X.root, uuiTimePicker.container, props.cx), ref: props.forwardedRef }, props.rawProps),
|
|
1813
|
+
React__namespace.createElement("div", { className: css$X.ltrAlways },
|
|
1862
1814
|
React__namespace.createElement("div", { className: uuiTimePicker.elementContainer },
|
|
1863
|
-
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, rawProps: { 'aria-label': 'Increment hours' }, cx: uuiTimePicker.iconUp, icon: ForwardRef$
|
|
1815
|
+
React__namespace.createElement(uuiComponents.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()) }),
|
|
1864
1816
|
React__namespace.createElement(uuiComponents.NumericInput, { cx: uuiTimePicker.input, onValueChange: onHoursChange, value: +(uuiDayjs.dayjs()
|
|
1865
1817
|
.set(props.value)
|
|
1866
1818
|
.format(MAX_HOURS === FORMAT_12H ? 'hh' : 'HH')), min: MIN_HOURS, max: MAX_HOURS }),
|
|
1867
|
-
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, rawProps: { 'aria-label': 'Decrement hours' }, cx: uuiTimePicker.iconDown, icon: ForwardRef$
|
|
1819
|
+
React__namespace.createElement(uuiComponents.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()) })),
|
|
1868
1820
|
React__namespace.createElement("div", { className: uuiTimePicker.elementContainer },
|
|
1869
|
-
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, rawProps: { 'aria-label': 'Increment minutes' }, cx: uuiTimePicker.iconUp, icon: ForwardRef$
|
|
1821
|
+
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, rawProps: { 'aria-label': 'Increment minutes' }, cx: uuiTimePicker.iconUp, icon: ForwardRef$Q, onClick: handleMinutesUpClick }),
|
|
1870
1822
|
React__namespace.createElement(uuiComponents.NumericInput, { cx: uuiTimePicker.input, onValueChange: onMinutesChange, value: +uuiDayjs.dayjs().set(props.value).format('m'), min: MIN_MINUTES, max: MAX_MINUTES }),
|
|
1871
|
-
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, rawProps: { 'aria-label': 'Decrement minutes' }, cx: uuiTimePicker.iconDown, icon: ForwardRef$
|
|
1823
|
+
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, rawProps: { 'aria-label': 'Decrement minutes' }, cx: uuiTimePicker.iconDown, icon: ForwardRef$Q, onClick: handleMinutesDownClick }))),
|
|
1872
1824
|
MAX_HOURS === FORMAT_12H && (React__namespace.createElement("div", { className: uuiTimePicker.elementContainer },
|
|
1873
|
-
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, cx: uuiTimePicker.iconUp, icon: ForwardRef$
|
|
1825
|
+
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, cx: uuiTimePicker.iconUp, icon: ForwardRef$Q, onClick: onTimeTypeChange }),
|
|
1874
1826
|
React__namespace.createElement(uuiComponents.TextInput, { cx: uuiTimePicker.input, onValueChange: () => {
|
|
1875
1827
|
}, isReadonly: true, value: uuiDayjs.dayjs().set(props.value).format('A') }),
|
|
1876
|
-
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, cx: uuiTimePicker.iconDown, icon: ForwardRef$
|
|
1828
|
+
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, cx: uuiTimePicker.iconDown, icon: ForwardRef$Q, onClick: onTimeTypeChange })))));
|
|
1877
1829
|
}
|
|
1878
1830
|
|
|
1879
1831
|
const getMeridian = (newValue, format) => {
|
|
@@ -2000,7 +1952,7 @@ function TimePicker(props) {
|
|
|
2000
1952
|
};
|
|
2001
1953
|
const renderInput = (inputProps) => {
|
|
2002
1954
|
var _a;
|
|
2003
|
-
return (React__namespace.default.createElement(TextInput, Object.assign({}, inputProps, { onClick: null, size: props.size || '36', isDisabled: props.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, cx: [css$
|
|
1955
|
+
return (React__namespace.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 })));
|
|
2004
1956
|
};
|
|
2005
1957
|
const renderBody = (bodyProps) => {
|
|
2006
1958
|
var _a;
|
|
@@ -2011,22 +1963,52 @@ function TimePicker(props) {
|
|
|
2011
1963
|
return (React__namespace.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 }));
|
|
2012
1964
|
}
|
|
2013
1965
|
|
|
2014
|
-
var css$
|
|
1966
|
+
var css$W = {"root":"_--uM47"};
|
|
2015
1967
|
|
|
2016
1968
|
function applyInputAddonMods() {
|
|
2017
1969
|
return [
|
|
2018
|
-
css$
|
|
1970
|
+
css$W.root,
|
|
2019
1971
|
];
|
|
2020
1972
|
}
|
|
2021
1973
|
const InputAddon = /* @__PURE__ */uuiCore.withMods(uuiComponents.InputAddon, applyInputAddonMods);
|
|
2022
1974
|
|
|
2023
|
-
var css$
|
|
1975
|
+
var css$V = {"root":"aKGPxT"};
|
|
2024
1976
|
|
|
2025
1977
|
function applySliderMods() {
|
|
2026
|
-
return [css$
|
|
1978
|
+
return [css$V.root, 'uui-color-neutral'];
|
|
2027
1979
|
}
|
|
2028
1980
|
const Slider = /* @__PURE__ */uuiCore.withMods(uuiComponents.Slider, applySliderMods);
|
|
2029
1981
|
|
|
1982
|
+
var _path$t;
|
|
1983
|
+
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); }
|
|
1984
|
+
var SvgStarFilled = function SvgStarFilled(props, ref) {
|
|
1985
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$t({
|
|
1986
|
+
width: 24,
|
|
1987
|
+
height: 24,
|
|
1988
|
+
viewBox: "0 0 24 24",
|
|
1989
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1990
|
+
ref: ref
|
|
1991
|
+
}, props), _path$t || (_path$t = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1992
|
+
fillRule: "evenodd",
|
|
1993
|
+
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"
|
|
1994
|
+
})));
|
|
1995
|
+
};
|
|
1996
|
+
var ForwardRef$t = /*#__PURE__*/React.forwardRef(SvgStarFilled);
|
|
1997
|
+
|
|
1998
|
+
var css$U = {"root":"Sgbu2C","tooltip":"Nit79W"};
|
|
1999
|
+
|
|
2000
|
+
function applyRatingMods(mods) {
|
|
2001
|
+
return [
|
|
2002
|
+
css$U.root,
|
|
2003
|
+
`uui-size-${mods.size || settings.sizes.defaults.rating}`,
|
|
2004
|
+
];
|
|
2005
|
+
}
|
|
2006
|
+
const Rating = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Rating, applyRatingMods, (props) => ({
|
|
2007
|
+
filledStarIcon: props.icon || ForwardRef$t,
|
|
2008
|
+
emptyStarIcon: props.icon || ForwardRef$t,
|
|
2009
|
+
Tooltip,
|
|
2010
|
+
}));
|
|
2011
|
+
|
|
2030
2012
|
const defaultFormat = 'MMM D, YYYY';
|
|
2031
2013
|
const valueFormat = 'YYYY-MM-DD';
|
|
2032
2014
|
const supportedDateFormats = (format) => {
|
|
@@ -2155,7 +2137,7 @@ const getNextYearsList = (currentDate) => {
|
|
|
2155
2137
|
return currentDate.add(16, 'year');
|
|
2156
2138
|
};
|
|
2157
2139
|
|
|
2158
|
-
var css$
|
|
2140
|
+
var css$T = {"root":"szxv-D","container":"w2rfmQ"};
|
|
2159
2141
|
|
|
2160
2142
|
const uuiHeader = {
|
|
2161
2143
|
container: 'uui-datepicker-header-container',
|
|
@@ -2232,21 +2214,21 @@ function DatePickerHeader({ navIconLeft, navIconRight, value: { month, view }, o
|
|
|
2232
2214
|
}, [view, month]);
|
|
2233
2215
|
const disablePrev = view === 'YEAR_SELECTION' && !isYearWithinSoberRange(getPrevYearsList(month));
|
|
2234
2216
|
const disableNext = view === 'YEAR_SELECTION' && !isYearWithinSoberRange(getNextYearsList(month));
|
|
2235
|
-
return (React__namespace.createElement("div", { className: cx__default.default(css$
|
|
2217
|
+
return (React__namespace.createElement("div", { className: cx__default.default(css$T.root, uuiHeader.container, cx__default.default) },
|
|
2236
2218
|
React__namespace.createElement("header", { className: uuiHeader.headerNav },
|
|
2237
|
-
React__namespace.createElement(Button, { icon: navIconLeft || ForwardRef$
|
|
2219
|
+
React__namespace.createElement(Button, { icon: navIconLeft || ForwardRef$w, color: "secondary", fill: "ghost", cx: uuiHeader.navIconLeft, onClick: !isDisabled && (() => onLeftNavigationArrow()), isDisabled: disablePrev }),
|
|
2238
2220
|
React__namespace.createElement(Button, { caption: title, fill: "ghost", cx: uuiHeader.navTitle, onClick: !isDisabled && (() => onCaptionClick(view)) }),
|
|
2239
|
-
React__namespace.createElement(Button, { icon: navIconRight || ForwardRef$
|
|
2221
|
+
React__namespace.createElement(Button, { icon: navIconRight || ForwardRef$v, color: "secondary", fill: "ghost", cx: uuiHeader.navIconRight, onClick: !isDisabled && (() => onRightNavigationArrow()), isDisabled: disableNext }))));
|
|
2240
2222
|
}
|
|
2241
2223
|
|
|
2242
|
-
var css$
|
|
2224
|
+
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"};
|
|
2243
2225
|
|
|
2244
2226
|
function applyDateSelectionMods() {
|
|
2245
|
-
return [css$
|
|
2227
|
+
return [css$S.root, `uui-size-${settings.sizes.defaults.datePicker}`];
|
|
2246
2228
|
}
|
|
2247
2229
|
const Calendar = /* @__PURE__ */uuiCore.withMods(uuiComponents.Calendar, applyDateSelectionMods);
|
|
2248
2230
|
|
|
2249
|
-
var css$
|
|
2231
|
+
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"};
|
|
2250
2232
|
|
|
2251
2233
|
const uuiDatePickerBody = {
|
|
2252
2234
|
wrapper: 'uui-datepicker-body-wrapper',
|
|
@@ -2290,7 +2272,7 @@ function StatelessDatePickerBodyComp({ renderDay, isHoliday, cx: classes, filter
|
|
|
2290
2272
|
}
|
|
2291
2273
|
};
|
|
2292
2274
|
return (React__namespace.default.createElement("div", Object.assign({ ref: ref, className: uuiCore.cx(uuiDatePickerBodyBase.container, `uui-size-${settings.sizes.defaults.datePicker}`, classes) }, rawProps),
|
|
2293
|
-
React__namespace.default.createElement("div", { className: uuiCore.cx(css$
|
|
2275
|
+
React__namespace.default.createElement("div", { className: uuiCore.cx(css$R.root, uuiDatePickerBody.wrapper) },
|
|
2294
2276
|
React__namespace.default.createElement(DatePickerHeader, { value: {
|
|
2295
2277
|
view,
|
|
2296
2278
|
month,
|
|
@@ -2377,9 +2359,9 @@ function DatePickerComponent(props, ref) {
|
|
|
2377
2359
|
}
|
|
2378
2360
|
const DatePicker = /* @__PURE__ */React__namespace.default.forwardRef(DatePickerComponent);
|
|
2379
2361
|
|
|
2380
|
-
var css$
|
|
2362
|
+
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"};
|
|
2381
2363
|
|
|
2382
|
-
const RangeDatePickerInput = /* @__PURE__ */React.forwardRef(({ isDisabled, isInvalid, isReadonly, size, disableClear, rawProps, value, inFocus, format, onValueChange, onFocusInput, onBlurInput, onClick, getPlaceholder, filter, id, cx: classes, }, ref) => {
|
|
2364
|
+
const RangeDatePickerInput = /* @__PURE__ */React.forwardRef(({ isDisabled, isInvalid, isReadonly, size, disableClear, rawProps, value, inFocus, format, onValueChange, onFocusInput, onBlurInput, onClick, getPlaceholder, filter, onKeyDown, id, cx: classes, }, ref) => {
|
|
2383
2365
|
const [inputValue, setInputValue] = React.useState(toCustomDateRangeFormat(value, format));
|
|
2384
2366
|
React.useEffect(() => {
|
|
2385
2367
|
setInputValue(toCustomDateRangeFormat(value, format));
|
|
@@ -2409,15 +2391,17 @@ const RangeDatePickerInput = /* @__PURE__ */React.forwardRef(({ isDisabled, isIn
|
|
|
2409
2391
|
}
|
|
2410
2392
|
};
|
|
2411
2393
|
const clearAllowed = !disableClear && inputValue.from && inputValue.to;
|
|
2412
|
-
return (
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
React__namespace.default.createElement(TextInput, { cx: uuiCore.cx(css$
|
|
2394
|
+
return (
|
|
2395
|
+
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
2396
|
+
React__namespace.default.createElement("div", { ref: ref, className: uuiCore.cx(`uui-size-${size || settings.sizes.defaults.rangeDatePicker}`, 'uui-range-date-picker', classes, css$Q.root, isDisabled && uuiCore.uuiMod.disabled, isReadonly && uuiCore.uuiMod.readonly, isInvalid && uuiCore.uuiMod.invalid, inFocus && uuiCore.uuiMod.focus), onKeyDown: onKeyDown },
|
|
2397
|
+
React__namespace.default.createElement(TextInput, { icon: systemIcons.calendar, cx: uuiCore.cx(css$Q.dateInput, inFocus === 'from' && uuiCore.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 }),
|
|
2398
|
+
React__namespace.default.createElement("div", { className: css$Q.separator }),
|
|
2399
|
+
React__namespace.default.createElement(TextInput, { cx: uuiCore.cx(css$Q.dateInput, inFocus === 'to' && uuiCore.uuiMod.focus), placeholder: getPlaceholder ? getPlaceholder('to') : i18n.rangeDatePicker.pickerPlaceholderTo, size: size || settings.sizes.defaults.rangeDatePicker, value: inputValue.to || undefined, onCancel: clearAllowed ? () => {
|
|
2416
2400
|
onValueChange(defaultRangeValue);
|
|
2417
2401
|
} : 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 })));
|
|
2418
2402
|
});
|
|
2419
2403
|
|
|
2420
|
-
var css$
|
|
2404
|
+
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"};
|
|
2421
2405
|
|
|
2422
2406
|
const uuiPresets = {
|
|
2423
2407
|
container: 'uui-presets-container',
|
|
@@ -2428,12 +2412,12 @@ const getPresets = (presets) => {
|
|
|
2428
2412
|
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);
|
|
2429
2413
|
};
|
|
2430
2414
|
function CalendarPresets(props) {
|
|
2431
|
-
return (React__namespace.createElement("div", Object.assign({ ref: props.forwardedRef, className: uuiCore.cx(uuiPresets.container, css$
|
|
2415
|
+
return (React__namespace.createElement("div", Object.assign({ ref: props.forwardedRef, className: uuiCore.cx(uuiPresets.container, css$P.root, props.cx) }, props.rawProps),
|
|
2432
2416
|
React__namespace.createElement("div", { className: uuiPresets.header }, "Presets"),
|
|
2433
2417
|
getPresets(props.presets).map((item) => (React__namespace.createElement(LinkButton, { key: item.key, caption: item.name, onClick: () => props.onPresetSet(item), size: "24" })))));
|
|
2434
2418
|
}
|
|
2435
2419
|
|
|
2436
|
-
var css$
|
|
2420
|
+
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"};
|
|
2437
2421
|
|
|
2438
2422
|
const uuiRangeDatePickerBody = {
|
|
2439
2423
|
inRange: 'uui-range-datepicker-in-range',
|
|
@@ -2574,21 +2558,21 @@ function RangeDatePickerBodyComp(props, ref) {
|
|
|
2574
2558
|
});
|
|
2575
2559
|
}, presets: presets })));
|
|
2576
2560
|
};
|
|
2577
|
-
return (React__namespace.default.createElement("div", Object.assign({ ref: ref, className: uuiCore.cx(css$
|
|
2578
|
-
React__namespace.default.createElement(FlexRow, { cx: [view === 'DAY_SELECTION' && css$
|
|
2561
|
+
return (React__namespace.default.createElement("div", Object.assign({ ref: ref, className: uuiCore.cx(css$O.root, uuiDatePickerBodyBase.container, props.cx) }, props.rawProps),
|
|
2562
|
+
React__namespace.default.createElement(FlexRow, { cx: [view === 'DAY_SELECTION' && css$O.daySelection, css$O.container], alignItems: "top" },
|
|
2579
2563
|
React__namespace.default.createElement(FlexCell, { width: "auto" },
|
|
2580
2564
|
React__namespace.default.createElement(FlexRow, null,
|
|
2581
|
-
React__namespace.default.createElement(FlexRow, { cx: css$
|
|
2582
|
-
React__namespace.default.createElement(StatelessDatePickerBody, Object.assign({ key: "date-picker-body-left", cx: uuiCore.cx(css$
|
|
2565
|
+
React__namespace.default.createElement(FlexRow, { cx: css$O.bodesWrapper, alignItems: "top" },
|
|
2566
|
+
React__namespace.default.createElement(StatelessDatePickerBody, Object.assign({ key: "date-picker-body-left", cx: uuiCore.cx(css$O.fromPicker) }, from, { onValueChange: (v) => onBodyValueChange(v, 'from'), onMonthChange: (m) => {
|
|
2583
2567
|
setMonth(m);
|
|
2584
2568
|
}, onViewChange: (v) => setView(v), filter: props.filter, isHoliday: props.isHoliday, renderDay: props.renderDay || renderDay, isDisabled: view !== 'DAY_SELECTION' && activeMonth === 'to' })),
|
|
2585
|
-
React__namespace.default.createElement(StatelessDatePickerBody, Object.assign({ key: "date-picker-body-right", cx: uuiCore.cx(css$
|
|
2569
|
+
React__namespace.default.createElement(StatelessDatePickerBody, Object.assign({ key: "date-picker-body-right", cx: uuiCore.cx(css$O.toPicker) }, to, { onValueChange: (v) => onBodyValueChange(v, 'to'), onMonthChange: (m) => {
|
|
2586
2570
|
setMonth(m.subtract(1, 'month'));
|
|
2587
2571
|
}, onViewChange: (v) => setView(v), filter: props.filter, renderDay: props.renderDay || renderDay, isHoliday: props.isHoliday, isDisabled: view !== 'DAY_SELECTION' && activeMonth === 'from' })),
|
|
2588
2572
|
view !== 'DAY_SELECTION' && (React__namespace.default.createElement("div", { style: {
|
|
2589
2573
|
left: activeMonth === 'from' ? '50%' : undefined,
|
|
2590
2574
|
right: activeMonth === 'to' ? '50%' : undefined,
|
|
2591
|
-
}, className: css$
|
|
2575
|
+
}, className: css$O.blocker }))),
|
|
2592
2576
|
props.presets && renderPresets(props.presets)),
|
|
2593
2577
|
props.renderFooter && props.renderFooter()))));
|
|
2594
2578
|
}
|
|
@@ -2608,7 +2592,7 @@ const getDayCX = (day, selectedDate) => {
|
|
|
2608
2592
|
return [uuiCore.cx(inRange && uuiRangeDatePickerBody.inRange, isFirst && uuiRangeDatePickerBody.firstDayInRangeWrapper, !inRange && isFirst && uuiRangeDatePickerBody.lastDayInRangeWrapper, isLast && uuiRangeDatePickerBody.lastDayInRangeWrapper, !inRange && isLast && uuiRangeDatePickerBody.firstDayInRangeWrapper, (dayValue === fromValue || dayValue === toValue) && uuiComponents.uuiDaySelection.selectedDay)];
|
|
2609
2593
|
};
|
|
2610
2594
|
|
|
2611
|
-
var css$
|
|
2595
|
+
var css$N = {"dropdown-container":"_8EGDM5","dropdownContainer":"_8EGDM5"};
|
|
2612
2596
|
|
|
2613
2597
|
const modifiers = [{
|
|
2614
2598
|
name: 'offset',
|
|
@@ -2620,6 +2604,7 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
2620
2604
|
const context = uuiCore.useUuiContext();
|
|
2621
2605
|
const [isOpen, setIsOpen] = React.useState(false);
|
|
2622
2606
|
const [inFocus, setInFocus] = React.useState(null);
|
|
2607
|
+
const targetRef = React__namespace.default.useRef(null);
|
|
2623
2608
|
const onValueChange = (newValue) => {
|
|
2624
2609
|
const fromChanged = (value === null || value === void 0 ? void 0 : value.from) !== (newValue === null || newValue === void 0 ? void 0 : newValue.from);
|
|
2625
2610
|
const toChanged = (value === null || value === void 0 ? void 0 : value.to) !== (newValue === null || newValue === void 0 ? void 0 : newValue.to);
|
|
@@ -2635,6 +2620,10 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
2635
2620
|
var _a;
|
|
2636
2621
|
setIsOpen(newIsOpen);
|
|
2637
2622
|
(_a = props.onOpenChange) === null || _a === void 0 ? void 0 : _a.call(props, newIsOpen);
|
|
2623
|
+
if (!inFocus && newIsOpen) {
|
|
2624
|
+
setInFocus('from');
|
|
2625
|
+
targetRef.current.querySelector('.uui-input').focus();
|
|
2626
|
+
}
|
|
2638
2627
|
};
|
|
2639
2628
|
const onBodyValueChange = (newValue) => {
|
|
2640
2629
|
var _a;
|
|
@@ -2650,7 +2639,10 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
2650
2639
|
};
|
|
2651
2640
|
const renderBody = (renderProps) => {
|
|
2652
2641
|
var _a;
|
|
2653
|
-
return (React__namespace.default.createElement(DropdownContainer, Object.assign({}, renderProps, { cx: cx__default.default(css$
|
|
2642
|
+
return (React__namespace.default.createElement(DropdownContainer, Object.assign({}, renderProps, { cx: cx__default.default(css$N.dropdownContainer), shards: [targetRef], returnFocus: (node) => {
|
|
2643
|
+
console.log('lock', node);
|
|
2644
|
+
return true;
|
|
2645
|
+
} }),
|
|
2654
2646
|
React__namespace.default.createElement(FlexRow, null,
|
|
2655
2647
|
React__namespace.default.createElement(RangeDatePickerBody, { cx: cx__default.default(props.bodyCx), value: {
|
|
2656
2648
|
selectedDate: _value,
|
|
@@ -2660,33 +2652,83 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
2660
2652
|
return (_a = props.renderFooter) === null || _a === void 0 ? void 0 : _a.call(props, value);
|
|
2661
2653
|
}, isHoliday: props.isHoliday, rawProps: (_a = props.rawProps) === null || _a === void 0 ? void 0 : _a.body }))));
|
|
2662
2654
|
};
|
|
2655
|
+
const handleEscape = (e) => {
|
|
2656
|
+
if (e.key === 'Escape' && isOpen) {
|
|
2657
|
+
e.preventDefault();
|
|
2658
|
+
onOpenChange(false);
|
|
2659
|
+
}
|
|
2660
|
+
};
|
|
2663
2661
|
return (React__namespace.default.createElement(uuiComponents.Dropdown, { renderTarget: (renderProps) => {
|
|
2664
2662
|
var _a;
|
|
2665
|
-
return ((_a = props.renderTarget) === null || _a === void 0 ? void 0 : _a.call(props, renderProps)) || (React__namespace.default.createElement(RangeDatePickerInput, { id: props.id, ref: renderProps.ref, cx: props.inputCx, onClick: renderProps.
|
|
2663
|
+
return ((_a = props.renderTarget) === null || _a === void 0 ? void 0 : _a.call(props, renderProps)) || (React__namespace.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) => {
|
|
2666
2664
|
var _a;
|
|
2667
2665
|
(_a = props.onFocus) === null || _a === void 0 ? void 0 : _a.call(props, e, type);
|
|
2668
2666
|
setInFocus(type);
|
|
2669
|
-
}, onBlurInput: (e, type) => { var _a; (_a = props.onBlur) === null || _a === void 0 ? void 0 : _a.call(props, e, type); !isOpen && setInFocus(null); } }));
|
|
2667
|
+
}, onBlurInput: (e, type) => { var _a; (_a = props.onBlur) === null || _a === void 0 ? void 0 : _a.call(props, e, type); !isOpen && setInFocus(null); }, onKeyDown: handleEscape }));
|
|
2670
2668
|
}, renderBody: (renderProps) => renderBody(renderProps), onValueChange: (v) => onOpenChange(v), value: isOpen, modifiers: modifiers, placement: props.placement, forwardedRef: ref }));
|
|
2671
2669
|
}
|
|
2672
2670
|
const RangeDatePicker = /* @__PURE__ */React__namespace.default.forwardRef(RangeDatePickerComponent);
|
|
2673
2671
|
|
|
2674
|
-
var css$
|
|
2672
|
+
var css$M = {"root":"amJHPU","blocker":"J0ttvg","marker":"Us8vLQ","top":"f29Dpz","bottom":"CWYmdx","left":"QNc0Hq","right":"kS015b","inside":"hnFgUs"};
|
|
2675
2673
|
|
|
2676
2674
|
function DropMarker(props) {
|
|
2677
2675
|
return props.isDndInProgress
|
|
2678
2676
|
? (React__namespace.createElement(React__namespace.Fragment, null,
|
|
2679
|
-
props.enableBlocker && React__namespace.createElement("div", { className: css$
|
|
2677
|
+
props.enableBlocker && React__namespace.createElement("div", { className: css$M.blocker }),
|
|
2680
2678
|
React__namespace.createElement("div", { className: cx__default.default([
|
|
2681
|
-
css$
|
|
2682
|
-
css$
|
|
2683
|
-
css$
|
|
2679
|
+
css$M.root,
|
|
2680
|
+
css$M.marker,
|
|
2681
|
+
css$M[props.position],
|
|
2684
2682
|
props === null || props === void 0 ? void 0 : props.cx,
|
|
2685
2683
|
]) })))
|
|
2686
2684
|
: null;
|
|
2687
2685
|
}
|
|
2688
2686
|
|
|
2689
|
-
var css$
|
|
2687
|
+
var css$L = {"root":"pxbV8N","line-height":"J7DtPY","lineHeight":"J7DtPY","font-size":"bDGiEa","fontSize":"bDGiEa"};
|
|
2688
|
+
|
|
2689
|
+
function applyTextMods(mods) {
|
|
2690
|
+
return [
|
|
2691
|
+
css$L.root,
|
|
2692
|
+
'uui-text',
|
|
2693
|
+
`uui-size-${mods.size || settings.sizes.defaults.text}`,
|
|
2694
|
+
(mods.size !== 'none' || mods.lineHeight) && css$L.lineHeight,
|
|
2695
|
+
(mods.size !== 'none' || mods.fontSize) && css$L.fontSize,
|
|
2696
|
+
`uui-color-${mods.color || 'primary'}`,
|
|
2697
|
+
`uui-font-weight-${mods.fontWeight || '400'}`,
|
|
2698
|
+
`uui-font-style-${mods.fontStyle || 'normal'}`,
|
|
2699
|
+
'uui-typography',
|
|
2700
|
+
];
|
|
2701
|
+
}
|
|
2702
|
+
const Text = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Text, applyTextMods, (props) => {
|
|
2703
|
+
var _a;
|
|
2704
|
+
const style = ((_a = props === null || props === void 0 ? void 0 : props.rawProps) === null || _a === void 0 ? void 0 : _a.style) || {};
|
|
2705
|
+
props.fontSize && (style['--uui-text-font-size'] = `${props.fontSize}px`);
|
|
2706
|
+
props.lineHeight && (style['--uui-text-line-height'] = `${props.lineHeight}px`);
|
|
2707
|
+
return {
|
|
2708
|
+
rawProps: Object.assign(Object.assign({}, props === null || props === void 0 ? void 0 : props.rawProps), { style: style }),
|
|
2709
|
+
};
|
|
2710
|
+
});
|
|
2711
|
+
|
|
2712
|
+
var css$K = {"root":"xKLHQC","loading-word":"_07302B","loadingWord":"_07302B","animated-loading":"-PDPj9","animatedLoading":"-PDPj9","skeleton_loading":"_1G6SuV","skeletonLoading":"_1G6SuV"};
|
|
2713
|
+
|
|
2714
|
+
const TextPlaceholder = (props) => {
|
|
2715
|
+
const pattern = ' ';
|
|
2716
|
+
const text = React__namespace.useMemo(() => {
|
|
2717
|
+
const words = [];
|
|
2718
|
+
for (let i = 0; i < (props.wordsCount || 1); i++) {
|
|
2719
|
+
const lengthWord = Math.floor(Math.random() * 10 + 8);
|
|
2720
|
+
words.push(pattern.repeat(lengthWord));
|
|
2721
|
+
}
|
|
2722
|
+
return words;
|
|
2723
|
+
}, [props.wordsCount]);
|
|
2724
|
+
return (React__namespace.createElement("div", Object.assign({ "aria-busy": true, className: cx__default.default(css$K.root, 'uui-text-placeholder') }, props.rawProps), text.map((it, index) => (React__namespace.createElement("span", { key: index, className: cx__default.default([
|
|
2725
|
+
props.cx, css$K.loadingWord, !props.isNotAnimated && css$K.animatedLoading,
|
|
2726
|
+
]), dangerouslySetInnerHTML: { __html: it } })))));
|
|
2727
|
+
};
|
|
2728
|
+
|
|
2729
|
+
const RichTextView = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.RichTextView, (mods) => ['uui-typography', `uui-typography-size-${mods.size || '14'}`]);
|
|
2730
|
+
|
|
2731
|
+
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"};
|
|
2690
2732
|
|
|
2691
2733
|
class DataPickerBody extends uuiComponents.PickerBodyBase {
|
|
2692
2734
|
constructor() {
|
|
@@ -2734,41 +2776,38 @@ class DataPickerBody extends uuiComponents.PickerBodyBase {
|
|
|
2734
2776
|
}
|
|
2735
2777
|
}
|
|
2736
2778
|
|
|
2737
|
-
var css$I = {"footer":"
|
|
2779
|
+
var css$I = {"footer":"jsrYpw"};
|
|
2738
2780
|
|
|
2739
2781
|
function DataPickerFooterImpl(props) {
|
|
2740
2782
|
const { search, clearSelection, view, showSelected, selectionMode, isSearchTooShort, } = props;
|
|
2741
2783
|
const size = uuiCore.isMobile() ? settings.sizes.pickerInput.body.mobile.footer.linkButton : props.size;
|
|
2742
2784
|
const hasSelection = view.getSelectedRowsCount() > 0;
|
|
2743
2785
|
const rowsCount = view.getListProps().rowsCount;
|
|
2744
|
-
const isEmptyRowsAndHasNoSelection = (rowsCount === 0 && !hasSelection);
|
|
2745
2786
|
const isSinglePicker = selectionMode === 'single';
|
|
2746
2787
|
const clearAllText = i18n.pickerInput.clearSelectionButton;
|
|
2747
2788
|
const clearSingleText = i18n.pickerInput.clearSelectionButtonSingle;
|
|
2748
2789
|
const selectAllText = i18n.pickerInput.selectAllButton;
|
|
2749
|
-
|
|
2750
|
-
const
|
|
2751
|
-
const
|
|
2790
|
+
const isSearching = search === null || search === void 0 ? void 0 : search.length;
|
|
2791
|
+
const hideFooter = isSearchTooShort || rowsCount === 0 || isSearching || (isSinglePicker && props.disableClear);
|
|
2792
|
+
const showClear = !props.disableClear && (isSinglePicker ? true : (!view.selectAll || hasSelection));
|
|
2752
2793
|
return !hideFooter && (React__namespace.default.createElement(FlexRow, { cx: css$I.footer },
|
|
2753
2794
|
!isSinglePicker && (React__namespace.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 })),
|
|
2754
2795
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
2755
2796
|
React__namespace.default.createElement(FlexCell, { width: "auto", alignSelf: "center" },
|
|
2756
|
-
view.selectAll && (React__namespace.default.createElement(LinkButton, {
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
'aria-label': isSinglePicker ? clearSingleText : clearAllText,
|
|
2761
|
-
} })))));
|
|
2797
|
+
view.selectAll && !hasSelection && (React__namespace.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.
|
|
2798
|
+
, size: size, caption: selectAllText, onClick: () => view.selectAll.onValueChange(true) })),
|
|
2799
|
+
showClear && (React__namespace.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.
|
|
2800
|
+
, size: size, caption: isSinglePicker ? clearSingleText : clearAllText, onClick: clearSelection, isDisabled: !hasSelection })))));
|
|
2762
2801
|
}
|
|
2763
2802
|
const DataPickerFooter = /* @__PURE__ */React__namespace.default.memo(DataPickerFooterImpl);
|
|
2764
2803
|
|
|
2765
|
-
var css$H = {"header":"
|
|
2804
|
+
var css$H = {"header":"_9-GjJD","title":"wlsnYy","close":"JSP4n1"};
|
|
2766
2805
|
|
|
2767
2806
|
const DataPickerHeaderImpl = (props) => {
|
|
2768
2807
|
const title = props.title && typeof props.title === 'string' ? props.title.charAt(0).toUpperCase() + props.title.slice(1) : '';
|
|
2769
2808
|
return (React__namespace.default.createElement(FlexRow, { alignItems: "center", borderBottom: true, cx: css$H.header },
|
|
2770
2809
|
React__namespace.default.createElement(Text, { size: settings.sizes.pickerInput.body.mobile.header.titleSize, cx: css$H.title }, title),
|
|
2771
|
-
React__namespace.default.createElement(IconButton, { icon: ForwardRef$
|
|
2810
|
+
React__namespace.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 })));
|
|
2772
2811
|
};
|
|
2773
2812
|
const DataPickerHeader = /* @__PURE__ */React__namespace.default.memo(DataPickerHeaderImpl);
|
|
2774
2813
|
|
|
@@ -2787,7 +2826,7 @@ var SvgNotificationDoneFill = function SvgNotificationDoneFill(props, ref) {
|
|
|
2787
2826
|
};
|
|
2788
2827
|
var ForwardRef$s = /*#__PURE__*/React.forwardRef(SvgNotificationDoneFill);
|
|
2789
2828
|
|
|
2790
|
-
var css$G = {"uui-typography":"
|
|
2829
|
+
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"};
|
|
2791
2830
|
|
|
2792
2831
|
function DataPickerCell(props) {
|
|
2793
2832
|
const ref = React__namespace.useRef();
|
|
@@ -2806,7 +2845,7 @@ function DataPickerCell(props) {
|
|
|
2806
2845
|
props.renderItem(props.rowProps.value, props.rowProps),
|
|
2807
2846
|
React__namespace.createElement(uuiComponents.FlexSpacer, null),
|
|
2808
2847
|
(props.rowProps.isChildrenSelected || props.rowProps.isSelected) && (React__namespace.createElement("div", { className: uuiCore.cx(css$G.iconWrapper, uuiCore.uuiMod.selected) },
|
|
2809
|
-
React__namespace.createElement(uuiComponents.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$
|
|
2848
|
+
React__namespace.createElement(uuiComponents.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
|
|
2810
2849
|
? 'Child is selected'
|
|
2811
2850
|
: 'Selected' } })))));
|
|
2812
2851
|
}
|
|
@@ -2824,7 +2863,7 @@ function DataPickerCell(props) {
|
|
|
2824
2863
|
getWrappedContent()));
|
|
2825
2864
|
}
|
|
2826
2865
|
|
|
2827
|
-
var css$F = {"uui-typography":"
|
|
2866
|
+
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"};
|
|
2828
2867
|
|
|
2829
2868
|
class DataPickerRow extends React__namespace.Component {
|
|
2830
2869
|
constructor() {
|
|
@@ -2838,7 +2877,7 @@ class DataPickerRow extends React__namespace.Component {
|
|
|
2838
2877
|
}
|
|
2839
2878
|
}
|
|
2840
2879
|
|
|
2841
|
-
var css$E = {"uui-typography":"
|
|
2880
|
+
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"};
|
|
2842
2881
|
|
|
2843
2882
|
const PickerBodyMobileView = (props) => {
|
|
2844
2883
|
const isMobileView = uuiCore.isMobile();
|
|
@@ -2872,7 +2911,7 @@ var SvgSearchWithBackground = function SvgSearchWithBackground(props, ref) {
|
|
|
2872
2911
|
};
|
|
2873
2912
|
var ForwardRef$r = /*#__PURE__*/React.forwardRef(SvgSearchWithBackground);
|
|
2874
2913
|
|
|
2875
|
-
var css$D = {"uui-typography":"
|
|
2914
|
+
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"};
|
|
2876
2915
|
|
|
2877
2916
|
const mergeHighlightRanges = (ranges) => {
|
|
2878
2917
|
const mergedRanges = [];
|
|
@@ -2939,7 +2978,7 @@ const getHighlightedSearchMatches = (str, search) => {
|
|
|
2939
2978
|
return getDecoratedText(str, ranges);
|
|
2940
2979
|
};
|
|
2941
2980
|
|
|
2942
|
-
var css$C = {"root":"
|
|
2981
|
+
var css$C = {"root":"nIqccQ","column-gap":"r-acSI","columnGap":"r-acSI","multiline":"FweHeM","text":"Z-PORy"};
|
|
2943
2982
|
|
|
2944
2983
|
function PickerItem(props) {
|
|
2945
2984
|
var _a;
|
|
@@ -3014,7 +3053,7 @@ function PickerModal(props) {
|
|
|
3014
3053
|
React__namespace.default.createElement(ModalFooter, { padding: "24", vPadding: "24" }, props.renderFooter ? props.renderFooter(getFooterProps()) : renderFooter()))));
|
|
3015
3054
|
}
|
|
3016
3055
|
|
|
3017
|
-
var css$B = {"tooltip":"
|
|
3056
|
+
var css$B = {"tooltip":"gCXaJa"};
|
|
3018
3057
|
|
|
3019
3058
|
const PickerTogglerTag = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
3020
3059
|
var _a;
|
|
@@ -3029,7 +3068,7 @@ const PickerTogglerTag = /* @__PURE__ */React__namespace.forwardRef((props, ref)
|
|
|
3029
3068
|
}
|
|
3030
3069
|
});
|
|
3031
3070
|
|
|
3032
|
-
var css$A = {"uui-typography":"
|
|
3071
|
+
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"};
|
|
3033
3072
|
|
|
3034
3073
|
const defaultMode = EditMode.FORM;
|
|
3035
3074
|
function applyPickerTogglerMods(mods) {
|
|
@@ -3126,7 +3165,7 @@ function PickerInputComponent(_a, ref) {
|
|
|
3126
3165
|
}
|
|
3127
3166
|
const PickerInput = /* @__PURE__ */React__namespace.default.forwardRef(PickerInputComponent);
|
|
3128
3167
|
|
|
3129
|
-
var css$z = {"row":"
|
|
3168
|
+
var css$z = {"row":"l7xfMW"};
|
|
3130
3169
|
|
|
3131
3170
|
function PickerListItem(props) {
|
|
3132
3171
|
var _a;
|
|
@@ -3147,7 +3186,7 @@ function PickerListItem(props) {
|
|
|
3147
3186
|
return (React__namespace.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));
|
|
3148
3187
|
}
|
|
3149
3188
|
|
|
3150
|
-
var css$y = {"root":"
|
|
3189
|
+
var css$y = {"root":"sGLTPF"};
|
|
3151
3190
|
|
|
3152
3191
|
function PickerList(props) {
|
|
3153
3192
|
const { context, view, onlySelectedView, getName, getEntityName, appendLastSelected, getSelectedIdsArray, buildRowsList, getMaxDefaultItems, dataSourceState, getModalTogglerCaption, } = uuiComponents.usePickerList(props);
|
|
@@ -3182,7 +3221,7 @@ function PickerList(props) {
|
|
|
3182
3221
|
}, selectedRows)));
|
|
3183
3222
|
}
|
|
3184
3223
|
|
|
3185
|
-
var css$x = {"uui-typography":"
|
|
3224
|
+
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"};
|
|
3186
3225
|
|
|
3187
3226
|
function DataTableCell(initialProps) {
|
|
3188
3227
|
const props = Object.assign({}, initialProps);
|
|
@@ -3231,7 +3270,7 @@ function DataTableCell(initialProps) {
|
|
|
3231
3270
|
return React__namespace.createElement(uuiComponents.DataTableCell, Object.assign({}, props));
|
|
3232
3271
|
}
|
|
3233
3272
|
|
|
3234
|
-
var css$w = {"uui-typography":"
|
|
3273
|
+
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"};
|
|
3235
3274
|
|
|
3236
3275
|
// Here we define a single instance of the renderCell function to make DataTableRow#shouldComponentUpdate work.
|
|
3237
3276
|
// 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.
|
|
@@ -3247,7 +3286,7 @@ const DataTableRow = /* @__PURE__ */uuiCore.withMods(uuiComponents.DataTableRow,
|
|
|
3247
3286
|
];
|
|
3248
3287
|
}, () => propsMods);
|
|
3249
3288
|
|
|
3250
|
-
var css$v = {"uui-typography":"
|
|
3289
|
+
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"};
|
|
3251
3290
|
|
|
3252
3291
|
var _path$q;
|
|
3253
3292
|
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); }
|
|
@@ -3377,7 +3416,7 @@ var SvgNavigationExpandAllOutline = function SvgNavigationExpandAllOutline(props
|
|
|
3377
3416
|
};
|
|
3378
3417
|
var ForwardRef$k = /*#__PURE__*/React.forwardRef(SvgNavigationExpandAllOutline);
|
|
3379
3418
|
|
|
3380
|
-
var css$u = {"uui-typography":"
|
|
3419
|
+
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"};
|
|
3381
3420
|
|
|
3382
3421
|
class DataTableHeaderCell extends React__namespace.Component {
|
|
3383
3422
|
constructor() {
|
|
@@ -3401,7 +3440,7 @@ class DataTableHeaderCell extends React__namespace.Component {
|
|
|
3401
3440
|
React__namespace.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)),
|
|
3402
3441
|
this.props.column.isSortable && (!this.props.column.renderFilter || this.props.sortDirection) && (React__namespace.createElement(IconButton, { key: "sort", cx: uuiCore.cx(css$u.icon, css$u.sortIcon, this.props.sortDirection && css$u.sortIconActive, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderSortIcon), color: this.props.sortDirection ? 'neutral' : 'secondary', icon: this.props.sortDirection === 'desc' ? ForwardRef$p : this.props.sortDirection === 'asc' ? ForwardRef$q : ForwardRef$o })),
|
|
3403
3442
|
this.props.isFilterActive && (React__namespace.createElement(IconButton, { key: "filter", cx: uuiCore.cx(css$u.icon, !this.props.sortDirection && css$u.filterIcon, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderFilterIcon), color: "neutral", icon: ForwardRef$n })),
|
|
3404
|
-
this.props.column.renderFilter && (React__namespace.createElement(IconButton, { key: "dropdown", cx: uuiCore.cx(css$u.icon, css$u.dropdownIcon, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderDropdownIcon), color: "secondary", icon: this.state.isDropdownOpen ? ForwardRef$m : ForwardRef$
|
|
3443
|
+
this.props.column.renderFilter && (React__namespace.createElement(IconButton, { key: "dropdown", cx: uuiCore.cx(css$u.icon, css$u.dropdownIcon, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderDropdownIcon), color: "secondary", icon: this.state.isDropdownOpen ? ForwardRef$m : ForwardRef$Q }))));
|
|
3405
3444
|
};
|
|
3406
3445
|
this.renderHeaderCheckbox = () => {
|
|
3407
3446
|
if (this.props.selectAll && this.props.isFirstColumn) {
|
|
@@ -3483,7 +3522,7 @@ var SvgActionSettingsFill = function SvgActionSettingsFill(props, ref) {
|
|
|
3483
3522
|
};
|
|
3484
3523
|
var ForwardRef$j = /*#__PURE__*/React.forwardRef(SvgActionSettingsFill);
|
|
3485
3524
|
|
|
3486
|
-
var css$t = {"uui-typography":"
|
|
3525
|
+
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"};
|
|
3487
3526
|
|
|
3488
3527
|
const DataTableHeaderRow = /* @__PURE__ */uuiCore.withMods(uuiComponents.DataTableHeaderRow, () => [css$t.root, 'uui-dt-vars'], (mods) => ({
|
|
3489
3528
|
renderCell: (props) => (React__namespace.createElement(DataTableHeaderCell, Object.assign({}, props, { size: mods.size, textCase: mods.textCase || 'normal', key: props.column.key, columnsGap: mods.columnsGap }))),
|
|
@@ -3495,7 +3534,7 @@ const UUI_FILTERS_PANEL_ADD_BUTTON_BODY = 'uui-filters-panel-add-button-body';
|
|
|
3495
3534
|
const UUI_FILTERS_PANEL_ITEM_BODY = 'uui-filters-panel-item-body';
|
|
3496
3535
|
const UUI_FILTERS_PANEL_ITEM_TOGGLER = 'uui-filters-panel-item-toggler';
|
|
3497
3536
|
|
|
3498
|
-
var css$s = {"uui-typography":"
|
|
3537
|
+
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"};
|
|
3499
3538
|
|
|
3500
3539
|
const defaultSize = '36';
|
|
3501
3540
|
const FilterPanelItemToggler = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
@@ -3673,7 +3712,7 @@ function FilterRangeDatePickerBody(props) {
|
|
|
3673
3712
|
React__namespace.default.createElement(LinkButton, { isDisabled: !value.from && !value.to, caption: i18n.pickerModal.clearAllButton, onClick: () => onValueChange(defaultRangeValue) })))));
|
|
3674
3713
|
}
|
|
3675
3714
|
|
|
3676
|
-
var css$r = {"container":"
|
|
3715
|
+
var css$r = {"container":"_35-Hf5"};
|
|
3677
3716
|
|
|
3678
3717
|
function FilterNumericBody(props) {
|
|
3679
3718
|
var _a, _b;
|
|
@@ -3771,7 +3810,7 @@ var SvgActionDeleteOutline = function SvgActionDeleteOutline(props, ref) {
|
|
|
3771
3810
|
};
|
|
3772
3811
|
var ForwardRef$i = /*#__PURE__*/React.forwardRef(SvgActionDeleteOutline);
|
|
3773
3812
|
|
|
3774
|
-
var css$q = {"uui-typography":"
|
|
3813
|
+
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"};
|
|
3775
3814
|
|
|
3776
3815
|
function useView(props, value) {
|
|
3777
3816
|
const forceUpdate = uuiCore.useForceUpdate();
|
|
@@ -4092,7 +4131,7 @@ function FiltersToolbarImpl(props) {
|
|
|
4092
4131
|
}
|
|
4093
4132
|
const FiltersPanel = /* @__PURE__ */React__namespace.default.memo(FiltersToolbarImpl);
|
|
4094
4133
|
|
|
4095
|
-
var css$p = {"divider":"
|
|
4134
|
+
var css$p = {"divider":"_3fkZWS","dropdownDeleteIcon":"XkxKNw","presetsWrapper":"FOdokW","addPresetContainer":"QT3CDN","dropContainer":"iQynkI"};
|
|
4096
4135
|
|
|
4097
4136
|
var _path$g;
|
|
4098
4137
|
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); }
|
|
@@ -4205,7 +4244,7 @@ var SvgContentLinkOutline = function SvgContentLinkOutline(props, ref) {
|
|
|
4205
4244
|
};
|
|
4206
4245
|
var ForwardRef$a = /*#__PURE__*/React.forwardRef(SvgContentLinkOutline);
|
|
4207
4246
|
|
|
4208
|
-
var css$o = {"delete-button":"
|
|
4247
|
+
var css$o = {"delete-button":"VfW9p1","deleteButton":"VfW9p1","tab-button":"GMxFqX","tabButton":"GMxFqX","targetOpen":"y0OpGE"};
|
|
4209
4248
|
|
|
4210
4249
|
function PresetActionsDropdown(props) {
|
|
4211
4250
|
const { uuiNotifications } = uuiCore.useUuiContext();
|
|
@@ -4246,12 +4285,14 @@ function PresetActionsDropdown(props) {
|
|
|
4246
4285
|
const isRenameAvailable = props.preset.id === props.activePresetId && !isReadonlyPreset;
|
|
4247
4286
|
return (React__namespace.default.createElement(DropdownMenuBody, Object.assign({}, dropdownProps),
|
|
4248
4287
|
isPresetChanged && (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
4249
|
-
!isReadonlyPreset && (React__namespace.default.createElement(DropdownMenuButton, { key: `${props.preset.id}-save-in-current`, icon: ForwardRef$f, caption: "Save in current", onClick: saveInCurrentHandler })),
|
|
4250
|
-
React__namespace.default.createElement(DropdownMenuButton, { key: `${props.preset.id}-save-as-new`, icon: ForwardRef$e, caption: "Save as new",
|
|
4251
|
-
|
|
4288
|
+
!isReadonlyPreset && (React__namespace.default.createElement(DropdownMenuButton, { key: `${props.preset.id}-save-in-current`, icon: ForwardRef$f, caption: "Save in current", onClick: () => { dropdownProps.onClose(); saveInCurrentHandler(); } })),
|
|
4289
|
+
React__namespace.default.createElement(DropdownMenuButton, { key: `${props.preset.id}-save-as-new`, icon: ForwardRef$e, caption: "Save as new",
|
|
4290
|
+
// 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
|
|
4291
|
+
onClick: () => { dropdownProps.onClose(); setTimeout(() => props.addPreset(), 0); } }),
|
|
4292
|
+
React__namespace.default.createElement(DropdownMenuButton, { key: `${props.preset.id}-discard`, icon: ForwardRef$d, caption: "Discard all changes", onClick: () => { dropdownProps.onClose(); discardAllChangesHandler(); } }),
|
|
4252
4293
|
React__namespace.default.createElement(DropdownMenuSplitter, { key: "discard-splitter" }))),
|
|
4253
4294
|
isRenameAvailable && (React__namespace.default.createElement(DropdownMenuButton, { key: `${props.preset.id}-rename`, icon: ForwardRef$b, caption: "Rename", onClick: props.renamePreset })),
|
|
4254
|
-
React__namespace.default.createElement(DropdownMenuButton, { key: `${props.preset.id}-duplicate`, icon: ForwardRef$c, caption: "Duplicate", onClick: duplicateHandler }),
|
|
4295
|
+
React__namespace.default.createElement(DropdownMenuButton, { key: `${props.preset.id}-duplicate`, icon: ForwardRef$c, caption: "Duplicate", onClick: () => { dropdownProps.onClose(); duplicateHandler(); } }),
|
|
4255
4296
|
React__namespace.default.createElement(DropdownMenuButton, { key: `${props.preset.id}-copyLink`, icon: ForwardRef$a, caption: "Copy Link", onClick: copyUrlToClipboard }),
|
|
4256
4297
|
!isReadonlyPreset && (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
4257
4298
|
React__namespace.default.createElement(DropdownMenuSplitter, { key: "delete-splitter" }),
|
|
@@ -4263,7 +4304,7 @@ function PresetActionsDropdown(props) {
|
|
|
4263
4304
|
return (React__namespace.default.createElement(Dropdown, { renderBody: renderBody, renderTarget: renderTarget, placement: "bottom-end", modifiers: [{ name: 'offset', options: { offset: [0, 22] } }] }));
|
|
4264
4305
|
}
|
|
4265
4306
|
|
|
4266
|
-
var css$n = {"preset-input-cell":"
|
|
4307
|
+
var css$n = {"preset-input-cell":"BwjaAV","presetInputCell":"BwjaAV","preset-input":"iySDJT","presetInput":"iySDJT"};
|
|
4267
4308
|
|
|
4268
4309
|
const UUI_PRESETS_PANEL_ADD_BUTTON = 'uui-presets-panel-add-button';
|
|
4269
4310
|
const UUI_PRESETS_PANEL_MORE_BUTTON = 'uui-presets-panel-more-button';
|
|
@@ -4296,7 +4337,7 @@ function PresetInput(props) {
|
|
|
4296
4337
|
React__namespace.default.createElement(TextInput, { cx: css$n.presetInput, onValueChange: setPresetCaption, value: presetCaption, onCancel: cancelActionHandler, onAccept: acceptActionHandler, onBlur: newPresetOnBlurHandler, autoFocus: true, maxLength: 50, isReadonly: readonly })));
|
|
4297
4338
|
}
|
|
4298
4339
|
|
|
4299
|
-
var css$m = {"preset":"
|
|
4340
|
+
var css$m = {"preset":"_6X5y3z","activePreset":"tSWayU"};
|
|
4300
4341
|
|
|
4301
4342
|
function Preset(props) {
|
|
4302
4343
|
const [isRenamePreset, setIsRenamePreset] = React.useState(false);
|
|
@@ -4314,7 +4355,8 @@ function Preset(props) {
|
|
|
4314
4355
|
return props.updatePreset(newPreset);
|
|
4315
4356
|
}, [props.preset]);
|
|
4316
4357
|
const isPresetActive = props.activePresetId === props.preset.id;
|
|
4317
|
-
|
|
4358
|
+
const PresetActionsDropdownComponent = React.useCallback(() => React__namespace.default.createElement(PresetActionsDropdown, Object.assign({ renamePreset: setPresetForRename }, props)), [props.preset, props.tableState, props.activePresetId]);
|
|
4359
|
+
return (React__namespace.default.createElement(FlexCell, { key: props.preset.id, alignSelf: "center", width: "auto" }, isRenamePreset ? (React__namespace.default.createElement(PresetInput, { onCancel: cancelRenamePreset, onSuccess: handlePresetRename, preset: props.preset })) : (React__namespace.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 }))));
|
|
4318
4360
|
}
|
|
4319
4361
|
|
|
4320
4362
|
var _path$9;
|
|
@@ -4470,7 +4512,7 @@ var SvgTableGroupColumnRightFill = function SvgTableGroupColumnRightFill(props,
|
|
|
4470
4512
|
};
|
|
4471
4513
|
var ForwardRef$6 = /*#__PURE__*/React.forwardRef(SvgTableGroupColumnRightFill);
|
|
4472
4514
|
|
|
4473
|
-
var css$l = {"unpin-icon":"
|
|
4515
|
+
var css$l = {"unpin-icon":"V7-RQt","unpinIcon":"V7-RQt","pin-toggler-icon":"bkr42U","pinTogglerIcon":"bkr42U"};
|
|
4474
4516
|
|
|
4475
4517
|
function PinIconButton(props) {
|
|
4476
4518
|
const i18nLocal = i18n.tables.columnsConfigurationModal;
|
|
@@ -4529,7 +4571,7 @@ var SvgActionDragIndicator18 = function SvgActionDragIndicator18(props, ref) {
|
|
|
4529
4571
|
};
|
|
4530
4572
|
var ForwardRef$5 = /*#__PURE__*/React.forwardRef(SvgActionDragIndicator18);
|
|
4531
4573
|
|
|
4532
|
-
var css$k = {"uui-typography":"
|
|
4574
|
+
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"};
|
|
4533
4575
|
|
|
4534
4576
|
const ColumnRow = /* @__PURE__ */React__namespace.memo(function ColumnRow(props) {
|
|
4535
4577
|
const { column } = props;
|
|
@@ -4539,10 +4581,10 @@ const ColumnRow = /* @__PURE__ */React__namespace.memo(function ColumnRow(props)
|
|
|
4539
4581
|
const isPinned = !!pinPosition;
|
|
4540
4582
|
const data = { column, columnConfig };
|
|
4541
4583
|
const renderContent = (dndActorParams) => {
|
|
4542
|
-
const wrapperClasses = uuiCore.cx(css$k.rowWrapper, !isPinned && css$k.notPinned, dndActorParams.isDragGhost && uuiCore.uuiDndState.dragGhost);
|
|
4584
|
+
const wrapperClasses = uuiCore.cx(css$k.rowWrapper, !isPinned && css$k.notPinned, dndActorParams.isDragGhost && uuiCore.uuiDndState.dragGhost, 'uui-dt-columns-config-row');
|
|
4543
4585
|
const _a = dndActorParams.eventHandlers, { onTouchStart, onPointerDown } = _a, restEventHandlers = __rest(_a, ["onTouchStart", "onPointerDown"]);
|
|
4544
4586
|
const dndActorPropsWithoutRef = __rest(dndActorParams, ["ref"]);
|
|
4545
|
-
return (React__namespace.createElement(FlexRow, { size:
|
|
4587
|
+
return (React__namespace.createElement(FlexRow, { size: settings.sizes.dataTable.columnsConfigurationModal.columnRow, cx: wrapperClasses, ref: dndActorParams.ref, rawProps: Object.assign({}, restEventHandlers), alignItems: "top" },
|
|
4546
4588
|
React__namespace.createElement(uuiComponents.DragHandle, { dragHandleIcon: ForwardRef$5, rawProps: { onTouchStart, onPointerDown }, isDisabled: !isDndAllowed, cx: uuiCore.cx(css$k.dragHandle, !isDndAllowed && css$k.dndDisabled) }),
|
|
4547
4589
|
React__namespace.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 }),
|
|
4548
4590
|
React__namespace.createElement(FlexRow, { size: null, cx: css$k.pinIconButton },
|
|
@@ -4552,7 +4594,7 @@ const ColumnRow = /* @__PURE__ */React__namespace.memo(function ColumnRow(props)
|
|
|
4552
4594
|
return (React__namespace.createElement(uuiCore.DndActor, { key: column.key, srcData: isDndAllowed && data, dstData: data, canAcceptDrop: onCanAcceptDrop, onDrop: onDrop, render: renderContent }));
|
|
4553
4595
|
});
|
|
4554
4596
|
|
|
4555
|
-
var css$j = {"uui-typography":"
|
|
4597
|
+
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"};
|
|
4556
4598
|
|
|
4557
4599
|
const renderGroupTitle = (title, amount) => (React__namespace.createElement(FlexRow, { cx: css$j.group },
|
|
4558
4600
|
React__namespace.createElement(Text, { size: "none", cx: css$j.groupTitle }, title),
|
|
@@ -4629,7 +4671,7 @@ function SubGroup(props) {
|
|
|
4629
4671
|
const content = (React__namespace.createElement(FlexRow, { cx: css$j.groupItems, size: settings.sizes.dataTable.columnsConfigurationModal.columnRow }, items.map((c) => (React__namespace.createElement(ColumnRow, { column: c, key: c.key, renderItem: renderItem })))));
|
|
4630
4672
|
if (isCollapsible) {
|
|
4631
4673
|
const renderTitle = (isOpened) => {
|
|
4632
|
-
const toggleIcon = isOpened ? ForwardRef$
|
|
4674
|
+
const toggleIcon = isOpened ? ForwardRef$Q : ForwardRef$v;
|
|
4633
4675
|
return (React__namespace.createElement(FlexRow, { cx: uuiCore.cx(css$j.subgroup) },
|
|
4634
4676
|
React__namespace.createElement(uuiComponents.IconContainer, { size: settings.sizes.dataTable.columnsConfigurationModal.subgroupIcon, icon: toggleIcon }),
|
|
4635
4677
|
React__namespace.createElement(Text, { size: "none", color: "tertiary", cx: css$j.subgroupTitle }, title)));
|
|
@@ -4641,7 +4683,7 @@ function SubGroup(props) {
|
|
|
4641
4683
|
return null;
|
|
4642
4684
|
}
|
|
4643
4685
|
|
|
4644
|
-
var css$i = {"listContainer":"
|
|
4686
|
+
var css$i = {"listContainer":"GsO4aE","header":"RkAzZ1","group":"kfxV4L","stickyHeader":"yhqWI-"};
|
|
4645
4687
|
|
|
4646
4688
|
const getChildrenAndRest = (row, rows) => {
|
|
4647
4689
|
const firstNotChildIndex = rows.findIndex((other) => other.depth < row.depth || (row.depth === other.depth && other.isPinned));
|
|
@@ -4707,7 +4749,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4707
4749
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4708
4750
|
ref: ref
|
|
4709
4751
|
}, props), /*#__PURE__*/React__namespace.createElement("g", {
|
|
4710
|
-
clipPath: "url(#
|
|
4752
|
+
clipPath: "url(#irbdyv3sdbmavwq4s_a)"
|
|
4711
4753
|
}, _path$4 || (_path$4 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4712
4754
|
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",
|
|
4713
4755
|
fill: "#F5F6FA"
|
|
@@ -4728,7 +4770,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4728
4770
|
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",
|
|
4729
4771
|
fill: "#1D1E26"
|
|
4730
4772
|
})), /*#__PURE__*/React__namespace.createElement("mask", {
|
|
4731
|
-
id: "
|
|
4773
|
+
id: "irbdyvz3fm0pkcuyb_b",
|
|
4732
4774
|
style: {
|
|
4733
4775
|
maskType: "alpha"
|
|
4734
4776
|
},
|
|
@@ -4741,7 +4783,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4741
4783
|
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",
|
|
4742
4784
|
fill: "#9BDEFF"
|
|
4743
4785
|
}))), _g || (_g = /*#__PURE__*/React__namespace.createElement("g", {
|
|
4744
|
-
mask: "url(#
|
|
4786
|
+
mask: "url(#irbdyvz3fm0pkcuyb_b)",
|
|
4745
4787
|
fillRule: "evenodd",
|
|
4746
4788
|
clipRule: "evenodd"
|
|
4747
4789
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -4827,7 +4869,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4827
4869
|
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",
|
|
4828
4870
|
fill: "#fff"
|
|
4829
4871
|
}))), _defs || (_defs = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
|
|
4830
|
-
id: "
|
|
4872
|
+
id: "irbdyv3sdbmavwq4s_a"
|
|
4831
4873
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
4832
4874
|
fill: "#fff",
|
|
4833
4875
|
transform: "translate(.552)",
|
|
@@ -4836,7 +4878,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4836
4878
|
};
|
|
4837
4879
|
var ForwardRef$4 = /*#__PURE__*/React.forwardRef(SvgEmptyTable);
|
|
4838
4880
|
|
|
4839
|
-
var css$h = {"root":"
|
|
4881
|
+
var css$h = {"root":"GhBgB9","sticky-header":"OGC4-1","stickyHeader":"OGC4-1","no-results":"iRlySz","noResults":"iRlySz","icon":"tvWspJ","title":"Ryu-Nk"};
|
|
4840
4882
|
|
|
4841
4883
|
function DataTable(props) {
|
|
4842
4884
|
var _a, _b, _c, _d;
|
|
@@ -4887,9 +4929,9 @@ function DataTable(props) {
|
|
|
4887
4929
|
} }))));
|
|
4888
4930
|
}
|
|
4889
4931
|
|
|
4890
|
-
var css$g = {"root":"
|
|
4932
|
+
var css$g = {"root":"xeC7LW"};
|
|
4891
4933
|
|
|
4892
|
-
var css$f = {"root":"
|
|
4934
|
+
var css$f = {"root":"oCeI3l","burger-content":"gSsPDf","burgerContent":"gSsPDf"};
|
|
4893
4935
|
|
|
4894
4936
|
var _path$3;
|
|
4895
4937
|
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); }
|
|
@@ -4911,7 +4953,7 @@ function applyBurgerMods() {
|
|
|
4911
4953
|
}
|
|
4912
4954
|
const Burger = /* @__PURE__ */uuiCore.withMods(uuiComponents.Burger, applyBurgerMods, () => ({
|
|
4913
4955
|
burgerIcon: ForwardRef$3,
|
|
4914
|
-
crossIcon: ForwardRef$
|
|
4956
|
+
crossIcon: ForwardRef$R,
|
|
4915
4957
|
burgerContentCx: css$f.burgerContent,
|
|
4916
4958
|
}));
|
|
4917
4959
|
|
|
@@ -4932,7 +4974,7 @@ var SvgNavigationArrowDownOutline = function SvgNavigationArrowDownOutline(props
|
|
|
4932
4974
|
};
|
|
4933
4975
|
var ForwardRef$2 = /*#__PURE__*/React.forwardRef(SvgNavigationArrowDownOutline);
|
|
4934
4976
|
|
|
4935
|
-
var css$e = {"uui-typography":"
|
|
4977
|
+
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"};
|
|
4936
4978
|
|
|
4937
4979
|
const BurgerButton = /* @__PURE__ */uuiCore.withMods(uuiComponents.Button, (props) => [
|
|
4938
4980
|
css$e.root,
|
|
@@ -4943,13 +4985,13 @@ const BurgerButton = /* @__PURE__ */uuiCore.withMods(uuiComponents.Button, (prop
|
|
|
4943
4985
|
props.icon && css$e.hasIcon,
|
|
4944
4986
|
], () => ({ dropdownIcon: ForwardRef$2, dropdownIconPosition: 'left', role: 'menuitem' }));
|
|
4945
4987
|
|
|
4946
|
-
var css$d = {"search-input":"
|
|
4988
|
+
var css$d = {"search-input":"Wk-6Jm","searchInput":"Wk-6Jm"};
|
|
4947
4989
|
|
|
4948
4990
|
function BurgerSearch(props) {
|
|
4949
|
-
return (React__namespace.createElement(uuiComponents.TextInput, { cx: cx__default.default(css$d.searchInput, 'uui-main_menu-burger-search'), iconPosition: "left", icon: ForwardRef$
|
|
4991
|
+
return (React__namespace.createElement(uuiComponents.TextInput, { cx: cx__default.default(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 }));
|
|
4950
4992
|
}
|
|
4951
4993
|
|
|
4952
|
-
var css$c = {"root":"
|
|
4994
|
+
var css$c = {"root":"eqs-qS","group-header":"ghB25R","groupHeader":"ghB25R","group-name":"_1fFoue","groupName":"_1fFoue","line":"sUZFjx"};
|
|
4953
4995
|
|
|
4954
4996
|
function BurgerGroupHeader(props) {
|
|
4955
4997
|
return (React__namespace.createElement("div", { className: cx__default.default(css$c.root, css$c.groupHeader, 'uui-burger-group-header') },
|
|
@@ -4957,7 +4999,7 @@ function BurgerGroupHeader(props) {
|
|
|
4957
4999
|
React__namespace.createElement("span", { className: css$c.groupName }, props.caption)));
|
|
4958
5000
|
}
|
|
4959
5001
|
|
|
4960
|
-
var css$b = {"uui-typography":"
|
|
5002
|
+
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"};
|
|
4961
5003
|
|
|
4962
5004
|
const MainMenuButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
4963
5005
|
const { type } = props, clickableProps = __rest(props, ["type"]);
|
|
@@ -4970,10 +5012,10 @@ const MainMenuButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) =
|
|
|
4970
5012
|
props.caption && (React__namespace.createElement("div", { className: uuiCore.uuiElement.caption }, props.caption)),
|
|
4971
5013
|
props.count !== undefined && props.count !== null && (React__namespace.createElement(CountIndicator, { caption: props.count, color: "neutral", size: "18" })),
|
|
4972
5014
|
props.icon && props.iconPosition === 'right' && (React__namespace.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: props.onIconClick })),
|
|
4973
|
-
props.isDropdown && (React__namespace.createElement(uuiComponents.IconContainer, { icon: ForwardRef$
|
|
5015
|
+
props.isDropdown && (React__namespace.createElement(uuiComponents.IconContainer, { icon: ForwardRef$Q, flipY: props.isOpen }))));
|
|
4974
5016
|
});
|
|
4975
5017
|
|
|
4976
|
-
var css$a = {"dropdown-body":"
|
|
5018
|
+
var css$a = {"dropdown-body":"Q8Hvew","dropdownBody":"Q8Hvew"};
|
|
4977
5019
|
|
|
4978
5020
|
class MainMenuDropdown extends React__namespace.Component {
|
|
4979
5021
|
render() {
|
|
@@ -5028,31 +5070,31 @@ var SvgNavigationGlobalMenuOutlineOutline = function SvgNavigationGlobalMenuOutl
|
|
|
5028
5070
|
};
|
|
5029
5071
|
var ForwardRef$1 = /*#__PURE__*/React.forwardRef(SvgNavigationGlobalMenuOutlineOutline);
|
|
5030
5072
|
|
|
5031
|
-
var css$9 = {"global-menu-btn":"
|
|
5073
|
+
var css$9 = {"global-menu-btn":"HNp83b","globalMenuBtn":"HNp83b","global-menu-icon":"J8g7-p","globalMenuIcon":"J8g7-p"};
|
|
5032
5074
|
|
|
5033
5075
|
const GlobalMenu = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement("button", Object.assign({ ref: ref, id: "global_menu_toggle", className: cx__default.default(css$9.globalMenuBtn, props.cx) }, props.rawProps),
|
|
5034
5076
|
React__namespace.createElement(uuiComponents.IconContainer, { size: 36, icon: ForwardRef$1, cx: css$9.globalMenuIcon }))));
|
|
5035
5077
|
|
|
5036
|
-
var css$8 = {"container":"
|
|
5078
|
+
var css$8 = {"container":"Wt8sGJ","open":"X-D-Un","folding-arrow":"K7lbt4","foldingArrow":"K7lbt4"};
|
|
5037
5079
|
|
|
5038
5080
|
const MainMenuAvatar = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement("button", { ref: ref, className: cx__default.default(css$8.container, props.isDropdown && css$8.dropdown, props.isOpen && css$8.open, props.onClick && uuiCore.uuiMarkers.clickable, props.cx), onClick: props.onClick },
|
|
5039
5081
|
React__namespace.createElement(uuiComponents.Avatar, { size: "36", img: props.avatarUrl }),
|
|
5040
5082
|
props.icon && React__namespace.createElement(uuiComponents.IconContainer, { icon: props.icon }),
|
|
5041
5083
|
props.isDropdown && (React__namespace.createElement("div", null,
|
|
5042
|
-
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, icon: ForwardRef$
|
|
5084
|
+
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, icon: ForwardRef$Q, flipY: props.isOpen, cx: css$8.foldingArrow }))))));
|
|
5043
5085
|
|
|
5044
|
-
var css$7 = {"search-input":"
|
|
5086
|
+
var css$7 = {"search-input":"TZAcG7","searchInput":"TZAcG7"};
|
|
5045
5087
|
|
|
5046
5088
|
const MainMenuSearch = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement(uuiCore.IEditableDebouncer, Object.assign({}, props, { render: (iEditable) => {
|
|
5047
5089
|
var _a;
|
|
5048
|
-
return (React__namespace.createElement(uuiComponents.TextInput, Object.assign({ iconPosition: "left", icon: ForwardRef$
|
|
5090
|
+
return (React__namespace.createElement(uuiComponents.TextInput, 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: uuiCore.cx(css$7.searchInput, props.cx) }, props.rawProps)));
|
|
5049
5091
|
} }))));
|
|
5050
5092
|
|
|
5051
|
-
var css$6 = {"container":"
|
|
5093
|
+
var css$6 = {"container":"MCIorh"};
|
|
5052
5094
|
|
|
5053
5095
|
const MainMenuIcon = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement(IconButton, Object.assign({ ref: ref, icon: props.icon, cx: uuiCore.cx(props.cx, css$6.container) }, props))));
|
|
5054
5096
|
|
|
5055
|
-
var css$5 = {"root":"
|
|
5097
|
+
var css$5 = {"root":"J-24yd"};
|
|
5056
5098
|
|
|
5057
5099
|
const Anchor = /* @__PURE__ */uuiCore.withMods(uuiComponents.Anchor, () => [css$5.root]);
|
|
5058
5100
|
|
|
@@ -5110,7 +5152,7 @@ var SvgFileCloudUploadFill = function SvgFileCloudUploadFill(props, ref) {
|
|
|
5110
5152
|
};
|
|
5111
5153
|
var ForwardRef = /*#__PURE__*/React.forwardRef(SvgFileCloudUploadFill);
|
|
5112
5154
|
|
|
5113
|
-
var css$4 = {"root":"
|
|
5155
|
+
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"};
|
|
5114
5156
|
|
|
5115
5157
|
function DropSpot(props) {
|
|
5116
5158
|
const getInfoText = typeof props.infoText === 'string'
|
|
@@ -5128,9 +5170,9 @@ function DropSpot(props) {
|
|
|
5128
5170
|
return React__namespace.createElement(uuiComponents.DropSpot, { render: renderAttachmentArea, onFilesDropped: props.onUploadFiles });
|
|
5129
5171
|
}
|
|
5130
5172
|
|
|
5131
|
-
var css$3 = {"uui-typography":"
|
|
5173
|
+
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"};
|
|
5132
5174
|
|
|
5133
|
-
var css$2 = {"root":"
|
|
5175
|
+
var css$2 = {"root":"-Duubg"};
|
|
5134
5176
|
|
|
5135
5177
|
const SvgCircleProgress = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
5136
5178
|
const outsetRadius = props.size / 2 - 1;
|
|
@@ -5195,7 +5237,7 @@ const FileCard = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
|
5195
5237
|
};
|
|
5196
5238
|
const renderErrorContent = () => (React__namespace.createElement(Tooltip, { content: file.error.message, placement: "bottom-start" },
|
|
5197
5239
|
React__namespace.createElement("div", { className: css$3.errorBlock },
|
|
5198
|
-
React__namespace.createElement(uuiComponents.IconContainer, { icon: ForwardRef$
|
|
5240
|
+
React__namespace.createElement(uuiComponents.IconContainer, { icon: ForwardRef$y, size: 12 }),
|
|
5199
5241
|
i18n.fileCard.failedUploadErrorMessage)));
|
|
5200
5242
|
const renderSuccessfulContent = () => (React__namespace.createElement(Text, { size: "18", fontSize: "14", lineHeight: "18", color: "tertiary" },
|
|
5201
5243
|
fileExtension && `${fileExtension.toUpperCase()}, `,
|
|
@@ -5213,7 +5255,7 @@ const FileCard = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
|
5213
5255
|
(error === null || error === void 0 ? void 0 : error.isError) ? renderErrorContent() : renderSuccessfulContent()),
|
|
5214
5256
|
React__namespace.createElement("div", { className: uuiCore.cx(css$3.iconsBlock), onMouseEnter: mouseEnterHandler, onMouseLeave: mouseLeaveHandler },
|
|
5215
5257
|
isLoadingShow && isLoading && React__namespace.createElement(SvgCircleProgress, { progress: progress, size: 18 }),
|
|
5216
|
-
isCrossShow && React__namespace.createElement(IconButton, { icon: ForwardRef$
|
|
5258
|
+
isCrossShow && React__namespace.createElement(IconButton, { icon: ForwardRef$R, onClick: removeHandler })))));
|
|
5217
5259
|
});
|
|
5218
5260
|
|
|
5219
5261
|
const getRecoveryMessageConfig = () => ({
|
|
@@ -5255,7 +5297,7 @@ const getErrorPageConfig = () => ({
|
|
|
5255
5297
|
},
|
|
5256
5298
|
});
|
|
5257
5299
|
|
|
5258
|
-
var css$1 = {"container":"
|
|
5300
|
+
var css$1 = {"container":"kJ9Qbx"};
|
|
5259
5301
|
|
|
5260
5302
|
const ErrorPage = (props) => {
|
|
5261
5303
|
const isMobileScreen = uuiCore.isMobile();
|
|
@@ -5266,7 +5308,7 @@ const ErrorPage = (props) => {
|
|
|
5266
5308
|
React__namespace.default.createElement("div", { className: "uui-error-subtitle" }, props.subtitle))));
|
|
5267
5309
|
};
|
|
5268
5310
|
|
|
5269
|
-
var css = {"recovery-spinner":"
|
|
5311
|
+
var css = {"recovery-spinner":"Hn84-t","recoverySpinner":"Hn84-t","recovery-message":"Ta1Jnl","recoveryMessage":"Ta1Jnl","modal-blocker":"eqyz2j","modalBlocker":"eqyz2j","modalFadeIn":"_-90gZ1"};
|
|
5270
5312
|
|
|
5271
5313
|
function ErrorHandler(props) {
|
|
5272
5314
|
const { uuiNotifications, uuiModals, uuiApi } = uuiCore.useUuiContext();
|
|
@@ -5427,6 +5469,7 @@ exports.RadioInput = RadioInput;
|
|
|
5427
5469
|
exports.RangeDatePicker = RangeDatePicker;
|
|
5428
5470
|
exports.RangeDatePickerBody = RangeDatePickerBody;
|
|
5429
5471
|
exports.RangeDatePickerInput = RangeDatePickerInput;
|
|
5472
|
+
exports.Rating = Rating;
|
|
5430
5473
|
exports.RichTextView = RichTextView;
|
|
5431
5474
|
exports.ScrollBars = ScrollBars;
|
|
5432
5475
|
exports.SearchInput = SearchInput;
|