@janiscommerce/ui-web 0.1.0 → 0.1.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/index.umd.js CHANGED
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('react-dom')) :
3
- typeof define === 'function' && define.amd ? define(['exports', 'react', 'react-dom'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.main = {}, global.React, global.require$$1));
5
- })(this, (function (exports, React, require$$1) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('react-router-dom'), require('react-dom')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', 'react', 'react-router-dom', 'react-dom'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.main = {}, global.React, global.reactRouterDom, global.require$$1));
5
+ })(this, (function (exports, React, reactRouterDom, require$$1) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -75,8 +75,8 @@
75
75
  return obj;
76
76
  }
77
77
 
78
- function _extends$2() {
79
- _extends$2 = Object.assign || function (target) {
78
+ function _extends$1() {
79
+ _extends$1 = Object.assign || function (target) {
80
80
  for (var i = 1; i < arguments.length; i++) {
81
81
  var source = arguments[i];
82
82
 
@@ -90,7 +90,7 @@
90
90
  return target;
91
91
  };
92
92
 
93
- return _extends$2.apply(this, arguments);
93
+ return _extends$1.apply(this, arguments);
94
94
  }
95
95
 
96
96
  function _inherits$2(subClass, superClass) {
@@ -140,7 +140,7 @@
140
140
  }
141
141
  }
142
142
 
143
- function _objectWithoutPropertiesLoose$1(source, excluded) {
143
+ function _objectWithoutPropertiesLoose(source, excluded) {
144
144
  if (source == null) return {};
145
145
  var target = {};
146
146
  var sourceKeys = Object.keys(source);
@@ -158,7 +158,7 @@
158
158
  function _objectWithoutProperties(source, excluded) {
159
159
  if (source == null) return {};
160
160
 
161
- var target = _objectWithoutPropertiesLoose$1(source, excluded);
161
+ var target = _objectWithoutPropertiesLoose(source, excluded);
162
162
 
163
163
  var key, i;
164
164
 
@@ -20004,7 +20004,7 @@
20004
20004
  })(["padding:5px;border:1px dashed #ccc;cursor:default;display:grid;justify-items:center;justify-content:center;grid-row-gap:5px;", ";& ", "{", ";}&:hover{color:", ";}&:hover ", "{fill:", ";}"], mixins.transition('color'), styles.Svg, mixins.transition('fill'), palette.blue, styles.Svg, palette.blue)
20005
20005
  });
20006
20006
 
20007
- var _excluded$8 = ["color", "name", "size", "styles", "pathStyles", "width", "height", "viewBox"];
20007
+ var _excluded$7 = ["color", "name", "size", "styles", "pathStyles", "width", "height", "viewBox"];
20008
20008
 
20009
20009
  var Icon = function Icon(_ref) {
20010
20010
  var color = _ref.color,
@@ -20015,7 +20015,7 @@
20015
20015
  width = _ref.width,
20016
20016
  height = _ref.height,
20017
20017
  viewBox = _ref.viewBox,
20018
- props = _objectWithoutProperties(_ref, _excluded$8);
20018
+ props = _objectWithoutProperties(_ref, _excluded$7);
20019
20019
 
20020
20020
  var iconProps = icons[name];
20021
20021
  if (!iconProps) return null;
@@ -20023,7 +20023,7 @@
20023
20023
  defaultSize = iconProps.size;
20024
20024
  var size = sizeProp || defaultSize;
20025
20025
  if (!path) return null;
20026
- return /*#__PURE__*/React__default["default"].createElement(styles.Svg, _extends$2({
20026
+ return /*#__PURE__*/React__default["default"].createElement(styles.Svg, _extends$1({
20027
20027
  width: width || size,
20028
20028
  height: height || size,
20029
20029
  styles: styles$1,
@@ -20120,7 +20120,7 @@
20120
20120
  return props.styles;
20121
20121
  });
20122
20122
 
20123
- var _excluded$7 = ["children", "color", "hideLabel", "icon", "iconColor", "iconSize", "fontColor", "rounded", "styles", "variant"];
20123
+ var _excluded$6 = ["children", "color", "hideLabel", "icon", "iconColor", "iconSize", "fontColor", "rounded", "styles", "variant"];
20124
20124
 
20125
20125
  var Button = function Button(_ref) {
20126
20126
  var children = _ref.children,
@@ -20133,9 +20133,9 @@
20133
20133
  rounded = _ref.rounded,
20134
20134
  styles = _ref.styles,
20135
20135
  variant = _ref.variant,
20136
- props = _objectWithoutProperties(_ref, _excluded$7);
20136
+ props = _objectWithoutProperties(_ref, _excluded$6);
20137
20137
 
20138
- return /*#__PURE__*/React__default["default"].createElement(StyledButton, _extends$2({
20138
+ return /*#__PURE__*/React__default["default"].createElement(StyledButton, _extends$1({
20139
20139
  color: color,
20140
20140
  iconColor: iconColor || fontColor,
20141
20141
  fontColor: fontColor,
@@ -20180,7 +20180,7 @@
20180
20180
  })
20181
20181
  };
20182
20182
 
20183
- var _excluded$6 = ["autoComplete", "disabled", "defaultChecked", "onChange", "rounded", "styles", "value"];
20183
+ var _excluded$5 = ["autoComplete", "disabled", "defaultChecked", "onChange", "rounded", "styles", "value"];
20184
20184
 
20185
20185
  var Checkbox = function Checkbox(_ref) {
20186
20186
  var autoComplete = _ref.autoComplete,
@@ -20190,7 +20190,7 @@
20190
20190
  rounded = _ref.rounded,
20191
20191
  styles = _ref.styles,
20192
20192
  value = _ref.value,
20193
- props = _objectWithoutProperties(_ref, _excluded$6);
20193
+ props = _objectWithoutProperties(_ref, _excluded$5);
20194
20194
 
20195
20195
  var _useState = React.useState(!!value || defaultChecked),
20196
20196
  _useState2 = _slicedToArray(_useState, 2),
@@ -20209,7 +20209,7 @@
20209
20209
  checked: conntroledChecked,
20210
20210
  rounded: rounded,
20211
20211
  styles: styles
20212
- }, /*#__PURE__*/React__default["default"].createElement(styled$9.Input, _extends$2({}, props, {
20212
+ }, /*#__PURE__*/React__default["default"].createElement(styled$9.Input, _extends$1({}, props, {
20213
20213
  type: "checkbox",
20214
20214
  disabled: disabled,
20215
20215
  autoComplete: autoComplete ? 'on' : 'off',
@@ -20282,448 +20282,6 @@
20282
20282
  })(["text-overflow:ellipsis;overflow:hidden;"])
20283
20283
  };
20284
20284
 
20285
- /**
20286
- * Actions represent the type of change to a location value.
20287
- *
20288
- * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#action
20289
- */
20290
- var Action;
20291
-
20292
- (function (Action) {
20293
- /**
20294
- * A POP indicates a change to an arbitrary index in the history stack, such
20295
- * as a back or forward navigation. It does not describe the direction of the
20296
- * navigation, only that the current index changed.
20297
- *
20298
- * Note: This is the default action for newly created history objects.
20299
- */
20300
- Action["Pop"] = "POP";
20301
- /**
20302
- * A PUSH indicates a new entry being added to the history stack, such as when
20303
- * a link is clicked and a new page loads. When this happens, all subsequent
20304
- * entries in the stack are lost.
20305
- */
20306
-
20307
- Action["Push"] = "PUSH";
20308
- /**
20309
- * A REPLACE indicates the entry at the current index in the history stack
20310
- * being replaced by a new one.
20311
- */
20312
-
20313
- Action["Replace"] = "REPLACE";
20314
- })(Action || (Action = {}));
20315
- /**
20316
- * Creates a string URL path from the given pathname, search, and hash components.
20317
- *
20318
- * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#createpath
20319
- */
20320
-
20321
-
20322
- function createPath(_ref) {
20323
- var _ref$pathname = _ref.pathname,
20324
- pathname = _ref$pathname === void 0 ? '/' : _ref$pathname,
20325
- _ref$search = _ref.search,
20326
- search = _ref$search === void 0 ? '' : _ref$search,
20327
- _ref$hash = _ref.hash,
20328
- hash = _ref$hash === void 0 ? '' : _ref$hash;
20329
- if (search && search !== '?') pathname += search.charAt(0) === '?' ? search : '?' + search;
20330
- if (hash && hash !== '#') pathname += hash.charAt(0) === '#' ? hash : '#' + hash;
20331
- return pathname;
20332
- }
20333
- /**
20334
- * Parses a string URL path into its separate pathname, search, and hash components.
20335
- *
20336
- * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#parsepath
20337
- */
20338
-
20339
- function parsePath(path) {
20340
- var parsedPath = {};
20341
-
20342
- if (path) {
20343
- var hashIndex = path.indexOf('#');
20344
-
20345
- if (hashIndex >= 0) {
20346
- parsedPath.hash = path.substr(hashIndex);
20347
- path = path.substr(0, hashIndex);
20348
- }
20349
-
20350
- var searchIndex = path.indexOf('?');
20351
-
20352
- if (searchIndex >= 0) {
20353
- parsedPath.search = path.substr(searchIndex);
20354
- path = path.substr(0, searchIndex);
20355
- }
20356
-
20357
- if (path) {
20358
- parsedPath.pathname = path;
20359
- }
20360
- }
20361
-
20362
- return parsedPath;
20363
- }
20364
-
20365
- /**
20366
- * React Router v6.3.0
20367
- *
20368
- * Copyright (c) Remix Software Inc.
20369
- *
20370
- * This source code is licensed under the MIT license found in the
20371
- * LICENSE.md file in the root directory of this source tree.
20372
- *
20373
- * @license MIT
20374
- */
20375
-
20376
- const NavigationContext = /*#__PURE__*/React.createContext(null);
20377
-
20378
- const LocationContext = /*#__PURE__*/React.createContext(null);
20379
-
20380
- const RouteContext = /*#__PURE__*/React.createContext({
20381
- outlet: null,
20382
- matches: []
20383
- });
20384
-
20385
- function invariant(cond, message) {
20386
- if (!cond) throw new Error(message);
20387
- }
20388
- /**
20389
- * Returns a resolved path object relative to the given pathname.
20390
- *
20391
- * @see https://reactrouter.com/docs/en/v6/api#resolvepath
20392
- */
20393
-
20394
-
20395
- function resolvePath(to, fromPathname) {
20396
- if (fromPathname === void 0) {
20397
- fromPathname = "/";
20398
- }
20399
-
20400
- let {
20401
- pathname: toPathname,
20402
- search = "",
20403
- hash = ""
20404
- } = typeof to === "string" ? parsePath(to) : to;
20405
- let pathname = toPathname ? toPathname.startsWith("/") ? toPathname : resolvePathname(toPathname, fromPathname) : fromPathname;
20406
- return {
20407
- pathname,
20408
- search: normalizeSearch(search),
20409
- hash: normalizeHash(hash)
20410
- };
20411
- }
20412
-
20413
- function resolvePathname(relativePath, fromPathname) {
20414
- let segments = fromPathname.replace(/\/+$/, "").split("/");
20415
- let relativeSegments = relativePath.split("/");
20416
- relativeSegments.forEach(segment => {
20417
- if (segment === "..") {
20418
- // Keep the root "" segment so the pathname starts at /
20419
- if (segments.length > 1) segments.pop();
20420
- } else if (segment !== ".") {
20421
- segments.push(segment);
20422
- }
20423
- });
20424
- return segments.length > 1 ? segments.join("/") : "/";
20425
- }
20426
-
20427
- function resolveTo(toArg, routePathnames, locationPathname) {
20428
- let to = typeof toArg === "string" ? parsePath(toArg) : toArg;
20429
- let toPathname = toArg === "" || to.pathname === "" ? "/" : to.pathname; // If a pathname is explicitly provided in `to`, it should be relative to the
20430
- // route context. This is explained in `Note on `<Link to>` values` in our
20431
- // migration guide from v5 as a means of disambiguation between `to` values
20432
- // that begin with `/` and those that do not. However, this is problematic for
20433
- // `to` values that do not provide a pathname. `to` can simply be a search or
20434
- // hash string, in which case we should assume that the navigation is relative
20435
- // to the current location's pathname and *not* the route pathname.
20436
-
20437
- let from;
20438
-
20439
- if (toPathname == null) {
20440
- from = locationPathname;
20441
- } else {
20442
- let routePathnameIndex = routePathnames.length - 1;
20443
-
20444
- if (toPathname.startsWith("..")) {
20445
- let toSegments = toPathname.split("/"); // Each leading .. segment means "go up one route" instead of "go up one
20446
- // URL segment". This is a key difference from how <a href> works and a
20447
- // major reason we call this a "to" value instead of a "href".
20448
-
20449
- while (toSegments[0] === "..") {
20450
- toSegments.shift();
20451
- routePathnameIndex -= 1;
20452
- }
20453
-
20454
- to.pathname = toSegments.join("/");
20455
- } // If there are more ".." segments than parent routes, resolve relative to
20456
- // the root / URL.
20457
-
20458
-
20459
- from = routePathnameIndex >= 0 ? routePathnames[routePathnameIndex] : "/";
20460
- }
20461
-
20462
- let path = resolvePath(to, from); // Ensure the pathname has a trailing slash if the original to value had one.
20463
-
20464
- if (toPathname && toPathname !== "/" && toPathname.endsWith("/") && !path.pathname.endsWith("/")) {
20465
- path.pathname += "/";
20466
- }
20467
-
20468
- return path;
20469
- }
20470
- function getToPathname(to) {
20471
- // Empty strings should be treated the same as / paths
20472
- return to === "" || to.pathname === "" ? "/" : typeof to === "string" ? parsePath(to).pathname : to.pathname;
20473
- }
20474
- const joinPaths = paths => paths.join("/").replace(/\/\/+/g, "/");
20475
-
20476
- const normalizeSearch = search => !search || search === "?" ? "" : search.startsWith("?") ? search : "?" + search;
20477
-
20478
- const normalizeHash = hash => !hash || hash === "#" ? "" : hash.startsWith("#") ? hash : "#" + hash;
20479
-
20480
- /**
20481
- * Returns the full href for the given "to" value. This is useful for building
20482
- * custom links that are also accessible and preserve right-click behavior.
20483
- *
20484
- * @see https://reactrouter.com/docs/en/v6/api#usehref
20485
- */
20486
-
20487
- function useHref(to) {
20488
- !useInRouterContext() ? invariant(false) : void 0;
20489
- let {
20490
- basename,
20491
- navigator
20492
- } = React.useContext(NavigationContext);
20493
- let {
20494
- hash,
20495
- pathname,
20496
- search
20497
- } = useResolvedPath(to);
20498
- let joinedPathname = pathname;
20499
-
20500
- if (basename !== "/") {
20501
- let toPathname = getToPathname(to);
20502
- let endsWithSlash = toPathname != null && toPathname.endsWith("/");
20503
- joinedPathname = pathname === "/" ? basename + (endsWithSlash ? "/" : "") : joinPaths([basename, pathname]);
20504
- }
20505
-
20506
- return navigator.createHref({
20507
- pathname: joinedPathname,
20508
- search,
20509
- hash
20510
- });
20511
- }
20512
- /**
20513
- * Returns true if this component is a descendant of a <Router>.
20514
- *
20515
- * @see https://reactrouter.com/docs/en/v6/api#useinroutercontext
20516
- */
20517
-
20518
- function useInRouterContext() {
20519
- return React.useContext(LocationContext) != null;
20520
- }
20521
- /**
20522
- * Returns the current location object, which represents the current URL in web
20523
- * browsers.
20524
- *
20525
- * Note: If you're using this it may mean you're doing some of your own
20526
- * "routing" in your app, and we'd like to know what your use case is. We may
20527
- * be able to provide something higher-level to better suit your needs.
20528
- *
20529
- * @see https://reactrouter.com/docs/en/v6/api#uselocation
20530
- */
20531
-
20532
- function useLocation() {
20533
- !useInRouterContext() ? invariant(false) : void 0;
20534
- return React.useContext(LocationContext).location;
20535
- }
20536
- /**
20537
- * The interface for the navigate() function returned from useNavigate().
20538
- */
20539
-
20540
- /**
20541
- * Returns an imperative method for changing the location. Used by <Link>s, but
20542
- * may also be used by other elements to change the location.
20543
- *
20544
- * @see https://reactrouter.com/docs/en/v6/api#usenavigate
20545
- */
20546
- function useNavigate() {
20547
- !useInRouterContext() ? invariant(false) : void 0;
20548
- let {
20549
- basename,
20550
- navigator
20551
- } = React.useContext(NavigationContext);
20552
- let {
20553
- matches
20554
- } = React.useContext(RouteContext);
20555
- let {
20556
- pathname: locationPathname
20557
- } = useLocation();
20558
- let routePathnamesJson = JSON.stringify(matches.map(match => match.pathnameBase));
20559
- let activeRef = React.useRef(false);
20560
- React.useEffect(() => {
20561
- activeRef.current = true;
20562
- });
20563
- let navigate = React.useCallback(function (to, options) {
20564
- if (options === void 0) {
20565
- options = {};
20566
- }
20567
- if (!activeRef.current) return;
20568
-
20569
- if (typeof to === "number") {
20570
- navigator.go(to);
20571
- return;
20572
- }
20573
-
20574
- let path = resolveTo(to, JSON.parse(routePathnamesJson), locationPathname);
20575
-
20576
- if (basename !== "/") {
20577
- path.pathname = joinPaths([basename, path.pathname]);
20578
- }
20579
-
20580
- (!!options.replace ? navigator.replace : navigator.push)(path, options.state);
20581
- }, [basename, navigator, routePathnamesJson, locationPathname]);
20582
- return navigate;
20583
- }
20584
- /**
20585
- * Resolves the pathname of the given `to` value against the current location.
20586
- *
20587
- * @see https://reactrouter.com/docs/en/v6/api#useresolvedpath
20588
- */
20589
-
20590
- function useResolvedPath(to) {
20591
- let {
20592
- matches
20593
- } = React.useContext(RouteContext);
20594
- let {
20595
- pathname: locationPathname
20596
- } = useLocation();
20597
- let routePathnamesJson = JSON.stringify(matches.map(match => match.pathnameBase));
20598
- return React.useMemo(() => resolveTo(to, JSON.parse(routePathnamesJson), locationPathname), [to, routePathnamesJson, locationPathname]);
20599
- }
20600
-
20601
- /**
20602
- * React Router DOM v6.3.0
20603
- *
20604
- * Copyright (c) Remix Software Inc.
20605
- *
20606
- * This source code is licensed under the MIT license found in the
20607
- * LICENSE.md file in the root directory of this source tree.
20608
- *
20609
- * @license MIT
20610
- */
20611
-
20612
- function _extends$1() {
20613
- _extends$1 = Object.assign || function (target) {
20614
- for (var i = 1; i < arguments.length; i++) {
20615
- var source = arguments[i];
20616
-
20617
- for (var key in source) {
20618
- if (Object.prototype.hasOwnProperty.call(source, key)) {
20619
- target[key] = source[key];
20620
- }
20621
- }
20622
- }
20623
-
20624
- return target;
20625
- };
20626
-
20627
- return _extends$1.apply(this, arguments);
20628
- }
20629
-
20630
- function _objectWithoutPropertiesLoose(source, excluded) {
20631
- if (source == null) return {};
20632
- var target = {};
20633
- var sourceKeys = Object.keys(source);
20634
- var key, i;
20635
-
20636
- for (i = 0; i < sourceKeys.length; i++) {
20637
- key = sourceKeys[i];
20638
- if (excluded.indexOf(key) >= 0) continue;
20639
- target[key] = source[key];
20640
- }
20641
-
20642
- return target;
20643
- }
20644
-
20645
- const _excluded$5 = ["onClick", "reloadDocument", "replace", "state", "target", "to"];
20646
-
20647
- function isModifiedEvent(event) {
20648
- return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
20649
- }
20650
-
20651
- /**
20652
- * The public API for rendering a history-aware <a>.
20653
- */
20654
- const Link$1 = /*#__PURE__*/React.forwardRef(function LinkWithRef(_ref4, ref) {
20655
- let {
20656
- onClick,
20657
- reloadDocument,
20658
- replace = false,
20659
- state,
20660
- target,
20661
- to
20662
- } = _ref4,
20663
- rest = _objectWithoutPropertiesLoose(_ref4, _excluded$5);
20664
-
20665
- let href = useHref(to);
20666
- let internalOnClick = useLinkClickHandler(to, {
20667
- replace,
20668
- state,
20669
- target
20670
- });
20671
-
20672
- function handleClick(event) {
20673
- if (onClick) onClick(event);
20674
-
20675
- if (!event.defaultPrevented && !reloadDocument) {
20676
- internalOnClick(event);
20677
- }
20678
- }
20679
-
20680
- return (
20681
- /*#__PURE__*/
20682
- // eslint-disable-next-line jsx-a11y/anchor-has-content
20683
- React.createElement("a", _extends$1({}, rest, {
20684
- href: href,
20685
- onClick: handleClick,
20686
- ref: ref,
20687
- target: target
20688
- }))
20689
- );
20690
- });
20691
- // HOOKS
20692
- ////////////////////////////////////////////////////////////////////////////////
20693
-
20694
- /**
20695
- * Handles the click behavior for router `<Link>` components. This is useful if
20696
- * you need to create custom `<Link>` components with the same click behavior we
20697
- * use in our exported `<Link>`.
20698
- */
20699
-
20700
-
20701
- function useLinkClickHandler(to, _temp) {
20702
- let {
20703
- target,
20704
- replace: replaceProp,
20705
- state
20706
- } = _temp === void 0 ? {} : _temp;
20707
- let navigate = useNavigate();
20708
- let location = useLocation();
20709
- let path = useResolvedPath(to);
20710
- return React.useCallback(event => {
20711
- if (event.button === 0 && ( // Ignore everything but left clicks
20712
- !target || target === "_self") && // Let browser handle "target=_blank" etc.
20713
- !isModifiedEvent(event) // Ignore clicks with modifier keys
20714
- ) {
20715
- event.preventDefault(); // If the URL hasn't changed, a regular <a> will do a replace instead of
20716
- // a push, so do the same here.
20717
-
20718
- let replace = !!replaceProp || createPath(location) === createPath(path);
20719
- navigate(to, {
20720
- replace,
20721
- state
20722
- });
20723
- }
20724
- }, [location, navigate, path, replaceProp, state, target, to]);
20725
- }
20726
-
20727
20285
  var styled$7 = {
20728
20286
  LinkWrapper: styled$a.div.withConfig({
20729
20287
  displayName: "styles__LinkWrapper",
@@ -20762,7 +20320,7 @@
20762
20320
  path = href.replace("".concat(origin), '');
20763
20321
  }
20764
20322
 
20765
- return /*#__PURE__*/React__default["default"].createElement(styled$7.LinkWrapper, props, renderIcon(), /*#__PURE__*/React__default["default"].createElement(Link$1, {
20323
+ return /*#__PURE__*/React__default["default"].createElement(styled$7.LinkWrapper, props, renderIcon(), /*#__PURE__*/React__default["default"].createElement(reactRouterDom.Link, {
20766
20324
  to: path,
20767
20325
  "data-test": "react-router-link"
20768
20326
  }, children || href));
@@ -20799,7 +20357,7 @@
20799
20357
  props = _objectWithoutProperties(_ref, _excluded$3);
20800
20358
 
20801
20359
  var linkForHref = linkField && data[linkField];
20802
- return /*#__PURE__*/React__default["default"].createElement(styled$8.Chip, _extends$2({
20360
+ return /*#__PURE__*/React__default["default"].createElement(styled$8.Chip, _extends$1({
20803
20361
  as: props.onClick ? 'button' : 'div',
20804
20362
  backgroundColor: backgroundColor,
20805
20363
  borderColor: borderColor,
@@ -21233,7 +20791,7 @@
21233
20791
  }, props.label), icon && /*#__PURE__*/React__default["default"].createElement(styled$4.InputIcon, {
21234
20792
  name: icon,
21235
20793
  color: error ? 'error' : 'black'
21236
- }), /*#__PURE__*/React__default["default"].createElement(styled$4.Input, _extends$2({}, props, {
20794
+ }), /*#__PURE__*/React__default["default"].createElement(styled$4.Input, _extends$1({}, props, {
21237
20795
  ref: this.input,
21238
20796
  placeholder: hasFloatingLabel && !isFloating ? '' : placeholder,
21239
20797
  onBlur: this.handleBlur,
@@ -21445,7 +21003,7 @@
21445
21003
  var isFloating = isFocused || !!value;
21446
21004
  return /*#__PURE__*/React__default["default"].createElement(styled$3.Container, {
21447
21005
  fullWidth: props.fullWidth
21448
- }, hasFloatingLabel && /*#__PURE__*/React__default["default"].createElement(styled$3.FloatingLabel, _extends$2({}, props, {
21006
+ }, hasFloatingLabel && /*#__PURE__*/React__default["default"].createElement(styled$3.FloatingLabel, _extends$1({}, props, {
21449
21007
  "data-test": "floatingLabel",
21450
21008
  error: error,
21451
21009
  onClick: this.handleLabelClick,
@@ -21453,7 +21011,7 @@
21453
21011
  isFocused: isFocused,
21454
21012
  isFloating: isFloating,
21455
21013
  isTranslateActive: isTranslateActive
21456
- }), label), /*#__PURE__*/React__default["default"].createElement(styled$3.Textarea, _extends$2({}, props, {
21014
+ }), label), /*#__PURE__*/React__default["default"].createElement(styled$3.Textarea, _extends$1({}, props, {
21457
21015
  ref: this.textarea,
21458
21016
  placeholder: hasFloatingLabel && !isFloating ? '' : placeholder,
21459
21017
  onBlur: this.handleBlur,