@rufous/ui 0.3.49 → 0.3.53
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/dist/main.cjs +804 -140
- package/dist/main.css +313 -0
- package/dist/main.d.cts +140 -13
- package/dist/main.d.ts +140 -13
- package/dist/main.js +1756 -1118
- package/package.json +2 -2
package/dist/main.cjs
CHANGED
|
@@ -35,7 +35,9 @@ __export(main_exports, {
|
|
|
35
35
|
AccordionSummary: () => AccordionSummary,
|
|
36
36
|
ActivateUserIcon: () => activateUserIcon_default,
|
|
37
37
|
AddButton: () => addButton_default,
|
|
38
|
+
AddIcon: () => AddIcon,
|
|
38
39
|
AddressLookup: () => AddressLookup_default,
|
|
40
|
+
Alert: () => Alert,
|
|
39
41
|
AlertTriangleIcon: () => alertTriangleIcon_default,
|
|
40
42
|
ArchivedIcon: () => archivedIcon_default,
|
|
41
43
|
ArrowDownIcon: () => arrowDownIcon_default,
|
|
@@ -43,6 +45,7 @@ __export(main_exports, {
|
|
|
43
45
|
ArrowRightIcon: () => arrowRightIcon_default,
|
|
44
46
|
ArrowUpIcon: () => arrowUpIcon_default,
|
|
45
47
|
AssignGroupIcon: () => assignGroupIcon_default,
|
|
48
|
+
AttachFileIcon: () => attachFileIcon_default,
|
|
46
49
|
Autocomplete: () => Autocomplete,
|
|
47
50
|
Avatar: () => Avatar,
|
|
48
51
|
AvatarGroup: () => AvatarGroup,
|
|
@@ -50,7 +53,10 @@ __export(main_exports, {
|
|
|
50
53
|
BookmarkIcon: () => bookmarkIcon_default,
|
|
51
54
|
Box: () => Box,
|
|
52
55
|
Breadcrumbs: () => Breadcrumbs,
|
|
56
|
+
BusinessIcon: () => businessIcon_default,
|
|
53
57
|
Button: () => Button,
|
|
58
|
+
ButtonGroup: () => ButtonGroup,
|
|
59
|
+
CalendarIcon: () => calendarIcon_default,
|
|
54
60
|
CameraIcon: () => cameraIcon_default,
|
|
55
61
|
CancelButton: () => cancelButton_default,
|
|
56
62
|
Card: () => Card,
|
|
@@ -58,6 +64,7 @@ __export(main_exports, {
|
|
|
58
64
|
CardContent: () => CardContent,
|
|
59
65
|
CardHeader: () => CardHeader,
|
|
60
66
|
CardMedia: () => CardMedia,
|
|
67
|
+
ChatBubbleIcon: () => chatBubbleIcon_default,
|
|
61
68
|
CheckCircleIcon: () => checkCircleIcon_default,
|
|
62
69
|
Checkbox: () => Checkbox,
|
|
63
70
|
ChevronDownIcon: () => chevronDownIcon_default,
|
|
@@ -67,9 +74,12 @@ __export(main_exports, {
|
|
|
67
74
|
Chip: () => Chip,
|
|
68
75
|
CircularProgress: () => circularProgress_default,
|
|
69
76
|
CircularProgressIcon: () => CircularProgressIcon,
|
|
77
|
+
ClickAwayListener: () => ClickAwayListener,
|
|
70
78
|
ClipboardIcon: () => clipboardIcon_default,
|
|
71
79
|
CloseIcon: () => closeIcon_default,
|
|
72
80
|
Collapse: () => Collapse,
|
|
81
|
+
ContactsIcon: () => contactsIcon_default,
|
|
82
|
+
Container: () => Container,
|
|
73
83
|
CopyIcon: () => copyIcon_default,
|
|
74
84
|
CustomImage: () => CustomImage,
|
|
75
85
|
CustomTaskItem: () => CustomTaskItem,
|
|
@@ -86,17 +96,20 @@ __export(main_exports, {
|
|
|
86
96
|
DollarIcon: () => dollarIcon_default,
|
|
87
97
|
DownloadIcon: () => downloadIcon_default,
|
|
88
98
|
DownloadPdfIcon: () => downloadPdfIcon_default,
|
|
99
|
+
DragIndicatorIcon: () => dragIndicatorIcon_default,
|
|
89
100
|
Drawer: () => Drawer,
|
|
90
101
|
EditChatIcon: () => editChatIcon_default,
|
|
91
102
|
EditIcon: () => editIcon_default,
|
|
92
103
|
EngagementIcon: () => engagementIcon_default,
|
|
93
104
|
ExternalLinkIcon: () => externalLinkIcon_default,
|
|
94
105
|
EyeOffIcon: () => eyeOffIcon_default,
|
|
106
|
+
FactoryIcon: () => factoryIcon_default,
|
|
95
107
|
Fade: () => Fade,
|
|
96
108
|
FilterIcon: () => filterIcon_default,
|
|
97
109
|
FlagIcon: () => flagIcon_default,
|
|
98
110
|
FontFamily: () => FontFamily,
|
|
99
111
|
FontSize: () => FontSize,
|
|
112
|
+
FormGroup: () => FormGroup,
|
|
100
113
|
FunctionIcon: () => functionIcon_default,
|
|
101
114
|
GlobeIcon: () => globeIcon_default,
|
|
102
115
|
Grid: () => Grid,
|
|
@@ -115,6 +128,7 @@ __export(main_exports, {
|
|
|
115
128
|
InfoIcon: () => infoIcon_default,
|
|
116
129
|
InvoiceIcon: () => invoiceIcon_default,
|
|
117
130
|
LineHeight: () => LineHeight,
|
|
131
|
+
LinearProgress: () => LinearProgress,
|
|
118
132
|
Link: () => Link,
|
|
119
133
|
LinkIcon: () => linkIcon_default,
|
|
120
134
|
List: () => List,
|
|
@@ -125,11 +139,13 @@ __export(main_exports, {
|
|
|
125
139
|
ListStyle: () => ListStyle,
|
|
126
140
|
ListSubheader: () => ListSubheader,
|
|
127
141
|
ListViewIcon: () => listViewIcon_default,
|
|
142
|
+
LocationCityIcon: () => locationCityIcon_default,
|
|
128
143
|
LocationPinIcon: () => locationPinIcon_default,
|
|
129
144
|
LockIcon: () => lockIcon_default,
|
|
130
145
|
LogsIcon: () => logsIcon_default,
|
|
131
146
|
MAX_INDENT: () => MAX_INDENT,
|
|
132
147
|
MailIcon: () => mailIcon_default,
|
|
148
|
+
MemoryIcon: () => memoryIcon_default,
|
|
133
149
|
Menu: () => Menu,
|
|
134
150
|
MenuDivider: () => MenuDivider,
|
|
135
151
|
MenuIcon: () => menuIcon_default,
|
|
@@ -141,11 +157,17 @@ __export(main_exports, {
|
|
|
141
157
|
MoreHorizontalIcon: () => moreHorizontalIcon_default,
|
|
142
158
|
MoreVerticalIcon: () => moreVerticalIcon_default,
|
|
143
159
|
NineDotMenuIcon: () => nineDotMenuIcon_default,
|
|
160
|
+
NotesIcon: () => notesIcon_default,
|
|
144
161
|
NotificationIcon: () => notificationIcon_default,
|
|
162
|
+
OpenInFullIcon: () => openInFullIcon_default,
|
|
163
|
+
Pagination: () => Pagination,
|
|
145
164
|
Paper: () => Paper,
|
|
146
165
|
PaperclipIcon: () => paperclipIcon_default,
|
|
166
|
+
PersonSearchIcon: () => personSearchIcon_default,
|
|
147
167
|
PhoneField: () => PhoneField,
|
|
148
168
|
PhoneIcon: () => phoneIcon_default,
|
|
169
|
+
PinIcon: () => pinIcon_default,
|
|
170
|
+
PlaceIcon: () => placeIcon_default,
|
|
149
171
|
PlusIcon: () => plusIcon_default,
|
|
150
172
|
Popover: () => Popover,
|
|
151
173
|
Popper: () => Popper,
|
|
@@ -164,6 +186,7 @@ __export(main_exports, {
|
|
|
164
186
|
RadioGroup: () => RadioGroup,
|
|
165
187
|
Rating: () => Rating,
|
|
166
188
|
RefreshIcon: () => refreshIcon_default,
|
|
189
|
+
RemoveIcon: () => RemoveIcon,
|
|
167
190
|
ResendInviteIcon: () => resendInviteIcon_default,
|
|
168
191
|
RolesIcon: () => rolesIcon_default,
|
|
169
192
|
RufousAiIcon: () => rufousAiIcon_default,
|
|
@@ -191,6 +214,7 @@ __export(main_exports, {
|
|
|
191
214
|
SoftSkillsIcon: () => softSkillsIcon_default,
|
|
192
215
|
Stack: () => Stack,
|
|
193
216
|
StandardButton: () => stdButton_default,
|
|
217
|
+
StarBorderIcon: () => starBorderIcon_default,
|
|
194
218
|
StarIcon: () => starIcon_default,
|
|
195
219
|
Step: () => Step,
|
|
196
220
|
StepButton: () => StepButton,
|
|
@@ -217,6 +241,7 @@ __export(main_exports, {
|
|
|
217
241
|
TagIcon: () => tagIcon_default,
|
|
218
242
|
TechnicalSkillsIcon: () => technicalSkillsIcon_default,
|
|
219
243
|
TextField: () => TextField,
|
|
244
|
+
TextFieldsIcon: () => textFieldsIcon_default,
|
|
220
245
|
TickIcon: () => tickIcon_default,
|
|
221
246
|
TimerIcon: () => timerIcon_default,
|
|
222
247
|
ToggleButton: () => ToggleButton,
|
|
@@ -224,6 +249,7 @@ __export(main_exports, {
|
|
|
224
249
|
Tooltip: () => Tooltip,
|
|
225
250
|
TrashIcon: () => trashIcon_default,
|
|
226
251
|
TreeSelect: () => TreeSelect,
|
|
252
|
+
TrendingFlatIcon: () => trendingFlatIcon_default,
|
|
227
253
|
Typography: () => Typography,
|
|
228
254
|
UnArchivedIcon: () => unArchivedIcon_default,
|
|
229
255
|
UnlockIcon: () => unlockIcon_default,
|
|
@@ -1280,8 +1306,155 @@ var React105 = __toESM(require("react"), 1);
|
|
|
1280
1306
|
var ZoomOutIcon = ({ color = "currentColor", size = 24, ...props }) => /* @__PURE__ */ React105.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: size, height: size, viewBox: "0 0 24 24", fill: "none", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", ...props }, /* @__PURE__ */ React105.createElement("circle", { cx: "11", cy: "11", r: "8" }), /* @__PURE__ */ React105.createElement("line", { x1: "21", y1: "21", x2: "16.65", y2: "16.65" }), /* @__PURE__ */ React105.createElement("line", { x1: "8", y1: "11", x2: "14", y2: "11" }));
|
|
1281
1307
|
var zoomOutIcon_default = ZoomOutIcon;
|
|
1282
1308
|
|
|
1283
|
-
// lib/
|
|
1309
|
+
// lib/icons/dragIndicatorIcon.tsx
|
|
1310
|
+
var React107 = __toESM(require("react"), 1);
|
|
1311
|
+
|
|
1312
|
+
// lib/icons/_materialBase.tsx
|
|
1284
1313
|
var React106 = __toESM(require("react"), 1);
|
|
1314
|
+
function makeMaterialIcon(filled, outlined = filled) {
|
|
1315
|
+
const Icon2 = ({
|
|
1316
|
+
color = "currentColor",
|
|
1317
|
+
size = 24,
|
|
1318
|
+
variant = "filled",
|
|
1319
|
+
...rest
|
|
1320
|
+
}) => /* @__PURE__ */ React106.createElement(
|
|
1321
|
+
"svg",
|
|
1322
|
+
{
|
|
1323
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1324
|
+
width: size,
|
|
1325
|
+
height: size,
|
|
1326
|
+
viewBox: "0 0 24 24",
|
|
1327
|
+
fill: color,
|
|
1328
|
+
...rest
|
|
1329
|
+
},
|
|
1330
|
+
variant === "outlined" ? outlined : filled
|
|
1331
|
+
);
|
|
1332
|
+
return Icon2;
|
|
1333
|
+
}
|
|
1334
|
+
|
|
1335
|
+
// lib/icons/dragIndicatorIcon.tsx
|
|
1336
|
+
var path = /* @__PURE__ */ React107.createElement("path", { d: "M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z" });
|
|
1337
|
+
var DragIndicatorIcon = makeMaterialIcon(path, path);
|
|
1338
|
+
var dragIndicatorIcon_default = DragIndicatorIcon;
|
|
1339
|
+
|
|
1340
|
+
// lib/icons/calendarIcon.tsx
|
|
1341
|
+
var React108 = __toESM(require("react"), 1);
|
|
1342
|
+
var CalendarIcon = makeMaterialIcon(
|
|
1343
|
+
/* @__PURE__ */ React108.createElement("path", { d: "M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z" }),
|
|
1344
|
+
/* @__PURE__ */ React108.createElement("path", { d: "M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zm0-12H5V6h14v2zM7 12h5v5H7z" })
|
|
1345
|
+
);
|
|
1346
|
+
var calendarIcon_default = CalendarIcon;
|
|
1347
|
+
|
|
1348
|
+
// lib/icons/trendingFlatIcon.tsx
|
|
1349
|
+
var React109 = __toESM(require("react"), 1);
|
|
1350
|
+
var path2 = /* @__PURE__ */ React109.createElement("path", { d: "M22 12l-4-4v3H3v2h15v3z" });
|
|
1351
|
+
var TrendingFlatIcon = makeMaterialIcon(path2, path2);
|
|
1352
|
+
var trendingFlatIcon_default = TrendingFlatIcon;
|
|
1353
|
+
|
|
1354
|
+
// lib/icons/openInFullIcon.tsx
|
|
1355
|
+
var React110 = __toESM(require("react"), 1);
|
|
1356
|
+
var path3 = /* @__PURE__ */ React110.createElement("path", { d: "M21 11V3h-8l3.29 3.29-10 10L3 13v8h8l-3.29-3.29 10-10z" });
|
|
1357
|
+
var OpenInFullIcon = makeMaterialIcon(path3, path3);
|
|
1358
|
+
var openInFullIcon_default = OpenInFullIcon;
|
|
1359
|
+
|
|
1360
|
+
// lib/icons/pinIcon.tsx
|
|
1361
|
+
var React111 = __toESM(require("react"), 1);
|
|
1362
|
+
var PinIcon = makeMaterialIcon(
|
|
1363
|
+
/* @__PURE__ */ React111.createElement("path", { d: "M16 9V4l1-.5V2H7v1.5l1 .5v5l-2 2v2h5.2v7h1.6v-7H18v-2l-2-2z" }),
|
|
1364
|
+
/* @__PURE__ */ React111.createElement("path", { d: "M16 9V4l1-.5V2H7v1.5l1 .5v5l-2 2v2h5.2v7h1.6v-7H18v-2l-2-2zM10.41 11l.59-.59V3h2v7.41l.59.59z" })
|
|
1365
|
+
);
|
|
1366
|
+
var pinIcon_default = PinIcon;
|
|
1367
|
+
|
|
1368
|
+
// lib/icons/textFieldsIcon.tsx
|
|
1369
|
+
var React112 = __toESM(require("react"), 1);
|
|
1370
|
+
var path4 = /* @__PURE__ */ React112.createElement("path", { d: "M2.5 4v3h5v12h3V7h5V4h-13zm19 5h-9v3h3v7h3v-7h3V9z" });
|
|
1371
|
+
var TextFieldsIcon = makeMaterialIcon(path4, path4);
|
|
1372
|
+
var textFieldsIcon_default = TextFieldsIcon;
|
|
1373
|
+
|
|
1374
|
+
// lib/icons/notesIcon.tsx
|
|
1375
|
+
var React113 = __toESM(require("react"), 1);
|
|
1376
|
+
var path5 = /* @__PURE__ */ React113.createElement("path", { d: "M21 11.01L3 11v2h18zM3 16h12v2H3zM21 6H3v2.01L21 8z" });
|
|
1377
|
+
var NotesIcon = makeMaterialIcon(path5, path5);
|
|
1378
|
+
var notesIcon_default = NotesIcon;
|
|
1379
|
+
|
|
1380
|
+
// lib/icons/starBorderIcon.tsx
|
|
1381
|
+
var React114 = __toESM(require("react"), 1);
|
|
1382
|
+
var StarBorderIcon = makeMaterialIcon(
|
|
1383
|
+
/* @__PURE__ */ React114.createElement("path", { d: "M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z" }),
|
|
1384
|
+
/* @__PURE__ */ React114.createElement("path", { d: "M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z" })
|
|
1385
|
+
);
|
|
1386
|
+
var starBorderIcon_default = StarBorderIcon;
|
|
1387
|
+
|
|
1388
|
+
// lib/icons/businessIcon.tsx
|
|
1389
|
+
var React115 = __toESM(require("react"), 1);
|
|
1390
|
+
var BusinessIcon = makeMaterialIcon(
|
|
1391
|
+
/* @__PURE__ */ React115.createElement("path", { d: "M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8v10zm-2-8h-2v2h2v-2zm0 4h-2v2h2v-2z" }),
|
|
1392
|
+
/* @__PURE__ */ React115.createElement("path", { d: "M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8v10zm-2-8h-2v2h2v-2zm0 4h-2v2h2v-2z" })
|
|
1393
|
+
);
|
|
1394
|
+
var businessIcon_default = BusinessIcon;
|
|
1395
|
+
|
|
1396
|
+
// lib/icons/contactsIcon.tsx
|
|
1397
|
+
var React116 = __toESM(require("react"), 1);
|
|
1398
|
+
var ContactsIcon = makeMaterialIcon(
|
|
1399
|
+
/* @__PURE__ */ React116.createElement("path", { d: "M20 0H4v2h16V0zM4 24h16v-2H4v2zM20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-8 2.75c1.24 0 2.25 1.01 2.25 2.25s-1.01 2.25-2.25 2.25S9.75 10.24 9.75 9 10.76 6.75 12 6.75zM17 17H7v-1.5c0-1.67 3.33-2.5 5-2.5s5 .83 5 2.5V17z" }),
|
|
1400
|
+
/* @__PURE__ */ React116.createElement("path", { d: "M20 0H4v2h16V0zM4 24h16v-2H4v2zM20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H4V6h16v12zm-8-7c1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3 1.34 3 3 3zm0-4c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm6 10H6v-.99c0-1.99 4-3.08 6-3.08s6 1.09 6 3.08V17zM8.48 15c.74-.51 2.23-1 3.52-1s2.78.49 3.52 1H8.48z" })
|
|
1401
|
+
);
|
|
1402
|
+
var contactsIcon_default = ContactsIcon;
|
|
1403
|
+
|
|
1404
|
+
// lib/icons/factoryIcon.tsx
|
|
1405
|
+
var React117 = __toESM(require("react"), 1);
|
|
1406
|
+
var path6 = /* @__PURE__ */ React117.createElement("path", { d: "M22 22H2V11l5 3V11l5 3V11l5 3 .5-9h2l.5 9V22zm-12-2h4v-5h-4v5z" });
|
|
1407
|
+
var FactoryIcon = makeMaterialIcon(path6, path6);
|
|
1408
|
+
var factoryIcon_default = FactoryIcon;
|
|
1409
|
+
|
|
1410
|
+
// lib/icons/locationCityIcon.tsx
|
|
1411
|
+
var React118 = __toESM(require("react"), 1);
|
|
1412
|
+
var path7 = /* @__PURE__ */ React118.createElement("path", { d: "M15 11V5l-3-3-3 3v2H3v14h18V11h-6zm-8 8H5v-2h2v2zm0-4H5v-2h2v2zm0-4H5V9h2v2zm6 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V9h2v2zm0-4h-2V5h2v2zm6 12h-2v-2h2v2zm0-4h-2v-2h2v2z" });
|
|
1413
|
+
var LocationCityIcon = makeMaterialIcon(path7, path7);
|
|
1414
|
+
var locationCityIcon_default = LocationCityIcon;
|
|
1415
|
+
|
|
1416
|
+
// lib/icons/memoryIcon.tsx
|
|
1417
|
+
var React119 = __toESM(require("react"), 1);
|
|
1418
|
+
var MemoryIcon = makeMaterialIcon(
|
|
1419
|
+
/* @__PURE__ */ React119.createElement("path", { d: "M15 9H9v6h6V9zm-2 4h-2v-2h2v2zm8-2V9h-2V7c0-1.1-.9-2-2-2h-2V3h-2v2h-2V3H9v2H7c-1.1 0-2 .9-2 2v2H3v2h2v2H3v2h2v2c0 1.1.9 2 2 2h2v2h2v-2h2v2h2v-2h2c1.1 0 2-.9 2-2v-2h2v-2h-2v-2h2zm-4 6H7V7h10v10z" }),
|
|
1420
|
+
/* @__PURE__ */ React119.createElement("path", { d: "M15 9H9v6h6V9zm-2 4h-2v-2h2v2zm8-2V9h-2V7c0-1.1-.9-2-2-2h-2V3h-2v2h-2V3H9v2H7c-1.1 0-2 .9-2 2v2H3v2h2v2H3v2h2v2c0 1.1.9 2 2 2h2v2h2v-2h2v2h2v-2h2c1.1 0 2-.9 2-2v-2h2v-2h-2v-2h2zm-4 6H7V7h10v10z" })
|
|
1421
|
+
);
|
|
1422
|
+
var memoryIcon_default = MemoryIcon;
|
|
1423
|
+
|
|
1424
|
+
// lib/icons/chatBubbleIcon.tsx
|
|
1425
|
+
var React120 = __toESM(require("react"), 1);
|
|
1426
|
+
var ChatBubbleIcon = makeMaterialIcon(
|
|
1427
|
+
/* @__PURE__ */ React120.createElement("path", { d: "M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2z" }),
|
|
1428
|
+
/* @__PURE__ */ React120.createElement("path", { d: "M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H5.17l-.59.59-.58.58V4h16v12z" })
|
|
1429
|
+
);
|
|
1430
|
+
var chatBubbleIcon_default = ChatBubbleIcon;
|
|
1431
|
+
|
|
1432
|
+
// lib/icons/attachFileIcon.tsx
|
|
1433
|
+
var React121 = __toESM(require("react"), 1);
|
|
1434
|
+
var path8 = /* @__PURE__ */ React121.createElement("path", { d: "M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6h-1.5z" });
|
|
1435
|
+
var AttachFileIcon = makeMaterialIcon(path8, path8);
|
|
1436
|
+
var attachFileIcon_default = AttachFileIcon;
|
|
1437
|
+
|
|
1438
|
+
// lib/icons/placeIcon.tsx
|
|
1439
|
+
var React122 = __toESM(require("react"), 1);
|
|
1440
|
+
var PlaceIcon = makeMaterialIcon(
|
|
1441
|
+
/* @__PURE__ */ React122.createElement("path", { d: "M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z" }),
|
|
1442
|
+
/* @__PURE__ */ React122.createElement("path", { d: "M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 2c2.76 0 5 2.24 5 5 0 2.88-2.88 7.19-5 9.88C9.92 16.21 7 11.85 7 9c0-2.76 2.24-5 5-5zm0 3a2 2 0 100 4 2 2 0 000-4z" })
|
|
1443
|
+
);
|
|
1444
|
+
var placeIcon_default = PlaceIcon;
|
|
1445
|
+
|
|
1446
|
+
// lib/icons/personSearchIcon.tsx
|
|
1447
|
+
var React123 = __toESM(require("react"), 1);
|
|
1448
|
+
var path9 = /* @__PURE__ */ React123.createElement(React123.Fragment, null, /* @__PURE__ */ React123.createElement("circle", { cx: "10", cy: "8", r: "4" }), /* @__PURE__ */ React123.createElement("path", { d: "M10.35 14.01C7.62 13.91 2 15.27 2 18v2h9.54c-2.47-2.76-1.23-5.89-1.19-5.99zM19.43 18.02c.36-.59.57-1.28.57-2.02 0-2.21-1.79-4-4-4s-4 1.79-4 4 1.79 4 4 4c.74 0 1.43-.22 2.02-.57L20.59 22 22 20.59l-2.57-2.57zM16 18c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z" }));
|
|
1449
|
+
var PersonSearchIcon = makeMaterialIcon(path9, path9);
|
|
1450
|
+
var personSearchIcon_default = PersonSearchIcon;
|
|
1451
|
+
|
|
1452
|
+
// lib/icons/index.ts
|
|
1453
|
+
var AddIcon = plusIcon_default;
|
|
1454
|
+
var RemoveIcon = minusIcon_default;
|
|
1455
|
+
|
|
1456
|
+
// lib/Buttons/addButton.tsx
|
|
1457
|
+
var React124 = __toESM(require("react"), 1);
|
|
1285
1458
|
|
|
1286
1459
|
// lib/utils/sx.ts
|
|
1287
1460
|
var import_react5 = require("react");
|
|
@@ -1330,15 +1503,15 @@ function useSx(sx) {
|
|
|
1330
1503
|
// lib/Buttons/addButton.tsx
|
|
1331
1504
|
var AddButton = ({ children, sx, className, ...props }) => {
|
|
1332
1505
|
const sxClass = useSx(sx);
|
|
1333
|
-
return /* @__PURE__ */
|
|
1506
|
+
return /* @__PURE__ */ React124.createElement("button", { className: ["btn add-btn", sxClass, className].filter(Boolean).join(" "), ...props }, "+ ", children);
|
|
1334
1507
|
};
|
|
1335
1508
|
var addButton_default = AddButton;
|
|
1336
1509
|
|
|
1337
1510
|
// lib/Buttons/submitButton.tsx
|
|
1338
|
-
var
|
|
1511
|
+
var React126 = __toESM(require("react"), 1);
|
|
1339
1512
|
|
|
1340
1513
|
// lib/Progress/circularProgress.tsx
|
|
1341
|
-
var
|
|
1514
|
+
var React125 = __toESM(require("react"), 1);
|
|
1342
1515
|
var CircularProgress = ({
|
|
1343
1516
|
size = 50,
|
|
1344
1517
|
color = "#a81c08",
|
|
@@ -1347,14 +1520,14 @@ var CircularProgress = ({
|
|
|
1347
1520
|
...props
|
|
1348
1521
|
}) => {
|
|
1349
1522
|
const sxClass = useSx(sx);
|
|
1350
|
-
return /* @__PURE__ */
|
|
1523
|
+
return /* @__PURE__ */ React125.createElement(
|
|
1351
1524
|
"div",
|
|
1352
1525
|
{
|
|
1353
1526
|
className: ["rufous-loader", sxClass, className].filter(Boolean).join(" "),
|
|
1354
1527
|
style: { width: size, height: size },
|
|
1355
1528
|
...props
|
|
1356
1529
|
},
|
|
1357
|
-
/* @__PURE__ */
|
|
1530
|
+
/* @__PURE__ */ React125.createElement("svg", { viewBox: "0 0 100 100" }, /* @__PURE__ */ React125.createElement(
|
|
1358
1531
|
"circle",
|
|
1359
1532
|
{
|
|
1360
1533
|
className: "rufous-loader-circle",
|
|
@@ -1376,7 +1549,7 @@ var CircularProgressIcon = ({
|
|
|
1376
1549
|
className
|
|
1377
1550
|
}) => {
|
|
1378
1551
|
const sxClass = useSx(sx);
|
|
1379
|
-
return /* @__PURE__ */
|
|
1552
|
+
return /* @__PURE__ */ React125.createElement("div", { className: ["rufous-loader rufous-loader--with-icon", sxClass, className].filter(Boolean).join(" "), style: { width: size, height: size } }, /* @__PURE__ */ React125.createElement("svg", { viewBox: "0 0 100 100" }, /* @__PURE__ */ React125.createElement(
|
|
1380
1553
|
"circle",
|
|
1381
1554
|
{
|
|
1382
1555
|
className: "rufous-loader-circle",
|
|
@@ -1385,7 +1558,7 @@ var CircularProgressIcon = ({
|
|
|
1385
1558
|
r: "45",
|
|
1386
1559
|
stroke: color
|
|
1387
1560
|
}
|
|
1388
|
-
)), /* @__PURE__ */
|
|
1561
|
+
)), /* @__PURE__ */ React125.createElement("div", { className: "rufous-loader__icon-wrap" }, /* @__PURE__ */ React125.createElement("div", { className: spinIcon ? "rufous-loader__icon--spin-y" : void 0 }, icon)));
|
|
1389
1562
|
};
|
|
1390
1563
|
|
|
1391
1564
|
// lib/Buttons/submitButton.tsx
|
|
@@ -1402,7 +1575,7 @@ var SubmitButton = ({
|
|
|
1402
1575
|
...props
|
|
1403
1576
|
}) => {
|
|
1404
1577
|
const sxClass = useSx(sx);
|
|
1405
|
-
const [loading, setLoading] =
|
|
1578
|
+
const [loading, setLoading] = React126.useState(false);
|
|
1406
1579
|
const runProtected = async (e, handler) => {
|
|
1407
1580
|
if (loading || isLoading) return;
|
|
1408
1581
|
setLoading(true);
|
|
@@ -1418,7 +1591,7 @@ var SubmitButton = ({
|
|
|
1418
1591
|
const handleClick = onClick ? (e) => runProtected(e, onClick) : void 0;
|
|
1419
1592
|
const handleDoubleClick = onDoubleClick ? (e) => runProtected(e, onDoubleClick) : void 0;
|
|
1420
1593
|
const showLoader = loading || isLoading;
|
|
1421
|
-
return /* @__PURE__ */
|
|
1594
|
+
return /* @__PURE__ */ React126.createElement(
|
|
1422
1595
|
"button",
|
|
1423
1596
|
{
|
|
1424
1597
|
...props,
|
|
@@ -1429,38 +1602,38 @@ var SubmitButton = ({
|
|
|
1429
1602
|
onDoubleClick: onDoubleClick ? handleDoubleClick : void 0,
|
|
1430
1603
|
style: { position: "relative", ...props.style }
|
|
1431
1604
|
},
|
|
1432
|
-
/* @__PURE__ */
|
|
1433
|
-
showLoader && /* @__PURE__ */
|
|
1605
|
+
/* @__PURE__ */ React126.createElement("span", { className: "btn-content", style: { visibility: showLoader ? "hidden" : "visible" } }, children),
|
|
1606
|
+
showLoader && /* @__PURE__ */ React126.createElement("span", { style: {
|
|
1434
1607
|
position: "absolute",
|
|
1435
1608
|
inset: 0,
|
|
1436
1609
|
display: "flex",
|
|
1437
1610
|
alignItems: "center",
|
|
1438
1611
|
justifyContent: "center"
|
|
1439
|
-
} }, /* @__PURE__ */
|
|
1612
|
+
} }, /* @__PURE__ */ React126.createElement(circularProgress_default, { size: 18, color: "#ffffff80" }))
|
|
1440
1613
|
);
|
|
1441
1614
|
};
|
|
1442
1615
|
var submitButton_default = SubmitButton;
|
|
1443
1616
|
|
|
1444
1617
|
// lib/Buttons/cancelButton.tsx
|
|
1445
|
-
var
|
|
1618
|
+
var React127 = __toESM(require("react"), 1);
|
|
1446
1619
|
var CancelButton = ({ children, sx, className, ...props }) => {
|
|
1447
1620
|
const sxClass = useSx(sx);
|
|
1448
|
-
return /* @__PURE__ */
|
|
1621
|
+
return /* @__PURE__ */ React127.createElement("button", { className: ["btn cancel-btn", sxClass, className].filter(Boolean).join(" "), ...props }, children);
|
|
1449
1622
|
};
|
|
1450
1623
|
var cancelButton_default = CancelButton;
|
|
1451
1624
|
|
|
1452
1625
|
// lib/Buttons/stdButton.tsx
|
|
1453
|
-
var
|
|
1626
|
+
var React128 = __toESM(require("react"), 1);
|
|
1454
1627
|
var StandardButton = ({ children, sx, className, ...props }) => {
|
|
1455
1628
|
const sxClass = useSx(sx);
|
|
1456
|
-
return /* @__PURE__ */
|
|
1629
|
+
return /* @__PURE__ */ React128.createElement("button", { className: ["btn standard-btn", sxClass, className].filter(Boolean).join(" "), ...props }, children);
|
|
1457
1630
|
};
|
|
1458
1631
|
var stdButton_default = StandardButton;
|
|
1459
1632
|
|
|
1460
1633
|
// lib/Buttons/Button.tsx
|
|
1461
|
-
var
|
|
1634
|
+
var React129 = __toESM(require("react"), 1);
|
|
1462
1635
|
var DEFAULT_MIN_MS = 1500;
|
|
1463
|
-
var Button =
|
|
1636
|
+
var Button = React129.forwardRef(
|
|
1464
1637
|
({
|
|
1465
1638
|
variant = "text",
|
|
1466
1639
|
color = "primary",
|
|
@@ -1485,10 +1658,10 @@ var Button = React111.forwardRef(
|
|
|
1485
1658
|
...rest
|
|
1486
1659
|
}, ref) => {
|
|
1487
1660
|
const sxClass = useSx(sx);
|
|
1488
|
-
const [debounceLoading, setDebounceLoading] =
|
|
1489
|
-
const btnRef =
|
|
1661
|
+
const [debounceLoading, setDebounceLoading] = React129.useState(false);
|
|
1662
|
+
const btnRef = React129.useRef(null);
|
|
1490
1663
|
const isLoading = loading || debounceLoading;
|
|
1491
|
-
const handleClick =
|
|
1664
|
+
const handleClick = React129.useCallback(
|
|
1492
1665
|
async (e) => {
|
|
1493
1666
|
if (!debounce) {
|
|
1494
1667
|
onClick?.(e);
|
|
@@ -1534,7 +1707,7 @@ var Button = React111.forwardRef(
|
|
|
1534
1707
|
tagProps.type = type;
|
|
1535
1708
|
tagProps.disabled = disabled || isLoading;
|
|
1536
1709
|
}
|
|
1537
|
-
return /* @__PURE__ */
|
|
1710
|
+
return /* @__PURE__ */ React129.createElement(
|
|
1538
1711
|
Tag,
|
|
1539
1712
|
{
|
|
1540
1713
|
ref: (node) => {
|
|
@@ -1547,19 +1720,19 @@ var Button = React111.forwardRef(
|
|
|
1547
1720
|
onClick: handleClick,
|
|
1548
1721
|
...tagProps
|
|
1549
1722
|
},
|
|
1550
|
-
isLoading && loadingPosition === "start" && /* @__PURE__ */
|
|
1551
|
-
startIcon && !isLoading && /* @__PURE__ */
|
|
1552
|
-
isLoading && loadingPosition === "center" ? /* @__PURE__ */
|
|
1553
|
-
endIcon && !isLoading && /* @__PURE__ */
|
|
1554
|
-
isLoading && loadingPosition === "end" && /* @__PURE__ */
|
|
1723
|
+
isLoading && loadingPosition === "start" && /* @__PURE__ */ React129.createElement("span", { className: "rf-btn__loading-indicator rf-btn__loading--start" }, /* @__PURE__ */ React129.createElement(circularProgress_default, { size: size === "small" ? 14 : size === "large" ? 22 : 18 })),
|
|
1724
|
+
startIcon && !isLoading && /* @__PURE__ */ React129.createElement("span", { className: "rf-btn__start-icon" }, startIcon),
|
|
1725
|
+
isLoading && loadingPosition === "center" ? /* @__PURE__ */ React129.createElement("span", { className: "rf-btn__loading-indicator" }, /* @__PURE__ */ React129.createElement(circularProgress_default, { size: size === "small" ? 14 : size === "large" ? 22 : 18 })) : /* @__PURE__ */ React129.createElement("span", { className: "rf-btn__label" }, children),
|
|
1726
|
+
endIcon && !isLoading && /* @__PURE__ */ React129.createElement("span", { className: "rf-btn__end-icon" }, endIcon),
|
|
1727
|
+
isLoading && loadingPosition === "end" && /* @__PURE__ */ React129.createElement("span", { className: "rf-btn__loading-indicator rf-btn__loading--end" }, /* @__PURE__ */ React129.createElement(circularProgress_default, { size: size === "small" ? 14 : size === "large" ? 22 : 18 }))
|
|
1555
1728
|
);
|
|
1556
1729
|
}
|
|
1557
1730
|
);
|
|
1558
1731
|
Button.displayName = "Button";
|
|
1559
1732
|
|
|
1560
1733
|
// lib/Buttons/IconButton.tsx
|
|
1561
|
-
var
|
|
1562
|
-
var IconButton =
|
|
1734
|
+
var React130 = __toESM(require("react"), 1);
|
|
1735
|
+
var IconButton = React130.forwardRef(
|
|
1563
1736
|
({
|
|
1564
1737
|
color = "default",
|
|
1565
1738
|
size = "medium",
|
|
@@ -1592,13 +1765,53 @@ var IconButton = React112.forwardRef(
|
|
|
1592
1765
|
tagProps.type = type;
|
|
1593
1766
|
tagProps.disabled = disabled;
|
|
1594
1767
|
}
|
|
1595
|
-
return /* @__PURE__ */
|
|
1768
|
+
return /* @__PURE__ */ React130.createElement(Tag, { ref, className: classes, style, ...tagProps }, children);
|
|
1596
1769
|
}
|
|
1597
1770
|
);
|
|
1598
1771
|
IconButton.displayName = "IconButton";
|
|
1599
1772
|
|
|
1773
|
+
// lib/Buttons/ButtonGroup.tsx
|
|
1774
|
+
var React131 = __toESM(require("react"), 1);
|
|
1775
|
+
var ButtonGroup = React131.forwardRef(
|
|
1776
|
+
({
|
|
1777
|
+
orientation = "horizontal",
|
|
1778
|
+
variant = "outlined",
|
|
1779
|
+
size = "medium",
|
|
1780
|
+
fullWidth = false,
|
|
1781
|
+
disabled = false,
|
|
1782
|
+
sx,
|
|
1783
|
+
className,
|
|
1784
|
+
children,
|
|
1785
|
+
...rest
|
|
1786
|
+
}, ref) => {
|
|
1787
|
+
const sxClass = useSx(sx);
|
|
1788
|
+
const classes = [
|
|
1789
|
+
"rf-button-group",
|
|
1790
|
+
`rf-button-group--${orientation}`,
|
|
1791
|
+
`rf-button-group--${variant}`,
|
|
1792
|
+
`rf-button-group--${size}`,
|
|
1793
|
+
fullWidth ? "rf-button-group--full" : "",
|
|
1794
|
+
sxClass,
|
|
1795
|
+
className
|
|
1796
|
+
].filter(Boolean).join(" ");
|
|
1797
|
+
const childArray = React131.Children.toArray(children);
|
|
1798
|
+
return /* @__PURE__ */ React131.createElement("div", { ref, role: "group", className: classes, ...rest }, childArray.map((child, idx) => {
|
|
1799
|
+
if (!React131.isValidElement(child)) return child;
|
|
1800
|
+
const childProps = child.props;
|
|
1801
|
+
return React131.cloneElement(child, {
|
|
1802
|
+
...childProps,
|
|
1803
|
+
disabled: disabled || childProps.disabled || false,
|
|
1804
|
+
"data-rf-bg-index": idx,
|
|
1805
|
+
"data-rf-bg-last": idx === childArray.length - 1 ? "true" : void 0,
|
|
1806
|
+
key: child.key ?? idx
|
|
1807
|
+
});
|
|
1808
|
+
}));
|
|
1809
|
+
}
|
|
1810
|
+
);
|
|
1811
|
+
ButtonGroup.displayName = "ButtonGroup";
|
|
1812
|
+
|
|
1600
1813
|
// lib/Dialogs/BaseDialog.tsx
|
|
1601
|
-
var
|
|
1814
|
+
var React132 = __toESM(require("react"), 1);
|
|
1602
1815
|
var import_react8 = require("react");
|
|
1603
1816
|
var import_react_dom = __toESM(require("react-dom"), 1);
|
|
1604
1817
|
|
|
@@ -1893,7 +2106,7 @@ var __iconNode22 = [
|
|
|
1893
2106
|
var X = createLucideIcon("x", __iconNode22);
|
|
1894
2107
|
|
|
1895
2108
|
// lib/Dialogs/BaseDialog.tsx
|
|
1896
|
-
var DialogDepthContext =
|
|
2109
|
+
var DialogDepthContext = React132.createContext(0);
|
|
1897
2110
|
var MIN_LOADING_MS2 = 1500;
|
|
1898
2111
|
var BaseDialog = ({
|
|
1899
2112
|
open = false,
|
|
@@ -1982,7 +2195,7 @@ var BaseDialog = ({
|
|
|
1982
2195
|
}, [open, portalZ]);
|
|
1983
2196
|
if (!open && !TransitionComponent) return null;
|
|
1984
2197
|
const isButtonLoading = isSubmitting || loading;
|
|
1985
|
-
const renderButtons = () => /* @__PURE__ */
|
|
2198
|
+
const renderButtons = () => /* @__PURE__ */ React132.createElement(React132.Fragment, null, showCancelButton && /* @__PURE__ */ React132.createElement(
|
|
1986
2199
|
"button",
|
|
1987
2200
|
{
|
|
1988
2201
|
className: "btn-cancel",
|
|
@@ -1991,7 +2204,7 @@ var BaseDialog = ({
|
|
|
1991
2204
|
type: "button"
|
|
1992
2205
|
},
|
|
1993
2206
|
cancelText
|
|
1994
|
-
), form ? /* @__PURE__ */
|
|
2207
|
+
), form ? /* @__PURE__ */ React132.createElement(
|
|
1995
2208
|
"button",
|
|
1996
2209
|
{
|
|
1997
2210
|
className: "btn-confirm",
|
|
@@ -1999,9 +2212,9 @@ var BaseDialog = ({
|
|
|
1999
2212
|
style: { position: "relative" },
|
|
2000
2213
|
type: "submit"
|
|
2001
2214
|
},
|
|
2002
|
-
/* @__PURE__ */
|
|
2003
|
-
isButtonLoading && /* @__PURE__ */
|
|
2004
|
-
) : onConfirm && /* @__PURE__ */
|
|
2215
|
+
/* @__PURE__ */ React132.createElement("span", { style: { visibility: isButtonLoading ? "hidden" : "visible" } }, submitText),
|
|
2216
|
+
isButtonLoading && /* @__PURE__ */ React132.createElement("span", { style: { position: "absolute", inset: 0, display: "flex", alignItems: "center", justifyContent: "center" } }, /* @__PURE__ */ React132.createElement(circularProgress_default, { size: 18, color: "#ffffff80" }))
|
|
2217
|
+
) : onConfirm && /* @__PURE__ */ React132.createElement(
|
|
2005
2218
|
"button",
|
|
2006
2219
|
{
|
|
2007
2220
|
className: "btn-confirm",
|
|
@@ -2021,18 +2234,18 @@ var BaseDialog = ({
|
|
|
2021
2234
|
}
|
|
2022
2235
|
}
|
|
2023
2236
|
},
|
|
2024
|
-
/* @__PURE__ */
|
|
2025
|
-
isButtonLoading && /* @__PURE__ */
|
|
2237
|
+
/* @__PURE__ */ React132.createElement("span", { style: { visibility: isButtonLoading ? "hidden" : "visible" } }, confirmText),
|
|
2238
|
+
isButtonLoading && /* @__PURE__ */ React132.createElement("span", { style: { position: "absolute", inset: 0, display: "flex", alignItems: "center", justifyContent: "center" } }, /* @__PURE__ */ React132.createElement(circularProgress_default, { size: 18, color: "#ffffff80" }))
|
|
2026
2239
|
));
|
|
2027
2240
|
const containerClass = ["dialog-container", size ? `size-${size}` : "", sxClass, className].filter(Boolean).join(" ");
|
|
2028
2241
|
const containerStyle = { minWidth, minHeight };
|
|
2029
|
-
const dialogInner = /* @__PURE__ */
|
|
2242
|
+
const dialogInner = /* @__PURE__ */ React132.createElement(React132.Fragment, null, /* @__PURE__ */ React132.createElement("div", { className: "dialog-title" }, /* @__PURE__ */ React132.createElement("h2", null, formatTitle ? title?.charAt(0).toUpperCase() + title?.slice(1) : title), showCloseButton && /* @__PURE__ */ React132.createElement("button", { className: "btn-close", type: "button", onClick: onClose }, /* @__PURE__ */ React132.createElement(
|
|
2030
2243
|
X,
|
|
2031
2244
|
{
|
|
2032
2245
|
size: 18,
|
|
2033
2246
|
color: themeConfig?.icon || "#666666"
|
|
2034
2247
|
}
|
|
2035
|
-
))), /* @__PURE__ */
|
|
2248
|
+
))), /* @__PURE__ */ React132.createElement("div", { className: "dialog-divider" }), /* @__PURE__ */ React132.createElement(
|
|
2036
2249
|
"div",
|
|
2037
2250
|
{
|
|
2038
2251
|
className: "dialog-body",
|
|
@@ -2042,8 +2255,8 @@ var BaseDialog = ({
|
|
|
2042
2255
|
}
|
|
2043
2256
|
},
|
|
2044
2257
|
children
|
|
2045
|
-
), /* @__PURE__ */
|
|
2046
|
-
const dialogContent = form ? /* @__PURE__ */
|
|
2258
|
+
), /* @__PURE__ */ React132.createElement("div", { className: "dialog-divider" }), /* @__PURE__ */ React132.createElement("div", { className: "dialog-footer", style: { justifyContent: buttonAlign } }, customButtons || renderButtons()));
|
|
2259
|
+
const dialogContent = form ? /* @__PURE__ */ React132.createElement(
|
|
2047
2260
|
"form",
|
|
2048
2261
|
{
|
|
2049
2262
|
ref: setContainerRef,
|
|
@@ -2055,7 +2268,7 @@ var BaseDialog = ({
|
|
|
2055
2268
|
}
|
|
2056
2269
|
},
|
|
2057
2270
|
dialogInner
|
|
2058
|
-
) : /* @__PURE__ */
|
|
2271
|
+
) : /* @__PURE__ */ React132.createElement(
|
|
2059
2272
|
"div",
|
|
2060
2273
|
{
|
|
2061
2274
|
ref: setContainerRef,
|
|
@@ -2064,17 +2277,17 @@ var BaseDialog = ({
|
|
|
2064
2277
|
},
|
|
2065
2278
|
dialogInner
|
|
2066
2279
|
);
|
|
2067
|
-
const overlayNode = (content) => /* @__PURE__ */
|
|
2280
|
+
const overlayNode = (content) => /* @__PURE__ */ React132.createElement(
|
|
2068
2281
|
"div",
|
|
2069
2282
|
{
|
|
2070
2283
|
className: `dialog-overlay ${size === "fullScreen" ? "overlay-fullscreen" : ""}`,
|
|
2071
2284
|
style: { zIndex: overlayZ }
|
|
2072
2285
|
},
|
|
2073
|
-
/* @__PURE__ */
|
|
2286
|
+
/* @__PURE__ */ React132.createElement(DialogDepthContext.Provider, { value: depth + 1 }, content)
|
|
2074
2287
|
);
|
|
2075
2288
|
if (TransitionComponent) {
|
|
2076
2289
|
return import_react_dom.default.createPortal(
|
|
2077
|
-
/* @__PURE__ */
|
|
2290
|
+
/* @__PURE__ */ React132.createElement(
|
|
2078
2291
|
TransitionComponent,
|
|
2079
2292
|
{
|
|
2080
2293
|
in: open,
|
|
@@ -3510,7 +3723,7 @@ var parseTimeFromISO = (iso) => {
|
|
|
3510
3723
|
if (h === 0) h = 12;
|
|
3511
3724
|
return { h, m, ampm };
|
|
3512
3725
|
};
|
|
3513
|
-
var
|
|
3726
|
+
var CalendarIcon2 = () => /* @__PURE__ */ import_react15.default.createElement("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, /* @__PURE__ */ import_react15.default.createElement("rect", { x: "3", y: "4", width: "18", height: "18", rx: "2", ry: "2" }), /* @__PURE__ */ import_react15.default.createElement("line", { x1: "16", y1: "2", x2: "16", y2: "6" }), /* @__PURE__ */ import_react15.default.createElement("line", { x1: "8", y1: "2", x2: "8", y2: "6" }), /* @__PURE__ */ import_react15.default.createElement("line", { x1: "3", y1: "10", x2: "21", y2: "10" }));
|
|
3514
3727
|
var ChevUp = () => /* @__PURE__ */ import_react15.default.createElement("svg", { width: "10", height: "7", viewBox: "0 0 10 7", fill: "currentColor" }, /* @__PURE__ */ import_react15.default.createElement("path", { d: "M5 0L10 7H0L5 0Z" }));
|
|
3515
3728
|
var ChevDown = () => /* @__PURE__ */ import_react15.default.createElement("svg", { width: "10", height: "7", viewBox: "0 0 10 7", fill: "currentColor" }, /* @__PURE__ */ import_react15.default.createElement("path", { d: "M5 7L0 0H10L5 7Z" }));
|
|
3516
3729
|
var ITEM_H = 36;
|
|
@@ -4185,7 +4398,7 @@ var DateField = ({
|
|
|
4185
4398
|
},
|
|
4186
4399
|
"aria-label": "Pick date"
|
|
4187
4400
|
},
|
|
4188
|
-
/* @__PURE__ */ import_react15.default.createElement(
|
|
4401
|
+
/* @__PURE__ */ import_react15.default.createElement(CalendarIcon2, null)
|
|
4189
4402
|
)),
|
|
4190
4403
|
label && /* @__PURE__ */ import_react15.default.createElement("label", { htmlFor: inputId, className: "rf-text-field__label" }, label, " ", required && /* @__PURE__ */ import_react15.default.createElement("span", { className: "rf-text-field__asterisk" }, "*")),
|
|
4191
4404
|
variant === "outlined" && /* @__PURE__ */ import_react15.default.createElement("fieldset", { className: "rf-text-field__notch" }, label && /* @__PURE__ */ import_react15.default.createElement("legend", { className: "rf-text-field__legend" }, /* @__PURE__ */ import_react15.default.createElement("span", null, label, required ? " *" : "")))
|
|
@@ -4432,7 +4645,7 @@ var detectPreset = (start, end) => {
|
|
|
4432
4645
|
if (isSameDay2(start, new Date(2e3, 0, 1)) && isSameDay2(end, today2)) return "all";
|
|
4433
4646
|
return null;
|
|
4434
4647
|
};
|
|
4435
|
-
var
|
|
4648
|
+
var CalendarIcon3 = () => /* @__PURE__ */ import_react16.default.createElement("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, /* @__PURE__ */ import_react16.default.createElement("rect", { x: "3", y: "4", width: "18", height: "18", rx: "2", ry: "2" }), /* @__PURE__ */ import_react16.default.createElement("line", { x1: "16", y1: "2", x2: "16", y2: "6" }), /* @__PURE__ */ import_react16.default.createElement("line", { x1: "8", y1: "2", x2: "8", y2: "6" }), /* @__PURE__ */ import_react16.default.createElement("line", { x1: "3", y1: "10", x2: "21", y2: "10" }));
|
|
4436
4649
|
var RangeCalendarBody = ({
|
|
4437
4650
|
viewYear,
|
|
4438
4651
|
viewMonth,
|
|
@@ -4659,9 +4872,9 @@ var DateRangeField = ({
|
|
|
4659
4872
|
setSelecting("start");
|
|
4660
4873
|
};
|
|
4661
4874
|
const handlePreset = (presetId) => {
|
|
4662
|
-
const
|
|
4663
|
-
const s2 = isoToDate2(
|
|
4664
|
-
const e = isoToDate2(
|
|
4875
|
+
const range2 = getPresetRange(presetId, draftStart);
|
|
4876
|
+
const s2 = isoToDate2(range2.start);
|
|
4877
|
+
const e = isoToDate2(range2.end);
|
|
4665
4878
|
setDraftStart(s2);
|
|
4666
4879
|
setDraftEnd(e);
|
|
4667
4880
|
setStartInputStr(s2 ? formatShort(s2) : "");
|
|
@@ -4793,7 +5006,7 @@ var DateRangeField = ({
|
|
|
4793
5006
|
},
|
|
4794
5007
|
"aria-label": "Pick date range"
|
|
4795
5008
|
},
|
|
4796
|
-
/* @__PURE__ */ import_react16.default.createElement(
|
|
5009
|
+
/* @__PURE__ */ import_react16.default.createElement(CalendarIcon3, null)
|
|
4797
5010
|
)),
|
|
4798
5011
|
label && /* @__PURE__ */ import_react16.default.createElement("label", { htmlFor: inputId, className: "rf-text-field__label" }, label, " ", required && /* @__PURE__ */ import_react16.default.createElement("span", { className: "rf-text-field__asterisk" }, "*")),
|
|
4799
5012
|
variant === "outlined" && /* @__PURE__ */ import_react16.default.createElement("fieldset", { className: "rf-text-field__notch" }, label ? /* @__PURE__ */ import_react16.default.createElement("legend", { className: "rf-text-field__legend" }, /* @__PURE__ */ import_react16.default.createElement("span", null, label, required ? " *" : "")) : /* @__PURE__ */ import_react16.default.createElement("legend", { className: "rf-text-field__legend--empty" }))
|
|
@@ -4839,7 +5052,7 @@ var DateRangeField = ({
|
|
|
4839
5052
|
onClick: () => setInlineCal((v) => v === "start" ? null : "start"),
|
|
4840
5053
|
"aria-label": "Pick start date"
|
|
4841
5054
|
},
|
|
4842
|
-
/* @__PURE__ */ import_react16.default.createElement(
|
|
5055
|
+
/* @__PURE__ */ import_react16.default.createElement(CalendarIcon3, null)
|
|
4843
5056
|
))
|
|
4844
5057
|
), inlineCal === "start" && /* @__PURE__ */ import_react16.default.createElement(
|
|
4845
5058
|
MiniCalendar,
|
|
@@ -4881,7 +5094,7 @@ var DateRangeField = ({
|
|
|
4881
5094
|
onClick: () => setInlineCal((v) => v === "end" ? null : "end"),
|
|
4882
5095
|
"aria-label": "Pick end date"
|
|
4883
5096
|
},
|
|
4884
|
-
/* @__PURE__ */ import_react16.default.createElement(
|
|
5097
|
+
/* @__PURE__ */ import_react16.default.createElement(CalendarIcon3, null)
|
|
4885
5098
|
))
|
|
4886
5099
|
), inlineCal === "end" && /* @__PURE__ */ import_react16.default.createElement(
|
|
4887
5100
|
MiniCalendar,
|
|
@@ -4954,14 +5167,84 @@ var DateRangeField = ({
|
|
|
4954
5167
|
};
|
|
4955
5168
|
DateRangeField.displayName = "DateRangeField";
|
|
4956
5169
|
|
|
5170
|
+
// lib/Progress/LinearProgress.tsx
|
|
5171
|
+
var React141 = __toESM(require("react"), 1);
|
|
5172
|
+
var clamp = (n) => Math.max(0, Math.min(100, n));
|
|
5173
|
+
var LinearProgress = React141.forwardRef(
|
|
5174
|
+
({
|
|
5175
|
+
variant = "indeterminate",
|
|
5176
|
+
value = 0,
|
|
5177
|
+
valueBuffer = 0,
|
|
5178
|
+
color = "var(--primary-color, #a81c08)",
|
|
5179
|
+
trackColor = "rgba(0,0,0,0.08)",
|
|
5180
|
+
thickness = 4,
|
|
5181
|
+
sx,
|
|
5182
|
+
className,
|
|
5183
|
+
style,
|
|
5184
|
+
...rest
|
|
5185
|
+
}, ref) => {
|
|
5186
|
+
const sxClass = useSx(sx);
|
|
5187
|
+
const classes = [
|
|
5188
|
+
"rf-linear-progress",
|
|
5189
|
+
`rf-linear-progress--${variant}`,
|
|
5190
|
+
sxClass,
|
|
5191
|
+
className
|
|
5192
|
+
].filter(Boolean).join(" ");
|
|
5193
|
+
const v = clamp(value);
|
|
5194
|
+
const vb = clamp(valueBuffer);
|
|
5195
|
+
const ariaProps = variant === "determinate" || variant === "buffer" ? {
|
|
5196
|
+
"aria-valuenow": Math.round(v),
|
|
5197
|
+
"aria-valuemin": 0,
|
|
5198
|
+
"aria-valuemax": 100
|
|
5199
|
+
} : {};
|
|
5200
|
+
return /* @__PURE__ */ React141.createElement(
|
|
5201
|
+
"div",
|
|
5202
|
+
{
|
|
5203
|
+
ref,
|
|
5204
|
+
role: "progressbar",
|
|
5205
|
+
...ariaProps,
|
|
5206
|
+
className: classes,
|
|
5207
|
+
style: {
|
|
5208
|
+
height: thickness,
|
|
5209
|
+
background: trackColor,
|
|
5210
|
+
...style
|
|
5211
|
+
},
|
|
5212
|
+
...rest
|
|
5213
|
+
},
|
|
5214
|
+
variant === "buffer" && /* @__PURE__ */ React141.createElement(
|
|
5215
|
+
"span",
|
|
5216
|
+
{
|
|
5217
|
+
className: "rf-linear-progress__buffer",
|
|
5218
|
+
style: { width: `${vb}%`, background: color, opacity: 0.3 }
|
|
5219
|
+
}
|
|
5220
|
+
),
|
|
5221
|
+
/* @__PURE__ */ React141.createElement(
|
|
5222
|
+
"span",
|
|
5223
|
+
{
|
|
5224
|
+
className: "rf-linear-progress__bar",
|
|
5225
|
+
style: variant === "determinate" || variant === "buffer" ? { width: `${v}%`, background: color } : { background: color }
|
|
5226
|
+
}
|
|
5227
|
+
),
|
|
5228
|
+
variant === "indeterminate" && /* @__PURE__ */ React141.createElement(
|
|
5229
|
+
"span",
|
|
5230
|
+
{
|
|
5231
|
+
className: "rf-linear-progress__bar rf-linear-progress__bar--secondary",
|
|
5232
|
+
style: { background: color }
|
|
5233
|
+
}
|
|
5234
|
+
)
|
|
5235
|
+
);
|
|
5236
|
+
}
|
|
5237
|
+
);
|
|
5238
|
+
LinearProgress.displayName = "LinearProgress";
|
|
5239
|
+
|
|
4957
5240
|
// lib/Progress/RufousLogoLoader.tsx
|
|
4958
|
-
var
|
|
5241
|
+
var React142 = __toESM(require("react"), 1);
|
|
4959
5242
|
var _uid = 0;
|
|
4960
5243
|
var RufousLogoLoader = ({ size = 80, sx, className }) => {
|
|
4961
|
-
const clipId =
|
|
5244
|
+
const clipId = React142.useRef(`rll-${++_uid}`).current;
|
|
4962
5245
|
const height = size * (38.795 / 54.585);
|
|
4963
5246
|
const sxClass = useSx(sx);
|
|
4964
|
-
return /* @__PURE__ */
|
|
5247
|
+
return /* @__PURE__ */ React142.createElement("div", { className: ["rufous-logo-loader", sxClass, className].filter(Boolean).join(" "), style: { width: size, height } }, /* @__PURE__ */ React142.createElement(
|
|
4965
5248
|
"svg",
|
|
4966
5249
|
{
|
|
4967
5250
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4970,14 +5253,14 @@ var RufousLogoLoader = ({ size = 80, sx, className }) => {
|
|
|
4970
5253
|
height,
|
|
4971
5254
|
className: "rufous-logo-loader__svg"
|
|
4972
5255
|
},
|
|
4973
|
-
/* @__PURE__ */
|
|
5256
|
+
/* @__PURE__ */ React142.createElement("defs", null, /* @__PURE__ */ React142.createElement("clipPath", { id: clipId }, /* @__PURE__ */ React142.createElement(
|
|
4974
5257
|
"path",
|
|
4975
5258
|
{
|
|
4976
5259
|
transform: "translate(2208 18.205)",
|
|
4977
5260
|
d: "M.7,38.8a3.783,3.783,0,0,1-.5-.045l-.031,0A.26.26,0,0,1,0,38.564a.279.279,0,0,1,.14-.2c.222-.126.45-.251.671-.371l.047-.026c.357-.194.8-.435,1.209-.685.783-.479,1.565-.993,2.32-1.489l.033-.022.218-.143.49-.32c.575-.374,1.226-.8,1.824-1.241.98-.726,1.834-1.407,2.611-2.081a22.444,22.444,0,0,0,1.783-1.774A14.2,14.2,0,0,0,12.5,28.749l.012-.016a15.8,15.8,0,0,0,1.151-1.8,10.351,10.351,0,0,0,.586-1.511l0-.011.092-.278a4.425,4.425,0,0,0,.14-.583l.007-.036c.024-.119.048-.243.079-.363a4.639,4.639,0,0,0-.034-2.566c-.064-.212-.126-.43-.184-.636l-.008-.028c-.111-.391-.225-.8-.369-1.181a8.71,8.71,0,0,0-2.279-3.24,14.363,14.363,0,0,0-3.239-2.326c-.75-.4-1.553-.727-2.329-1.046L6.1,13.114l-.157-.065c-.294-.122-.6-.221-.9-.318l-.025-.008c-.19-.061-.427-.136-.649-.218-.108-.04-.265-.172-.252-.229a.7.7,0,0,1,.235-.4.915.915,0,0,1,.449-.112c.383-.029.77-.063,1.165-.1.969-.085,1.971-.174,2.962-.181h.119a13.145,13.145,0,0,1,2.907.315,11.888,11.888,0,0,1,3.128,1.123,10.286,10.286,0,0,1,2.3,1.554.92.92,0,0,1,.273.4,12.722,12.722,0,0,1,.458,3.3c-.009,1.494-.014,2.867-.014,4.2,0,.309.013.588.039.852a1.013,1.013,0,0,0,.078.26l0,.01c.027.067.051.129.077.207.029-.064.054-.116.076-.161l.009-.017.006-.012a.823.823,0,0,0,.076-.189c.051-.247.1-.494.164-.767.136-.618.276-1.257.359-1.9a24.362,24.362,0,0,0,0-6.777,13.01,13.01,0,0,0-.559-2.1c-.061-.185-.125-.382-.187-.579a9.42,9.42,0,0,0-.583-1.469c-.367-.727-.786-1.449-1.184-2.126a9.376,9.376,0,0,0-.643-.918c-.076-.1-.151-.2-.224-.3L15.548,6.3a8.128,8.128,0,0,0-.865-1.057,32.021,32.021,0,0,0-2.466-2.183,12.673,12.673,0,0,0-1.905-1.188c-.48-.256-1-.485-1.462-.687-.221-.1-.457-.2-.683-.306a.663.663,0,0,1-.11-.071L8.039.795c-.027-.02-.058-.043-.1-.069L8.062.667,8.108.644a1.786,1.786,0,0,1,.27-.12A11.679,11.679,0,0,1,11.866,0a13.332,13.332,0,0,1,1.769.121A13.927,13.927,0,0,1,15.9.693l.471.147a10.775,10.775,0,0,1,1.656.658,9.622,9.622,0,0,1,1.768,1.041,32.024,32.024,0,0,1,3.092,2.717,25.62,25.62,0,0,1,2.245,2.829l.084.117c.617.86,1.171,1.777,1.678,2.641.255.435.484.9.687,1.3.14.281.285.572.436.854.262.491.534.977.835,1.516l.005.01q.169.3.337.6c.064.116.13.232.2.347l.027.047c.12.212.244.431.357.651a8.518,8.518,0,0,0,2.121,2.695c.065.024.137.054.212.086l.013.006a1.268,1.268,0,0,0,.376.123.087.087,0,0,0,.063-.02.209.209,0,0,0,.083-.151c0-.083-.08-.153-.157-.22a.694.694,0,0,1-.135-.142c-.134-.216-.273-.436-.407-.649l-.063-.1c-.373-.587-.8-1.251-1.157-1.923s-.666-1.373-.964-2.057l0-.008q-.123-.284-.247-.564a1.707,1.707,0,0,1,.239-1.554l.026-.046.005-.009A12.918,12.918,0,0,1,31.408,9.3,7.814,7.814,0,0,1,33.75,7.612a5.391,5.391,0,0,1,2.218-.444,11.369,11.369,0,0,1,1.882.186,9.211,9.211,0,0,1,2.845,1.022c.138.071.261.135.373.188a4.155,4.155,0,0,0,1.849.464h.093c1.993-.052,4-.14,5.95-.224l.846-.036c.9-.038,1.808-.066,2.682-.093L52.7,8.67l1.007-.031h.041a1.787,1.787,0,0,1,.73.163c.1.051.109.256.109.318,0,.081-.147.169-.257.175-.466.028-.994.043-1.485.043a37.855,37.855,0,0,0-6.3.577A9.221,9.221,0,0,0,42.7,11.3a7.884,7.884,0,0,0-1.565,1.5c-.593.743-1.116,1.545-1.621,2.321l-.121.185c-.228.35-.435.709-.662,1.109l-.041.071c-.136.236-.276.481-.42.717l-.007.012c-.349.572-.709,1.162-1.1,1.716l-.216.307-.01.014a21.585,21.585,0,0,1-1.451,1.907c-1.317,1.485-2.538,2.8-3.734,4.006a30.822,30.822,0,0,1-2.5,2.207c-.548.446-1.139.86-1.71,1.26l-.01.007q-.254.177-.5.355c-.536.379-1.109.78-1.7,1.157-.545.35-1.143.71-1.828,1.1-.842.483-1.586.9-2.275,1.26-.271.144-.553.272-.868.412-.13.058-.3.135-.467.213a6.838,6.838,0,0,1-1.18.3,5.079,5.079,0,0,1,.647-.771l.008-.008c.132-.136.251-.26.365-.393l.048-.056c.566-.667,1.151-1.357,1.7-2.059s1.126-1.439,1.649-2.2c.4-.579.749-1.2,1.134-1.888l.016-.028c.406-.734.826-1.493,1.181-2.266.274-.6.733-1.787.866-2.189l.023-.07c.13-.389.215-.646-.013-.916a.369.369,0,0,1-.041.031l0,0c-.028.021-.055.041-.058.065a2.307,2.307,0,0,1-.146.5,5.257,5.257,0,0,1-.374.709c-.281.468-.536.959-.782,1.434-.2.385-.379.731-.57,1.069a20.042,20.042,0,0,1-1.161,1.871,30.689,30.689,0,0,1-1.985,2.531c-.74.821-1.567,1.648-2.6,2.6a21.448,21.448,0,0,1-2.1,1.669c-.85.606-1.754,1.2-2.688,1.768a17.867,17.867,0,0,1-1.993,1.037c-.994.445-2.066.891-3.185,1.324a12.127,12.127,0,0,1-1.714.514c-.955.213-1.969.413-3.1.611-1.023.18-2.054.328-2.927.449A1.41,1.41,0,0,1,.7,38.8ZM37.945,10.58l-.007,0a.583.583,0,0,0-.223.048.677.677,0,0,0-.437.555.637.637,0,0,0,.426.527.621.621,0,0,0,.209.046h.016a.72.72,0,0,0,.464-.194.676.676,0,0,0,.194-.282l0-.011,0-.005,0-.006,0-.009a.415.415,0,0,0,.014-.109.734.734,0,0,0-.657-.56Z"
|
|
4978
5261
|
}
|
|
4979
5262
|
))),
|
|
4980
|
-
/* @__PURE__ */
|
|
5263
|
+
/* @__PURE__ */ React142.createElement("g", { transform: "translate(-123.275 -24)" }, /* @__PURE__ */ React142.createElement("g", { transform: "translate(-2084.725 5.795)", clipPath: `url(#${clipId})` }, /* @__PURE__ */ React142.createElement("rect", { className: "rufous-ls rufous-ls-1", width: "40", height: "6", transform: "translate(2208 58) rotate(-90)", fill: "#d07f6f" }), /* @__PURE__ */ React142.createElement("rect", { className: "rufous-ls rufous-ls-2", width: "40", height: "6", transform: "translate(2214 58) rotate(-90)", fill: "#c66958" }), /* @__PURE__ */ React142.createElement("rect", { className: "rufous-ls rufous-ls-3", width: "40", height: "7", transform: "translate(2220 58) rotate(-90)", fill: "#bb5341" }), /* @__PURE__ */ React142.createElement("rect", { className: "rufous-ls rufous-ls-4", width: "40", height: "6", transform: "translate(2227 58) rotate(-90)", fill: "#b03a28" }), /* @__PURE__ */ React142.createElement("rect", { className: "rufous-ls rufous-ls-5", width: "40", height: "6", transform: "translate(2233 58) rotate(-90)", fill: "#a41b06" }), /* @__PURE__ */ React142.createElement("rect", { className: "rufous-ls rufous-ls-6", width: "40", height: "6", transform: "translate(2239 58) rotate(-90)", fill: "#8e1604" }), /* @__PURE__ */ React142.createElement("rect", { className: "rufous-ls rufous-ls-7", width: "40", height: "6", transform: "translate(2245 58) rotate(-90)", fill: "#791103" }), /* @__PURE__ */ React142.createElement("rect", { className: "rufous-ls rufous-ls-8", width: "40", height: "5", transform: "translate(2251 58) rotate(-90)", fill: "#640c02" }), /* @__PURE__ */ React142.createElement("rect", { className: "rufous-ls rufous-ls-9", width: "40", height: "7", transform: "translate(2256 58) rotate(-90)", fill: "#500801" })))
|
|
4981
5264
|
));
|
|
4982
5265
|
};
|
|
4983
5266
|
|
|
@@ -6409,7 +6692,7 @@ Select.displayName = "Select";
|
|
|
6409
6692
|
|
|
6410
6693
|
// lib/Slider/Slider.tsx
|
|
6411
6694
|
var import_react19 = __toESM(require("react"), 1);
|
|
6412
|
-
function
|
|
6695
|
+
function clamp2(val, min, max) {
|
|
6413
6696
|
return Math.max(min, Math.min(max, val));
|
|
6414
6697
|
}
|
|
6415
6698
|
function snapToStep(val, min, step) {
|
|
@@ -6431,7 +6714,7 @@ var Slider = import_react19.default.forwardRef(function Slider2(props, ref) {
|
|
|
6431
6714
|
size = "medium",
|
|
6432
6715
|
orientation = "horizontal",
|
|
6433
6716
|
valueLabelDisplay = "auto",
|
|
6434
|
-
range = false,
|
|
6717
|
+
range: range2 = false,
|
|
6435
6718
|
label,
|
|
6436
6719
|
className = "",
|
|
6437
6720
|
style,
|
|
@@ -6441,7 +6724,7 @@ var Slider = import_react19.default.forwardRef(function Slider2(props, ref) {
|
|
|
6441
6724
|
const trackRef = (0, import_react19.useRef)(null);
|
|
6442
6725
|
const draggingThumb = (0, import_react19.useRef)(null);
|
|
6443
6726
|
const [dragging, setDragging] = (0, import_react19.useState)(null);
|
|
6444
|
-
const isRange =
|
|
6727
|
+
const isRange = range2 || Array.isArray(value);
|
|
6445
6728
|
const rawVal = value ?? (isRange ? [min, max] : min);
|
|
6446
6729
|
const vals = isRange ? Array.isArray(rawVal) ? [rawVal[0], rawVal[1]] : [rawVal, rawVal] : [rawVal, rawVal];
|
|
6447
6730
|
const computedMarks = [];
|
|
@@ -6461,9 +6744,9 @@ var Slider = import_react19.default.forwardRef(function Slider2(props, ref) {
|
|
|
6461
6744
|
} else {
|
|
6462
6745
|
ratio = (e.clientX - rect.left) / rect.width;
|
|
6463
6746
|
}
|
|
6464
|
-
ratio =
|
|
6747
|
+
ratio = clamp2(ratio, 0, 1);
|
|
6465
6748
|
const raw = min + ratio * (max - min);
|
|
6466
|
-
return
|
|
6749
|
+
return clamp2(snapToStep(raw, min, step), min, max);
|
|
6467
6750
|
}, [min, max, step, orientation]);
|
|
6468
6751
|
(0, import_react19.useEffect)(() => {
|
|
6469
6752
|
if (dragging === null) return;
|
|
@@ -6521,10 +6804,10 @@ var Slider = import_react19.default.forwardRef(function Slider2(props, ref) {
|
|
|
6521
6804
|
let next = current;
|
|
6522
6805
|
if (e.key === "ArrowRight" || e.key === "ArrowUp") {
|
|
6523
6806
|
e.preventDefault();
|
|
6524
|
-
next =
|
|
6807
|
+
next = clamp2(snapToStep(current + step, min, step), min, max);
|
|
6525
6808
|
} else if (e.key === "ArrowLeft" || e.key === "ArrowDown") {
|
|
6526
6809
|
e.preventDefault();
|
|
6527
|
-
next =
|
|
6810
|
+
next = clamp2(snapToStep(current - step, min, step), min, max);
|
|
6528
6811
|
} else if (e.key === "Home") {
|
|
6529
6812
|
e.preventDefault();
|
|
6530
6813
|
next = min;
|
|
@@ -6771,6 +7054,25 @@ var RadioGroup = import_react21.default.forwardRef(function RadioGroup2(props, r
|
|
|
6771
7054
|
});
|
|
6772
7055
|
RadioGroup.displayName = "RadioGroup";
|
|
6773
7056
|
|
|
7057
|
+
// lib/FormGroup/FormGroup.tsx
|
|
7058
|
+
var React148 = __toESM(require("react"), 1);
|
|
7059
|
+
var FormGroup = React148.forwardRef(
|
|
7060
|
+
({ row = false, spacing, sx, className, style, children, ...rest }, ref) => {
|
|
7061
|
+
const sxClass = useSx(sx);
|
|
7062
|
+
const classes = ["rf-form-group", sxClass, className].filter(Boolean).join(" ");
|
|
7063
|
+
const gap = spacing === void 0 ? row ? "8px" : "4px" : typeof spacing === "number" ? `${spacing * 8}px` : spacing;
|
|
7064
|
+
const inlineStyle = {
|
|
7065
|
+
display: "flex",
|
|
7066
|
+
flexDirection: row ? "row" : "column",
|
|
7067
|
+
flexWrap: row ? "wrap" : "nowrap",
|
|
7068
|
+
gap,
|
|
7069
|
+
...style
|
|
7070
|
+
};
|
|
7071
|
+
return /* @__PURE__ */ React148.createElement("div", { ref, className: classes, style: inlineStyle, ...rest }, children);
|
|
7072
|
+
}
|
|
7073
|
+
);
|
|
7074
|
+
FormGroup.displayName = "FormGroup";
|
|
7075
|
+
|
|
6774
7076
|
// lib/Rating/Rating.tsx
|
|
6775
7077
|
var import_react22 = __toESM(require("react"), 1);
|
|
6776
7078
|
var starSize = { small: 18, medium: 24, large: 32 };
|
|
@@ -7559,12 +7861,12 @@ var Skeleton = ({
|
|
|
7559
7861
|
Skeleton.displayName = "Skeleton";
|
|
7560
7862
|
|
|
7561
7863
|
// lib/Box/Box.tsx
|
|
7562
|
-
var
|
|
7864
|
+
var React157 = __toESM(require("react"), 1);
|
|
7563
7865
|
function sp(val) {
|
|
7564
7866
|
if (val === void 0) return void 0;
|
|
7565
7867
|
return typeof val === "number" ? `${val * 8}px` : val;
|
|
7566
7868
|
}
|
|
7567
|
-
var Box =
|
|
7869
|
+
var Box = React157.forwardRef(
|
|
7568
7870
|
({
|
|
7569
7871
|
component = "div",
|
|
7570
7872
|
children,
|
|
@@ -7664,18 +7966,18 @@ var Box = React136.forwardRef(
|
|
|
7664
7966
|
};
|
|
7665
7967
|
const classes = ["rf-box", sxClass, className].filter(Boolean).join(" ");
|
|
7666
7968
|
const Tag = component;
|
|
7667
|
-
return /* @__PURE__ */
|
|
7969
|
+
return /* @__PURE__ */ React157.createElement(Tag, { ref, className: classes, style: inlineStyle, ...rest }, children);
|
|
7668
7970
|
}
|
|
7669
7971
|
);
|
|
7670
7972
|
Box.displayName = "Box";
|
|
7671
7973
|
|
|
7672
7974
|
// lib/Stack/Stack.tsx
|
|
7673
|
-
var
|
|
7975
|
+
var React158 = __toESM(require("react"), 1);
|
|
7674
7976
|
function sp2(val) {
|
|
7675
7977
|
if (val === void 0) return void 0;
|
|
7676
7978
|
return typeof val === "number" ? `${val * 8}px` : val;
|
|
7677
7979
|
}
|
|
7678
|
-
var Stack =
|
|
7980
|
+
var Stack = React158.forwardRef(
|
|
7679
7981
|
({
|
|
7680
7982
|
direction = "column",
|
|
7681
7983
|
spacing,
|
|
@@ -7752,14 +8054,14 @@ var Stack = React137.forwardRef(
|
|
|
7752
8054
|
const classes = ["rf-stack", sxClass, className].filter(Boolean).join(" ");
|
|
7753
8055
|
let content;
|
|
7754
8056
|
if (divider) {
|
|
7755
|
-
const childArray =
|
|
8057
|
+
const childArray = React158.Children.toArray(children).filter(
|
|
7756
8058
|
(child) => child !== null && child !== void 0
|
|
7757
8059
|
);
|
|
7758
8060
|
content = childArray.reduce((acc, child, idx) => {
|
|
7759
8061
|
acc.push(child);
|
|
7760
8062
|
if (idx < childArray.length - 1) {
|
|
7761
8063
|
acc.push(
|
|
7762
|
-
/* @__PURE__ */
|
|
8064
|
+
/* @__PURE__ */ React158.createElement("div", { key: `divider-${idx}`, className: "rf-stack-divider" }, divider)
|
|
7763
8065
|
);
|
|
7764
8066
|
}
|
|
7765
8067
|
return acc;
|
|
@@ -7768,13 +8070,13 @@ var Stack = React137.forwardRef(
|
|
|
7768
8070
|
content = children;
|
|
7769
8071
|
}
|
|
7770
8072
|
const Tag = component;
|
|
7771
|
-
return /* @__PURE__ */
|
|
8073
|
+
return /* @__PURE__ */ React158.createElement(Tag, { ref, className: classes, style: inlineStyle, ...rest }, content);
|
|
7772
8074
|
}
|
|
7773
8075
|
);
|
|
7774
8076
|
Stack.displayName = "Stack";
|
|
7775
8077
|
|
|
7776
8078
|
// lib/Grid/Grid.tsx
|
|
7777
|
-
var
|
|
8079
|
+
var React159 = __toESM(require("react"), 1);
|
|
7778
8080
|
function sp3(val) {
|
|
7779
8081
|
if (val === void 0) return void 0;
|
|
7780
8082
|
return typeof val === "number" ? `${val * 8}px` : val;
|
|
@@ -7791,7 +8093,7 @@ function getSpacingGap(spacing) {
|
|
|
7791
8093
|
const base = spacing.xs ?? spacing.sm ?? spacing.md ?? 0;
|
|
7792
8094
|
return `${base * 8}px`;
|
|
7793
8095
|
}
|
|
7794
|
-
var Grid =
|
|
8096
|
+
var Grid = React159.forwardRef(
|
|
7795
8097
|
({
|
|
7796
8098
|
container = false,
|
|
7797
8099
|
item = false,
|
|
@@ -7885,11 +8187,50 @@ var Grid = React138.forwardRef(
|
|
|
7885
8187
|
className
|
|
7886
8188
|
].filter(Boolean).join(" ");
|
|
7887
8189
|
const Tag = component;
|
|
7888
|
-
return /* @__PURE__ */
|
|
8190
|
+
return /* @__PURE__ */ React159.createElement(Tag, { ref, className: classes, style: inlineStyle, ...rest }, children);
|
|
7889
8191
|
}
|
|
7890
8192
|
);
|
|
7891
8193
|
Grid.displayName = "Grid";
|
|
7892
8194
|
|
|
8195
|
+
// lib/Container/Container.tsx
|
|
8196
|
+
var React160 = __toESM(require("react"), 1);
|
|
8197
|
+
var BREAKPOINT_PX = {
|
|
8198
|
+
xs: 444,
|
|
8199
|
+
sm: 600,
|
|
8200
|
+
md: 900,
|
|
8201
|
+
lg: 1200,
|
|
8202
|
+
xl: 1536
|
|
8203
|
+
};
|
|
8204
|
+
var Container = React160.forwardRef(
|
|
8205
|
+
({
|
|
8206
|
+
maxWidth = "lg",
|
|
8207
|
+
fixed = false,
|
|
8208
|
+
disableGutters = false,
|
|
8209
|
+
component = "div",
|
|
8210
|
+
children,
|
|
8211
|
+
className,
|
|
8212
|
+
style,
|
|
8213
|
+
sx,
|
|
8214
|
+
...rest
|
|
8215
|
+
}, ref) => {
|
|
8216
|
+
const sxClass = useSx(sx);
|
|
8217
|
+
const classes = ["rf-container", sxClass, className].filter(Boolean).join(" ");
|
|
8218
|
+
const mw = maxWidth === false ? void 0 : fixed ? `${BREAKPOINT_PX[maxWidth]}px` : `${BREAKPOINT_PX[maxWidth]}px`;
|
|
8219
|
+
const inlineStyle = {
|
|
8220
|
+
width: "100%",
|
|
8221
|
+
marginLeft: "auto",
|
|
8222
|
+
marginRight: "auto",
|
|
8223
|
+
boxSizing: "border-box",
|
|
8224
|
+
...mw !== void 0 ? { maxWidth: mw } : {},
|
|
8225
|
+
...disableGutters ? {} : { paddingLeft: 16, paddingRight: 16 },
|
|
8226
|
+
...style
|
|
8227
|
+
};
|
|
8228
|
+
const Tag = component;
|
|
8229
|
+
return /* @__PURE__ */ React160.createElement(Tag, { ref, className: classes, style: inlineStyle, ...rest }, children);
|
|
8230
|
+
}
|
|
8231
|
+
);
|
|
8232
|
+
Container.displayName = "Container";
|
|
8233
|
+
|
|
7893
8234
|
// lib/Table/Table.tsx
|
|
7894
8235
|
var import_react30 = __toESM(require("react"), 1);
|
|
7895
8236
|
var TableContext = (0, import_react30.createContext)({
|
|
@@ -8145,8 +8486,8 @@ var TablePagination = import_react30.default.forwardRef(
|
|
|
8145
8486
|
TablePagination.displayName = "TablePagination";
|
|
8146
8487
|
|
|
8147
8488
|
// lib/Paper/Paper.tsx
|
|
8148
|
-
var
|
|
8149
|
-
var Paper =
|
|
8489
|
+
var React162 = __toESM(require("react"), 1);
|
|
8490
|
+
var Paper = React162.forwardRef(
|
|
8150
8491
|
({
|
|
8151
8492
|
elevation = 1,
|
|
8152
8493
|
square = false,
|
|
@@ -8168,14 +8509,14 @@ var Paper = React140.forwardRef(
|
|
|
8168
8509
|
className
|
|
8169
8510
|
].filter(Boolean).join(" ");
|
|
8170
8511
|
const Tag = component;
|
|
8171
|
-
return /* @__PURE__ */
|
|
8512
|
+
return /* @__PURE__ */ React162.createElement(Tag, { ref, className: classes, style, ...rest }, children);
|
|
8172
8513
|
}
|
|
8173
8514
|
);
|
|
8174
8515
|
Paper.displayName = "Paper";
|
|
8175
8516
|
|
|
8176
8517
|
// lib/Card/Card.tsx
|
|
8177
|
-
var
|
|
8178
|
-
var Card =
|
|
8518
|
+
var React163 = __toESM(require("react"), 1);
|
|
8519
|
+
var Card = React163.forwardRef(
|
|
8179
8520
|
({
|
|
8180
8521
|
elevation = 1,
|
|
8181
8522
|
variant = "elevation",
|
|
@@ -8194,33 +8535,33 @@ var Card = React141.forwardRef(
|
|
|
8194
8535
|
sxClass,
|
|
8195
8536
|
className
|
|
8196
8537
|
].filter(Boolean).join(" ");
|
|
8197
|
-
return /* @__PURE__ */
|
|
8538
|
+
return /* @__PURE__ */ React163.createElement("div", { ref, className: classes, style, ...rest }, children);
|
|
8198
8539
|
}
|
|
8199
8540
|
);
|
|
8200
8541
|
Card.displayName = "Card";
|
|
8201
|
-
var CardContent =
|
|
8542
|
+
var CardContent = React163.forwardRef(
|
|
8202
8543
|
({ children, className, style, sx, ...rest }, ref) => {
|
|
8203
8544
|
const sxClass = useSx(sx);
|
|
8204
8545
|
const classes = ["rf-card-content", sxClass, className].filter(Boolean).join(" ");
|
|
8205
|
-
return /* @__PURE__ */
|
|
8546
|
+
return /* @__PURE__ */ React163.createElement("div", { ref, className: classes, style, ...rest }, children);
|
|
8206
8547
|
}
|
|
8207
8548
|
);
|
|
8208
8549
|
CardContent.displayName = "CardContent";
|
|
8209
|
-
var CardHeader =
|
|
8550
|
+
var CardHeader = React163.forwardRef(
|
|
8210
8551
|
({ title, subheader, avatar, action, className, style, sx, ...rest }, ref) => {
|
|
8211
8552
|
const sxClass = useSx(sx);
|
|
8212
8553
|
const classes = ["rf-card-header", sxClass, className].filter(Boolean).join(" ");
|
|
8213
|
-
return /* @__PURE__ */
|
|
8554
|
+
return /* @__PURE__ */ React163.createElement("div", { ref, className: classes, style, ...rest }, avatar && /* @__PURE__ */ React163.createElement("div", { className: "rf-card-header-avatar" }, avatar), /* @__PURE__ */ React163.createElement("div", { className: "rf-card-header-content" }, /* @__PURE__ */ React163.createElement("div", { className: "rf-card-header-title" }, title), subheader && /* @__PURE__ */ React163.createElement("div", { className: "rf-card-header-subheader" }, subheader)), action && /* @__PURE__ */ React163.createElement("div", { className: "rf-card-header-action" }, action));
|
|
8214
8555
|
}
|
|
8215
8556
|
);
|
|
8216
8557
|
CardHeader.displayName = "CardHeader";
|
|
8217
|
-
var CardMedia =
|
|
8558
|
+
var CardMedia = React163.forwardRef(
|
|
8218
8559
|
({ component = "div", image, src, height, alt, className, style, sx, ...rest }, ref) => {
|
|
8219
8560
|
const sxClass = useSx(sx);
|
|
8220
8561
|
const classes = ["rf-card-media", sxClass, className].filter(Boolean).join(" ");
|
|
8221
8562
|
const computedHeight = height !== void 0 ? typeof height === "number" ? `${height}px` : height : "200px";
|
|
8222
8563
|
if (component === "img") {
|
|
8223
|
-
return /* @__PURE__ */
|
|
8564
|
+
return /* @__PURE__ */ React163.createElement(
|
|
8224
8565
|
"img",
|
|
8225
8566
|
{
|
|
8226
8567
|
ref,
|
|
@@ -8233,7 +8574,7 @@ var CardMedia = React141.forwardRef(
|
|
|
8233
8574
|
);
|
|
8234
8575
|
}
|
|
8235
8576
|
if (component === "video") {
|
|
8236
|
-
return /* @__PURE__ */
|
|
8577
|
+
return /* @__PURE__ */ React163.createElement(
|
|
8237
8578
|
"video",
|
|
8238
8579
|
{
|
|
8239
8580
|
ref,
|
|
@@ -8249,7 +8590,7 @@ var CardMedia = React141.forwardRef(
|
|
|
8249
8590
|
...image ? { backgroundImage: `url(${image})` } : {},
|
|
8250
8591
|
...style
|
|
8251
8592
|
};
|
|
8252
|
-
return /* @__PURE__ */
|
|
8593
|
+
return /* @__PURE__ */ React163.createElement(
|
|
8253
8594
|
"div",
|
|
8254
8595
|
{
|
|
8255
8596
|
ref,
|
|
@@ -8261,7 +8602,7 @@ var CardMedia = React141.forwardRef(
|
|
|
8261
8602
|
}
|
|
8262
8603
|
);
|
|
8263
8604
|
CardMedia.displayName = "CardMedia";
|
|
8264
|
-
var CardActions =
|
|
8605
|
+
var CardActions = React163.forwardRef(
|
|
8265
8606
|
({ disableSpacing = false, children, className, style, sx, ...rest }, ref) => {
|
|
8266
8607
|
const sxClass = useSx(sx);
|
|
8267
8608
|
const classes = [
|
|
@@ -8270,13 +8611,13 @@ var CardActions = React141.forwardRef(
|
|
|
8270
8611
|
sxClass,
|
|
8271
8612
|
className
|
|
8272
8613
|
].filter(Boolean).join(" ");
|
|
8273
|
-
return /* @__PURE__ */
|
|
8614
|
+
return /* @__PURE__ */ React163.createElement("div", { ref, className: classes, style, ...rest }, children);
|
|
8274
8615
|
}
|
|
8275
8616
|
);
|
|
8276
8617
|
CardActions.displayName = "CardActions";
|
|
8277
8618
|
|
|
8278
8619
|
// lib/Accordion/Accordion.tsx
|
|
8279
|
-
var
|
|
8620
|
+
var React164 = __toESM(require("react"), 1);
|
|
8280
8621
|
var import_react31 = require("react");
|
|
8281
8622
|
var AccordionContext = (0, import_react31.createContext)({
|
|
8282
8623
|
expanded: false,
|
|
@@ -8284,7 +8625,7 @@ var AccordionContext = (0, import_react31.createContext)({
|
|
|
8284
8625
|
toggle: () => {
|
|
8285
8626
|
}
|
|
8286
8627
|
});
|
|
8287
|
-
var Accordion =
|
|
8628
|
+
var Accordion = React164.forwardRef(
|
|
8288
8629
|
({
|
|
8289
8630
|
expanded: expandedProp,
|
|
8290
8631
|
defaultExpanded = false,
|
|
@@ -8319,11 +8660,11 @@ var Accordion = React142.forwardRef(
|
|
|
8319
8660
|
sxClass,
|
|
8320
8661
|
className
|
|
8321
8662
|
].filter(Boolean).join(" ");
|
|
8322
|
-
return /* @__PURE__ */
|
|
8663
|
+
return /* @__PURE__ */ React164.createElement(AccordionContext.Provider, { value: { expanded, disabled, toggle } }, /* @__PURE__ */ React164.createElement("div", { ref, className: classes, style, ...rest }, children));
|
|
8323
8664
|
}
|
|
8324
8665
|
);
|
|
8325
8666
|
Accordion.displayName = "Accordion";
|
|
8326
|
-
var ChevronIcon = () => /* @__PURE__ */
|
|
8667
|
+
var ChevronIcon = () => /* @__PURE__ */ React164.createElement(
|
|
8327
8668
|
"svg",
|
|
8328
8669
|
{
|
|
8329
8670
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -8337,9 +8678,9 @@ var ChevronIcon = () => /* @__PURE__ */ React142.createElement(
|
|
|
8337
8678
|
strokeLinejoin: "round",
|
|
8338
8679
|
"aria-hidden": "true"
|
|
8339
8680
|
},
|
|
8340
|
-
/* @__PURE__ */
|
|
8681
|
+
/* @__PURE__ */ React164.createElement("polyline", { points: "6 9 12 15 18 9" })
|
|
8341
8682
|
);
|
|
8342
|
-
var AccordionSummary =
|
|
8683
|
+
var AccordionSummary = React164.forwardRef(
|
|
8343
8684
|
({ expandIcon, children, sx, className, style, ...rest }, ref) => {
|
|
8344
8685
|
const sxClass = useSx(sx);
|
|
8345
8686
|
const { expanded, toggle, disabled } = (0, import_react31.useContext)(AccordionContext);
|
|
@@ -8353,7 +8694,7 @@ var AccordionSummary = React142.forwardRef(
|
|
|
8353
8694
|
"rf-accordion-summary-icon",
|
|
8354
8695
|
expanded ? "rf-accordion-icon-expanded" : ""
|
|
8355
8696
|
].filter(Boolean).join(" ");
|
|
8356
|
-
return /* @__PURE__ */
|
|
8697
|
+
return /* @__PURE__ */ React164.createElement(
|
|
8357
8698
|
"button",
|
|
8358
8699
|
{
|
|
8359
8700
|
ref,
|
|
@@ -8365,13 +8706,13 @@ var AccordionSummary = React142.forwardRef(
|
|
|
8365
8706
|
"aria-expanded": expanded,
|
|
8366
8707
|
...rest
|
|
8367
8708
|
},
|
|
8368
|
-
/* @__PURE__ */
|
|
8369
|
-
/* @__PURE__ */
|
|
8709
|
+
/* @__PURE__ */ React164.createElement("span", { className: "rf-accordion-summary-content" }, children),
|
|
8710
|
+
/* @__PURE__ */ React164.createElement("span", { className: iconClasses }, expandIcon !== void 0 ? expandIcon : /* @__PURE__ */ React164.createElement(ChevronIcon, null))
|
|
8370
8711
|
);
|
|
8371
8712
|
}
|
|
8372
8713
|
);
|
|
8373
8714
|
AccordionSummary.displayName = "AccordionSummary";
|
|
8374
|
-
var AccordionDetails =
|
|
8715
|
+
var AccordionDetails = React164.forwardRef(
|
|
8375
8716
|
({ children, sx, className, style, ...rest }, ref) => {
|
|
8376
8717
|
const sxClass = useSx(sx);
|
|
8377
8718
|
const { expanded } = (0, import_react31.useContext)(AccordionContext);
|
|
@@ -8384,7 +8725,7 @@ var AccordionDetails = React142.forwardRef(
|
|
|
8384
8725
|
sxClass,
|
|
8385
8726
|
className
|
|
8386
8727
|
].filter(Boolean).join(" ");
|
|
8387
|
-
return /* @__PURE__ */
|
|
8728
|
+
return /* @__PURE__ */ React164.createElement("div", { className: wrapperClasses }, /* @__PURE__ */ React164.createElement("div", { className: "rf-accordion-details-inner" }, /* @__PURE__ */ React164.createElement("div", { ref, className: detailsClasses, style, ...rest }, children)));
|
|
8388
8729
|
}
|
|
8389
8730
|
);
|
|
8390
8731
|
AccordionDetails.displayName = "AccordionDetails";
|
|
@@ -9094,6 +9435,120 @@ var Drawer = ({
|
|
|
9094
9435
|
};
|
|
9095
9436
|
Drawer.displayName = "Drawer";
|
|
9096
9437
|
|
|
9438
|
+
// lib/Pagination/Pagination.tsx
|
|
9439
|
+
var React170 = __toESM(require("react"), 1);
|
|
9440
|
+
function range(start, end) {
|
|
9441
|
+
const out = [];
|
|
9442
|
+
for (let i = start; i <= end; i++) out.push(i);
|
|
9443
|
+
return out;
|
|
9444
|
+
}
|
|
9445
|
+
function buildItems(count, page, siblingCount, boundaryCount) {
|
|
9446
|
+
const startPages = range(1, Math.min(boundaryCount, count));
|
|
9447
|
+
const endPages = range(Math.max(count - boundaryCount + 1, boundaryCount + 1), count);
|
|
9448
|
+
const siblingsStart = Math.max(
|
|
9449
|
+
Math.min(page - siblingCount, count - boundaryCount - siblingCount * 2 - 1),
|
|
9450
|
+
boundaryCount + 2
|
|
9451
|
+
);
|
|
9452
|
+
const siblingsEnd = Math.min(
|
|
9453
|
+
Math.max(page + siblingCount, boundaryCount + siblingCount * 2 + 2),
|
|
9454
|
+
endPages.length > 0 ? endPages[0] - 2 : count - 1
|
|
9455
|
+
);
|
|
9456
|
+
const items = [];
|
|
9457
|
+
startPages.forEach((p) => items.push({ type: "page", page: p, key: `p-${p}` }));
|
|
9458
|
+
if (siblingsStart > boundaryCount + 2) {
|
|
9459
|
+
items.push({ type: "start-ellipsis", key: "start-ellipsis" });
|
|
9460
|
+
} else if (boundaryCount + 1 < count - boundaryCount) {
|
|
9461
|
+
items.push({ type: "page", page: boundaryCount + 1, key: `p-${boundaryCount + 1}` });
|
|
9462
|
+
}
|
|
9463
|
+
range(siblingsStart, siblingsEnd).forEach(
|
|
9464
|
+
(p) => items.push({ type: "page", page: p, key: `p-${p}` })
|
|
9465
|
+
);
|
|
9466
|
+
if (siblingsEnd < count - boundaryCount - 1) {
|
|
9467
|
+
items.push({ type: "end-ellipsis", key: "end-ellipsis" });
|
|
9468
|
+
} else if (count - boundaryCount > boundaryCount) {
|
|
9469
|
+
items.push({
|
|
9470
|
+
type: "page",
|
|
9471
|
+
page: count - boundaryCount,
|
|
9472
|
+
key: `p-${count - boundaryCount}`
|
|
9473
|
+
});
|
|
9474
|
+
}
|
|
9475
|
+
endPages.forEach((p) => items.push({ type: "page", page: p, key: `p-${p}` }));
|
|
9476
|
+
return items;
|
|
9477
|
+
}
|
|
9478
|
+
var Pagination = React170.forwardRef(
|
|
9479
|
+
({
|
|
9480
|
+
count,
|
|
9481
|
+
page: pageProp,
|
|
9482
|
+
defaultPage = 1,
|
|
9483
|
+
onChange,
|
|
9484
|
+
siblingCount = 1,
|
|
9485
|
+
boundaryCount = 1,
|
|
9486
|
+
showFirstButton = false,
|
|
9487
|
+
showLastButton = false,
|
|
9488
|
+
hidePrevButton = false,
|
|
9489
|
+
hideNextButton = false,
|
|
9490
|
+
disabled = false,
|
|
9491
|
+
shape = "circular",
|
|
9492
|
+
size = "medium",
|
|
9493
|
+
color = "standard",
|
|
9494
|
+
sx,
|
|
9495
|
+
className,
|
|
9496
|
+
...rest
|
|
9497
|
+
}, ref) => {
|
|
9498
|
+
const isControlled = pageProp !== void 0;
|
|
9499
|
+
const [uncontrolledPage, setUncontrolledPage] = React170.useState(defaultPage);
|
|
9500
|
+
const page = isControlled ? pageProp : uncontrolledPage;
|
|
9501
|
+
const sxClass = useSx(sx);
|
|
9502
|
+
const classes = [
|
|
9503
|
+
"rf-pagination",
|
|
9504
|
+
`rf-pagination--${size}`,
|
|
9505
|
+
`rf-pagination--${shape}`,
|
|
9506
|
+
`rf-pagination--${color}`,
|
|
9507
|
+
sxClass,
|
|
9508
|
+
className
|
|
9509
|
+
].filter(Boolean).join(" ");
|
|
9510
|
+
const goTo = (e, p) => {
|
|
9511
|
+
const clamped = Math.max(1, Math.min(p, count));
|
|
9512
|
+
if (!isControlled) setUncontrolledPage(clamped);
|
|
9513
|
+
onChange?.(e, clamped);
|
|
9514
|
+
};
|
|
9515
|
+
const items = buildItems(count, page, siblingCount, boundaryCount);
|
|
9516
|
+
const renderControl = (key, label, targetPage, isDisabled, symbol) => /* @__PURE__ */ React170.createElement("li", { key }, /* @__PURE__ */ React170.createElement(
|
|
9517
|
+
"button",
|
|
9518
|
+
{
|
|
9519
|
+
type: "button",
|
|
9520
|
+
className: "rf-pagination__btn rf-pagination__btn--control",
|
|
9521
|
+
"aria-label": label,
|
|
9522
|
+
disabled: isDisabled || disabled,
|
|
9523
|
+
onClick: (e) => goTo(e, targetPage)
|
|
9524
|
+
},
|
|
9525
|
+
symbol
|
|
9526
|
+
));
|
|
9527
|
+
return /* @__PURE__ */ React170.createElement("nav", { ref, className: classes, "aria-label": "pagination", ...rest }, /* @__PURE__ */ React170.createElement("ul", { className: "rf-pagination__list" }, showFirstButton && renderControl("first", "Go to first page", 1, page <= 1, "\xAB"), !hidePrevButton && renderControl("prev", "Go to previous page", page - 1, page <= 1, "\u2039"), items.map((item) => {
|
|
9528
|
+
if (item.type === "start-ellipsis" || item.type === "end-ellipsis") {
|
|
9529
|
+
return /* @__PURE__ */ React170.createElement("li", { key: item.key, "aria-hidden": "true" }, /* @__PURE__ */ React170.createElement("span", { className: "rf-pagination__ellipsis" }, "\u2026"));
|
|
9530
|
+
}
|
|
9531
|
+
const isActive = item.page === page;
|
|
9532
|
+
return /* @__PURE__ */ React170.createElement("li", { key: item.key }, /* @__PURE__ */ React170.createElement(
|
|
9533
|
+
"button",
|
|
9534
|
+
{
|
|
9535
|
+
type: "button",
|
|
9536
|
+
className: [
|
|
9537
|
+
"rf-pagination__btn",
|
|
9538
|
+
isActive ? "rf-pagination__btn--active" : ""
|
|
9539
|
+
].filter(Boolean).join(" "),
|
|
9540
|
+
"aria-current": isActive ? "page" : void 0,
|
|
9541
|
+
"aria-label": `Go to page ${item.page}`,
|
|
9542
|
+
disabled,
|
|
9543
|
+
onClick: (e) => goTo(e, item.page)
|
|
9544
|
+
},
|
|
9545
|
+
item.page
|
|
9546
|
+
));
|
|
9547
|
+
}), !hideNextButton && renderControl("next", "Go to next page", page + 1, page >= count, "\u203A"), showLastButton && renderControl("last", "Go to last page", count, page >= count, "\xBB")));
|
|
9548
|
+
}
|
|
9549
|
+
);
|
|
9550
|
+
Pagination.displayName = "Pagination";
|
|
9551
|
+
|
|
9097
9552
|
// lib/Snackbar/Snackbar.tsx
|
|
9098
9553
|
var import_react37 = __toESM(require("react"), 1);
|
|
9099
9554
|
var import_react_dom9 = __toESM(require("react-dom"), 1);
|
|
@@ -9205,6 +9660,189 @@ var Snackbar = ({
|
|
|
9205
9660
|
};
|
|
9206
9661
|
Snackbar.displayName = "Snackbar";
|
|
9207
9662
|
|
|
9663
|
+
// lib/Alert/Alert.tsx
|
|
9664
|
+
var React172 = __toESM(require("react"), 1);
|
|
9665
|
+
var DEFAULT_ICONS = {
|
|
9666
|
+
success: /* @__PURE__ */ React172.createElement("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": true }, /* @__PURE__ */ React172.createElement("path", { d: "M12 2a10 10 0 100 20 10 10 0 000-20zm-1 14.5l-4.5-4.5 1.4-1.4L11 13.7l6.1-6.1L18.5 9 11 16.5z" })),
|
|
9667
|
+
info: /* @__PURE__ */ React172.createElement("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": true }, /* @__PURE__ */ React172.createElement("path", { d: "M12 2a10 10 0 100 20 10 10 0 000-20zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z" })),
|
|
9668
|
+
warning: /* @__PURE__ */ React172.createElement("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": true }, /* @__PURE__ */ React172.createElement("path", { d: "M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z" })),
|
|
9669
|
+
error: /* @__PURE__ */ React172.createElement("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": true }, /* @__PURE__ */ React172.createElement("path", { d: "M12 2a10 10 0 100 20 10 10 0 000-20zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z" }))
|
|
9670
|
+
};
|
|
9671
|
+
var Alert = React172.forwardRef(
|
|
9672
|
+
({
|
|
9673
|
+
severity = "info",
|
|
9674
|
+
variant = "standard",
|
|
9675
|
+
title,
|
|
9676
|
+
icon,
|
|
9677
|
+
action,
|
|
9678
|
+
onClose,
|
|
9679
|
+
sx,
|
|
9680
|
+
className,
|
|
9681
|
+
children,
|
|
9682
|
+
role = "alert",
|
|
9683
|
+
...rest
|
|
9684
|
+
}, ref) => {
|
|
9685
|
+
const sxClass = useSx(sx);
|
|
9686
|
+
const classes = [
|
|
9687
|
+
"rf-alert",
|
|
9688
|
+
`rf-alert--${severity}`,
|
|
9689
|
+
`rf-alert--${variant}`,
|
|
9690
|
+
sxClass,
|
|
9691
|
+
className
|
|
9692
|
+
].filter(Boolean).join(" ");
|
|
9693
|
+
const resolvedIcon = icon === false ? null : icon ?? DEFAULT_ICONS[severity];
|
|
9694
|
+
const closeAction = onClose && !action ? /* @__PURE__ */ React172.createElement(
|
|
9695
|
+
"button",
|
|
9696
|
+
{
|
|
9697
|
+
type: "button",
|
|
9698
|
+
"aria-label": "Close",
|
|
9699
|
+
className: "rf-alert__close",
|
|
9700
|
+
onClick: onClose
|
|
9701
|
+
},
|
|
9702
|
+
"\xD7"
|
|
9703
|
+
) : null;
|
|
9704
|
+
return /* @__PURE__ */ React172.createElement("div", { ref, role, className: classes, ...rest }, resolvedIcon !== null && /* @__PURE__ */ React172.createElement("span", { className: "rf-alert__icon" }, resolvedIcon), /* @__PURE__ */ React172.createElement("div", { className: "rf-alert__message" }, title && /* @__PURE__ */ React172.createElement("div", { className: "rf-alert__title" }, title), children), (action || closeAction) && /* @__PURE__ */ React172.createElement("div", { className: "rf-alert__action" }, action ?? closeAction));
|
|
9705
|
+
}
|
|
9706
|
+
);
|
|
9707
|
+
Alert.displayName = "Alert";
|
|
9708
|
+
|
|
9709
|
+
// lib/ClickAwayListener/ClickAwayListener.tsx
|
|
9710
|
+
var React173 = __toESM(require("react"), 1);
|
|
9711
|
+
function mapEventPropToEvent(eventProp) {
|
|
9712
|
+
return eventProp.substring(2).toLowerCase();
|
|
9713
|
+
}
|
|
9714
|
+
function ownerDocument(node) {
|
|
9715
|
+
return node && node.ownerDocument || document;
|
|
9716
|
+
}
|
|
9717
|
+
function clickedRootScrollbar(event, doc) {
|
|
9718
|
+
return doc.documentElement.clientWidth < event.clientX || doc.documentElement.clientHeight < event.clientY;
|
|
9719
|
+
}
|
|
9720
|
+
function setRef(ref, value) {
|
|
9721
|
+
if (typeof ref === "function") {
|
|
9722
|
+
ref(value);
|
|
9723
|
+
} else if (ref && typeof ref === "object" && "current" in ref) {
|
|
9724
|
+
ref.current = value;
|
|
9725
|
+
}
|
|
9726
|
+
}
|
|
9727
|
+
function useForkRef(refA, refB) {
|
|
9728
|
+
return React173.useMemo(() => {
|
|
9729
|
+
if (refA == null && refB == null) {
|
|
9730
|
+
return null;
|
|
9731
|
+
}
|
|
9732
|
+
return (value) => {
|
|
9733
|
+
setRef(refA, value);
|
|
9734
|
+
setRef(refB, value);
|
|
9735
|
+
};
|
|
9736
|
+
}, [refA, refB]);
|
|
9737
|
+
}
|
|
9738
|
+
function useEventCallback(fn) {
|
|
9739
|
+
const ref = React173.useRef(fn);
|
|
9740
|
+
React173.useEffect(() => {
|
|
9741
|
+
ref.current = fn;
|
|
9742
|
+
});
|
|
9743
|
+
return React173.useCallback((...args) => ref.current(...args), []);
|
|
9744
|
+
}
|
|
9745
|
+
function getReactElementRef(element) {
|
|
9746
|
+
const major = parseInt(React173.version, 10);
|
|
9747
|
+
if (major >= 19) {
|
|
9748
|
+
return element.props?.ref ?? null;
|
|
9749
|
+
}
|
|
9750
|
+
return element.ref ?? null;
|
|
9751
|
+
}
|
|
9752
|
+
function ClickAwayListener(props) {
|
|
9753
|
+
const {
|
|
9754
|
+
children,
|
|
9755
|
+
disableReactTree = false,
|
|
9756
|
+
mouseEvent = "onClick",
|
|
9757
|
+
onClickAway,
|
|
9758
|
+
touchEvent = "onTouchEnd"
|
|
9759
|
+
} = props;
|
|
9760
|
+
const movedRef = React173.useRef(false);
|
|
9761
|
+
const nodeRef = React173.useRef(null);
|
|
9762
|
+
const activatedRef = React173.useRef(false);
|
|
9763
|
+
const syntheticEventRef = React173.useRef(false);
|
|
9764
|
+
React173.useEffect(() => {
|
|
9765
|
+
const id = setTimeout(() => {
|
|
9766
|
+
activatedRef.current = true;
|
|
9767
|
+
}, 0);
|
|
9768
|
+
return () => {
|
|
9769
|
+
clearTimeout(id);
|
|
9770
|
+
activatedRef.current = false;
|
|
9771
|
+
};
|
|
9772
|
+
}, []);
|
|
9773
|
+
const handleRef = useForkRef(
|
|
9774
|
+
getReactElementRef(children),
|
|
9775
|
+
nodeRef
|
|
9776
|
+
);
|
|
9777
|
+
const handleClickAway = useEventCallback(
|
|
9778
|
+
(event) => {
|
|
9779
|
+
const insideReactTree = syntheticEventRef.current;
|
|
9780
|
+
syntheticEventRef.current = false;
|
|
9781
|
+
const doc = ownerDocument(nodeRef.current);
|
|
9782
|
+
if (!activatedRef.current || !nodeRef.current || "clientX" in event && clickedRootScrollbar(event, doc)) {
|
|
9783
|
+
return;
|
|
9784
|
+
}
|
|
9785
|
+
if (movedRef.current) {
|
|
9786
|
+
movedRef.current = false;
|
|
9787
|
+
return;
|
|
9788
|
+
}
|
|
9789
|
+
let insideDOM;
|
|
9790
|
+
if (typeof event.composedPath === "function") {
|
|
9791
|
+
insideDOM = event.composedPath().includes(nodeRef.current);
|
|
9792
|
+
} else {
|
|
9793
|
+
const target = event.target;
|
|
9794
|
+
insideDOM = !doc.documentElement.contains(target) || nodeRef.current.contains(target);
|
|
9795
|
+
}
|
|
9796
|
+
if (!insideDOM && (disableReactTree || !insideReactTree)) {
|
|
9797
|
+
onClickAway(event);
|
|
9798
|
+
}
|
|
9799
|
+
}
|
|
9800
|
+
);
|
|
9801
|
+
const createHandleSynthetic = (handlerName) => (event) => {
|
|
9802
|
+
syntheticEventRef.current = true;
|
|
9803
|
+
const childProps = children.props;
|
|
9804
|
+
const childHandler = childProps[handlerName];
|
|
9805
|
+
if (childHandler) {
|
|
9806
|
+
childHandler(event);
|
|
9807
|
+
}
|
|
9808
|
+
};
|
|
9809
|
+
const childrenProps = { ref: handleRef };
|
|
9810
|
+
if (touchEvent !== false) {
|
|
9811
|
+
childrenProps[touchEvent] = createHandleSynthetic(touchEvent);
|
|
9812
|
+
}
|
|
9813
|
+
React173.useEffect(() => {
|
|
9814
|
+
if (touchEvent === false) {
|
|
9815
|
+
return void 0;
|
|
9816
|
+
}
|
|
9817
|
+
const mappedTouchEvent = mapEventPropToEvent(touchEvent);
|
|
9818
|
+
const doc = ownerDocument(nodeRef.current);
|
|
9819
|
+
const handleTouchMove = () => {
|
|
9820
|
+
movedRef.current = true;
|
|
9821
|
+
};
|
|
9822
|
+
doc.addEventListener(mappedTouchEvent, handleClickAway);
|
|
9823
|
+
doc.addEventListener("touchmove", handleTouchMove);
|
|
9824
|
+
return () => {
|
|
9825
|
+
doc.removeEventListener(mappedTouchEvent, handleClickAway);
|
|
9826
|
+
doc.removeEventListener("touchmove", handleTouchMove);
|
|
9827
|
+
};
|
|
9828
|
+
}, [handleClickAway, touchEvent]);
|
|
9829
|
+
if (mouseEvent !== false) {
|
|
9830
|
+
childrenProps[mouseEvent] = createHandleSynthetic(mouseEvent);
|
|
9831
|
+
}
|
|
9832
|
+
React173.useEffect(() => {
|
|
9833
|
+
if (mouseEvent === false) {
|
|
9834
|
+
return void 0;
|
|
9835
|
+
}
|
|
9836
|
+
const mappedMouseEvent = mapEventPropToEvent(mouseEvent);
|
|
9837
|
+
const doc = ownerDocument(nodeRef.current);
|
|
9838
|
+
doc.addEventListener(mappedMouseEvent, handleClickAway);
|
|
9839
|
+
return () => {
|
|
9840
|
+
doc.removeEventListener(mappedMouseEvent, handleClickAway);
|
|
9841
|
+
};
|
|
9842
|
+
}, [handleClickAway, mouseEvent]);
|
|
9843
|
+
return React173.cloneElement(children, childrenProps);
|
|
9844
|
+
}
|
|
9845
|
+
|
|
9208
9846
|
// lib/Link/Link.tsx
|
|
9209
9847
|
var import_react38 = __toESM(require("react"), 1);
|
|
9210
9848
|
var KNOWN_COLORS = ["primary", "secondary", "textPrimary", "textSecondary", "inherit"];
|
|
@@ -11561,10 +12199,10 @@ var AICommands = ({ editor, onAICommand }) => {
|
|
|
11561
12199
|
}
|
|
11562
12200
|
}, [onAICommand]);
|
|
11563
12201
|
const handleCommandSelect = (0, import_react51.useCallback)((command) => {
|
|
11564
|
-
const { text, range } = getSelectedText();
|
|
12202
|
+
const { text, range: range2 } = getSelectedText();
|
|
11565
12203
|
if (!text.trim()) return;
|
|
11566
12204
|
setOriginalText(text);
|
|
11567
|
-
setSelectionRange(
|
|
12205
|
+
setSelectionRange(range2);
|
|
11568
12206
|
setPromptText(command.prompt);
|
|
11569
12207
|
setPreviousResults([]);
|
|
11570
12208
|
setOpen(false);
|
|
@@ -12553,38 +13191,38 @@ var CustomTaskItem = import_extension_task_item.default.extend({
|
|
|
12553
13191
|
});
|
|
12554
13192
|
|
|
12555
13193
|
// lib/RufousTextEditor/icons.tsx
|
|
12556
|
-
var
|
|
13194
|
+
var React188 = __toESM(require("react"), 1);
|
|
12557
13195
|
var s = { width: 20, height: 20, viewBox: "0 0 24 24", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg" };
|
|
12558
|
-
var IconUndo = () => /* @__PURE__ */
|
|
12559
|
-
var IconRedo = () => /* @__PURE__ */
|
|
12560
|
-
var IconBold = () => /* @__PURE__ */
|
|
12561
|
-
var IconItalic = () => /* @__PURE__ */
|
|
12562
|
-
var IconLink = () => /* @__PURE__ */
|
|
12563
|
-
var IconStrike = () => /* @__PURE__ */
|
|
12564
|
-
var IconHeading = () => /* @__PURE__ */
|
|
12565
|
-
var IconFontSize = () => /* @__PURE__ */
|
|
12566
|
-
var IconColor = () => /* @__PURE__ */
|
|
12567
|
-
var IconFont = () => /* @__PURE__ */
|
|
12568
|
-
var IconLineHeight = () => /* @__PURE__ */
|
|
12569
|
-
var IconBulletList = () => /* @__PURE__ */
|
|
12570
|
-
var IconOrderedList = () => /* @__PURE__ */
|
|
12571
|
-
var IconAlignLeft = () => /* @__PURE__ */
|
|
12572
|
-
var IconAlignCenter = () => /* @__PURE__ */
|
|
12573
|
-
var IconAlignRight = () => /* @__PURE__ */
|
|
12574
|
-
var IconAlignJustify = () => /* @__PURE__ */
|
|
12575
|
-
var IconIndentIncrease = () => /* @__PURE__ */
|
|
12576
|
-
var IconIndentDecrease = () => /* @__PURE__ */
|
|
12577
|
-
var IconTable = () => /* @__PURE__ */
|
|
12578
|
-
var IconImage = () => /* @__PURE__ */
|
|
12579
|
-
var IconVideo = () => /* @__PURE__ */
|
|
12580
|
-
var IconCut = () => /* @__PURE__ */
|
|
12581
|
-
var IconCopy = () => /* @__PURE__ */
|
|
12582
|
-
var IconCode = () => /* @__PURE__ */
|
|
12583
|
-
var IconFullscreen = () => /* @__PURE__ */
|
|
12584
|
-
var IconTranslate = () => /* @__PURE__ */
|
|
12585
|
-
var IconTaskList = () => /* @__PURE__ */
|
|
12586
|
-
var IconCheck = () => /* @__PURE__ */
|
|
12587
|
-
var IconPaste = () => /* @__PURE__ */
|
|
13196
|
+
var IconUndo = () => /* @__PURE__ */ React188.createElement("svg", { ...s }, /* @__PURE__ */ React188.createElement("path", { d: "M12.5 8C9.85 8 7.45 9 5.6 10.6L2 7v9h9l-3.62-3.62C8.93 11.01 10.63 10.2 12.5 10.2c3.03 0 5.6 1.93 6.55 4.63l2.15-.72C19.93 10.68 16.5 8 12.5 8z" }));
|
|
13197
|
+
var IconRedo = () => /* @__PURE__ */ React188.createElement("svg", { ...s }, /* @__PURE__ */ React188.createElement("path", { d: "M18.4 10.6C16.55 9 14.15 8 11.5 8c-4 0-7.43 2.68-8.7 6.11l2.15.72c.95-2.7 3.52-4.63 6.55-4.63 1.87 0 3.57.81 5.12 2.18L13 16h9V7l-3.6 3.6z" }));
|
|
13198
|
+
var IconBold = () => /* @__PURE__ */ React188.createElement("svg", { ...s }, /* @__PURE__ */ React188.createElement("path", { d: "M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42zM10 6.5h3c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-3v-3zm3.5 9H10v-3h3.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5z" }));
|
|
13199
|
+
var IconItalic = () => /* @__PURE__ */ React188.createElement("svg", { ...s }, /* @__PURE__ */ React188.createElement("path", { d: "M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z" }));
|
|
13200
|
+
var IconLink = () => /* @__PURE__ */ React188.createElement("svg", { ...s }, /* @__PURE__ */ React188.createElement("path", { d: "M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z" }));
|
|
13201
|
+
var IconStrike = () => /* @__PURE__ */ React188.createElement("svg", { ...s }, /* @__PURE__ */ React188.createElement("path", { d: "M7.24 11h2.01c-.13-.42-.2-.88-.2-1.37 0-.89.32-1.58.96-2.08.64-.49 1.46-.74 2.47-.74.99 0 1.81.24 2.46.71.64.47.97 1.1.97 1.88h2.04c0-1.27-.55-2.33-1.64-3.18C15.21 5.37 13.83 4.95 12.2 4.95c-1.69 0-3.09.43-4.2 1.3C6.9 7.1 6.35 8.23 6.35 9.63c0 .47.06.92.18 1.37H3v2h18v-2H7.24zM12.2 17.05c-1.03 0-1.89-.28-2.56-.84-.67-.56-1-1.27-1-2.13h-2.1c0 1.36.58 2.5 1.75 3.44 1.16.93 2.56 1.4 4.19 1.4 1.69 0 3.09-.43 4.2-1.3 1.1-.86 1.65-1.99 1.65-3.38h-2.1c0 .85-.33 1.56-1 2.13-.66.56-1.52.84-2.56.84l-.47-.16z" }));
|
|
13202
|
+
var IconHeading = () => /* @__PURE__ */ React188.createElement("svg", { ...s }, /* @__PURE__ */ React188.createElement("path", { d: "M5 4v3h5.5v12h3V7H19V4z" }));
|
|
13203
|
+
var IconFontSize = () => /* @__PURE__ */ React188.createElement("svg", { ...s }, /* @__PURE__ */ React188.createElement("path", { d: "M9 4v3h5v12h2V7h5V4H9zm-6 8h3v7h2v-7h3v-2H3v2z" }));
|
|
13204
|
+
var IconColor = () => /* @__PURE__ */ React188.createElement("svg", { ...s }, /* @__PURE__ */ React188.createElement("path", { d: "M11 2L5.5 16h2.25l1.12-3h6.25l1.12 3h2.25L13 2h-2zm-1.38 9L12 4.67 14.38 11H9.62z" }), /* @__PURE__ */ React188.createElement("path", { d: "M3 20h18v3H3z", opacity: "0.8" }));
|
|
13205
|
+
var IconFont = () => /* @__PURE__ */ React188.createElement("svg", { ...s }, /* @__PURE__ */ React188.createElement("path", { d: "M9.93 13.5h4.14L12 7.98 9.93 13.5zM20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-4.05 16.5l-1.14-3H9.17l-1.12 3H5.96l5.11-13h1.86l5.11 13h-2.09z" }));
|
|
13206
|
+
var IconLineHeight = () => /* @__PURE__ */ React188.createElement("svg", { ...s }, /* @__PURE__ */ React188.createElement("path", { d: "M6 7h2.5L5 3.5 1.5 7H4v10H1.5L5 20.5 8.5 17H6V7zm16-3h-8v2h8V4zm0 4h-8v2h8V8zm0 4h-8v2h8v-2zm0 4h-8v2h8v-2z" }));
|
|
13207
|
+
var IconBulletList = () => /* @__PURE__ */ React188.createElement("svg", { ...s }, /* @__PURE__ */ React188.createElement("path", { d: "M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 4.5 4 4.5zm0 12c-.83 0-1.5.68-1.5 1.5s.68 1.5 1.5 1.5 1.5-.68 1.5-1.5-.67-1.5-1.5-1.5zM7 19h14v-2H7v2zm0-6h14v-2H7v2zm0-8v2h14V5H7z" }));
|
|
13208
|
+
var IconOrderedList = () => /* @__PURE__ */ React188.createElement("svg", { ...s }, /* @__PURE__ */ React188.createElement("path", { d: "M2 17h2v.5H3v1h1v.5H2v1h3v-4H2v1zm1-9h1V4H2v1h1v3zm-1 3h1.8L2 13.1v.9h3v-1H3.2L5 10.9V10H2v1zm5-6v2h14V5H7zm0 14h14v-2H7v2zm0-6h14v-2H7v2z" }));
|
|
13209
|
+
var IconAlignLeft = () => /* @__PURE__ */ React188.createElement("svg", { ...s }, /* @__PURE__ */ React188.createElement("path", { d: "M15 15H3v2h12v-2zm0-8H3v2h12V7zM3 13h18v-2H3v2zM3 21h18v-2H3v2zM3 3v2h18V3H3z" }));
|
|
13210
|
+
var IconAlignCenter = () => /* @__PURE__ */ React188.createElement("svg", { ...s }, /* @__PURE__ */ React188.createElement("path", { d: "M7 15v2h10v-2H7zm-4 6h18v-2H3v2zm0-8h18v-2H3v2zm4-6v2h10V7H7zM3 3v2h18V3H3z" }));
|
|
13211
|
+
var IconAlignRight = () => /* @__PURE__ */ React188.createElement("svg", { ...s }, /* @__PURE__ */ React188.createElement("path", { d: "M3 21h18v-2H3v2zm6-4h12v-2H9v2zm-6-4h18v-2H3v2zm6-4h12V7H9v2zM3 3v2h18V3H3z" }));
|
|
13212
|
+
var IconAlignJustify = () => /* @__PURE__ */ React188.createElement("svg", { ...s }, /* @__PURE__ */ React188.createElement("path", { d: "M3 21h18v-2H3v2zm0-4h18v-2H3v2zm0-4h18v-2H3v2zm0-4h18V7H3v2zM3 3v2h18V3H3z" }));
|
|
13213
|
+
var IconIndentIncrease = () => /* @__PURE__ */ React188.createElement("svg", { ...s }, /* @__PURE__ */ React188.createElement("path", { d: "M3 21h18v-2H3v2zM3 8v8l4-4-4-4zm8 9h10v-2H11v2zM3 3v2h18V3H3zm8 6h10V7H11v2zm0 4h10v-2H11v2z" }));
|
|
13214
|
+
var IconIndentDecrease = () => /* @__PURE__ */ React188.createElement("svg", { ...s }, /* @__PURE__ */ React188.createElement("path", { d: "M11 17h10v-2H11v2zm-8-5l4 4V8l-4 4zm0 9h18v-2H3v2zM3 3v2h18V3H3zm8 6h10V7H11v2zm0 4h10v-2H11v2z" }));
|
|
13215
|
+
var IconTable = () => /* @__PURE__ */ React188.createElement("svg", { ...s }, /* @__PURE__ */ React188.createElement("path", { d: "M20 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 19V5h4v14H5zm6 0V5h4v14h-4zm6 0V5h3v14h-3z", fillRule: "evenodd" }));
|
|
13216
|
+
var IconImage = () => /* @__PURE__ */ React188.createElement("svg", { ...s }, /* @__PURE__ */ React188.createElement("path", { d: "M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z" }));
|
|
13217
|
+
var IconVideo = () => /* @__PURE__ */ React188.createElement("svg", { ...s }, /* @__PURE__ */ React188.createElement("path", { d: "M4 6.47L5.76 10H20v8H4V6.47M22 4h-4l2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4z" }));
|
|
13218
|
+
var IconCut = () => /* @__PURE__ */ React188.createElement("svg", { ...s }, /* @__PURE__ */ React188.createElement("path", { d: "M9.64 7.64c.23-.5.36-1.05.36-1.64 0-2.21-1.79-4-4-4S2 3.79 2 6s1.79 4 4 4c.59 0 1.14-.13 1.64-.36L10 12l-2.36 2.36C7.14 14.13 6.59 14 6 14c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4c0-.59-.13-1.14-.36-1.64L12 14l7 7h3v-1L9.64 7.64zM6 8c-1.1 0-2-.89-2-2s.9-2 2-2 2 .89 2 2-.9 2-2 2zm0 12c-1.1 0-2-.89-2-2s.9-2 2-2 2 .89 2 2-.9 2-2 2zm6-7.5c-.28 0-.5-.22-.5-.5s.22-.5.5-.5.5.22.5.5-.22.5-.5.5zM19 3l-6 6 2 2 7-7V3h-3z" }));
|
|
13219
|
+
var IconCopy = () => /* @__PURE__ */ React188.createElement("svg", { ...s }, /* @__PURE__ */ React188.createElement("path", { d: "M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z" }));
|
|
13220
|
+
var IconCode = () => /* @__PURE__ */ React188.createElement("svg", { ...s }, /* @__PURE__ */ React188.createElement("path", { d: "M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z" }));
|
|
13221
|
+
var IconFullscreen = () => /* @__PURE__ */ React188.createElement("svg", { ...s }, /* @__PURE__ */ React188.createElement("path", { d: "M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z" }));
|
|
13222
|
+
var IconTranslate = () => /* @__PURE__ */ React188.createElement("svg", { ...s }, /* @__PURE__ */ React188.createElement("path", { d: "M12.87 15.07l-2.54-2.51.03-.03A17.52 17.52 0 0014.07 6H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2.02c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z" }));
|
|
13223
|
+
var IconTaskList = () => /* @__PURE__ */ React188.createElement("svg", { ...s }, /* @__PURE__ */ React188.createElement("path", { d: "M22 8c0-.55-.45-1-1-1h-7c-.55 0-1 .45-1 1s.45 1 1 1h7c.55 0 1-.45 1-1zm0 8c0-.55-.45-1-1-1h-7c-.55 0-1 .45-1 1s.45 1 1 1h7c.55 0 1-.45 1-1zM5.54 11L2 7.46l1.41-1.41 2.12 2.12 4.24-4.24 1.41 1.41L5.54 11zm0 8L2 15.46l1.41-1.41 2.12 2.12 4.24-4.24 1.41 1.41L5.54 19z" }));
|
|
13224
|
+
var IconCheck = () => /* @__PURE__ */ React188.createElement("svg", { ...s }, /* @__PURE__ */ React188.createElement("path", { d: "M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z" }));
|
|
13225
|
+
var IconPaste = () => /* @__PURE__ */ React188.createElement("svg", { ...s }, /* @__PURE__ */ React188.createElement("path", { d: "M19 2h-4.18C14.4.84 13.3 0 12 0c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm7 18H5V4h2v3h10V4h2v16z" }));
|
|
12588
13226
|
|
|
12589
13227
|
// lib/RufousTextEditor/Toolbar.tsx
|
|
12590
13228
|
var COLOR_PALETTE = [
|
|
@@ -15079,7 +15717,9 @@ function useCitiesSearch(debounceMs = 300) {
|
|
|
15079
15717
|
AccordionSummary,
|
|
15080
15718
|
ActivateUserIcon,
|
|
15081
15719
|
AddButton,
|
|
15720
|
+
AddIcon,
|
|
15082
15721
|
AddressLookup,
|
|
15722
|
+
Alert,
|
|
15083
15723
|
AlertTriangleIcon,
|
|
15084
15724
|
ArchivedIcon,
|
|
15085
15725
|
ArrowDownIcon,
|
|
@@ -15087,6 +15727,7 @@ function useCitiesSearch(debounceMs = 300) {
|
|
|
15087
15727
|
ArrowRightIcon,
|
|
15088
15728
|
ArrowUpIcon,
|
|
15089
15729
|
AssignGroupIcon,
|
|
15730
|
+
AttachFileIcon,
|
|
15090
15731
|
Autocomplete,
|
|
15091
15732
|
Avatar,
|
|
15092
15733
|
AvatarGroup,
|
|
@@ -15094,7 +15735,10 @@ function useCitiesSearch(debounceMs = 300) {
|
|
|
15094
15735
|
BookmarkIcon,
|
|
15095
15736
|
Box,
|
|
15096
15737
|
Breadcrumbs,
|
|
15738
|
+
BusinessIcon,
|
|
15097
15739
|
Button,
|
|
15740
|
+
ButtonGroup,
|
|
15741
|
+
CalendarIcon,
|
|
15098
15742
|
CameraIcon,
|
|
15099
15743
|
CancelButton,
|
|
15100
15744
|
Card,
|
|
@@ -15102,6 +15746,7 @@ function useCitiesSearch(debounceMs = 300) {
|
|
|
15102
15746
|
CardContent,
|
|
15103
15747
|
CardHeader,
|
|
15104
15748
|
CardMedia,
|
|
15749
|
+
ChatBubbleIcon,
|
|
15105
15750
|
CheckCircleIcon,
|
|
15106
15751
|
Checkbox,
|
|
15107
15752
|
ChevronDownIcon,
|
|
@@ -15111,9 +15756,12 @@ function useCitiesSearch(debounceMs = 300) {
|
|
|
15111
15756
|
Chip,
|
|
15112
15757
|
CircularProgress,
|
|
15113
15758
|
CircularProgressIcon,
|
|
15759
|
+
ClickAwayListener,
|
|
15114
15760
|
ClipboardIcon,
|
|
15115
15761
|
CloseIcon,
|
|
15116
15762
|
Collapse,
|
|
15763
|
+
ContactsIcon,
|
|
15764
|
+
Container,
|
|
15117
15765
|
CopyIcon,
|
|
15118
15766
|
CustomImage,
|
|
15119
15767
|
CustomTaskItem,
|
|
@@ -15130,17 +15778,20 @@ function useCitiesSearch(debounceMs = 300) {
|
|
|
15130
15778
|
DollarIcon,
|
|
15131
15779
|
DownloadIcon,
|
|
15132
15780
|
DownloadPdfIcon,
|
|
15781
|
+
DragIndicatorIcon,
|
|
15133
15782
|
Drawer,
|
|
15134
15783
|
EditChatIcon,
|
|
15135
15784
|
EditIcon,
|
|
15136
15785
|
EngagementIcon,
|
|
15137
15786
|
ExternalLinkIcon,
|
|
15138
15787
|
EyeOffIcon,
|
|
15788
|
+
FactoryIcon,
|
|
15139
15789
|
Fade,
|
|
15140
15790
|
FilterIcon,
|
|
15141
15791
|
FlagIcon,
|
|
15142
15792
|
FontFamily,
|
|
15143
15793
|
FontSize,
|
|
15794
|
+
FormGroup,
|
|
15144
15795
|
FunctionIcon,
|
|
15145
15796
|
GlobeIcon,
|
|
15146
15797
|
Grid,
|
|
@@ -15159,6 +15810,7 @@ function useCitiesSearch(debounceMs = 300) {
|
|
|
15159
15810
|
InfoIcon,
|
|
15160
15811
|
InvoiceIcon,
|
|
15161
15812
|
LineHeight,
|
|
15813
|
+
LinearProgress,
|
|
15162
15814
|
Link,
|
|
15163
15815
|
LinkIcon,
|
|
15164
15816
|
List,
|
|
@@ -15169,11 +15821,13 @@ function useCitiesSearch(debounceMs = 300) {
|
|
|
15169
15821
|
ListStyle,
|
|
15170
15822
|
ListSubheader,
|
|
15171
15823
|
ListViewIcon,
|
|
15824
|
+
LocationCityIcon,
|
|
15172
15825
|
LocationPinIcon,
|
|
15173
15826
|
LockIcon,
|
|
15174
15827
|
LogsIcon,
|
|
15175
15828
|
MAX_INDENT,
|
|
15176
15829
|
MailIcon,
|
|
15830
|
+
MemoryIcon,
|
|
15177
15831
|
Menu,
|
|
15178
15832
|
MenuDivider,
|
|
15179
15833
|
MenuIcon,
|
|
@@ -15185,11 +15839,17 @@ function useCitiesSearch(debounceMs = 300) {
|
|
|
15185
15839
|
MoreHorizontalIcon,
|
|
15186
15840
|
MoreVerticalIcon,
|
|
15187
15841
|
NineDotMenuIcon,
|
|
15842
|
+
NotesIcon,
|
|
15188
15843
|
NotificationIcon,
|
|
15844
|
+
OpenInFullIcon,
|
|
15845
|
+
Pagination,
|
|
15189
15846
|
Paper,
|
|
15190
15847
|
PaperclipIcon,
|
|
15848
|
+
PersonSearchIcon,
|
|
15191
15849
|
PhoneField,
|
|
15192
15850
|
PhoneIcon,
|
|
15851
|
+
PinIcon,
|
|
15852
|
+
PlaceIcon,
|
|
15193
15853
|
PlusIcon,
|
|
15194
15854
|
Popover,
|
|
15195
15855
|
Popper,
|
|
@@ -15208,6 +15868,7 @@ function useCitiesSearch(debounceMs = 300) {
|
|
|
15208
15868
|
RadioGroup,
|
|
15209
15869
|
Rating,
|
|
15210
15870
|
RefreshIcon,
|
|
15871
|
+
RemoveIcon,
|
|
15211
15872
|
ResendInviteIcon,
|
|
15212
15873
|
RolesIcon,
|
|
15213
15874
|
RufousAiIcon,
|
|
@@ -15235,6 +15896,7 @@ function useCitiesSearch(debounceMs = 300) {
|
|
|
15235
15896
|
SoftSkillsIcon,
|
|
15236
15897
|
Stack,
|
|
15237
15898
|
StandardButton,
|
|
15899
|
+
StarBorderIcon,
|
|
15238
15900
|
StarIcon,
|
|
15239
15901
|
Step,
|
|
15240
15902
|
StepButton,
|
|
@@ -15261,6 +15923,7 @@ function useCitiesSearch(debounceMs = 300) {
|
|
|
15261
15923
|
TagIcon,
|
|
15262
15924
|
TechnicalSkillsIcon,
|
|
15263
15925
|
TextField,
|
|
15926
|
+
TextFieldsIcon,
|
|
15264
15927
|
TickIcon,
|
|
15265
15928
|
TimerIcon,
|
|
15266
15929
|
ToggleButton,
|
|
@@ -15268,6 +15931,7 @@ function useCitiesSearch(debounceMs = 300) {
|
|
|
15268
15931
|
Tooltip,
|
|
15269
15932
|
TrashIcon,
|
|
15270
15933
|
TreeSelect,
|
|
15934
|
+
TrendingFlatIcon,
|
|
15271
15935
|
Typography,
|
|
15272
15936
|
UnArchivedIcon,
|
|
15273
15937
|
UnlockIcon,
|