@oliasoft-open-source/react-ui-library 3.9.17 → 3.9.18-beta-1

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/global.css CHANGED
@@ -20309,11 +20309,16 @@ button:active .remirror-menu-pane-shortcut,
20309
20309
  margin: 0;
20310
20310
  /* margin-bottom: var(--rmr-space-2); */
20311
20311
  }
20312
- ._richTextToolbar_l8wda_1 {
20313
- padding: 8px;
20312
+ ._richTextToolbar_is6av_1 {
20313
+ padding: 0 8px;
20314
20314
  display: flex;
20315
20315
  gap: 4px;
20316
20316
  }
20317
+ ._richTextToolbarContainer_is6av_6 {
20318
+ display: flex;
20319
+ justify-content: space-between;
20320
+ padding: 8px 0;
20321
+ }
20317
20322
  /*
20318
20323
  This file has shared variables that are re-used in other LESS files/modules
20319
20324
  Only use simple variables in this file
package/dist/index.js CHANGED
@@ -56315,11 +56315,13 @@ function TbListNumbers(props) {
56315
56315
  function TbList(props) {
56316
56316
  return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "strokeWidth": "2", "stroke": "currentColor", "fill": "none", "strokeLinecap": "round", "strokeLinejoin": "round" }, "child": [{ "tag": "path", "attr": { "stroke": "none", "d": "M0 0h24v24H0z", "fill": "none" } }, { "tag": "path", "attr": { "d": "M9 6l11 0" } }, { "tag": "path", "attr": { "d": "M9 12l11 0" } }, { "tag": "path", "attr": { "d": "M9 18l11 0" } }, { "tag": "path", "attr": { "d": "M5 6l0 .01" } }, { "tag": "path", "attr": { "d": "M5 12l0 .01" } }, { "tag": "path", "attr": { "d": "M5 18l0 .01" } }] })(props);
56317
56317
  }
56318
- const richTextToolbar = "_richTextToolbar_l8wda_1";
56318
+ const richTextToolbar = "_richTextToolbar_is6av_1";
56319
+ const richTextToolbarContainer = "_richTextToolbarContainer_is6av_6";
56319
56320
  const styles$f = {
56320
- richTextToolbar
56321
+ richTextToolbar,
56322
+ richTextToolbarContainer
56321
56323
  };
56322
- const RichTextToolbar = ({ disabled: disabled2 }) => {
56324
+ const RichTextToolbar = ({ disabled: disabled2, toolbarComponent }) => {
56323
56325
  const {
56324
56326
  focus: focus2,
56325
56327
  toggleBold,
@@ -56356,28 +56358,36 @@ const RichTextToolbar = ({ disabled: disabled2 }) => {
56356
56358
  active: active2.orderedList()
56357
56359
  }
56358
56360
  ];
56359
- return /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
56360
- className: styles$f.richTextToolbar,
56361
- children: items.map((item2, index2) => /* @__PURE__ */ jsxRuntime.exports.jsx(Button$1, {
56362
- small: true,
56363
- round: true,
56364
- basic: true,
56365
- icon: item2.icon,
56366
- colored: "muted",
56367
- onClick: () => {
56368
- item2.onClick();
56369
- focus2();
56370
- },
56371
- active: item2.active,
56372
- disabled: disabled2
56373
- }, index2))
56361
+ return /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
56362
+ className: styles$f.richTextToolbarContainer,
56363
+ children: [
56364
+ /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
56365
+ className: styles$f.richTextToolbar,
56366
+ children: items.map((item2, index2) => /* @__PURE__ */ jsxRuntime.exports.jsx(Button$1, {
56367
+ small: true,
56368
+ round: true,
56369
+ basic: true,
56370
+ icon: item2.icon,
56371
+ colored: "muted",
56372
+ onClick: () => {
56373
+ item2.onClick();
56374
+ focus2();
56375
+ },
56376
+ active: item2.active,
56377
+ disabled: disabled2
56378
+ }, index2))
56379
+ }),
56380
+ toolbarComponent
56381
+ ]
56374
56382
  });
56375
56383
  };
56376
56384
  RichTextToolbar.defaultProps = {
56377
- disabled: false
56385
+ disabled: false,
56386
+ toolbarComponent: null
56378
56387
  };
56379
56388
  RichTextToolbar.propTypes = {
56380
- disabled: propTypes$1.exports.bool
56389
+ disabled: propTypes$1.exports.bool,
56390
+ toolbarComponent: propTypes$1.exports.node
56381
56391
  };
56382
56392
  const inputInTable$4 = "_inputInTable_12bel_333";
56383
56393
  const inputHover$4 = "_inputHover_12bel_339";
@@ -56398,7 +56408,7 @@ const styles$e = {
56398
56408
  richTextInput
56399
56409
  };
56400
56410
  const RichTextInput = forwardRef(
56401
- ({ placeholder: placeholder3, onChange, value, disabled: disabledProp }, ref2) => {
56411
+ ({ placeholder: placeholder3, onChange, value, disabled: disabledProp, toolbarComponent }, ref2) => {
56402
56412
  const disabledContext = useContext(DisabledContext);
56403
56413
  const disabled2 = disabledProp || disabledContext;
56404
56414
  const { manager, state, setState, getContext: getContext2 } = useRemirror({
@@ -56431,7 +56441,8 @@ const RichTextInput = forwardRef(
56431
56441
  editable: !disabled2,
56432
56442
  children: [
56433
56443
  /* @__PURE__ */ jsxRuntime.exports.jsx(RichTextToolbar, {
56434
- disabled: disabled2
56444
+ disabled: disabled2,
56445
+ toolbarComponent
56435
56446
  }),
56436
56447
  /* @__PURE__ */ jsxRuntime.exports.jsx(EditorComponent, {})
56437
56448
  ]
@@ -56443,13 +56454,15 @@ RichTextInput.defaultProps = {
56443
56454
  disabled: false,
56444
56455
  onChange: null,
56445
56456
  placeholder: null,
56446
- value: null
56457
+ value: null,
56458
+ toolbarComponent: null
56447
56459
  };
56448
56460
  RichTextInput.propTypes = {
56449
56461
  disabled: propTypes$1.exports.bool,
56450
56462
  onChange: propTypes$1.exports.func,
56451
56463
  placeholder: propTypes$1.exports.string,
56452
- value: propTypes$1.exports.string
56464
+ value: propTypes$1.exports.string,
56465
+ toolbarComponent: propTypes$1.exports.node
56453
56466
  };
56454
56467
  const row = "_row_19xw9_333";
56455
56468
  const styles$d = {