@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.
- package/dist/definitions/Button/BaseStyledButtonPressable.d.ts +2 -3
- package/dist/definitions/Button/BaseStyledButtonPressable.d.ts.map +1 -1
- package/dist/definitions/Button/Button.d.ts +8 -0
- package/dist/definitions/Button/Button.d.ts.map +1 -1
- package/dist/definitions/index.d.ts +2 -0
- package/dist/definitions/index.d.ts.map +1 -1
- package/dist/definitions/utils/warnings.d.ts +4 -0
- package/dist/definitions/utils/warnings.d.ts.map +1 -0
- package/dist/index-browser-all.es.android.js +195 -163
- package/dist/index-browser-all.es.android.js.map +1 -1
- package/dist/index-browser-all.es.ios.js +195 -163
- package/dist/index-browser-all.es.ios.js.map +1 -1
- package/dist/index-browser-all.es.js +195 -163
- package/dist/index-browser-all.es.js.map +1 -1
- package/dist/index-browser-all.es.web.js +194 -162
- package/dist/index-browser-all.es.web.js.map +1 -1
- package/dist/index-node-14.17.cjs.js +179 -145
- package/dist/index-node-14.17.cjs.js.map +1 -1
- package/dist/index-node-14.17.cjs.web.js +178 -144
- package/dist/index-node-14.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.android.js +1 -1
- package/dist/linaria-themes-browser-all.es.android.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.ios.js +1 -1
- package/dist/linaria-themes-browser-all.es.ios.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.js +1 -1
- package/dist/linaria-themes-browser-all.es.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.web.js.map +1 -1
- package/dist/linaria-themes-node-14.17.cjs.js +1 -1
- package/dist/linaria-themes-node-14.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-14.17.cjs.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +4 -4
|
@@ -346,6 +346,19 @@ function Avatar(_ref6) {
|
|
|
346
346
|
});
|
|
347
347
|
}
|
|
348
348
|
|
|
349
|
+
function warn(message) {
|
|
350
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
351
|
+
console.warn(message);
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
function deprecatedMessage(symbol, deprecation, replaceBy) {
|
|
355
|
+
var replaceMessage = replaceBy === undefined ? '' : ", please use ".concat(replaceBy, " instead");
|
|
356
|
+
warn("[Deprecation] in ".concat(symbol, ": ").concat(deprecation, " is deprecated").concat(replaceMessage, "."));
|
|
357
|
+
}
|
|
358
|
+
function deprecatedInComponent(component, deprecation, replaceBy) {
|
|
359
|
+
deprecatedMessage("<".concat(component, " />"), deprecation, replaceBy);
|
|
360
|
+
}
|
|
361
|
+
|
|
349
362
|
var hasVariant = function (button, variant) {
|
|
350
363
|
return variant in button;
|
|
351
364
|
};
|
|
@@ -484,16 +497,15 @@ var BaseStyledButtonPressable = /*#__PURE__*/styled.View.withConfig({
|
|
|
484
497
|
return getVariantValuesIfExist(theme, $type, $variant).backgroundColor;
|
|
485
498
|
}, function (_ref7) {
|
|
486
499
|
var theme = _ref7.theme,
|
|
487
|
-
$
|
|
488
|
-
$isXLarge = _ref7.$isXLarge,
|
|
500
|
+
$size = _ref7.$size,
|
|
489
501
|
$isDisabled = _ref7.$isDisabled;
|
|
490
502
|
var _theme$kitt$button$co = theme.kitt.button.contentPadding,
|
|
491
503
|
large = _theme$kitt$button$co.large,
|
|
492
504
|
defaultPadding = _theme$kitt$button$co["default"],
|
|
493
505
|
disabledPadding = _theme$kitt$button$co.disabled,
|
|
494
506
|
xLarge = _theme$kitt$button$co.xLarge;
|
|
495
|
-
if ($
|
|
496
|
-
if ($
|
|
507
|
+
if ($size === 'large') return large;
|
|
508
|
+
if ($size === 'xlarge') return xLarge;
|
|
497
509
|
if ($isDisabled) return disabledPadding;
|
|
498
510
|
return defaultPadding;
|
|
499
511
|
});
|
|
@@ -709,30 +721,51 @@ var StyledDisabled = /*#__PURE__*/styled.View.withConfig({
|
|
|
709
721
|
});
|
|
710
722
|
|
|
711
723
|
var allowedGhostTypes = ['primary', 'default'];
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
type = _ref$type === void 0 ? 'default' : _ref$type,
|
|
716
|
-
_ref$variant = _ref.variant,
|
|
717
|
-
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
718
|
-
disabled = _ref.disabled,
|
|
719
|
-
stretch = _ref.stretch,
|
|
720
|
-
large = _ref.large,
|
|
724
|
+
|
|
725
|
+
var getButtonSize = function (_ref) {
|
|
726
|
+
var large = _ref.large,
|
|
721
727
|
xLarge = _ref.xLarge,
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
728
|
+
size = _ref.size;
|
|
729
|
+
if (large) return 'large';
|
|
730
|
+
if (xLarge) return 'xlarge';
|
|
731
|
+
return size;
|
|
732
|
+
};
|
|
733
|
+
|
|
734
|
+
var Button = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
735
|
+
var children = _ref2.children,
|
|
736
|
+
_ref2$type = _ref2.type,
|
|
737
|
+
type = _ref2$type === void 0 ? 'default' : _ref2$type,
|
|
738
|
+
_ref2$variant = _ref2.variant,
|
|
739
|
+
variant = _ref2$variant === void 0 ? 'default' : _ref2$variant,
|
|
740
|
+
disabled = _ref2.disabled,
|
|
741
|
+
stretch = _ref2.stretch,
|
|
742
|
+
large = _ref2.large,
|
|
743
|
+
xLarge = _ref2.xLarge,
|
|
744
|
+
icon = _ref2.icon,
|
|
745
|
+
sizeProp = _ref2.size,
|
|
746
|
+
_ref2$iconPosition = _ref2.iconPosition,
|
|
747
|
+
iconPosition = _ref2$iconPosition === void 0 ? 'left' : _ref2$iconPosition,
|
|
748
|
+
testID = _ref2.testID,
|
|
749
|
+
href = _ref2.href,
|
|
750
|
+
hrefAttrs = _ref2.hrefAttrs,
|
|
751
|
+
_ref2$accessibilityRo = _ref2.accessibilityRole,
|
|
752
|
+
accessibilityRole = _ref2$accessibilityRo === void 0 ? 'button' : _ref2$accessibilityRo,
|
|
753
|
+
onPress = _ref2.onPress;
|
|
731
754
|
|
|
732
755
|
if ((process.env.NODE_ENV !== "production") && variant === 'ghost' && !allowedGhostTypes.includes(type)) {
|
|
733
756
|
throw new Error('variant=ghost is only allowed with type=primary or default');
|
|
734
757
|
}
|
|
735
758
|
|
|
759
|
+
if (large || xLarge) {
|
|
760
|
+
var deprecatedProp = large ? 'large' : 'xLarge';
|
|
761
|
+
deprecatedInComponent('Button', "".concat(deprecatedProp, " prop"), 'size');
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
var size = getButtonSize({
|
|
765
|
+
large: large,
|
|
766
|
+
xLarge: xLarge,
|
|
767
|
+
size: sizeProp
|
|
768
|
+
});
|
|
736
769
|
return /*#__PURE__*/jsx(AnimatedButtonPressable, {
|
|
737
770
|
ref: ref,
|
|
738
771
|
accessibilityRole: accessibilityRole,
|
|
@@ -748,8 +781,7 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
748
781
|
$type: type,
|
|
749
782
|
$variant: variant,
|
|
750
783
|
$isStretch: stretch,
|
|
751
|
-
$
|
|
752
|
-
$isXLarge: xLarge,
|
|
784
|
+
$size: size,
|
|
753
785
|
$isDisabled: disabled,
|
|
754
786
|
children: [/*#__PURE__*/jsx(ButtonContent, {
|
|
755
787
|
type: type,
|
|
@@ -1274,7 +1306,7 @@ var typography = {
|
|
|
1274
1306
|
},
|
|
1275
1307
|
fontWeight: {
|
|
1276
1308
|
regular: 400,
|
|
1277
|
-
bold: 700
|
|
1309
|
+
bold: Platform.OS === 'web' ? 700 : 400
|
|
1278
1310
|
},
|
|
1279
1311
|
fontStyle: {
|
|
1280
1312
|
regular: 'normal',
|
|
@@ -3444,6 +3476,143 @@ function Message(_ref) {
|
|
|
3444
3476
|
});
|
|
3445
3477
|
}
|
|
3446
3478
|
|
|
3479
|
+
var createKittSpaces = function (spacing) {
|
|
3480
|
+
var sizes = {};
|
|
3481
|
+
|
|
3482
|
+
for (var size = 1; size <= 64; size++) {
|
|
3483
|
+
sizes["kitt.".concat(size)] = size * spacing;
|
|
3484
|
+
}
|
|
3485
|
+
|
|
3486
|
+
return sizes;
|
|
3487
|
+
}; // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/explicit-function-return-type -- let typescript infer types
|
|
3488
|
+
|
|
3489
|
+
|
|
3490
|
+
var createKittNativeBaseCustomTheme = function (theme) {
|
|
3491
|
+
var spaces = createKittSpaces(theme.spacing);
|
|
3492
|
+
return extendTheme({
|
|
3493
|
+
colors: {
|
|
3494
|
+
kitt: _objectSpread(_objectSpread({}, theme.colors), {}, {
|
|
3495
|
+
typography: theme.typography.colors
|
|
3496
|
+
})
|
|
3497
|
+
},
|
|
3498
|
+
radii: {
|
|
3499
|
+
'kitt.borderRadius': theme.card.borderRadius
|
|
3500
|
+
},
|
|
3501
|
+
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) {
|
|
3502
|
+
return [value, value];
|
|
3503
|
+
}))),
|
|
3504
|
+
space: spaces,
|
|
3505
|
+
breakpoints: {
|
|
3506
|
+
// kitt breakpoints
|
|
3507
|
+
base: KittBreakpoints.BASE,
|
|
3508
|
+
small: KittBreakpoints.SMALL,
|
|
3509
|
+
medium: KittBreakpoints.MEDIUM,
|
|
3510
|
+
large: KittBreakpoints.LARGE,
|
|
3511
|
+
wide: KittBreakpoints.WIDE,
|
|
3512
|
+
// native base default naming
|
|
3513
|
+
sm: Number.MAX_SAFE_INTEGER,
|
|
3514
|
+
md: Number.MAX_SAFE_INTEGER,
|
|
3515
|
+
lg: Number.MAX_SAFE_INTEGER,
|
|
3516
|
+
xl: Number.MAX_SAFE_INTEGER,
|
|
3517
|
+
'2xl': Number.MAX_SAFE_INTEGER
|
|
3518
|
+
},
|
|
3519
|
+
fontSizes: {
|
|
3520
|
+
baseAndSmall: {
|
|
3521
|
+
header1: "".concat(theme.typography.types.headers.configs.header1.baseAndSmall.fontSize, "px"),
|
|
3522
|
+
header2: "".concat(theme.typography.types.headers.configs.header2.baseAndSmall.fontSize, "px"),
|
|
3523
|
+
header3: "".concat(theme.typography.types.headers.configs.header3.baseAndSmall.fontSize, "px"),
|
|
3524
|
+
header4: "".concat(theme.typography.types.headers.configs.header4.baseAndSmall.fontSize, "px"),
|
|
3525
|
+
header5: "".concat(theme.typography.types.headers.configs.header5.baseAndSmall.fontSize, "px"),
|
|
3526
|
+
'body-large': "".concat(theme.typography.types.bodies.configs['body-large'].baseAndSmall.fontSize, "px"),
|
|
3527
|
+
'body-medium': "".concat(theme.typography.types.bodies.configs['body-medium'].baseAndSmall.fontSize, "px"),
|
|
3528
|
+
body: "".concat(theme.typography.types.bodies.configs.body.baseAndSmall.fontSize, "px"),
|
|
3529
|
+
'body-small': "".concat(theme.typography.types.bodies.configs['body-small'].baseAndSmall.fontSize, "px"),
|
|
3530
|
+
'body-xsmall': "".concat(theme.typography.types.bodies.configs['body-xsmall'].baseAndSmall.fontSize, "px")
|
|
3531
|
+
},
|
|
3532
|
+
mediumAndWide: {
|
|
3533
|
+
header1: "".concat(theme.typography.types.headers.configs.header1.mediumAndWide.fontSize, "px"),
|
|
3534
|
+
header2: "".concat(theme.typography.types.headers.configs.header2.mediumAndWide.fontSize, "px"),
|
|
3535
|
+
header3: "".concat(theme.typography.types.headers.configs.header3.mediumAndWide.fontSize, "px"),
|
|
3536
|
+
header4: "".concat(theme.typography.types.headers.configs.header4.mediumAndWide.fontSize, "px"),
|
|
3537
|
+
header5: "".concat(theme.typography.types.headers.configs.header5.mediumAndWide.fontSize, "px"),
|
|
3538
|
+
'body-large': "".concat(theme.typography.types.bodies.configs['body-large'].mediumAndWide.fontSize, "px"),
|
|
3539
|
+
'body-medium': "".concat(theme.typography.types.bodies.configs['body-medium'].mediumAndWide.fontSize, "px"),
|
|
3540
|
+
body: "".concat(theme.typography.types.bodies.configs.body.mediumAndWide.fontSize, "px"),
|
|
3541
|
+
'body-small': "".concat(theme.typography.types.bodies.configs['body-small'].mediumAndWide.fontSize, "px"),
|
|
3542
|
+
'body-xsmall': "".concat(theme.typography.types.bodies.configs['body-xsmall'].mediumAndWide.fontSize, "px")
|
|
3543
|
+
}
|
|
3544
|
+
},
|
|
3545
|
+
lineHeights: {
|
|
3546
|
+
baseAndSmall: {
|
|
3547
|
+
header1: theme.typography.types.headers.configs.header1.baseAndSmall.lineHeight,
|
|
3548
|
+
header2: theme.typography.types.headers.configs.header2.baseAndSmall.lineHeight,
|
|
3549
|
+
header3: theme.typography.types.headers.configs.header3.baseAndSmall.lineHeight,
|
|
3550
|
+
header4: theme.typography.types.headers.configs.header4.baseAndSmall.lineHeight,
|
|
3551
|
+
header5: theme.typography.types.headers.configs.header5.baseAndSmall.lineHeight,
|
|
3552
|
+
'body-large': theme.typography.types.bodies.configs['body-large'].baseAndSmall.lineHeight,
|
|
3553
|
+
'body-medium': theme.typography.types.bodies.configs['body-medium'].baseAndSmall.lineHeight,
|
|
3554
|
+
body: theme.typography.types.bodies.configs.body.baseAndSmall.lineHeight,
|
|
3555
|
+
'body-small': theme.typography.types.bodies.configs['body-small'].baseAndSmall.lineHeight,
|
|
3556
|
+
'body-xsmall': theme.typography.types.bodies.configs['body-xsmall'].baseAndSmall.lineHeight
|
|
3557
|
+
},
|
|
3558
|
+
mediumAndWide: {
|
|
3559
|
+
header1: theme.typography.types.headers.configs.header1.mediumAndWide.lineHeight,
|
|
3560
|
+
header2: theme.typography.types.headers.configs.header2.mediumAndWide.lineHeight,
|
|
3561
|
+
header3: theme.typography.types.headers.configs.header3.mediumAndWide.lineHeight,
|
|
3562
|
+
header4: theme.typography.types.headers.configs.header4.mediumAndWide.lineHeight,
|
|
3563
|
+
header5: theme.typography.types.headers.configs.header5.mediumAndWide.lineHeight,
|
|
3564
|
+
'body-large': theme.typography.types.bodies.configs['body-large'].mediumAndWide.lineHeight,
|
|
3565
|
+
'body-medium': theme.typography.types.bodies.configs['body-medium'].mediumAndWide.lineHeight,
|
|
3566
|
+
body: theme.typography.types.bodies.configs.body.mediumAndWide.lineHeight,
|
|
3567
|
+
'body-small': theme.typography.types.bodies.configs['body-small'].mediumAndWide.lineHeight,
|
|
3568
|
+
'body-xsmall': theme.typography.types.bodies.configs['body-xsmall'].mediumAndWide.lineHeight
|
|
3569
|
+
}
|
|
3570
|
+
},
|
|
3571
|
+
fontWeights: {
|
|
3572
|
+
headers: {
|
|
3573
|
+
regular: theme.typography.types.headers.fontWeight,
|
|
3574
|
+
bold: theme.typography.types.headers.fontWeight
|
|
3575
|
+
},
|
|
3576
|
+
bodies: theme.typography.types.bodies.fontWeight
|
|
3577
|
+
},
|
|
3578
|
+
fonts: {
|
|
3579
|
+
headers: theme.typography.types.headers.fontFamily,
|
|
3580
|
+
bodies: theme.typography.types.bodies.fontFamily
|
|
3581
|
+
},
|
|
3582
|
+
components: {
|
|
3583
|
+
Text: {
|
|
3584
|
+
baseStyle: {
|
|
3585
|
+
_light: {
|
|
3586
|
+
color: 'kitt.typography.black'
|
|
3587
|
+
},
|
|
3588
|
+
_dark: {
|
|
3589
|
+
color: 'kitt.typography.white'
|
|
3590
|
+
},
|
|
3591
|
+
fontFamily: theme.typography.types.bodies.fontFamily.regular,
|
|
3592
|
+
fontStyle: theme.typography.types.bodies.fontStyle.regular,
|
|
3593
|
+
fontWeight: theme.typography.types.bodies.fontWeight.regular,
|
|
3594
|
+
fontSize: undefined,
|
|
3595
|
+
lineHeight: theme.typography.types.bodies.configs.body.baseAndSmall.lineHeight
|
|
3596
|
+
}
|
|
3597
|
+
}
|
|
3598
|
+
}
|
|
3599
|
+
});
|
|
3600
|
+
};
|
|
3601
|
+
function KittNativeBaseProvider(_ref) {
|
|
3602
|
+
var theme = _ref.theme,
|
|
3603
|
+
isSSR = _ref.isSSR,
|
|
3604
|
+
children = _ref.children;
|
|
3605
|
+
var kittTheme = theme.kitt;
|
|
3606
|
+
var nativeBaseCustomTheme = useMemo(function () {
|
|
3607
|
+
return createKittNativeBaseCustomTheme(kittTheme);
|
|
3608
|
+
}, [kittTheme]);
|
|
3609
|
+
return /*#__PURE__*/jsx(NativeBaseProvider, {
|
|
3610
|
+
theme: nativeBaseCustomTheme,
|
|
3611
|
+
isSSR: isSSR,
|
|
3612
|
+
children: children
|
|
3613
|
+
});
|
|
3614
|
+
}
|
|
3615
|
+
|
|
3447
3616
|
function Notification(_ref) {
|
|
3448
3617
|
var type = _ref.type,
|
|
3449
3618
|
children = _ref.children,
|
|
@@ -4745,143 +4914,6 @@ var hex2rgba = function (hex) {
|
|
|
4745
4914
|
return "rgba(".concat(r, ", ").concat(g, ", ").concat(b, ", ").concat(alpha, ")");
|
|
4746
4915
|
};
|
|
4747
4916
|
|
|
4748
|
-
var createKittSpaces = function (spacing) {
|
|
4749
|
-
var sizes = {};
|
|
4750
|
-
|
|
4751
|
-
for (var size = 1; size <= 64; size++) {
|
|
4752
|
-
sizes["kitt.".concat(size)] = size * spacing;
|
|
4753
|
-
}
|
|
4754
|
-
|
|
4755
|
-
return sizes;
|
|
4756
|
-
}; // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/explicit-function-return-type -- let typescript infer types
|
|
4757
|
-
|
|
4758
|
-
|
|
4759
|
-
var createKittNativeBaseCustomTheme = function (theme) {
|
|
4760
|
-
var spaces = createKittSpaces(theme.spacing);
|
|
4761
|
-
return extendTheme({
|
|
4762
|
-
colors: {
|
|
4763
|
-
kitt: _objectSpread(_objectSpread({}, theme.colors), {}, {
|
|
4764
|
-
typography: theme.typography.colors
|
|
4765
|
-
})
|
|
4766
|
-
},
|
|
4767
|
-
radii: {
|
|
4768
|
-
'kitt.borderRadius': theme.card.borderRadius
|
|
4769
|
-
},
|
|
4770
|
-
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) {
|
|
4771
|
-
return [value, value];
|
|
4772
|
-
}))),
|
|
4773
|
-
space: spaces,
|
|
4774
|
-
breakpoints: {
|
|
4775
|
-
// kitt breakpoints
|
|
4776
|
-
base: KittBreakpoints.BASE,
|
|
4777
|
-
small: KittBreakpoints.SMALL,
|
|
4778
|
-
medium: KittBreakpoints.MEDIUM,
|
|
4779
|
-
large: KittBreakpoints.LARGE,
|
|
4780
|
-
wide: KittBreakpoints.WIDE,
|
|
4781
|
-
// native base default naming
|
|
4782
|
-
sm: Number.MAX_SAFE_INTEGER,
|
|
4783
|
-
md: Number.MAX_SAFE_INTEGER,
|
|
4784
|
-
lg: Number.MAX_SAFE_INTEGER,
|
|
4785
|
-
xl: Number.MAX_SAFE_INTEGER,
|
|
4786
|
-
'2xl': Number.MAX_SAFE_INTEGER
|
|
4787
|
-
},
|
|
4788
|
-
fontSizes: {
|
|
4789
|
-
baseAndSmall: {
|
|
4790
|
-
header1: "".concat(theme.typography.types.headers.configs.header1.baseAndSmall.fontSize, "px"),
|
|
4791
|
-
header2: "".concat(theme.typography.types.headers.configs.header2.baseAndSmall.fontSize, "px"),
|
|
4792
|
-
header3: "".concat(theme.typography.types.headers.configs.header3.baseAndSmall.fontSize, "px"),
|
|
4793
|
-
header4: "".concat(theme.typography.types.headers.configs.header4.baseAndSmall.fontSize, "px"),
|
|
4794
|
-
header5: "".concat(theme.typography.types.headers.configs.header5.baseAndSmall.fontSize, "px"),
|
|
4795
|
-
'body-large': "".concat(theme.typography.types.bodies.configs['body-large'].baseAndSmall.fontSize, "px"),
|
|
4796
|
-
'body-medium': "".concat(theme.typography.types.bodies.configs['body-medium'].baseAndSmall.fontSize, "px"),
|
|
4797
|
-
body: "".concat(theme.typography.types.bodies.configs.body.baseAndSmall.fontSize, "px"),
|
|
4798
|
-
'body-small': "".concat(theme.typography.types.bodies.configs['body-small'].baseAndSmall.fontSize, "px"),
|
|
4799
|
-
'body-xsmall': "".concat(theme.typography.types.bodies.configs['body-xsmall'].baseAndSmall.fontSize, "px")
|
|
4800
|
-
},
|
|
4801
|
-
mediumAndWide: {
|
|
4802
|
-
header1: "".concat(theme.typography.types.headers.configs.header1.mediumAndWide.fontSize, "px"),
|
|
4803
|
-
header2: "".concat(theme.typography.types.headers.configs.header2.mediumAndWide.fontSize, "px"),
|
|
4804
|
-
header3: "".concat(theme.typography.types.headers.configs.header3.mediumAndWide.fontSize, "px"),
|
|
4805
|
-
header4: "".concat(theme.typography.types.headers.configs.header4.mediumAndWide.fontSize, "px"),
|
|
4806
|
-
header5: "".concat(theme.typography.types.headers.configs.header5.mediumAndWide.fontSize, "px"),
|
|
4807
|
-
'body-large': "".concat(theme.typography.types.bodies.configs['body-large'].mediumAndWide.fontSize, "px"),
|
|
4808
|
-
'body-medium': "".concat(theme.typography.types.bodies.configs['body-medium'].mediumAndWide.fontSize, "px"),
|
|
4809
|
-
body: "".concat(theme.typography.types.bodies.configs.body.mediumAndWide.fontSize, "px"),
|
|
4810
|
-
'body-small': "".concat(theme.typography.types.bodies.configs['body-small'].mediumAndWide.fontSize, "px"),
|
|
4811
|
-
'body-xsmall': "".concat(theme.typography.types.bodies.configs['body-xsmall'].mediumAndWide.fontSize, "px")
|
|
4812
|
-
}
|
|
4813
|
-
},
|
|
4814
|
-
lineHeights: {
|
|
4815
|
-
baseAndSmall: {
|
|
4816
|
-
header1: theme.typography.types.headers.configs.header1.baseAndSmall.lineHeight,
|
|
4817
|
-
header2: theme.typography.types.headers.configs.header2.baseAndSmall.lineHeight,
|
|
4818
|
-
header3: theme.typography.types.headers.configs.header3.baseAndSmall.lineHeight,
|
|
4819
|
-
header4: theme.typography.types.headers.configs.header4.baseAndSmall.lineHeight,
|
|
4820
|
-
header5: theme.typography.types.headers.configs.header5.baseAndSmall.lineHeight,
|
|
4821
|
-
'body-large': theme.typography.types.bodies.configs['body-large'].baseAndSmall.lineHeight,
|
|
4822
|
-
'body-medium': theme.typography.types.bodies.configs['body-medium'].baseAndSmall.lineHeight,
|
|
4823
|
-
body: theme.typography.types.bodies.configs.body.baseAndSmall.lineHeight,
|
|
4824
|
-
'body-small': theme.typography.types.bodies.configs['body-small'].baseAndSmall.lineHeight,
|
|
4825
|
-
'body-xsmall': theme.typography.types.bodies.configs['body-xsmall'].baseAndSmall.lineHeight
|
|
4826
|
-
},
|
|
4827
|
-
mediumAndWide: {
|
|
4828
|
-
header1: theme.typography.types.headers.configs.header1.mediumAndWide.lineHeight,
|
|
4829
|
-
header2: theme.typography.types.headers.configs.header2.mediumAndWide.lineHeight,
|
|
4830
|
-
header3: theme.typography.types.headers.configs.header3.mediumAndWide.lineHeight,
|
|
4831
|
-
header4: theme.typography.types.headers.configs.header4.mediumAndWide.lineHeight,
|
|
4832
|
-
header5: theme.typography.types.headers.configs.header5.mediumAndWide.lineHeight,
|
|
4833
|
-
'body-large': theme.typography.types.bodies.configs['body-large'].mediumAndWide.lineHeight,
|
|
4834
|
-
'body-medium': theme.typography.types.bodies.configs['body-medium'].mediumAndWide.lineHeight,
|
|
4835
|
-
body: theme.typography.types.bodies.configs.body.mediumAndWide.lineHeight,
|
|
4836
|
-
'body-small': theme.typography.types.bodies.configs['body-small'].mediumAndWide.lineHeight,
|
|
4837
|
-
'body-xsmall': theme.typography.types.bodies.configs['body-xsmall'].mediumAndWide.lineHeight
|
|
4838
|
-
}
|
|
4839
|
-
},
|
|
4840
|
-
fontWeights: {
|
|
4841
|
-
headers: {
|
|
4842
|
-
regular: theme.typography.types.headers.fontWeight,
|
|
4843
|
-
bold: theme.typography.types.headers.fontWeight
|
|
4844
|
-
},
|
|
4845
|
-
bodies: theme.typography.types.bodies.fontWeight
|
|
4846
|
-
},
|
|
4847
|
-
fonts: {
|
|
4848
|
-
headers: theme.typography.types.headers.fontFamily,
|
|
4849
|
-
bodies: theme.typography.types.bodies.fontFamily
|
|
4850
|
-
},
|
|
4851
|
-
components: {
|
|
4852
|
-
Text: {
|
|
4853
|
-
baseStyle: {
|
|
4854
|
-
_light: {
|
|
4855
|
-
color: 'kitt.typography.black'
|
|
4856
|
-
},
|
|
4857
|
-
_dark: {
|
|
4858
|
-
color: 'kitt.typography.white'
|
|
4859
|
-
},
|
|
4860
|
-
fontFamily: theme.typography.types.bodies.fontFamily.regular,
|
|
4861
|
-
fontStyle: theme.typography.types.bodies.fontStyle.regular,
|
|
4862
|
-
fontWeight: theme.typography.types.bodies.fontWeight.regular,
|
|
4863
|
-
fontSize: undefined,
|
|
4864
|
-
lineHeight: theme.typography.types.bodies.configs.body.baseAndSmall.lineHeight
|
|
4865
|
-
}
|
|
4866
|
-
}
|
|
4867
|
-
}
|
|
4868
|
-
});
|
|
4869
|
-
};
|
|
4870
|
-
function KittNativeBaseProvider(_ref) {
|
|
4871
|
-
var theme = _ref.theme,
|
|
4872
|
-
isSSR = _ref.isSSR,
|
|
4873
|
-
children = _ref.children;
|
|
4874
|
-
var kittTheme = theme.kitt;
|
|
4875
|
-
var nativeBaseCustomTheme = useMemo(function () {
|
|
4876
|
-
return createKittNativeBaseCustomTheme(kittTheme);
|
|
4877
|
-
}, [kittTheme]);
|
|
4878
|
-
return /*#__PURE__*/jsx(NativeBaseProvider, {
|
|
4879
|
-
theme: nativeBaseCustomTheme,
|
|
4880
|
-
isSSR: isSSR,
|
|
4881
|
-
children: children
|
|
4882
|
-
});
|
|
4883
|
-
}
|
|
4884
|
-
|
|
4885
4917
|
function KittThemeProvider(_ref) {
|
|
4886
4918
|
var isSSR = _ref.isSSR,
|
|
4887
4919
|
children = _ref.children;
|
|
@@ -4922,5 +4954,5 @@ function MatchWindowSize(_ref) {
|
|
|
4922
4954
|
return children;
|
|
4923
4955
|
}
|
|
4924
4956
|
|
|
4925
|
-
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 };
|
|
4957
|
+
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 };
|
|
4926
4958
|
//# sourceMappingURL=index-browser-all.es.js.map
|