@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
@@ -173,6 +173,140 @@ const actionCard = {
173
173
  translateY: 3
174
174
  }
175
175
  },
176
+ 'primary-border-soft': {
177
+ default: {
178
+ backgroundColor: colors.uiBackgroundLight,
179
+ borderColor: lateOceanColorPalette.moonPurple,
180
+ borderWidth: 1,
181
+ shadow: {
182
+ color: lateOceanColorPalette.moonPurple,
183
+ offsetX: 0,
184
+ offsetY: 4,
185
+ opacity: 1,
186
+ radius: 0
187
+ },
188
+ translateY: 0
189
+ },
190
+ hovered: {
191
+ backgroundColor: lateOceanColorPalette.black50,
192
+ borderColor: lateOceanColorPalette.moonPurple,
193
+ borderWidth: 1,
194
+ shadow: {
195
+ color: lateOceanColorPalette.moonPurple,
196
+ offsetX: 0,
197
+ offsetY: 4,
198
+ opacity: 1,
199
+ radius: 0
200
+ },
201
+ translateY: 0
202
+ },
203
+ disabled: {
204
+ backgroundColor: lateOceanColorPalette.white,
205
+ borderColor: lateOceanColorPalette.moonPurple,
206
+ borderWidth: 1,
207
+ shadow: {
208
+ color: '',
209
+ offsetX: 0,
210
+ offsetY: 0,
211
+ opacity: 0,
212
+ radius: 0
213
+ },
214
+ translateY: 0
215
+ },
216
+ focused: {
217
+ backgroundColor: lateOceanColorPalette.black50,
218
+ borderColor: lateOceanColorPalette.moonPurple,
219
+ borderWidth: 1,
220
+ shadow: {
221
+ color: lateOceanColorPalette.moonPurple,
222
+ offsetX: 0,
223
+ offsetY: 4,
224
+ opacity: 1,
225
+ radius: 0
226
+ },
227
+ translateY: 0
228
+ },
229
+ pressed: {
230
+ backgroundColor: lateOceanColorPalette.black50,
231
+ borderColor: lateOceanColorPalette.moonPurple,
232
+ borderWidth: 1,
233
+ shadow: {
234
+ color: '',
235
+ offsetX: 0,
236
+ offsetY: 0,
237
+ opacity: 0,
238
+ radius: 0
239
+ },
240
+ translateY: 3
241
+ }
242
+ },
243
+ 'primary-border-hard': {
244
+ default: {
245
+ backgroundColor: colors.uiBackgroundLight,
246
+ borderColor: lateOceanColorPalette.lateOcean,
247
+ borderWidth: 1,
248
+ shadow: {
249
+ color: lateOceanColorPalette.lateOcean,
250
+ offsetX: 0,
251
+ offsetY: 4,
252
+ opacity: 1,
253
+ radius: 0
254
+ },
255
+ translateY: 0
256
+ },
257
+ hovered: {
258
+ backgroundColor: lateOceanColorPalette.black50,
259
+ borderColor: lateOceanColorPalette.lateOcean,
260
+ borderWidth: 1,
261
+ shadow: {
262
+ color: lateOceanColorPalette.lateOcean,
263
+ offsetX: 0,
264
+ offsetY: 4,
265
+ opacity: 1,
266
+ radius: 0
267
+ },
268
+ translateY: 0
269
+ },
270
+ disabled: {
271
+ backgroundColor: lateOceanColorPalette.white,
272
+ borderColor: lateOceanColorPalette.lateOcean,
273
+ borderWidth: 1,
274
+ shadow: {
275
+ color: '',
276
+ offsetX: 0,
277
+ offsetY: 0,
278
+ opacity: 0,
279
+ radius: 0
280
+ },
281
+ translateY: 0
282
+ },
283
+ focused: {
284
+ backgroundColor: lateOceanColorPalette.black50,
285
+ borderColor: lateOceanColorPalette.lateOcean,
286
+ borderWidth: 1,
287
+ shadow: {
288
+ color: lateOceanColorPalette.lateOcean,
289
+ offsetX: 0,
290
+ offsetY: 4,
291
+ opacity: 1,
292
+ radius: 0
293
+ },
294
+ translateY: 0
295
+ },
296
+ pressed: {
297
+ backgroundColor: lateOceanColorPalette.black50,
298
+ borderColor: lateOceanColorPalette.lateOcean,
299
+ borderWidth: 1,
300
+ shadow: {
301
+ color: '',
302
+ offsetX: 0,
303
+ offsetY: 0,
304
+ opacity: 0,
305
+ radius: 0
306
+ },
307
+ translateY: 3
308
+ }
309
+ },
176
310
  secondary: {
177
311
  default: {
178
312
  backgroundColor: lateOceanColorPalette.black50,
@@ -1294,15 +1428,29 @@ const getStateKey = (isHovered, isPressed, isFocused) => {
1294
1428
  return 'default';
1295
1429
  };
1296
1430
 
1431
+ const getThemeName = (variant, borderVariant) => {
1432
+ if (borderVariant === 'soft') {
1433
+ return 'primary-border-soft';
1434
+ }
1435
+ if (borderVariant === 'hard') {
1436
+ return 'primary-border-hard';
1437
+ }
1438
+ return variant;
1439
+ };
1440
+
1297
1441
  function ActionCardContentWrapper({
1298
1442
  isHovered,
1299
1443
  isPressed,
1300
1444
  isFocused,
1301
1445
  variant,
1446
+ borderVariant = 'none',
1302
1447
  children
1303
1448
  }) {
1304
1449
  const theme = useTheme();
1305
1450
  const state = getStateKey(isHovered, isPressed, isFocused);
1451
+ if ((process.env.NODE_ENV !== "production") && borderVariant !== 'none' && variant !== 'primary') {
1452
+ throw new Error(`borderVariant=${borderVariant} is only allowed with variant=primary`);
1453
+ }
1306
1454
  const {
1307
1455
  translateY
1308
1456
  } = theme.kitt.actionCard[variant][state];
@@ -1311,6 +1459,7 @@ function ActionCardContentWrapper({
1311
1459
  translateY
1312
1460
  }]
1313
1461
  } : {};
1462
+ const themeName = getThemeName(variant, borderVariant);
1314
1463
  return /*#__PURE__*/jsxRuntime.jsx(View, {
1315
1464
  _ios: {
1316
1465
  style: sharedTransform
@@ -1322,11 +1471,11 @@ function ActionCardContentWrapper({
1322
1471
  style: sharedTransform
1323
1472
  },
1324
1473
  width: "100%",
1325
- backgroundColor: `kitt.actionCard.${variant}.${state}.backgroundColor`,
1474
+ backgroundColor: `kitt.actionCard.${themeName}.${state}.backgroundColor`,
1326
1475
  borderRadius: "kitt.actionCard.borderRadius",
1327
- borderColor: `kitt.actionCard.${variant}.${state}.borderColor`,
1328
- borderWidth: `kitt.actionCard.${variant}.${state}.borderWidth`,
1329
- shadow: `kitt.actionCard.${variant}.${state}.shadow`,
1476
+ borderColor: `kitt.actionCard.${themeName}.${state}.borderColor`,
1477
+ borderWidth: `kitt.actionCard.${themeName}.${state}.borderWidth`,
1478
+ shadow: `kitt.actionCard.${themeName}.${state}.shadow`,
1330
1479
  children: children
1331
1480
  });
1332
1481
  }
@@ -1348,6 +1497,7 @@ function ActionCardDisabled({
1348
1497
  function ActionCard({
1349
1498
  children,
1350
1499
  variant = 'secondary',
1500
+ borderVariant = 'none',
1351
1501
  disabled,
1352
1502
  testID,
1353
1503
  isHovered,
@@ -1361,6 +1511,7 @@ function ActionCard({
1361
1511
  children: children
1362
1512
  }) : /*#__PURE__*/jsxRuntime.jsx(ActionCardContentWrapper, {
1363
1513
  variant: variant,
1514
+ borderVariant: borderVariant,
1364
1515
  isHovered: isHovered,
1365
1516
  isFocused: isFocused,
1366
1517
  isPressed: isPressed,
@@ -1371,6 +1522,7 @@ function ActionCard({
1371
1522
  const ActionCardPressable = /*#__PURE__*/react.forwardRef(({
1372
1523
  children,
1373
1524
  variant = 'secondary',
1525
+ borderVariant = 'none',
1374
1526
  disabled,
1375
1527
  testID,
1376
1528
  href,
@@ -1396,6 +1548,7 @@ const ActionCardPressable = /*#__PURE__*/react.forwardRef(({
1396
1548
  isFocused
1397
1549
  }) => /*#__PURE__*/jsxRuntime.jsx(ActionCard, {
1398
1550
  variant: variant,
1551
+ borderVariant: borderVariant,
1399
1552
  disabled: disabled,
1400
1553
  isHovered: isHovered || isHoveredInternal,
1401
1554
  isFocused: isFocused || isFocusedInternal,
@@ -1576,6 +1729,32 @@ exports.KittBreakpointNameEnum = void 0;
1576
1729
  KittBreakpointNameEnum["WIDE"] = "wide";
1577
1730
  })(exports.KittBreakpointNameEnum || (exports.KittBreakpointNameEnum = {}));
1578
1731
 
1732
+ const typographyColors = ['black', 'black-anthracite', 'black-disabled', 'black-light', 'white', 'white-light', 'primary', 'primary-light', 'accent', 'success', 'danger', 'warning'];
1733
+
1734
+ function getNBThemeColorFromColorProps(colorName) {
1735
+ return `kitt.typography.${colorName}`;
1736
+ }
1737
+
1738
+ function isColorTypographyColor(colorName) {
1739
+ if (!colorName || typeof colorName !== 'string') return false;
1740
+ return typographyColors.includes(colorName);
1741
+ }
1742
+ function getTypographyColorValue(colorName) {
1743
+ if (!colorName) return undefined;
1744
+ if (isColorTypographyColor(colorName)) {
1745
+ return getNBThemeColorFromColorProps(colorName);
1746
+ }
1747
+ return colorName;
1748
+ }
1749
+
1750
+ const isTypeHeader = type => type.startsWith('header');
1751
+
1752
+ const isTypographyHeader = (type, isHeaderTypographyInContext) => {
1753
+ if (type) return isTypeHeader(type);
1754
+ if (isHeaderTypographyInContext != null) return isHeaderTypographyInContext;
1755
+ throw new Error('You must set a "base" prop or wrap this Typography in one that does.');
1756
+ };
1757
+
1579
1758
  const IsHeaderTypographyContext = /*#__PURE__*/react.createContext(undefined);
1580
1759
  const TypographyColorContext = /*#__PURE__*/react.createContext('black');
1581
1760
  function useTypographyColor() {
@@ -1588,12 +1767,6 @@ function useTypographyDefaultColor() {
1588
1767
  function getTypographyTypeConfigKeyFromTypeName(breakpointName) {
1589
1768
  return breakpointName === 'base' || breakpointName === 'small' ? 'baseAndSmall' : 'mediumAndWide';
1590
1769
  }
1591
- const isTypeHeader = type => type.startsWith('header');
1592
- const isTypographyHeader = (type, isHeaderTypographyInContext) => {
1593
- if (type) return isTypeHeader(type);
1594
- if (isHeaderTypographyInContext != null) return isHeaderTypographyInContext;
1595
- throw new Error('You must set a "base" prop or wrap this Typography in one that does.');
1596
- };
1597
1770
 
1598
1771
  // TODO[native-base@>=3.4.19] this currently does not work. Retest when updating native-base.
1599
1772
  // & {
@@ -1614,9 +1787,6 @@ function createNativeBaseFontSize(type) {
1614
1787
  });
1615
1788
  return fontSizeForNativeBase;
1616
1789
  }
1617
- function getNBThemeColorFromColorProps(colorName) {
1618
- return colorName ? `kitt.typography.${colorName}` : undefined;
1619
- }
1620
1790
  function Typography({
1621
1791
  accessibilityRole,
1622
1792
  base: legacyBase,
@@ -1635,6 +1805,7 @@ function Typography({
1635
1805
  color,
1636
1806
  ...otherProps
1637
1807
  }) {
1808
+ const sx = nativeBase.useSx();
1638
1809
  const isHeaderTypographyInContext = react.useContext(IsHeaderTypographyContext);
1639
1810
  const defaultColor = useTypographyDefaultColor();
1640
1811
  const hasTypographyAncestor = isHeaderTypographyInContext !== undefined;
@@ -1645,6 +1816,11 @@ function Typography({
1645
1816
  ...type,
1646
1817
  base: baseOrDefaultToBody
1647
1818
  });
1819
+ const currentColor = !color && !hasTypographyAncestor ? defaultColor : color;
1820
+ const colorStyles = sx({
1821
+ color: getTypographyColorValue(currentColor),
1822
+ textDecorationColor: getTypographyColorValue(currentColor)
1823
+ });
1648
1824
  if (process.env.NODE_ENV !== 'production') {
1649
1825
  Object.entries(type).forEach(([key, value]) => {
1650
1826
  if (value && isTypeHeader(value) !== isHeader) {
@@ -1652,15 +1828,13 @@ function Typography({
1652
1828
  }
1653
1829
  });
1654
1830
  }
1655
- const currentColor = !color && !hasTypographyAncestor ? defaultColor : color;
1656
1831
  const text = /*#__PURE__*/jsxRuntime.jsx(nativeBase.Text, {
1657
1832
  accessibilityRole: accessibilityRole || undefined,
1658
1833
  fontSize: fontSizeForNativeBase,
1659
1834
  lineHeight: hasTypographyAncestor ? undefined : fontSizeForNativeBase,
1660
1835
  fontWeight: isHeader ? `headers.${nonNullableVariant}` : `bodies.${nonNullableVariant}`,
1661
1836
  fontFamily: isHeader ? `headers.${nonNullableVariant}` : `bodies.${nonNullableVariant}`,
1662
- color: getNBThemeColorFromColorProps(currentColor),
1663
- textDecorationColor: getNBThemeColorFromColorProps(currentColor),
1837
+ ...colorStyles,
1664
1838
  ...otherProps
1665
1839
  });
1666
1840
  const content = baseOrDefaultToBody ? /*#__PURE__*/jsxRuntime.jsx(IsHeaderTypographyContext.Provider, {
@@ -1740,10 +1914,13 @@ function TypographyIconSpecifiedColor({
1740
1914
  color,
1741
1915
  ...props
1742
1916
  }) {
1743
- const theme = useTheme();
1917
+ const sx = nativeBase.useSx();
1918
+ const colorStyle = sx({
1919
+ color: getTypographyColorValue(color)
1920
+ });
1744
1921
  return /*#__PURE__*/jsxRuntime.jsx(Icon, {
1745
1922
  ...props,
1746
- color: color === 'inherit' ? 'inherit' : theme.kitt.typography.colors[color]
1923
+ ...colorStyle
1747
1924
  });
1748
1925
  }
1749
1926
  function TypographyIconInheritColor(props) {
@@ -5660,6 +5837,50 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
5660
5837
  borderColor: theme.actionCard.primary.pressed.borderColor
5661
5838
  }
5662
5839
  },
5840
+ 'primary-border-soft': {
5841
+ default: {
5842
+ backgroundColor: theme.actionCard['primary-border-soft'].default.backgroundColor,
5843
+ borderColor: theme.actionCard['primary-border-soft'].default.borderColor
5844
+ },
5845
+ disabled: {
5846
+ backgroundColor: theme.actionCard['primary-border-soft'].disabled.backgroundColor,
5847
+ borderColor: theme.actionCard['primary-border-soft'].disabled.borderColor
5848
+ },
5849
+ hovered: {
5850
+ backgroundColor: theme.actionCard['primary-border-soft'].hovered.backgroundColor,
5851
+ borderColor: theme.actionCard['primary-border-soft'].hovered.borderColor
5852
+ },
5853
+ focused: {
5854
+ backgroundColor: theme.actionCard['primary-border-soft'].focused.backgroundColor,
5855
+ borderColor: theme.actionCard['primary-border-soft'].focused.borderColor
5856
+ },
5857
+ pressed: {
5858
+ backgroundColor: theme.actionCard['primary-border-soft'].pressed.backgroundColor,
5859
+ borderColor: theme.actionCard['primary-border-soft'].pressed.borderColor
5860
+ }
5861
+ },
5862
+ 'primary-border-hard': {
5863
+ default: {
5864
+ backgroundColor: theme.actionCard['primary-border-hard'].default.backgroundColor,
5865
+ borderColor: theme.actionCard['primary-border-hard'].default.borderColor
5866
+ },
5867
+ disabled: {
5868
+ backgroundColor: theme.actionCard['primary-border-hard'].disabled.backgroundColor,
5869
+ borderColor: theme.actionCard['primary-border-hard'].disabled.borderColor
5870
+ },
5871
+ hovered: {
5872
+ backgroundColor: theme.actionCard['primary-border-hard'].hovered.backgroundColor,
5873
+ borderColor: theme.actionCard['primary-border-hard'].hovered.borderColor
5874
+ },
5875
+ focused: {
5876
+ backgroundColor: theme.actionCard['primary-border-hard'].focused.backgroundColor,
5877
+ borderColor: theme.actionCard['primary-border-hard'].focused.borderColor
5878
+ },
5879
+ pressed: {
5880
+ backgroundColor: theme.actionCard['primary-border-hard'].pressed.backgroundColor,
5881
+ borderColor: theme.actionCard['primary-border-hard'].pressed.borderColor
5882
+ }
5883
+ },
5663
5884
  highlight: {
5664
5885
  default: {
5665
5886
  backgroundColor: theme.actionCard.highlight.default.backgroundColor,
@@ -5940,6 +6161,40 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
5940
6161
  borderWidth: theme.actionCard.primary.pressed.borderWidth
5941
6162
  }
5942
6163
  },
6164
+ 'primary-border-soft': {
6165
+ default: {
6166
+ borderWidth: theme.actionCard['primary-border-soft'].default.borderWidth
6167
+ },
6168
+ disabled: {
6169
+ borderWidth: theme.actionCard['primary-border-soft'].disabled.borderWidth
6170
+ },
6171
+ hovered: {
6172
+ borderWidth: theme.actionCard['primary-border-soft'].hovered.borderWidth
6173
+ },
6174
+ focused: {
6175
+ borderWidth: theme.actionCard['primary-border-soft'].focused.borderWidth
6176
+ },
6177
+ pressed: {
6178
+ borderWidth: theme.actionCard['primary-border-soft'].pressed.borderWidth
6179
+ }
6180
+ },
6181
+ 'primary-border-hard': {
6182
+ default: {
6183
+ borderWidth: theme.actionCard['primary-border-hard'].default.borderWidth
6184
+ },
6185
+ disabled: {
6186
+ borderWidth: theme.actionCard['primary-border-hard'].disabled.borderWidth
6187
+ },
6188
+ hovered: {
6189
+ borderWidth: theme.actionCard['primary-border-hard'].hovered.borderWidth
6190
+ },
6191
+ focused: {
6192
+ borderWidth: theme.actionCard['primary-border-hard'].focused.borderWidth
6193
+ },
6194
+ pressed: {
6195
+ borderWidth: theme.actionCard['primary-border-hard'].pressed.borderWidth
6196
+ }
6197
+ },
5943
6198
  highlight: {
5944
6199
  default: {
5945
6200
  borderWidth: theme.actionCard.highlight.default.borderWidth
@@ -6404,6 +6659,98 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
6404
6659
  }
6405
6660
  }
6406
6661
  },
6662
+ 'primary-border-soft': {
6663
+ default: {
6664
+ shadow: {
6665
+ shadowColor: theme.actionCard['primary-border-soft'].default.shadow.color,
6666
+ shadowOffset: {
6667
+ width: theme.actionCard['primary-border-soft'].default.shadow.offsetX,
6668
+ height: theme.actionCard['primary-border-soft'].default.shadow.offsetY
6669
+ },
6670
+ shadowOpacity: theme.actionCard['primary-border-soft'].default.shadow.opacity,
6671
+ shadowRadius: theme.actionCard['primary-border-soft'].default.shadow.radius
6672
+ }
6673
+ },
6674
+ hovered: {
6675
+ shadow: {
6676
+ shadowColor: theme.actionCard['primary-border-soft'].hovered.shadow.color,
6677
+ shadowOffset: {
6678
+ width: theme.actionCard['primary-border-soft'].hovered.shadow.offsetX,
6679
+ height: theme.actionCard['primary-border-soft'].hovered.shadow.offsetY
6680
+ },
6681
+ shadowOpacity: theme.actionCard['primary-border-soft'].hovered.shadow.opacity,
6682
+ shadowRadius: theme.actionCard['primary-border-soft'].hovered.shadow.radius
6683
+ }
6684
+ },
6685
+ focused: {
6686
+ shadow: {
6687
+ shadowColor: theme.actionCard['primary-border-soft'].focused.shadow.color,
6688
+ shadowOffset: {
6689
+ width: theme.actionCard['primary-border-soft'].focused.shadow.offsetX,
6690
+ height: theme.actionCard['primary-border-soft'].focused.shadow.offsetY
6691
+ },
6692
+ shadowOpacity: theme.actionCard['primary-border-soft'].focused.shadow.opacity,
6693
+ shadowRadius: theme.actionCard['primary-border-soft'].focused.shadow.radius
6694
+ }
6695
+ },
6696
+ pressed: {
6697
+ shadow: {
6698
+ shadowColor: theme.actionCard['primary-border-soft'].pressed.shadow.color,
6699
+ shadowOffset: {
6700
+ width: theme.actionCard['primary-border-soft'].pressed.shadow.offsetX,
6701
+ height: theme.actionCard['primary-border-soft'].pressed.shadow.offsetY
6702
+ },
6703
+ shadowOpacity: theme.actionCard['primary-border-soft'].pressed.shadow.opacity,
6704
+ shadowRadius: theme.actionCard['primary-border-soft'].pressed.shadow.radius
6705
+ }
6706
+ }
6707
+ },
6708
+ 'primary-border-hard': {
6709
+ default: {
6710
+ shadow: {
6711
+ shadowColor: theme.actionCard['primary-border-hard'].default.shadow.color,
6712
+ shadowOffset: {
6713
+ width: theme.actionCard['primary-border-hard'].default.shadow.offsetX,
6714
+ height: theme.actionCard['primary-border-hard'].default.shadow.offsetY
6715
+ },
6716
+ shadowOpacity: theme.actionCard['primary-border-hard'].default.shadow.opacity,
6717
+ shadowRadius: theme.actionCard['primary-border-hard'].default.shadow.radius
6718
+ }
6719
+ },
6720
+ hovered: {
6721
+ shadow: {
6722
+ shadowColor: theme.actionCard['primary-border-hard'].hovered.shadow.color,
6723
+ shadowOffset: {
6724
+ width: theme.actionCard['primary-border-hard'].hovered.shadow.offsetX,
6725
+ height: theme.actionCard['primary-border-hard'].hovered.shadow.offsetY
6726
+ },
6727
+ shadowOpacity: theme.actionCard['primary-border-hard'].hovered.shadow.opacity,
6728
+ shadowRadius: theme.actionCard['primary-border-hard'].hovered.shadow.radius
6729
+ }
6730
+ },
6731
+ focused: {
6732
+ shadow: {
6733
+ shadowColor: theme.actionCard['primary-border-hard'].focused.shadow.color,
6734
+ shadowOffset: {
6735
+ width: theme.actionCard['primary-border-hard'].focused.shadow.offsetX,
6736
+ height: theme.actionCard['primary-border-hard'].focused.shadow.offsetY
6737
+ },
6738
+ shadowOpacity: theme.actionCard['primary-border-hard'].focused.shadow.opacity,
6739
+ shadowRadius: theme.actionCard['primary-border-hard'].focused.shadow.radius
6740
+ }
6741
+ },
6742
+ pressed: {
6743
+ shadow: {
6744
+ shadowColor: theme.actionCard['primary-border-hard'].pressed.shadow.color,
6745
+ shadowOffset: {
6746
+ width: theme.actionCard['primary-border-hard'].pressed.shadow.offsetX,
6747
+ height: theme.actionCard['primary-border-hard'].pressed.shadow.offsetY
6748
+ },
6749
+ shadowOpacity: theme.actionCard['primary-border-hard'].pressed.shadow.opacity,
6750
+ shadowRadius: theme.actionCard['primary-border-hard'].pressed.shadow.radius
6751
+ }
6752
+ }
6753
+ },
6407
6754
  highlight: {
6408
6755
  default: {
6409
6756
  shadow: {