@frollo/frollo-web-ui 7.0.1 → 8.0.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 (172) hide show
  1. package/cjs/index.js +34615 -34451
  2. package/esm/_rollupPluginBabelHelpers-DpC_oIQV.js +2566 -0
  3. package/esm/{check-94a5917a.js → check--YD4Ts6g.js} +4 -4
  4. package/esm/fw-accordion.js +27 -26
  5. package/esm/fw-animations.js +23 -26
  6. package/esm/fw-bar-chart.js +15289 -19
  7. package/esm/{fw-button-c8502414.js → fw-button-4QLZlu0U.js} +44 -44
  8. package/esm/fw-button.js +5 -10
  9. package/esm/{fw-card-1b6a67fe.js → fw-card-bsYbpPmW.js} +12 -12
  10. package/esm/fw-card.js +1 -1
  11. package/esm/fw-checkbox.js +23 -32
  12. package/esm/fw-date-picker.js +137 -80
  13. package/esm/fw-drawer.js +31 -34
  14. package/esm/fw-dropdown-nLtzu2fS.js +277 -0
  15. package/esm/fw-dropdown.js +7 -15
  16. package/esm/fw-form.js +1 -1
  17. package/esm/fw-image-DOgM8i8X.js +200 -0
  18. package/esm/fw-image.js +5 -21
  19. package/esm/{fw-input-8969b226.js → fw-input-Qiy53nRk.js} +61 -53
  20. package/esm/fw-input.js +6 -19
  21. package/esm/fw-loading-bar-DThRjdw1.js +22 -0
  22. package/esm/{fw-loading-spinner-72d70258.js → fw-loading-spinner-Dn52RI5h.js} +1 -1
  23. package/esm/fw-loading.js +3 -7
  24. package/esm/fw-modal.js +79 -53
  25. package/esm/fw-navigation-menu.js +15 -20
  26. package/esm/fw-popover.js +39 -375
  27. package/esm/fw-progress-bar.js +8 -11
  28. package/esm/fw-provider-list.js +41 -84
  29. package/esm/fw-sidebar-menu.js +33 -24
  30. package/esm/{fw-table-row-23f78218.js → fw-table-row-DkZaaMmE.js} +15 -301
  31. package/esm/fw-table.js +6 -16
  32. package/esm/fw-tabs.js +21 -103
  33. package/esm/{fw-tag-ac28200a.js → fw-tag-CPp1P480.js} +29 -20
  34. package/esm/fw-tag.js +7 -12
  35. package/esm/fw-toast.js +22 -37
  36. package/esm/fw-transactions-card.js +14 -30
  37. package/esm/index-CUPvK0Aa.js +586 -0
  38. package/esm/index.js +66 -228
  39. package/esm/vee-validate.esm-3ptvCDR1.js +4071 -0
  40. package/frollo-web-ui.esm.js +34134 -34388
  41. package/icons/chart-line-up.svg +3 -0
  42. package/icons/icons.stories.ts +24 -29
  43. package/icons/index.ts +5 -1
  44. package/icons/sack-dollar.svg +3 -0
  45. package/icons/xmark.svg +2 -2
  46. package/index.d.ts +2789 -2573
  47. package/package.json +75 -73
  48. package/styles/tailwind.scss +6 -0
  49. package/types/components/fw-accordion/fw-accordion.vue.d.ts +128 -128
  50. package/types/components/fw-accordion/index.d.ts +2 -2
  51. package/types/components/fw-accordion/index.types.d.ts +10 -10
  52. package/types/components/fw-animations/fw-email-pulse.vue.d.ts +24 -24
  53. package/types/components/fw-animations/fw-loading-spinner.vue.d.ts +2 -2
  54. package/types/components/fw-animations/fw-success-pulse.vue.d.ts +24 -24
  55. package/types/components/fw-animations/index.d.ts +4 -4
  56. package/types/components/fw-bar-chart/fw-bar-chart.vue.d.ts +83 -83
  57. package/types/components/fw-bar-chart/index.d.ts +2 -2
  58. package/types/components/fw-bar-chart/index.types.d.ts +11 -11
  59. package/types/components/fw-button/fw-button.vue.d.ts +190 -176
  60. package/types/components/fw-button/index.d.ts +2 -2
  61. package/types/components/fw-button/index.types.d.ts +27 -26
  62. package/types/components/fw-card/fw-card.vue.d.ts +82 -82
  63. package/types/components/fw-card/index.d.ts +2 -2
  64. package/types/components/fw-card/index.types.d.ts +8 -8
  65. package/types/components/fw-checkbox/fw-checkbox.vue.d.ts +108 -108
  66. package/types/components/fw-checkbox/index.d.ts +2 -2
  67. package/types/components/fw-checkbox/index.types.d.ts +9 -9
  68. package/types/components/fw-date-picker/fw-date-picker.vue.d.ts +249 -177
  69. package/types/components/fw-date-picker/index.d.ts +2 -2
  70. package/types/components/fw-date-picker/index.types.d.ts +21 -16
  71. package/types/components/fw-drawer/fw-drawer.vue.d.ts +165 -165
  72. package/types/components/fw-drawer/index.d.ts +2 -2
  73. package/types/components/fw-drawer/index.types.d.ts +13 -13
  74. package/types/components/fw-dropdown/fw-dropdown.vue.d.ts +154 -130
  75. package/types/components/fw-dropdown/index.d.ts +2 -2
  76. package/types/components/fw-dropdown/index.types.d.ts +16 -13
  77. package/types/components/fw-form/index.d.ts +2 -2
  78. package/types/components/fw-image/fw-image.vue.d.ts +103 -84
  79. package/types/components/fw-image/index.d.ts +2 -2
  80. package/types/components/fw-image/index.types.d.ts +9 -8
  81. package/types/components/fw-input/fw-input.vue.d.ts +214 -197
  82. package/types/components/fw-input/index.d.ts +2 -2
  83. package/types/components/fw-input/index.types.d.ts +18 -16
  84. package/types/components/fw-loading/fw-loading-bar.vue.d.ts +2 -2
  85. package/types/components/fw-loading/fw-loading-card.vue.d.ts +2 -2
  86. package/types/components/fw-loading/fw-loading-table.vue.d.ts +25 -25
  87. package/types/components/fw-loading/index.d.ts +4 -4
  88. package/types/components/fw-modal/fw-modal.vue.d.ts +205 -175
  89. package/types/components/fw-modal/index.d.ts +2 -2
  90. package/types/components/fw-modal/index.types.d.ts +16 -14
  91. package/types/components/fw-navigation-menu/fw-navigation-menu.vue.d.ts +57 -57
  92. package/types/components/fw-navigation-menu/index.d.ts +2 -2
  93. package/types/components/fw-navigation-menu/index.types.d.ts +7 -7
  94. package/types/components/fw-popover/fw-popover.vue.d.ts +157 -157
  95. package/types/components/fw-popover/index.d.ts +2 -2
  96. package/types/components/fw-popover/index.types.d.ts +11 -11
  97. package/types/components/fw-progress-bar/fw-progress-bar.vue.d.ts +52 -52
  98. package/types/components/fw-progress-bar/index.d.ts +2 -2
  99. package/types/components/fw-progress-bar/index.types.d.ts +5 -5
  100. package/types/components/fw-provider-list/fw-provider-list.vue.d.ts +100 -100
  101. package/types/components/fw-provider-list/index.d.ts +2 -2
  102. package/types/components/fw-provider-list/index.types.d.ts +11 -11
  103. package/types/components/fw-sidebar-menu/fw-sidebar-menu.vue.d.ts +88 -72
  104. package/types/components/fw-sidebar-menu/index.d.ts +2 -2
  105. package/types/components/fw-sidebar-menu/index.types.d.ts +9 -8
  106. package/types/components/fw-table/fw-table-head.vue.d.ts +2 -2
  107. package/types/components/fw-table/fw-table-row.vue.d.ts +2 -2
  108. package/types/components/fw-table/fw-table.vue.d.ts +71 -71
  109. package/types/components/fw-table/index.d.ts +4 -4
  110. package/types/components/fw-table/index.types.d.ts +16 -16
  111. package/types/components/fw-tabs/fw-tab.vue.d.ts +24 -32
  112. package/types/components/fw-tabs/fw-tabs.vue.d.ts +24 -24
  113. package/types/components/fw-tabs/index.d.ts +3 -3
  114. package/types/components/fw-tabs/index.types.d.ts +8 -0
  115. package/types/components/fw-tag/fw-tag.vue.d.ts +80 -70
  116. package/types/components/fw-tag/index.d.ts +2 -2
  117. package/types/components/fw-tag/index.types.d.ts +18 -18
  118. package/types/components/fw-toast/fw-toast.vue.d.ts +121 -121
  119. package/types/components/fw-toast/index.d.ts +2 -2
  120. package/types/components/fw-toast/index.types.d.ts +13 -13
  121. package/types/components/fw-transactions-card/fw-transactions-card.vue.d.ts +58 -58
  122. package/types/components/fw-transactions-card/index.d.ts +2 -2
  123. package/types/components/fw-transactions-card/index.types.d.ts +6 -6
  124. package/types/components/index.d.ts +24 -24
  125. package/types/components/index.types.d.ts +21 -20
  126. package/types/directives/index.d.ts +2 -2
  127. package/types/directives/lazy-loader.d.ts +3 -3
  128. package/types/helpers/get-root-colours.d.ts +17 -17
  129. package/types/icons/index.d.ts +43 -41
  130. package/types/index-types.esm.d.ts +6 -6
  131. package/types/index.browser-umd.d.ts +2 -1
  132. package/types/index.d.ts +3 -3
  133. package/types/index.esm.d.ts +5 -5
  134. package/types/services/index.d.ts +2 -2
  135. package/types/services/modal.d.ts +9 -9
  136. package/types/services/toast.d.ts +9 -9
  137. package/web-components/index.js +19662 -19720
  138. package/esm/add-to-unscopables-ee05b58f.js +0 -25
  139. package/esm/array-iteration-8267bf22.js +0 -92
  140. package/esm/array-method-has-species-support-6c675094.js +0 -23
  141. package/esm/array-method-is-strict-d313436f.js +0 -14
  142. package/esm/array-species-create-1c67e297.js +0 -97
  143. package/esm/classof-d44bf093.js +0 -42
  144. package/esm/create-property-eb329361.js +0 -14
  145. package/esm/defineProperty-b85f2e0f.js +0 -42
  146. package/esm/does-not-exceed-safe-integer-de37ce28.js +0 -11
  147. package/esm/es.array.concat-99b85557.js +0 -69
  148. package/esm/es.array.find-1ded15d5.js +0 -28
  149. package/esm/es.array.includes-08e25019.js +0 -27
  150. package/esm/es.array.map-c56ebffd.js +0 -22
  151. package/esm/es.date.to-string-15eb9936.js +0 -23
  152. package/esm/es.function.name-6cafd747.js +0 -29
  153. package/esm/es.number.constructor-fb16fe05.js +0 -204
  154. package/esm/es.object.to-string-4b07c4d1.js +0 -24
  155. package/esm/es.string.includes-061e8272.js +0 -66
  156. package/esm/es.string.iterator-25db8cd2.js +0 -469
  157. package/esm/export-10c4adbc.js +0 -95
  158. package/esm/function-apply-e17cf65b.js +0 -14
  159. package/esm/fw-dropdown-6856e66e.js +0 -224
  160. package/esm/fw-image-aca2c61d.js +0 -296
  161. package/esm/fw-loading-bar-f5ca605c.js +0 -22
  162. package/esm/index-6758f755.js +0 -15797
  163. package/esm/index-bced3b35.js +0 -560
  164. package/esm/is-forced-7cb3ee8f.js +0 -927
  165. package/esm/object-create-51bf02dc.js +0 -125
  166. package/esm/regexp-flags-c09864e5.js +0 -50
  167. package/esm/vee-validate.esm-a17a23c3.js +0 -3192
  168. package/esm/web.timers-e406c8e6.js +0 -72
  169. /package/esm/{get-root-colours-865a52ba.js → get-root-colours-DYEoJPEb.js} +0 -0
  170. /package/esm/{index-0c5cae4f.js → index-BVcOAKar.js} +0 -0
  171. /package/esm/{style-inject.es-1f59c1d0.js → style-inject.es-tgCJW-Cu.js} +0 -0
  172. /package/esm/{uniqueId-fe08534a.js → uniqueId-DK6xzFd8.js} +0 -0
@@ -1,204 +0,0 @@
1
- import { x as isCallable$2, f as functionUncurryThis, n as anObject$1, K as isObject$1, B as requireObjectCoercible$1, d as descriptors, g as global$1, I as isForced_1, b as defineBuiltIn$1, q as hasOwnProperty_1, r as objectIsPrototypeOf, L as isSymbol$1, M as toPrimitive$1, h as fails$1, E as objectGetOwnPropertyNames, F as objectGetOwnPropertyDescriptor, G as objectDefineProperty } from './is-forced-7cb3ee8f.js';
2
- import { c as classof$1 } from './classof-d44bf093.js';
3
-
4
- var es_number_constructor = {};
5
-
6
- var isCallable$1 = isCallable$2;
7
-
8
- var $String$1 = String;
9
- var $TypeError = TypeError;
10
-
11
- var aPossiblePrototype$1 = function (argument) {
12
- if (typeof argument == 'object' || isCallable$1(argument)) return argument;
13
- throw $TypeError("Can't set " + $String$1(argument) + ' as a prototype');
14
- };
15
-
16
- /* eslint-disable no-proto -- safe */
17
-
18
- var uncurryThis$3 = functionUncurryThis;
19
- var anObject = anObject$1;
20
- var aPossiblePrototype = aPossiblePrototype$1;
21
-
22
- // `Object.setPrototypeOf` method
23
- // https://tc39.es/ecma262/#sec-object.setprototypeof
24
- // Works with __proto__ only. Old v8 can't work with null proto objects.
25
- // eslint-disable-next-line es-x/no-object-setprototypeof -- safe
26
- var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
27
- var CORRECT_SETTER = false;
28
- var test = {};
29
- var setter;
30
- try {
31
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
32
- setter = uncurryThis$3(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
33
- setter(test, []);
34
- CORRECT_SETTER = test instanceof Array;
35
- } catch (error) { /* empty */ }
36
- return function setPrototypeOf(O, proto) {
37
- anObject(O);
38
- aPossiblePrototype(proto);
39
- if (CORRECT_SETTER) setter(O, proto);
40
- else O.__proto__ = proto;
41
- return O;
42
- };
43
- }() : undefined);
44
-
45
- var isCallable = isCallable$2;
46
- var isObject = isObject$1;
47
- var setPrototypeOf = objectSetPrototypeOf;
48
-
49
- // makes subclassing work correct for wrapped built-ins
50
- var inheritIfRequired$1 = function ($this, dummy, Wrapper) {
51
- var NewTarget, NewTargetPrototype;
52
- if (
53
- // it can work only with native `setPrototypeOf`
54
- setPrototypeOf &&
55
- // we haven't completely correct pre-ES6 way for getting `new.target`, so use this
56
- isCallable(NewTarget = dummy.constructor) &&
57
- NewTarget !== Wrapper &&
58
- isObject(NewTargetPrototype = NewTarget.prototype) &&
59
- NewTargetPrototype !== Wrapper.prototype
60
- ) setPrototypeOf($this, NewTargetPrototype);
61
- return $this;
62
- };
63
-
64
- var uncurryThis$2 = functionUncurryThis;
65
-
66
- // `thisNumberValue` abstract operation
67
- // https://tc39.es/ecma262/#sec-thisnumbervalue
68
- var thisNumberValue$1 = uncurryThis$2(1.0.valueOf);
69
-
70
- var classof = classof$1;
71
-
72
- var $String = String;
73
-
74
- var toString$1 = function (argument) {
75
- if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
76
- return $String(argument);
77
- };
78
-
79
- // a string of all valid unicode whitespaces
80
- var whitespaces$1 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
81
- '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
82
-
83
- var uncurryThis$1 = functionUncurryThis;
84
- var requireObjectCoercible = requireObjectCoercible$1;
85
- var toString = toString$1;
86
- var whitespaces = whitespaces$1;
87
-
88
- var replace = uncurryThis$1(''.replace);
89
- var whitespace = '[' + whitespaces + ']';
90
- var ltrim = RegExp('^' + whitespace + whitespace + '*');
91
- var rtrim = RegExp(whitespace + whitespace + '*$');
92
-
93
- // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
94
- var createMethod = function (TYPE) {
95
- return function ($this) {
96
- var string = toString(requireObjectCoercible($this));
97
- if (TYPE & 1) string = replace(string, ltrim, '');
98
- if (TYPE & 2) string = replace(string, rtrim, '');
99
- return string;
100
- };
101
- };
102
-
103
- var stringTrim = {
104
- // `String.prototype.{ trimLeft, trimStart }` methods
105
- // https://tc39.es/ecma262/#sec-string.prototype.trimstart
106
- start: createMethod(1),
107
- // `String.prototype.{ trimRight, trimEnd }` methods
108
- // https://tc39.es/ecma262/#sec-string.prototype.trimend
109
- end: createMethod(2),
110
- // `String.prototype.trim` method
111
- // https://tc39.es/ecma262/#sec-string.prototype.trim
112
- trim: createMethod(3)
113
- };
114
-
115
- 'use strict';
116
- var DESCRIPTORS = descriptors;
117
- var global = global$1;
118
- var uncurryThis = functionUncurryThis;
119
- var isForced = isForced_1;
120
- var defineBuiltIn = defineBuiltIn$1;
121
- var hasOwn = hasOwnProperty_1;
122
- var inheritIfRequired = inheritIfRequired$1;
123
- var isPrototypeOf = objectIsPrototypeOf;
124
- var isSymbol = isSymbol$1;
125
- var toPrimitive = toPrimitive$1;
126
- var fails = fails$1;
127
- var getOwnPropertyNames = objectGetOwnPropertyNames.f;
128
- var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
129
- var defineProperty = objectDefineProperty.f;
130
- var thisNumberValue = thisNumberValue$1;
131
- var trim = stringTrim.trim;
132
-
133
- var NUMBER = 'Number';
134
- var NativeNumber = global[NUMBER];
135
- var NumberPrototype = NativeNumber.prototype;
136
- var TypeError$1 = global.TypeError;
137
- var arraySlice = uncurryThis(''.slice);
138
- var charCodeAt = uncurryThis(''.charCodeAt);
139
-
140
- // `ToNumeric` abstract operation
141
- // https://tc39.es/ecma262/#sec-tonumeric
142
- var toNumeric = function (value) {
143
- var primValue = toPrimitive(value, 'number');
144
- return typeof primValue == 'bigint' ? primValue : toNumber(primValue);
145
- };
146
-
147
- // `ToNumber` abstract operation
148
- // https://tc39.es/ecma262/#sec-tonumber
149
- var toNumber = function (argument) {
150
- var it = toPrimitive(argument, 'number');
151
- var first, third, radix, maxCode, digits, length, index, code;
152
- if (isSymbol(it)) throw TypeError$1('Cannot convert a Symbol value to a number');
153
- if (typeof it == 'string' && it.length > 2) {
154
- it = trim(it);
155
- first = charCodeAt(it, 0);
156
- if (first === 43 || first === 45) {
157
- third = charCodeAt(it, 2);
158
- if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix
159
- } else if (first === 48) {
160
- switch (charCodeAt(it, 1)) {
161
- case 66: case 98: radix = 2; maxCode = 49; break; // fast equal of /^0b[01]+$/i
162
- case 79: case 111: radix = 8; maxCode = 55; break; // fast equal of /^0o[0-7]+$/i
163
- default: return +it;
164
- }
165
- digits = arraySlice(it, 2);
166
- length = digits.length;
167
- for (index = 0; index < length; index++) {
168
- code = charCodeAt(digits, index);
169
- // parseInt parses a string to a first unavailable symbol
170
- // but ToNumber should return NaN if a string contains unavailable symbols
171
- if (code < 48 || code > maxCode) return NaN;
172
- } return parseInt(digits, radix);
173
- }
174
- } return +it;
175
- };
176
-
177
- // `Number` constructor
178
- // https://tc39.es/ecma262/#sec-number-constructor
179
- if (isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'))) {
180
- var NumberWrapper = function Number(value) {
181
- var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value));
182
- var dummy = this;
183
- // check on 1..constructor(foo) case
184
- return isPrototypeOf(NumberPrototype, dummy) && fails(function () { thisNumberValue(dummy); })
185
- ? inheritIfRequired(Object(n), dummy, NumberWrapper) : n;
186
- };
187
- for (var keys = DESCRIPTORS ? getOwnPropertyNames(NativeNumber) : (
188
- // ES3:
189
- 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +
190
- // ES2015 (in case, if modules with ES2015 Number statics required before):
191
- 'EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,' +
192
- // ESNext
193
- 'fromString,range'
194
- ).split(','), j = 0, key; keys.length > j; j++) {
195
- if (hasOwn(NativeNumber, key = keys[j]) && !hasOwn(NumberWrapper, key)) {
196
- defineProperty(NumberWrapper, key, getOwnPropertyDescriptor(NativeNumber, key));
197
- }
198
- }
199
- NumberWrapper.prototype = NumberPrototype;
200
- NumberPrototype.constructor = NumberWrapper;
201
- defineBuiltIn(global, NUMBER, NumberWrapper, { constructor: true });
202
- }
203
-
204
- export { objectSetPrototypeOf as o, toString$1 as t };
@@ -1,24 +0,0 @@
1
- import { b as defineBuiltIn$1 } from './is-forced-7cb3ee8f.js';
2
- import { t as toStringTagSupport, c as classof$1 } from './classof-d44bf093.js';
3
-
4
- var es_object_toString = {};
5
-
6
- 'use strict';
7
- var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;
8
- var classof = classof$1;
9
-
10
- // `Object.prototype.toString` method implementation
11
- // https://tc39.es/ecma262/#sec-object.prototype.tostring
12
- var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() {
13
- return '[object ' + classof(this) + ']';
14
- };
15
-
16
- var TO_STRING_TAG_SUPPORT = toStringTagSupport;
17
- var defineBuiltIn = defineBuiltIn$1;
18
- var toString = objectToString;
19
-
20
- // `Object.prototype.toString` method
21
- // https://tc39.es/ecma262/#sec-object.prototype.tostring
22
- if (!TO_STRING_TAG_SUPPORT) {
23
- defineBuiltIn(Object.prototype, 'toString', toString, { unsafe: true });
24
- }
@@ -1,66 +0,0 @@
1
- import { K as isObject$1, y as classofRaw, w as wellKnownSymbol$2, f as functionUncurryThis, B as requireObjectCoercible$1 } from './is-forced-7cb3ee8f.js';
2
- import { _ as _export } from './export-10c4adbc.js';
3
- import { t as toString$1 } from './es.number.constructor-fb16fe05.js';
4
-
5
- var es_string_includes = {};
6
-
7
- var isObject = isObject$1;
8
- var classof = classofRaw;
9
- var wellKnownSymbol$1 = wellKnownSymbol$2;
10
-
11
- var MATCH$1 = wellKnownSymbol$1('match');
12
-
13
- // `IsRegExp` abstract operation
14
- // https://tc39.es/ecma262/#sec-isregexp
15
- var isRegexp = function (it) {
16
- var isRegExp;
17
- return isObject(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof(it) == 'RegExp');
18
- };
19
-
20
- var isRegExp = isRegexp;
21
-
22
- var $TypeError = TypeError;
23
-
24
- var notARegexp = function (it) {
25
- if (isRegExp(it)) {
26
- throw $TypeError("The method doesn't accept regular expressions");
27
- } return it;
28
- };
29
-
30
- var wellKnownSymbol = wellKnownSymbol$2;
31
-
32
- var MATCH = wellKnownSymbol('match');
33
-
34
- var correctIsRegexpLogic = function (METHOD_NAME) {
35
- var regexp = /./;
36
- try {
37
- '/./'[METHOD_NAME](regexp);
38
- } catch (error1) {
39
- try {
40
- regexp[MATCH] = false;
41
- return '/./'[METHOD_NAME](regexp);
42
- } catch (error2) { /* empty */ }
43
- } return false;
44
- };
45
-
46
- 'use strict';
47
- var $ = _export;
48
- var uncurryThis = functionUncurryThis;
49
- var notARegExp = notARegexp;
50
- var requireObjectCoercible = requireObjectCoercible$1;
51
- var toString = toString$1;
52
- var correctIsRegExpLogic = correctIsRegexpLogic;
53
-
54
- var stringIndexOf = uncurryThis(''.indexOf);
55
-
56
- // `String.prototype.includes` method
57
- // https://tc39.es/ecma262/#sec-string.prototype.includes
58
- $({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
59
- includes: function includes(searchString /* , position = 0 */) {
60
- return !!~stringIndexOf(
61
- toString(requireObjectCoercible(this)),
62
- toString(notARegExp(searchString)),
63
- arguments.length > 1 ? arguments[1] : undefined
64
- );
65
- }
66
- });