@vonage/vivid 4.19.0 → 4.21.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.
Files changed (176) hide show
  1. package/custom-elements.json +1648 -525
  2. package/lib/accordion-item/accordion-item.d.ts +332 -5
  3. package/lib/action-group/action-group.d.ts +3 -2
  4. package/lib/alert/alert.d.ts +654 -6
  5. package/lib/audio-player/audio-player.d.ts +330 -5
  6. package/lib/avatar/avatar.d.ts +5 -4
  7. package/lib/badge/badge.d.ts +334 -7
  8. package/lib/banner/banner.d.ts +662 -15
  9. package/lib/button/button.d.ts +335 -8
  10. package/lib/calendar-event/calendar-event.d.ts +3 -2
  11. package/lib/card/card.d.ts +2 -1
  12. package/lib/checkbox/checkbox.d.ts +2 -1
  13. package/lib/combobox/combobox.d.ts +335 -6
  14. package/lib/date-picker/date-picker.d.ts +12 -12
  15. package/lib/date-range-picker/date-range-picker.d.ts +6 -6
  16. package/lib/date-time-picker/date-time-picker.d.ts +12 -12
  17. package/lib/dial-pad/dial-pad.d.ts +328 -4
  18. package/lib/dialog/dialog.d.ts +326 -4
  19. package/lib/empty-state/empty-state.d.ts +3 -2
  20. package/lib/fab/fab.d.ts +333 -6
  21. package/lib/file-picker/file-picker.d.ts +334 -4
  22. package/lib/icon/icon.d.ts +2 -1
  23. package/lib/layout/layout.d.ts +6 -5
  24. package/lib/menu-item/menu-item.d.ts +332 -10
  25. package/lib/nav-disclosure/nav-disclosure.d.ts +330 -6
  26. package/lib/nav-item/nav-item.d.ts +329 -4
  27. package/lib/note/note.d.ts +329 -4
  28. package/lib/number-field/number-field.d.ts +658 -6
  29. package/lib/option/option.d.ts +330 -4
  30. package/lib/pagination/pagination.d.ts +3 -2
  31. package/lib/radio/radio.d.ts +2 -1
  32. package/lib/range-slider/range-slider.d.ts +330 -3
  33. package/lib/rich-text-editor/facades/prose-mirror-vivid.schema.d.ts +3 -2
  34. package/lib/rich-text-editor/facades/vivid-prose-mirror.facade.d.ts +1 -0
  35. package/lib/rich-text-editor/rich-text-editor.d.ts +1 -0
  36. package/lib/searchable-select/option-tag.d.ts +330 -5
  37. package/lib/searchable-select/searchable-select.d.ts +660 -5
  38. package/lib/select/select.d.ts +336 -6
  39. package/lib/slider/slider.d.ts +326 -4
  40. package/lib/split-button/split-button.d.ts +667 -20
  41. package/lib/tab/tab.d.ts +658 -7
  42. package/lib/tabs/tabs.d.ts +2 -1
  43. package/lib/tag/tag.d.ts +333 -7
  44. package/lib/text-anchor/text-anchor.d.ts +331 -5
  45. package/lib/text-field/text-field.d.ts +333 -6
  46. package/lib/time-picker/time-picker.d.ts +6 -6
  47. package/lib/tree-item/tree-item.d.ts +329 -4
  48. package/lib/video-player/video-player.d.ts +328 -4
  49. package/package.json +1 -1
  50. package/shared/_has.cjs +0 -4
  51. package/shared/_has.js +0 -4
  52. package/shared/affix.cjs +25 -19
  53. package/shared/affix.js +26 -20
  54. package/shared/apply-mixins.js +1 -1
  55. package/shared/calendar-picker.template.cjs +1 -1
  56. package/shared/calendar-picker.template.js +1 -1
  57. package/shared/children.js +1 -1
  58. package/shared/definition.cjs +2 -4
  59. package/shared/definition.js +2 -4
  60. package/shared/definition11.cjs +2 -4
  61. package/shared/definition11.js +2 -4
  62. package/shared/definition13.cjs +85 -159
  63. package/shared/definition13.js +85 -159
  64. package/shared/definition15.cjs +1 -1
  65. package/shared/definition15.js +1 -1
  66. package/shared/definition16.cjs +2 -3
  67. package/shared/definition16.js +2 -3
  68. package/shared/definition17.cjs +2 -2
  69. package/shared/definition17.js +2 -2
  70. package/shared/definition21.cjs +2 -4
  71. package/shared/definition21.js +2 -4
  72. package/shared/definition22.cjs +2 -4
  73. package/shared/definition22.js +2 -4
  74. package/shared/definition25.cjs +2 -4
  75. package/shared/definition25.js +2 -4
  76. package/shared/definition26.cjs +3 -3
  77. package/shared/definition26.js +3 -3
  78. package/shared/definition28.cjs +27 -38
  79. package/shared/definition28.js +27 -38
  80. package/shared/definition30.cjs +4 -11
  81. package/shared/definition30.js +4 -11
  82. package/shared/definition31.cjs +2 -4
  83. package/shared/definition31.js +2 -4
  84. package/shared/definition32.cjs +2 -4
  85. package/shared/definition32.js +2 -4
  86. package/shared/definition34.cjs +1 -3
  87. package/shared/definition34.js +1 -3
  88. package/shared/definition35.cjs +6 -6
  89. package/shared/definition35.js +6 -6
  90. package/shared/definition36.cjs +1 -1
  91. package/shared/definition36.js +1 -1
  92. package/shared/definition37.cjs +5 -1
  93. package/shared/definition37.js +5 -1
  94. package/shared/definition4.cjs +1 -7
  95. package/shared/definition4.js +1 -7
  96. package/shared/definition41.cjs +1 -1
  97. package/shared/definition41.js +1 -1
  98. package/shared/definition42.cjs +3 -5
  99. package/shared/definition42.js +3 -5
  100. package/shared/definition43.cjs +219 -28
  101. package/shared/definition43.js +216 -25
  102. package/shared/definition44.cjs +9 -10
  103. package/shared/definition44.js +9 -10
  104. package/shared/definition45.cjs +3 -4
  105. package/shared/definition45.js +3 -4
  106. package/shared/definition46.cjs +1 -1
  107. package/shared/definition46.js +1 -1
  108. package/shared/definition47.cjs +1 -1
  109. package/shared/definition47.js +1 -1
  110. package/shared/definition48.cjs +3 -5
  111. package/shared/definition48.js +3 -5
  112. package/shared/definition49.cjs +4 -7
  113. package/shared/definition49.js +4 -7
  114. package/shared/definition5.cjs +1 -3
  115. package/shared/definition5.js +2 -4
  116. package/shared/definition50.cjs +1 -1
  117. package/shared/definition50.js +1 -1
  118. package/shared/definition52.cjs +2 -5
  119. package/shared/definition52.js +2 -5
  120. package/shared/definition53.cjs +1 -1
  121. package/shared/definition53.js +1 -1
  122. package/shared/definition55.cjs +2 -4
  123. package/shared/definition55.js +2 -4
  124. package/shared/definition56.cjs +1 -1
  125. package/shared/definition56.js +1 -1
  126. package/shared/definition57.cjs +3 -2
  127. package/shared/definition57.js +3 -2
  128. package/shared/definition61.cjs +2 -4
  129. package/shared/definition61.js +2 -4
  130. package/shared/definition63.cjs +2 -4
  131. package/shared/definition63.js +2 -4
  132. package/shared/definition65.cjs +1 -1
  133. package/shared/definition65.js +1 -1
  134. package/shared/definition7.cjs +1 -3
  135. package/shared/definition7.js +1 -3
  136. package/shared/definition8.cjs +2 -5
  137. package/shared/definition8.js +2 -5
  138. package/shared/definition9.cjs +1 -1
  139. package/shared/definition9.js +1 -1
  140. package/shared/form-associated.js +1 -1
  141. package/shared/localized.cjs +10 -4
  142. package/shared/localized.js +10 -4
  143. package/shared/option.cjs +1 -3
  144. package/shared/option.js +2 -4
  145. package/shared/patterns/affix.d.ts +659 -7
  146. package/shared/patterns/localized.d.ts +328 -3
  147. package/shared/patterns/trapped-focus.d.ts +329 -6
  148. package/shared/picker-field/mixins/calendar-picker.d.ts +3 -3
  149. package/shared/picker-field/mixins/calendar-picker.template.d.ts +3 -3
  150. package/shared/picker-field/mixins/inline-time-picker/inline-time-picker.d.ts +328 -4
  151. package/shared/picker-field/mixins/min-max-calendar-picker.d.ts +6 -6
  152. package/shared/picker-field/mixins/single-date-picker.d.ts +9 -9
  153. package/shared/picker-field/mixins/single-value-picker.d.ts +3 -3
  154. package/shared/picker-field/mixins/time-selection-picker.d.ts +6 -6
  155. package/shared/picker-field/mixins/time-selection-picker.template.d.ts +6 -6
  156. package/shared/picker-field/picker-field.d.ts +655 -3
  157. package/shared/picker-field.template.cjs +33 -35
  158. package/shared/picker-field.template.js +33 -35
  159. package/shared/ref.js +1 -1
  160. package/shared/slotted.js +1 -1
  161. package/shared/text-anchor.cjs +2 -2
  162. package/shared/text-anchor.js +2 -2
  163. package/shared/text-field.cjs +1 -1
  164. package/shared/text-field.js +1 -1
  165. package/shared/time-selection-picker.template.cjs +3 -5
  166. package/shared/time-selection-picker.template.js +4 -6
  167. package/shared/utils/enums.d.ts +1 -0
  168. package/shared/vivid-element.cjs +1 -1
  169. package/shared/vivid-element.js +2 -2
  170. package/styles/core/all.css +2 -2
  171. package/styles/core/theme.css +2 -2
  172. package/styles/core/typography.css +1 -1
  173. package/styles/tokens/theme-dark.css +4 -4
  174. package/styles/tokens/theme-light.css +4 -4
  175. package/styles/tokens/vivid-2-compat.css +1 -1
  176. package/vivid.api.json +187 -990
@@ -23,15 +23,49 @@ const _isArray = Array.isArray || function _isArray(val) {
23
23
  return val != null && val.length >= 0 && Object.prototype.toString.call(val) === '[object Array]';
24
24
  };
25
25
 
26
- function _isString(x) {
27
- return Object.prototype.toString.call(x) === '[object String]';
26
+ function _arrayFromIterator(iter) {
27
+ var list = [];
28
+ var next;
29
+ while (!(next = iter.next()).done) {
30
+ list.push(next.value);
31
+ }
32
+ return list;
28
33
  }
29
34
 
30
- var toString = Object.prototype.toString;
35
+ function _includesWith(pred, x, list) {
36
+ var idx = 0;
37
+ var len = list.length;
38
+ while (idx < len) {
39
+ if (pred(x, list[idx])) {
40
+ return true;
41
+ }
42
+ idx += 1;
43
+ }
44
+ return false;
45
+ }
46
+
47
+ function _functionName(f) {
48
+ // String(x => x) evaluates to "x => x", so the pattern may not match.
49
+ var match = String(f).match(/^function (\w*)/);
50
+ return match == null ? '' : match[1];
51
+ }
52
+
53
+ // Based on https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
54
+ function _objectIs(a, b) {
55
+ // SameValue algorithm
56
+ if (a === b) {
57
+ // Steps 1-5, 7-10
58
+ // Steps 6.b-6.e: +0 != -0
59
+ return a !== 0 || 1 / a === 1 / b;
60
+ } else {
61
+ // Step 6.a: NaN == NaN
62
+ return a !== a && b !== b;
63
+ }
64
+ }
65
+ const _objectIs$1 = typeof Object.is === 'function' ? Object.is : _objectIs;
31
66
 
32
- var _isArguments =
33
- /*#__PURE__*/
34
- function () {
67
+ var toString = Object.prototype.toString;
68
+ var _isArguments = /*#__PURE__*/function () {
35
69
  return toString.call(arguments) === '[object Arguments]' ? function _isArguments(x) {
36
70
  return toString.call(x) === '[object Arguments]';
37
71
  } : function _isArguments(x) {
@@ -39,33 +73,27 @@ function () {
39
73
  };
40
74
  }();
41
75
 
42
- var hasEnumBug = !
43
- /*#__PURE__*/
44
- {
76
+ // cover IE < 9 keys issues
77
+ var hasEnumBug = ! /*#__PURE__*/{
45
78
  toString: null
46
79
  }.propertyIsEnumerable('toString');
47
- var nonEnumerableProps = ['constructor', 'valueOf', 'isPrototypeOf', 'toString', 'propertyIsEnumerable', 'hasOwnProperty', 'toLocaleString']; // Safari bug
48
-
49
- var hasArgsEnumBug =
50
- /*#__PURE__*/
51
- function () {
80
+ var nonEnumerableProps = ['constructor', 'valueOf', 'isPrototypeOf', 'toString', 'propertyIsEnumerable', 'hasOwnProperty', 'toLocaleString'];
81
+ // Safari bug
82
+ var hasArgsEnumBug = /*#__PURE__*/function () {
52
83
 
53
84
  return arguments.propertyIsEnumerable('length');
54
85
  }();
55
-
56
86
  var contains = function contains(list, item) {
57
87
  var idx = 0;
58
-
59
88
  while (idx < list.length) {
60
89
  if (list[idx] === item) {
61
90
  return true;
62
91
  }
63
-
64
92
  idx += 1;
65
93
  }
66
-
67
94
  return false;
68
95
  };
96
+
69
97
  /**
70
98
  * Returns a list containing the names of all the enumerable own properties of
71
99
  * the supplied object.
@@ -84,44 +112,30 @@ var contains = function contains(list, item) {
84
112
  *
85
113
  * R.keys({a: 1, b: 2, c: 3}); //=> ['a', 'b', 'c']
86
114
  */
87
-
88
-
89
- var keys = typeof Object.keys === 'function' && !hasArgsEnumBug ?
90
- /*#__PURE__*/
91
- _has._curry1(function keys(obj) {
115
+ var keys = typeof Object.keys === 'function' && !hasArgsEnumBug ? /*#__PURE__*/_has._curry1(function keys(obj) {
92
116
  return Object(obj) !== obj ? [] : Object.keys(obj);
93
- }) :
94
- /*#__PURE__*/
95
- _has._curry1(function keys(obj) {
117
+ }) : /*#__PURE__*/_has._curry1(function keys(obj) {
96
118
  if (Object(obj) !== obj) {
97
119
  return [];
98
120
  }
99
-
100
121
  var prop, nIdx;
101
122
  var ks = [];
102
-
103
123
  var checkArgsLength = hasArgsEnumBug && _isArguments(obj);
104
-
105
124
  for (prop in obj) {
106
125
  if (_has._has(prop, obj) && (!checkArgsLength || prop !== 'length')) {
107
126
  ks[ks.length] = prop;
108
127
  }
109
128
  }
110
-
111
129
  if (hasEnumBug) {
112
130
  nIdx = nonEnumerableProps.length - 1;
113
-
114
131
  while (nIdx >= 0) {
115
132
  prop = nonEnumerableProps[nIdx];
116
-
117
133
  if (_has._has(prop, obj) && !contains(ks, prop)) {
118
134
  ks[ks.length] = prop;
119
135
  }
120
-
121
136
  nIdx -= 1;
122
137
  }
123
138
  }
124
-
125
139
  return ks;
126
140
  });
127
141
 
@@ -135,7 +149,7 @@ _has._curry1(function keys(obj) {
135
149
  * @memberOf R
136
150
  * @since v0.8.0
137
151
  * @category Type
138
- * @sig (* -> {*}) -> String
152
+ * @sig * -> String
139
153
  * @param {*} val The value to test
140
154
  * @return {String}
141
155
  * @example
@@ -148,88 +162,14 @@ _has._curry1(function keys(obj) {
148
162
  * R.type([]); //=> "Array"
149
163
  * R.type(/[A-z]/); //=> "RegExp"
150
164
  * R.type(() => {}); //=> "Function"
165
+ * R.type(async () => {}); //=> "AsyncFunction"
151
166
  * R.type(undefined); //=> "Undefined"
167
+ * R.type(BigInt(123)); //=> "BigInt"
152
168
  */
153
-
154
- var type =
155
- /*#__PURE__*/
156
- _has._curry1(function type(val) {
169
+ var type = /*#__PURE__*/_has._curry1(function type(val) {
157
170
  return val === null ? 'Null' : val === undefined ? 'Undefined' : Object.prototype.toString.call(val).slice(8, -1);
158
171
  });
159
172
 
160
- /**
161
- * A function that returns the `!` of its argument. It will return `true` when
162
- * passed false-y value, and `false` when passed a truth-y one.
163
- *
164
- * @func
165
- * @memberOf R
166
- * @since v0.1.0
167
- * @category Logic
168
- * @sig * -> Boolean
169
- * @param {*} a any value
170
- * @return {Boolean} the logical inverse of passed argument.
171
- * @see R.complement
172
- * @example
173
- *
174
- * R.not(true); //=> false
175
- * R.not(false); //=> true
176
- * R.not(0); //=> true
177
- * R.not(1); //=> false
178
- */
179
-
180
- var not =
181
- /*#__PURE__*/
182
- _has._curry1(function not(a) {
183
- return !a;
184
- });
185
-
186
- function _arrayFromIterator(iter) {
187
- var list = [];
188
- var next;
189
-
190
- while (!(next = iter.next()).done) {
191
- list.push(next.value);
192
- }
193
-
194
- return list;
195
- }
196
-
197
- function _includesWith(pred, x, list) {
198
- var idx = 0;
199
- var len = list.length;
200
-
201
- while (idx < len) {
202
- if (pred(x, list[idx])) {
203
- return true;
204
- }
205
-
206
- idx += 1;
207
- }
208
-
209
- return false;
210
- }
211
-
212
- function _functionName(f) {
213
- // String(x => x) evaluates to "x => x", so the pattern may not match.
214
- var match = String(f).match(/^function (\w*)/);
215
- return match == null ? '' : match[1];
216
- }
217
-
218
- // Based on https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
219
- function _objectIs(a, b) {
220
- // SameValue algorithm
221
- if (a === b) {
222
- // Steps 1-5, 7-10
223
- // Steps 6.b-6.e: +0 != -0
224
- return a !== 0 || 1 / a === 1 / b;
225
- } else {
226
- // Step 6.a: NaN == NaN
227
- return a !== a && b !== b;
228
- }
229
- }
230
-
231
- const _objectIs$1 = typeof Object.is === 'function' ? Object.is : _objectIs;
232
-
233
173
  /**
234
174
  * private _uniqContentEquals function.
235
175
  * That function is checking equality of 2 iterator contents with 2 assumptions
@@ -243,38 +183,30 @@ const _objectIs$1 = typeof Object.is === 'function' ? Object.is : _objectIs;
243
183
 
244
184
  function _uniqContentEquals(aIterator, bIterator, stackA, stackB) {
245
185
  var a = _arrayFromIterator(aIterator);
246
-
247
186
  var b = _arrayFromIterator(bIterator);
248
-
249
187
  function eq(_a, _b) {
250
188
  return _equals(_a, _b, stackA.slice(), stackB.slice());
251
- } // if *a* array contains any element that is not included in *b*
252
-
189
+ }
253
190
 
191
+ // if *a* array contains any element that is not included in *b*
254
192
  return !_includesWith(function (b, aItem) {
255
193
  return !_includesWith(eq, aItem, b);
256
194
  }, b, a);
257
195
  }
258
-
259
196
  function _equals(a, b, stackA, stackB) {
260
197
  if (_objectIs$1(a, b)) {
261
198
  return true;
262
199
  }
263
-
264
200
  var typeA = type(a);
265
-
266
201
  if (typeA !== type(b)) {
267
202
  return false;
268
203
  }
269
-
270
204
  if (typeof a['fantasy-land/equals'] === 'function' || typeof b['fantasy-land/equals'] === 'function') {
271
205
  return typeof a['fantasy-land/equals'] === 'function' && a['fantasy-land/equals'](b) && typeof b['fantasy-land/equals'] === 'function' && b['fantasy-land/equals'](a);
272
206
  }
273
-
274
207
  if (typeof a.equals === 'function' || typeof b.equals === 'function') {
275
208
  return typeof a.equals === 'function' && a.equals(b) && typeof b.equals === 'function' && b.equals(a);
276
209
  }
277
-
278
210
  switch (typeA) {
279
211
  case 'Arguments':
280
212
  case 'Array':
@@ -282,61 +214,45 @@ function _equals(a, b, stackA, stackB) {
282
214
  if (typeof a.constructor === 'function' && _functionName(a.constructor) === 'Promise') {
283
215
  return a === b;
284
216
  }
285
-
286
217
  break;
287
-
288
218
  case 'Boolean':
289
219
  case 'Number':
290
220
  case 'String':
291
221
  if (!(typeof a === typeof b && _objectIs$1(a.valueOf(), b.valueOf()))) {
292
222
  return false;
293
223
  }
294
-
295
224
  break;
296
-
297
225
  case 'Date':
298
226
  if (!_objectIs$1(a.valueOf(), b.valueOf())) {
299
227
  return false;
300
228
  }
301
-
302
229
  break;
303
-
304
230
  case 'Error':
305
231
  return a.name === b.name && a.message === b.message;
306
-
307
232
  case 'RegExp':
308
233
  if (!(a.source === b.source && a.global === b.global && a.ignoreCase === b.ignoreCase && a.multiline === b.multiline && a.sticky === b.sticky && a.unicode === b.unicode)) {
309
234
  return false;
310
235
  }
311
-
312
236
  break;
313
237
  }
314
-
315
238
  var idx = stackA.length - 1;
316
-
317
239
  while (idx >= 0) {
318
240
  if (stackA[idx] === a) {
319
241
  return stackB[idx] === b;
320
242
  }
321
-
322
243
  idx -= 1;
323
244
  }
324
-
325
245
  switch (typeA) {
326
246
  case 'Map':
327
247
  if (a.size !== b.size) {
328
248
  return false;
329
249
  }
330
-
331
250
  return _uniqContentEquals(a.entries(), b.entries(), stackA.concat([a]), stackB.concat([b]));
332
-
333
251
  case 'Set':
334
252
  if (a.size !== b.size) {
335
253
  return false;
336
254
  }
337
-
338
255
  return _uniqContentEquals(a.values(), b.values(), stackA.concat([a]), stackB.concat([b]));
339
-
340
256
  case 'Arguments':
341
257
  case 'Array':
342
258
  case 'Object':
@@ -357,32 +273,24 @@ function _equals(a, b, stackA, stackB) {
357
273
  case 'Float64Array':
358
274
  case 'ArrayBuffer':
359
275
  break;
360
-
361
276
  default:
362
277
  // Values of other types are only equal if identical.
363
278
  return false;
364
279
  }
365
-
366
280
  var keysA = keys(a);
367
-
368
281
  if (keysA.length !== keys(b).length) {
369
282
  return false;
370
283
  }
371
-
372
284
  var extendedStackA = stackA.concat([a]);
373
285
  var extendedStackB = stackB.concat([b]);
374
286
  idx = keysA.length - 1;
375
-
376
287
  while (idx >= 0) {
377
288
  var key = keysA[idx];
378
-
379
289
  if (!(_has._has(key, b) && _equals(b[key], a[key], extendedStackA, extendedStackB))) {
380
290
  return false;
381
291
  }
382
-
383
292
  idx -= 1;
384
293
  }
385
-
386
294
  return true;
387
295
  }
388
296
 
@@ -411,10 +319,7 @@ function _equals(a, b, stackA, stackB) {
411
319
  * const b = {}; b.v = b;
412
320
  * R.equals(a, b); //=> true
413
321
  */
414
-
415
- var equals =
416
- /*#__PURE__*/
417
- _has._curry2(function equals(a, b) {
322
+ var equals = /*#__PURE__*/_has._curry2(function equals(a, b) {
418
323
  return _equals(a, b, [], []);
419
324
  });
420
325
 
@@ -422,6 +327,33 @@ function _isObject(x) {
422
327
  return Object.prototype.toString.call(x) === '[object Object]';
423
328
  }
424
329
 
330
+ function _isString(x) {
331
+ return Object.prototype.toString.call(x) === '[object String]';
332
+ }
333
+
334
+ /**
335
+ * A function that returns the `!` of its argument. It will return `true` when
336
+ * passed false-y value, and `false` when passed a truth-y one.
337
+ *
338
+ * @func
339
+ * @memberOf R
340
+ * @since v0.1.0
341
+ * @category Logic
342
+ * @sig * -> Boolean
343
+ * @param {*} a any value
344
+ * @return {Boolean} the logical inverse of passed argument.
345
+ * @see R.complement
346
+ * @example
347
+ *
348
+ * R.not(true); //=> false
349
+ * R.not(false); //=> true
350
+ * R.not(0); //=> true
351
+ * R.not(1); //=> false
352
+ */
353
+ var not = /*#__PURE__*/_has._curry1(function not(a) {
354
+ return !a;
355
+ });
356
+
425
357
  /**
426
358
  * Tests whether or not an object is a typed array.
427
359
  *
@@ -466,10 +398,7 @@ function _isTypedArray(val) {
466
398
  * R.empty({x: 1, y: 2}); //=> {}
467
399
  * R.empty(Uint8Array.from('123')); //=> Uint8Array []
468
400
  */
469
-
470
- var empty =
471
- /*#__PURE__*/
472
- _has._curry1(function empty(x) {
401
+ var empty = /*#__PURE__*/_has._curry1(function empty(x) {
473
402
  return x != null && typeof x['fantasy-land/empty'] === 'function' ? x['fantasy-land/empty']() : x != null && x.constructor != null && typeof x.constructor['fantasy-land/empty'] === 'function' ? x.constructor['fantasy-land/empty']() : x != null && typeof x.empty === 'function' ? x.empty() : x != null && x.constructor != null && typeof x.constructor.empty === 'function' ? x.constructor.empty() : _isArray(x) ? [] : _isString(x) ? '' : _isObject(x) ? {} : _isArguments(x) ? function () {
474
403
  return arguments;
475
404
  }() : _isTypedArray(x) ? x.constructor.from('') : void 0 // else
@@ -487,7 +416,7 @@ _has._curry1(function empty(x) {
487
416
  * @sig a -> Boolean
488
417
  * @param {*} x
489
418
  * @return {Boolean}
490
- * @see R.empty
419
+ * @see R.empty, R.isNotEmpty
491
420
  * @example
492
421
  *
493
422
  * R.isEmpty([1, 2, 3]); //=> false
@@ -498,10 +427,7 @@ _has._curry1(function empty(x) {
498
427
  * R.isEmpty({length: 0}); //=> false
499
428
  * R.isEmpty(Uint8Array.from('')); //=> true
500
429
  */
501
-
502
- var isEmpty =
503
- /*#__PURE__*/
504
- _has._curry1(function isEmpty(x) {
430
+ var isEmpty = /*#__PURE__*/_has._curry1(function isEmpty(x) {
505
431
  return x != null && equals(x, empty(x));
506
432
  });
507
433