@pie-lib/text-select 1.30.0 → 1.32.0-mui-update.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.
@@ -1,168 +1,227 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports["default"] = exports.TokenTypes = exports.Token = void 0;
9
-
10
8
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
11
-
12
9
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
13
-
14
- var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
15
-
16
- var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
17
-
18
10
  var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
19
-
20
11
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
21
-
12
+ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
22
13
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
23
-
24
14
  var _react = _interopRequireDefault(require("react"));
25
-
26
15
  var _propTypes = _interopRequireDefault(require("prop-types"));
27
-
28
- var _styles = require("@material-ui/core/styles");
29
-
16
+ var _styles = require("@mui/material/styles");
30
17
  var _classnames = _interopRequireDefault(require("classnames"));
31
-
32
- var _Check = _interopRequireDefault(require("@material-ui/icons/Check"));
33
-
34
- var _Close = _interopRequireDefault(require("@material-ui/icons/Close"));
35
-
18
+ var _Check = _interopRequireDefault(require("@mui/icons-material/Check"));
19
+ var _Close = _interopRequireDefault(require("@mui/icons-material/Close"));
36
20
  var _renderUi = require("@pie-lib/render-ui");
37
-
38
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
39
-
40
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
41
-
42
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
43
-
44
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
45
-
21
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
22
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
23
+ function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
24
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
46
25
  // we need to use a larger line height for the token to be more readable
47
- var LINE_HEIGHT_MULTIPLIER = 3.2; // we need a bit more space for correctness indicators
48
-
26
+ var LINE_HEIGHT_MULTIPLIER = 3.2;
27
+ // we need a bit more space for correctness indicators
49
28
  var CORRECTNESS_LINE_HEIGHT_MULTIPLIER = 3.4;
50
29
  var CORRECTNESS_PADDING = 2;
51
30
 
52
- var Wrapper = function Wrapper(_ref) {
53
- var useWrapper = _ref.useWrapper,
54
- children = _ref.children,
55
- classNameContainer = _ref.classNameContainer,
56
- iconClass = _ref.iconClass,
57
- Icon = _ref.Icon;
58
- return useWrapper ? /*#__PURE__*/_react["default"].createElement("span", {
59
- className: classNameContainer
60
- }, children, /*#__PURE__*/_react["default"].createElement(Icon, {
61
- className: iconClass
62
- })) : children;
31
+ // Styled components for different token states
32
+ var StyledToken = (0, _styles.styled)('span')(function (_ref) {
33
+ var theme = _ref.theme;
34
+ return (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])({
35
+ cursor: 'pointer',
36
+ textIndent: 0,
37
+ '&.disabled': {
38
+ cursor: 'inherit',
39
+ color: _renderUi.color.disabled()
40
+ },
41
+ '&.disabledBlack': {
42
+ cursor: 'inherit'
43
+ },
44
+ '&.disabledAndSelected': {
45
+ backgroundColor: _renderUi.color.blueGrey100()
46
+ }
47
+ }, "@media (min-width: ".concat(theme.breakpoints.values.md, "px)"), {
48
+ '&.selectable:hover': {
49
+ backgroundColor: _renderUi.color.blueGrey300(),
50
+ color: theme.palette.common.black,
51
+ '& > *': {
52
+ backgroundColor: _renderUi.color.blueGrey300()
53
+ }
54
+ }
55
+ }), '&.selected', {
56
+ backgroundColor: _renderUi.color.blueGrey100(),
57
+ color: theme.palette.common.black,
58
+ lineHeight: "".concat(theme.spacing(1) * LINE_HEIGHT_MULTIPLIER, "px"),
59
+ border: "solid 2px ".concat(_renderUi.color.blueGrey900()),
60
+ borderRadius: '4px',
61
+ '& > *': {
62
+ backgroundColor: _renderUi.color.blueGrey100()
63
+ }
64
+ }), '&.highlight', {
65
+ border: "dashed 2px ".concat(_renderUi.color.blueGrey600()),
66
+ borderRadius: '4px',
67
+ lineHeight: "".concat(theme.spacing(1) * LINE_HEIGHT_MULTIPLIER, "px")
68
+ }), '&.print', {
69
+ border: "dashed 2px ".concat(_renderUi.color.blueGrey600()),
70
+ borderRadius: '4px',
71
+ lineHeight: "".concat(theme.spacing(1) * LINE_HEIGHT_MULTIPLIER, "px"),
72
+ color: _renderUi.color.text()
73
+ }), '&.custom', {
74
+ display: 'initial'
75
+ });
76
+ });
77
+ var StyledCommonTokenStyle = (0, _styles.styled)('span')(function (_ref3) {
78
+ var theme = _ref3.theme;
79
+ return {
80
+ position: 'relative',
81
+ borderRadius: '4px',
82
+ color: theme.palette.common.black,
83
+ lineHeight: "".concat(theme.spacing(1) * CORRECTNESS_LINE_HEIGHT_MULTIPLIER + CORRECTNESS_PADDING, "px"),
84
+ padding: "".concat(CORRECTNESS_PADDING, "px")
85
+ };
86
+ });
87
+ var StyledCorrectContainer = (0, _styles.styled)(StyledCommonTokenStyle)(function () {
88
+ return {
89
+ border: "".concat(_renderUi.color.correctTertiary(), " solid 2px")
90
+ };
91
+ });
92
+ var StyledIncorrectContainer = (0, _styles.styled)(StyledCommonTokenStyle)(function () {
93
+ return {
94
+ border: "".concat(_renderUi.color.incorrectWithIcon(), " solid 2px")
95
+ };
96
+ });
97
+ var StyledMissingContainer = (0, _styles.styled)(StyledCommonTokenStyle)(function () {
98
+ return {
99
+ border: "".concat(_renderUi.color.incorrectWithIcon(), " dashed 2px")
100
+ };
101
+ });
102
+ var StyledCorrectnessIcon = (0, _styles.styled)('span')(function () {
103
+ return {
104
+ color: _renderUi.color.white(),
105
+ position: 'absolute',
106
+ top: '-8px',
107
+ left: '-8px',
108
+ borderRadius: '50%',
109
+ fontSize: '12px',
110
+ padding: '2px',
111
+ display: 'inline-block'
112
+ };
113
+ });
114
+ var StyledCorrectIcon = (0, _styles.styled)(StyledCorrectnessIcon)(function () {
115
+ return {
116
+ backgroundColor: _renderUi.color.correctTertiary()
117
+ };
118
+ });
119
+ var StyledIncorrectIcon = (0, _styles.styled)(StyledCorrectnessIcon)(function () {
120
+ return {
121
+ backgroundColor: _renderUi.color.incorrectWithIcon()
122
+ };
123
+ });
124
+ var Wrapper = function Wrapper(_ref4) {
125
+ var useWrapper = _ref4.useWrapper,
126
+ children = _ref4.children,
127
+ Container = _ref4.Container,
128
+ IconComponent = _ref4.IconComponent,
129
+ Icon = _ref4.Icon;
130
+ return useWrapper ? /*#__PURE__*/_react["default"].createElement(Container, null, children, Icon && IconComponent ? /*#__PURE__*/_react["default"].createElement(IconComponent, null, /*#__PURE__*/_react["default"].createElement(Icon, {
131
+ fontSize: "inherit"
132
+ })) : null) : children;
63
133
  };
64
-
65
134
  Wrapper.propTypes = {
66
135
  useWrapper: _propTypes["default"].bool,
67
- classNameContainer: _propTypes["default"].string,
68
- iconClass: _propTypes["default"].string,
69
- Icon: _propTypes["default"].func,
70
- children: _propTypes["default"].element
136
+ Container: _propTypes["default"].elementType,
137
+ IconComponent: _propTypes["default"].elementType,
138
+ Icon: _propTypes["default"].elementType,
139
+ children: _propTypes["default"].node
71
140
  };
72
- var TokenTypes = {
141
+ var TokenTypes = exports.TokenTypes = {
73
142
  text: _propTypes["default"].string,
74
143
  selectable: _propTypes["default"].bool
75
144
  };
76
- exports.TokenTypes = TokenTypes;
77
-
78
- var Token = /*#__PURE__*/function (_React$Component) {
79
- (0, _inherits2["default"])(Token, _React$Component);
80
-
81
- var _super = _createSuper(Token);
82
-
145
+ var Token = exports.Token = /*#__PURE__*/function (_React$Component) {
83
146
  function Token() {
84
147
  var _this;
85
-
86
148
  (0, _classCallCheck2["default"])(this, Token);
87
-
88
149
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
89
150
  args[_key] = arguments[_key];
90
151
  }
91
-
92
- _this = _super.call.apply(_super, [this].concat(args));
93
- (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "getClassAndIconConfig", function () {
152
+ _this = _callSuper(this, Token, [].concat(args));
153
+ (0, _defineProperty2["default"])(_this, "getClassAndIconConfig", function () {
94
154
  var _this$props = _this.props,
95
- selectable = _this$props.selectable,
96
- selected = _this$props.selected,
97
- classes = _this$props.classes,
98
- classNameProp = _this$props.className,
99
- disabled = _this$props.disabled,
100
- highlight = _this$props.highlight,
101
- correct = _this$props.correct,
102
- animationsDisabled = _this$props.animationsDisabled,
103
- isMissing = _this$props.isMissing;
155
+ selectable = _this$props.selectable,
156
+ selected = _this$props.selected,
157
+ classNameProp = _this$props.className,
158
+ disabled = _this$props.disabled,
159
+ highlight = _this$props.highlight,
160
+ correct = _this$props.correct,
161
+ animationsDisabled = _this$props.animationsDisabled,
162
+ isMissing = _this$props.isMissing;
104
163
  var isTouchEnabled = 'ontouchstart' in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0;
105
164
  var baseClassName = Token.rootClassName;
106
- var classNameContainer;
165
+ var Container;
107
166
  var Icon;
108
- var iconClass;
109
-
167
+ var IconComponent;
110
168
  if (correct === undefined && selected && disabled) {
111
169
  return {
112
- className: (0, _classnames["default"])(classes.token, classes.selected, classes.disabledBlack)
170
+ className: (0, _classnames["default"])(baseClassName, 'selected', 'disabledBlack', classNameProp),
171
+ Component: StyledToken
113
172
  };
114
173
  }
115
-
116
174
  if (correct !== undefined) {
117
175
  var isCorrect = correct === true;
118
176
  return {
119
- className: (0, _classnames["default"])(baseClassName, classes.custom),
120
- classNameContainer: (0, _classnames["default"])(isCorrect ? classes.correct : classes.incorrect, classes.commonTokenStyle),
177
+ className: (0, _classnames["default"])(baseClassName, 'custom', classNameProp),
178
+ Component: StyledToken,
179
+ Container: isCorrect ? StyledCorrectContainer : StyledIncorrectContainer,
121
180
  Icon: isCorrect ? _Check["default"] : _Close["default"],
122
- iconClass: (0, _classnames["default"])(classes.correctnessIndicatorIcon, isCorrect ? classes.correctIcon : classes.incorrectIcon)
181
+ IconComponent: isCorrect ? StyledCorrectIcon : StyledIncorrectIcon
123
182
  };
124
183
  }
125
-
126
184
  if (isMissing) {
127
185
  return {
128
- className: (0, _classnames["default"])(baseClassName, classes.custom, classes.missing, classes.commonTokenStyle),
129
- classNameContainer: classes.commonTokenStyle,
186
+ className: (0, _classnames["default"])(baseClassName, 'custom', 'missing', classNameProp),
187
+ Component: StyledToken,
188
+ Container: StyledMissingContainer,
130
189
  Icon: _Close["default"],
131
- iconClass: (0, _classnames["default"])(classes.correctnessIndicatorIcon, classes.incorrectIcon)
190
+ IconComponent: StyledIncorrectIcon
132
191
  };
133
192
  }
134
-
135
193
  return {
136
- className: (0, _classnames["default"])(baseClassName, classes.token, disabled && classes.disabled, selectable && !disabled && !isTouchEnabled && classes.selectable, selected && !disabled && classes.selected, selected && disabled && classes.disabledAndSelected, highlight && selectable && !disabled && !selected && classes.highlight, animationsDisabled && classes.print, classNameProp),
137
- classNameContainer: classNameContainer,
194
+ className: (0, _classnames["default"])(baseClassName, disabled && 'disabled', selectable && !disabled && !isTouchEnabled && 'selectable', selected && !disabled && 'selected', selected && disabled && 'disabledAndSelected', highlight && selectable && !disabled && !selected && 'highlight', animationsDisabled && 'print', classNameProp),
195
+ Component: StyledToken,
196
+ Container: Container,
138
197
  Icon: Icon,
139
- iconClass: iconClass
198
+ IconComponent: IconComponent
140
199
  };
141
200
  });
142
201
  return _this;
143
202
  }
144
-
145
- (0, _createClass2["default"])(Token, [{
203
+ (0, _inherits2["default"])(Token, _React$Component);
204
+ return (0, _createClass2["default"])(Token, [{
146
205
  key: "render",
147
206
  value: function render() {
148
207
  var _this$props2 = this.props,
149
- text = _this$props2.text,
150
- index = _this$props2.index,
151
- correct = _this$props2.correct,
152
- isMissing = _this$props2.isMissing;
153
-
208
+ text = _this$props2.text,
209
+ index = _this$props2.index,
210
+ correct = _this$props2.correct,
211
+ isMissing = _this$props2.isMissing;
154
212
  var _this$getClassAndIcon = this.getClassAndIconConfig(),
155
- className = _this$getClassAndIcon.className,
156
- classNameContainer = _this$getClassAndIcon.classNameContainer,
157
- Icon = _this$getClassAndIcon.Icon,
158
- iconClass = _this$getClassAndIcon.iconClass;
159
-
213
+ className = _this$getClassAndIcon.className,
214
+ Component = _this$getClassAndIcon.Component,
215
+ Container = _this$getClassAndIcon.Container,
216
+ Icon = _this$getClassAndIcon.Icon,
217
+ IconComponent = _this$getClassAndIcon.IconComponent;
218
+ var TokenComponent = Component || StyledToken;
160
219
  return /*#__PURE__*/_react["default"].createElement(Wrapper, {
161
220
  useWrapper: correct !== undefined || isMissing,
162
- classNameContainer: classNameContainer,
163
- iconClass: iconClass,
221
+ Container: Container,
222
+ IconComponent: IconComponent,
164
223
  Icon: Icon
165
- }, /*#__PURE__*/_react["default"].createElement("span", {
224
+ }, /*#__PURE__*/_react["default"].createElement(TokenComponent, {
166
225
  className: className,
167
226
  dangerouslySetInnerHTML: {
168
227
  __html: (text || '').replace(/\n/g, '<br>')
@@ -171,13 +230,9 @@ var Token = /*#__PURE__*/function (_React$Component) {
171
230
  }));
172
231
  }
173
232
  }]);
174
- return Token;
175
233
  }(_react["default"].Component);
176
-
177
- exports.Token = Token;
178
234
  (0, _defineProperty2["default"])(Token, "rootClassName", 'tokenRootClass');
179
235
  (0, _defineProperty2["default"])(Token, "propTypes", _objectSpread(_objectSpread({}, TokenTypes), {}, {
180
- classes: _propTypes["default"].object.isRequired,
181
236
  text: _propTypes["default"].string.isRequired,
182
237
  className: _propTypes["default"].string,
183
238
  disabled: _propTypes["default"].bool,
@@ -188,89 +243,5 @@ exports.Token = Token;
188
243
  selectable: false,
189
244
  text: ''
190
245
  });
191
-
192
- var _default = (0, _styles.withStyles)(function (theme) {
193
- return {
194
- token: {
195
- cursor: 'pointer',
196
- textIndent: 0
197
- },
198
- disabled: {
199
- cursor: 'inherit',
200
- color: _renderUi.color.disabled()
201
- },
202
- disabledBlack: {
203
- cursor: 'inherit'
204
- },
205
- disabledAndSelected: {
206
- backgroundColor: _renderUi.color.blueGrey100()
207
- },
208
- selectable: (0, _defineProperty2["default"])({}, theme.breakpoints.up(769), {
209
- '&:hover': {
210
- backgroundColor: _renderUi.color.blueGrey300(),
211
- color: theme.palette.common.black,
212
- '& > *': {
213
- backgroundColor: _renderUi.color.blueGrey300()
214
- }
215
- }
216
- }),
217
- selected: {
218
- backgroundColor: _renderUi.color.blueGrey100(),
219
- color: theme.palette.common.black,
220
- lineHeight: "".concat(theme.spacing.unit * LINE_HEIGHT_MULTIPLIER, "px"),
221
- border: "solid 2px ".concat(_renderUi.color.blueGrey900()),
222
- borderRadius: '4px',
223
- '& > *': {
224
- backgroundColor: _renderUi.color.blueGrey100()
225
- }
226
- },
227
- highlight: {
228
- border: "dashed 2px ".concat(_renderUi.color.blueGrey600()),
229
- borderRadius: '4px',
230
- lineHeight: "".concat(theme.spacing.unit * LINE_HEIGHT_MULTIPLIER, "px")
231
- },
232
- print: {
233
- border: "dashed 2px ".concat(_renderUi.color.blueGrey600()),
234
- borderRadius: '4px',
235
- lineHeight: "".concat(theme.spacing.unit * LINE_HEIGHT_MULTIPLIER, "px"),
236
- color: _renderUi.color.text()
237
- },
238
- custom: {
239
- display: 'initial'
240
- },
241
- commonTokenStyle: {
242
- position: 'relative',
243
- borderRadius: '4px',
244
- color: theme.palette.common.black,
245
- lineHeight: "".concat(theme.spacing.unit * CORRECTNESS_LINE_HEIGHT_MULTIPLIER + CORRECTNESS_PADDING, "px"),
246
- padding: "".concat(CORRECTNESS_PADDING, "px")
247
- },
248
- correct: {
249
- border: "".concat(_renderUi.color.correctTertiary(), " solid 2px")
250
- },
251
- incorrect: {
252
- border: "".concat(_renderUi.color.incorrectWithIcon(), " solid 2px")
253
- },
254
- missing: {
255
- border: "".concat(_renderUi.color.incorrectWithIcon(), " dashed 2px")
256
- },
257
- incorrectIcon: {
258
- backgroundColor: _renderUi.color.incorrectWithIcon()
259
- },
260
- correctIcon: {
261
- backgroundColor: _renderUi.color.correctTertiary()
262
- },
263
- correctnessIndicatorIcon: {
264
- color: _renderUi.color.white(),
265
- position: 'absolute',
266
- top: '-8px',
267
- left: '-8px',
268
- borderRadius: '50%',
269
- fontSize: '12px',
270
- padding: '2px'
271
- }
272
- };
273
- })(Token);
274
-
275
- exports["default"] = _default;
246
+ var _default = exports["default"] = Token;
276
247
  //# sourceMappingURL=token.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/token-select/token.jsx"],"names":["LINE_HEIGHT_MULTIPLIER","CORRECTNESS_LINE_HEIGHT_MULTIPLIER","CORRECTNESS_PADDING","Wrapper","useWrapper","children","classNameContainer","iconClass","Icon","propTypes","PropTypes","bool","string","func","element","TokenTypes","text","selectable","Token","props","selected","classes","classNameProp","className","disabled","highlight","correct","animationsDisabled","isMissing","isTouchEnabled","window","navigator","maxTouchPoints","msMaxTouchPoints","baseClassName","rootClassName","undefined","token","disabledBlack","isCorrect","custom","incorrect","commonTokenStyle","Check","Close","correctnessIndicatorIcon","correctIcon","incorrectIcon","missing","disabledAndSelected","print","index","getClassAndIconConfig","__html","replace","React","Component","object","isRequired","theme","cursor","textIndent","color","backgroundColor","blueGrey100","breakpoints","up","blueGrey300","palette","common","black","lineHeight","spacing","unit","border","blueGrey900","borderRadius","blueGrey600","display","position","padding","correctTertiary","incorrectWithIcon","white","top","left","fontSize"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAEA;;;;;;;;;;A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AK,CAACa,OAAN,CAAcC,IAAd,GAAqBxE,kCAArB,GAA0DC,mBAA/D,OAJM;AAKhB8E,MAAAA,OAAO,YAAK9E,mBAAL;AALS,KAlDb;AAyDLwB,IAAAA,OAAO,EAAE;AACPgD,MAAAA,MAAM,YAAKZ,gBAAMmB,eAAN,EAAL;AADC,KAzDJ;AA4DLxC,IAAAA,SAAS,EAAE;AACTiC,MAAAA,MAAM,YAAKZ,gBAAMoB,iBAAN,EAAL;AADG,KA5DN;AA+DLlC,IAAAA,OAAO,EAAE;AACP0B,MAAAA,MAAM,YAAKZ,gBAAMoB,iBAAN,EAAL;AADC,KA/DJ;AAkELnC,IAAAA,aAAa,EAAE;AACbgB,MAAAA,eAAe,EAAED,gBAAMoB,iBAAN;AADJ,KAlEV;AAqELpC,IAAAA,WAAW,EAAE;AACXiB,MAAAA,eAAe,EAAED,gBAAMmB,eAAN;AADN,KArER;AAwELpC,IAAAA,wBAAwB,EAAE;AACxBiB,MAAAA,KAAK,EAAEA,gBAAMqB,KAAN,EADiB;AAExBJ,MAAAA,QAAQ,EAAE,UAFc;AAGxBK,MAAAA,GAAG,EAAE,MAHmB;AAIxBC,MAAAA,IAAI,EAAE,MAJkB;AAKxBT,MAAAA,YAAY,EAAE,KALU;AAMxBU,MAAAA,QAAQ,EAAE,MANc;AAOxBN,MAAAA,OAAO,EAAE;AAPe;AAxErB,GAAP;AAkFD,CAnFc,EAmFZ9D,KAnFY,C","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { withStyles } from '@material-ui/core/styles';\nimport classNames from 'classnames';\nimport Check from '@material-ui/icons/Check';\nimport Close from '@material-ui/icons/Close';\n\nimport { color } from '@pie-lib/render-ui';\n\n// we need to use a larger line height for the token to be more readable\nconst LINE_HEIGHT_MULTIPLIER = 3.2;\n// we need a bit more space for correctness indicators\nconst CORRECTNESS_LINE_HEIGHT_MULTIPLIER = 3.4;\nconst CORRECTNESS_PADDING = 2;\n\nconst Wrapper = ({ useWrapper, children, classNameContainer, iconClass, Icon }) =>\n useWrapper ? (\n <span className={classNameContainer}>\n {children}\n <Icon className={iconClass} />\n </span>\n ) : (\n children\n );\n\nWrapper.propTypes = {\n useWrapper: PropTypes.bool,\n classNameContainer: PropTypes.string,\n iconClass: PropTypes.string,\n Icon: PropTypes.func,\n children: PropTypes.element,\n};\n\nexport const TokenTypes = {\n text: PropTypes.string,\n selectable: PropTypes.bool,\n};\n\nexport class Token extends React.Component {\n static rootClassName = 'tokenRootClass';\n\n static propTypes = {\n ...TokenTypes,\n classes: PropTypes.object.isRequired,\n text: PropTypes.string.isRequired,\n className: PropTypes.string,\n disabled: PropTypes.bool,\n highlight: PropTypes.bool,\n correct: PropTypes.bool,\n };\n\n static defaultProps = {\n selectable: false,\n text: '',\n };\n\n getClassAndIconConfig = () => {\n const {\n selectable,\n selected,\n classes,\n className: classNameProp,\n disabled,\n highlight,\n correct,\n animationsDisabled,\n isMissing,\n } = this.props;\n const isTouchEnabled = 'ontouchstart' in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0;\n const baseClassName = Token.rootClassName;\n let classNameContainer;\n let Icon;\n let iconClass;\n\n if (correct === undefined && selected && disabled) {\n return {\n className: classNames(classes.token, classes.selected, classes.disabledBlack),\n };\n }\n\n if (correct !== undefined) {\n const isCorrect = correct === true;\n return {\n className: classNames(baseClassName, classes.custom),\n classNameContainer: classNames(isCorrect ? classes.correct : classes.incorrect, classes.commonTokenStyle),\n Icon: isCorrect ? Check : Close,\n iconClass: classNames(\n classes.correctnessIndicatorIcon,\n isCorrect ? classes.correctIcon : classes.incorrectIcon,\n ),\n };\n }\n\n if (isMissing) {\n return {\n className: classNames(baseClassName, classes.custom, classes.missing, classes.commonTokenStyle),\n classNameContainer: classes.commonTokenStyle,\n Icon: Close,\n iconClass: classNames(classes.correctnessIndicatorIcon, classes.incorrectIcon),\n };\n }\n\n return {\n className: classNames(\n baseClassName,\n classes.token,\n disabled && classes.disabled,\n selectable && !disabled && !isTouchEnabled && classes.selectable,\n selected && !disabled && classes.selected,\n selected && disabled && classes.disabledAndSelected,\n highlight && selectable && !disabled && !selected && classes.highlight,\n animationsDisabled && classes.print,\n classNameProp,\n ),\n classNameContainer,\n Icon,\n iconClass,\n };\n };\n\n render() {\n const { text, index, correct, isMissing } = this.props;\n const { className, classNameContainer, Icon, iconClass } = this.getClassAndIconConfig();\n\n return (\n <Wrapper\n useWrapper={correct !== undefined || isMissing}\n classNameContainer={classNameContainer}\n iconClass={iconClass}\n Icon={Icon}\n >\n <span\n className={className}\n dangerouslySetInnerHTML={{ __html: (text || '').replace(/\\n/g, '<br>') }}\n data-indexkey={index}\n />\n </Wrapper>\n );\n }\n}\n\nexport default withStyles((theme) => {\n return {\n token: {\n cursor: 'pointer',\n textIndent: 0,\n },\n disabled: {\n cursor: 'inherit',\n color: color.disabled(),\n },\n disabledBlack: {\n cursor: 'inherit',\n },\n disabledAndSelected: {\n backgroundColor: color.blueGrey100(),\n },\n selectable: {\n [theme.breakpoints.up(769)]: {\n '&:hover': {\n backgroundColor: color.blueGrey300(),\n color: theme.palette.common.black,\n '& > *': {\n backgroundColor: color.blueGrey300(),\n },\n },\n },\n },\n selected: {\n backgroundColor: color.blueGrey100(),\n color: theme.palette.common.black,\n lineHeight: `${theme.spacing.unit * LINE_HEIGHT_MULTIPLIER}px`,\n border: `solid 2px ${color.blueGrey900()}`,\n borderRadius: '4px',\n '& > *': {\n backgroundColor: color.blueGrey100(),\n },\n },\n highlight: {\n border: `dashed 2px ${color.blueGrey600()}`,\n borderRadius: '4px',\n lineHeight: `${theme.spacing.unit * LINE_HEIGHT_MULTIPLIER}px`,\n },\n print: {\n border: `dashed 2px ${color.blueGrey600()}`,\n borderRadius: '4px',\n lineHeight: `${theme.spacing.unit * LINE_HEIGHT_MULTIPLIER}px`,\n color: color.text(),\n },\n custom: {\n display: 'initial',\n },\n commonTokenStyle: {\n position: 'relative',\n borderRadius: '4px',\n color: theme.palette.common.black,\n lineHeight: `${theme.spacing.unit * CORRECTNESS_LINE_HEIGHT_MULTIPLIER + CORRECTNESS_PADDING}px`,\n padding: `${CORRECTNESS_PADDING}px`,\n },\n correct: {\n border: `${color.correctTertiary()} solid 2px`,\n },\n incorrect: {\n border: `${color.incorrectWithIcon()} solid 2px`,\n },\n missing: {\n border: `${color.incorrectWithIcon()} dashed 2px`,\n },\n incorrectIcon: {\n backgroundColor: color.incorrectWithIcon(),\n },\n correctIcon: {\n backgroundColor: color.correctTertiary(),\n },\n correctnessIndicatorIcon: {\n color: color.white(),\n position: 'absolute',\n top: '-8px',\n left: '-8px',\n borderRadius: '50%',\n fontSize: '12px',\n padding: '2px',\n },\n };\n})(Token);\n"],"file":"token.js"}
1
+ {"version":3,"file":"token.js","names":["_react","_interopRequireDefault","require","_propTypes","_styles","_classnames","_Check","_Close","_renderUi","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","_callSuper","_getPrototypeOf2","_possibleConstructorReturn2","_isNativeReflectConstruct","Reflect","construct","constructor","Boolean","prototype","valueOf","call","LINE_HEIGHT_MULTIPLIER","CORRECTNESS_LINE_HEIGHT_MULTIPLIER","CORRECTNESS_PADDING","StyledToken","styled","_ref","theme","cursor","textIndent","color","disabled","backgroundColor","blueGrey100","concat","breakpoints","values","md","blueGrey300","palette","common","black","lineHeight","spacing","border","blueGrey900","borderRadius","blueGrey600","text","display","StyledCommonTokenStyle","_ref3","position","padding","StyledCorrectContainer","correctTertiary","StyledIncorrectContainer","incorrectWithIcon","StyledMissingContainer","StyledCorrectnessIcon","white","top","left","fontSize","StyledCorrectIcon","StyledIncorrectIcon","Wrapper","_ref4","useWrapper","children","Container","IconComponent","Icon","createElement","propTypes","PropTypes","bool","elementType","node","TokenTypes","exports","string","selectable","Token","_React$Component","_this","_classCallCheck2","_len","args","Array","_key","_this$props","props","selected","classNameProp","className","highlight","correct","animationsDisabled","isMissing","isTouchEnabled","window","navigator","maxTouchPoints","msMaxTouchPoints","baseClassName","rootClassName","undefined","classNames","Component","isCorrect","Check","Close","_inherits2","_createClass2","key","value","render","_this$props2","index","_this$getClassAndIcon","getClassAndIconConfig","TokenComponent","dangerouslySetInnerHTML","__html","replace","React","isRequired","_default"],"sources":["../../src/token-select/token.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { styled } from '@mui/material/styles';\nimport classNames from 'classnames';\nimport Check from '@mui/icons-material/Check';\nimport Close from '@mui/icons-material/Close';\n\nimport { color } from '@pie-lib/render-ui';\n\n// we need to use a larger line height for the token to be more readable\nconst LINE_HEIGHT_MULTIPLIER = 3.2;\n// we need a bit more space for correctness indicators\nconst CORRECTNESS_LINE_HEIGHT_MULTIPLIER = 3.4;\nconst CORRECTNESS_PADDING = 2;\n\n// Styled components for different token states\nconst StyledToken = styled('span')(({ theme }) => ({\n cursor: 'pointer',\n textIndent: 0,\n '&.disabled': {\n cursor: 'inherit',\n color: color.disabled(),\n },\n '&.disabledBlack': {\n cursor: 'inherit',\n },\n '&.disabledAndSelected': {\n backgroundColor: color.blueGrey100(),\n },\n [`@media (min-width: ${theme.breakpoints.values.md}px)`]: {\n '&.selectable:hover': {\n backgroundColor: color.blueGrey300(),\n color: theme.palette.common.black,\n '& > *': {\n backgroundColor: color.blueGrey300(),\n },\n },\n },\n '&.selected': {\n backgroundColor: color.blueGrey100(),\n color: theme.palette.common.black,\n lineHeight: `${theme.spacing(1) * LINE_HEIGHT_MULTIPLIER}px`,\n border: `solid 2px ${color.blueGrey900()}`,\n borderRadius: '4px',\n '& > *': {\n backgroundColor: color.blueGrey100(),\n },\n },\n '&.highlight': {\n border: `dashed 2px ${color.blueGrey600()}`,\n borderRadius: '4px',\n lineHeight: `${theme.spacing(1) * LINE_HEIGHT_MULTIPLIER}px`,\n },\n '&.print': {\n border: `dashed 2px ${color.blueGrey600()}`,\n borderRadius: '4px',\n lineHeight: `${theme.spacing(1) * LINE_HEIGHT_MULTIPLIER}px`,\n color: color.text(),\n },\n '&.custom': {\n display: 'initial',\n },\n}));\n\nconst StyledCommonTokenStyle = styled('span')(({ theme }) => ({\n position: 'relative',\n borderRadius: '4px',\n color: theme.palette.common.black,\n lineHeight: `${theme.spacing(1) * CORRECTNESS_LINE_HEIGHT_MULTIPLIER + CORRECTNESS_PADDING}px`,\n padding: `${CORRECTNESS_PADDING}px`,\n}));\n\nconst StyledCorrectContainer = styled(StyledCommonTokenStyle)(() => ({\n border: `${color.correctTertiary()} solid 2px`,\n}));\n\nconst StyledIncorrectContainer = styled(StyledCommonTokenStyle)(() => ({\n border: `${color.incorrectWithIcon()} solid 2px`,\n}));\n\nconst StyledMissingContainer = styled(StyledCommonTokenStyle)(() => ({\n border: `${color.incorrectWithIcon()} dashed 2px`,\n}));\n\nconst StyledCorrectnessIcon = styled('span')(() => ({\n color: color.white(),\n position: 'absolute',\n top: '-8px',\n left: '-8px',\n borderRadius: '50%',\n fontSize: '12px',\n padding: '2px',\n display: 'inline-block',\n}));\n\nconst StyledCorrectIcon = styled(StyledCorrectnessIcon)(() => ({\n backgroundColor: color.correctTertiary(),\n}));\n\nconst StyledIncorrectIcon = styled(StyledCorrectnessIcon)(() => ({\n backgroundColor: color.incorrectWithIcon(),\n}));\n\nconst Wrapper = ({ useWrapper, children, Container, IconComponent, Icon }) =>\n useWrapper ? (\n <Container>\n {children}\n {Icon && IconComponent ? (\n <IconComponent>\n <Icon fontSize=\"inherit\" />\n </IconComponent>\n ) : null}\n </Container>\n ) : (\n children\n );\n\nWrapper.propTypes = {\n useWrapper: PropTypes.bool,\n Container: PropTypes.elementType,\n IconComponent: PropTypes.elementType,\n Icon: PropTypes.elementType,\n children: PropTypes.node,\n};\n\nexport const TokenTypes = {\n text: PropTypes.string,\n selectable: PropTypes.bool,\n};\n\nexport class Token extends React.Component {\n static rootClassName = 'tokenRootClass';\n\n static propTypes = {\n ...TokenTypes,\n text: PropTypes.string.isRequired,\n className: PropTypes.string,\n disabled: PropTypes.bool,\n highlight: PropTypes.bool,\n correct: PropTypes.bool,\n };\n\n static defaultProps = {\n selectable: false,\n text: '',\n };\n\n getClassAndIconConfig = () => {\n const {\n selectable,\n selected,\n className: classNameProp,\n disabled,\n highlight,\n correct,\n animationsDisabled,\n isMissing,\n } = this.props;\n const isTouchEnabled = 'ontouchstart' in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0;\n const baseClassName = Token.rootClassName;\n let Container;\n let Icon;\n let IconComponent;\n\n if (correct === undefined && selected && disabled) {\n return {\n className: classNames(baseClassName, 'selected', 'disabledBlack', classNameProp),\n Component: StyledToken,\n };\n }\n\n if (correct !== undefined) {\n const isCorrect = correct === true;\n return {\n className: classNames(baseClassName, 'custom', classNameProp),\n Component: StyledToken,\n Container: isCorrect ? StyledCorrectContainer : StyledIncorrectContainer,\n Icon: isCorrect ? Check : Close,\n IconComponent: isCorrect ? StyledCorrectIcon : StyledIncorrectIcon,\n };\n }\n\n if (isMissing) {\n return {\n className: classNames(baseClassName, 'custom', 'missing', classNameProp),\n Component: StyledToken,\n Container: StyledMissingContainer,\n Icon: Close,\n IconComponent: StyledIncorrectIcon,\n };\n }\n\n return {\n className: classNames(\n baseClassName,\n disabled && 'disabled',\n selectable && !disabled && !isTouchEnabled && 'selectable',\n selected && !disabled && 'selected',\n selected && disabled && 'disabledAndSelected',\n highlight && selectable && !disabled && !selected && 'highlight',\n animationsDisabled && 'print',\n classNameProp,\n ),\n Component: StyledToken,\n Container,\n Icon,\n IconComponent,\n };\n };\n\n render() {\n const { text, index, correct, isMissing } = this.props;\n const { className, Component, Container, Icon, IconComponent } = this.getClassAndIconConfig();\n\n const TokenComponent = Component || StyledToken;\n\n return (\n <Wrapper\n useWrapper={correct !== undefined || isMissing}\n Container={Container}\n IconComponent={IconComponent}\n Icon={Icon}\n >\n <TokenComponent\n className={className}\n dangerouslySetInnerHTML={{ __html: (text || '').replace(/\\n/g, '<br>') }}\n data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