@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
@@ -182,6 +182,140 @@ const actionCard = {
182
182
  translateY: 3
183
183
  }
184
184
  },
185
+ 'primary-border-soft': {
186
+ default: {
187
+ backgroundColor: colors.uiBackgroundLight,
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
+ hovered: {
200
+ backgroundColor: lateOceanColorPalette.black50,
201
+ borderColor: lateOceanColorPalette.moonPurple,
202
+ borderWidth: 1,
203
+ shadow: {
204
+ color: lateOceanColorPalette.moonPurple,
205
+ offsetX: 0,
206
+ offsetY: 4,
207
+ opacity: 1,
208
+ radius: 0
209
+ },
210
+ translateY: 0
211
+ },
212
+ disabled: {
213
+ backgroundColor: lateOceanColorPalette.white,
214
+ borderColor: lateOceanColorPalette.moonPurple,
215
+ borderWidth: 1,
216
+ shadow: {
217
+ color: '',
218
+ offsetX: 0,
219
+ offsetY: 0,
220
+ opacity: 0,
221
+ radius: 0
222
+ },
223
+ translateY: 0
224
+ },
225
+ focused: {
226
+ backgroundColor: lateOceanColorPalette.black50,
227
+ borderColor: lateOceanColorPalette.moonPurple,
228
+ borderWidth: 1,
229
+ shadow: {
230
+ color: lateOceanColorPalette.moonPurple,
231
+ offsetX: 0,
232
+ offsetY: 4,
233
+ opacity: 1,
234
+ radius: 0
235
+ },
236
+ translateY: 0
237
+ },
238
+ pressed: {
239
+ backgroundColor: lateOceanColorPalette.black50,
240
+ borderColor: lateOceanColorPalette.moonPurple,
241
+ borderWidth: 1,
242
+ shadow: {
243
+ color: '',
244
+ offsetX: 0,
245
+ offsetY: 0,
246
+ opacity: 0,
247
+ radius: 0
248
+ },
249
+ translateY: 3
250
+ }
251
+ },
252
+ 'primary-border-hard': {
253
+ default: {
254
+ backgroundColor: colors.uiBackgroundLight,
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
+ hovered: {
267
+ backgroundColor: lateOceanColorPalette.black50,
268
+ borderColor: lateOceanColorPalette.lateOcean,
269
+ borderWidth: 1,
270
+ shadow: {
271
+ color: lateOceanColorPalette.lateOcean,
272
+ offsetX: 0,
273
+ offsetY: 4,
274
+ opacity: 1,
275
+ radius: 0
276
+ },
277
+ translateY: 0
278
+ },
279
+ disabled: {
280
+ backgroundColor: lateOceanColorPalette.white,
281
+ borderColor: lateOceanColorPalette.lateOcean,
282
+ borderWidth: 1,
283
+ shadow: {
284
+ color: '',
285
+ offsetX: 0,
286
+ offsetY: 0,
287
+ opacity: 0,
288
+ radius: 0
289
+ },
290
+ translateY: 0
291
+ },
292
+ focused: {
293
+ backgroundColor: lateOceanColorPalette.black50,
294
+ borderColor: lateOceanColorPalette.lateOcean,
295
+ borderWidth: 1,
296
+ shadow: {
297
+ color: lateOceanColorPalette.lateOcean,
298
+ offsetX: 0,
299
+ offsetY: 4,
300
+ opacity: 1,
301
+ radius: 0
302
+ },
303
+ translateY: 0
304
+ },
305
+ pressed: {
306
+ backgroundColor: lateOceanColorPalette.black50,
307
+ borderColor: lateOceanColorPalette.lateOcean,
308
+ borderWidth: 1,
309
+ shadow: {
310
+ color: '',
311
+ offsetX: 0,
312
+ offsetY: 0,
313
+ opacity: 0,
314
+ radius: 0
315
+ },
316
+ translateY: 3
317
+ }
318
+ },
185
319
  secondary: {
186
320
  default: {
187
321
  backgroundColor: lateOceanColorPalette.black50,
@@ -1303,15 +1437,29 @@ const getStateKey = (isHovered, isPressed, isFocused) => {
1303
1437
  return 'default';
1304
1438
  };
1305
1439
 
1440
+ const getThemeName = (variant, borderVariant) => {
1441
+ if (borderVariant === 'soft') {
1442
+ return 'primary-border-soft';
1443
+ }
1444
+ if (borderVariant === 'hard') {
1445
+ return 'primary-border-hard';
1446
+ }
1447
+ return variant;
1448
+ };
1449
+
1306
1450
  function ActionCardContentWrapper({
1307
1451
  isHovered,
1308
1452
  isPressed,
1309
1453
  isFocused,
1310
1454
  variant,
1455
+ borderVariant = 'none',
1311
1456
  children
1312
1457
  }) {
1313
1458
  const theme = useTheme();
1314
1459
  const state = getStateKey(isHovered, isPressed, isFocused);
1460
+ if ((process.env.NODE_ENV !== "production") && borderVariant !== 'none' && variant !== 'primary') {
1461
+ throw new Error(`borderVariant=${borderVariant} is only allowed with variant=primary`);
1462
+ }
1315
1463
  const {
1316
1464
  translateY
1317
1465
  } = theme.kitt.actionCard[variant][state];
@@ -1320,6 +1468,7 @@ function ActionCardContentWrapper({
1320
1468
  translateY
1321
1469
  }]
1322
1470
  } : {};
1471
+ const themeName = getThemeName(variant, borderVariant);
1323
1472
  return /*#__PURE__*/jsxRuntime.jsx(View, {
1324
1473
  _ios: {
1325
1474
  style: sharedTransform
@@ -1331,11 +1480,11 @@ function ActionCardContentWrapper({
1331
1480
  style: sharedTransform
1332
1481
  },
1333
1482
  width: "100%",
1334
- backgroundColor: `kitt.actionCard.${variant}.${state}.backgroundColor`,
1483
+ backgroundColor: `kitt.actionCard.${themeName}.${state}.backgroundColor`,
1335
1484
  borderRadius: "kitt.actionCard.borderRadius",
1336
- borderColor: `kitt.actionCard.${variant}.${state}.borderColor`,
1337
- borderWidth: `kitt.actionCard.${variant}.${state}.borderWidth`,
1338
- shadow: `kitt.actionCard.${variant}.${state}.shadow`,
1485
+ borderColor: `kitt.actionCard.${themeName}.${state}.borderColor`,
1486
+ borderWidth: `kitt.actionCard.${themeName}.${state}.borderWidth`,
1487
+ shadow: `kitt.actionCard.${themeName}.${state}.shadow`,
1339
1488
  children: children
1340
1489
  });
1341
1490
  }
@@ -1357,6 +1506,7 @@ function ActionCardDisabled({
1357
1506
  function ActionCard({
1358
1507
  children,
1359
1508
  variant = 'secondary',
1509
+ borderVariant = 'none',
1360
1510
  disabled,
1361
1511
  testID,
1362
1512
  isHovered,
@@ -1370,6 +1520,7 @@ function ActionCard({
1370
1520
  children: children
1371
1521
  }) : /*#__PURE__*/jsxRuntime.jsx(ActionCardContentWrapper, {
1372
1522
  variant: variant,
1523
+ borderVariant: borderVariant,
1373
1524
  isHovered: isHovered,
1374
1525
  isFocused: isFocused,
1375
1526
  isPressed: isPressed,
@@ -1380,6 +1531,7 @@ function ActionCard({
1380
1531
  const ActionCardPressable = /*#__PURE__*/React.forwardRef(({
1381
1532
  children,
1382
1533
  variant = 'secondary',
1534
+ borderVariant = 'none',
1383
1535
  disabled,
1384
1536
  testID,
1385
1537
  href,
@@ -1405,6 +1557,7 @@ const ActionCardPressable = /*#__PURE__*/React.forwardRef(({
1405
1557
  isFocused
1406
1558
  }) => /*#__PURE__*/jsxRuntime.jsx(ActionCard, {
1407
1559
  variant: variant,
1560
+ borderVariant: borderVariant,
1408
1561
  disabled: disabled,
1409
1562
  isHovered: isHovered || isHoveredInternal,
1410
1563
  isFocused: isFocused || isFocusedInternal,
@@ -1539,6 +1692,32 @@ exports.KittBreakpointNameEnum = void 0;
1539
1692
  KittBreakpointNameEnum["WIDE"] = "wide";
1540
1693
  })(exports.KittBreakpointNameEnum || (exports.KittBreakpointNameEnum = {}));
1541
1694
 
1695
+ const typographyColors = ['black', 'black-anthracite', 'black-disabled', 'black-light', 'white', 'white-light', 'primary', 'primary-light', 'accent', 'success', 'danger', 'warning'];
1696
+
1697
+ function getNBThemeColorFromColorProps(colorName) {
1698
+ return `kitt.typography.${colorName}`;
1699
+ }
1700
+
1701
+ function isColorTypographyColor(colorName) {
1702
+ if (!colorName || typeof colorName !== 'string') return false;
1703
+ return typographyColors.includes(colorName);
1704
+ }
1705
+ function getTypographyColorValue(colorName) {
1706
+ if (!colorName) return undefined;
1707
+ if (isColorTypographyColor(colorName)) {
1708
+ return getNBThemeColorFromColorProps(colorName);
1709
+ }
1710
+ return colorName;
1711
+ }
1712
+
1713
+ const isTypeHeader = type => type.startsWith('header');
1714
+
1715
+ const isTypographyHeader = (type, isHeaderTypographyInContext) => {
1716
+ if (type) return isTypeHeader(type);
1717
+ if (isHeaderTypographyInContext != null) return isHeaderTypographyInContext;
1718
+ throw new Error('You must set a "base" prop or wrap this Typography in one that does.');
1719
+ };
1720
+
1542
1721
  const IsHeaderTypographyContext = /*#__PURE__*/React.createContext(undefined);
1543
1722
  const TypographyColorContext = /*#__PURE__*/React.createContext('black');
1544
1723
  function useTypographyColor() {
@@ -1548,23 +1727,9 @@ const TypographyDefaultColorContext = /*#__PURE__*/React.createContext(undefined
1548
1727
  function useTypographyDefaultColor() {
1549
1728
  return React.useContext(TypographyDefaultColorContext);
1550
1729
  }
1551
-
1552
- /** @deprecated use native-base instead for SSR compatibility */
1553
- const getTypographyTypeConfigKey = theme => {
1554
- const isMediumOrAbove = theme.responsive.matchWindowSize({
1555
- minWidth: KittBreakpoints.MEDIUM
1556
- });
1557
- return isMediumOrAbove ? 'mediumAndWide' : 'baseAndSmall';
1558
- };
1559
1730
  function getTypographyTypeConfigKeyFromTypeName(breakpointName) {
1560
1731
  return breakpointName === 'base' || breakpointName === 'small' ? 'baseAndSmall' : 'mediumAndWide';
1561
1732
  }
1562
- const isTypeHeader = type => type.startsWith('header');
1563
- const isTypographyHeader = (type, isHeaderTypographyInContext) => {
1564
- if (type) return isTypeHeader(type);
1565
- if (isHeaderTypographyInContext != null) return isHeaderTypographyInContext;
1566
- throw new Error('You must set a "base" prop or wrap this Typography in one that does.');
1567
- };
1568
1733
 
1569
1734
  // TODO[native-base@>=3.4.19] this currently does not work. Retest when updating native-base.
1570
1735
  // & {
@@ -1585,9 +1750,6 @@ function createNativeBaseFontSize(type) {
1585
1750
  });
1586
1751
  return fontSizeForNativeBase;
1587
1752
  }
1588
- function getNBThemeColorFromColorProps(colorName) {
1589
- return colorName ? `kitt.typography.${colorName}` : undefined;
1590
- }
1591
1753
  function Typography({
1592
1754
  accessibilityRole,
1593
1755
  base: legacyBase,
@@ -1606,6 +1768,7 @@ function Typography({
1606
1768
  color,
1607
1769
  ...otherProps
1608
1770
  }) {
1771
+ const sx = nativeBase.useSx();
1609
1772
  const isHeaderTypographyInContext = React.useContext(IsHeaderTypographyContext);
1610
1773
  const defaultColor = useTypographyDefaultColor();
1611
1774
  const hasTypographyAncestor = isHeaderTypographyInContext !== undefined;
@@ -1616,6 +1779,11 @@ function Typography({
1616
1779
  ...type,
1617
1780
  base: baseOrDefaultToBody
1618
1781
  });
1782
+ const currentColor = !color && !hasTypographyAncestor ? defaultColor : color;
1783
+ const colorStyles = sx({
1784
+ color: getTypographyColorValue(currentColor),
1785
+ textDecorationColor: getTypographyColorValue(currentColor)
1786
+ });
1619
1787
  if (process.env.NODE_ENV !== 'production') {
1620
1788
  Object.entries(type).forEach(([key, value]) => {
1621
1789
  if (value && isTypeHeader(value) !== isHeader) {
@@ -1623,15 +1791,13 @@ function Typography({
1623
1791
  }
1624
1792
  });
1625
1793
  }
1626
- const currentColor = !color && !hasTypographyAncestor ? defaultColor : color;
1627
1794
  const text = /*#__PURE__*/jsxRuntime.jsx(nativeBase.Text, {
1628
1795
  accessibilityRole: accessibilityRole || undefined,
1629
1796
  fontSize: fontSizeForNativeBase,
1630
1797
  lineHeight: hasTypographyAncestor ? undefined : fontSizeForNativeBase,
1631
1798
  fontWeight: isHeader ? `headers.${nonNullableVariant}` : `bodies.${nonNullableVariant}`,
1632
1799
  fontFamily: isHeader ? `headers.${nonNullableVariant}` : `bodies.${nonNullableVariant}`,
1633
- color: getNBThemeColorFromColorProps(currentColor),
1634
- textDecorationColor: getNBThemeColorFromColorProps(currentColor),
1800
+ ...colorStyles,
1635
1801
  ...otherProps
1636
1802
  });
1637
1803
  const content = baseOrDefaultToBody ? /*#__PURE__*/jsxRuntime.jsx(IsHeaderTypographyContext.Provider, {
@@ -1711,10 +1877,13 @@ function TypographyIconSpecifiedColor({
1711
1877
  color,
1712
1878
  ...props
1713
1879
  }) {
1714
- const theme = useTheme();
1880
+ const sx = nativeBase.useSx();
1881
+ const colorStyle = sx({
1882
+ color: getTypographyColorValue(color)
1883
+ });
1715
1884
  return /*#__PURE__*/jsxRuntime.jsx(Icon, {
1716
1885
  ...props,
1717
- color: color === 'inherit' ? 'inherit' : theme.kitt.typography.colors[color]
1886
+ ...colorStyle
1718
1887
  });
1719
1888
  }
1720
1889
  function TypographyIconInheritColor(props) {
@@ -6618,6 +6787,50 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
6618
6787
  borderColor: theme.actionCard.primary.pressed.borderColor
6619
6788
  }
6620
6789
  },
6790
+ 'primary-border-soft': {
6791
+ default: {
6792
+ backgroundColor: theme.actionCard['primary-border-soft'].default.backgroundColor,
6793
+ borderColor: theme.actionCard['primary-border-soft'].default.borderColor
6794
+ },
6795
+ disabled: {
6796
+ backgroundColor: theme.actionCard['primary-border-soft'].disabled.backgroundColor,
6797
+ borderColor: theme.actionCard['primary-border-soft'].disabled.borderColor
6798
+ },
6799
+ hovered: {
6800
+ backgroundColor: theme.actionCard['primary-border-soft'].hovered.backgroundColor,
6801
+ borderColor: theme.actionCard['primary-border-soft'].hovered.borderColor
6802
+ },
6803
+ focused: {
6804
+ backgroundColor: theme.actionCard['primary-border-soft'].focused.backgroundColor,
6805
+ borderColor: theme.actionCard['primary-border-soft'].focused.borderColor
6806
+ },
6807
+ pressed: {
6808
+ backgroundColor: theme.actionCard['primary-border-soft'].pressed.backgroundColor,
6809
+ borderColor: theme.actionCard['primary-border-soft'].pressed.borderColor
6810
+ }
6811
+ },
6812
+ 'primary-border-hard': {
6813
+ default: {
6814
+ backgroundColor: theme.actionCard['primary-border-hard'].default.backgroundColor,
6815
+ borderColor: theme.actionCard['primary-border-hard'].default.borderColor
6816
+ },
6817
+ disabled: {
6818
+ backgroundColor: theme.actionCard['primary-border-hard'].disabled.backgroundColor,
6819
+ borderColor: theme.actionCard['primary-border-hard'].disabled.borderColor
6820
+ },
6821
+ hovered: {
6822
+ backgroundColor: theme.actionCard['primary-border-hard'].hovered.backgroundColor,
6823
+ borderColor: theme.actionCard['primary-border-hard'].hovered.borderColor
6824
+ },
6825
+ focused: {
6826
+ backgroundColor: theme.actionCard['primary-border-hard'].focused.backgroundColor,
6827
+ borderColor: theme.actionCard['primary-border-hard'].focused.borderColor
6828
+ },
6829
+ pressed: {
6830
+ backgroundColor: theme.actionCard['primary-border-hard'].pressed.backgroundColor,
6831
+ borderColor: theme.actionCard['primary-border-hard'].pressed.borderColor
6832
+ }
6833
+ },
6621
6834
  highlight: {
6622
6835
  default: {
6623
6836
  backgroundColor: theme.actionCard.highlight.default.backgroundColor,
@@ -6898,6 +7111,40 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
6898
7111
  borderWidth: theme.actionCard.primary.pressed.borderWidth
6899
7112
  }
6900
7113
  },
7114
+ 'primary-border-soft': {
7115
+ default: {
7116
+ borderWidth: theme.actionCard['primary-border-soft'].default.borderWidth
7117
+ },
7118
+ disabled: {
7119
+ borderWidth: theme.actionCard['primary-border-soft'].disabled.borderWidth
7120
+ },
7121
+ hovered: {
7122
+ borderWidth: theme.actionCard['primary-border-soft'].hovered.borderWidth
7123
+ },
7124
+ focused: {
7125
+ borderWidth: theme.actionCard['primary-border-soft'].focused.borderWidth
7126
+ },
7127
+ pressed: {
7128
+ borderWidth: theme.actionCard['primary-border-soft'].pressed.borderWidth
7129
+ }
7130
+ },
7131
+ 'primary-border-hard': {
7132
+ default: {
7133
+ borderWidth: theme.actionCard['primary-border-hard'].default.borderWidth
7134
+ },
7135
+ disabled: {
7136
+ borderWidth: theme.actionCard['primary-border-hard'].disabled.borderWidth
7137
+ },
7138
+ hovered: {
7139
+ borderWidth: theme.actionCard['primary-border-hard'].hovered.borderWidth
7140
+ },
7141
+ focused: {
7142
+ borderWidth: theme.actionCard['primary-border-hard'].focused.borderWidth
7143
+ },
7144
+ pressed: {
7145
+ borderWidth: theme.actionCard['primary-border-hard'].pressed.borderWidth
7146
+ }
7147
+ },
6901
7148
  highlight: {
6902
7149
  default: {
6903
7150
  borderWidth: theme.actionCard.highlight.default.borderWidth
@@ -7362,6 +7609,98 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
7362
7609
  }
7363
7610
  }
7364
7611
  },
7612
+ 'primary-border-soft': {
7613
+ default: {
7614
+ shadow: {
7615
+ shadowColor: theme.actionCard['primary-border-soft'].default.shadow.color,
7616
+ shadowOffset: {
7617
+ width: theme.actionCard['primary-border-soft'].default.shadow.offsetX,
7618
+ height: theme.actionCard['primary-border-soft'].default.shadow.offsetY
7619
+ },
7620
+ shadowOpacity: theme.actionCard['primary-border-soft'].default.shadow.opacity,
7621
+ shadowRadius: theme.actionCard['primary-border-soft'].default.shadow.radius
7622
+ }
7623
+ },
7624
+ hovered: {
7625
+ shadow: {
7626
+ shadowColor: theme.actionCard['primary-border-soft'].hovered.shadow.color,
7627
+ shadowOffset: {
7628
+ width: theme.actionCard['primary-border-soft'].hovered.shadow.offsetX,
7629
+ height: theme.actionCard['primary-border-soft'].hovered.shadow.offsetY
7630
+ },
7631
+ shadowOpacity: theme.actionCard['primary-border-soft'].hovered.shadow.opacity,
7632
+ shadowRadius: theme.actionCard['primary-border-soft'].hovered.shadow.radius
7633
+ }
7634
+ },
7635
+ focused: {
7636
+ shadow: {
7637
+ shadowColor: theme.actionCard['primary-border-soft'].focused.shadow.color,
7638
+ shadowOffset: {
7639
+ width: theme.actionCard['primary-border-soft'].focused.shadow.offsetX,
7640
+ height: theme.actionCard['primary-border-soft'].focused.shadow.offsetY
7641
+ },
7642
+ shadowOpacity: theme.actionCard['primary-border-soft'].focused.shadow.opacity,
7643
+ shadowRadius: theme.actionCard['primary-border-soft'].focused.shadow.radius
7644
+ }
7645
+ },
7646
+ pressed: {
7647
+ shadow: {
7648
+ shadowColor: theme.actionCard['primary-border-soft'].pressed.shadow.color,
7649
+ shadowOffset: {
7650
+ width: theme.actionCard['primary-border-soft'].pressed.shadow.offsetX,
7651
+ height: theme.actionCard['primary-border-soft'].pressed.shadow.offsetY
7652
+ },
7653
+ shadowOpacity: theme.actionCard['primary-border-soft'].pressed.shadow.opacity,
7654
+ shadowRadius: theme.actionCard['primary-border-soft'].pressed.shadow.radius
7655
+ }
7656
+ }
7657
+ },
7658
+ 'primary-border-hard': {
7659
+ default: {
7660
+ shadow: {
7661
+ shadowColor: theme.actionCard['primary-border-hard'].default.shadow.color,
7662
+ shadowOffset: {
7663
+ width: theme.actionCard['primary-border-hard'].default.shadow.offsetX,
7664
+ height: theme.actionCard['primary-border-hard'].default.shadow.offsetY
7665
+ },
7666
+ shadowOpacity: theme.actionCard['primary-border-hard'].default.shadow.opacity,
7667
+ shadowRadius: theme.actionCard['primary-border-hard'].default.shadow.radius
7668
+ }
7669
+ },
7670
+ hovered: {
7671
+ shadow: {
7672
+ shadowColor: theme.actionCard['primary-border-hard'].hovered.shadow.color,
7673
+ shadowOffset: {
7674
+ width: theme.actionCard['primary-border-hard'].hovered.shadow.offsetX,
7675
+ height: theme.actionCard['primary-border-hard'].hovered.shadow.offsetY
7676
+ },
7677
+ shadowOpacity: theme.actionCard['primary-border-hard'].hovered.shadow.opacity,
7678
+ shadowRadius: theme.actionCard['primary-border-hard'].hovered.shadow.radius
7679
+ }
7680
+ },
7681
+ focused: {
7682
+ shadow: {
7683
+ shadowColor: theme.actionCard['primary-border-hard'].focused.shadow.color,
7684
+ shadowOffset: {
7685
+ width: theme.actionCard['primary-border-hard'].focused.shadow.offsetX,
7686
+ height: theme.actionCard['primary-border-hard'].focused.shadow.offsetY
7687
+ },
7688
+ shadowOpacity: theme.actionCard['primary-border-hard'].focused.shadow.opacity,
7689
+ shadowRadius: theme.actionCard['primary-border-hard'].focused.shadow.radius
7690
+ }
7691
+ },
7692
+ pressed: {
7693
+ shadow: {
7694
+ shadowColor: theme.actionCard['primary-border-hard'].pressed.shadow.color,
7695
+ shadowOffset: {
7696
+ width: theme.actionCard['primary-border-hard'].pressed.shadow.offsetX,
7697
+ height: theme.actionCard['primary-border-hard'].pressed.shadow.offsetY
7698
+ },
7699
+ shadowOpacity: theme.actionCard['primary-border-hard'].pressed.shadow.opacity,
7700
+ shadowRadius: theme.actionCard['primary-border-hard'].pressed.shadow.radius
7701
+ }
7702
+ }
7703
+ },
7365
7704
  highlight: {
7366
7705
  default: {
7367
7706
  shadow: {
@@ -8745,6 +9084,13 @@ function Tag({
8745
9084
  });
8746
9085
  }
8747
9086
 
9087
+ /** @deprecated use native-base instead for SSR compatibility */
9088
+ const getTypographyTypeConfigKey = theme => {
9089
+ const isMediumOrAbove = theme.responsive.matchWindowSize({
9090
+ minWidth: KittBreakpoints.MEDIUM
9091
+ });
9092
+ return isMediumOrAbove ? 'mediumAndWide' : 'baseAndSmall';
9093
+ };
8748
9094
  /** @deprecated this mixin is not SSR compatible */
8749
9095
  const styledTextInputMixin = /*#__PURE__*/styled.css(["background-color:", ";border-width:", "px;border-radius:", "px;border-color:", ";font-size:", ";color:", ";font-family:", ";"], ({
8750
9096
  theme,