@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
@@ -170,6 +170,140 @@ var actionCard = {
170
170
  translateY: 3
171
171
  }
172
172
  },
173
+ 'primary-border-soft': {
174
+ "default": {
175
+ backgroundColor: colors.uiBackgroundLight,
176
+ borderColor: lateOceanColorPalette.moonPurple,
177
+ borderWidth: 1,
178
+ shadow: {
179
+ color: lateOceanColorPalette.moonPurple,
180
+ offsetX: 0,
181
+ offsetY: 4,
182
+ opacity: 1,
183
+ radius: 0
184
+ },
185
+ translateY: 0
186
+ },
187
+ hovered: {
188
+ backgroundColor: lateOceanColorPalette.black50,
189
+ borderColor: lateOceanColorPalette.moonPurple,
190
+ borderWidth: 1,
191
+ shadow: {
192
+ color: lateOceanColorPalette.moonPurple,
193
+ offsetX: 0,
194
+ offsetY: 4,
195
+ opacity: 1,
196
+ radius: 0
197
+ },
198
+ translateY: 0
199
+ },
200
+ disabled: {
201
+ backgroundColor: lateOceanColorPalette.white,
202
+ borderColor: lateOceanColorPalette.moonPurple,
203
+ borderWidth: 1,
204
+ shadow: {
205
+ color: '',
206
+ offsetX: 0,
207
+ offsetY: 0,
208
+ opacity: 0,
209
+ radius: 0
210
+ },
211
+ translateY: 0
212
+ },
213
+ focused: {
214
+ backgroundColor: lateOceanColorPalette.black50,
215
+ borderColor: lateOceanColorPalette.moonPurple,
216
+ borderWidth: 1,
217
+ shadow: {
218
+ color: lateOceanColorPalette.moonPurple,
219
+ offsetX: 0,
220
+ offsetY: 4,
221
+ opacity: 1,
222
+ radius: 0
223
+ },
224
+ translateY: 0
225
+ },
226
+ pressed: {
227
+ backgroundColor: lateOceanColorPalette.black50,
228
+ borderColor: lateOceanColorPalette.moonPurple,
229
+ borderWidth: 1,
230
+ shadow: {
231
+ color: '',
232
+ offsetX: 0,
233
+ offsetY: 0,
234
+ opacity: 0,
235
+ radius: 0
236
+ },
237
+ translateY: 3
238
+ }
239
+ },
240
+ 'primary-border-hard': {
241
+ "default": {
242
+ backgroundColor: colors.uiBackgroundLight,
243
+ borderColor: lateOceanColorPalette.lateOcean,
244
+ borderWidth: 1,
245
+ shadow: {
246
+ color: lateOceanColorPalette.lateOcean,
247
+ offsetX: 0,
248
+ offsetY: 4,
249
+ opacity: 1,
250
+ radius: 0
251
+ },
252
+ translateY: 0
253
+ },
254
+ hovered: {
255
+ backgroundColor: lateOceanColorPalette.black50,
256
+ borderColor: lateOceanColorPalette.lateOcean,
257
+ borderWidth: 1,
258
+ shadow: {
259
+ color: lateOceanColorPalette.lateOcean,
260
+ offsetX: 0,
261
+ offsetY: 4,
262
+ opacity: 1,
263
+ radius: 0
264
+ },
265
+ translateY: 0
266
+ },
267
+ disabled: {
268
+ backgroundColor: lateOceanColorPalette.white,
269
+ borderColor: lateOceanColorPalette.lateOcean,
270
+ borderWidth: 1,
271
+ shadow: {
272
+ color: '',
273
+ offsetX: 0,
274
+ offsetY: 0,
275
+ opacity: 0,
276
+ radius: 0
277
+ },
278
+ translateY: 0
279
+ },
280
+ focused: {
281
+ backgroundColor: lateOceanColorPalette.black50,
282
+ borderColor: lateOceanColorPalette.lateOcean,
283
+ borderWidth: 1,
284
+ shadow: {
285
+ color: lateOceanColorPalette.lateOcean,
286
+ offsetX: 0,
287
+ offsetY: 4,
288
+ opacity: 1,
289
+ radius: 0
290
+ },
291
+ translateY: 0
292
+ },
293
+ pressed: {
294
+ backgroundColor: lateOceanColorPalette.black50,
295
+ borderColor: lateOceanColorPalette.lateOcean,
296
+ borderWidth: 1,
297
+ shadow: {
298
+ color: '',
299
+ offsetX: 0,
300
+ offsetY: 0,
301
+ opacity: 0,
302
+ radius: 0
303
+ },
304
+ translateY: 3
305
+ }
306
+ },
173
307
  secondary: {
174
308
  "default": {
175
309
  backgroundColor: lateOceanColorPalette.black50,
@@ -1297,20 +1431,36 @@ var getStateKey = function (isHovered, isPressed, isFocused) {
1297
1431
  return 'default';
1298
1432
  };
1299
1433
 
1434
+ var getThemeName = function (variant, borderVariant) {
1435
+ if (borderVariant === 'soft') {
1436
+ return 'primary-border-soft';
1437
+ }
1438
+ if (borderVariant === 'hard') {
1439
+ return 'primary-border-hard';
1440
+ }
1441
+ return variant;
1442
+ };
1443
+
1300
1444
  function ActionCardContentWrapper(_ref) {
1301
1445
  var isHovered = _ref.isHovered,
1302
1446
  isPressed = _ref.isPressed,
1303
1447
  isFocused = _ref.isFocused,
1304
1448
  variant = _ref.variant,
1449
+ _ref$borderVariant = _ref.borderVariant,
1450
+ borderVariant = _ref$borderVariant === void 0 ? 'none' : _ref$borderVariant,
1305
1451
  children = _ref.children;
1306
1452
  var theme = useTheme();
1307
1453
  var state = getStateKey(isHovered, isPressed, isFocused);
1454
+ if ((process.env.NODE_ENV !== "production") && borderVariant !== 'none' && variant !== 'primary') {
1455
+ throw new Error("borderVariant=".concat(borderVariant, " is only allowed with variant=primary"));
1456
+ }
1308
1457
  var translateY = theme.kitt.actionCard[variant][state].translateY;
1309
1458
  var sharedTransform = translateY ? {
1310
1459
  transform: [{
1311
1460
  translateY: translateY
1312
1461
  }]
1313
1462
  } : {};
1463
+ var themeName = getThemeName(variant, borderVariant);
1314
1464
  return /*#__PURE__*/jsx(View, {
1315
1465
  _ios: {
1316
1466
  style: sharedTransform
@@ -1322,11 +1472,11 @@ function ActionCardContentWrapper(_ref) {
1322
1472
  style: sharedTransform
1323
1473
  },
1324
1474
  width: "100%",
1325
- backgroundColor: "kitt.actionCard.".concat(variant, ".").concat(state, ".backgroundColor"),
1475
+ backgroundColor: "kitt.actionCard.".concat(themeName, ".").concat(state, ".backgroundColor"),
1326
1476
  borderRadius: "kitt.actionCard.borderRadius",
1327
- borderColor: "kitt.actionCard.".concat(variant, ".").concat(state, ".borderColor"),
1328
- borderWidth: "kitt.actionCard.".concat(variant, ".").concat(state, ".borderWidth"),
1329
- shadow: "kitt.actionCard.".concat(variant, ".").concat(state, ".shadow"),
1477
+ borderColor: "kitt.actionCard.".concat(themeName, ".").concat(state, ".borderColor"),
1478
+ borderWidth: "kitt.actionCard.".concat(themeName, ".").concat(state, ".borderWidth"),
1479
+ shadow: "kitt.actionCard.".concat(themeName, ".").concat(state, ".shadow"),
1330
1480
  children: children
1331
1481
  });
1332
1482
  }
@@ -1348,6 +1498,8 @@ function ActionCard(_ref) {
1348
1498
  var children = _ref.children,
1349
1499
  _ref$variant = _ref.variant,
1350
1500
  variant = _ref$variant === void 0 ? 'secondary' : _ref$variant,
1501
+ _ref$borderVariant = _ref.borderVariant,
1502
+ borderVariant = _ref$borderVariant === void 0 ? 'none' : _ref$borderVariant,
1351
1503
  disabled = _ref.disabled,
1352
1504
  testID = _ref.testID,
1353
1505
  isHovered = _ref.isHovered,
@@ -1360,6 +1512,7 @@ function ActionCard(_ref) {
1360
1512
  children: children
1361
1513
  }) : /*#__PURE__*/jsx(ActionCardContentWrapper, {
1362
1514
  variant: variant,
1515
+ borderVariant: borderVariant,
1363
1516
  isHovered: isHovered,
1364
1517
  isFocused: isFocused,
1365
1518
  isPressed: isPressed,
@@ -1371,6 +1524,8 @@ var ActionCardPressable = /*#__PURE__*/forwardRef(function (_ref2, ref) {
1371
1524
  var _children = _ref2.children,
1372
1525
  _ref2$variant = _ref2.variant,
1373
1526
  variant = _ref2$variant === void 0 ? 'secondary' : _ref2$variant,
1527
+ _ref2$borderVariant = _ref2.borderVariant,
1528
+ borderVariant = _ref2$borderVariant === void 0 ? 'none' : _ref2$borderVariant,
1374
1529
  disabled = _ref2.disabled,
1375
1530
  testID = _ref2.testID,
1376
1531
  href = _ref2.href,
@@ -1396,6 +1551,7 @@ var ActionCardPressable = /*#__PURE__*/forwardRef(function (_ref2, ref) {
1396
1551
  isFocused = _ref3.isFocused;
1397
1552
  return /*#__PURE__*/jsx(ActionCard, {
1398
1553
  variant: variant,
1554
+ borderVariant: borderVariant,
1399
1555
  disabled: disabled,
1400
1556
  isHovered: isHovered || isHoveredInternal,
1401
1557
  isFocused: isFocused || isFocusedInternal,
@@ -1529,6 +1685,34 @@ var KittBreakpointNameEnum;
1529
1685
  KittBreakpointNameEnum["WIDE"] = "wide";
1530
1686
  })(KittBreakpointNameEnum || (KittBreakpointNameEnum = {}));
1531
1687
 
1688
+ var typographyColors = ['black', 'black-anthracite', 'black-disabled', 'black-light', 'white', 'white-light', 'primary', 'primary-light', 'accent', 'success', 'danger', 'warning'];
1689
+
1690
+ function getNBThemeColorFromColorProps(colorName) {
1691
+ return "kitt.typography.".concat(colorName);
1692
+ }
1693
+
1694
+ function isColorTypographyColor(colorName) {
1695
+ if (!colorName || typeof colorName !== 'string') return false;
1696
+ return typographyColors.includes(colorName);
1697
+ }
1698
+ function getTypographyColorValue(colorName) {
1699
+ if (!colorName) return undefined;
1700
+ if (isColorTypographyColor(colorName)) {
1701
+ return getNBThemeColorFromColorProps(colorName);
1702
+ }
1703
+ return colorName;
1704
+ }
1705
+
1706
+ var isTypeHeader = function (type) {
1707
+ return type.startsWith('header');
1708
+ };
1709
+
1710
+ var isTypographyHeader = function (type, isHeaderTypographyInContext) {
1711
+ if (type) return isTypeHeader(type);
1712
+ if (isHeaderTypographyInContext != null) return isHeaderTypographyInContext;
1713
+ throw new Error('You must set a "base" prop or wrap this Typography in one that does.');
1714
+ };
1715
+
1532
1716
  var _excluded$E = ["accessibilityRole", "base", "small", "medium", "large", "wide", "type", "variant", "color"];
1533
1717
  var IsHeaderTypographyContext = /*#__PURE__*/createContext(undefined);
1534
1718
  var TypographyColorContext = /*#__PURE__*/createContext('black');
@@ -1539,25 +1723,9 @@ var TypographyDefaultColorContext = /*#__PURE__*/createContext(undefined);
1539
1723
  function useTypographyDefaultColor() {
1540
1724
  return useContext(TypographyDefaultColorContext);
1541
1725
  }
1542
-
1543
- /** @deprecated use native-base instead for SSR compatibility */
1544
- var getTypographyTypeConfigKey = function (theme) {
1545
- var isMediumOrAbove = theme.responsive.matchWindowSize({
1546
- minWidth: KittBreakpoints.MEDIUM
1547
- });
1548
- return isMediumOrAbove ? 'mediumAndWide' : 'baseAndSmall';
1549
- };
1550
1726
  function getTypographyTypeConfigKeyFromTypeName(breakpointName) {
1551
1727
  return breakpointName === 'base' || breakpointName === 'small' ? 'baseAndSmall' : 'mediumAndWide';
1552
1728
  }
1553
- var isTypeHeader = function (type) {
1554
- return type.startsWith('header');
1555
- };
1556
- var isTypographyHeader = function (type, isHeaderTypographyInContext) {
1557
- if (type) return isTypeHeader(type);
1558
- if (isHeaderTypographyInContext != null) return isHeaderTypographyInContext;
1559
- throw new Error('You must set a "base" prop or wrap this Typography in one that does.');
1560
- };
1561
1729
 
1562
1730
  // TODO[native-base@>=3.4.19] this currently does not work. Retest when updating native-base.
1563
1731
  // & {
@@ -1577,9 +1745,6 @@ function createNativeBaseFontSize(type) {
1577
1745
  });
1578
1746
  return fontSizeForNativeBase;
1579
1747
  }
1580
- function getNBThemeColorFromColorProps(colorName) {
1581
- return colorName ? "kitt.typography.".concat(colorName) : undefined;
1582
- }
1583
1748
  function Typography(_ref) {
1584
1749
  var _type$base;
1585
1750
  var accessibilityRole = _ref.accessibilityRole,
@@ -1599,6 +1764,7 @@ function Typography(_ref) {
1599
1764
  variant = _ref.variant,
1600
1765
  color = _ref.color,
1601
1766
  otherProps = _objectWithoutProperties(_ref, _excluded$E);
1767
+ var sx = useSx();
1602
1768
  var isHeaderTypographyInContext = useContext(IsHeaderTypographyContext);
1603
1769
  var defaultColor = useTypographyDefaultColor();
1604
1770
  var hasTypographyAncestor = isHeaderTypographyInContext !== undefined;
@@ -1608,6 +1774,11 @@ function Typography(_ref) {
1608
1774
  var fontSizeForNativeBase = createNativeBaseFontSize(_objectSpread(_objectSpread({}, type), {}, {
1609
1775
  base: baseOrDefaultToBody
1610
1776
  }));
1777
+ var currentColor = !color && !hasTypographyAncestor ? defaultColor : color;
1778
+ var colorStyles = sx({
1779
+ color: getTypographyColorValue(currentColor),
1780
+ textDecorationColor: getTypographyColorValue(currentColor)
1781
+ });
1611
1782
  if (process.env.NODE_ENV !== 'production') {
1612
1783
  Object.entries(type).forEach(function (_ref2) {
1613
1784
  var _ref3 = _slicedToArray(_ref2, 2),
@@ -1618,16 +1789,13 @@ function Typography(_ref) {
1618
1789
  }
1619
1790
  });
1620
1791
  }
1621
- var currentColor = !color && !hasTypographyAncestor ? defaultColor : color;
1622
- var text = /*#__PURE__*/jsx(Text, _objectSpread({
1792
+ var text = /*#__PURE__*/jsx(Text, _objectSpread(_objectSpread({
1623
1793
  accessibilityRole: accessibilityRole || undefined,
1624
1794
  fontSize: fontSizeForNativeBase,
1625
1795
  lineHeight: hasTypographyAncestor ? undefined : fontSizeForNativeBase,
1626
1796
  fontWeight: isHeader ? "headers.".concat(nonNullableVariant) : "bodies.".concat(nonNullableVariant),
1627
- fontFamily: isHeader ? "headers.".concat(nonNullableVariant) : "bodies.".concat(nonNullableVariant),
1628
- color: getNBThemeColorFromColorProps(currentColor),
1629
- textDecorationColor: getNBThemeColorFromColorProps(currentColor)
1630
- }, otherProps));
1797
+ fontFamily: isHeader ? "headers.".concat(nonNullableVariant) : "bodies.".concat(nonNullableVariant)
1798
+ }, colorStyles), otherProps));
1631
1799
  var content = baseOrDefaultToBody ? /*#__PURE__*/jsx(IsHeaderTypographyContext.Provider, {
1632
1800
  value: isHeader,
1633
1801
  children: text
@@ -1705,10 +1873,11 @@ var _excluded$D = ["color"],
1705
1873
  function TypographyIconSpecifiedColor(_ref) {
1706
1874
  var color = _ref.color,
1707
1875
  props = _objectWithoutProperties(_ref, _excluded$D);
1708
- var theme = useTheme();
1709
- return /*#__PURE__*/jsx(Icon, _objectSpread(_objectSpread({}, props), {}, {
1710
- color: color === 'inherit' ? 'inherit' : theme.kitt.typography.colors[color]
1711
- }));
1876
+ var sx = useSx();
1877
+ var colorStyle = sx({
1878
+ color: getTypographyColorValue(color)
1879
+ });
1880
+ return /*#__PURE__*/jsx(Icon, _objectSpread(_objectSpread({}, props), colorStyle));
1712
1881
  }
1713
1882
  function TypographyIconInheritColor(props) {
1714
1883
  var color = useTypographyColor();
@@ -6659,6 +6828,50 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
6659
6828
  borderColor: theme.actionCard.primary.pressed.borderColor
6660
6829
  }
6661
6830
  },
6831
+ 'primary-border-soft': {
6832
+ "default": {
6833
+ backgroundColor: theme.actionCard['primary-border-soft']["default"].backgroundColor,
6834
+ borderColor: theme.actionCard['primary-border-soft']["default"].borderColor
6835
+ },
6836
+ disabled: {
6837
+ backgroundColor: theme.actionCard['primary-border-soft'].disabled.backgroundColor,
6838
+ borderColor: theme.actionCard['primary-border-soft'].disabled.borderColor
6839
+ },
6840
+ hovered: {
6841
+ backgroundColor: theme.actionCard['primary-border-soft'].hovered.backgroundColor,
6842
+ borderColor: theme.actionCard['primary-border-soft'].hovered.borderColor
6843
+ },
6844
+ focused: {
6845
+ backgroundColor: theme.actionCard['primary-border-soft'].focused.backgroundColor,
6846
+ borderColor: theme.actionCard['primary-border-soft'].focused.borderColor
6847
+ },
6848
+ pressed: {
6849
+ backgroundColor: theme.actionCard['primary-border-soft'].pressed.backgroundColor,
6850
+ borderColor: theme.actionCard['primary-border-soft'].pressed.borderColor
6851
+ }
6852
+ },
6853
+ 'primary-border-hard': {
6854
+ "default": {
6855
+ backgroundColor: theme.actionCard['primary-border-hard']["default"].backgroundColor,
6856
+ borderColor: theme.actionCard['primary-border-hard']["default"].borderColor
6857
+ },
6858
+ disabled: {
6859
+ backgroundColor: theme.actionCard['primary-border-hard'].disabled.backgroundColor,
6860
+ borderColor: theme.actionCard['primary-border-hard'].disabled.borderColor
6861
+ },
6862
+ hovered: {
6863
+ backgroundColor: theme.actionCard['primary-border-hard'].hovered.backgroundColor,
6864
+ borderColor: theme.actionCard['primary-border-hard'].hovered.borderColor
6865
+ },
6866
+ focused: {
6867
+ backgroundColor: theme.actionCard['primary-border-hard'].focused.backgroundColor,
6868
+ borderColor: theme.actionCard['primary-border-hard'].focused.borderColor
6869
+ },
6870
+ pressed: {
6871
+ backgroundColor: theme.actionCard['primary-border-hard'].pressed.backgroundColor,
6872
+ borderColor: theme.actionCard['primary-border-hard'].pressed.borderColor
6873
+ }
6874
+ },
6662
6875
  highlight: {
6663
6876
  "default": {
6664
6877
  backgroundColor: theme.actionCard.highlight["default"].backgroundColor,
@@ -6938,6 +7151,40 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
6938
7151
  borderWidth: theme.actionCard.primary.pressed.borderWidth
6939
7152
  }
6940
7153
  },
7154
+ 'primary-border-soft': {
7155
+ "default": {
7156
+ borderWidth: theme.actionCard['primary-border-soft']["default"].borderWidth
7157
+ },
7158
+ disabled: {
7159
+ borderWidth: theme.actionCard['primary-border-soft'].disabled.borderWidth
7160
+ },
7161
+ hovered: {
7162
+ borderWidth: theme.actionCard['primary-border-soft'].hovered.borderWidth
7163
+ },
7164
+ focused: {
7165
+ borderWidth: theme.actionCard['primary-border-soft'].focused.borderWidth
7166
+ },
7167
+ pressed: {
7168
+ borderWidth: theme.actionCard['primary-border-soft'].pressed.borderWidth
7169
+ }
7170
+ },
7171
+ 'primary-border-hard': {
7172
+ "default": {
7173
+ borderWidth: theme.actionCard['primary-border-hard']["default"].borderWidth
7174
+ },
7175
+ disabled: {
7176
+ borderWidth: theme.actionCard['primary-border-hard'].disabled.borderWidth
7177
+ },
7178
+ hovered: {
7179
+ borderWidth: theme.actionCard['primary-border-hard'].hovered.borderWidth
7180
+ },
7181
+ focused: {
7182
+ borderWidth: theme.actionCard['primary-border-hard'].focused.borderWidth
7183
+ },
7184
+ pressed: {
7185
+ borderWidth: theme.actionCard['primary-border-hard'].pressed.borderWidth
7186
+ }
7187
+ },
6941
7188
  highlight: {
6942
7189
  "default": {
6943
7190
  borderWidth: theme.actionCard.highlight["default"].borderWidth
@@ -7394,6 +7641,98 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
7394
7641
  }
7395
7642
  }
7396
7643
  },
7644
+ 'primary-border-soft': {
7645
+ "default": {
7646
+ shadow: {
7647
+ shadowColor: theme.actionCard['primary-border-soft']["default"].shadow.color,
7648
+ shadowOffset: {
7649
+ width: theme.actionCard['primary-border-soft']["default"].shadow.offsetX,
7650
+ height: theme.actionCard['primary-border-soft']["default"].shadow.offsetY
7651
+ },
7652
+ shadowOpacity: theme.actionCard['primary-border-soft']["default"].shadow.opacity,
7653
+ shadowRadius: theme.actionCard['primary-border-soft']["default"].shadow.radius
7654
+ }
7655
+ },
7656
+ hovered: {
7657
+ shadow: {
7658
+ shadowColor: theme.actionCard['primary-border-soft'].hovered.shadow.color,
7659
+ shadowOffset: {
7660
+ width: theme.actionCard['primary-border-soft'].hovered.shadow.offsetX,
7661
+ height: theme.actionCard['primary-border-soft'].hovered.shadow.offsetY
7662
+ },
7663
+ shadowOpacity: theme.actionCard['primary-border-soft'].hovered.shadow.opacity,
7664
+ shadowRadius: theme.actionCard['primary-border-soft'].hovered.shadow.radius
7665
+ }
7666
+ },
7667
+ focused: {
7668
+ shadow: {
7669
+ shadowColor: theme.actionCard['primary-border-soft'].focused.shadow.color,
7670
+ shadowOffset: {
7671
+ width: theme.actionCard['primary-border-soft'].focused.shadow.offsetX,
7672
+ height: theme.actionCard['primary-border-soft'].focused.shadow.offsetY
7673
+ },
7674
+ shadowOpacity: theme.actionCard['primary-border-soft'].focused.shadow.opacity,
7675
+ shadowRadius: theme.actionCard['primary-border-soft'].focused.shadow.radius
7676
+ }
7677
+ },
7678
+ pressed: {
7679
+ shadow: {
7680
+ shadowColor: theme.actionCard['primary-border-soft'].pressed.shadow.color,
7681
+ shadowOffset: {
7682
+ width: theme.actionCard['primary-border-soft'].pressed.shadow.offsetX,
7683
+ height: theme.actionCard['primary-border-soft'].pressed.shadow.offsetY
7684
+ },
7685
+ shadowOpacity: theme.actionCard['primary-border-soft'].pressed.shadow.opacity,
7686
+ shadowRadius: theme.actionCard['primary-border-soft'].pressed.shadow.radius
7687
+ }
7688
+ }
7689
+ },
7690
+ 'primary-border-hard': {
7691
+ "default": {
7692
+ shadow: {
7693
+ shadowColor: theme.actionCard['primary-border-hard']["default"].shadow.color,
7694
+ shadowOffset: {
7695
+ width: theme.actionCard['primary-border-hard']["default"].shadow.offsetX,
7696
+ height: theme.actionCard['primary-border-hard']["default"].shadow.offsetY
7697
+ },
7698
+ shadowOpacity: theme.actionCard['primary-border-hard']["default"].shadow.opacity,
7699
+ shadowRadius: theme.actionCard['primary-border-hard']["default"].shadow.radius
7700
+ }
7701
+ },
7702
+ hovered: {
7703
+ shadow: {
7704
+ shadowColor: theme.actionCard['primary-border-hard'].hovered.shadow.color,
7705
+ shadowOffset: {
7706
+ width: theme.actionCard['primary-border-hard'].hovered.shadow.offsetX,
7707
+ height: theme.actionCard['primary-border-hard'].hovered.shadow.offsetY
7708
+ },
7709
+ shadowOpacity: theme.actionCard['primary-border-hard'].hovered.shadow.opacity,
7710
+ shadowRadius: theme.actionCard['primary-border-hard'].hovered.shadow.radius
7711
+ }
7712
+ },
7713
+ focused: {
7714
+ shadow: {
7715
+ shadowColor: theme.actionCard['primary-border-hard'].focused.shadow.color,
7716
+ shadowOffset: {
7717
+ width: theme.actionCard['primary-border-hard'].focused.shadow.offsetX,
7718
+ height: theme.actionCard['primary-border-hard'].focused.shadow.offsetY
7719
+ },
7720
+ shadowOpacity: theme.actionCard['primary-border-hard'].focused.shadow.opacity,
7721
+ shadowRadius: theme.actionCard['primary-border-hard'].focused.shadow.radius
7722
+ }
7723
+ },
7724
+ pressed: {
7725
+ shadow: {
7726
+ shadowColor: theme.actionCard['primary-border-hard'].pressed.shadow.color,
7727
+ shadowOffset: {
7728
+ width: theme.actionCard['primary-border-hard'].pressed.shadow.offsetX,
7729
+ height: theme.actionCard['primary-border-hard'].pressed.shadow.offsetY
7730
+ },
7731
+ shadowOpacity: theme.actionCard['primary-border-hard'].pressed.shadow.opacity,
7732
+ shadowRadius: theme.actionCard['primary-border-hard'].pressed.shadow.radius
7733
+ }
7734
+ }
7735
+ },
7397
7736
  highlight: {
7398
7737
  "default": {
7399
7738
  shadow: {
@@ -8792,6 +9131,13 @@ function Tag(_ref6) {
8792
9131
  });
8793
9132
  }
8794
9133
 
9134
+ /** @deprecated use native-base instead for SSR compatibility */
9135
+ var getTypographyTypeConfigKey = function (theme) {
9136
+ var isMediumOrAbove = theme.responsive.matchWindowSize({
9137
+ minWidth: KittBreakpoints.MEDIUM
9138
+ });
9139
+ return isMediumOrAbove ? 'mediumAndWide' : 'baseAndSmall';
9140
+ };
8795
9141
  /** @deprecated this mixin is not SSR compatible */
8796
9142
  var styledTextInputMixin = /*#__PURE__*/css(["background-color:", ";border-width:", "px;border-radius:", "px;border-color:", ";font-size:", ";color:", ";font-family:", ";"], function (_ref) {
8797
9143
  var theme = _ref.theme,