@rufous/ui 0.1.85 → 0.1.86

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 CHANGED
@@ -6424,7 +6424,7 @@ var init_element = __esm({
6424
6424
  });
6425
6425
 
6426
6426
  // node_modules/jodit/esm/core/ui/button/button/button.js
6427
- function Button(jodit, stateOrText, text, variant) {
6427
+ function Button2(jodit, stateOrText, text, variant) {
6428
6428
  const button = new UIButton(jodit);
6429
6429
  button.state.tabIndex = jodit.o.allowTabNavigation ? 0 : -1;
6430
6430
  if (isString(stateOrText)) {
@@ -10303,7 +10303,7 @@ function Alert(msg, title, callback, className = "jodit-dialog_alert") {
10303
10303
  callback = title;
10304
10304
  title = void 0;
10305
10305
  }
10306
- const dialog = this instanceof Dialog ? this : new Dialog({ closeOnClickOverlay: true }), container = dialog.c.div(className), okButton = Button(dialog, "ok", "Ok");
10306
+ const dialog = this instanceof Dialog ? this : new Dialog({ closeOnClickOverlay: true }), container = dialog.c.div(className), okButton = Button2(dialog, "ok", "Ok");
10307
10307
  asArray(msg).forEach((oneMessage) => {
10308
10308
  container.appendChild(Dom.isNode(oneMessage) ? oneMessage : dialog.c.fromHTML(oneMessage));
10309
10309
  });
@@ -10341,8 +10341,8 @@ function Confirm(msg, title, callback) {
10341
10341
  dialog.close();
10342
10342
  }
10343
10343
  };
10344
- const $cancel = Button(dialog, "cancel", "Cancel");
10345
- const $ok = Button(dialog, "ok", "Yes");
10344
+ const $cancel = Button2(dialog, "cancel", "Cancel");
10345
+ const $ok = Button2(dialog, "ok", "Yes");
10346
10346
  $cancel.onAction(action(false));
10347
10347
  $ok.onAction(action(true));
10348
10348
  dialog.e.on($div, "submit", () => {
@@ -10364,7 +10364,7 @@ var init_confirm = __esm({
10364
10364
 
10365
10365
  // node_modules/jodit/esm/modules/dialog/prompt.js
10366
10366
  function Prompt(msg, title, callback, placeholder2, defaultValue) {
10367
- const dialog = this instanceof Dialog ? this : new Dialog({ closeOnClickOverlay: true }), cancelButton = Button(dialog, "cancel", "Cancel"), okButton = Button(dialog, "ok", "Ok"), form2 = dialog.c.element("form", {
10367
+ const dialog = this instanceof Dialog ? this : new Dialog({ closeOnClickOverlay: true }), cancelButton = Button2(dialog, "cancel", "Cancel"), okButton = Button2(dialog, "ok", "Ok"), form2 = dialog.c.element("form", {
10368
10368
  class: "jodit-dialog_prompt"
10369
10369
  }), inputElement = dialog.c.element("input", {
10370
10370
  autofocus: true,
@@ -10515,7 +10515,7 @@ var init_context_menu = __esm({
10515
10515
  if (!item) {
10516
10516
  return;
10517
10517
  }
10518
- const action = Button(this.jodit, item.icon || "empty", item.title);
10518
+ const action = Button2(this.jodit, item.icon || "empty", item.title);
10519
10519
  this.jodit && action.setParentView(this.jodit);
10520
10520
  action.setMod("context", "menu");
10521
10521
  action.onAction((e) => {
@@ -12018,9 +12018,9 @@ var init_image_editor = __esm({
12018
12018
  this.resizeUseRatio = o.resizeUseRatio;
12019
12019
  this.cropUseRatio = o.cropUseRatio;
12020
12020
  this.buttons = {
12021
- reset: Button(this.j, "update", "Reset"),
12022
- save: Button(this.j, "save", "Save"),
12023
- saveas: Button(this.j, {
12021
+ reset: Button2(this.j, "update", "Reset"),
12022
+ save: Button2(this.j, "save", "Save"),
12023
+ saveas: Button2(this.j, {
12024
12024
  icon: {
12025
12025
  name: "save"
12026
12026
  },
@@ -12508,7 +12508,7 @@ function stateListeners() {
12508
12508
  return;
12509
12509
  }
12510
12510
  if (options2.renameFolder && this.dataProvider.canI("FolderRename")) {
12511
- const btn = Button(this, {
12511
+ const btn = Button2(this, {
12512
12512
  icon: { name: "pencil" },
12513
12513
  name: "rename",
12514
12514
  tooltip: "Rename",
@@ -12518,7 +12518,7 @@ function stateListeners() {
12518
12518
  folderElm.appendChild(btn.container);
12519
12519
  }
12520
12520
  if (options2.deleteFolder && this.dataProvider.canI("FolderRemove")) {
12521
- const btn = Button(this, {
12521
+ const btn = Button2(this, {
12522
12522
  icon: { name: "cancel" },
12523
12523
  name: "remove",
12524
12524
  tooltip: "Delete",
@@ -12529,7 +12529,7 @@ function stateListeners() {
12529
12529
  }
12530
12530
  });
12531
12531
  if (options2.createNewFolder && this.dataProvider.canI("FolderCreate")) {
12532
- const button = Button(this, "plus", "Add folder", "secondary");
12532
+ const button = Button2(this, "plus", "Add folder", "secondary");
12533
12533
  button.onAction(() => {
12534
12534
  this.e.fire("addFolder", {
12535
12535
  path: normalizePath(source.path + "/"),
@@ -17623,7 +17623,7 @@ __export(modules_exports, {
17623
17623
  Alert: () => Alert,
17624
17624
  Async: () => Async,
17625
17625
  AsyncStorage: () => AsyncStorage,
17626
- Button: () => Button,
17626
+ Button: () => Button2,
17627
17627
  CommitStyle: () => CommitStyle,
17628
17628
  Component: () => Component,
17629
17629
  Confirm: () => Confirm,
@@ -25100,7 +25100,7 @@ var init_tabs = __esm({
25100
25100
  attr(tab2, {
25101
25101
  role: "tabpanel"
25102
25102
  });
25103
- const button = Button(jodit, icon || name, name);
25103
+ const button = Button2(jodit, icon || name, name);
25104
25104
  button.state.role = "tab";
25105
25105
  jodit.e.on(button.container, "pointerdown", (e) => e.preventDefault());
25106
25106
  if (!firstTab) {
@@ -28650,6 +28650,7 @@ __export(main_exports, {
28650
28650
  BaseDialog: () => BaseDialog_default,
28651
28651
  Box: () => Box,
28652
28652
  Breadcrumbs: () => Breadcrumbs,
28653
+ Button: () => Button,
28653
28654
  CameraIcon: () => cameraIcon_default,
28654
28655
  CancelButton: () => cancelButton_default,
28655
28656
  Card: () => Card,
@@ -28685,6 +28686,7 @@ __export(main_exports, {
28685
28686
  Grow: () => Grow,
28686
28687
  HelpOutlinedIcon: () => helpOutlinedIcon_default,
28687
28688
  HierarchyIcon: () => hierarchyIcon_default,
28689
+ IconButton: () => IconButton,
28688
28690
  ImageField: () => ImageField,
28689
28691
  InactiveGroupIcon: () => inactiveGroupIcon_default,
28690
28692
  IndustryIcon: () => industryIcon_default,
@@ -30035,8 +30037,97 @@ var StandardButton = ({ children, sx, className, ...props }) => {
30035
30037
  };
30036
30038
  var stdButton_default = StandardButton;
30037
30039
 
30038
- // lib/Dialogs/BaseDialog.tsx
30040
+ // lib/Buttons/Button.tsx
30039
30041
  var React63 = __toESM(require("react"), 1);
30042
+ var Button = React63.forwardRef(
30043
+ ({
30044
+ variant = "text",
30045
+ color: color2 = "primary",
30046
+ size: size3 = "medium",
30047
+ startIcon,
30048
+ endIcon,
30049
+ fullWidth = false,
30050
+ disabled = false,
30051
+ disableElevation = false,
30052
+ loading = false,
30053
+ loadingPosition = "center",
30054
+ component: component2,
30055
+ children,
30056
+ className,
30057
+ style,
30058
+ sx,
30059
+ href,
30060
+ type = "button",
30061
+ ...rest
30062
+ }, ref) => {
30063
+ const sxClass = useSx(sx);
30064
+ const classes = [
30065
+ "rf-btn",
30066
+ `rf-btn--${variant}`,
30067
+ `rf-btn--${color2}`,
30068
+ `rf-btn--${size3}`,
30069
+ fullWidth && "rf-btn--full-width",
30070
+ disableElevation && "rf-btn--no-elevation",
30071
+ disabled && "rf-btn--disabled",
30072
+ loading && "rf-btn--loading",
30073
+ sxClass,
30074
+ className
30075
+ ].filter(Boolean).join(" ");
30076
+ const Tag = component2 || (href ? "a" : "button");
30077
+ const tagProps = { ...rest };
30078
+ if (Tag === "a") {
30079
+ tagProps.href = disabled ? void 0 : href;
30080
+ } else {
30081
+ tagProps.type = type;
30082
+ tagProps.disabled = disabled || loading;
30083
+ }
30084
+ return /* @__PURE__ */ React63.createElement(Tag, { ref, className: classes, style, ...tagProps }, loading && loadingPosition === "start" && /* @__PURE__ */ React63.createElement("span", { className: "rf-btn__loading-indicator rf-btn__loading--start" }, /* @__PURE__ */ React63.createElement(circularProgress_default, { size: size3 === "small" ? 14 : size3 === "large" ? 22 : 18 })), startIcon && !loading && /* @__PURE__ */ React63.createElement("span", { className: "rf-btn__start-icon" }, startIcon), loading && loadingPosition === "center" ? /* @__PURE__ */ React63.createElement("span", { className: "rf-btn__loading-indicator" }, /* @__PURE__ */ React63.createElement(circularProgress_default, { size: size3 === "small" ? 14 : size3 === "large" ? 22 : 18 })) : /* @__PURE__ */ React63.createElement("span", { className: "rf-btn__label" }, children), endIcon && !loading && /* @__PURE__ */ React63.createElement("span", { className: "rf-btn__end-icon" }, endIcon), loading && loadingPosition === "end" && /* @__PURE__ */ React63.createElement("span", { className: "rf-btn__loading-indicator rf-btn__loading--end" }, /* @__PURE__ */ React63.createElement(circularProgress_default, { size: size3 === "small" ? 14 : size3 === "large" ? 22 : 18 })));
30085
+ }
30086
+ );
30087
+ Button.displayName = "Button";
30088
+
30089
+ // lib/Buttons/IconButton.tsx
30090
+ var React64 = __toESM(require("react"), 1);
30091
+ var IconButton = React64.forwardRef(
30092
+ ({
30093
+ color: color2 = "default",
30094
+ size: size3 = "medium",
30095
+ edge = false,
30096
+ disabled = false,
30097
+ component: component2,
30098
+ children,
30099
+ className,
30100
+ style,
30101
+ sx,
30102
+ href,
30103
+ type = "button",
30104
+ ...rest
30105
+ }, ref) => {
30106
+ const sxClass = useSx(sx);
30107
+ const classes = [
30108
+ "rf-icon-btn",
30109
+ `rf-icon-btn--${color2}`,
30110
+ `rf-icon-btn--${size3}`,
30111
+ edge && `rf-icon-btn--edge-${edge}`,
30112
+ disabled && "rf-icon-btn--disabled",
30113
+ sxClass,
30114
+ className
30115
+ ].filter(Boolean).join(" ");
30116
+ const Tag = component2 || (href ? "a" : "button");
30117
+ const tagProps = { ...rest };
30118
+ if (Tag === "a") {
30119
+ tagProps.href = disabled ? void 0 : href;
30120
+ } else {
30121
+ tagProps.type = type;
30122
+ tagProps.disabled = disabled;
30123
+ }
30124
+ return /* @__PURE__ */ React64.createElement(Tag, { ref, className: classes, style, ...tagProps }, children);
30125
+ }
30126
+ );
30127
+ IconButton.displayName = "IconButton";
30128
+
30129
+ // lib/Dialogs/BaseDialog.tsx
30130
+ var React65 = __toESM(require("react"), 1);
30040
30131
  var import_react14 = require("react");
30041
30132
  var import_lucide_react = require("lucide-react");
30042
30133
  var BaseDialog = ({
@@ -30071,7 +30162,7 @@ var BaseDialog = ({
30071
30162
  const sxClass = useSx(sx);
30072
30163
  if (!open) return null;
30073
30164
  const isButtonLoading = isSubmitting || loading;
30074
- const renderButtons = () => /* @__PURE__ */ React63.createElement("div", { className: "dialog-footer", style: { justifyContent: buttonAlign } }, showCancelButton && /* @__PURE__ */ React63.createElement(
30165
+ const renderButtons = () => /* @__PURE__ */ React65.createElement("div", { className: "dialog-footer", style: { justifyContent: buttonAlign } }, showCancelButton && /* @__PURE__ */ React65.createElement(
30075
30166
  "button",
30076
30167
  {
30077
30168
  className: "btn-cancel",
@@ -30079,7 +30170,7 @@ var BaseDialog = ({
30079
30170
  disabled: isLoading || isButtonLoading
30080
30171
  },
30081
30172
  cancelText
30082
- ), onConfirm && /* @__PURE__ */ React63.createElement(
30173
+ ), onConfirm && /* @__PURE__ */ React65.createElement(
30083
30174
  "button",
30084
30175
  {
30085
30176
  className: "btn-confirm",
@@ -30091,10 +30182,10 @@ var BaseDialog = ({
30091
30182
  setIsSubmitting(false);
30092
30183
  }
30093
30184
  },
30094
- /* @__PURE__ */ React63.createElement("span", { style: { visibility: isButtonLoading ? "hidden" : "visible" } }, confirmText),
30095
- isButtonLoading && /* @__PURE__ */ React63.createElement("span", { className: "spinner", style: { position: "absolute" } })
30185
+ /* @__PURE__ */ React65.createElement("span", { style: { visibility: isButtonLoading ? "hidden" : "visible" } }, confirmText),
30186
+ isButtonLoading && /* @__PURE__ */ React65.createElement("span", { className: "spinner", style: { position: "absolute" } })
30096
30187
  ));
30097
- return /* @__PURE__ */ React63.createElement("div", { className: `dialog-overlay ${size3 === "fullScreen" ? "overlay-fullscreen" : ""}` }, /* @__PURE__ */ React63.createElement(
30188
+ return /* @__PURE__ */ React65.createElement("div", { className: `dialog-overlay ${size3 === "fullScreen" ? "overlay-fullscreen" : ""}` }, /* @__PURE__ */ React65.createElement(
30098
30189
  "div",
30099
30190
  {
30100
30191
  className: ["dialog-container", size3 ? `size-${size3}` : "", sxClass, className].filter(Boolean).join(" "),
@@ -30103,15 +30194,15 @@ var BaseDialog = ({
30103
30194
  minHeight
30104
30195
  }
30105
30196
  },
30106
- /* @__PURE__ */ React63.createElement("div", { className: "dialog-title" }, /* @__PURE__ */ React63.createElement("h2", null, formatTitle ? title?.charAt(0).toUpperCase() + title?.slice(1) : title), showCloseButton && /* @__PURE__ */ React63.createElement("button", { className: "btn-close", onClick: onClose }, /* @__PURE__ */ React63.createElement(
30197
+ /* @__PURE__ */ React65.createElement("div", { className: "dialog-title" }, /* @__PURE__ */ React65.createElement("h2", null, formatTitle ? title?.charAt(0).toUpperCase() + title?.slice(1) : title), showCloseButton && /* @__PURE__ */ React65.createElement("button", { className: "btn-close", onClick: onClose }, /* @__PURE__ */ React65.createElement(
30107
30198
  import_lucide_react.X,
30108
30199
  {
30109
30200
  size: 18,
30110
30201
  color: themeConfig?.icon || "#666666"
30111
30202
  }
30112
30203
  ))),
30113
- /* @__PURE__ */ React63.createElement("div", { className: "dialog-divider" }),
30114
- /* @__PURE__ */ React63.createElement(
30204
+ /* @__PURE__ */ React65.createElement("div", { className: "dialog-divider" }),
30205
+ /* @__PURE__ */ React65.createElement(
30115
30206
  "div",
30116
30207
  {
30117
30208
  className: "dialog-body",
@@ -30122,7 +30213,7 @@ var BaseDialog = ({
30122
30213
  },
30123
30214
  children
30124
30215
  ),
30125
- /* @__PURE__ */ React63.createElement("div", { className: "dialog-divider" }),
30216
+ /* @__PURE__ */ React65.createElement("div", { className: "dialog-divider" }),
30126
30217
  customButtons || renderButtons()
30127
30218
  ));
30128
30219
  };
@@ -32362,13 +32453,13 @@ var Autocomplete = import_react21.default.forwardRef(AutocompleteInner);
32362
32453
  Autocomplete.displayName = "Autocomplete";
32363
32454
 
32364
32455
  // lib/Progress/RufousLogoLoader.tsx
32365
- var React71 = __toESM(require("react"), 1);
32456
+ var React73 = __toESM(require("react"), 1);
32366
32457
  var _uid = 0;
32367
32458
  var RufousLogoLoader = ({ size: size3 = 80, sx, className }) => {
32368
- const clipId = React71.useRef(`rll-${++_uid}`).current;
32459
+ const clipId = React73.useRef(`rll-${++_uid}`).current;
32369
32460
  const height = size3 * (38.795 / 54.585);
32370
32461
  const sxClass = useSx(sx);
32371
- return /* @__PURE__ */ React71.createElement("div", { className: ["rufous-logo-loader", sxClass, className].filter(Boolean).join(" "), style: { width: size3, height } }, /* @__PURE__ */ React71.createElement(
32462
+ return /* @__PURE__ */ React73.createElement("div", { className: ["rufous-logo-loader", sxClass, className].filter(Boolean).join(" "), style: { width: size3, height } }, /* @__PURE__ */ React73.createElement(
32372
32463
  "svg",
32373
32464
  {
32374
32465
  xmlns: "http://www.w3.org/2000/svg",
@@ -32377,14 +32468,14 @@ var RufousLogoLoader = ({ size: size3 = 80, sx, className }) => {
32377
32468
  height,
32378
32469
  className: "rufous-logo-loader__svg"
32379
32470
  },
32380
- /* @__PURE__ */ React71.createElement("defs", null, /* @__PURE__ */ React71.createElement("clipPath", { id: clipId }, /* @__PURE__ */ React71.createElement(
32471
+ /* @__PURE__ */ React73.createElement("defs", null, /* @__PURE__ */ React73.createElement("clipPath", { id: clipId }, /* @__PURE__ */ React73.createElement(
32381
32472
  "path",
32382
32473
  {
32383
32474
  transform: "translate(2208 18.205)",
32384
32475
  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"
32385
32476
  }
32386
32477
  ))),
32387
- /* @__PURE__ */ React71.createElement("g", { transform: "translate(-123.275 -24)" }, /* @__PURE__ */ React71.createElement("g", { transform: "translate(-2084.725 5.795)", clipPath: `url(#${clipId})` }, /* @__PURE__ */ React71.createElement("rect", { className: "rufous-ls rufous-ls-1", width: "40", height: "6", transform: "translate(2208 58) rotate(-90)", fill: "#d07f6f" }), /* @__PURE__ */ React71.createElement("rect", { className: "rufous-ls rufous-ls-2", width: "40", height: "6", transform: "translate(2214 58) rotate(-90)", fill: "#c66958" }), /* @__PURE__ */ React71.createElement("rect", { className: "rufous-ls rufous-ls-3", width: "40", height: "7", transform: "translate(2220 58) rotate(-90)", fill: "#bb5341" }), /* @__PURE__ */ React71.createElement("rect", { className: "rufous-ls rufous-ls-4", width: "40", height: "6", transform: "translate(2227 58) rotate(-90)", fill: "#b03a28" }), /* @__PURE__ */ React71.createElement("rect", { className: "rufous-ls rufous-ls-5", width: "40", height: "6", transform: "translate(2233 58) rotate(-90)", fill: "#a41b06" }), /* @__PURE__ */ React71.createElement("rect", { className: "rufous-ls rufous-ls-6", width: "40", height: "6", transform: "translate(2239 58) rotate(-90)", fill: "#8e1604" }), /* @__PURE__ */ React71.createElement("rect", { className: "rufous-ls rufous-ls-7", width: "40", height: "6", transform: "translate(2245 58) rotate(-90)", fill: "#791103" }), /* @__PURE__ */ React71.createElement("rect", { className: "rufous-ls rufous-ls-8", width: "40", height: "5", transform: "translate(2251 58) rotate(-90)", fill: "#640c02" }), /* @__PURE__ */ React71.createElement("rect", { className: "rufous-ls rufous-ls-9", width: "40", height: "7", transform: "translate(2256 58) rotate(-90)", fill: "#500801" })))
32478
+ /* @__PURE__ */ React73.createElement("g", { transform: "translate(-123.275 -24)" }, /* @__PURE__ */ React73.createElement("g", { transform: "translate(-2084.725 5.795)", clipPath: `url(#${clipId})` }, /* @__PURE__ */ React73.createElement("rect", { className: "rufous-ls rufous-ls-1", width: "40", height: "6", transform: "translate(2208 58) rotate(-90)", fill: "#d07f6f" }), /* @__PURE__ */ React73.createElement("rect", { className: "rufous-ls rufous-ls-2", width: "40", height: "6", transform: "translate(2214 58) rotate(-90)", fill: "#c66958" }), /* @__PURE__ */ React73.createElement("rect", { className: "rufous-ls rufous-ls-3", width: "40", height: "7", transform: "translate(2220 58) rotate(-90)", fill: "#bb5341" }), /* @__PURE__ */ React73.createElement("rect", { className: "rufous-ls rufous-ls-4", width: "40", height: "6", transform: "translate(2227 58) rotate(-90)", fill: "#b03a28" }), /* @__PURE__ */ React73.createElement("rect", { className: "rufous-ls rufous-ls-5", width: "40", height: "6", transform: "translate(2233 58) rotate(-90)", fill: "#a41b06" }), /* @__PURE__ */ React73.createElement("rect", { className: "rufous-ls rufous-ls-6", width: "40", height: "6", transform: "translate(2239 58) rotate(-90)", fill: "#8e1604" }), /* @__PURE__ */ React73.createElement("rect", { className: "rufous-ls rufous-ls-7", width: "40", height: "6", transform: "translate(2245 58) rotate(-90)", fill: "#791103" }), /* @__PURE__ */ React73.createElement("rect", { className: "rufous-ls rufous-ls-8", width: "40", height: "5", transform: "translate(2251 58) rotate(-90)", fill: "#640c02" }), /* @__PURE__ */ React73.createElement("rect", { className: "rufous-ls rufous-ls-9", width: "40", height: "7", transform: "translate(2256 58) rotate(-90)", fill: "#500801" })))
32388
32479
  ));
32389
32480
  };
32390
32481
 
@@ -35069,8 +35160,8 @@ var Tooltip = ({
35069
35160
  Tooltip.displayName = "Tooltip";
35070
35161
 
35071
35162
  // lib/Box/Box.tsx
35072
- var React87 = __toESM(require("react"), 1);
35073
- var Box = React87.forwardRef(
35163
+ var React89 = __toESM(require("react"), 1);
35164
+ var Box = React89.forwardRef(
35074
35165
  ({
35075
35166
  component: component2 = "div",
35076
35167
  children,
@@ -35137,14 +35228,14 @@ var Box = React87.forwardRef(
35137
35228
  };
35138
35229
  const classes = ["rf-box", sxClass, className].filter(Boolean).join(" ");
35139
35230
  const Tag = component2;
35140
- return /* @__PURE__ */ React87.createElement(Tag, { ref, className: classes, style: inlineStyle, ...rest }, children);
35231
+ return /* @__PURE__ */ React89.createElement(Tag, { ref, className: classes, style: inlineStyle, ...rest }, children);
35141
35232
  }
35142
35233
  );
35143
35234
  Box.displayName = "Box";
35144
35235
 
35145
35236
  // lib/Stack/Stack.tsx
35146
- var React88 = __toESM(require("react"), 1);
35147
- var Stack2 = React88.forwardRef(
35237
+ var React90 = __toESM(require("react"), 1);
35238
+ var Stack2 = React90.forwardRef(
35148
35239
  ({
35149
35240
  direction = "column",
35150
35241
  spacing,
@@ -35177,14 +35268,14 @@ var Stack2 = React88.forwardRef(
35177
35268
  const classes = ["rf-stack", sxClass, className].filter(Boolean).join(" ");
35178
35269
  let content;
35179
35270
  if (divider) {
35180
- const childArray = React88.Children.toArray(children).filter(
35271
+ const childArray = React90.Children.toArray(children).filter(
35181
35272
  (child) => child !== null && child !== void 0
35182
35273
  );
35183
35274
  content = childArray.reduce((acc, child, idx) => {
35184
35275
  acc.push(child);
35185
35276
  if (idx < childArray.length - 1) {
35186
35277
  acc.push(
35187
- /* @__PURE__ */ React88.createElement("div", { key: `divider-${idx}`, className: "rf-stack-divider" }, divider)
35278
+ /* @__PURE__ */ React90.createElement("div", { key: `divider-${idx}`, className: "rf-stack-divider" }, divider)
35188
35279
  );
35189
35280
  }
35190
35281
  return acc;
@@ -35193,13 +35284,13 @@ var Stack2 = React88.forwardRef(
35193
35284
  content = children;
35194
35285
  }
35195
35286
  const Tag = component2;
35196
- return /* @__PURE__ */ React88.createElement(Tag, { ref, className: classes, style: inlineStyle, ...rest }, content);
35287
+ return /* @__PURE__ */ React90.createElement(Tag, { ref, className: classes, style: inlineStyle, ...rest }, content);
35197
35288
  }
35198
35289
  );
35199
35290
  Stack2.displayName = "Stack";
35200
35291
 
35201
35292
  // lib/Grid/Grid.tsx
35202
- var React89 = __toESM(require("react"), 1);
35293
+ var React91 = __toESM(require("react"), 1);
35203
35294
  function getBreakpointClass(bp, val2) {
35204
35295
  if (val2 === void 0) return "";
35205
35296
  if (val2 === true) return `rf-grid-${bp}-12`;
@@ -35212,7 +35303,7 @@ function getSpacingGap(spacing) {
35212
35303
  const base = spacing.xs ?? spacing.sm ?? spacing.md ?? 0;
35213
35304
  return `${base * 8}px`;
35214
35305
  }
35215
- var Grid = React89.forwardRef(
35306
+ var Grid = React91.forwardRef(
35216
35307
  ({
35217
35308
  container = false,
35218
35309
  item = false,
@@ -35262,14 +35353,14 @@ var Grid = React89.forwardRef(
35262
35353
  className
35263
35354
  ].filter(Boolean).join(" ");
35264
35355
  const Tag = component2;
35265
- return /* @__PURE__ */ React89.createElement(Tag, { ref, className: classes, style: inlineStyle, ...rest }, children);
35356
+ return /* @__PURE__ */ React91.createElement(Tag, { ref, className: classes, style: inlineStyle, ...rest }, children);
35266
35357
  }
35267
35358
  );
35268
35359
  Grid.displayName = "Grid";
35269
35360
 
35270
35361
  // lib/Paper/Paper.tsx
35271
- var React90 = __toESM(require("react"), 1);
35272
- var Paper = React90.forwardRef(
35362
+ var React92 = __toESM(require("react"), 1);
35363
+ var Paper = React92.forwardRef(
35273
35364
  ({
35274
35365
  elevation = 1,
35275
35366
  square = false,
@@ -35291,14 +35382,14 @@ var Paper = React90.forwardRef(
35291
35382
  className
35292
35383
  ].filter(Boolean).join(" ");
35293
35384
  const Tag = component2;
35294
- return /* @__PURE__ */ React90.createElement(Tag, { ref, className: classes, style, ...rest }, children);
35385
+ return /* @__PURE__ */ React92.createElement(Tag, { ref, className: classes, style, ...rest }, children);
35295
35386
  }
35296
35387
  );
35297
35388
  Paper.displayName = "Paper";
35298
35389
 
35299
35390
  // lib/Card/Card.tsx
35300
- var React91 = __toESM(require("react"), 1);
35301
- var Card = React91.forwardRef(
35391
+ var React93 = __toESM(require("react"), 1);
35392
+ var Card = React93.forwardRef(
35302
35393
  ({
35303
35394
  elevation = 1,
35304
35395
  variant = "elevation",
@@ -35317,33 +35408,33 @@ var Card = React91.forwardRef(
35317
35408
  sxClass,
35318
35409
  className
35319
35410
  ].filter(Boolean).join(" ");
35320
- return /* @__PURE__ */ React91.createElement("div", { ref, className: classes, style, ...rest }, children);
35411
+ return /* @__PURE__ */ React93.createElement("div", { ref, className: classes, style, ...rest }, children);
35321
35412
  }
35322
35413
  );
35323
35414
  Card.displayName = "Card";
35324
- var CardContent = React91.forwardRef(
35415
+ var CardContent = React93.forwardRef(
35325
35416
  ({ children, className, style, sx, ...rest }, ref) => {
35326
35417
  const sxClass = useSx(sx);
35327
35418
  const classes = ["rf-card-content", sxClass, className].filter(Boolean).join(" ");
35328
- return /* @__PURE__ */ React91.createElement("div", { ref, className: classes, style, ...rest }, children);
35419
+ return /* @__PURE__ */ React93.createElement("div", { ref, className: classes, style, ...rest }, children);
35329
35420
  }
35330
35421
  );
35331
35422
  CardContent.displayName = "CardContent";
35332
- var CardHeader = React91.forwardRef(
35423
+ var CardHeader = React93.forwardRef(
35333
35424
  ({ title, subheader, avatar, action, className, style, sx, ...rest }, ref) => {
35334
35425
  const sxClass = useSx(sx);
35335
35426
  const classes = ["rf-card-header", sxClass, className].filter(Boolean).join(" ");
35336
- return /* @__PURE__ */ React91.createElement("div", { ref, className: classes, style, ...rest }, avatar && /* @__PURE__ */ React91.createElement("div", { className: "rf-card-header-avatar" }, avatar), /* @__PURE__ */ React91.createElement("div", { className: "rf-card-header-content" }, /* @__PURE__ */ React91.createElement("div", { className: "rf-card-header-title" }, title), subheader && /* @__PURE__ */ React91.createElement("div", { className: "rf-card-header-subheader" }, subheader)), action && /* @__PURE__ */ React91.createElement("div", { className: "rf-card-header-action" }, action));
35427
+ return /* @__PURE__ */ React93.createElement("div", { ref, className: classes, style, ...rest }, avatar && /* @__PURE__ */ React93.createElement("div", { className: "rf-card-header-avatar" }, avatar), /* @__PURE__ */ React93.createElement("div", { className: "rf-card-header-content" }, /* @__PURE__ */ React93.createElement("div", { className: "rf-card-header-title" }, title), subheader && /* @__PURE__ */ React93.createElement("div", { className: "rf-card-header-subheader" }, subheader)), action && /* @__PURE__ */ React93.createElement("div", { className: "rf-card-header-action" }, action));
35337
35428
  }
35338
35429
  );
35339
35430
  CardHeader.displayName = "CardHeader";
35340
- var CardMedia = React91.forwardRef(
35431
+ var CardMedia = React93.forwardRef(
35341
35432
  ({ component: component2 = "div", image: image2, src, height, alt, className, style, sx, ...rest }, ref) => {
35342
35433
  const sxClass = useSx(sx);
35343
35434
  const classes = ["rf-card-media", sxClass, className].filter(Boolean).join(" ");
35344
35435
  const computedHeight = height !== void 0 ? typeof height === "number" ? `${height}px` : height : "200px";
35345
35436
  if (component2 === "img") {
35346
- return /* @__PURE__ */ React91.createElement(
35437
+ return /* @__PURE__ */ React93.createElement(
35347
35438
  "img",
35348
35439
  {
35349
35440
  ref,
@@ -35356,7 +35447,7 @@ var CardMedia = React91.forwardRef(
35356
35447
  );
35357
35448
  }
35358
35449
  if (component2 === "video") {
35359
- return /* @__PURE__ */ React91.createElement(
35450
+ return /* @__PURE__ */ React93.createElement(
35360
35451
  "video",
35361
35452
  {
35362
35453
  ref,
@@ -35372,7 +35463,7 @@ var CardMedia = React91.forwardRef(
35372
35463
  ...image2 ? { backgroundImage: `url(${image2})` } : {},
35373
35464
  ...style
35374
35465
  };
35375
- return /* @__PURE__ */ React91.createElement(
35466
+ return /* @__PURE__ */ React93.createElement(
35376
35467
  "div",
35377
35468
  {
35378
35469
  ref,
@@ -35384,7 +35475,7 @@ var CardMedia = React91.forwardRef(
35384
35475
  }
35385
35476
  );
35386
35477
  CardMedia.displayName = "CardMedia";
35387
- var CardActions = React91.forwardRef(
35478
+ var CardActions = React93.forwardRef(
35388
35479
  ({ disableSpacing = false, children, className, style, sx, ...rest }, ref) => {
35389
35480
  const sxClass = useSx(sx);
35390
35481
  const classes = [
@@ -35393,13 +35484,13 @@ var CardActions = React91.forwardRef(
35393
35484
  sxClass,
35394
35485
  className
35395
35486
  ].filter(Boolean).join(" ");
35396
- return /* @__PURE__ */ React91.createElement("div", { ref, className: classes, style, ...rest }, children);
35487
+ return /* @__PURE__ */ React93.createElement("div", { ref, className: classes, style, ...rest }, children);
35397
35488
  }
35398
35489
  );
35399
35490
  CardActions.displayName = "CardActions";
35400
35491
 
35401
35492
  // lib/Accordion/Accordion.tsx
35402
- var React92 = __toESM(require("react"), 1);
35493
+ var React94 = __toESM(require("react"), 1);
35403
35494
  var import_react37 = require("react");
35404
35495
  var AccordionContext = (0, import_react37.createContext)({
35405
35496
  expanded: false,
@@ -35407,7 +35498,7 @@ var AccordionContext = (0, import_react37.createContext)({
35407
35498
  toggle: () => {
35408
35499
  }
35409
35500
  });
35410
- var Accordion = React92.forwardRef(
35501
+ var Accordion = React94.forwardRef(
35411
35502
  ({
35412
35503
  expanded: expandedProp,
35413
35504
  defaultExpanded = false,
@@ -35442,11 +35533,11 @@ var Accordion = React92.forwardRef(
35442
35533
  sxClass,
35443
35534
  className
35444
35535
  ].filter(Boolean).join(" ");
35445
- return /* @__PURE__ */ React92.createElement(AccordionContext.Provider, { value: { expanded, disabled, toggle } }, /* @__PURE__ */ React92.createElement("div", { ref, className: classes, style, ...rest }, children));
35536
+ return /* @__PURE__ */ React94.createElement(AccordionContext.Provider, { value: { expanded, disabled, toggle } }, /* @__PURE__ */ React94.createElement("div", { ref, className: classes, style, ...rest }, children));
35446
35537
  }
35447
35538
  );
35448
35539
  Accordion.displayName = "Accordion";
35449
- var ChevronIcon = () => /* @__PURE__ */ React92.createElement(
35540
+ var ChevronIcon = () => /* @__PURE__ */ React94.createElement(
35450
35541
  "svg",
35451
35542
  {
35452
35543
  xmlns: "http://www.w3.org/2000/svg",
@@ -35460,9 +35551,9 @@ var ChevronIcon = () => /* @__PURE__ */ React92.createElement(
35460
35551
  strokeLinejoin: "round",
35461
35552
  "aria-hidden": "true"
35462
35553
  },
35463
- /* @__PURE__ */ React92.createElement("polyline", { points: "6 9 12 15 18 9" })
35554
+ /* @__PURE__ */ React94.createElement("polyline", { points: "6 9 12 15 18 9" })
35464
35555
  );
35465
- var AccordionSummary = React92.forwardRef(
35556
+ var AccordionSummary = React94.forwardRef(
35466
35557
  ({ expandIcon, children, sx, className, style, ...rest }, ref) => {
35467
35558
  const sxClass = useSx(sx);
35468
35559
  const { expanded, toggle, disabled } = (0, import_react37.useContext)(AccordionContext);
@@ -35476,7 +35567,7 @@ var AccordionSummary = React92.forwardRef(
35476
35567
  "rf-accordion-summary-icon",
35477
35568
  expanded ? "rf-accordion-icon-expanded" : ""
35478
35569
  ].filter(Boolean).join(" ");
35479
- return /* @__PURE__ */ React92.createElement(
35570
+ return /* @__PURE__ */ React94.createElement(
35480
35571
  "button",
35481
35572
  {
35482
35573
  ref,
@@ -35488,13 +35579,13 @@ var AccordionSummary = React92.forwardRef(
35488
35579
  "aria-expanded": expanded,
35489
35580
  ...rest
35490
35581
  },
35491
- /* @__PURE__ */ React92.createElement("span", { className: "rf-accordion-summary-content" }, children),
35492
- /* @__PURE__ */ React92.createElement("span", { className: iconClasses }, expandIcon !== void 0 ? expandIcon : /* @__PURE__ */ React92.createElement(ChevronIcon, null))
35582
+ /* @__PURE__ */ React94.createElement("span", { className: "rf-accordion-summary-content" }, children),
35583
+ /* @__PURE__ */ React94.createElement("span", { className: iconClasses }, expandIcon !== void 0 ? expandIcon : /* @__PURE__ */ React94.createElement(ChevronIcon, null))
35493
35584
  );
35494
35585
  }
35495
35586
  );
35496
35587
  AccordionSummary.displayName = "AccordionSummary";
35497
- var AccordionDetails = React92.forwardRef(
35588
+ var AccordionDetails = React94.forwardRef(
35498
35589
  ({ children, sx, className, style, ...rest }, ref) => {
35499
35590
  const sxClass = useSx(sx);
35500
35591
  const { expanded } = (0, import_react37.useContext)(AccordionContext);
@@ -35507,7 +35598,7 @@ var AccordionDetails = React92.forwardRef(
35507
35598
  sxClass,
35508
35599
  className
35509
35600
  ].filter(Boolean).join(" ");
35510
- return /* @__PURE__ */ React92.createElement("div", { className: wrapperClasses }, /* @__PURE__ */ React92.createElement("div", { className: "rf-accordion-details-inner" }, /* @__PURE__ */ React92.createElement("div", { ref, className: detailsClasses, style, ...rest }, children)));
35601
+ return /* @__PURE__ */ React94.createElement("div", { className: wrapperClasses }, /* @__PURE__ */ React94.createElement("div", { className: "rf-accordion-details-inner" }, /* @__PURE__ */ React94.createElement("div", { ref, className: detailsClasses, style, ...rest }, children)));
35511
35602
  }
35512
35603
  );
35513
35604
  AccordionDetails.displayName = "AccordionDetails";
@@ -36990,6 +37081,7 @@ ImageField.displayName = "ImageField";
36990
37081
  BaseDialog,
36991
37082
  Box,
36992
37083
  Breadcrumbs,
37084
+ Button,
36993
37085
  CameraIcon,
36994
37086
  CancelButton,
36995
37087
  Card,
@@ -37025,6 +37117,7 @@ ImageField.displayName = "ImageField";
37025
37117
  Grow,
37026
37118
  HelpOutlinedIcon,
37027
37119
  HierarchyIcon,
37120
+ IconButton,
37028
37121
  ImageField,
37029
37122
  InactiveGroupIcon,
37030
37123
  IndustryIcon,