@oliasoft-open-source/react-ui-library 3.9.16 → 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 +7 -2
- package/dist/index.js +41 -25
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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
|
-
.
|
|
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
|
@@ -11923,7 +11923,10 @@ const menuShape = propTypes$1.exports.shape({
|
|
|
11923
11923
|
trigger: propTypes$1.exports.oneOf(["Text", "Button", "DropDownButton", "Component"]),
|
|
11924
11924
|
colored: propTypes$1.exports.oneOfType([propTypes$1.exports.bool, propTypes$1.exports.string]),
|
|
11925
11925
|
small: propTypes$1.exports.bool,
|
|
11926
|
-
label: propTypes$1.exports.
|
|
11926
|
+
label: propTypes$1.exports.oneOfType([
|
|
11927
|
+
propTypes$1.exports.string,
|
|
11928
|
+
propTypes$1.exports.node
|
|
11929
|
+
]),
|
|
11927
11930
|
component: propTypes$1.exports.node,
|
|
11928
11931
|
sections: propTypes$1.exports.oneOfType([
|
|
11929
11932
|
propTypes$1.exports.arrayOf(menuSectionShape),
|
|
@@ -56312,11 +56315,13 @@ function TbListNumbers(props) {
|
|
|
56312
56315
|
function TbList(props) {
|
|
56313
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);
|
|
56314
56317
|
}
|
|
56315
|
-
const richTextToolbar = "
|
|
56318
|
+
const richTextToolbar = "_richTextToolbar_is6av_1";
|
|
56319
|
+
const richTextToolbarContainer = "_richTextToolbarContainer_is6av_6";
|
|
56316
56320
|
const styles$f = {
|
|
56317
|
-
richTextToolbar
|
|
56321
|
+
richTextToolbar,
|
|
56322
|
+
richTextToolbarContainer
|
|
56318
56323
|
};
|
|
56319
|
-
const RichTextToolbar = ({ disabled: disabled2 }) => {
|
|
56324
|
+
const RichTextToolbar = ({ disabled: disabled2, toolbarComponent }) => {
|
|
56320
56325
|
const {
|
|
56321
56326
|
focus: focus2,
|
|
56322
56327
|
toggleBold,
|
|
@@ -56353,28 +56358,36 @@ const RichTextToolbar = ({ disabled: disabled2 }) => {
|
|
|
56353
56358
|
active: active2.orderedList()
|
|
56354
56359
|
}
|
|
56355
56360
|
];
|
|
56356
|
-
return /* @__PURE__ */ jsxRuntime.exports.
|
|
56357
|
-
className: styles$f.
|
|
56358
|
-
children:
|
|
56359
|
-
|
|
56360
|
-
|
|
56361
|
-
|
|
56362
|
-
|
|
56363
|
-
|
|
56364
|
-
|
|
56365
|
-
|
|
56366
|
-
|
|
56367
|
-
|
|
56368
|
-
|
|
56369
|
-
|
|
56370
|
-
|
|
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
|
+
]
|
|
56371
56382
|
});
|
|
56372
56383
|
};
|
|
56373
56384
|
RichTextToolbar.defaultProps = {
|
|
56374
|
-
disabled: false
|
|
56385
|
+
disabled: false,
|
|
56386
|
+
toolbarComponent: null
|
|
56375
56387
|
};
|
|
56376
56388
|
RichTextToolbar.propTypes = {
|
|
56377
|
-
disabled: propTypes$1.exports.bool
|
|
56389
|
+
disabled: propTypes$1.exports.bool,
|
|
56390
|
+
toolbarComponent: propTypes$1.exports.node
|
|
56378
56391
|
};
|
|
56379
56392
|
const inputInTable$4 = "_inputInTable_12bel_333";
|
|
56380
56393
|
const inputHover$4 = "_inputHover_12bel_339";
|
|
@@ -56395,7 +56408,7 @@ const styles$e = {
|
|
|
56395
56408
|
richTextInput
|
|
56396
56409
|
};
|
|
56397
56410
|
const RichTextInput = forwardRef(
|
|
56398
|
-
({ placeholder: placeholder3, onChange, value, disabled: disabledProp }, ref2) => {
|
|
56411
|
+
({ placeholder: placeholder3, onChange, value, disabled: disabledProp, toolbarComponent }, ref2) => {
|
|
56399
56412
|
const disabledContext = useContext(DisabledContext);
|
|
56400
56413
|
const disabled2 = disabledProp || disabledContext;
|
|
56401
56414
|
const { manager, state, setState, getContext: getContext2 } = useRemirror({
|
|
@@ -56428,7 +56441,8 @@ const RichTextInput = forwardRef(
|
|
|
56428
56441
|
editable: !disabled2,
|
|
56429
56442
|
children: [
|
|
56430
56443
|
/* @__PURE__ */ jsxRuntime.exports.jsx(RichTextToolbar, {
|
|
56431
|
-
disabled: disabled2
|
|
56444
|
+
disabled: disabled2,
|
|
56445
|
+
toolbarComponent
|
|
56432
56446
|
}),
|
|
56433
56447
|
/* @__PURE__ */ jsxRuntime.exports.jsx(EditorComponent, {})
|
|
56434
56448
|
]
|
|
@@ -56440,13 +56454,15 @@ RichTextInput.defaultProps = {
|
|
|
56440
56454
|
disabled: false,
|
|
56441
56455
|
onChange: null,
|
|
56442
56456
|
placeholder: null,
|
|
56443
|
-
value: null
|
|
56457
|
+
value: null,
|
|
56458
|
+
toolbarComponent: null
|
|
56444
56459
|
};
|
|
56445
56460
|
RichTextInput.propTypes = {
|
|
56446
56461
|
disabled: propTypes$1.exports.bool,
|
|
56447
56462
|
onChange: propTypes$1.exports.func,
|
|
56448
56463
|
placeholder: propTypes$1.exports.string,
|
|
56449
|
-
value: propTypes$1.exports.string
|
|
56464
|
+
value: propTypes$1.exports.string,
|
|
56465
|
+
toolbarComponent: propTypes$1.exports.node
|
|
56450
56466
|
};
|
|
56451
56467
|
const row = "_row_19xw9_333";
|
|
56452
56468
|
const styles$d = {
|