plataforma-fundacao-componentes 2.25.5 → 2.25.7
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/components/paginator/Paginator.stories.d.ts +1 -0
- package/dist/components/textEditor/TextEditor.d.ts +19 -20
- package/dist/components/textEditor/components/textEditorColorPicker/TextEditorColorPicker.d.ts +11 -11
- package/dist/components/textEditor/components/textEditorHeaderButton/TextEditorHeaderButton.d.ts +7 -10
- package/dist/components/textEditor/components/textEditorInput/TextEditorHeaderInput.d.ts +10 -12
- package/dist/components/textEditor/components/textEditorMenuButton/TextEditorMenuButton.d.ts +3 -9
- package/dist/components/textEditor/components/textEditorTitleChoser/TextEditorTitleChoser.d.ts +10 -10
- package/dist/components/textEditor/components/textEditorUrlCreator/TextEditorUrlCreator.d.ts +11 -11
- package/dist/index.css +49 -36
- package/dist/index.js +193 -197
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +193 -197
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -70,8 +70,8 @@ var AddIcon = function AddIcon() {
|
|
|
70
70
|
viewBox: '0 0 24 24',
|
|
71
71
|
xmlns: 'http://www.w3.org/2000/svg'
|
|
72
72
|
}, React$1__default.createElement("path", {
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
fillRule: 'evenodd',
|
|
74
|
+
clipRule: 'evenodd',
|
|
75
75
|
d: 'M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12ZM3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12ZM17 11.5C17.2761 11.5 17.5 11.7239 17.5 12C17.5 12.2455 17.3231 12.4496 17.0899 12.4919L17 12.5H12.5V17C12.5 17.2761 12.2761 17.5 12 17.5C11.7545 17.5 11.5504 17.3231 11.5081 17.0899L11.5 17V12.5H7C6.72386 12.5 6.5 12.2761 6.5 12C6.5 11.7545 6.67688 11.5504 6.91012 11.5081L7 11.5H11.5V7C11.5 6.72386 11.7239 6.5 12 6.5C12.2455 6.5 12.4496 6.67688 12.4919 6.91012L12.5 7V11.5H17Z',
|
|
76
76
|
fill: 'currentColor'
|
|
77
77
|
}));
|
|
@@ -9028,11 +9028,14 @@ function Paginator(props) {
|
|
|
9028
9028
|
}
|
|
9029
9029
|
setArrOfNumbers(arr);
|
|
9030
9030
|
}, [props.quantidadeDePaginas, props.maxLength, props.paginaAtual]);
|
|
9031
|
+
console.log(props.loading);
|
|
9031
9032
|
return React$1__default.createElement("div", {
|
|
9032
9033
|
id: props.id ? props.id : undefined,
|
|
9033
9034
|
className: getMergedClassNames([rootClassName$2i, props.className || ''])
|
|
9034
9035
|
}, React$1__default.createElement("div", {
|
|
9035
9036
|
className: rootClassName$2i + "-center-content"
|
|
9037
|
+
}, React$1__default.createElement("div", {
|
|
9038
|
+
className: props.loading ? "hidden" : ''
|
|
9036
9039
|
}, props.quantidadeDePaginas > 1 ? React$1__default.createElement("div", {
|
|
9037
9040
|
className: rootClassName$2i + "-left-arrow"
|
|
9038
9041
|
}, React$1__default.createElement(IconButton$1, {
|
|
@@ -9065,7 +9068,7 @@ function Paginator(props) {
|
|
|
9065
9068
|
}
|
|
9066
9069
|
},
|
|
9067
9070
|
disabled: props.paginaAtual >= props.quantidadeDePaginas
|
|
9068
|
-
})) : undefined, React$1__default.createElement(reactTransitionGroup.CSSTransition, {
|
|
9071
|
+
})) : undefined), React$1__default.createElement(reactTransitionGroup.CSSTransition, {
|
|
9069
9072
|
classNames: rootClassName$2i + "-loader",
|
|
9070
9073
|
"in": props.loading,
|
|
9071
9074
|
timeout: 300,
|
|
@@ -9396,7 +9399,7 @@ var Pagination = function Pagination(props) {
|
|
|
9396
9399
|
}
|
|
9397
9400
|
return React$1__default.createElement("ul", {
|
|
9398
9401
|
key: index,
|
|
9399
|
-
className: 'paginationContainer'
|
|
9402
|
+
className: getMergedClassNames(['paginationContainer', loading ? 'hidden' : ''])
|
|
9400
9403
|
}, children);
|
|
9401
9404
|
}), React$1__default.createElement(reactTransitionGroup.CSSTransition, {
|
|
9402
9405
|
"in": loading,
|
|
@@ -10988,16 +10991,19 @@ function TextEditorHeaderInput(props) {
|
|
|
10988
10991
|
var getInputProps = function getInputProps() {
|
|
10989
10992
|
return {
|
|
10990
10993
|
onFocus: function onFocus(evt) {
|
|
10991
|
-
document.getElementById(inputLabelId)
|
|
10994
|
+
var el = document.getElementById(inputLabelId);
|
|
10995
|
+
el.classList.add('top');
|
|
10992
10996
|
if (typeof props.onFocus === 'function') props.onFocus(evt);
|
|
10993
10997
|
},
|
|
10994
|
-
onBlur: function onBlur(
|
|
10998
|
+
onBlur: function onBlur() {
|
|
10999
|
+
var el = document.getElementById(inputLabelId);
|
|
10995
11000
|
if (!props.value) {
|
|
10996
|
-
|
|
11001
|
+
el.classList.remove('top');
|
|
10997
11002
|
}
|
|
10998
11003
|
},
|
|
10999
11004
|
onChange: function onChange(evt) {
|
|
11000
|
-
|
|
11005
|
+
var _props$onChange;
|
|
11006
|
+
(_props$onChange = props.onChange) === null || _props$onChange === void 0 ? void 0 : _props$onChange.call(props, evt);
|
|
11001
11007
|
evt.stopPropagation();
|
|
11002
11008
|
},
|
|
11003
11009
|
className: getMergedClassNames([rootClassName$2y + "-input", props.className || '']),
|
|
@@ -11009,56 +11015,42 @@ function TextEditorHeaderInput(props) {
|
|
|
11009
11015
|
}
|
|
11010
11016
|
};
|
|
11011
11017
|
};
|
|
11012
|
-
return
|
|
11018
|
+
return React$1__default.createElement("div", {
|
|
11013
11019
|
className: rootClassName$2y
|
|
11014
|
-
},
|
|
11020
|
+
}, React$1__default.createElement("div", {
|
|
11015
11021
|
id: inputLabelId,
|
|
11016
11022
|
className: getMergedClassNames([rootClassName$2y + "-label", props.value ? 'top' : ''])
|
|
11017
|
-
}, props.label),
|
|
11023
|
+
}, props.label), React$1__default.createElement("input", Object.assign({}, getInputProps())));
|
|
11018
11024
|
}
|
|
11019
|
-
TextEditorHeaderInput.propTypes = {
|
|
11020
|
-
onChange: propTypes.func,
|
|
11021
|
-
label: propTypes.string,
|
|
11022
|
-
value: propTypes.oneOfType([propTypes.number, propTypes.string]),
|
|
11023
|
-
onEnter: propTypes.func
|
|
11024
|
-
};
|
|
11025
11025
|
TextEditorHeaderInput.defaultProps = {
|
|
11026
11026
|
onChange: function onChange() {}
|
|
11027
11027
|
};
|
|
11028
11028
|
|
|
11029
11029
|
var rootClassName$2z = 'text-editor-menu-button';
|
|
11030
11030
|
function TextEditorMenuButton(props) {
|
|
11031
|
-
return
|
|
11031
|
+
return React$1__default.createElement("button", Object.assign({}, props, {
|
|
11032
11032
|
className: getMergedClassNames([props.className || '', rootClassName$2z])
|
|
11033
11033
|
}));
|
|
11034
11034
|
}
|
|
11035
|
-
TextEditorMenuButton.propTypes = {
|
|
11036
|
-
onClick: propTypes.func,
|
|
11037
|
-
disabled: propTypes.bool
|
|
11038
|
-
};
|
|
11039
11035
|
|
|
11040
11036
|
var rootClassName$2A = 'text-editor-color-picker';
|
|
11041
11037
|
var colorClassName = rootClassName$2A + "-color-button";
|
|
11042
11038
|
var defaultColors = ['#121212', '#323c32', '#5a645a', '#828a82', '#33820d', '#3fa110'];
|
|
11043
|
-
|
|
11044
|
-
return
|
|
11039
|
+
function ColorButton(props) {
|
|
11040
|
+
return React$1__default.createElement("button", {
|
|
11045
11041
|
disabled: props.disabled,
|
|
11046
11042
|
className: colorClassName,
|
|
11047
11043
|
onClick: function onClick() {
|
|
11048
|
-
return props.
|
|
11044
|
+
return props.onPick(props.color);
|
|
11049
11045
|
},
|
|
11050
11046
|
style: {
|
|
11051
11047
|
backgroundColor: props.color
|
|
11052
11048
|
}
|
|
11053
11049
|
});
|
|
11054
|
-
}
|
|
11055
|
-
ColorButton.propTypes = {
|
|
11056
|
-
color: propTypes.string,
|
|
11057
|
-
onClick: propTypes.func,
|
|
11058
|
-
disabled: propTypes.bool
|
|
11059
|
-
};
|
|
11050
|
+
}
|
|
11060
11051
|
var timeOutID = null;
|
|
11061
11052
|
function TextEditorColorPicker(props) {
|
|
11053
|
+
var _window$localStorage$;
|
|
11062
11054
|
var _useState = React$1.useState(''),
|
|
11063
11055
|
hexa = _useState[0],
|
|
11064
11056
|
setHexa = _useState[1];
|
|
@@ -11068,21 +11060,24 @@ function TextEditorColorPicker(props) {
|
|
|
11068
11060
|
previousSelection = _useState3[0],
|
|
11069
11061
|
setPreviousSelection = _useState3[1];
|
|
11070
11062
|
React$1.useEffect(function () {
|
|
11071
|
-
|
|
11063
|
+
var _props$atualColor;
|
|
11064
|
+
setHexa((_props$atualColor = props.atualColor) != null ? _props$atualColor : '');
|
|
11072
11065
|
}, [props.atualColor]);
|
|
11073
11066
|
React$1.useEffect(function () {
|
|
11067
|
+
var selection = window.getSelection();
|
|
11074
11068
|
if (props.opened) {
|
|
11075
|
-
|
|
11076
|
-
anchorNode =
|
|
11077
|
-
|
|
11078
|
-
|
|
11079
|
-
|
|
11080
|
-
|
|
11081
|
-
|
|
11082
|
-
|
|
11083
|
-
|
|
11084
|
-
|
|
11085
|
-
|
|
11069
|
+
if (selection) {
|
|
11070
|
+
var anchorNode = selection.anchorNode,
|
|
11071
|
+
anchorOffset = selection.anchorOffset,
|
|
11072
|
+
focusNode = selection.focusNode,
|
|
11073
|
+
focusOffset = selection.focusOffset;
|
|
11074
|
+
setPreviousSelection({
|
|
11075
|
+
anchorNode: anchorNode,
|
|
11076
|
+
anchorOffset: anchorOffset,
|
|
11077
|
+
focusNode: focusNode,
|
|
11078
|
+
focusOffset: focusOffset
|
|
11079
|
+
});
|
|
11080
|
+
}
|
|
11086
11081
|
var el = document.querySelector("#" + id + " input:nth-of-type(2)");
|
|
11087
11082
|
if (el) {
|
|
11088
11083
|
el.focus();
|
|
@@ -11092,49 +11087,51 @@ function TextEditorColorPicker(props) {
|
|
|
11092
11087
|
}
|
|
11093
11088
|
}
|
|
11094
11089
|
}, [props.opened]);
|
|
11095
|
-
var lastUsedColors = JSON.parse(window.localStorage.getItem('lastUsedColors')) || ['', '', '', '', '', ''];
|
|
11090
|
+
var lastUsedColors = JSON.parse((_window$localStorage$ = window.localStorage.getItem('lastUsedColors')) != null ? _window$localStorage$ : '') || ['', '', '', '', '', ''];
|
|
11096
11091
|
var submitColor = function submitColor(color) {
|
|
11097
|
-
|
|
11092
|
+
var _window$getSelection;
|
|
11093
|
+
(_window$getSelection = window.getSelection()) === null || _window$getSelection === void 0 ? void 0 : _window$getSelection.setBaseAndExtent(previousSelection.anchorNode, previousSelection.anchorOffset, previousSelection.focusNode, previousSelection.focusOffset);
|
|
11098
11094
|
props.onChange(color);
|
|
11099
11095
|
};
|
|
11100
11096
|
var handleSubmit = function handleSubmit() {
|
|
11097
|
+
var _window$getSelection2;
|
|
11101
11098
|
if (!validaHexadecimalColor(hexa)) return;
|
|
11102
|
-
window.getSelection().setBaseAndExtent(previousSelection.anchorNode, previousSelection.anchorOffset, previousSelection.focusNode, previousSelection.focusOffset);
|
|
11099
|
+
(_window$getSelection2 = window.getSelection()) === null || _window$getSelection2 === void 0 ? void 0 : _window$getSelection2.setBaseAndExtent(previousSelection.anchorNode, previousSelection.anchorOffset, previousSelection.focusNode, previousSelection.focusOffset);
|
|
11103
11100
|
props.onChange(hexa);
|
|
11104
11101
|
var arr = [hexa, lastUsedColors[0] || '', lastUsedColors[1] || '', lastUsedColors[2] || '', lastUsedColors[3] || '', lastUsedColors[4] || ''];
|
|
11105
11102
|
setTimeout(function () {
|
|
11106
11103
|
window.localStorage.setItem('lastUsedColors', JSON.stringify(arr));
|
|
11107
11104
|
}, 250);
|
|
11108
11105
|
};
|
|
11109
|
-
return
|
|
11106
|
+
return React$1__default.createElement("div", {
|
|
11110
11107
|
id: id,
|
|
11111
11108
|
className: rootClassName$2A
|
|
11112
|
-
},
|
|
11109
|
+
}, React$1__default.createElement("div", {
|
|
11113
11110
|
className: rootClassName$2A + "-colors"
|
|
11114
11111
|
}, defaultColors.map(function (color, index) {
|
|
11115
|
-
return
|
|
11112
|
+
return React$1__default.createElement(ColorButton, {
|
|
11116
11113
|
key: index,
|
|
11117
11114
|
color: color,
|
|
11118
|
-
|
|
11115
|
+
onPick: function onPick(color) {
|
|
11119
11116
|
return submitColor(color);
|
|
11120
11117
|
}
|
|
11121
11118
|
});
|
|
11122
|
-
})),
|
|
11119
|
+
})), React$1__default.createElement("div", {
|
|
11123
11120
|
className: rootClassName$2A + "-colors"
|
|
11124
11121
|
}, lastUsedColors.map(function (color, index) {
|
|
11125
|
-
return
|
|
11122
|
+
return React$1__default.createElement(ColorButton, {
|
|
11126
11123
|
key: index,
|
|
11127
11124
|
disabled: color === '',
|
|
11128
11125
|
color: color,
|
|
11129
|
-
|
|
11126
|
+
onPick: function onPick(color) {
|
|
11130
11127
|
return submitColor(color);
|
|
11131
11128
|
}
|
|
11132
11129
|
});
|
|
11133
|
-
})),
|
|
11130
|
+
})), React$1__default.createElement("div", {
|
|
11134
11131
|
className: rootClassName$2A + "-hexa-row"
|
|
11135
|
-
},
|
|
11132
|
+
}, React$1__default.createElement("div", {
|
|
11136
11133
|
className: rootClassName$2A + "-picker-col"
|
|
11137
|
-
},
|
|
11134
|
+
}, React$1__default.createElement("input", {
|
|
11138
11135
|
value: hexa,
|
|
11139
11136
|
onChange: function onChange(evt) {
|
|
11140
11137
|
evt.stopPropagation();
|
|
@@ -11145,15 +11142,15 @@ function TextEditorColorPicker(props) {
|
|
|
11145
11142
|
}, 200);
|
|
11146
11143
|
},
|
|
11147
11144
|
className: rootClassName$2A + "-color-picker",
|
|
11148
|
-
type:
|
|
11149
|
-
})),
|
|
11150
|
-
label:
|
|
11145
|
+
type: 'color'
|
|
11146
|
+
})), React$1__default.createElement(TextEditorHeaderInput, {
|
|
11147
|
+
label: 'Hexadecimal',
|
|
11151
11148
|
onChange: function onChange(evt) {
|
|
11152
11149
|
return setHexa(formatHexadecimalColor(evt.target.value));
|
|
11153
11150
|
},
|
|
11154
11151
|
value: hexa,
|
|
11155
11152
|
onEnter: handleSubmit
|
|
11156
|
-
}),
|
|
11153
|
+
}), React$1__default.createElement(TextEditorMenuButton, {
|
|
11157
11154
|
disabled: !validaHexadecimalColor(hexa),
|
|
11158
11155
|
onClick: handleSubmit,
|
|
11159
11156
|
style: {
|
|
@@ -11161,29 +11158,21 @@ function TextEditorColorPicker(props) {
|
|
|
11161
11158
|
}
|
|
11162
11159
|
}, "OK")));
|
|
11163
11160
|
}
|
|
11164
|
-
TextEditorColorPicker.propTypes = {
|
|
11165
|
-
onChange: propTypes.func,
|
|
11166
|
-
atualColor: propTypes.string,
|
|
11167
|
-
opened: propTypes.bool
|
|
11168
|
-
};
|
|
11169
11161
|
TextEditorColorPicker.defaultProps = {
|
|
11170
11162
|
onChange: function onChange() {}
|
|
11171
11163
|
};
|
|
11172
11164
|
|
|
11165
|
+
var _excluded$2 = ["icon", "active"];
|
|
11173
11166
|
var rootClassName$2B = 'text-editor-header-button';
|
|
11174
|
-
function TextEditorHeaderButton(
|
|
11175
|
-
|
|
11176
|
-
|
|
11177
|
-
|
|
11178
|
-
|
|
11179
|
-
|
|
11167
|
+
function TextEditorHeaderButton(_ref) {
|
|
11168
|
+
var _props$className;
|
|
11169
|
+
var icon = _ref.icon,
|
|
11170
|
+
active = _ref.active,
|
|
11171
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2);
|
|
11172
|
+
return React$1__default.createElement("button", Object.assign({
|
|
11173
|
+
className: getMergedClassNames([rootClassName$2B, active ? 'active' : '', (_props$className = props.className) != null ? _props$className : ''])
|
|
11174
|
+
}, props), icon);
|
|
11180
11175
|
}
|
|
11181
|
-
TextEditorHeaderButton.propTypes = {
|
|
11182
|
-
icon: propTypes.object,
|
|
11183
|
-
onClick: propTypes.func,
|
|
11184
|
-
active: propTypes.bool,
|
|
11185
|
-
disabled: propTypes.bool
|
|
11186
|
-
};
|
|
11187
11176
|
|
|
11188
11177
|
var rootClassName$2C = 'text-editor-title-choser';
|
|
11189
11178
|
function TextEditorTitleChoser(props) {
|
|
@@ -11193,18 +11182,20 @@ function TextEditorTitleChoser(props) {
|
|
|
11193
11182
|
previousSelection = _useState2[0],
|
|
11194
11183
|
setPreviousSelection = _useState2[1];
|
|
11195
11184
|
React$1.useEffect(function () {
|
|
11185
|
+
var selection = window.getSelection();
|
|
11196
11186
|
if (props.opened) {
|
|
11197
|
-
|
|
11198
|
-
anchorNode =
|
|
11199
|
-
|
|
11200
|
-
|
|
11201
|
-
|
|
11202
|
-
|
|
11203
|
-
|
|
11204
|
-
|
|
11205
|
-
|
|
11206
|
-
|
|
11207
|
-
|
|
11187
|
+
if (selection) {
|
|
11188
|
+
var anchorNode = selection.anchorNode,
|
|
11189
|
+
anchorOffset = selection.anchorOffset,
|
|
11190
|
+
focusNode = selection.focusNode,
|
|
11191
|
+
focusOffset = selection.focusOffset;
|
|
11192
|
+
setPreviousSelection({
|
|
11193
|
+
anchorNode: anchorNode,
|
|
11194
|
+
anchorOffset: anchorOffset,
|
|
11195
|
+
focusNode: focusNode,
|
|
11196
|
+
focusOffset: focusOffset
|
|
11197
|
+
});
|
|
11198
|
+
}
|
|
11208
11199
|
var el = document.querySelector("#" + id + " button");
|
|
11209
11200
|
if (el) {
|
|
11210
11201
|
el.focus();
|
|
@@ -11215,28 +11206,25 @@ function TextEditorTitleChoser(props) {
|
|
|
11215
11206
|
}
|
|
11216
11207
|
}, [props.opened]);
|
|
11217
11208
|
var handleChange = function handleChange(text) {
|
|
11218
|
-
|
|
11209
|
+
var _window$getSelection;
|
|
11210
|
+
(_window$getSelection = window.getSelection()) === null || _window$getSelection === void 0 ? void 0 : _window$getSelection.setBaseAndExtent(previousSelection.anchorNode, previousSelection.anchorOffset, previousSelection.focusNode, previousSelection.focusOffset);
|
|
11219
11211
|
if (typeof props.onChange === 'function') {
|
|
11220
11212
|
props.onChange(text);
|
|
11221
11213
|
}
|
|
11222
11214
|
};
|
|
11223
|
-
return
|
|
11215
|
+
return React$1__default.createElement("div", {
|
|
11224
11216
|
className: rootClassName$2C,
|
|
11225
11217
|
id: id
|
|
11226
|
-
},
|
|
11218
|
+
}, React$1__default.createElement("button", {
|
|
11227
11219
|
onClick: function onClick() {
|
|
11228
11220
|
return handleChange('H1');
|
|
11229
11221
|
}
|
|
11230
|
-
},
|
|
11222
|
+
}, React$1__default.createElement("h1", null, "T\xEDtulo")), React$1__default.createElement("button", {
|
|
11231
11223
|
onClick: function onClick() {
|
|
11232
11224
|
return handleChange('H6');
|
|
11233
11225
|
}
|
|
11234
|
-
},
|
|
11226
|
+
}, React$1__default.createElement("h6", null, "Texto")));
|
|
11235
11227
|
}
|
|
11236
|
-
TextEditorTitleChoser.propTypes = {
|
|
11237
|
-
onChange: propTypes.func,
|
|
11238
|
-
opened: propTypes.bool
|
|
11239
|
-
};
|
|
11240
11228
|
TextEditorTitleChoser.defaultProps = {
|
|
11241
11229
|
onChange: function onChange() {}
|
|
11242
11230
|
};
|
|
@@ -11262,6 +11250,7 @@ function TextEditorUrlCreator(props) {
|
|
|
11262
11250
|
setUpdating = _useState6[1];
|
|
11263
11251
|
React$1.useEffect(function () {
|
|
11264
11252
|
if (props.opened) {
|
|
11253
|
+
var _window$getSelection, _selection$anchorNode;
|
|
11265
11254
|
var selection = window.getSelection();
|
|
11266
11255
|
var anchorNode = selection.anchorNode,
|
|
11267
11256
|
anchorOffset = selection.anchorOffset,
|
|
@@ -11273,13 +11262,15 @@ function TextEditorUrlCreator(props) {
|
|
|
11273
11262
|
focusNode: focusNode,
|
|
11274
11263
|
focusOffset: focusOffset
|
|
11275
11264
|
});
|
|
11276
|
-
if (window.getSelection().toString().length) {
|
|
11277
|
-
|
|
11265
|
+
if ((_window$getSelection = window.getSelection()) !== null && _window$getSelection !== void 0 && _window$getSelection.toString().length) {
|
|
11266
|
+
var _window$getSelection$, _window$getSelection2;
|
|
11267
|
+
setTextValue((_window$getSelection$ = (_window$getSelection2 = window.getSelection()) === null || _window$getSelection2 === void 0 ? void 0 : _window$getSelection2.toString()) != null ? _window$getSelection$ : '');
|
|
11278
11268
|
}
|
|
11279
|
-
var aux = selection.anchorNode.parentElement;
|
|
11280
|
-
while (
|
|
11269
|
+
var aux = (_selection$anchorNode = selection.anchorNode) === null || _selection$anchorNode === void 0 ? void 0 : _selection$anchorNode.parentElement;
|
|
11270
|
+
while (aux && aux.getAttribute('id') !== props.editorId) {
|
|
11281
11271
|
if (aux.tagName === 'A') {
|
|
11282
|
-
|
|
11272
|
+
var _aux$getAttribute;
|
|
11273
|
+
setUrlValue((_aux$getAttribute = aux.getAttribute('href')) != null ? _aux$getAttribute : '');
|
|
11283
11274
|
setNewTab(aux.getAttribute('target') === '_blank');
|
|
11284
11275
|
setUpdating(true);
|
|
11285
11276
|
break;
|
|
@@ -11296,60 +11287,57 @@ function TextEditorUrlCreator(props) {
|
|
|
11296
11287
|
}
|
|
11297
11288
|
}, [props.opened]);
|
|
11298
11289
|
var handleSubmit = function handleSubmit() {
|
|
11290
|
+
var _window$getSelection3;
|
|
11299
11291
|
if (!urlValue || !textValue) return;
|
|
11300
|
-
window.getSelection().setBaseAndExtent(previousSelection.anchorNode, previousSelection.anchorOffset, previousSelection.focusNode, previousSelection.focusOffset);
|
|
11292
|
+
(_window$getSelection3 = window.getSelection()) === null || _window$getSelection3 === void 0 ? void 0 : _window$getSelection3.setBaseAndExtent(previousSelection.anchorNode, previousSelection.anchorOffset, previousSelection.focusNode, previousSelection.focusOffset);
|
|
11301
11293
|
props.onChange(textValue, urlValue, newTab);
|
|
11302
11294
|
};
|
|
11303
|
-
return
|
|
11295
|
+
return React$1__default.createElement("div", {
|
|
11304
11296
|
id: id,
|
|
11305
11297
|
className: rootClassName$2D
|
|
11306
|
-
},
|
|
11298
|
+
}, React$1__default.createElement(Row$1, {
|
|
11307
11299
|
className: rootClassName$2D + "-url-row"
|
|
11308
|
-
},
|
|
11309
|
-
label:
|
|
11300
|
+
}, React$1__default.createElement(TextEditorHeaderInput, {
|
|
11301
|
+
label: 'Url',
|
|
11310
11302
|
value: urlValue,
|
|
11311
11303
|
onChange: function onChange(evt) {
|
|
11312
11304
|
return setUrlValue(evt.target.value);
|
|
11313
11305
|
},
|
|
11314
11306
|
onEnter: handleSubmit
|
|
11315
|
-
})),
|
|
11307
|
+
})), React$1__default.createElement(Row$1, {
|
|
11316
11308
|
className: rootClassName$2D + "-text-row"
|
|
11317
|
-
},
|
|
11318
|
-
label:
|
|
11309
|
+
}, React$1__default.createElement(TextEditorHeaderInput, {
|
|
11310
|
+
label: 'Texto',
|
|
11319
11311
|
value: textValue,
|
|
11320
11312
|
onChange: function onChange(evt) {
|
|
11321
11313
|
return setTextValue(evt.target.value);
|
|
11322
11314
|
},
|
|
11323
11315
|
onEnter: handleSubmit
|
|
11324
|
-
})),
|
|
11316
|
+
})), React$1__default.createElement(Row$1, {
|
|
11325
11317
|
className: rootClassName$2D + "-new-tab-row"
|
|
11326
|
-
},
|
|
11318
|
+
}, React$1__default.createElement(Checkbox$1, {
|
|
11327
11319
|
value: newTab,
|
|
11328
11320
|
onChange: function onChange(value) {
|
|
11329
11321
|
return setNewTab(value);
|
|
11330
11322
|
}
|
|
11331
|
-
}),
|
|
11323
|
+
}), React$1__default.createElement("span", {
|
|
11332
11324
|
onClick: function onClick() {
|
|
11333
11325
|
return setNewTab(!newTab);
|
|
11334
11326
|
}
|
|
11335
|
-
}, "Nova Guia")),
|
|
11327
|
+
}, "Nova Guia")), React$1__default.createElement(Row$1, {
|
|
11336
11328
|
className: rootClassName$2D + "-ok-row"
|
|
11337
|
-
},
|
|
11329
|
+
}, React$1__default.createElement(TextEditorMenuButton, {
|
|
11338
11330
|
disabled: !urlValue || !textValue,
|
|
11339
11331
|
onClick: handleSubmit
|
|
11340
11332
|
}, isUpdating ? 'Atualizar' : 'OK')));
|
|
11341
11333
|
}
|
|
11342
|
-
TextEditorUrlCreator.propTypes = {
|
|
11343
|
-
opened: propTypes.bool,
|
|
11344
|
-
onChange: propTypes.func,
|
|
11345
|
-
editorId: propTypes.string
|
|
11346
|
-
};
|
|
11347
11334
|
TextEditorUrlCreator.defaultProps = {
|
|
11348
11335
|
onChange: function onChange() {}
|
|
11349
11336
|
};
|
|
11350
11337
|
|
|
11351
11338
|
var rootClassName$2E = 'component-text-editor';
|
|
11352
11339
|
function TextEditor(props) {
|
|
11340
|
+
var _cursor$foreColor;
|
|
11353
11341
|
var _useState = React$1.useState(getUniqueKey()),
|
|
11354
11342
|
id = _useState[0];
|
|
11355
11343
|
var _useState2 = React$1.useState(false),
|
|
@@ -11388,11 +11376,13 @@ function TextEditor(props) {
|
|
|
11388
11376
|
var selection = window.getSelection();
|
|
11389
11377
|
if (!selection || !selection.anchorNode) return;
|
|
11390
11378
|
var aux = selection.anchorNode.parentElement;
|
|
11391
|
-
while (!aux.hasAttribute('class'
|
|
11379
|
+
while (aux && !((_aux = aux) !== null && _aux !== void 0 && _aux.hasAttribute('class'))) {
|
|
11380
|
+
var _aux;
|
|
11392
11381
|
if (aux.tagName === 'A') {
|
|
11393
11382
|
isLink = true;
|
|
11394
11383
|
} else if (aux.tagName === 'FONT') {
|
|
11395
|
-
|
|
11384
|
+
var _aux$getAttribute;
|
|
11385
|
+
fore = (_aux$getAttribute = aux.getAttribute('color')) != null ? _aux$getAttribute : '';
|
|
11396
11386
|
}
|
|
11397
11387
|
aux = aux.parentElement;
|
|
11398
11388
|
}
|
|
@@ -11408,25 +11398,28 @@ function TextEditor(props) {
|
|
|
11408
11398
|
justifyFull: document.queryCommandState('justifyFull')
|
|
11409
11399
|
}));
|
|
11410
11400
|
};
|
|
11411
|
-
var handleChange = function handleChange(
|
|
11401
|
+
var handleChange = function handleChange() {
|
|
11412
11402
|
var editor = document.querySelector("#" + id);
|
|
11413
11403
|
if (typeof props.onChange === 'function') props.onChange(editor.innerHTML, String(editor.innerText).trim().replace(/\n/g, ' '));
|
|
11414
11404
|
};
|
|
11415
11405
|
var handlePaste = function handlePaste(evt) {
|
|
11416
11406
|
evt.preventDefault();
|
|
11417
|
-
var text =
|
|
11407
|
+
var text = (evt.originalEvent || evt).clipboardData.getData('text/plain');
|
|
11418
11408
|
if (document.queryCommandSupported('insertText')) {
|
|
11419
11409
|
document.execCommand('insertText', false, text);
|
|
11420
11410
|
} else {
|
|
11421
|
-
var
|
|
11422
|
-
range.
|
|
11423
|
-
|
|
11424
|
-
|
|
11425
|
-
|
|
11426
|
-
|
|
11427
|
-
|
|
11428
|
-
|
|
11429
|
-
|
|
11411
|
+
var _document$getSelectio;
|
|
11412
|
+
var range = (_document$getSelectio = document.getSelection()) === null || _document$getSelectio === void 0 ? void 0 : _document$getSelectio.getRangeAt(0);
|
|
11413
|
+
if (range) {
|
|
11414
|
+
range.deleteContents();
|
|
11415
|
+
var textNode = document.createTextNode(text);
|
|
11416
|
+
range.insertNode(textNode);
|
|
11417
|
+
range.selectNodeContents(textNode);
|
|
11418
|
+
range.collapse(false);
|
|
11419
|
+
var selection = window.getSelection();
|
|
11420
|
+
selection === null || selection === void 0 ? void 0 : selection.removeAllRanges();
|
|
11421
|
+
selection === null || selection === void 0 ? void 0 : selection.addRange(range);
|
|
11422
|
+
}
|
|
11430
11423
|
}
|
|
11431
11424
|
};
|
|
11432
11425
|
React$1.useEffect(function () {
|
|
@@ -11434,28 +11427,29 @@ function TextEditor(props) {
|
|
|
11434
11427
|
editor.addEventListener('input', handleChange);
|
|
11435
11428
|
editor.addEventListener('paste', handlePaste);
|
|
11436
11429
|
return function () {
|
|
11437
|
-
editor.
|
|
11430
|
+
editor.removeEventListener('paste', handlePaste);
|
|
11438
11431
|
editor.removeEventListener('input', handleChange);
|
|
11439
11432
|
};
|
|
11440
11433
|
}, []);
|
|
11441
11434
|
React$1.useEffect(function () {
|
|
11442
11435
|
var editor = document.querySelector("#" + id);
|
|
11443
11436
|
if (editor.innerHTML.toString() !== props.value) {
|
|
11444
|
-
|
|
11437
|
+
var _props$value;
|
|
11438
|
+
editor.innerHTML = (_props$value = props.value) != null ? _props$value : '';
|
|
11445
11439
|
}
|
|
11446
11440
|
}, [props.value]);
|
|
11447
|
-
return
|
|
11441
|
+
return React$1__default.createElement("div", {
|
|
11448
11442
|
className: rootClassName$2E + "-outer"
|
|
11449
|
-
}, !props.hideTopLabel &&
|
|
11443
|
+
}, !props.hideTopLabel && React$1__default.createElement("div", {
|
|
11450
11444
|
className: getMergedClassNames([rootClassName$2E + "-top-label", props.disabled ? 'disabled' : '', props.error ? 'error' : ''])
|
|
11451
|
-
}, props.topLabel),
|
|
11445
|
+
}, props.topLabel), React$1__default.createElement("div", Object.assign({}, getProps()), React$1__default.createElement("div", {
|
|
11452
11446
|
className: rootClassName$2E + "-header"
|
|
11453
|
-
},
|
|
11447
|
+
}, React$1__default.createElement("div", {
|
|
11454
11448
|
className: rootClassName$2E + "-left-content"
|
|
11455
|
-
},
|
|
11449
|
+
}, React$1__default.createElement(DropdownMenu, {
|
|
11456
11450
|
opened: fontOpened,
|
|
11457
11451
|
setOpened: setFontOpened,
|
|
11458
|
-
content:
|
|
11452
|
+
content: React$1__default.createElement(TextEditorTitleChoser, {
|
|
11459
11453
|
opened: fontOpened,
|
|
11460
11454
|
onChange: function onChange(title) {
|
|
11461
11455
|
if (title === void 0) {
|
|
@@ -11465,144 +11459,146 @@ function TextEditor(props) {
|
|
|
11465
11459
|
setFontOpened(false);
|
|
11466
11460
|
}
|
|
11467
11461
|
})
|
|
11468
|
-
},
|
|
11462
|
+
}, React$1__default.createElement(TextEditorHeaderButton, {
|
|
11469
11463
|
disabled: props.disabled,
|
|
11470
11464
|
onClick: function onClick() {
|
|
11471
|
-
|
|
11465
|
+
var _document$querySelect;
|
|
11466
|
+
(_document$querySelect = document.querySelector("#" + id)) === null || _document$querySelect === void 0 ? void 0 : _document$querySelect.focus();
|
|
11472
11467
|
setFontOpened(!fontOpened);
|
|
11473
11468
|
},
|
|
11474
|
-
icon:
|
|
11475
|
-
})),
|
|
11469
|
+
icon: React$1__default.createElement(FontIcon, null)
|
|
11470
|
+
})), React$1__default.createElement(DropdownMenu, {
|
|
11476
11471
|
opened: fontColorOpened,
|
|
11477
11472
|
setOpened: setFontColorOpened,
|
|
11478
|
-
content:
|
|
11473
|
+
content: React$1__default.createElement(TextEditorColorPicker, {
|
|
11479
11474
|
opened: fontColorOpened,
|
|
11480
|
-
atualColor: cursor.foreColor,
|
|
11475
|
+
atualColor: (_cursor$foreColor = cursor.foreColor) != null ? _cursor$foreColor : '',
|
|
11481
11476
|
onChange: function onChange(color) {
|
|
11477
|
+
var _document$querySelect2;
|
|
11482
11478
|
format('foreColor', color);
|
|
11483
11479
|
setFontColorOpened(false);
|
|
11484
|
-
document.querySelector("#" + id).focus();
|
|
11480
|
+
(_document$querySelect2 = document.querySelector("#" + id)) === null || _document$querySelect2 === void 0 ? void 0 : _document$querySelect2.focus();
|
|
11485
11481
|
}
|
|
11486
11482
|
})
|
|
11487
|
-
},
|
|
11483
|
+
}, React$1__default.createElement(TextEditorHeaderButton, {
|
|
11488
11484
|
disabled: props.disabled,
|
|
11489
11485
|
onClick: function onClick() {
|
|
11490
|
-
|
|
11486
|
+
var _document$querySelect3;
|
|
11487
|
+
(_document$querySelect3 = document.querySelector("#" + id)) === null || _document$querySelect3 === void 0 ? void 0 : _document$querySelect3.focus();
|
|
11491
11488
|
setFontColorOpened(!fontColorOpened);
|
|
11492
11489
|
},
|
|
11493
|
-
icon:
|
|
11490
|
+
icon: React$1__default.createElement(FontColorIcon, {
|
|
11494
11491
|
gota: cursor.foreColor
|
|
11495
11492
|
})
|
|
11496
|
-
})),
|
|
11493
|
+
})), React$1__default.createElement(TextEditorHeaderButton, {
|
|
11497
11494
|
disabled: props.disabled,
|
|
11498
11495
|
active: cursor.bold,
|
|
11499
|
-
icon:
|
|
11496
|
+
icon: React$1__default.createElement(BoldIcon, null),
|
|
11500
11497
|
onClick: function onClick() {
|
|
11498
|
+
var _document$querySelect4;
|
|
11501
11499
|
format('bold');
|
|
11502
|
-
document.querySelector("#" + id).focus();
|
|
11500
|
+
(_document$querySelect4 = document.querySelector("#" + id)) === null || _document$querySelect4 === void 0 ? void 0 : _document$querySelect4.focus();
|
|
11503
11501
|
}
|
|
11504
|
-
}),
|
|
11502
|
+
}), React$1__default.createElement(TextEditorHeaderButton, {
|
|
11505
11503
|
disabled: props.disabled,
|
|
11506
11504
|
active: cursor.italic,
|
|
11507
|
-
icon:
|
|
11505
|
+
icon: React$1__default.createElement(ItalicIcon, null),
|
|
11508
11506
|
onClick: function onClick() {
|
|
11507
|
+
var _document$querySelect5;
|
|
11509
11508
|
format('italic');
|
|
11510
|
-
document.querySelector("#" + id).focus();
|
|
11509
|
+
(_document$querySelect5 = document.querySelector("#" + id)) === null || _document$querySelect5 === void 0 ? void 0 : _document$querySelect5.focus();
|
|
11511
11510
|
}
|
|
11512
|
-
}),
|
|
11511
|
+
}), React$1__default.createElement(TextEditorHeaderButton, {
|
|
11513
11512
|
disabled: props.disabled,
|
|
11514
11513
|
active: cursor.underline,
|
|
11515
|
-
icon:
|
|
11514
|
+
icon: React$1__default.createElement(UnderlineIcon, null),
|
|
11516
11515
|
onClick: function onClick() {
|
|
11516
|
+
var _document$querySelect6;
|
|
11517
11517
|
format('underline');
|
|
11518
|
-
document.querySelector("#" + id).focus();
|
|
11518
|
+
(_document$querySelect6 = document.querySelector("#" + id)) === null || _document$querySelect6 === void 0 ? void 0 : _document$querySelect6.focus();
|
|
11519
11519
|
}
|
|
11520
|
-
}),
|
|
11520
|
+
}), React$1__default.createElement(DropdownMenu, {
|
|
11521
11521
|
opened: linkOpened,
|
|
11522
11522
|
setOpened: setLinkOpened,
|
|
11523
|
-
content:
|
|
11523
|
+
content: React$1__default.createElement(TextEditorUrlCreator, {
|
|
11524
11524
|
editorId: id,
|
|
11525
11525
|
opened: linkOpened,
|
|
11526
11526
|
onChange: function onChange(text, link, newTab) {
|
|
11527
|
+
var _document$querySelect7;
|
|
11527
11528
|
format('insertHTML', "<a href=\"" + link + "\"" + (newTab ? 'target="_blank"' : '') + ">" + text + "</a>");
|
|
11528
11529
|
setLinkOpened(false);
|
|
11529
|
-
document.querySelector("#" + id).focus();
|
|
11530
|
+
(_document$querySelect7 = document.querySelector("#" + id)) === null || _document$querySelect7 === void 0 ? void 0 : _document$querySelect7.focus();
|
|
11530
11531
|
}
|
|
11531
11532
|
})
|
|
11532
|
-
},
|
|
11533
|
+
}, React$1__default.createElement(TextEditorHeaderButton, {
|
|
11533
11534
|
disabled: props.disabled,
|
|
11534
11535
|
active: cursor.link,
|
|
11535
11536
|
onClick: function onClick() {
|
|
11536
|
-
|
|
11537
|
+
var _document$querySelect8;
|
|
11538
|
+
(_document$querySelect8 = document.querySelector("#" + id)) === null || _document$querySelect8 === void 0 ? void 0 : _document$querySelect8.focus();
|
|
11537
11539
|
setLinkOpened(!linkOpened);
|
|
11538
11540
|
},
|
|
11539
|
-
icon:
|
|
11540
|
-
})),
|
|
11541
|
+
icon: React$1__default.createElement(LinkIcon, null)
|
|
11542
|
+
})), React$1__default.createElement(TextEditorHeaderButton, {
|
|
11541
11543
|
disabled: props.disabled,
|
|
11542
11544
|
active: cursor.justifyLeft,
|
|
11543
|
-
icon:
|
|
11545
|
+
icon: React$1__default.createElement(AlignLeftIcon, null),
|
|
11544
11546
|
onClick: function onClick() {
|
|
11547
|
+
var _document$querySelect9;
|
|
11545
11548
|
format('justifyLeft');
|
|
11546
|
-
document.querySelector("#" + id).focus();
|
|
11549
|
+
(_document$querySelect9 = document.querySelector("#" + id)) === null || _document$querySelect9 === void 0 ? void 0 : _document$querySelect9.focus();
|
|
11547
11550
|
}
|
|
11548
|
-
}),
|
|
11551
|
+
}), React$1__default.createElement(TextEditorHeaderButton, {
|
|
11549
11552
|
disabled: props.disabled,
|
|
11550
11553
|
active: cursor.justifyFull,
|
|
11551
|
-
icon:
|
|
11554
|
+
icon: React$1__default.createElement(AlignJustifyIcon, null),
|
|
11552
11555
|
onClick: function onClick() {
|
|
11556
|
+
var _document$querySelect10;
|
|
11553
11557
|
format('justifyFull');
|
|
11554
|
-
document.querySelector("#" + id).focus();
|
|
11558
|
+
(_document$querySelect10 = document.querySelector("#" + id)) === null || _document$querySelect10 === void 0 ? void 0 : _document$querySelect10.focus();
|
|
11555
11559
|
}
|
|
11556
|
-
}),
|
|
11560
|
+
}), React$1__default.createElement(TextEditorHeaderButton, {
|
|
11557
11561
|
disabled: props.disabled,
|
|
11558
11562
|
active: cursor.justifyCenter,
|
|
11559
|
-
icon:
|
|
11563
|
+
icon: React$1__default.createElement(AlignCenterIcon, null),
|
|
11560
11564
|
onClick: function onClick() {
|
|
11565
|
+
var _document$querySelect11;
|
|
11561
11566
|
format('justifyCenter');
|
|
11562
|
-
document.querySelector("#" + id).focus();
|
|
11567
|
+
(_document$querySelect11 = document.querySelector("#" + id)) === null || _document$querySelect11 === void 0 ? void 0 : _document$querySelect11.focus();
|
|
11563
11568
|
}
|
|
11564
|
-
}),
|
|
11569
|
+
}), React$1__default.createElement(TextEditorHeaderButton, {
|
|
11565
11570
|
disabled: props.disabled,
|
|
11566
11571
|
active: cursor.justifyRight,
|
|
11567
|
-
icon:
|
|
11572
|
+
icon: React$1__default.createElement(AlignRightIcon, null),
|
|
11568
11573
|
onClick: function onClick() {
|
|
11574
|
+
var _document$querySelect12;
|
|
11569
11575
|
format('justifyRight');
|
|
11570
|
-
document.querySelector("#" + id).focus();
|
|
11576
|
+
(_document$querySelect12 = document.querySelector("#" + id)) === null || _document$querySelect12 === void 0 ? void 0 : _document$querySelect12.focus();
|
|
11571
11577
|
}
|
|
11572
|
-
})),
|
|
11578
|
+
})), React$1__default.createElement("div", {
|
|
11573
11579
|
className: rootClassName$2E + "-right-content"
|
|
11574
|
-
},
|
|
11580
|
+
}, React$1__default.createElement(TextEditorHeaderButton, {
|
|
11575
11581
|
disabled: props.disabled,
|
|
11576
|
-
icon:
|
|
11582
|
+
icon: React$1__default.createElement(UndoIcon, null),
|
|
11577
11583
|
onClick: function onClick() {
|
|
11578
11584
|
return format('undo');
|
|
11579
11585
|
}
|
|
11580
|
-
}),
|
|
11586
|
+
}), React$1__default.createElement(TextEditorHeaderButton, {
|
|
11581
11587
|
disabled: props.disabled,
|
|
11582
|
-
icon:
|
|
11588
|
+
icon: React$1__default.createElement(RedoIcon, null),
|
|
11583
11589
|
onClick: function onClick() {
|
|
11584
11590
|
return format('redo');
|
|
11585
11591
|
}
|
|
11586
|
-
}))),
|
|
11592
|
+
}))), React$1__default.createElement("div", {
|
|
11587
11593
|
id: id,
|
|
11588
11594
|
className: rootClassName$2E + "-editor",
|
|
11589
11595
|
contentEditable: !props.disabled,
|
|
11590
11596
|
onClick: verifyCursor,
|
|
11591
11597
|
onKeyUp: verifyCursor
|
|
11592
|
-
})), !props.hideHelperText &&
|
|
11598
|
+
})), !props.hideHelperText && React$1__default.createElement("div", {
|
|
11593
11599
|
className: getMergedClassNames([rootClassName$2E + "-helper-text", props.disabled ? 'disabled' : '', props.error ? 'error' : ''])
|
|
11594
11600
|
}, props.helperText));
|
|
11595
11601
|
}
|
|
11596
|
-
TextEditor.propTypes = {
|
|
11597
|
-
disabled: propTypes.bool,
|
|
11598
|
-
value: propTypes.string,
|
|
11599
|
-
onChange: propTypes.func,
|
|
11600
|
-
topLabel: propTypes.oneOfType([propTypes.string, propTypes.object]),
|
|
11601
|
-
helperText: propTypes.oneOfType([propTypes.string, propTypes.object]),
|
|
11602
|
-
hideTopLabel: propTypes.bool,
|
|
11603
|
-
hideHelperText: propTypes.bool,
|
|
11604
|
-
error: propTypes.bool
|
|
11605
|
-
};
|
|
11606
11602
|
TextEditor.defaultProps = {
|
|
11607
11603
|
disabled: false,
|
|
11608
11604
|
value: '',
|
|
@@ -44136,8 +44132,8 @@ var DecreaseIcon = function DecreaseIcon() {
|
|
|
44136
44132
|
viewBox: '0 0 24 24',
|
|
44137
44133
|
xmlns: 'http://www.w3.org/2000/svg'
|
|
44138
44134
|
}, React$1__default.createElement("path", {
|
|
44139
|
-
|
|
44140
|
-
|
|
44135
|
+
fillRule: 'evenodd',
|
|
44136
|
+
clipRule: 'evenodd',
|
|
44141
44137
|
d: 'M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2ZM12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3ZM17.5 12C17.5 11.7239 17.2761 11.5 17 11.5H7L6.91012 11.5081C6.67688 11.5504 6.5 11.7545 6.5 12C6.5 12.2761 6.72386 12.5 7 12.5H17L17.0899 12.4919C17.3231 12.4496 17.5 12.2455 17.5 12Z',
|
|
44142
44138
|
fill: 'currentColor'
|
|
44143
44139
|
}));
|