@festo-ui/react 6.0.0-dev.217 → 6.0.0-dev.222

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.
@@ -3,8 +3,8 @@ import classNames from 'classnames';
3
3
  import TextEditorButton from './TextEditorButton';
4
4
  import useId from '../../helper/useId';
5
5
  import { jsx as _jsx } from "react/jsx-runtime";
6
- import { jsxs as _jsxs } from "react/jsx-runtime";
7
6
  import { Fragment as _Fragment } from "react/jsx-runtime";
7
+ import { jsxs as _jsxs } from "react/jsx-runtime";
8
8
  const xss = require('xss');
9
9
  const defaultConfig = {
10
10
  toolbar: {
@@ -146,31 +146,12 @@ function TextEditor(_ref) {
146
146
  disabled
147
147
  }),
148
148
  htmlFor: `editor-label-${id}`,
149
- children: [/*#__PURE__*/_jsxs("div", {
149
+ children: [/*#__PURE__*/_jsx("div", {
150
150
  className: classNames('fwe-editor-toolbar', {
151
151
  [`fwe-editor-toolbar-${className}`]: className
152
152
  }),
153
153
  id: `editor-toolbar-${id}`,
154
- children: [/*#__PURE__*/_jsx("span", {
155
- className: "ql-formats fwe-d-none",
156
- children: /*#__PURE__*/_jsxs("select", {
157
- className: "ql-size",
158
- "aria-hidden": "true",
159
- children: [/*#__PURE__*/_jsx("option", {
160
- value: "small",
161
- "aria-label": "small"
162
- }), /*#__PURE__*/_jsx("option", {
163
- selected: true,
164
- "aria-label": "selected"
165
- }), /*#__PURE__*/_jsx("option", {
166
- value: "large",
167
- "aria-label": "large"
168
- }), /*#__PURE__*/_jsx("option", {
169
- value: "huge",
170
- "aria-label": "huge"
171
- })]
172
- })
173
- }), /*#__PURE__*/_jsxs("span", {
154
+ children: /*#__PURE__*/_jsxs("span", {
174
155
  className: "ql-formats fwe-mr-3",
175
156
  children: [config?.toolbar?.bold && /*#__PURE__*/_jsx(TextEditorButton, {
176
157
  disabled: disabled,
@@ -242,7 +223,7 @@ function TextEditor(_ref) {
242
223
  noAction: true
243
224
  })]
244
225
  })]
245
- })]
226
+ })
246
227
  }), /*#__PURE__*/_jsx("div", {
247
228
  className: classNames('fwe-editor-container', {
248
229
  'fwe-editor-container--error': error
@@ -151,31 +151,12 @@ function TextEditor(_ref) {
151
151
  disabled
152
152
  }),
153
153
  htmlFor: `editor-label-${id}`,
154
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
154
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
155
155
  className: (0, _classnames.default)('fwe-editor-toolbar', {
156
156
  [`fwe-editor-toolbar-${className}`]: className
157
157
  }),
158
158
  id: `editor-toolbar-${id}`,
159
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
160
- className: "ql-formats fwe-d-none",
161
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("select", {
162
- className: "ql-size",
163
- "aria-hidden": "true",
164
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
165
- value: "small",
166
- "aria-label": "small"
167
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
168
- selected: true,
169
- "aria-label": "selected"
170
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
171
- value: "large",
172
- "aria-label": "large"
173
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
174
- value: "huge",
175
- "aria-label": "huge"
176
- })]
177
- })
178
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
159
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
179
160
  className: "ql-formats fwe-mr-3",
180
161
  children: [config?.toolbar?.bold && /*#__PURE__*/(0, _jsxRuntime.jsx)(_TextEditorButton.default, {
181
162
  disabled: disabled,
@@ -247,7 +228,7 @@ function TextEditor(_ref) {
247
228
  noAction: true
248
229
  })]
249
230
  })]
250
- })]
231
+ })
251
232
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
252
233
  className: (0, _classnames.default)('fwe-editor-container', {
253
234
  'fwe-editor-container--error': error
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@festo-ui/react",
3
- "version": "6.0.0-dev.217",
3
+ "version": "6.0.0-dev.222",
4
4
  "author": "Festo UI (styleguide@festo.com)",
5
5
  "license": "apache-2.0",
6
6
  "exports": {