@commercetools-uikit/localized-rich-text-input 16.1.0 → 16.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commercetools-uikit-localized-rich-text-input.cjs.dev.js +10 -13
- package/dist/commercetools-uikit-localized-rich-text-input.cjs.prod.js +2 -5
- package/dist/commercetools-uikit-localized-rich-text-input.esm.js +11 -14
- package/dist/declarations/src/editor.styles.d.ts +0 -1
- package/package.json +16 -16
|
@@ -83,7 +83,7 @@ const getBackgroundColor = props => {
|
|
|
83
83
|
};
|
|
84
84
|
const EditorLanguageLabel = /*#__PURE__*/_styled__default["default"]("label", {
|
|
85
85
|
target: "ew063c2"
|
|
86
|
-
} )("white-space:nowrap;flex:0;color:", designSystem.designTokens.fontColorForInputWhenDisabled, ";line-height:calc(\n ", designSystem.designTokens.sizeHeightInput, " - 2 * ", designSystem.designTokens.borderRadius1, "\n );background-color:", props => getBackgroundColor(props), ";border-top-left-radius:", designSystem.designTokens.borderRadiusForInput, ";border-bottom-left-radius:", designSystem.designTokens.borderRadiusForInput, ";border:", props => getEditorLanguageLabelBorderColor(props), ";padding:", designSystem.designTokens.paddingForLocalizedRichTextInputLabel, ";transition:border-color ", designSystem.designTokens.transitionStandard, ",background-color ", designSystem.designTokens.transitionStandard, ",color ", designSystem.designTokens.transitionStandard, ";border-right:0;box-shadow:none;appearance:none;display:
|
|
86
|
+
} )("white-space:nowrap;flex:0;color:", designSystem.designTokens.fontColorForInputWhenDisabled, ";line-height:calc(\n ", designSystem.designTokens.sizeHeightInput, " - 2 * ", designSystem.designTokens.borderRadius1, "\n );background-color:", props => getBackgroundColor(props), ";border-top-left-radius:", designSystem.designTokens.borderRadiusForInput, ";border-bottom-left-radius:", designSystem.designTokens.borderRadiusForInput, ";border:", props => getEditorLanguageLabelBorderColor(props), ";padding:", designSystem.designTokens.paddingForLocalizedRichTextInputLabel, ";transition:border-color ", designSystem.designTokens.transitionStandard, ",background-color ", designSystem.designTokens.transitionStandard, ",color ", designSystem.designTokens.transitionStandard, ";border-right:0;box-shadow:none;appearance:none;display:flex;align-items:center;cursor:inherit;" + ("" ));
|
|
87
87
|
const EditorWrapper = /*#__PURE__*/_styled__default["default"]("div", {
|
|
88
88
|
target: "ew063c1"
|
|
89
89
|
} )("width:100%;position:relative;display:flex;cursor:", props => props.isDisabled || props.isReadOnly ? 'not-allowed' : 'inherit', ";" + ("" ));
|
|
@@ -130,8 +130,6 @@ var _ref = {
|
|
|
130
130
|
const Editor = /*#__PURE__*/react.forwardRef((props, forwardedRef) => {
|
|
131
131
|
const intl = reactIntl.useIntl();
|
|
132
132
|
const ref = react.useRef();
|
|
133
|
-
const _useTheme = designSystem.useTheme(),
|
|
134
|
-
isNewTheme = _useTheme.isNewTheme;
|
|
135
133
|
const createEditorWithPlugins = pipe__default["default"](slateReact.withReact, slateHistory.withHistory);
|
|
136
134
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
137
135
|
const editor = react.useMemo(() => createEditorWithPlugins(slate.createEditor()), []);
|
|
@@ -213,7 +211,6 @@ const Editor = /*#__PURE__*/react.forwardRef((props, forwardedRef) => {
|
|
|
213
211
|
htmlFor: props.id,
|
|
214
212
|
isDisabled: props.isDisabled,
|
|
215
213
|
isReadOnly: props.isReadOnly,
|
|
216
|
-
isNewTheme: isNewTheme,
|
|
217
214
|
children: jsxRuntime.jsx(Text__default["default"].Detail, {
|
|
218
215
|
tone: "secondary",
|
|
219
216
|
children: props.language.toUpperCase()
|
|
@@ -566,7 +563,7 @@ LocalizedRichTextInput.isTouched = localizedUtils.isTouched;
|
|
|
566
563
|
var LocalizedRichTextInput$1 = LocalizedRichTextInput;
|
|
567
564
|
|
|
568
565
|
// NOTE: This string will be replaced on build time with the package version.
|
|
569
|
-
var version = "16.
|
|
566
|
+
var version = "16.2.0";
|
|
570
567
|
|
|
571
568
|
exports["default"] = LocalizedRichTextInput$1;
|
|
572
569
|
exports.version = version;
|