@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
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
/// <reference types="styled-components-react-native" />
|
|
2
2
|
import type { ViewProps } from 'react-native';
|
|
3
|
-
import type { ButtonType, ButtonVariant } from './Button';
|
|
3
|
+
import type { ButtonSize, ButtonType, ButtonVariant } from './Button';
|
|
4
4
|
export interface BaseStyledButtonPressableProps extends ViewProps {
|
|
5
5
|
$type: ButtonType;
|
|
6
6
|
$variant: ButtonVariant;
|
|
7
|
-
$
|
|
8
|
-
$isXLarge?: boolean;
|
|
7
|
+
$size?: ButtonSize;
|
|
9
8
|
$isStretch?: boolean;
|
|
10
9
|
$isDisabled?: boolean;
|
|
11
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseStyledButtonPressable.d.ts","sourceRoot":"","sources":["../../../src/Button/BaseStyledButtonPressable.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"BaseStyledButtonPressable.d.ts","sourceRoot":"","sources":["../../../src/Button/BaseStyledButtonPressable.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAGtE,MAAM,WAAW,8BAA+B,SAAQ,SAAS;IAC/D,KAAK,EAAE,UAAU,CAAC;IAClB,QAAQ,EAAE,aAAa,CAAC;IACxB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,eAAO,MAAM,yBAAyB,kKA+BrC,CAAC"}
|
|
@@ -2,6 +2,7 @@ import type { ReactElement, ReactNode } from 'react';
|
|
|
2
2
|
import type { PressableProps, View } from 'react-native';
|
|
3
3
|
export declare type SubtleButtonType = 'subtle' | 'subtle-dark';
|
|
4
4
|
export declare type ButtonType = 'primary' | 'default' | SubtleButtonType | 'white';
|
|
5
|
+
export declare type ButtonSize = 'large' | 'xlarge';
|
|
5
6
|
export declare type ButtonVariant = 'default' | 'ghost';
|
|
6
7
|
declare type IconPosition = 'right' | 'left';
|
|
7
8
|
export interface ButtonProps {
|
|
@@ -10,8 +11,15 @@ export interface ButtonProps {
|
|
|
10
11
|
variant?: ButtonVariant;
|
|
11
12
|
disabled?: boolean;
|
|
12
13
|
stretch?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated use `size` instead
|
|
16
|
+
*/
|
|
13
17
|
large?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated use `size` instead
|
|
20
|
+
*/
|
|
14
21
|
xLarge?: boolean;
|
|
22
|
+
size?: ButtonSize;
|
|
15
23
|
icon?: ReactElement;
|
|
16
24
|
iconPosition?: IconPosition;
|
|
17
25
|
testID?: PressableProps['testID'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,KAAK,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,KAAK,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAQzD,oBAAY,gBAAgB,GAAG,QAAQ,GAAG,aAAa,CAAC;AACxD,oBAAY,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,gBAAgB,GAAG,OAAO,CAAC;AAC5E,oBAAY,UAAU,GAAG,OAAO,GAAG,QAAQ,CAAC;AAC5C,oBAAY,aAAa,GAAG,SAAS,GAAG,OAAO,CAAC;AAEhD,aAAK,YAAY,GAAG,OAAO,GAAG,MAAM,CAAC;AAUrC,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,MAAM,CAAC,EAAE,cAAc,CAAC,QAAQ,CAAC,CAAC;IAClC,IAAI,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;IAC9B,SAAS,CAAC,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC;IACxC,iBAAiB,CAAC,EAAE,cAAc,CAAC,mBAAmB,CAAC,CAAC;IACxD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC;IAChC,OAAO,CAAC,EAAE,cAAc,CAAC,SAAS,CAAC,CAAC;CACrC;AAED,eAAO,MAAM,MAAM,8FAmElB,CAAC"}
|
|
@@ -58,6 +58,8 @@ export type { MessageProps } from './Message/Message';
|
|
|
58
58
|
export { Message } from './Message/Message';
|
|
59
59
|
export type { ModalProps } from './Modal/Modal';
|
|
60
60
|
export { Modal } from './Modal/Modal';
|
|
61
|
+
export type { KittNativeBaseProviderProps } from './native-base/KittNativeBaseProvider';
|
|
62
|
+
export { KittNativeBaseProvider } from './native-base/KittNativeBaseProvider';
|
|
61
63
|
export type { NotificationProps } from './Notification/Notification';
|
|
62
64
|
export { Notification } from './Notification/Notification';
|
|
63
65
|
export { Overlay } from './Overlay/Overlay';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,YAAY,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACnC,YAAY,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,YAAY,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,YAAY,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,YAAY,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,YAAY,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAChE,YAAY,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,YAAY,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,YAAY,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE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AM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAC7F,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,YAAY,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACnF,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC5F,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,cAAc,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function warn(message: string): void;
|
|
2
|
+
export declare function deprecatedMessage(symbol: string, deprecation: string, replaceBy?: string): void;
|
|
3
|
+
export declare function deprecatedInComponent(component: string, deprecation: string, replaceBy?: string): void;
|
|
4
|
+
//# sourceMappingURL=warnings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"warnings.d.ts","sourceRoot":"","sources":["../../../src/utils/warnings.ts"],"names":[],"mappings":"AAAA,wBAAgB,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAI1C;AAED,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAI/F;AAED,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAEtG"}
|
|
@@ -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
|
-
$
|
|
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 ($
|
|
495
|
-
if ($
|
|
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
|
-
|
|
712
|
-
|
|
713
|
-
|
|
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
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
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
|
-
$
|
|
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.android.js.map
|