@ornikar/kitt-universal 4.0.0 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/definitions/BaseMessage/BaseMessage.d.ts +16 -0
- package/dist/definitions/BaseMessage/BaseMessage.d.ts.map +1 -0
- package/dist/definitions/BaseMessage/IconContent.d.ts +10 -0
- package/dist/definitions/BaseMessage/IconContent.d.ts.map +1 -0
- package/dist/definitions/BaseMessage/helper.d.ts +6 -0
- package/dist/definitions/BaseMessage/helper.d.ts.map +1 -0
- package/dist/definitions/Message/Message.d.ts +4 -12
- package/dist/definitions/Message/Message.d.ts.map +1 -1
- package/dist/definitions/Notification/Notification.d.ts +8 -8
- package/dist/definitions/Notification/Notification.d.ts.map +1 -1
- package/dist/definitions/Skeleton/Skeleton.d.ts.map +1 -1
- package/dist/definitions/Tooltip/TooltipView.d.ts.map +1 -1
- package/dist/definitions/themes/default.d.ts +4 -9
- package/dist/definitions/themes/default.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/{buttonLateOceanTheme.d.ts → button.d.ts} +2 -2
- package/dist/definitions/themes/late-ocean/button.d.ts.map +1 -0
- package/dist/definitions/themes/late-ocean/colorsLateOceanTheme.d.ts +2 -0
- package/dist/definitions/themes/late-ocean/colorsLateOceanTheme.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/feedbackMessage.d.ts +11 -0
- package/dist/definitions/themes/late-ocean/feedbackMessage.d.ts.map +1 -0
- package/dist/index-browser-all.es.android.js +174 -148
- package/dist/index-browser-all.es.android.js.map +1 -1
- package/dist/index-browser-all.es.ios.js +174 -148
- package/dist/index-browser-all.es.ios.js.map +1 -1
- package/dist/index-browser-all.es.js +174 -148
- package/dist/index-browser-all.es.js.map +1 -1
- package/dist/index-browser-all.es.web.js +183 -155
- package/dist/index-browser-all.es.web.js.map +1 -1
- package/dist/index-node-14.17.cjs.js +183 -137
- package/dist/index-node-14.17.cjs.js.map +1 -1
- package/dist/index-node-14.17.cjs.web.js +183 -137
- package/dist/index-node-14.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.android.js +21 -13
- package/dist/linaria-themes-browser-all.es.android.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.ios.js +21 -13
- package/dist/linaria-themes-browser-all.es.ios.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.js +21 -13
- package/dist/linaria-themes-browser-all.es.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.web.js +21 -13
- package/dist/linaria-themes-browser-all.es.web.js.map +1 -1
- package/dist/linaria-themes-node-14.17.cjs.js +21 -13
- package/dist/linaria-themes-node-14.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-14.17.cjs.web.js +21 -13
- package/dist/linaria-themes-node-14.17.cjs.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +3 -3
- package/dist/definitions/themes/late-ocean/buttonLateOceanTheme.d.ts.map +0 -1
- package/dist/definitions/themes/late-ocean/feedbackMessageLateOceanTheme.d.ts +0 -9
- package/dist/definitions/themes/late-ocean/feedbackMessageLateOceanTheme.d.ts.map +0 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ReactElement, ReactNode } from 'react';
|
|
2
|
+
import type { EdgeInsets } from 'react-native-safe-area-context';
|
|
3
|
+
export declare type MessageType = 'success' | 'warning' | 'danger' | 'info';
|
|
4
|
+
export interface BaseMessageProps {
|
|
5
|
+
type?: MessageType;
|
|
6
|
+
children: NonNullable<ReactNode>;
|
|
7
|
+
/**
|
|
8
|
+
* @internal for styling between Message and Notification
|
|
9
|
+
*/
|
|
10
|
+
hasNoRadius?: boolean;
|
|
11
|
+
centeredText?: boolean;
|
|
12
|
+
insets?: EdgeInsets;
|
|
13
|
+
onDismiss?: () => void;
|
|
14
|
+
}
|
|
15
|
+
export declare function BaseMessage({ type, children, hasNoRadius, centeredText, insets, onDismiss, }: BaseMessageProps): ReactElement;
|
|
16
|
+
//# sourceMappingURL=BaseMessage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseMessage.d.ts","sourceRoot":"","sources":["../../../src/BaseMessage/BaseMessage.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAQjE,oBAAY,WAAW,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAC;AAwDpE,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,QAAQ,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACjC;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AAED,wBAAgB,WAAW,CAAC,EAC1B,IAAa,EACb,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,MAAM,EACN,SAAS,GACV,EAAE,gBAAgB,GAAG,YAAY,CAuBjC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { TypographyColor } from '../typography/Typography';
|
|
3
|
+
import type { MessageType } from './BaseMessage';
|
|
4
|
+
interface IconContentProps {
|
|
5
|
+
type: MessageType;
|
|
6
|
+
color: TypographyColor;
|
|
7
|
+
}
|
|
8
|
+
export declare function IconContent({ type, color }: IconContentProps): ReactElement;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=IconContent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconContent.d.ts","sourceRoot":"","sources":["../../../src/BaseMessage/IconContent.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,UAAU,gBAAgB;IACxB,IAAI,EAAE,WAAW,CAAC;IAClB,KAAK,EAAE,eAAe,CAAC;CACxB;AAED,wBAAgB,WAAW,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,gBAAgB,GAAG,YAAY,CAW3E"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { IconButtonProps } from '../IconButton/IconButton';
|
|
2
|
+
import type { TypographyColor } from '../typography/Typography';
|
|
3
|
+
import type { MessageType } from './BaseMessage';
|
|
4
|
+
export declare const getColorByType: (type: MessageType) => TypographyColor;
|
|
5
|
+
export declare const getIconButtonColor: (messageType: MessageType) => IconButtonProps['color'];
|
|
6
|
+
//# sourceMappingURL=helper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../../src/BaseMessage/helper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,eAAO,MAAM,cAAc,SAAU,WAAW,KAAG,eAUlD,CAAC;AAEF,eAAO,MAAM,kBAAkB,gBAAiB,WAAW,KAAG,eAAe,CAAC,OAAO,CASpF,CAAC"}
|
|
@@ -1,14 +1,6 @@
|
|
|
1
|
-
import type { ReactElement
|
|
2
|
-
|
|
3
|
-
export interface MessageProps {
|
|
4
|
-
type?: MessageType;
|
|
5
|
-
children: NonNullable<ReactNode>;
|
|
6
|
-
noRadius?: boolean;
|
|
7
|
-
centeredText?: boolean;
|
|
8
|
-
insets?: {
|
|
9
|
-
top?: number;
|
|
10
|
-
};
|
|
11
|
-
onDismiss?: () => void;
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { BaseMessageProps } from '../BaseMessage/BaseMessage';
|
|
3
|
+
export interface MessageProps extends BaseMessageProps {
|
|
12
4
|
}
|
|
13
|
-
export declare function Message({ type, children,
|
|
5
|
+
export declare function Message({ type, children, hasNoRadius, centeredText, insets, onDismiss, }: MessageProps): ReactElement;
|
|
14
6
|
//# sourceMappingURL=Message.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Message.d.ts","sourceRoot":"","sources":["../../../src/Message/Message.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Message.d.ts","sourceRoot":"","sources":["../../../src/Message/Message.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAGnE,MAAM,WAAW,YAAa,SAAQ,gBAAgB;CAAG;AAEzD,wBAAgB,OAAO,CAAC,EACtB,IAAa,EACb,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,MAAM,EACN,SAAS,GACV,EAAE,YAAY,GAAG,YAAY,CAY7B"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { ReactElement
|
|
2
|
-
import type {
|
|
3
|
-
export interface NotificationProps {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
onDelete?:
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { BaseMessageProps } from '../BaseMessage/BaseMessage';
|
|
3
|
+
export interface NotificationProps extends BaseMessageProps {
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated use onDismiss instead
|
|
6
|
+
*/
|
|
7
|
+
onDelete?: BaseMessageProps['onDismiss'];
|
|
8
8
|
}
|
|
9
|
-
export declare function Notification({ type, children, centeredText, onDelete }: NotificationProps): ReactElement;
|
|
9
|
+
export declare function Notification({ type, children, centeredText, insets, onDelete, onDismiss, }: NotificationProps): ReactElement;
|
|
10
10
|
//# sourceMappingURL=Notification.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Notification.d.ts","sourceRoot":"","sources":["../../../src/Notification/Notification.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"Notification.d.ts","sourceRoot":"","sources":["../../../src/Notification/Notification.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAEnE,MAAM,WAAW,iBAAkB,SAAQ,gBAAgB;IACzD;;OAEG;IACH,QAAQ,CAAC,EAAE,gBAAgB,CAAC,WAAW,CAAC,CAAC;CAC1C;AAED,wBAAgB,YAAY,CAAC,EAC3B,IAAI,EACJ,QAAQ,EACR,YAAY,EACZ,MAAM,EACN,QAAQ,EACR,SAAS,GACV,EAAE,iBAAiB,GAAG,YAAY,CAYlC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Skeleton.d.ts","sourceRoot":"","sources":["../../../src/Skeleton/Skeleton.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"Skeleton.d.ts","sourceRoot":"","sources":["../../../src/Skeleton/Skeleton.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAQzD,MAAM,WAAW,aAAa;IAC5B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,wBAAgB,QAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,aAAa,GAAG,YAAY,CAQ1E;yBARe,QAAQ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TooltipView.d.ts","sourceRoot":"","sources":["../../../src/Tooltip/TooltipView.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TooltipView.d.ts","sourceRoot":"","sources":["../../../src/Tooltip/TooltipView.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AA+BjD,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACjC,QAAQ,EAAE,eAAe,CAAC;CAC3B;AAED,wBAAgB,WAAW,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,gBAAgB,GAAG,YAAY,CAYlF"}
|
|
@@ -8,6 +8,8 @@ export declare const theme: {
|
|
|
8
8
|
success: string;
|
|
9
9
|
correct: string;
|
|
10
10
|
danger: string;
|
|
11
|
+
info: string;
|
|
12
|
+
warning: string;
|
|
11
13
|
separator: string;
|
|
12
14
|
hover: string;
|
|
13
15
|
black: string;
|
|
@@ -46,7 +48,7 @@ export declare const theme: {
|
|
|
46
48
|
};
|
|
47
49
|
};
|
|
48
50
|
avatar: import("./late-ocean/avatarLateOceanTheme").AvatarTheme;
|
|
49
|
-
button: import("./late-ocean/
|
|
51
|
+
button: import("./late-ocean/button").ButtonTheme;
|
|
50
52
|
card: {
|
|
51
53
|
borderRadius: string;
|
|
52
54
|
borderWidth: string;
|
|
@@ -64,14 +66,7 @@ export declare const theme: {
|
|
|
64
66
|
borderColor: string;
|
|
65
67
|
};
|
|
66
68
|
};
|
|
67
|
-
feedbackMessage:
|
|
68
|
-
backgroundColors: {
|
|
69
|
-
success: string;
|
|
70
|
-
danger: string;
|
|
71
|
-
warning: string;
|
|
72
|
-
info: string;
|
|
73
|
-
};
|
|
74
|
-
};
|
|
69
|
+
feedbackMessage: import("./late-ocean/feedbackMessage").FeedbackMessageTheme;
|
|
75
70
|
forms: {
|
|
76
71
|
input: import("./late-ocean/input").InputTheme;
|
|
77
72
|
radio: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../src/themes/default.ts"],"names":[],"mappings":"AAwCA,eAAO,MAAM,KAAK
|
|
1
|
+
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../src/themes/default.ts"],"names":[],"mappings":"AAwCA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkBjB,CAAC;AAEF,oBAAY,KAAK,GAAG,OAAO,KAAK,CAAC"}
|
|
@@ -47,5 +47,5 @@ export interface ButtonTheme {
|
|
|
47
47
|
'subtle-dark': SubtleButtonVariantTheme;
|
|
48
48
|
disabled: DisabledButtonVariantTheme;
|
|
49
49
|
}
|
|
50
|
-
export declare const
|
|
51
|
-
//# sourceMappingURL=
|
|
50
|
+
export declare const button: ButtonTheme;
|
|
51
|
+
//# sourceMappingURL=button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../src/themes/late-ocean/button.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,kBAAkB;IACjC,eAAe,EAAE,MAAM,CAAC;IACxB,sBAAsB,EAAE,M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3,"file":"colorsLateOceanTheme.d.ts","sourceRoot":"","sources":["../../../../src/themes/late-ocean/colorsLateOceanTheme.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"colorsLateOceanTheme.d.ts","sourceRoot":"","sources":["../../../../src/themes/late-ocean/colorsLateOceanTheme.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;CAsBhC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface FeedbackMessageVariantTheme {
|
|
2
|
+
backgroundColor: string;
|
|
3
|
+
}
|
|
4
|
+
export interface FeedbackMessageTheme {
|
|
5
|
+
danger: FeedbackMessageVariantTheme;
|
|
6
|
+
info: FeedbackMessageVariantTheme;
|
|
7
|
+
success: FeedbackMessageVariantTheme;
|
|
8
|
+
warning: FeedbackMessageVariantTheme;
|
|
9
|
+
}
|
|
10
|
+
export declare const feedbackMessage: FeedbackMessageTheme;
|
|
11
|
+
//# sourceMappingURL=feedbackMessage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feedbackMessage.d.ts","sourceRoot":"","sources":["../../../../src/themes/late-ocean/feedbackMessage.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,2BAA2B;IAC1C,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,2BAA2B,CAAC;IACpC,IAAI,EAAE,2BAA2B,CAAC;IAClC,OAAO,EAAE,2BAA2B,CAAC;IACrC,OAAO,EAAE,2BAA2B,CAAC;CACtC;AAED,eAAO,MAAM,eAAe,EAAE,oBAa7B,CAAC"}
|