@spothero/ui 14.3.0 → 14.3.1
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/CHANGELOG.md +5 -0
- package/CHANGELOG.tmp +3 -3
- package/backlog/Alert/Alert.js +4 -1
- package/backlog/AutoSuggestInput/AutoSuggestInput.js +17 -10
- package/backlog/AutoSuggestInput/AutoSuggestItem.js +10 -7
- package/backlog/AutoSuggestInput/AutoSuggestList.js +12 -9
- package/backlog/Badge/Badge.js +4 -1
- package/backlog/Chart/Chart.js +17 -10
- package/backlog/Checkbox/Checkbox.js +10 -7
- package/backlog/DateTime/DatePicker.js +10 -7
- package/backlog/DateTime/DatePickerCalendar.js +10 -7
- package/backlog/DateTime/DatePickerCalendarNavigation.js +10 -7
- package/backlog/DateTime/DatePickerCalendarWithRange.js +17 -10
- package/backlog/DateTime/DateTimePicker.js +10 -7
- package/backlog/DateTime/DateTimeRangePicker.js +20 -11
- package/backlog/DateTime/TimePicker.js +10 -7
- package/backlog/DateTime/date-time-assertions.js +4 -1
- package/backlog/DateTime/index.js +15 -7
- package/backlog/ErrorBoundary/ErrorBoundary.js +10 -7
- package/backlog/Flyout/Flyout.js +21 -11
- package/backlog/Form/Form.js +13 -8
- package/backlog/Form/FormElementError.js +4 -1
- package/backlog/Form/FormGroup.js +4 -1
- package/backlog/Form/FormGroupError.js +4 -1
- package/backlog/Form/index.js +11 -5
- package/backlog/GooglePlacesSearchInput/GooglePlacesSearchInput.js +17 -10
- package/backlog/GooglePlacesSearchInput/PoweredByGoogle.js +4 -1
- package/backlog/GooglePlacesSearchInput/index.js +7 -3
- package/backlog/HorizontalRule/HorizontalRule.js +4 -1
- package/backlog/Label/Label.js +4 -1
- package/backlog/Modal/Modal.js +22 -12
- package/backlog/Modal/ModalContent.js +10 -7
- package/backlog/Modal/ModalFooter.js +10 -7
- package/backlog/Modal/index.js +9 -4
- package/backlog/Notification/Notification.js +10 -7
- package/backlog/Notification/NotificationContainer.js +10 -7
- package/backlog/Notification/NotificationPropTypes.js +4 -1
- package/backlog/Notification/index.js +7 -3
- package/backlog/PasswordControl/PasswordControl.js +13 -8
- package/backlog/Portal/Portal.js +10 -7
- package/backlog/PulseLoader/PulseLoader.js +4 -1
- package/backlog/Radio/Radio.js +10 -7
- package/backlog/Radio/RadioGroup.js +12 -9
- package/backlog/Radio/index.js +7 -3
- package/backlog/RenderInBody/RenderInBody.js +10 -7
- package/backlog/Select/Select.js +15 -10
- package/backlog/Select/SelectItemPropTypes.js +4 -1
- package/backlog/Select/index.js +7 -3
- package/backlog/SelectControlled/SelectControlled.js +15 -10
- package/backlog/SelectControlled/index.js +5 -2
- package/backlog/Sprite/Sprite.js +4 -1
- package/backlog/Tabs/Tab.js +10 -7
- package/backlog/Tabs/TabContent.js +9 -6
- package/backlog/Tabs/TabNavigation.js +13 -8
- package/backlog/Tabs/TabPanel.js +4 -1
- package/backlog/Tabs/Tabs.js +10 -7
- package/backlog/Tabs/index.js +13 -6
- package/backlog/TextArea/TextArea.js +10 -7
- package/backlog/TextInput/TextInput.js +12 -9
- package/backlog/TextInput/TextInputPropTypes.js +4 -1
- package/backlog/TextInput/index.js +7 -3
- package/backlog/Tooltip/Tooltip.js +16 -9
- package/backlog/index.js +111 -55
- package/backlog/v1/components/Button/Button.js +4 -1
- package/backlog/v1/components/Button/button-props.js +4 -1
- package/backlog/v1/components/Image/Image.js +12 -9
- package/backlog/v1/components/Loader/Loader.js +4 -1
- package/backlog/v1/components/Panel/Panel.js +10 -7
- package/backlog/v1/components/Table/Table.js +14 -9
- package/backlog/v1/components/Table/TableCell.js +4 -1
- package/backlog/v1/components/Table/TableCellPropTypes.js +4 -1
- package/backlog/v1/components/Table/TableControls.js +4 -1
- package/backlog/v1/components/Table/TableFooter.js +4 -1
- package/backlog/v1/components/Table/TableHeading.js +10 -7
- package/backlog/v1/components/Table/TableHeadingPropTypes.js +4 -1
- package/backlog/v1/components/Table/TableSortSelector.js +10 -7
- package/backlog/v1/components/Table/TableSortType.js +4 -1
- package/backlog/v1/components/Table/index.js +13 -6
- package/backlog/v1/components/TextButton/TextButton.js +14 -7
- package/backlog/v1/components/index.js +15 -7
- package/backlog/v1/utils/deprecate.js +8 -3
- package/package.json +2 -2
- package/v1/index-bundled-cjs/index.js +1 -1
- package/v1/index-bundled-cjs/index.js.map +1 -1
- package/v1/index-bundled-esm/index.js +1 -1
- package/v1/index-bundled-esm/index.js.map +1 -1
- package/v1/index-unbundled-cjs/index.js +931 -368
- package/v1/index-unbundled-cjs/index.js.map +1 -1
- package/v1/index-unbundled-esm/index.js +928 -365
- package/v1/index-unbundled-esm/index.js.map +1 -1
- package/v2/index-bundled-cjs/ImageCarousel-217e7062.js +2 -0
- package/v2/index-bundled-cjs/{ImageCarousel-bfdd3dbe.js.map → ImageCarousel-217e7062.js.map} +1 -1
- package/v2/index-bundled-cjs/index-b41e1da9.js +25 -0
- package/v2/index-bundled-cjs/index-b41e1da9.js.map +1 -0
- package/v2/index-bundled-cjs/index.js +1 -1
- package/v2/index-bundled-esm/ImageCarousel-4127414d.js +2 -0
- package/v2/index-bundled-esm/{ImageCarousel-367b46dd.js.map → ImageCarousel-4127414d.js.map} +1 -1
- package/v2/index-bundled-esm/index-22452751.js +24 -0
- package/v2/index-bundled-esm/index-22452751.js.map +1 -0
- package/v2/index-bundled-esm/index.js +1 -1
- package/v2/index-unbundled-cjs/{ImageCarousel-f32232e9.js → ImageCarousel-0575526b.js} +33 -309
- package/v2/index-unbundled-cjs/ImageCarousel-0575526b.js.map +1 -0
- package/v2/index-unbundled-cjs/{index-9768b43e.js → index-c8c6025d.js} +2289 -593
- package/v2/index-unbundled-cjs/index-c8c6025d.js.map +1 -0
- package/v2/index-unbundled-cjs/index.js +15 -15
- package/v2/index-unbundled-esm/{ImageCarousel-df49312f.js → ImageCarousel-c8a3e563.js} +30 -306
- package/v2/index-unbundled-esm/ImageCarousel-c8a3e563.js.map +1 -0
- package/v2/index-unbundled-esm/{index-4a79ec74.js → index-403d8033.js} +2273 -576
- package/v2/index-unbundled-esm/index-403d8033.js.map +1 -0
- package/v2/index-unbundled-esm/index.js +1 -1
- package/v2/index-bundled-cjs/ImageCarousel-bfdd3dbe.js +0 -2
- package/v2/index-bundled-cjs/index-fa71d123.js +0 -25
- package/v2/index-bundled-cjs/index-fa71d123.js.map +0 -1
- package/v2/index-bundled-esm/ImageCarousel-367b46dd.js +0 -2
- package/v2/index-bundled-esm/index-b266be99.js +0 -24
- package/v2/index-bundled-esm/index-b266be99.js.map +0 -1
- package/v2/index-unbundled-cjs/ImageCarousel-f32232e9.js.map +0 -1
- package/v2/index-unbundled-cjs/index-9768b43e.js.map +0 -1
- package/v2/index-unbundled-esm/ImageCarousel-df49312f.js.map +0 -1
- package/v2/index-unbundled-esm/index-4a79ec74.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{a6 as Accordion,a5 as AccordionButton,a2 as AccordionIcon,a3 as AccordionItem,a4 as AccordionPanel,Y as Box,a0 as Button,aM as ButtonGroup,an as Card,ar as Checkbox,al as Container,aw as Fade,av as Flex,af as Grid,ag as GridItem,az as HStack,ak as Heading,ao as Icon,ap as Image,a1 as ImageCarousel,ad as Link,ah as List,ai as ListItem,aq as Loader,as as Popover,au as PopoverContent,at as PopoverTrigger,ay as Portal,aC as ScaleFade,ac as Select,ax as Slide,aD as SlideFade,aj as Spinner,a9 as Tab,a7 as TabList,aa as TabPanel,a8 as TabPanels,aN as Table,aU as TableCaption,ab as Tabs,aP as Tbody,aT as Td,ae as Text,aQ as Tfoot,aS as Th,aO as Thead,am as ThemeProvider,aR as Tr,aE as createIcon,aI as useBreakpointValue,aF as useClipboard,aJ as useControllableProp,aK as useControllableState,aG as useDisclosure,aH as useMediaQuery,aL as usePrefersReducedMotion,aB as useTheme,aA as useToken}from"./index-22452751.js";import"react";import"prop-types";import"lodash/merge";import"lodash/template";import"react-dom";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-c8c6025d.js');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var PropTypes = require('prop-types');
|
|
6
6
|
require('lodash/merge');
|
|
@@ -90,299 +90,6 @@ index.setToStringTag(index.global_1.JSON, 'JSON', true);
|
|
|
90
90
|
|
|
91
91
|
var symbol$4 = index.path.Symbol;
|
|
92
92
|
|
|
93
|
-
var iterators = {};
|
|
94
|
-
|
|
95
|
-
var FunctionPrototype = Function.prototype;
|
|
96
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
97
|
-
var getDescriptor = index.descriptors && Object.getOwnPropertyDescriptor;
|
|
98
|
-
|
|
99
|
-
var EXISTS = index.hasOwnProperty_1(FunctionPrototype, 'name');
|
|
100
|
-
// additional protection from minified / mangled / dropped function names
|
|
101
|
-
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
102
|
-
var CONFIGURABLE = EXISTS && (!index.descriptors || (index.descriptors && getDescriptor(FunctionPrototype, 'name').configurable));
|
|
103
|
-
|
|
104
|
-
var functionName = {
|
|
105
|
-
EXISTS: EXISTS,
|
|
106
|
-
PROPER: PROPER,
|
|
107
|
-
CONFIGURABLE: CONFIGURABLE
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
var correctPrototypeGetter = !index.fails(function () {
|
|
111
|
-
function F() { /* empty */ }
|
|
112
|
-
F.prototype.constructor = null;
|
|
113
|
-
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
114
|
-
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
115
|
-
});
|
|
116
|
-
|
|
117
|
-
var IE_PROTO = index.sharedKey('IE_PROTO');
|
|
118
|
-
var Object$1 = index.global_1.Object;
|
|
119
|
-
var ObjectPrototype = Object$1.prototype;
|
|
120
|
-
|
|
121
|
-
// `Object.getPrototypeOf` method
|
|
122
|
-
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
123
|
-
var objectGetPrototypeOf = correctPrototypeGetter ? Object$1.getPrototypeOf : function (O) {
|
|
124
|
-
var object = index.toObject(O);
|
|
125
|
-
if (index.hasOwnProperty_1(object, IE_PROTO)) return object[IE_PROTO];
|
|
126
|
-
var constructor = object.constructor;
|
|
127
|
-
if (index.isCallable(constructor) && object instanceof constructor) {
|
|
128
|
-
return constructor.prototype;
|
|
129
|
-
} return object instanceof Object$1 ? ObjectPrototype : null;
|
|
130
|
-
};
|
|
131
|
-
|
|
132
|
-
var ITERATOR$4 = index.wellKnownSymbol('iterator');
|
|
133
|
-
var BUGGY_SAFARI_ITERATORS$1 = false;
|
|
134
|
-
|
|
135
|
-
// `%IteratorPrototype%` object
|
|
136
|
-
// https://tc39.es/ecma262/#sec-%iteratorprototype%-object
|
|
137
|
-
var IteratorPrototype$1, PrototypeOfArrayIteratorPrototype, arrayIterator;
|
|
138
|
-
|
|
139
|
-
/* eslint-disable es/no-array-prototype-keys -- safe */
|
|
140
|
-
if ([].keys) {
|
|
141
|
-
arrayIterator = [].keys();
|
|
142
|
-
// Safari 8 has buggy iterators w/o `next`
|
|
143
|
-
if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;
|
|
144
|
-
else {
|
|
145
|
-
PrototypeOfArrayIteratorPrototype = objectGetPrototypeOf(objectGetPrototypeOf(arrayIterator));
|
|
146
|
-
if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$1 = PrototypeOfArrayIteratorPrototype;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$1 == undefined || index.fails(function () {
|
|
151
|
-
var test = {};
|
|
152
|
-
// FF44- legacy iterators case
|
|
153
|
-
return IteratorPrototype$1[ITERATOR$4].call(test) !== test;
|
|
154
|
-
});
|
|
155
|
-
|
|
156
|
-
if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$1 = {};
|
|
157
|
-
else IteratorPrototype$1 = index.objectCreate(IteratorPrototype$1);
|
|
158
|
-
|
|
159
|
-
// `%IteratorPrototype%[@@iterator]()` method
|
|
160
|
-
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
|
161
|
-
if (!index.isCallable(IteratorPrototype$1[ITERATOR$4])) {
|
|
162
|
-
index.redefine(IteratorPrototype$1, ITERATOR$4, function () {
|
|
163
|
-
return this;
|
|
164
|
-
});
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
var iteratorsCore = {
|
|
168
|
-
IteratorPrototype: IteratorPrototype$1,
|
|
169
|
-
BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
|
|
170
|
-
};
|
|
171
|
-
|
|
172
|
-
var IteratorPrototype = iteratorsCore.IteratorPrototype;
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
var returnThis$1 = function () { return this; };
|
|
179
|
-
|
|
180
|
-
var createIteratorConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
|
|
181
|
-
var TO_STRING_TAG = NAME + ' Iterator';
|
|
182
|
-
IteratorConstructor.prototype = index.objectCreate(IteratorPrototype, { next: index.createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
|
|
183
|
-
index.setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true);
|
|
184
|
-
iterators[TO_STRING_TAG] = returnThis$1;
|
|
185
|
-
return IteratorConstructor;
|
|
186
|
-
};
|
|
187
|
-
|
|
188
|
-
var String$1 = index.global_1.String;
|
|
189
|
-
var TypeError$4 = index.global_1.TypeError;
|
|
190
|
-
|
|
191
|
-
var aPossiblePrototype = function (argument) {
|
|
192
|
-
if (typeof argument == 'object' || index.isCallable(argument)) return argument;
|
|
193
|
-
throw TypeError$4("Can't set " + String$1(argument) + ' as a prototype');
|
|
194
|
-
};
|
|
195
|
-
|
|
196
|
-
/* eslint-disable no-proto -- safe */
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
// `Object.setPrototypeOf` method
|
|
202
|
-
// https://tc39.es/ecma262/#sec-object.setprototypeof
|
|
203
|
-
// Works with __proto__ only. Old v8 can't work with null proto objects.
|
|
204
|
-
// eslint-disable-next-line es/no-object-setprototypeof -- safe
|
|
205
|
-
Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
|
206
|
-
var CORRECT_SETTER = false;
|
|
207
|
-
var test = {};
|
|
208
|
-
var setter;
|
|
209
|
-
try {
|
|
210
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
211
|
-
setter = index.functionUncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
|
|
212
|
-
setter(test, []);
|
|
213
|
-
CORRECT_SETTER = test instanceof Array;
|
|
214
|
-
} catch (error) { /* empty */ }
|
|
215
|
-
return function setPrototypeOf(O, proto) {
|
|
216
|
-
index.anObject(O);
|
|
217
|
-
aPossiblePrototype(proto);
|
|
218
|
-
if (CORRECT_SETTER) setter(O, proto);
|
|
219
|
-
else O.__proto__ = proto;
|
|
220
|
-
return O;
|
|
221
|
-
};
|
|
222
|
-
}() : undefined);
|
|
223
|
-
|
|
224
|
-
var PROPER_FUNCTION_NAME = functionName.PROPER;
|
|
225
|
-
var BUGGY_SAFARI_ITERATORS = iteratorsCore.BUGGY_SAFARI_ITERATORS;
|
|
226
|
-
var ITERATOR$3 = index.wellKnownSymbol('iterator');
|
|
227
|
-
var KEYS = 'keys';
|
|
228
|
-
var VALUES = 'values';
|
|
229
|
-
var ENTRIES = 'entries';
|
|
230
|
-
|
|
231
|
-
var returnThis = function () { return this; };
|
|
232
|
-
|
|
233
|
-
var defineIterator = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
|
|
234
|
-
createIteratorConstructor(IteratorConstructor, NAME, next);
|
|
235
|
-
|
|
236
|
-
var getIterationMethod = function (KIND) {
|
|
237
|
-
if (KIND === DEFAULT && defaultIterator) return defaultIterator;
|
|
238
|
-
if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];
|
|
239
|
-
switch (KIND) {
|
|
240
|
-
case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
|
|
241
|
-
case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
|
|
242
|
-
case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
|
|
243
|
-
} return function () { return new IteratorConstructor(this); };
|
|
244
|
-
};
|
|
245
|
-
|
|
246
|
-
var TO_STRING_TAG = NAME + ' Iterator';
|
|
247
|
-
var INCORRECT_VALUES_NAME = false;
|
|
248
|
-
var IterablePrototype = Iterable.prototype;
|
|
249
|
-
var nativeIterator = IterablePrototype[ITERATOR$3]
|
|
250
|
-
|| IterablePrototype['@@iterator']
|
|
251
|
-
|| DEFAULT && IterablePrototype[DEFAULT];
|
|
252
|
-
var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
|
|
253
|
-
var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
|
|
254
|
-
var CurrentIteratorPrototype, methods, KEY;
|
|
255
|
-
|
|
256
|
-
// fix native
|
|
257
|
-
if (anyNativeIterator) {
|
|
258
|
-
CurrentIteratorPrototype = objectGetPrototypeOf(anyNativeIterator.call(new Iterable()));
|
|
259
|
-
if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
|
|
260
|
-
// Set @@toStringTag to native iterators
|
|
261
|
-
index.setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true);
|
|
262
|
-
iterators[TO_STRING_TAG] = returnThis;
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
// fix Array.prototype.{ values, @@iterator }.name in V8 / FF
|
|
267
|
-
if (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
|
|
268
|
-
{
|
|
269
|
-
INCORRECT_VALUES_NAME = true;
|
|
270
|
-
defaultIterator = function values() { return index.functionCall(nativeIterator, this); };
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
// export additional methods
|
|
275
|
-
if (DEFAULT) {
|
|
276
|
-
methods = {
|
|
277
|
-
values: getIterationMethod(VALUES),
|
|
278
|
-
keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
|
|
279
|
-
entries: getIterationMethod(ENTRIES)
|
|
280
|
-
};
|
|
281
|
-
if (FORCED) for (KEY in methods) {
|
|
282
|
-
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
283
|
-
index.redefine(IterablePrototype, KEY, methods[KEY]);
|
|
284
|
-
}
|
|
285
|
-
} else index._export({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
// define iterator
|
|
289
|
-
if ((FORCED) && IterablePrototype[ITERATOR$3] !== defaultIterator) {
|
|
290
|
-
index.redefine(IterablePrototype, ITERATOR$3, defaultIterator, { name: DEFAULT });
|
|
291
|
-
}
|
|
292
|
-
iterators[NAME] = defaultIterator;
|
|
293
|
-
|
|
294
|
-
return methods;
|
|
295
|
-
};
|
|
296
|
-
|
|
297
|
-
var ARRAY_ITERATOR = 'Array Iterator';
|
|
298
|
-
var setInternalState$3 = index.internalState.set;
|
|
299
|
-
var getInternalState$1 = index.internalState.getterFor(ARRAY_ITERATOR);
|
|
300
|
-
|
|
301
|
-
// `Array.prototype.entries` method
|
|
302
|
-
// https://tc39.es/ecma262/#sec-array.prototype.entries
|
|
303
|
-
// `Array.prototype.keys` method
|
|
304
|
-
// https://tc39.es/ecma262/#sec-array.prototype.keys
|
|
305
|
-
// `Array.prototype.values` method
|
|
306
|
-
// https://tc39.es/ecma262/#sec-array.prototype.values
|
|
307
|
-
// `Array.prototype[@@iterator]` method
|
|
308
|
-
// https://tc39.es/ecma262/#sec-array.prototype-@@iterator
|
|
309
|
-
// `CreateArrayIterator` internal method
|
|
310
|
-
// https://tc39.es/ecma262/#sec-createarrayiterator
|
|
311
|
-
defineIterator(Array, 'Array', function (iterated, kind) {
|
|
312
|
-
setInternalState$3(this, {
|
|
313
|
-
type: ARRAY_ITERATOR,
|
|
314
|
-
target: index.toIndexedObject(iterated), // target
|
|
315
|
-
index: 0, // next index
|
|
316
|
-
kind: kind // kind
|
|
317
|
-
});
|
|
318
|
-
// `%ArrayIteratorPrototype%.next` method
|
|
319
|
-
// https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
|
|
320
|
-
}, function () {
|
|
321
|
-
var state = getInternalState$1(this);
|
|
322
|
-
var target = state.target;
|
|
323
|
-
var kind = state.kind;
|
|
324
|
-
var index = state.index++;
|
|
325
|
-
if (!target || index >= target.length) {
|
|
326
|
-
state.target = undefined;
|
|
327
|
-
return { value: undefined, done: true };
|
|
328
|
-
}
|
|
329
|
-
if (kind == 'keys') return { value: index, done: false };
|
|
330
|
-
if (kind == 'values') return { value: target[index], done: false };
|
|
331
|
-
return { value: [index, target[index]], done: false };
|
|
332
|
-
}, 'values');
|
|
333
|
-
|
|
334
|
-
// argumentsList[@@iterator] is %ArrayProto_values%
|
|
335
|
-
// https://tc39.es/ecma262/#sec-createunmappedargumentsobject
|
|
336
|
-
// https://tc39.es/ecma262/#sec-createmappedargumentsobject
|
|
337
|
-
iterators.Arguments = iterators.Array;
|
|
338
|
-
|
|
339
|
-
// iterable DOM collections
|
|
340
|
-
// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
|
|
341
|
-
var domIterables = {
|
|
342
|
-
CSSRuleList: 0,
|
|
343
|
-
CSSStyleDeclaration: 0,
|
|
344
|
-
CSSValueList: 0,
|
|
345
|
-
ClientRectList: 0,
|
|
346
|
-
DOMRectList: 0,
|
|
347
|
-
DOMStringList: 0,
|
|
348
|
-
DOMTokenList: 1,
|
|
349
|
-
DataTransferItemList: 0,
|
|
350
|
-
FileList: 0,
|
|
351
|
-
HTMLAllCollection: 0,
|
|
352
|
-
HTMLCollection: 0,
|
|
353
|
-
HTMLFormElement: 0,
|
|
354
|
-
HTMLSelectElement: 0,
|
|
355
|
-
MediaList: 0,
|
|
356
|
-
MimeTypeArray: 0,
|
|
357
|
-
NamedNodeMap: 0,
|
|
358
|
-
NodeList: 1,
|
|
359
|
-
PaintRequestList: 0,
|
|
360
|
-
Plugin: 0,
|
|
361
|
-
PluginArray: 0,
|
|
362
|
-
SVGLengthList: 0,
|
|
363
|
-
SVGNumberList: 0,
|
|
364
|
-
SVGPathSegList: 0,
|
|
365
|
-
SVGPointList: 0,
|
|
366
|
-
SVGStringList: 0,
|
|
367
|
-
SVGTransformList: 0,
|
|
368
|
-
SourceBufferList: 0,
|
|
369
|
-
StyleSheetList: 0,
|
|
370
|
-
TextTrackCueList: 0,
|
|
371
|
-
TextTrackList: 0,
|
|
372
|
-
TouchList: 0
|
|
373
|
-
};
|
|
374
|
-
|
|
375
|
-
var TO_STRING_TAG = index.wellKnownSymbol('toStringTag');
|
|
376
|
-
|
|
377
|
-
for (var COLLECTION_NAME in domIterables) {
|
|
378
|
-
var Collection = index.global_1[COLLECTION_NAME];
|
|
379
|
-
var CollectionPrototype = Collection && Collection.prototype;
|
|
380
|
-
if (CollectionPrototype && index.classof(CollectionPrototype) !== TO_STRING_TAG) {
|
|
381
|
-
index.createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);
|
|
382
|
-
}
|
|
383
|
-
iterators[COLLECTION_NAME] = iterators.Array;
|
|
384
|
-
}
|
|
385
|
-
|
|
386
93
|
var symbol$3 = symbol$4;
|
|
387
94
|
|
|
388
95
|
var symbol$2 = symbol$3;
|
|
@@ -471,7 +178,7 @@ var getInternalState = index.internalState.getterFor(STRING_ITERATOR);
|
|
|
471
178
|
|
|
472
179
|
// `String.prototype[@@iterator]` method
|
|
473
180
|
// https://tc39.es/ecma262/#sec-string.prototype-@@iterator
|
|
474
|
-
defineIterator(String, 'String', function (iterated) {
|
|
181
|
+
index.defineIterator(String, 'String', function (iterated) {
|
|
475
182
|
setInternalState$2(this, {
|
|
476
183
|
type: STRING_ITERATOR,
|
|
477
184
|
string: index.toString_1(iterated),
|
|
@@ -495,7 +202,7 @@ var ITERATOR$2 = index.wellKnownSymbol('iterator');
|
|
|
495
202
|
var getIteratorMethod$4 = function (it) {
|
|
496
203
|
if (it != undefined) return index.getMethod(it, ITERATOR$2)
|
|
497
204
|
|| index.getMethod(it, '@@iterator')
|
|
498
|
-
|| iterators[index.classof(it)];
|
|
205
|
+
|| index.iterators[index.classof(it)];
|
|
499
206
|
};
|
|
500
207
|
|
|
501
208
|
var getIteratorMethod_1 = getIteratorMethod$4;
|
|
@@ -626,7 +333,7 @@ var ArrayPrototype = Array.prototype;
|
|
|
626
333
|
|
|
627
334
|
// check on default Array iterator
|
|
628
335
|
var isArrayIteratorMethod = function (it) {
|
|
629
|
-
return it !== undefined && (iterators.Array === it || ArrayPrototype[ITERATOR$1] === it);
|
|
336
|
+
return it !== undefined && (index.iterators.Array === it || ArrayPrototype[ITERATOR$1] === it);
|
|
630
337
|
};
|
|
631
338
|
|
|
632
339
|
var TypeError$3 = index.global_1.TypeError;
|
|
@@ -2825,13 +2532,18 @@ index.unwrapExports(ChevronRight);
|
|
|
2825
2532
|
|
|
2826
2533
|
var chevronRight = ChevronRight;
|
|
2827
2534
|
|
|
2828
|
-
var _s = $RefreshSig$();
|
|
2829
|
-
|
|
2830
2535
|
var _excluded = ["images", "width", "height"];
|
|
2831
2536
|
|
|
2832
|
-
|
|
2833
|
-
|
|
2537
|
+
(function () {
|
|
2538
|
+
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
2539
|
+
enterModule && enterModule(module);
|
|
2540
|
+
})();
|
|
2541
|
+
|
|
2542
|
+
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
2543
|
+
return a;
|
|
2544
|
+
};
|
|
2834
2545
|
|
|
2546
|
+
var ImageCarousel = function ImageCarousel(_ref) {
|
|
2835
2547
|
var images = _ref.images,
|
|
2836
2548
|
width = _ref.width,
|
|
2837
2549
|
height = _ref.height,
|
|
@@ -2915,7 +2627,7 @@ var ImageCarousel = function ImageCarousel(_ref) {
|
|
|
2915
2627
|
src: image.src,
|
|
2916
2628
|
alt: image.alt
|
|
2917
2629
|
})));
|
|
2918
|
-
}))), /*#__PURE__*/React__default['default'].createElement(index.
|
|
2630
|
+
}))), /*#__PURE__*/React__default['default'].createElement(index._default, {
|
|
2919
2631
|
onClick: scrollPrev,
|
|
2920
2632
|
width: "16",
|
|
2921
2633
|
height: "100%",
|
|
@@ -2939,7 +2651,7 @@ var ImageCarousel = function ImageCarousel(_ref) {
|
|
|
2939
2651
|
borderRadius: "50%",
|
|
2940
2652
|
bgColor: "black",
|
|
2941
2653
|
opacity: "0.6"
|
|
2942
|
-
}, /*#__PURE__*/React__default['default'].createElement(chevronLeft, null))), /*#__PURE__*/React__default['default'].createElement(index.
|
|
2654
|
+
}, /*#__PURE__*/React__default['default'].createElement(chevronLeft, null))), /*#__PURE__*/React__default['default'].createElement(index._default, {
|
|
2943
2655
|
onClick: scrollNext,
|
|
2944
2656
|
width: "16",
|
|
2945
2657
|
height: "100%",
|
|
@@ -2978,11 +2690,10 @@ var ImageCarousel = function ImageCarousel(_ref) {
|
|
|
2978
2690
|
}, selectedIndex + 1, "/", images.length));
|
|
2979
2691
|
};
|
|
2980
2692
|
|
|
2981
|
-
|
|
2693
|
+
__signature__(ImageCarousel, "useEmblaCarousel{[viewportRef, embla]}\nuseState{[selectedIndex, setSelectedIndex](0)}\nuseCallback{scrollPrev}\nuseCallback{scrollNext}\nuseCallback{onSelect}\nuseEffect{}", function () {
|
|
2982
2694
|
return [useEmblaCarousel];
|
|
2983
2695
|
});
|
|
2984
2696
|
|
|
2985
|
-
_c = ImageCarousel;
|
|
2986
2697
|
ImageCarousel.propTypes = {
|
|
2987
2698
|
/** Array of images with src and alt */
|
|
2988
2699
|
images: PropTypes__default['default'].arrayOf(PropTypes__default['default'].shape({
|
|
@@ -2996,10 +2707,23 @@ ImageCarousel.propTypes = {
|
|
|
2996
2707
|
/** Width of the carousel in rem */
|
|
2997
2708
|
width: PropTypes__default['default'].number
|
|
2998
2709
|
};
|
|
2710
|
+
var _default = ImageCarousel;
|
|
2711
|
+
|
|
2712
|
+
(function () {
|
|
2713
|
+
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
2714
|
+
|
|
2715
|
+
if (!reactHotLoader) {
|
|
2716
|
+
return;
|
|
2717
|
+
}
|
|
2999
2718
|
|
|
3000
|
-
|
|
2719
|
+
reactHotLoader.register(ImageCarousel, "ImageCarousel", "/tmp/build/44cb8d9a/src/src/v2/components/ImageCarousel/ImageCarousel.jsx");
|
|
2720
|
+
reactHotLoader.register(_default, "default", "/tmp/build/44cb8d9a/src/src/v2/components/ImageCarousel/ImageCarousel.jsx");
|
|
2721
|
+
})();
|
|
3001
2722
|
|
|
3002
|
-
|
|
2723
|
+
(function () {
|
|
2724
|
+
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
2725
|
+
leaveModule && leaveModule(module);
|
|
2726
|
+
})();
|
|
3003
2727
|
|
|
3004
|
-
exports.default =
|
|
3005
|
-
//# sourceMappingURL=ImageCarousel-
|
|
2728
|
+
exports.default = _default;
|
|
2729
|
+
//# sourceMappingURL=ImageCarousel-0575526b.js.map
|