@ornikar/kitt-universal 11.0.0 → 11.2.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 (63) hide show
  1. package/dist/definitions/ActionCard/ActionCard.d.ts +3 -2
  2. package/dist/definitions/ActionCard/ActionCard.d.ts.map +1 -1
  3. package/dist/definitions/ActionCard/ActionCardContentWrapper.d.ts +3 -2
  4. package/dist/definitions/ActionCard/ActionCardContentWrapper.d.ts.map +1 -1
  5. package/dist/definitions/ActionCard/types.d.ts +1 -0
  6. package/dist/definitions/ActionCard/types.d.ts.map +1 -1
  7. package/dist/definitions/ActionCard/utils/getThemeName.d.ts +4 -0
  8. package/dist/definitions/ActionCard/utils/getThemeName.d.ts.map +1 -0
  9. package/dist/definitions/Button/ButtonContent.d.ts.map +1 -1
  10. package/dist/definitions/NavigationModal/NavigationModal.d.ts +1 -1
  11. package/dist/definitions/NavigationModal/NavigationModal.d.ts.map +1 -1
  12. package/dist/definitions/Tag/Tag.d.ts.map +1 -1
  13. package/dist/definitions/forms/InputFeedback/InputFeedback.d.ts.map +1 -1
  14. package/dist/definitions/forms/styledTextInputMixin.d.ts.map +1 -1
  15. package/dist/definitions/index.d.ts +3 -1
  16. package/dist/definitions/index.d.ts.map +1 -1
  17. package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +170 -0
  18. package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
  19. package/dist/definitions/story-components/StoryBlock.d.ts +2 -2
  20. package/dist/definitions/story-components/StoryBlock.d.ts.map +1 -1
  21. package/dist/definitions/story-components/StoryTitle.d.ts.map +1 -1
  22. package/dist/definitions/themes/late-ocean/actionCard.d.ts +2 -0
  23. package/dist/definitions/themes/late-ocean/actionCard.d.ts.map +1 -1
  24. package/dist/definitions/typography/Typography.d.ts +6 -8
  25. package/dist/definitions/typography/Typography.d.ts.map +1 -1
  26. package/dist/definitions/typography/TypographyEmoji.d.ts.map +1 -1
  27. package/dist/definitions/typography/TypographyIcon.d.ts.map +1 -1
  28. package/dist/definitions/typography/typographyColors.d.ts +2 -0
  29. package/dist/definitions/typography/typographyColors.d.ts.map +1 -0
  30. package/dist/definitions/typography/utils/getNBThemeColorFromColorProps.d.ts +3 -0
  31. package/dist/definitions/typography/utils/getNBThemeColorFromColorProps.d.ts.map +1 -0
  32. package/dist/definitions/typography/utils/getTypographyColorValue.d.ts +5 -0
  33. package/dist/definitions/typography/utils/getTypographyColorValue.d.ts.map +1 -0
  34. package/dist/definitions/typography/utils/isTypeHeader.d.ts +3 -0
  35. package/dist/definitions/typography/utils/isTypeHeader.d.ts.map +1 -0
  36. package/dist/definitions/typography/utils/isTypographyHeader.d.ts +3 -0
  37. package/dist/definitions/typography/utils/isTypographyHeader.d.ts.map +1 -0
  38. package/dist/index-browser-all.es.android.js +379 -33
  39. package/dist/index-browser-all.es.android.js.map +1 -1
  40. package/dist/index-browser-all.es.ios.js +379 -33
  41. package/dist/index-browser-all.es.ios.js.map +1 -1
  42. package/dist/index-browser-all.es.js +379 -33
  43. package/dist/index-browser-all.es.js.map +1 -1
  44. package/dist/index-browser-all.es.web.js +373 -26
  45. package/dist/index-browser-all.es.web.js.map +1 -1
  46. package/dist/index-node-14.17.cjs.js +372 -26
  47. package/dist/index-node-14.17.cjs.js.map +1 -1
  48. package/dist/index-node-14.17.cjs.web.js +365 -18
  49. package/dist/index-node-14.17.cjs.web.js.map +1 -1
  50. package/dist/linaria-themes-browser-all.es.android.js +134 -0
  51. package/dist/linaria-themes-browser-all.es.android.js.map +1 -1
  52. package/dist/linaria-themes-browser-all.es.ios.js +134 -0
  53. package/dist/linaria-themes-browser-all.es.ios.js.map +1 -1
  54. package/dist/linaria-themes-browser-all.es.js +134 -0
  55. package/dist/linaria-themes-browser-all.es.js.map +1 -1
  56. package/dist/linaria-themes-browser-all.es.web.js +134 -0
  57. package/dist/linaria-themes-browser-all.es.web.js.map +1 -1
  58. package/dist/linaria-themes-node-14.17.cjs.js +134 -0
  59. package/dist/linaria-themes-node-14.17.cjs.js.map +1 -1
  60. package/dist/linaria-themes-node-14.17.cjs.web.js +134 -0
  61. package/dist/linaria-themes-node-14.17.cjs.web.js.map +1 -1
  62. package/dist/tsbuildinfo +1 -1
  63. package/package.json +3 -3
@@ -169,6 +169,140 @@ var actionCard = {
169
169
  translateY: 3
170
170
  }
171
171
  },
172
+ 'primary-border-soft': {
173
+ "default": {
174
+ backgroundColor: colors.uiBackgroundLight,
175
+ borderColor: lateOceanColorPalette.moonPurple,
176
+ borderWidth: 1,
177
+ shadow: {
178
+ color: lateOceanColorPalette.moonPurple,
179
+ offsetX: 0,
180
+ offsetY: 4,
181
+ opacity: 1,
182
+ radius: 0
183
+ },
184
+ translateY: 0
185
+ },
186
+ hovered: {
187
+ backgroundColor: lateOceanColorPalette.black50,
188
+ borderColor: lateOceanColorPalette.moonPurple,
189
+ borderWidth: 1,
190
+ shadow: {
191
+ color: lateOceanColorPalette.moonPurple,
192
+ offsetX: 0,
193
+ offsetY: 4,
194
+ opacity: 1,
195
+ radius: 0
196
+ },
197
+ translateY: 0
198
+ },
199
+ disabled: {
200
+ backgroundColor: lateOceanColorPalette.white,
201
+ borderColor: lateOceanColorPalette.moonPurple,
202
+ borderWidth: 1,
203
+ shadow: {
204
+ color: '',
205
+ offsetX: 0,
206
+ offsetY: 0,
207
+ opacity: 0,
208
+ radius: 0
209
+ },
210
+ translateY: 0
211
+ },
212
+ focused: {
213
+ backgroundColor: lateOceanColorPalette.black50,
214
+ borderColor: lateOceanColorPalette.moonPurple,
215
+ borderWidth: 1,
216
+ shadow: {
217
+ color: lateOceanColorPalette.moonPurple,
218
+ offsetX: 0,
219
+ offsetY: 4,
220
+ opacity: 1,
221
+ radius: 0
222
+ },
223
+ translateY: 0
224
+ },
225
+ pressed: {
226
+ backgroundColor: lateOceanColorPalette.black50,
227
+ borderColor: lateOceanColorPalette.moonPurple,
228
+ borderWidth: 1,
229
+ shadow: {
230
+ color: '',
231
+ offsetX: 0,
232
+ offsetY: 0,
233
+ opacity: 0,
234
+ radius: 0
235
+ },
236
+ translateY: 3
237
+ }
238
+ },
239
+ 'primary-border-hard': {
240
+ "default": {
241
+ backgroundColor: colors.uiBackgroundLight,
242
+ borderColor: lateOceanColorPalette.lateOcean,
243
+ borderWidth: 1,
244
+ shadow: {
245
+ color: lateOceanColorPalette.lateOcean,
246
+ offsetX: 0,
247
+ offsetY: 4,
248
+ opacity: 1,
249
+ radius: 0
250
+ },
251
+ translateY: 0
252
+ },
253
+ hovered: {
254
+ backgroundColor: lateOceanColorPalette.black50,
255
+ borderColor: lateOceanColorPalette.lateOcean,
256
+ borderWidth: 1,
257
+ shadow: {
258
+ color: lateOceanColorPalette.lateOcean,
259
+ offsetX: 0,
260
+ offsetY: 4,
261
+ opacity: 1,
262
+ radius: 0
263
+ },
264
+ translateY: 0
265
+ },
266
+ disabled: {
267
+ backgroundColor: lateOceanColorPalette.white,
268
+ borderColor: lateOceanColorPalette.lateOcean,
269
+ borderWidth: 1,
270
+ shadow: {
271
+ color: '',
272
+ offsetX: 0,
273
+ offsetY: 0,
274
+ opacity: 0,
275
+ radius: 0
276
+ },
277
+ translateY: 0
278
+ },
279
+ focused: {
280
+ backgroundColor: lateOceanColorPalette.black50,
281
+ borderColor: lateOceanColorPalette.lateOcean,
282
+ borderWidth: 1,
283
+ shadow: {
284
+ color: lateOceanColorPalette.lateOcean,
285
+ offsetX: 0,
286
+ offsetY: 4,
287
+ opacity: 1,
288
+ radius: 0
289
+ },
290
+ translateY: 0
291
+ },
292
+ pressed: {
293
+ backgroundColor: lateOceanColorPalette.black50,
294
+ borderColor: lateOceanColorPalette.lateOcean,
295
+ borderWidth: 1,
296
+ shadow: {
297
+ color: '',
298
+ offsetX: 0,
299
+ offsetY: 0,
300
+ opacity: 0,
301
+ radius: 0
302
+ },
303
+ translateY: 3
304
+ }
305
+ },
172
306
  secondary: {
173
307
  "default": {
174
308
  backgroundColor: lateOceanColorPalette.black50,
@@ -1296,20 +1430,36 @@ var getStateKey = function (isHovered, isPressed, isFocused) {
1296
1430
  return 'default';
1297
1431
  };
1298
1432
 
1433
+ var getThemeName = function (variant, borderVariant) {
1434
+ if (borderVariant === 'soft') {
1435
+ return 'primary-border-soft';
1436
+ }
1437
+ if (borderVariant === 'hard') {
1438
+ return 'primary-border-hard';
1439
+ }
1440
+ return variant;
1441
+ };
1442
+
1299
1443
  function ActionCardContentWrapper(_ref) {
1300
1444
  var isHovered = _ref.isHovered,
1301
1445
  isPressed = _ref.isPressed,
1302
1446
  isFocused = _ref.isFocused,
1303
1447
  variant = _ref.variant,
1448
+ _ref$borderVariant = _ref.borderVariant,
1449
+ borderVariant = _ref$borderVariant === void 0 ? 'none' : _ref$borderVariant,
1304
1450
  children = _ref.children;
1305
1451
  var theme = useTheme();
1306
1452
  var state = getStateKey(isHovered, isPressed, isFocused);
1453
+ if ((process.env.NODE_ENV !== "production") && borderVariant !== 'none' && variant !== 'primary') {
1454
+ throw new Error("borderVariant=".concat(borderVariant, " is only allowed with variant=primary"));
1455
+ }
1307
1456
  var translateY = theme.kitt.actionCard[variant][state].translateY;
1308
1457
  var sharedTransform = translateY ? {
1309
1458
  transform: [{
1310
1459
  translateY: translateY
1311
1460
  }]
1312
1461
  } : {};
1462
+ var themeName = getThemeName(variant, borderVariant);
1313
1463
  return /*#__PURE__*/jsx(View, {
1314
1464
  _ios: {
1315
1465
  style: sharedTransform
@@ -1321,11 +1471,11 @@ function ActionCardContentWrapper(_ref) {
1321
1471
  style: sharedTransform
1322
1472
  },
1323
1473
  width: "100%",
1324
- backgroundColor: "kitt.actionCard.".concat(variant, ".").concat(state, ".backgroundColor"),
1474
+ backgroundColor: "kitt.actionCard.".concat(themeName, ".").concat(state, ".backgroundColor"),
1325
1475
  borderRadius: "kitt.actionCard.borderRadius",
1326
- borderColor: "kitt.actionCard.".concat(variant, ".").concat(state, ".borderColor"),
1327
- borderWidth: "kitt.actionCard.".concat(variant, ".").concat(state, ".borderWidth"),
1328
- shadow: "kitt.actionCard.".concat(variant, ".").concat(state, ".shadow"),
1476
+ borderColor: "kitt.actionCard.".concat(themeName, ".").concat(state, ".borderColor"),
1477
+ borderWidth: "kitt.actionCard.".concat(themeName, ".").concat(state, ".borderWidth"),
1478
+ shadow: "kitt.actionCard.".concat(themeName, ".").concat(state, ".shadow"),
1329
1479
  children: children
1330
1480
  });
1331
1481
  }
@@ -1347,6 +1497,8 @@ function ActionCard(_ref) {
1347
1497
  var children = _ref.children,
1348
1498
  _ref$variant = _ref.variant,
1349
1499
  variant = _ref$variant === void 0 ? 'secondary' : _ref$variant,
1500
+ _ref$borderVariant = _ref.borderVariant,
1501
+ borderVariant = _ref$borderVariant === void 0 ? 'none' : _ref$borderVariant,
1350
1502
  disabled = _ref.disabled,
1351
1503
  testID = _ref.testID,
1352
1504
  isHovered = _ref.isHovered,
@@ -1359,6 +1511,7 @@ function ActionCard(_ref) {
1359
1511
  children: children
1360
1512
  }) : /*#__PURE__*/jsx(ActionCardContentWrapper, {
1361
1513
  variant: variant,
1514
+ borderVariant: borderVariant,
1362
1515
  isHovered: isHovered,
1363
1516
  isFocused: isFocused,
1364
1517
  isPressed: isPressed,
@@ -1370,6 +1523,8 @@ var ActionCardPressable = /*#__PURE__*/forwardRef(function (_ref2, ref) {
1370
1523
  var _children = _ref2.children,
1371
1524
  _ref2$variant = _ref2.variant,
1372
1525
  variant = _ref2$variant === void 0 ? 'secondary' : _ref2$variant,
1526
+ _ref2$borderVariant = _ref2.borderVariant,
1527
+ borderVariant = _ref2$borderVariant === void 0 ? 'none' : _ref2$borderVariant,
1373
1528
  disabled = _ref2.disabled,
1374
1529
  testID = _ref2.testID,
1375
1530
  href = _ref2.href,
@@ -1395,6 +1550,7 @@ var ActionCardPressable = /*#__PURE__*/forwardRef(function (_ref2, ref) {
1395
1550
  isFocused = _ref3.isFocused;
1396
1551
  return /*#__PURE__*/jsx(ActionCard, {
1397
1552
  variant: variant,
1553
+ borderVariant: borderVariant,
1398
1554
  disabled: disabled,
1399
1555
  isHovered: isHovered || isHoveredInternal,
1400
1556
  isFocused: isFocused || isFocusedInternal,
@@ -1528,6 +1684,34 @@ var KittBreakpointNameEnum;
1528
1684
  KittBreakpointNameEnum["WIDE"] = "wide";
1529
1685
  })(KittBreakpointNameEnum || (KittBreakpointNameEnum = {}));
1530
1686
 
1687
+ var typographyColors = ['black', 'black-anthracite', 'black-disabled', 'black-light', 'white', 'white-light', 'primary', 'primary-light', 'accent', 'success', 'danger', 'warning'];
1688
+
1689
+ function getNBThemeColorFromColorProps(colorName) {
1690
+ return "kitt.typography.".concat(colorName);
1691
+ }
1692
+
1693
+ function isColorTypographyColor(colorName) {
1694
+ if (!colorName || typeof colorName !== 'string') return false;
1695
+ return typographyColors.includes(colorName);
1696
+ }
1697
+ function getTypographyColorValue(colorName) {
1698
+ if (!colorName) return undefined;
1699
+ if (isColorTypographyColor(colorName)) {
1700
+ return getNBThemeColorFromColorProps(colorName);
1701
+ }
1702
+ return colorName;
1703
+ }
1704
+
1705
+ var isTypeHeader = function (type) {
1706
+ return type.startsWith('header');
1707
+ };
1708
+
1709
+ var isTypographyHeader = function (type, isHeaderTypographyInContext) {
1710
+ if (type) return isTypeHeader(type);
1711
+ if (isHeaderTypographyInContext != null) return isHeaderTypographyInContext;
1712
+ throw new Error('You must set a "base" prop or wrap this Typography in one that does.');
1713
+ };
1714
+
1531
1715
  var _excluded$E = ["accessibilityRole", "base", "small", "medium", "large", "wide", "type", "variant", "color"];
1532
1716
  var IsHeaderTypographyContext = /*#__PURE__*/createContext(undefined);
1533
1717
  var TypographyColorContext = /*#__PURE__*/createContext('black');
@@ -1538,25 +1722,9 @@ var TypographyDefaultColorContext = /*#__PURE__*/createContext(undefined);
1538
1722
  function useTypographyDefaultColor() {
1539
1723
  return useContext(TypographyDefaultColorContext);
1540
1724
  }
1541
-
1542
- /** @deprecated use native-base instead for SSR compatibility */
1543
- var getTypographyTypeConfigKey = function (theme) {
1544
- var isMediumOrAbove = theme.responsive.matchWindowSize({
1545
- minWidth: KittBreakpoints.MEDIUM
1546
- });
1547
- return isMediumOrAbove ? 'mediumAndWide' : 'baseAndSmall';
1548
- };
1549
1725
  function getTypographyTypeConfigKeyFromTypeName(breakpointName) {
1550
1726
  return breakpointName === 'base' || breakpointName === 'small' ? 'baseAndSmall' : 'mediumAndWide';
1551
1727
  }
1552
- var isTypeHeader = function (type) {
1553
- return type.startsWith('header');
1554
- };
1555
- var isTypographyHeader = function (type, isHeaderTypographyInContext) {
1556
- if (type) return isTypeHeader(type);
1557
- if (isHeaderTypographyInContext != null) return isHeaderTypographyInContext;
1558
- throw new Error('You must set a "base" prop or wrap this Typography in one that does.');
1559
- };
1560
1728
 
1561
1729
  // TODO[native-base@>=3.4.19] this currently does not work. Retest when updating native-base.
1562
1730
  // & {
@@ -1576,9 +1744,6 @@ function createNativeBaseFontSize(type) {
1576
1744
  });
1577
1745
  return fontSizeForNativeBase;
1578
1746
  }
1579
- function getNBThemeColorFromColorProps(colorName) {
1580
- return colorName ? "kitt.typography.".concat(colorName) : undefined;
1581
- }
1582
1747
  function Typography(_ref) {
1583
1748
  var _type$base;
1584
1749
  var accessibilityRole = _ref.accessibilityRole,
@@ -1598,6 +1763,7 @@ function Typography(_ref) {
1598
1763
  variant = _ref.variant,
1599
1764
  color = _ref.color,
1600
1765
  otherProps = _objectWithoutProperties(_ref, _excluded$E);
1766
+ var sx = useSx();
1601
1767
  var isHeaderTypographyInContext = useContext(IsHeaderTypographyContext);
1602
1768
  var defaultColor = useTypographyDefaultColor();
1603
1769
  var hasTypographyAncestor = isHeaderTypographyInContext !== undefined;
@@ -1607,6 +1773,11 @@ function Typography(_ref) {
1607
1773
  var fontSizeForNativeBase = createNativeBaseFontSize(_objectSpread(_objectSpread({}, type), {}, {
1608
1774
  base: baseOrDefaultToBody
1609
1775
  }));
1776
+ var currentColor = !color && !hasTypographyAncestor ? defaultColor : color;
1777
+ var colorStyles = sx({
1778
+ color: getTypographyColorValue(currentColor),
1779
+ textDecorationColor: getTypographyColorValue(currentColor)
1780
+ });
1610
1781
  if (process.env.NODE_ENV !== 'production') {
1611
1782
  Object.entries(type).forEach(function (_ref2) {
1612
1783
  var _ref3 = _slicedToArray(_ref2, 2),
@@ -1617,16 +1788,13 @@ function Typography(_ref) {
1617
1788
  }
1618
1789
  });
1619
1790
  }
1620
- var currentColor = !color && !hasTypographyAncestor ? defaultColor : color;
1621
- var text = /*#__PURE__*/jsx(Text, _objectSpread({
1791
+ var text = /*#__PURE__*/jsx(Text, _objectSpread(_objectSpread({
1622
1792
  accessibilityRole: accessibilityRole || undefined,
1623
1793
  fontSize: fontSizeForNativeBase,
1624
1794
  lineHeight: hasTypographyAncestor ? undefined : fontSizeForNativeBase,
1625
1795
  fontWeight: isHeader ? "headers.".concat(nonNullableVariant) : "bodies.".concat(nonNullableVariant),
1626
- fontFamily: isHeader ? "headers.".concat(nonNullableVariant) : "bodies.".concat(nonNullableVariant),
1627
- color: getNBThemeColorFromColorProps(currentColor),
1628
- textDecorationColor: getNBThemeColorFromColorProps(currentColor)
1629
- }, otherProps));
1796
+ fontFamily: isHeader ? "headers.".concat(nonNullableVariant) : "bodies.".concat(nonNullableVariant)
1797
+ }, colorStyles), otherProps));
1630
1798
  var content = baseOrDefaultToBody ? /*#__PURE__*/jsx(IsHeaderTypographyContext.Provider, {
1631
1799
  value: isHeader,
1632
1800
  children: text
@@ -1704,10 +1872,11 @@ var _excluded$D = ["color"],
1704
1872
  function TypographyIconSpecifiedColor(_ref) {
1705
1873
  var color = _ref.color,
1706
1874
  props = _objectWithoutProperties(_ref, _excluded$D);
1707
- var theme = useTheme();
1708
- return /*#__PURE__*/jsx(Icon, _objectSpread(_objectSpread({}, props), {}, {
1709
- color: color === 'inherit' ? 'inherit' : theme.kitt.typography.colors[color]
1710
- }));
1875
+ var sx = useSx();
1876
+ var colorStyle = sx({
1877
+ color: getTypographyColorValue(color)
1878
+ });
1879
+ return /*#__PURE__*/jsx(Icon, _objectSpread(_objectSpread({}, props), colorStyle));
1711
1880
  }
1712
1881
  function TypographyIconInheritColor(props) {
1713
1882
  var color = useTypographyColor();
@@ -6599,6 +6768,50 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
6599
6768
  borderColor: theme.actionCard.primary.pressed.borderColor
6600
6769
  }
6601
6770
  },
6771
+ 'primary-border-soft': {
6772
+ "default": {
6773
+ backgroundColor: theme.actionCard['primary-border-soft']["default"].backgroundColor,
6774
+ borderColor: theme.actionCard['primary-border-soft']["default"].borderColor
6775
+ },
6776
+ disabled: {
6777
+ backgroundColor: theme.actionCard['primary-border-soft'].disabled.backgroundColor,
6778
+ borderColor: theme.actionCard['primary-border-soft'].disabled.borderColor
6779
+ },
6780
+ hovered: {
6781
+ backgroundColor: theme.actionCard['primary-border-soft'].hovered.backgroundColor,
6782
+ borderColor: theme.actionCard['primary-border-soft'].hovered.borderColor
6783
+ },
6784
+ focused: {
6785
+ backgroundColor: theme.actionCard['primary-border-soft'].focused.backgroundColor,
6786
+ borderColor: theme.actionCard['primary-border-soft'].focused.borderColor
6787
+ },
6788
+ pressed: {
6789
+ backgroundColor: theme.actionCard['primary-border-soft'].pressed.backgroundColor,
6790
+ borderColor: theme.actionCard['primary-border-soft'].pressed.borderColor
6791
+ }
6792
+ },
6793
+ 'primary-border-hard': {
6794
+ "default": {
6795
+ backgroundColor: theme.actionCard['primary-border-hard']["default"].backgroundColor,
6796
+ borderColor: theme.actionCard['primary-border-hard']["default"].borderColor
6797
+ },
6798
+ disabled: {
6799
+ backgroundColor: theme.actionCard['primary-border-hard'].disabled.backgroundColor,
6800
+ borderColor: theme.actionCard['primary-border-hard'].disabled.borderColor
6801
+ },
6802
+ hovered: {
6803
+ backgroundColor: theme.actionCard['primary-border-hard'].hovered.backgroundColor,
6804
+ borderColor: theme.actionCard['primary-border-hard'].hovered.borderColor
6805
+ },
6806
+ focused: {
6807
+ backgroundColor: theme.actionCard['primary-border-hard'].focused.backgroundColor,
6808
+ borderColor: theme.actionCard['primary-border-hard'].focused.borderColor
6809
+ },
6810
+ pressed: {
6811
+ backgroundColor: theme.actionCard['primary-border-hard'].pressed.backgroundColor,
6812
+ borderColor: theme.actionCard['primary-border-hard'].pressed.borderColor
6813
+ }
6814
+ },
6602
6815
  highlight: {
6603
6816
  "default": {
6604
6817
  backgroundColor: theme.actionCard.highlight["default"].backgroundColor,
@@ -6878,6 +7091,40 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
6878
7091
  borderWidth: theme.actionCard.primary.pressed.borderWidth
6879
7092
  }
6880
7093
  },
7094
+ 'primary-border-soft': {
7095
+ "default": {
7096
+ borderWidth: theme.actionCard['primary-border-soft']["default"].borderWidth
7097
+ },
7098
+ disabled: {
7099
+ borderWidth: theme.actionCard['primary-border-soft'].disabled.borderWidth
7100
+ },
7101
+ hovered: {
7102
+ borderWidth: theme.actionCard['primary-border-soft'].hovered.borderWidth
7103
+ },
7104
+ focused: {
7105
+ borderWidth: theme.actionCard['primary-border-soft'].focused.borderWidth
7106
+ },
7107
+ pressed: {
7108
+ borderWidth: theme.actionCard['primary-border-soft'].pressed.borderWidth
7109
+ }
7110
+ },
7111
+ 'primary-border-hard': {
7112
+ "default": {
7113
+ borderWidth: theme.actionCard['primary-border-hard']["default"].borderWidth
7114
+ },
7115
+ disabled: {
7116
+ borderWidth: theme.actionCard['primary-border-hard'].disabled.borderWidth
7117
+ },
7118
+ hovered: {
7119
+ borderWidth: theme.actionCard['primary-border-hard'].hovered.borderWidth
7120
+ },
7121
+ focused: {
7122
+ borderWidth: theme.actionCard['primary-border-hard'].focused.borderWidth
7123
+ },
7124
+ pressed: {
7125
+ borderWidth: theme.actionCard['primary-border-hard'].pressed.borderWidth
7126
+ }
7127
+ },
6881
7128
  highlight: {
6882
7129
  "default": {
6883
7130
  borderWidth: theme.actionCard.highlight["default"].borderWidth
@@ -7334,6 +7581,98 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
7334
7581
  }
7335
7582
  }
7336
7583
  },
7584
+ 'primary-border-soft': {
7585
+ "default": {
7586
+ shadow: {
7587
+ shadowColor: theme.actionCard['primary-border-soft']["default"].shadow.color,
7588
+ shadowOffset: {
7589
+ width: theme.actionCard['primary-border-soft']["default"].shadow.offsetX,
7590
+ height: theme.actionCard['primary-border-soft']["default"].shadow.offsetY
7591
+ },
7592
+ shadowOpacity: theme.actionCard['primary-border-soft']["default"].shadow.opacity,
7593
+ shadowRadius: theme.actionCard['primary-border-soft']["default"].shadow.radius
7594
+ }
7595
+ },
7596
+ hovered: {
7597
+ shadow: {
7598
+ shadowColor: theme.actionCard['primary-border-soft'].hovered.shadow.color,
7599
+ shadowOffset: {
7600
+ width: theme.actionCard['primary-border-soft'].hovered.shadow.offsetX,
7601
+ height: theme.actionCard['primary-border-soft'].hovered.shadow.offsetY
7602
+ },
7603
+ shadowOpacity: theme.actionCard['primary-border-soft'].hovered.shadow.opacity,
7604
+ shadowRadius: theme.actionCard['primary-border-soft'].hovered.shadow.radius
7605
+ }
7606
+ },
7607
+ focused: {
7608
+ shadow: {
7609
+ shadowColor: theme.actionCard['primary-border-soft'].focused.shadow.color,
7610
+ shadowOffset: {
7611
+ width: theme.actionCard['primary-border-soft'].focused.shadow.offsetX,
7612
+ height: theme.actionCard['primary-border-soft'].focused.shadow.offsetY
7613
+ },
7614
+ shadowOpacity: theme.actionCard['primary-border-soft'].focused.shadow.opacity,
7615
+ shadowRadius: theme.actionCard['primary-border-soft'].focused.shadow.radius
7616
+ }
7617
+ },
7618
+ pressed: {
7619
+ shadow: {
7620
+ shadowColor: theme.actionCard['primary-border-soft'].pressed.shadow.color,
7621
+ shadowOffset: {
7622
+ width: theme.actionCard['primary-border-soft'].pressed.shadow.offsetX,
7623
+ height: theme.actionCard['primary-border-soft'].pressed.shadow.offsetY
7624
+ },
7625
+ shadowOpacity: theme.actionCard['primary-border-soft'].pressed.shadow.opacity,
7626
+ shadowRadius: theme.actionCard['primary-border-soft'].pressed.shadow.radius
7627
+ }
7628
+ }
7629
+ },
7630
+ 'primary-border-hard': {
7631
+ "default": {
7632
+ shadow: {
7633
+ shadowColor: theme.actionCard['primary-border-hard']["default"].shadow.color,
7634
+ shadowOffset: {
7635
+ width: theme.actionCard['primary-border-hard']["default"].shadow.offsetX,
7636
+ height: theme.actionCard['primary-border-hard']["default"].shadow.offsetY
7637
+ },
7638
+ shadowOpacity: theme.actionCard['primary-border-hard']["default"].shadow.opacity,
7639
+ shadowRadius: theme.actionCard['primary-border-hard']["default"].shadow.radius
7640
+ }
7641
+ },
7642
+ hovered: {
7643
+ shadow: {
7644
+ shadowColor: theme.actionCard['primary-border-hard'].hovered.shadow.color,
7645
+ shadowOffset: {
7646
+ width: theme.actionCard['primary-border-hard'].hovered.shadow.offsetX,
7647
+ height: theme.actionCard['primary-border-hard'].hovered.shadow.offsetY
7648
+ },
7649
+ shadowOpacity: theme.actionCard['primary-border-hard'].hovered.shadow.opacity,
7650
+ shadowRadius: theme.actionCard['primary-border-hard'].hovered.shadow.radius
7651
+ }
7652
+ },
7653
+ focused: {
7654
+ shadow: {
7655
+ shadowColor: theme.actionCard['primary-border-hard'].focused.shadow.color,
7656
+ shadowOffset: {
7657
+ width: theme.actionCard['primary-border-hard'].focused.shadow.offsetX,
7658
+ height: theme.actionCard['primary-border-hard'].focused.shadow.offsetY
7659
+ },
7660
+ shadowOpacity: theme.actionCard['primary-border-hard'].focused.shadow.opacity,
7661
+ shadowRadius: theme.actionCard['primary-border-hard'].focused.shadow.radius
7662
+ }
7663
+ },
7664
+ pressed: {
7665
+ shadow: {
7666
+ shadowColor: theme.actionCard['primary-border-hard'].pressed.shadow.color,
7667
+ shadowOffset: {
7668
+ width: theme.actionCard['primary-border-hard'].pressed.shadow.offsetX,
7669
+ height: theme.actionCard['primary-border-hard'].pressed.shadow.offsetY
7670
+ },
7671
+ shadowOpacity: theme.actionCard['primary-border-hard'].pressed.shadow.opacity,
7672
+ shadowRadius: theme.actionCard['primary-border-hard'].pressed.shadow.radius
7673
+ }
7674
+ }
7675
+ },
7337
7676
  highlight: {
7338
7677
  "default": {
7339
7678
  shadow: {
@@ -8732,6 +9071,13 @@ function Tag(_ref6) {
8732
9071
  });
8733
9072
  }
8734
9073
 
9074
+ /** @deprecated use native-base instead for SSR compatibility */
9075
+ var getTypographyTypeConfigKey = function (theme) {
9076
+ var isMediumOrAbove = theme.responsive.matchWindowSize({
9077
+ minWidth: KittBreakpoints.MEDIUM
9078
+ });
9079
+ return isMediumOrAbove ? 'mediumAndWide' : 'baseAndSmall';
9080
+ };
8735
9081
  /** @deprecated this mixin is not SSR compatible */
8736
9082
  var styledTextInputMixin = /*#__PURE__*/css(["background-color:", ";border-width:", "px;border-radius:", "px;border-color:", ";font-size:", ";color:", ";font-family:", ";"], function (_ref) {
8737
9083
  var theme = _ref.theme,