@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
@@ -342,6 +342,19 @@ function Avatar(_ref6) {
342
342
  });
343
343
  }
344
344
 
345
+ function warn(message) {
346
+ if (process.env.NODE_ENV !== 'production') {
347
+ console.warn(message);
348
+ }
349
+ }
350
+ function deprecatedMessage(symbol, deprecation, replaceBy) {
351
+ var replaceMessage = replaceBy === undefined ? '' : ", please use ".concat(replaceBy, " instead");
352
+ warn("[Deprecation] in ".concat(symbol, ": ").concat(deprecation, " is deprecated").concat(replaceMessage, "."));
353
+ }
354
+ function deprecatedInComponent(component, deprecation, replaceBy) {
355
+ deprecatedMessage("<".concat(component, " />"), deprecation, replaceBy);
356
+ }
357
+
345
358
  // type $Without<T, K extends keyof any> = T extends any ? Pick<T, Exclude<keyof T, K>> : never;
346
359
  // type $DeepPartial<T> = { [P in keyof T]?: $DeepPartial<T[P]> };
347
360
  // export function withTheme<Props extends { theme: DefaultTheme }, C>(
@@ -537,16 +550,15 @@ var BaseStyledButtonPressable = /*#__PURE__*/styled(View).withConfig({
537
550
  return getVariantValuesIfExist(theme, $type, $variant).backgroundColor;
538
551
  }, function (_ref7) {
539
552
  var theme = _ref7.theme,
540
- $isLarge = _ref7.$isLarge,
541
- $isXLarge = _ref7.$isXLarge,
553
+ $size = _ref7.$size,
542
554
  $isDisabled = _ref7.$isDisabled;
543
555
  var _theme$kitt$button$co = theme.kitt.button.contentPadding,
544
556
  large = _theme$kitt$button$co.large,
545
557
  defaultPadding = _theme$kitt$button$co["default"],
546
558
  disabledPadding = _theme$kitt$button$co.disabled,
547
559
  xLarge = _theme$kitt$button$co.xLarge;
548
- if ($isXLarge) return xLarge;
549
- if ($isLarge) return large;
560
+ if ($size === 'large') return large;
561
+ if ($size === 'xlarge') return xLarge;
550
562
  if ($isDisabled) return disabledPadding;
551
563
  return defaultPadding;
552
564
  });
@@ -745,30 +757,51 @@ function ButtonContent(_ref7) {
745
757
  }
746
758
 
747
759
  var allowedGhostTypes = ['primary', 'default'];
748
- var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
749
- var children = _ref.children,
750
- _ref$type = _ref.type,
751
- type = _ref$type === void 0 ? 'default' : _ref$type,
752
- _ref$variant = _ref.variant,
753
- variant = _ref$variant === void 0 ? 'default' : _ref$variant,
754
- disabled = _ref.disabled,
755
- stretch = _ref.stretch,
756
- large = _ref.large,
760
+
761
+ var getButtonSize = function (_ref) {
762
+ var large = _ref.large,
757
763
  xLarge = _ref.xLarge,
758
- icon = _ref.icon,
759
- _ref$iconPosition = _ref.iconPosition,
760
- iconPosition = _ref$iconPosition === void 0 ? 'left' : _ref$iconPosition,
761
- testID = _ref.testID,
762
- href = _ref.href,
763
- hrefAttrs = _ref.hrefAttrs,
764
- _ref$accessibilityRol = _ref.accessibilityRole,
765
- accessibilityRole = _ref$accessibilityRol === void 0 ? 'button' : _ref$accessibilityRol,
766
- onPress = _ref.onPress;
764
+ size = _ref.size;
765
+ if (large) return 'large';
766
+ if (xLarge) return 'xlarge';
767
+ return size;
768
+ };
769
+
770
+ var Button = /*#__PURE__*/forwardRef(function (_ref2, ref) {
771
+ var children = _ref2.children,
772
+ _ref2$type = _ref2.type,
773
+ type = _ref2$type === void 0 ? 'default' : _ref2$type,
774
+ _ref2$variant = _ref2.variant,
775
+ variant = _ref2$variant === void 0 ? 'default' : _ref2$variant,
776
+ disabled = _ref2.disabled,
777
+ stretch = _ref2.stretch,
778
+ large = _ref2.large,
779
+ xLarge = _ref2.xLarge,
780
+ icon = _ref2.icon,
781
+ sizeProp = _ref2.size,
782
+ _ref2$iconPosition = _ref2.iconPosition,
783
+ iconPosition = _ref2$iconPosition === void 0 ? 'left' : _ref2$iconPosition,
784
+ testID = _ref2.testID,
785
+ href = _ref2.href,
786
+ hrefAttrs = _ref2.hrefAttrs,
787
+ _ref2$accessibilityRo = _ref2.accessibilityRole,
788
+ accessibilityRole = _ref2$accessibilityRo === void 0 ? 'button' : _ref2$accessibilityRo,
789
+ onPress = _ref2.onPress;
767
790
 
768
791
  if ((process.env.NODE_ENV !== "production") && variant === 'ghost' && !allowedGhostTypes.includes(type)) {
769
792
  throw new Error('variant=ghost is only allowed with type=primary or default');
770
793
  }
771
794
 
795
+ if (large || xLarge) {
796
+ var deprecatedProp = large ? 'large' : 'xLarge';
797
+ deprecatedInComponent('Button', "".concat(deprecatedProp, " prop"), 'size');
798
+ }
799
+
800
+ var size = getButtonSize({
801
+ large: large,
802
+ xLarge: xLarge,
803
+ size: sizeProp
804
+ });
772
805
  return /*#__PURE__*/jsx(AnimatedButtonPressable, {
773
806
  ref: ref,
774
807
  accessibilityRole: accessibilityRole,
@@ -784,8 +817,7 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
784
817
  $type: type,
785
818
  $variant: variant,
786
819
  $isStretch: stretch,
787
- $isLarge: large,
788
- $isXLarge: xLarge,
820
+ $size: size,
789
821
  $isDisabled: disabled,
790
822
  children: [/*#__PURE__*/jsx(ButtonContent, {
791
823
  type: type,
@@ -3161,6 +3193,143 @@ Modal.Header = ModalHeader;
3161
3193
  Modal.Body = ModalBody;
3162
3194
  Modal.Footer = ModalFooter;
3163
3195
 
3196
+ var createKittSpaces = function (spacing) {
3197
+ var sizes = {};
3198
+
3199
+ for (var size = 1; size <= 64; size++) {
3200
+ sizes["kitt.".concat(size)] = size * spacing;
3201
+ }
3202
+
3203
+ return sizes;
3204
+ }; // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/explicit-function-return-type -- let typescript infer types
3205
+
3206
+
3207
+ var createKittNativeBaseCustomTheme = function (theme) {
3208
+ var spaces = createKittSpaces(theme.spacing);
3209
+ return extendTheme({
3210
+ colors: {
3211
+ kitt: _objectSpread(_objectSpread({}, theme.colors), {}, {
3212
+ typography: theme.typography.colors
3213
+ })
3214
+ },
3215
+ radii: {
3216
+ 'kitt.borderRadius': theme.card.borderRadius
3217
+ },
3218
+ 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) {
3219
+ return [value, value];
3220
+ }))),
3221
+ space: spaces,
3222
+ breakpoints: {
3223
+ // kitt breakpoints
3224
+ base: KittBreakpoints.BASE,
3225
+ small: KittBreakpoints.SMALL,
3226
+ medium: KittBreakpoints.MEDIUM,
3227
+ large: KittBreakpoints.LARGE,
3228
+ wide: KittBreakpoints.WIDE,
3229
+ // native base default naming
3230
+ sm: Number.MAX_SAFE_INTEGER,
3231
+ md: Number.MAX_SAFE_INTEGER,
3232
+ lg: Number.MAX_SAFE_INTEGER,
3233
+ xl: Number.MAX_SAFE_INTEGER,
3234
+ '2xl': Number.MAX_SAFE_INTEGER
3235
+ },
3236
+ fontSizes: {
3237
+ baseAndSmall: {
3238
+ header1: "".concat(theme.typography.types.headers.configs.header1.baseAndSmall.fontSize, "px"),
3239
+ header2: "".concat(theme.typography.types.headers.configs.header2.baseAndSmall.fontSize, "px"),
3240
+ header3: "".concat(theme.typography.types.headers.configs.header3.baseAndSmall.fontSize, "px"),
3241
+ header4: "".concat(theme.typography.types.headers.configs.header4.baseAndSmall.fontSize, "px"),
3242
+ header5: "".concat(theme.typography.types.headers.configs.header5.baseAndSmall.fontSize, "px"),
3243
+ 'body-large': "".concat(theme.typography.types.bodies.configs['body-large'].baseAndSmall.fontSize, "px"),
3244
+ 'body-medium': "".concat(theme.typography.types.bodies.configs['body-medium'].baseAndSmall.fontSize, "px"),
3245
+ body: "".concat(theme.typography.types.bodies.configs.body.baseAndSmall.fontSize, "px"),
3246
+ 'body-small': "".concat(theme.typography.types.bodies.configs['body-small'].baseAndSmall.fontSize, "px"),
3247
+ 'body-xsmall': "".concat(theme.typography.types.bodies.configs['body-xsmall'].baseAndSmall.fontSize, "px")
3248
+ },
3249
+ mediumAndWide: {
3250
+ header1: "".concat(theme.typography.types.headers.configs.header1.mediumAndWide.fontSize, "px"),
3251
+ header2: "".concat(theme.typography.types.headers.configs.header2.mediumAndWide.fontSize, "px"),
3252
+ header3: "".concat(theme.typography.types.headers.configs.header3.mediumAndWide.fontSize, "px"),
3253
+ header4: "".concat(theme.typography.types.headers.configs.header4.mediumAndWide.fontSize, "px"),
3254
+ header5: "".concat(theme.typography.types.headers.configs.header5.mediumAndWide.fontSize, "px"),
3255
+ 'body-large': "".concat(theme.typography.types.bodies.configs['body-large'].mediumAndWide.fontSize, "px"),
3256
+ 'body-medium': "".concat(theme.typography.types.bodies.configs['body-medium'].mediumAndWide.fontSize, "px"),
3257
+ body: "".concat(theme.typography.types.bodies.configs.body.mediumAndWide.fontSize, "px"),
3258
+ 'body-small': "".concat(theme.typography.types.bodies.configs['body-small'].mediumAndWide.fontSize, "px"),
3259
+ 'body-xsmall': "".concat(theme.typography.types.bodies.configs['body-xsmall'].mediumAndWide.fontSize, "px")
3260
+ }
3261
+ },
3262
+ lineHeights: {
3263
+ baseAndSmall: {
3264
+ header1: theme.typography.types.headers.configs.header1.baseAndSmall.lineHeight,
3265
+ header2: theme.typography.types.headers.configs.header2.baseAndSmall.lineHeight,
3266
+ header3: theme.typography.types.headers.configs.header3.baseAndSmall.lineHeight,
3267
+ header4: theme.typography.types.headers.configs.header4.baseAndSmall.lineHeight,
3268
+ header5: theme.typography.types.headers.configs.header5.baseAndSmall.lineHeight,
3269
+ 'body-large': theme.typography.types.bodies.configs['body-large'].baseAndSmall.lineHeight,
3270
+ 'body-medium': theme.typography.types.bodies.configs['body-medium'].baseAndSmall.lineHeight,
3271
+ body: theme.typography.types.bodies.configs.body.baseAndSmall.lineHeight,
3272
+ 'body-small': theme.typography.types.bodies.configs['body-small'].baseAndSmall.lineHeight,
3273
+ 'body-xsmall': theme.typography.types.bodies.configs['body-xsmall'].baseAndSmall.lineHeight
3274
+ },
3275
+ mediumAndWide: {
3276
+ header1: theme.typography.types.headers.configs.header1.mediumAndWide.lineHeight,
3277
+ header2: theme.typography.types.headers.configs.header2.mediumAndWide.lineHeight,
3278
+ header3: theme.typography.types.headers.configs.header3.mediumAndWide.lineHeight,
3279
+ header4: theme.typography.types.headers.configs.header4.mediumAndWide.lineHeight,
3280
+ header5: theme.typography.types.headers.configs.header5.mediumAndWide.lineHeight,
3281
+ 'body-large': theme.typography.types.bodies.configs['body-large'].mediumAndWide.lineHeight,
3282
+ 'body-medium': theme.typography.types.bodies.configs['body-medium'].mediumAndWide.lineHeight,
3283
+ body: theme.typography.types.bodies.configs.body.mediumAndWide.lineHeight,
3284
+ 'body-small': theme.typography.types.bodies.configs['body-small'].mediumAndWide.lineHeight,
3285
+ 'body-xsmall': theme.typography.types.bodies.configs['body-xsmall'].mediumAndWide.lineHeight
3286
+ }
3287
+ },
3288
+ fontWeights: {
3289
+ headers: {
3290
+ regular: theme.typography.types.headers.fontWeight,
3291
+ bold: theme.typography.types.headers.fontWeight
3292
+ },
3293
+ bodies: theme.typography.types.bodies.fontWeight
3294
+ },
3295
+ fonts: {
3296
+ headers: theme.typography.types.headers.fontFamily,
3297
+ bodies: theme.typography.types.bodies.fontFamily
3298
+ },
3299
+ components: {
3300
+ Text: {
3301
+ baseStyle: {
3302
+ _light: {
3303
+ color: 'kitt.typography.black'
3304
+ },
3305
+ _dark: {
3306
+ color: 'kitt.typography.white'
3307
+ },
3308
+ fontFamily: theme.typography.types.bodies.fontFamily.regular,
3309
+ fontStyle: theme.typography.types.bodies.fontStyle.regular,
3310
+ fontWeight: theme.typography.types.bodies.fontWeight.regular,
3311
+ fontSize: undefined,
3312
+ lineHeight: theme.typography.types.bodies.configs.body.baseAndSmall.lineHeight
3313
+ }
3314
+ }
3315
+ }
3316
+ });
3317
+ };
3318
+ function KittNativeBaseProvider(_ref) {
3319
+ var theme = _ref.theme,
3320
+ isSSR = _ref.isSSR,
3321
+ children = _ref.children;
3322
+ var kittTheme = theme.kitt;
3323
+ var nativeBaseCustomTheme = useMemo(function () {
3324
+ return createKittNativeBaseCustomTheme(kittTheme);
3325
+ }, [kittTheme]);
3326
+ return /*#__PURE__*/jsx(NativeBaseProvider, {
3327
+ theme: nativeBaseCustomTheme,
3328
+ isSSR: isSSR,
3329
+ children: children
3330
+ });
3331
+ }
3332
+
3164
3333
  function Notification(_ref) {
3165
3334
  var type = _ref.type,
3166
3335
  children = _ref.children,
@@ -4156,143 +4325,6 @@ var hex2rgba = function (hex) {
4156
4325
  return "rgba(".concat(r, ", ").concat(g, ", ").concat(b, ", ").concat(alpha, ")");
4157
4326
  };
4158
4327
 
4159
- var createKittSpaces = function (spacing) {
4160
- var sizes = {};
4161
-
4162
- for (var size = 1; size <= 64; size++) {
4163
- sizes["kitt.".concat(size)] = size * spacing;
4164
- }
4165
-
4166
- return sizes;
4167
- }; // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/explicit-function-return-type -- let typescript infer types
4168
-
4169
-
4170
- var createKittNativeBaseCustomTheme = function (theme) {
4171
- var spaces = createKittSpaces(theme.spacing);
4172
- return extendTheme({
4173
- colors: {
4174
- kitt: _objectSpread(_objectSpread({}, theme.colors), {}, {
4175
- typography: theme.typography.colors
4176
- })
4177
- },
4178
- radii: {
4179
- 'kitt.borderRadius': theme.card.borderRadius
4180
- },
4181
- 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) {
4182
- return [value, value];
4183
- }))),
4184
- space: spaces,
4185
- breakpoints: {
4186
- // kitt breakpoints
4187
- base: KittBreakpoints.BASE,
4188
- small: KittBreakpoints.SMALL,
4189
- medium: KittBreakpoints.MEDIUM,
4190
- large: KittBreakpoints.LARGE,
4191
- wide: KittBreakpoints.WIDE,
4192
- // native base default naming
4193
- sm: Number.MAX_SAFE_INTEGER,
4194
- md: Number.MAX_SAFE_INTEGER,
4195
- lg: Number.MAX_SAFE_INTEGER,
4196
- xl: Number.MAX_SAFE_INTEGER,
4197
- '2xl': Number.MAX_SAFE_INTEGER
4198
- },
4199
- fontSizes: {
4200
- baseAndSmall: {
4201
- header1: "".concat(theme.typography.types.headers.configs.header1.baseAndSmall.fontSize, "px"),
4202
- header2: "".concat(theme.typography.types.headers.configs.header2.baseAndSmall.fontSize, "px"),
4203
- header3: "".concat(theme.typography.types.headers.configs.header3.baseAndSmall.fontSize, "px"),
4204
- header4: "".concat(theme.typography.types.headers.configs.header4.baseAndSmall.fontSize, "px"),
4205
- header5: "".concat(theme.typography.types.headers.configs.header5.baseAndSmall.fontSize, "px"),
4206
- 'body-large': "".concat(theme.typography.types.bodies.configs['body-large'].baseAndSmall.fontSize, "px"),
4207
- 'body-medium': "".concat(theme.typography.types.bodies.configs['body-medium'].baseAndSmall.fontSize, "px"),
4208
- body: "".concat(theme.typography.types.bodies.configs.body.baseAndSmall.fontSize, "px"),
4209
- 'body-small': "".concat(theme.typography.types.bodies.configs['body-small'].baseAndSmall.fontSize, "px"),
4210
- 'body-xsmall': "".concat(theme.typography.types.bodies.configs['body-xsmall'].baseAndSmall.fontSize, "px")
4211
- },
4212
- mediumAndWide: {
4213
- header1: "".concat(theme.typography.types.headers.configs.header1.mediumAndWide.fontSize, "px"),
4214
- header2: "".concat(theme.typography.types.headers.configs.header2.mediumAndWide.fontSize, "px"),
4215
- header3: "".concat(theme.typography.types.headers.configs.header3.mediumAndWide.fontSize, "px"),
4216
- header4: "".concat(theme.typography.types.headers.configs.header4.mediumAndWide.fontSize, "px"),
4217
- header5: "".concat(theme.typography.types.headers.configs.header5.mediumAndWide.fontSize, "px"),
4218
- 'body-large': "".concat(theme.typography.types.bodies.configs['body-large'].mediumAndWide.fontSize, "px"),
4219
- 'body-medium': "".concat(theme.typography.types.bodies.configs['body-medium'].mediumAndWide.fontSize, "px"),
4220
- body: "".concat(theme.typography.types.bodies.configs.body.mediumAndWide.fontSize, "px"),
4221
- 'body-small': "".concat(theme.typography.types.bodies.configs['body-small'].mediumAndWide.fontSize, "px"),
4222
- 'body-xsmall': "".concat(theme.typography.types.bodies.configs['body-xsmall'].mediumAndWide.fontSize, "px")
4223
- }
4224
- },
4225
- lineHeights: {
4226
- baseAndSmall: {
4227
- header1: theme.typography.types.headers.configs.header1.baseAndSmall.lineHeight,
4228
- header2: theme.typography.types.headers.configs.header2.baseAndSmall.lineHeight,
4229
- header3: theme.typography.types.headers.configs.header3.baseAndSmall.lineHeight,
4230
- header4: theme.typography.types.headers.configs.header4.baseAndSmall.lineHeight,
4231
- header5: theme.typography.types.headers.configs.header5.baseAndSmall.lineHeight,
4232
- 'body-large': theme.typography.types.bodies.configs['body-large'].baseAndSmall.lineHeight,
4233
- 'body-medium': theme.typography.types.bodies.configs['body-medium'].baseAndSmall.lineHeight,
4234
- body: theme.typography.types.bodies.configs.body.baseAndSmall.lineHeight,
4235
- 'body-small': theme.typography.types.bodies.configs['body-small'].baseAndSmall.lineHeight,
4236
- 'body-xsmall': theme.typography.types.bodies.configs['body-xsmall'].baseAndSmall.lineHeight
4237
- },
4238
- mediumAndWide: {
4239
- header1: theme.typography.types.headers.configs.header1.mediumAndWide.lineHeight,
4240
- header2: theme.typography.types.headers.configs.header2.mediumAndWide.lineHeight,
4241
- header3: theme.typography.types.headers.configs.header3.mediumAndWide.lineHeight,
4242
- header4: theme.typography.types.headers.configs.header4.mediumAndWide.lineHeight,
4243
- header5: theme.typography.types.headers.configs.header5.mediumAndWide.lineHeight,
4244
- 'body-large': theme.typography.types.bodies.configs['body-large'].mediumAndWide.lineHeight,
4245
- 'body-medium': theme.typography.types.bodies.configs['body-medium'].mediumAndWide.lineHeight,
4246
- body: theme.typography.types.bodies.configs.body.mediumAndWide.lineHeight,
4247
- 'body-small': theme.typography.types.bodies.configs['body-small'].mediumAndWide.lineHeight,
4248
- 'body-xsmall': theme.typography.types.bodies.configs['body-xsmall'].mediumAndWide.lineHeight
4249
- }
4250
- },
4251
- fontWeights: {
4252
- headers: {
4253
- regular: theme.typography.types.headers.fontWeight,
4254
- bold: theme.typography.types.headers.fontWeight
4255
- },
4256
- bodies: theme.typography.types.bodies.fontWeight
4257
- },
4258
- fonts: {
4259
- headers: theme.typography.types.headers.fontFamily,
4260
- bodies: theme.typography.types.bodies.fontFamily
4261
- },
4262
- components: {
4263
- Text: {
4264
- baseStyle: {
4265
- _light: {
4266
- color: 'kitt.typography.black'
4267
- },
4268
- _dark: {
4269
- color: 'kitt.typography.white'
4270
- },
4271
- fontFamily: theme.typography.types.bodies.fontFamily.regular,
4272
- fontStyle: theme.typography.types.bodies.fontStyle.regular,
4273
- fontWeight: theme.typography.types.bodies.fontWeight.regular,
4274
- fontSize: undefined,
4275
- lineHeight: theme.typography.types.bodies.configs.body.baseAndSmall.lineHeight
4276
- }
4277
- }
4278
- }
4279
- });
4280
- };
4281
- function KittNativeBaseProvider(_ref) {
4282
- var theme = _ref.theme,
4283
- isSSR = _ref.isSSR,
4284
- children = _ref.children;
4285
- var kittTheme = theme.kitt;
4286
- var nativeBaseCustomTheme = useMemo(function () {
4287
- return createKittNativeBaseCustomTheme(kittTheme);
4288
- }, [kittTheme]);
4289
- return /*#__PURE__*/jsx(NativeBaseProvider, {
4290
- theme: nativeBaseCustomTheme,
4291
- isSSR: isSSR,
4292
- children: children
4293
- });
4294
- }
4295
-
4296
4328
  function KittThemeProvider(_ref) {
4297
4329
  var isSSR = _ref.isSSR,
4298
4330
  children = _ref.children;
@@ -4333,5 +4365,5 @@ function MatchWindowSize(_ref) {
4333
4365
  return children;
4334
4366
  }
4335
4367
 
4336
- 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 };
4368
+ 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 };
4337
4369
  //# sourceMappingURL=index-browser-all.es.web.js.map