@ornikar/kitt-universal 2.0.0 → 2.3.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 (49) hide show
  1. package/dist/definitions/Button/Button.d.ts +6 -3
  2. package/dist/definitions/Button/Button.d.ts.map +1 -1
  3. package/dist/definitions/Button/{ButtonContainer.d.ts → ButtonPressable.d.ts} +3 -3
  4. package/dist/definitions/Button/{ButtonContainer.d.ts.map → ButtonPressable.d.ts.map} +1 -1
  5. package/dist/definitions/ExternalLink/ExternalLink.d.ts +18 -0
  6. package/dist/definitions/ExternalLink/ExternalLink.d.ts.map +1 -0
  7. package/dist/definitions/ExternalLink/ExternalLink.web.d.ts +4 -0
  8. package/dist/definitions/ExternalLink/ExternalLink.web.d.ts.map +1 -0
  9. package/dist/definitions/ExternalLink/ExternalLinkOpenLinkBehavior.d.ts +24 -0
  10. package/dist/definitions/ExternalLink/ExternalLinkOpenLinkBehavior.d.ts.map +1 -0
  11. package/dist/definitions/IconButton/PressableAnimatedContainer.d.ts +2 -4
  12. package/dist/definitions/IconButton/PressableAnimatedContainer.d.ts.map +1 -1
  13. package/dist/definitions/IconButton/PressableAnimatedContainer.web.d.ts +4 -0
  14. package/dist/definitions/IconButton/PressableAnimatedContainer.web.d.ts.map +1 -0
  15. package/dist/definitions/Tag/Tag.d.ts +6 -3
  16. package/dist/definitions/Tag/Tag.d.ts.map +1 -1
  17. package/dist/definitions/index.d.ts +3 -1
  18. package/dist/definitions/index.d.ts.map +1 -1
  19. package/dist/definitions/primitives/PrimitiveLink.d.ts +3 -1
  20. package/dist/definitions/primitives/PrimitiveLink.d.ts.map +1 -1
  21. package/dist/definitions/primitives/PrimitiveLink.web.d.ts +1 -1
  22. package/dist/definitions/primitives/PrimitiveLink.web.d.ts.map +1 -1
  23. package/dist/definitions/primitives/PrimitivePressable.d.ts +3 -1
  24. package/dist/definitions/primitives/PrimitivePressable.d.ts.map +1 -1
  25. package/dist/definitions/primitives/PrimitivePressable.web.d.ts.map +1 -1
  26. package/dist/definitions/primitives/PrimitiveView.d.ts +2 -0
  27. package/dist/definitions/primitives/PrimitiveView.d.ts.map +1 -1
  28. package/dist/definitions/primitives/PrimitiveView.web.d.ts +6 -2
  29. package/dist/definitions/primitives/PrimitiveView.web.d.ts.map +1 -1
  30. package/dist/definitions/themes/default.d.ts +30 -3
  31. package/dist/definitions/themes/default.d.ts.map +1 -1
  32. package/dist/definitions/themes/late-ocean/tagLateOceanTheme.d.ts +30 -3
  33. package/dist/definitions/themes/late-ocean/tagLateOceanTheme.d.ts.map +1 -1
  34. package/dist/definitions/typography/TypographyLink.d.ts +7 -4
  35. package/dist/definitions/typography/TypographyLink.d.ts.map +1 -1
  36. package/dist/index-browser-all.es.android.js +218 -119
  37. package/dist/index-browser-all.es.android.js.map +1 -1
  38. package/dist/index-browser-all.es.ios.js +218 -119
  39. package/dist/index-browser-all.es.ios.js.map +1 -1
  40. package/dist/index-browser-all.es.js +218 -131
  41. package/dist/index-browser-all.es.js.map +1 -1
  42. package/dist/index-browser-all.es.web.js +289 -171
  43. package/dist/index-browser-all.es.web.js.map +1 -1
  44. package/dist/index-node-14.17.cjs.js +169 -86
  45. package/dist/index-node-14.17.cjs.js.map +1 -1
  46. package/dist/tsbuildinfo +1 -1
  47. package/package.json +6 -5
  48. package/dist/definitions/Button/useButton.d.ts +0 -6
  49. package/dist/definitions/Button/useButton.d.ts.map +0 -1
@@ -4,10 +4,11 @@ import _taggedTemplateLiteral from '@babel/runtime/helpers/taggedTemplateLiteral
4
4
  import { UserIcon, EyeIcon, EyeOffIcon, XIcon, InfoIcon, AlertTriangleIcon, CheckIcon, AlertCircleIcon } from '@ornikar/kitt-icons';
5
5
  export * from '@ornikar/kitt-icons';
6
6
  import React, { useRef, useEffect, useContext, createContext, useState, forwardRef, Fragment, useMemo } from 'react';
7
- import { View, Animated, Easing, Text as Text$1, Image, Pressable, TextInput, useWindowDimensions, ActivityIndicator, TouchableOpacity, StyleSheet, ScrollView, Modal as Modal$1 } from 'react-native';
7
+ import { View, Animated, Easing, Text as Text$1, Image, Pressable, Linking, TextInput, useWindowDimensions, ActivityIndicator, TouchableOpacity, StyleSheet, ScrollView, Modal as Modal$1 } from 'react-native';
8
8
  export { useWindowDimensions as useWindowSize } from 'react-native';
9
9
  import styled, { useTheme, css, ThemeProvider } from 'styled-components';
10
10
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
11
+ import { openBrowserAsync } from 'expo-web-browser';
11
12
  import { useSafeAreaInsets, SafeAreaProvider } from 'react-native-safe-area-context';
12
13
  import Animated$1, { useSharedValue, useAnimatedStyle, withSpring } from 'react-native-reanimated';
13
14
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
@@ -80,7 +81,7 @@ function Icon(_ref5) {
80
81
 
81
82
  var PrimitiveText = Text$1;
82
83
 
83
- var _excluded$9 = ["accessibilityRole", "base", "variant", "color"];
84
+ var _excluded$a = ["accessibilityRole", "base", "variant", "color"];
84
85
 
85
86
  var _templateObject$t;
86
87
  var TypographyTypeContext = /*#__PURE__*/createContext(undefined);
@@ -118,7 +119,7 @@ function Typography(_ref3) {
118
119
  base = _ref3.base,
119
120
  variant = _ref3.variant,
120
121
  color = _ref3.color,
121
- otherProps = _objectWithoutProperties(_ref3, _excluded$9);
122
+ otherProps = _objectWithoutProperties(_ref3, _excluded$a);
122
123
 
123
124
  var typeInContext = useContext(TypographyTypeContext);
124
125
  var isHeader = isTypographyHeader(base, typeInContext);
@@ -197,7 +198,7 @@ Typography.h4 = createHeading(4, 'header4');
197
198
 
198
199
  Typography.h5 = createHeading(5, 'header5');
199
200
 
200
- var _excluded$8 = ["size"];
201
+ var _excluded$9 = ["size"];
201
202
 
202
203
  var _templateObject$s;
203
204
 
@@ -263,7 +264,7 @@ function AvatarContent(_ref5) {
263
264
  function Avatar(_ref6) {
264
265
  var _ref6$size = _ref6.size,
265
266
  size = _ref6$size === void 0 ? 40 : _ref6$size,
266
- rest = _objectWithoutProperties(_ref6, _excluded$8);
267
+ rest = _objectWithoutProperties(_ref6, _excluded$9);
267
268
 
268
269
  return /*#__PURE__*/React.createElement(StyledAvatarView, _extends({}, rest, {
269
270
  size: size
@@ -272,50 +273,7 @@ function Avatar(_ref6) {
272
273
  })));
273
274
  }
274
275
 
275
- var PrimitivePressable = Pressable;
276
-
277
- var _templateObject$r;
278
- var ButtonContainer = styled(PrimitivePressable)(_templateObject$r || (_templateObject$r = _taggedTemplateLiteral(["\n min-width: ", ";\n max-width: ", ";\n width: ", ";\n min-height: ", ";\n background-color: ", ";\n padding: ", ";\n flex-direction: row;\n\n /* Emulate inline-* css display by making the button taking only its necessary space */\n align-self: flex-start;\n border-radius: ", ";\n border-color: ", ";\n border-width: ", ";\n"])), function (_ref) {
279
- var theme = _ref.theme;
280
- return theme.kitt.button.minWidth;
281
- }, function (_ref2) {
282
- var theme = _ref2.theme,
283
- stretch = _ref2.stretch;
284
- return stretch ? 'auto' : theme.kitt.button.maxWidth;
285
- }, function (_ref3) {
286
- var stretch = _ref3.stretch;
287
- return stretch ? '100%' : 'auto';
288
- }, function (_ref4) {
289
- var theme = _ref4.theme;
290
- return theme.kitt.button.minHeight;
291
- }, function (_ref5) {
292
- var theme = _ref5.theme,
293
- isPressed = _ref5.isPressed,
294
- disabled = _ref5.disabled,
295
- type = _ref5.type;
296
-
297
- if (disabled) {
298
- return theme.kitt.button[type].disabledBackgroundColor;
299
- }
300
-
301
- return isPressed ? theme.kitt.button[type].pressedBackgroundColor : theme.kitt.button[type].backgroundColor;
302
- }, function (_ref6) {
303
- var theme = _ref6.theme;
304
- return theme.kitt.button.contentPadding["default"];
305
- }, function (_ref7) {
306
- var theme = _ref7.theme;
307
- return theme.kitt.button.borderRadius;
308
- }, function (_ref8) {
309
- var theme = _ref8.theme,
310
- disabled = _ref8.disabled,
311
- type = _ref8.type;
312
- return disabled ? theme.kitt.button[type].disabledBorderColor : 'transparent';
313
- }, function (_ref9) {
314
- var theme = _ref9.theme;
315
- return theme.kitt.button.borderWidth;
316
- });
317
-
318
- var _excluded$7 = ["color"],
276
+ var _excluded$8 = ["color"],
319
277
  _excluded2$2 = ["color"];
320
278
 
321
279
  function TypographyIconInheritColor(props) {
@@ -328,7 +286,7 @@ function TypographyIconInheritColor(props) {
328
286
 
329
287
  function TypographyIconSpecifiedColor(_ref) {
330
288
  var color = _ref.color,
331
- otherProps = _objectWithoutProperties(_ref, _excluded$7);
289
+ otherProps = _objectWithoutProperties(_ref, _excluded$8);
332
290
 
333
291
  var theme = useTheme();
334
292
  return /*#__PURE__*/React.createElement(Icon, _extends({}, otherProps, {
@@ -349,7 +307,7 @@ function TypographyIcon(_ref2) {
349
307
  return /*#__PURE__*/React.createElement(TypographyIconInheritColor, otherProps);
350
308
  }
351
309
 
352
- var _templateObject$q, _templateObject2$c, _templateObject3$8;
310
+ var _templateObject$r, _templateObject2$c, _templateObject3$8;
353
311
 
354
312
  var getTextColorByType = function (type, isPressed, disabled) {
355
313
  if (disabled) return 'black-light';
@@ -370,7 +328,7 @@ var getTextColorByType = function (type, isPressed, disabled) {
370
328
  }
371
329
  };
372
330
 
373
- var ButtonText = styled(Typography.Text)(_templateObject$q || (_templateObject$q = _taggedTemplateLiteral(["\n /* On native code, this is the only way to ensure that the text is centered */\n text-align: center;\n"])));
331
+ var ButtonText = styled(Typography.Text)(_templateObject$r || (_templateObject$r = _taggedTemplateLiteral(["\n /* On native code, this is the only way to ensure that the text is centered */\n text-align: center;\n"])));
374
332
  var Content$1 = styled(PrimitiveView)(_templateObject2$c || (_templateObject2$c = _taggedTemplateLiteral(["\n flex-direction: row;\n align-items: center;\n justify-content: center;\n\n /*\n On native code flex grow does not work as expected which cause an issue with the flex props.\n In order to occupy only the needed space, we enable flex grow only when stretched\n */\n flex: ", ";\n"])), function (_ref) {
375
333
  var stretch = _ref.stretch,
376
334
  iconOnly = _ref.iconOnly;
@@ -454,22 +412,48 @@ function ButtonContent(_ref4) {
454
412
  })) : null);
455
413
  }
456
414
 
457
- var useButton = function () {
458
- var _useState = useState(false),
459
- _useState2 = _slicedToArray(_useState, 2),
460
- isPressed = _useState2[0],
461
- setIsPressed = _useState2[1];
415
+ var PrimitivePressable = Pressable;
462
416
 
463
- return {
464
- isPressed: isPressed,
465
- handleButtonPressIn: function handleButtonPressIn() {
466
- return setIsPressed(true);
467
- },
468
- handleButtonPressOut: function handleButtonPressOut() {
469
- return setIsPressed(false);
470
- }
471
- };
472
- };
417
+ var _templateObject$q;
418
+ var ButtonPressable = styled(PrimitivePressable)(_templateObject$q || (_templateObject$q = _taggedTemplateLiteral(["\n min-width: ", ";\n max-width: ", ";\n width: ", ";\n min-height: ", ";\n background-color: ", ";\n padding: ", ";\n flex-direction: row;\n\n /* Emulate inline-* css display by making the button taking only its necessary space */\n align-self: flex-start;\n border-radius: ", ";\n border-color: ", ";\n border-width: ", ";\n"])), function (_ref) {
419
+ var theme = _ref.theme;
420
+ return theme.kitt.button.minWidth;
421
+ }, function (_ref2) {
422
+ var theme = _ref2.theme,
423
+ stretch = _ref2.stretch;
424
+ return stretch ? 'auto' : theme.kitt.button.maxWidth;
425
+ }, function (_ref3) {
426
+ var stretch = _ref3.stretch;
427
+ return stretch ? '100%' : 'auto';
428
+ }, function (_ref4) {
429
+ var theme = _ref4.theme;
430
+ return theme.kitt.button.minHeight;
431
+ }, function (_ref5) {
432
+ var theme = _ref5.theme,
433
+ isPressed = _ref5.isPressed,
434
+ disabled = _ref5.disabled,
435
+ type = _ref5.type;
436
+
437
+ if (disabled) {
438
+ return theme.kitt.button[type].disabledBackgroundColor;
439
+ }
440
+
441
+ return isPressed ? theme.kitt.button[type].pressedBackgroundColor : theme.kitt.button[type].backgroundColor;
442
+ }, function (_ref6) {
443
+ var theme = _ref6.theme;
444
+ return theme.kitt.button.contentPadding["default"];
445
+ }, function (_ref7) {
446
+ var theme = _ref7.theme;
447
+ return theme.kitt.button.borderRadius;
448
+ }, function (_ref8) {
449
+ var theme = _ref8.theme,
450
+ disabled = _ref8.disabled,
451
+ type = _ref8.type;
452
+ return disabled ? theme.kitt.button[type].disabledBorderColor : 'transparent';
453
+ }, function (_ref9) {
454
+ var theme = _ref9.theme;
455
+ return theme.kitt.button.borderWidth;
456
+ });
473
457
 
474
458
  function Button(_ref) {
475
459
  var children = _ref.children,
@@ -481,29 +465,37 @@ function Button(_ref) {
481
465
  iconSpin = _ref.iconSpin,
482
466
  stretch = _ref.stretch,
483
467
  disabled = _ref.disabled,
484
- onPress = _ref.onPress,
485
- testID = _ref.testID;
468
+ testID = _ref.testID,
469
+ href = _ref.href,
470
+ hrefAttrs = _ref.hrefAttrs,
471
+ onPress = _ref.onPress;
486
472
 
487
- var _useButton = useButton(),
488
- isPressed = _useButton.isPressed,
489
- handleButtonPressIn = _useButton.handleButtonPressIn,
490
- handleButtonPressOut = _useButton.handleButtonPressOut;
473
+ var _useState = useState(false),
474
+ _useState2 = _slicedToArray(_useState, 2),
475
+ isPressed = _useState2[0],
476
+ setIsPressed = _useState2[1];
491
477
 
492
478
  var sharedProps = {
493
479
  type: type,
494
480
  stretch: stretch,
495
481
  disabled: disabled
496
482
  };
497
- return /*#__PURE__*/React.createElement(ButtonContainer // eslint-disable-next-line unicorn/expiring-todo-comments
483
+ return /*#__PURE__*/React.createElement(ButtonPressable // eslint-disable-next-line unicorn/expiring-todo-comments
498
484
  // TODO: When designs are defined, update with the proper onPress styles to mimic TouchableHighlight
499
485
  // underlayColor={globalTheme.button[type].pressedBackgroundColor}
500
486
  , _extends({}, sharedProps, {
501
487
  isPressed: isPressed,
502
488
  accessibilityRole: "button",
503
489
  testID: testID,
490
+ href: href,
491
+ hrefAttrs: hrefAttrs,
504
492
  onPress: onPress,
505
- onPressIn: handleButtonPressIn,
506
- onPressOut: handleButtonPressOut
493
+ onPressIn: function handleButtonPressIn() {
494
+ return setIsPressed(true);
495
+ },
496
+ onPressOut: function handleButtonPressOut() {
497
+ return setIsPressed(false);
498
+ }
507
499
  }), /*#__PURE__*/React.createElement(ButtonContent, _extends({}, sharedProps, {
508
500
  icon: icon,
509
501
  iconPosition: iconPosition,
@@ -538,6 +530,49 @@ function Card(_ref6) {
538
530
  }, children);
539
531
  }
540
532
 
533
+ var defaultOpenLinkBehavior = {
534
+ "native": 'openInModal',
535
+ web: 'targetBlank'
536
+ };
537
+
538
+ var _excluded$7 = ["as", "href", "openLinkBehavior", "onPress"];
539
+ function ExternalLink(_ref) {
540
+ var Component = _ref.as,
541
+ href = _ref.href,
542
+ _ref$openLinkBehavior = _ref.openLinkBehavior,
543
+ openLinkBehavior = _ref$openLinkBehavior === void 0 ? defaultOpenLinkBehavior : _ref$openLinkBehavior,
544
+ onPress = _ref.onPress,
545
+ rest = _objectWithoutProperties(_ref, _excluded$7);
546
+
547
+ return /*#__PURE__*/React.createElement(Component, _extends({}, rest, {
548
+ onPress: function handleOnPress() {
549
+ if (onPress) onPress();
550
+ if (!href) return;
551
+
552
+ switch (openLinkBehavior["native"]) {
553
+ case 'openInModal':
554
+ case undefined:
555
+ Linking.openURL(href)["catch"](function (err) {
556
+ console.error("An error occurred while opening ".concat(href), err);
557
+ });
558
+ break;
559
+
560
+ case 'openBrowserApp':
561
+ openBrowserAsync(href)["catch"](function (err) {
562
+ console.error("An error occurred while opening ".concat(href), err);
563
+ });
564
+ break;
565
+
566
+ default:
567
+ if ((process.env.NODE_ENV !== "production")) {
568
+ throw new Error("Invalid ExternalLink native behavior: ".concat(openLinkBehavior["native"]));
569
+ }
570
+
571
+ }
572
+ }
573
+ }));
574
+ }
575
+
541
576
  var getColorFromState = function (state) {
542
577
  switch (state) {
543
578
  case 'invalid':
@@ -1063,33 +1098,31 @@ var PressableIconButton = styled(PrimitivePressable)(_templateObject$i || (_temp
1063
1098
  });
1064
1099
 
1065
1100
  var _templateObject$h, _templateObject2$7;
1066
-
1067
- var AnimatedIconButtonBackground = styled(Animated$1.View)(_templateObject$h || (_templateObject$h = _taggedTemplateLiteral(["\n background-color: ", ";\n border-radius: ", "px;\n width: ", "px;\n height: ", "px;\n position: absolute;\n bottom: 0;\n left: 0;\n"])), function (_ref2) {
1068
- var theme = _ref2.theme,
1069
- color = _ref2.color,
1070
- disabled = _ref2.disabled;
1101
+ var AnimatedIconButtonBackground = styled(Animated$1.View)(_templateObject$h || (_templateObject$h = _taggedTemplateLiteral(["\n background-color: ", ";\n border-radius: ", "px;\n width: ", "px;\n height: ", "px;\n position: absolute;\n bottom: 0;\n left: 0;\n"])), function (_ref) {
1102
+ var theme = _ref.theme,
1103
+ color = _ref.color,
1104
+ disabled = _ref.disabled;
1071
1105
  var iconButton = theme.kitt.iconButton;
1072
1106
  if (disabled) return iconButton.disabled.backgroundColor;
1073
1107
  if (color === 'white') return iconButton.white.pressedBackgroundColor;
1074
1108
  return iconButton["default"].pressedBackgroundColor;
1109
+ }, function (_ref2) {
1110
+ var theme = _ref2.theme;
1111
+ return theme.kitt.iconButton.borderRadius;
1075
1112
  }, function (_ref3) {
1076
1113
  var theme = _ref3.theme;
1077
- return theme.kitt.iconButton.borderRadius;
1114
+ return theme.kitt.iconButton.width;
1078
1115
  }, function (_ref4) {
1079
1116
  var theme = _ref4.theme;
1080
- return theme.kitt.iconButton.width;
1081
- }, function (_ref5) {
1082
- var theme = _ref5.theme;
1083
1117
  return theme.kitt.iconButton.height;
1084
1118
  });
1085
1119
  var AnimatedViewContainer = styled(Animated$1.View)(_templateObject2$7 || (_templateObject2$7 = _taggedTemplateLiteral(["\n position: relative;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n"])));
1086
-
1087
- function NativeAnimatedContainer(_ref6) {
1088
- var disabled = _ref6.disabled,
1089
- _ref6$color = _ref6.color,
1090
- color = _ref6$color === void 0 ? 'black' : _ref6$color,
1091
- children = _ref6.children,
1092
- onPress = _ref6.onPress;
1120
+ function PressableAnimatedContainer(_ref5) {
1121
+ var disabled = _ref5.disabled,
1122
+ _ref5$color = _ref5.color,
1123
+ color = _ref5$color === void 0 ? 'black' : _ref5$color,
1124
+ children = _ref5.children,
1125
+ onPress = _ref5.onPress;
1093
1126
  var theme = useTheme();
1094
1127
  var pressed = useSharedValue(false);
1095
1128
  var opacityStyles = useAnimatedStyle(function () {
@@ -1105,7 +1138,7 @@ function NativeAnimatedContainer(_ref6) {
1105
1138
  };
1106
1139
  _f.asString = "function _f(){const{withSpring,pressed}=jsThis._closure;{return{opacity:withSpring(pressed.value?1:0)};}}";
1107
1140
  _f.__workletHash = 10645190329247;
1108
- _f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/IconButton/PressableAnimatedContainer.tsx (64:41)";
1141
+ _f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/IconButton/PressableAnimatedContainer.tsx (55:41)";
1109
1142
  _f.__optimalization = 2;
1110
1143
 
1111
1144
  global.__reanimatedWorkletInit(_f);
@@ -1139,7 +1172,7 @@ function NativeAnimatedContainer(_ref6) {
1139
1172
  };
1140
1173
  _f.asString = "function _f(){const{withSpring,pressed,theme}=jsThis._closure;{return{transform:[{scale:withSpring(pressed.value?theme.kitt.iconButton.scale.base.active:theme.kitt.iconButton.scale.base.default)}]};}}";
1141
1174
  _f.__workletHash = 13861998831411;
1142
- _f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/IconButton/PressableAnimatedContainer.tsx (70:39)";
1175
+ _f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/IconButton/PressableAnimatedContainer.tsx (61:39)";
1143
1176
  _f.__optimalization = 2;
1144
1177
 
1145
1178
  global.__reanimatedWorkletInit(_f);
@@ -1172,8 +1205,6 @@ function NativeAnimatedContainer(_ref6) {
1172
1205
  }), children));
1173
1206
  }
1174
1207
 
1175
- var PressableAnimatedContainer = NativeAnimatedContainer;
1176
-
1177
1208
  var _templateObject$g;
1178
1209
  var IconButtonContentBorder = styled(PrimitiveView)(_templateObject$g || (_templateObject$g = _taggedTemplateLiteral(["\n border: ", ";\n border-color: ", ";\n width: ", "px;\n height: ", "px;\n align-items: center;\n justify-content: center;\n border-radius: ", "px;\n"])), function (_ref) {
1179
1210
  var theme = _ref.theme;
@@ -1275,9 +1306,9 @@ var _excluded$3 = ["children", "withPadding", "borders", "left", "right", "onPre
1275
1306
 
1276
1307
  var _templateObject$d;
1277
1308
 
1278
- function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
1309
+ function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
1279
1310
 
1280
- function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$1(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
1311
+ function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1281
1312
  var ContainerView = styled(PrimitiveView)(_templateObject$d || (_templateObject$d = _taggedTemplateLiteral(["\n flex-direction: row;\n padding: ", ";\n ", ";\n border-color: ", ";\n background-color: ", ";\n"])), function (_ref) {
1282
1313
  var withPadding = _ref.withPadding,
1283
1314
  theme = _ref.theme;
@@ -1469,9 +1500,9 @@ function Message(_ref11) {
1469
1500
  })) : null);
1470
1501
  }
1471
1502
 
1472
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
1503
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
1473
1504
 
1474
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
1505
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1475
1506
  var OverlayPressable = styled(PrimitivePressable)(function (_ref) {
1476
1507
  var theme = _ref.theme;
1477
1508
  return _objectSpread(_objectSpread({}, StyleSheet.absoluteFillObject), {}, {
@@ -1889,26 +1920,63 @@ var StoryGrid = {
1889
1920
  };
1890
1921
 
1891
1922
  var _templateObject$1;
1892
- var Container = styled(PrimitiveView)(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteral(["\n background-color: ", ";\n padding: ", ";\n border-radius: ", ";\n align-self: flex-start;\n"])), function (_ref) {
1923
+ var Container = styled(PrimitiveView)(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteral(["\n background-color: ", ";\n border-width: ", ";\n border-color: ", ";\n padding: ", ";\n border-radius: ", ";\n align-self: flex-start;\n"])), function (_ref) {
1893
1924
  var theme = _ref.theme,
1894
- type = _ref.type;
1895
- return theme.kitt.tag[type].backgroundColor;
1925
+ type = _ref.type,
1926
+ variant = _ref.variant;
1927
+ return theme.kitt.tag[type][variant].backgroundColor;
1896
1928
  }, function (_ref2) {
1897
- var theme = _ref2.theme;
1898
- return theme.kitt.tag.padding;
1929
+ var theme = _ref2.theme,
1930
+ type = _ref2.type,
1931
+ variant = _ref2.variant;
1932
+ return theme.kitt.tag[type][variant].borderWidth;
1899
1933
  }, function (_ref3) {
1900
- var theme = _ref3.theme;
1934
+ var theme = _ref3.theme,
1935
+ type = _ref3.type,
1936
+ variant = _ref3.variant;
1937
+ return theme.kitt.tag[type][variant].borderColor;
1938
+ }, function (_ref4) {
1939
+ var theme = _ref4.theme;
1940
+ return theme.kitt.tag.padding;
1941
+ }, function (_ref5) {
1942
+ var theme = _ref5.theme;
1901
1943
  return theme.kitt.tag.borderRadius;
1902
1944
  });
1903
- function Tag(_ref4) {
1904
- var label = _ref4.label,
1905
- _ref4$type = _ref4.type,
1906
- type = _ref4$type === void 0 ? 'default' : _ref4$type;
1945
+ var getLabelColor = function (type, variant) {
1946
+ switch (type) {
1947
+ case 'danger':
1948
+ {
1949
+ return variant === 'outline' ? 'danger' : 'black';
1950
+ }
1951
+
1952
+ case 'primary':
1953
+ {
1954
+ return 'primary';
1955
+ }
1956
+
1957
+ case 'default':
1958
+ {
1959
+ return 'black';
1960
+ }
1961
+
1962
+ default:
1963
+ {
1964
+ return 'black';
1965
+ }
1966
+ }
1967
+ };
1968
+ function Tag(_ref6) {
1969
+ var label = _ref6.label,
1970
+ _ref6$type = _ref6.type,
1971
+ type = _ref6$type === void 0 ? 'default' : _ref6$type,
1972
+ _ref6$variant = _ref6.variant,
1973
+ variant = _ref6$variant === void 0 ? 'fill' : _ref6$variant;
1907
1974
  return /*#__PURE__*/React.createElement(Container, {
1908
- type: type
1975
+ type: type,
1976
+ variant: variant
1909
1977
  }, /*#__PURE__*/React.createElement(Typography.Text, {
1910
1978
  base: "body-xsmall",
1911
- color: type === 'primary' ? 'primary-light' : undefined
1979
+ color: getLabelColor(type, variant)
1912
1980
  }, label));
1913
1981
  }
1914
1982
 
@@ -1963,9 +2031,9 @@ var buttonLateOceanTheme = {
1963
2031
  disabledBorderColor: lateOceanColorPalette.black100
1964
2032
  },
1965
2033
  secondary: {
1966
- backgroundColor: lateOceanColorPalette.black50,
2034
+ backgroundColor: 'rgba(0, 0, 0, 0.05)',
1967
2035
  disabledBackgroundColor: lateOceanColorPalette.black50,
1968
- pressedBackgroundColor: lateOceanColorPalette.black100,
2036
+ pressedBackgroundColor: 'rgba(0, 0, 0, 0.1)',
1969
2037
  disabledBorderColor: lateOceanColorPalette.black100
1970
2038
  },
1971
2039
  subtle: {
@@ -2166,13 +2234,40 @@ var tagLateOceanTheme = {
2166
2234
  borderRadius: '10px',
2167
2235
  padding: '2px 12px',
2168
2236
  primary: {
2169
- backgroundColor: lateOceanColorPalette.moonPurpleLight1
2237
+ fill: {
2238
+ backgroundColor: lateOceanColorPalette.moonPurpleLight1,
2239
+ borderWidth: '0',
2240
+ borderColor: lateOceanColorPalette.transparent
2241
+ },
2242
+ outline: {
2243
+ backgroundColor: lateOceanColorPalette.transparent,
2244
+ borderWidth: '1px',
2245
+ borderColor: lateOceanColorPalette.lateOcean
2246
+ }
2170
2247
  },
2171
2248
  "default": {
2172
- backgroundColor: lateOceanColorPalette.black50
2249
+ fill: {
2250
+ backgroundColor: lateOceanColorPalette.black50,
2251
+ borderWidth: '0',
2252
+ borderColor: lateOceanColorPalette.transparent
2253
+ },
2254
+ outline: {
2255
+ backgroundColor: lateOceanColorPalette.transparent,
2256
+ borderWidth: '1px',
2257
+ borderColor: lateOceanColorPalette.black1000
2258
+ }
2173
2259
  },
2174
2260
  danger: {
2175
- backgroundColor: lateOceanColorPalette.warmEmbrace
2261
+ fill: {
2262
+ backgroundColor: lateOceanColorPalette.warmEmbrace,
2263
+ borderWidth: '0',
2264
+ borderColor: lateOceanColorPalette.transparent
2265
+ },
2266
+ outline: {
2267
+ backgroundColor: lateOceanColorPalette.transparent,
2268
+ borderWidth: '1px',
2269
+ borderColor: colorsLateOceanTheme.danger
2270
+ }
2176
2271
  }
2177
2272
  };
2178
2273
 
@@ -2300,7 +2395,7 @@ function Tooltip(_ref) {
2300
2395
  return /*#__PURE__*/React.createElement(PrimitiveView, null, children);
2301
2396
  }
2302
2397
 
2303
- var _excluded$1 = ["children", "disabled", "noUnderline", "onPress"];
2398
+ var _excluded$1 = ["children", "disabled", "noUnderline", "href", "hrefAttrs", "onPress"];
2304
2399
 
2305
2400
  var _templateObject;
2306
2401
  var StyledLink = styled(PrimitiveLink).withConfig({
@@ -2320,6 +2415,8 @@ function TypographyLink(_ref3) {
2320
2415
  var children = _ref3.children,
2321
2416
  disabled = _ref3.disabled,
2322
2417
  noUnderline = _ref3.noUnderline,
2418
+ href = _ref3.href,
2419
+ hrefAttrs = _ref3.hrefAttrs,
2323
2420
  onPress = _ref3.onPress,
2324
2421
  otherProps = _objectWithoutProperties(_ref3, _excluded$1);
2325
2422
 
@@ -2328,6 +2425,8 @@ function TypographyLink(_ref3) {
2328
2425
  }), /*#__PURE__*/React.createElement(StyledLink, {
2329
2426
  disabled: disabled,
2330
2427
  noUnderline: noUnderline,
2428
+ href: href,
2429
+ hrefAttrs: hrefAttrs,
2331
2430
  accessibilityRole: "link",
2332
2431
  onPress: disabled ? undefined : onPress
2333
2432
  }, children));
@@ -2436,5 +2535,5 @@ function MatchWindowSize(_ref) {
2436
2535
  return /*#__PURE__*/React.createElement(React.Fragment, null, children);
2437
2536
  }
2438
2537
 
2439
- export { Avatar, Button, Card, Flex, FullScreenModal, Icon, IconButton, InputFeedback, InputField, InputText, KittBreakpoints, KittBreakpointsMax, KittThemeDecorator, Label, LargeLoader, ListItem, Loader, MatchWindowSize, Message, Modal, Notification, PrimitiveLink, PrimitivePressable, PrimitiveScrollView, PrimitiveText, PrimitiveView, Radio, SafeAreaProviderDecorator, DeprecatedSection as Section, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, Tag, TextArea, Tooltip, Typography, TypographyIcon, TypographyLink, createWindowSizeHelper, matchWindowSize, styledTextInputMixin, theme, useKittTheme, useMatchWindowSize, useStoryBlockColor };
2538
+ export { Avatar, Button, Card, ExternalLink, Flex, FullScreenModal, Icon, IconButton, InputFeedback, InputField, InputText, KittBreakpoints, KittBreakpointsMax, KittThemeDecorator, KittThemeProvider, Label, LargeLoader, ListItem, Loader, MatchWindowSize, Message, Modal, Notification, PrimitiveLink, PrimitivePressable, PrimitiveScrollView, PrimitiveText, PrimitiveView, Radio, SafeAreaProviderDecorator, DeprecatedSection as Section, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, Tag, TextArea, Tooltip, Typography, TypographyIcon, TypographyLink, createWindowSizeHelper, matchWindowSize, styledTextInputMixin, theme, useKittTheme, useMatchWindowSize, useStoryBlockColor };
2440
2539
  //# sourceMappingURL=index-browser-all.es.ios.js.map