@ornikar/kitt-universal 9.1.0 → 9.1.2

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 (32) hide show
  1. package/dist/definitions/Button/BaseStyledButtonPressable.d.ts +2 -3
  2. package/dist/definitions/Button/BaseStyledButtonPressable.d.ts.map +1 -1
  3. package/dist/definitions/Button/Button.d.ts +8 -0
  4. package/dist/definitions/Button/Button.d.ts.map +1 -1
  5. package/dist/definitions/index.d.ts +2 -0
  6. package/dist/definitions/index.d.ts.map +1 -1
  7. package/dist/definitions/utils/warnings.d.ts +4 -0
  8. package/dist/definitions/utils/warnings.d.ts.map +1 -0
  9. package/dist/index-browser-all.es.android.js +195 -163
  10. package/dist/index-browser-all.es.android.js.map +1 -1
  11. package/dist/index-browser-all.es.ios.js +195 -163
  12. package/dist/index-browser-all.es.ios.js.map +1 -1
  13. package/dist/index-browser-all.es.js +195 -163
  14. package/dist/index-browser-all.es.js.map +1 -1
  15. package/dist/index-browser-all.es.web.js +194 -162
  16. package/dist/index-browser-all.es.web.js.map +1 -1
  17. package/dist/index-node-14.17.cjs.js +179 -145
  18. package/dist/index-node-14.17.cjs.js.map +1 -1
  19. package/dist/index-node-14.17.cjs.web.js +178 -144
  20. package/dist/index-node-14.17.cjs.web.js.map +1 -1
  21. package/dist/linaria-themes-browser-all.es.android.js +1 -1
  22. package/dist/linaria-themes-browser-all.es.android.js.map +1 -1
  23. package/dist/linaria-themes-browser-all.es.ios.js +1 -1
  24. package/dist/linaria-themes-browser-all.es.ios.js.map +1 -1
  25. package/dist/linaria-themes-browser-all.es.js +1 -1
  26. package/dist/linaria-themes-browser-all.es.js.map +1 -1
  27. package/dist/linaria-themes-browser-all.es.web.js.map +1 -1
  28. package/dist/linaria-themes-node-14.17.cjs.js +1 -1
  29. package/dist/linaria-themes-node-14.17.cjs.js.map +1 -1
  30. package/dist/linaria-themes-node-14.17.cjs.web.js.map +1 -1
  31. package/dist/tsbuildinfo +1 -1
  32. package/package.json +4 -4
@@ -345,6 +345,19 @@ function Avatar(_ref6) {
345
345
  });
346
346
  }
347
347
 
348
+ function warn(message) {
349
+ if (process.env.NODE_ENV !== 'production') {
350
+ console.warn(message);
351
+ }
352
+ }
353
+ function deprecatedMessage(symbol, deprecation, replaceBy) {
354
+ var replaceMessage = replaceBy === undefined ? '' : ", please use ".concat(replaceBy, " instead");
355
+ warn("[Deprecation] in ".concat(symbol, ": ").concat(deprecation, " is deprecated").concat(replaceMessage, "."));
356
+ }
357
+ function deprecatedInComponent(component, deprecation, replaceBy) {
358
+ deprecatedMessage("<".concat(component, " />"), deprecation, replaceBy);
359
+ }
360
+
348
361
  var hasVariant = function (button, variant) {
349
362
  return variant in button;
350
363
  };
@@ -483,16 +496,15 @@ var BaseStyledButtonPressable = /*#__PURE__*/styled.View.withConfig({
483
496
  return getVariantValuesIfExist(theme, $type, $variant).backgroundColor;
484
497
  }, function (_ref7) {
485
498
  var theme = _ref7.theme,
486
- $isLarge = _ref7.$isLarge,
487
- $isXLarge = _ref7.$isXLarge,
499
+ $size = _ref7.$size,
488
500
  $isDisabled = _ref7.$isDisabled;
489
501
  var _theme$kitt$button$co = theme.kitt.button.contentPadding,
490
502
  large = _theme$kitt$button$co.large,
491
503
  defaultPadding = _theme$kitt$button$co["default"],
492
504
  disabledPadding = _theme$kitt$button$co.disabled,
493
505
  xLarge = _theme$kitt$button$co.xLarge;
494
- if ($isXLarge) return xLarge;
495
- if ($isLarge) return large;
506
+ if ($size === 'large') return large;
507
+ if ($size === 'xlarge') return xLarge;
496
508
  if ($isDisabled) return disabledPadding;
497
509
  return defaultPadding;
498
510
  });
@@ -708,30 +720,51 @@ var StyledDisabled = /*#__PURE__*/styled.View.withConfig({
708
720
  });
709
721
 
710
722
  var allowedGhostTypes = ['primary', 'default'];
711
- var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
712
- var children = _ref.children,
713
- _ref$type = _ref.type,
714
- type = _ref$type === void 0 ? 'default' : _ref$type,
715
- _ref$variant = _ref.variant,
716
- variant = _ref$variant === void 0 ? 'default' : _ref$variant,
717
- disabled = _ref.disabled,
718
- stretch = _ref.stretch,
719
- large = _ref.large,
723
+
724
+ var getButtonSize = function (_ref) {
725
+ var large = _ref.large,
720
726
  xLarge = _ref.xLarge,
721
- icon = _ref.icon,
722
- _ref$iconPosition = _ref.iconPosition,
723
- iconPosition = _ref$iconPosition === void 0 ? 'left' : _ref$iconPosition,
724
- testID = _ref.testID,
725
- href = _ref.href,
726
- hrefAttrs = _ref.hrefAttrs,
727
- _ref$accessibilityRol = _ref.accessibilityRole,
728
- accessibilityRole = _ref$accessibilityRol === void 0 ? 'button' : _ref$accessibilityRol,
729
- onPress = _ref.onPress;
727
+ size = _ref.size;
728
+ if (large) return 'large';
729
+ if (xLarge) return 'xlarge';
730
+ return size;
731
+ };
732
+
733
+ var Button = /*#__PURE__*/forwardRef(function (_ref2, ref) {
734
+ var children = _ref2.children,
735
+ _ref2$type = _ref2.type,
736
+ type = _ref2$type === void 0 ? 'default' : _ref2$type,
737
+ _ref2$variant = _ref2.variant,
738
+ variant = _ref2$variant === void 0 ? 'default' : _ref2$variant,
739
+ disabled = _ref2.disabled,
740
+ stretch = _ref2.stretch,
741
+ large = _ref2.large,
742
+ xLarge = _ref2.xLarge,
743
+ icon = _ref2.icon,
744
+ sizeProp = _ref2.size,
745
+ _ref2$iconPosition = _ref2.iconPosition,
746
+ iconPosition = _ref2$iconPosition === void 0 ? 'left' : _ref2$iconPosition,
747
+ testID = _ref2.testID,
748
+ href = _ref2.href,
749
+ hrefAttrs = _ref2.hrefAttrs,
750
+ _ref2$accessibilityRo = _ref2.accessibilityRole,
751
+ accessibilityRole = _ref2$accessibilityRo === void 0 ? 'button' : _ref2$accessibilityRo,
752
+ onPress = _ref2.onPress;
730
753
 
731
754
  if ((process.env.NODE_ENV !== "production") && variant === 'ghost' && !allowedGhostTypes.includes(type)) {
732
755
  throw new Error('variant=ghost is only allowed with type=primary or default');
733
756
  }
734
757
 
758
+ if (large || xLarge) {
759
+ var deprecatedProp = large ? 'large' : 'xLarge';
760
+ deprecatedInComponent('Button', "".concat(deprecatedProp, " prop"), 'size');
761
+ }
762
+
763
+ var size = getButtonSize({
764
+ large: large,
765
+ xLarge: xLarge,
766
+ size: sizeProp
767
+ });
735
768
  return /*#__PURE__*/jsx(AnimatedButtonPressable, {
736
769
  ref: ref,
737
770
  accessibilityRole: accessibilityRole,
@@ -747,8 +780,7 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
747
780
  $type: type,
748
781
  $variant: variant,
749
782
  $isStretch: stretch,
750
- $isLarge: large,
751
- $isXLarge: xLarge,
783
+ $size: size,
752
784
  $isDisabled: disabled,
753
785
  children: [/*#__PURE__*/jsx(ButtonContent, {
754
786
  type: type,
@@ -1273,7 +1305,7 @@ var typography = {
1273
1305
  },
1274
1306
  fontWeight: {
1275
1307
  regular: 400,
1276
- bold: 700
1308
+ bold: Platform.OS === 'web' ? 700 : 400
1277
1309
  },
1278
1310
  fontStyle: {
1279
1311
  regular: 'normal',
@@ -3391,6 +3423,143 @@ function Message(_ref) {
3391
3423
  });
3392
3424
  }
3393
3425
 
3426
+ var createKittSpaces = function (spacing) {
3427
+ var sizes = {};
3428
+
3429
+ for (var size = 1; size <= 64; size++) {
3430
+ sizes["kitt.".concat(size)] = size * spacing;
3431
+ }
3432
+
3433
+ return sizes;
3434
+ }; // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/explicit-function-return-type -- let typescript infer types
3435
+
3436
+
3437
+ var createKittNativeBaseCustomTheme = function (theme) {
3438
+ var spaces = createKittSpaces(theme.spacing);
3439
+ return extendTheme({
3440
+ colors: {
3441
+ kitt: _objectSpread(_objectSpread({}, theme.colors), {}, {
3442
+ typography: theme.typography.colors
3443
+ })
3444
+ },
3445
+ radii: {
3446
+ 'kitt.borderRadius': theme.card.borderRadius
3447
+ },
3448
+ sizes: _objectSpread(_objectSpread({}, spaces), Object.fromEntries([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 16, 20, 24, 32, 40, 48, 56, 64, 78, 80, 96, 0.5, 1.5, 2.5, 3.5].map(function (value) {
3449
+ return [value, value];
3450
+ }))),
3451
+ space: spaces,
3452
+ breakpoints: {
3453
+ // kitt breakpoints
3454
+ base: KittBreakpoints.BASE,
3455
+ small: KittBreakpoints.SMALL,
3456
+ medium: KittBreakpoints.MEDIUM,
3457
+ large: KittBreakpoints.LARGE,
3458
+ wide: KittBreakpoints.WIDE,
3459
+ // native base default naming
3460
+ sm: Number.MAX_SAFE_INTEGER,
3461
+ md: Number.MAX_SAFE_INTEGER,
3462
+ lg: Number.MAX_SAFE_INTEGER,
3463
+ xl: Number.MAX_SAFE_INTEGER,
3464
+ '2xl': Number.MAX_SAFE_INTEGER
3465
+ },
3466
+ fontSizes: {
3467
+ baseAndSmall: {
3468
+ header1: "".concat(theme.typography.types.headers.configs.header1.baseAndSmall.fontSize, "px"),
3469
+ header2: "".concat(theme.typography.types.headers.configs.header2.baseAndSmall.fontSize, "px"),
3470
+ header3: "".concat(theme.typography.types.headers.configs.header3.baseAndSmall.fontSize, "px"),
3471
+ header4: "".concat(theme.typography.types.headers.configs.header4.baseAndSmall.fontSize, "px"),
3472
+ header5: "".concat(theme.typography.types.headers.configs.header5.baseAndSmall.fontSize, "px"),
3473
+ 'body-large': "".concat(theme.typography.types.bodies.configs['body-large'].baseAndSmall.fontSize, "px"),
3474
+ 'body-medium': "".concat(theme.typography.types.bodies.configs['body-medium'].baseAndSmall.fontSize, "px"),
3475
+ body: "".concat(theme.typography.types.bodies.configs.body.baseAndSmall.fontSize, "px"),
3476
+ 'body-small': "".concat(theme.typography.types.bodies.configs['body-small'].baseAndSmall.fontSize, "px"),
3477
+ 'body-xsmall': "".concat(theme.typography.types.bodies.configs['body-xsmall'].baseAndSmall.fontSize, "px")
3478
+ },
3479
+ mediumAndWide: {
3480
+ header1: "".concat(theme.typography.types.headers.configs.header1.mediumAndWide.fontSize, "px"),
3481
+ header2: "".concat(theme.typography.types.headers.configs.header2.mediumAndWide.fontSize, "px"),
3482
+ header3: "".concat(theme.typography.types.headers.configs.header3.mediumAndWide.fontSize, "px"),
3483
+ header4: "".concat(theme.typography.types.headers.configs.header4.mediumAndWide.fontSize, "px"),
3484
+ header5: "".concat(theme.typography.types.headers.configs.header5.mediumAndWide.fontSize, "px"),
3485
+ 'body-large': "".concat(theme.typography.types.bodies.configs['body-large'].mediumAndWide.fontSize, "px"),
3486
+ 'body-medium': "".concat(theme.typography.types.bodies.configs['body-medium'].mediumAndWide.fontSize, "px"),
3487
+ body: "".concat(theme.typography.types.bodies.configs.body.mediumAndWide.fontSize, "px"),
3488
+ 'body-small': "".concat(theme.typography.types.bodies.configs['body-small'].mediumAndWide.fontSize, "px"),
3489
+ 'body-xsmall': "".concat(theme.typography.types.bodies.configs['body-xsmall'].mediumAndWide.fontSize, "px")
3490
+ }
3491
+ },
3492
+ lineHeights: {
3493
+ baseAndSmall: {
3494
+ header1: theme.typography.types.headers.configs.header1.baseAndSmall.lineHeight,
3495
+ header2: theme.typography.types.headers.configs.header2.baseAndSmall.lineHeight,
3496
+ header3: theme.typography.types.headers.configs.header3.baseAndSmall.lineHeight,
3497
+ header4: theme.typography.types.headers.configs.header4.baseAndSmall.lineHeight,
3498
+ header5: theme.typography.types.headers.configs.header5.baseAndSmall.lineHeight,
3499
+ 'body-large': theme.typography.types.bodies.configs['body-large'].baseAndSmall.lineHeight,
3500
+ 'body-medium': theme.typography.types.bodies.configs['body-medium'].baseAndSmall.lineHeight,
3501
+ body: theme.typography.types.bodies.configs.body.baseAndSmall.lineHeight,
3502
+ 'body-small': theme.typography.types.bodies.configs['body-small'].baseAndSmall.lineHeight,
3503
+ 'body-xsmall': theme.typography.types.bodies.configs['body-xsmall'].baseAndSmall.lineHeight
3504
+ },
3505
+ mediumAndWide: {
3506
+ header1: theme.typography.types.headers.configs.header1.mediumAndWide.lineHeight,
3507
+ header2: theme.typography.types.headers.configs.header2.mediumAndWide.lineHeight,
3508
+ header3: theme.typography.types.headers.configs.header3.mediumAndWide.lineHeight,
3509
+ header4: theme.typography.types.headers.configs.header4.mediumAndWide.lineHeight,
3510
+ header5: theme.typography.types.headers.configs.header5.mediumAndWide.lineHeight,
3511
+ 'body-large': theme.typography.types.bodies.configs['body-large'].mediumAndWide.lineHeight,
3512
+ 'body-medium': theme.typography.types.bodies.configs['body-medium'].mediumAndWide.lineHeight,
3513
+ body: theme.typography.types.bodies.configs.body.mediumAndWide.lineHeight,
3514
+ 'body-small': theme.typography.types.bodies.configs['body-small'].mediumAndWide.lineHeight,
3515
+ 'body-xsmall': theme.typography.types.bodies.configs['body-xsmall'].mediumAndWide.lineHeight
3516
+ }
3517
+ },
3518
+ fontWeights: {
3519
+ headers: {
3520
+ regular: theme.typography.types.headers.fontWeight,
3521
+ bold: theme.typography.types.headers.fontWeight
3522
+ },
3523
+ bodies: theme.typography.types.bodies.fontWeight
3524
+ },
3525
+ fonts: {
3526
+ headers: theme.typography.types.headers.fontFamily,
3527
+ bodies: theme.typography.types.bodies.fontFamily
3528
+ },
3529
+ components: {
3530
+ Text: {
3531
+ baseStyle: {
3532
+ _light: {
3533
+ color: 'kitt.typography.black'
3534
+ },
3535
+ _dark: {
3536
+ color: 'kitt.typography.white'
3537
+ },
3538
+ fontFamily: theme.typography.types.bodies.fontFamily.regular,
3539
+ fontStyle: theme.typography.types.bodies.fontStyle.regular,
3540
+ fontWeight: theme.typography.types.bodies.fontWeight.regular,
3541
+ fontSize: undefined,
3542
+ lineHeight: theme.typography.types.bodies.configs.body.baseAndSmall.lineHeight
3543
+ }
3544
+ }
3545
+ }
3546
+ });
3547
+ };
3548
+ function KittNativeBaseProvider(_ref) {
3549
+ var theme = _ref.theme,
3550
+ isSSR = _ref.isSSR,
3551
+ children = _ref.children;
3552
+ var kittTheme = theme.kitt;
3553
+ var nativeBaseCustomTheme = useMemo(function () {
3554
+ return createKittNativeBaseCustomTheme(kittTheme);
3555
+ }, [kittTheme]);
3556
+ return /*#__PURE__*/jsx(NativeBaseProvider, {
3557
+ theme: nativeBaseCustomTheme,
3558
+ isSSR: isSSR,
3559
+ children: children
3560
+ });
3561
+ }
3562
+
3394
3563
  function Notification(_ref) {
3395
3564
  var type = _ref.type,
3396
3565
  children = _ref.children,
@@ -4680,143 +4849,6 @@ var hex2rgba = function (hex) {
4680
4849
  return "rgba(".concat(r, ", ").concat(g, ", ").concat(b, ", ").concat(alpha, ")");
4681
4850
  };
4682
4851
 
4683
- var createKittSpaces = function (spacing) {
4684
- var sizes = {};
4685
-
4686
- for (var size = 1; size <= 64; size++) {
4687
- sizes["kitt.".concat(size)] = size * spacing;
4688
- }
4689
-
4690
- return sizes;
4691
- }; // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/explicit-function-return-type -- let typescript infer types
4692
-
4693
-
4694
- var createKittNativeBaseCustomTheme = function (theme) {
4695
- var spaces = createKittSpaces(theme.spacing);
4696
- return extendTheme({
4697
- colors: {
4698
- kitt: _objectSpread(_objectSpread({}, theme.colors), {}, {
4699
- typography: theme.typography.colors
4700
- })
4701
- },
4702
- radii: {
4703
- 'kitt.borderRadius': theme.card.borderRadius
4704
- },
4705
- sizes: _objectSpread(_objectSpread({}, spaces), Object.fromEntries([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 16, 20, 24, 32, 40, 48, 56, 64, 78, 80, 96, 0.5, 1.5, 2.5, 3.5].map(function (value) {
4706
- return [value, value];
4707
- }))),
4708
- space: spaces,
4709
- breakpoints: {
4710
- // kitt breakpoints
4711
- base: KittBreakpoints.BASE,
4712
- small: KittBreakpoints.SMALL,
4713
- medium: KittBreakpoints.MEDIUM,
4714
- large: KittBreakpoints.LARGE,
4715
- wide: KittBreakpoints.WIDE,
4716
- // native base default naming
4717
- sm: Number.MAX_SAFE_INTEGER,
4718
- md: Number.MAX_SAFE_INTEGER,
4719
- lg: Number.MAX_SAFE_INTEGER,
4720
- xl: Number.MAX_SAFE_INTEGER,
4721
- '2xl': Number.MAX_SAFE_INTEGER
4722
- },
4723
- fontSizes: {
4724
- baseAndSmall: {
4725
- header1: "".concat(theme.typography.types.headers.configs.header1.baseAndSmall.fontSize, "px"),
4726
- header2: "".concat(theme.typography.types.headers.configs.header2.baseAndSmall.fontSize, "px"),
4727
- header3: "".concat(theme.typography.types.headers.configs.header3.baseAndSmall.fontSize, "px"),
4728
- header4: "".concat(theme.typography.types.headers.configs.header4.baseAndSmall.fontSize, "px"),
4729
- header5: "".concat(theme.typography.types.headers.configs.header5.baseAndSmall.fontSize, "px"),
4730
- 'body-large': "".concat(theme.typography.types.bodies.configs['body-large'].baseAndSmall.fontSize, "px"),
4731
- 'body-medium': "".concat(theme.typography.types.bodies.configs['body-medium'].baseAndSmall.fontSize, "px"),
4732
- body: "".concat(theme.typography.types.bodies.configs.body.baseAndSmall.fontSize, "px"),
4733
- 'body-small': "".concat(theme.typography.types.bodies.configs['body-small'].baseAndSmall.fontSize, "px"),
4734
- 'body-xsmall': "".concat(theme.typography.types.bodies.configs['body-xsmall'].baseAndSmall.fontSize, "px")
4735
- },
4736
- mediumAndWide: {
4737
- header1: "".concat(theme.typography.types.headers.configs.header1.mediumAndWide.fontSize, "px"),
4738
- header2: "".concat(theme.typography.types.headers.configs.header2.mediumAndWide.fontSize, "px"),
4739
- header3: "".concat(theme.typography.types.headers.configs.header3.mediumAndWide.fontSize, "px"),
4740
- header4: "".concat(theme.typography.types.headers.configs.header4.mediumAndWide.fontSize, "px"),
4741
- header5: "".concat(theme.typography.types.headers.configs.header5.mediumAndWide.fontSize, "px"),
4742
- 'body-large': "".concat(theme.typography.types.bodies.configs['body-large'].mediumAndWide.fontSize, "px"),
4743
- 'body-medium': "".concat(theme.typography.types.bodies.configs['body-medium'].mediumAndWide.fontSize, "px"),
4744
- body: "".concat(theme.typography.types.bodies.configs.body.mediumAndWide.fontSize, "px"),
4745
- 'body-small': "".concat(theme.typography.types.bodies.configs['body-small'].mediumAndWide.fontSize, "px"),
4746
- 'body-xsmall': "".concat(theme.typography.types.bodies.configs['body-xsmall'].mediumAndWide.fontSize, "px")
4747
- }
4748
- },
4749
- lineHeights: {
4750
- baseAndSmall: {
4751
- header1: theme.typography.types.headers.configs.header1.baseAndSmall.lineHeight,
4752
- header2: theme.typography.types.headers.configs.header2.baseAndSmall.lineHeight,
4753
- header3: theme.typography.types.headers.configs.header3.baseAndSmall.lineHeight,
4754
- header4: theme.typography.types.headers.configs.header4.baseAndSmall.lineHeight,
4755
- header5: theme.typography.types.headers.configs.header5.baseAndSmall.lineHeight,
4756
- 'body-large': theme.typography.types.bodies.configs['body-large'].baseAndSmall.lineHeight,
4757
- 'body-medium': theme.typography.types.bodies.configs['body-medium'].baseAndSmall.lineHeight,
4758
- body: theme.typography.types.bodies.configs.body.baseAndSmall.lineHeight,
4759
- 'body-small': theme.typography.types.bodies.configs['body-small'].baseAndSmall.lineHeight,
4760
- 'body-xsmall': theme.typography.types.bodies.configs['body-xsmall'].baseAndSmall.lineHeight
4761
- },
4762
- mediumAndWide: {
4763
- header1: theme.typography.types.headers.configs.header1.mediumAndWide.lineHeight,
4764
- header2: theme.typography.types.headers.configs.header2.mediumAndWide.lineHeight,
4765
- header3: theme.typography.types.headers.configs.header3.mediumAndWide.lineHeight,
4766
- header4: theme.typography.types.headers.configs.header4.mediumAndWide.lineHeight,
4767
- header5: theme.typography.types.headers.configs.header5.mediumAndWide.lineHeight,
4768
- 'body-large': theme.typography.types.bodies.configs['body-large'].mediumAndWide.lineHeight,
4769
- 'body-medium': theme.typography.types.bodies.configs['body-medium'].mediumAndWide.lineHeight,
4770
- body: theme.typography.types.bodies.configs.body.mediumAndWide.lineHeight,
4771
- 'body-small': theme.typography.types.bodies.configs['body-small'].mediumAndWide.lineHeight,
4772
- 'body-xsmall': theme.typography.types.bodies.configs['body-xsmall'].mediumAndWide.lineHeight
4773
- }
4774
- },
4775
- fontWeights: {
4776
- headers: {
4777
- regular: theme.typography.types.headers.fontWeight,
4778
- bold: theme.typography.types.headers.fontWeight
4779
- },
4780
- bodies: theme.typography.types.bodies.fontWeight
4781
- },
4782
- fonts: {
4783
- headers: theme.typography.types.headers.fontFamily,
4784
- bodies: theme.typography.types.bodies.fontFamily
4785
- },
4786
- components: {
4787
- Text: {
4788
- baseStyle: {
4789
- _light: {
4790
- color: 'kitt.typography.black'
4791
- },
4792
- _dark: {
4793
- color: 'kitt.typography.white'
4794
- },
4795
- fontFamily: theme.typography.types.bodies.fontFamily.regular,
4796
- fontStyle: theme.typography.types.bodies.fontStyle.regular,
4797
- fontWeight: theme.typography.types.bodies.fontWeight.regular,
4798
- fontSize: undefined,
4799
- lineHeight: theme.typography.types.bodies.configs.body.baseAndSmall.lineHeight
4800
- }
4801
- }
4802
- }
4803
- });
4804
- };
4805
- function KittNativeBaseProvider(_ref) {
4806
- var theme = _ref.theme,
4807
- isSSR = _ref.isSSR,
4808
- children = _ref.children;
4809
- var kittTheme = theme.kitt;
4810
- var nativeBaseCustomTheme = useMemo(function () {
4811
- return createKittNativeBaseCustomTheme(kittTheme);
4812
- }, [kittTheme]);
4813
- return /*#__PURE__*/jsx(NativeBaseProvider, {
4814
- theme: nativeBaseCustomTheme,
4815
- isSSR: isSSR,
4816
- children: children
4817
- });
4818
- }
4819
-
4820
4852
  function KittThemeProvider(_ref) {
4821
4853
  var isSSR = _ref.isSSR,
4822
4854
  children = _ref.children;
@@ -4878,5 +4910,5 @@ function withTheme(WrappedComponent) {
4878
4910
  });
4879
4911
  }
4880
4912
 
4881
- export { Avatar, Button, Card, Checkbox, DatePicker, Emoji, ExternalAppLink, ExternalLink, Flex, FullScreenModal, Icon, IconButton, InputEmail, InputFeedback, InputField, InputIcon, InputPassword, InputPhone, InputPressable, InputTag, InputText, KittBreakpoints, KittBreakpointsMax, KittThemeDecorator, KittThemeProvider, Label, ListItem, LoaderIcon, MatchWindowSize, Message, Modal, Notification, Overlay, PageLoader, Picker, Radio, DeprecatedSection as Section, Skeleton, SpinningIcon, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, StyleWebWrapper, Tag, TextArea, TimePicker, Tooltip, Typography, TypographyEmoji, TypographyIcon, TypographyLink, createWindowSizeHelper, hex2rgba, matchWindowSize, styledTextInputMixin, theme, useKittTheme, useMatchWindowSize, useStoryBlockColor, withTheme };
4913
+ export { Avatar, Button, Card, Checkbox, DatePicker, Emoji, ExternalAppLink, ExternalLink, Flex, FullScreenModal, Icon, IconButton, InputEmail, InputFeedback, InputField, InputIcon, InputPassword, InputPhone, InputPressable, InputTag, InputText, KittBreakpoints, KittBreakpointsMax, KittNativeBaseProvider, KittThemeDecorator, KittThemeProvider, Label, ListItem, LoaderIcon, MatchWindowSize, Message, Modal, Notification, Overlay, PageLoader, Picker, Radio, DeprecatedSection as Section, Skeleton, SpinningIcon, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, StyleWebWrapper, Tag, TextArea, TimePicker, Tooltip, Typography, TypographyEmoji, TypographyIcon, TypographyLink, createWindowSizeHelper, hex2rgba, matchWindowSize, styledTextInputMixin, theme, useKittTheme, useMatchWindowSize, useStoryBlockColor, withTheme };
4882
4914
  //# sourceMappingURL=index-browser-all.es.ios.js.map