@ornikar/kitt-universal 25.52.0 → 25.54.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/CHANGELOG.md +18 -0
- package/dist/definitions/CardModal/CardModal.d.ts +3 -0
- package/dist/definitions/CardModal/CardModal.d.ts.map +1 -1
- package/dist/definitions/FullscreenModal/Body.d.ts.map +1 -1
- package/dist/definitions/FullscreenModal/FullscreenModal.d.ts +17 -3
- package/dist/definitions/FullscreenModal/FullscreenModal.d.ts.map +1 -1
- package/dist/definitions/IconButton/IconButton.d.ts +3 -1
- package/dist/definitions/IconButton/IconButton.d.ts.map +1 -1
- package/dist/definitions/NavigationModal/NavigationModal.d.ts +2 -3
- package/dist/definitions/NavigationModal/NavigationModal.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +76 -35
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +76 -35
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-20.10.cjs.js +74 -34
- package/dist/index-node-20.10.cjs.js.map +1 -1
- package/dist/index-node-20.10.cjs.web.js +74 -34
- package/dist/index-node-20.10.cjs.web.js.map +1 -1
- package/dist/index-node-20.10.es.mjs +74 -34
- package/dist/index-node-20.10.es.mjs.map +1 -1
- package/dist/index-node-20.10.es.web.mjs +74 -34
- package/dist/index-node-20.10.es.web.mjs.map +1 -1
- package/dist/index.es.js +77 -36
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +77 -36
- package/dist/index.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,24 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [25.54.0](https://github.com/ornikar/kitt/compare/@ornikar/kitt-universal@25.53.0...@ornikar/kitt-universal@25.54.0) (2025-05-20)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **kitt-universal/modals:** compound components OSE-16940 ([#2583](https://github.com/ornikar/kitt/issues/2583)) ([8526da2](https://github.com/ornikar/kitt/commit/8526da2fa48454f88558b6f209a7434fdbc7714c))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## [25.53.0](https://github.com/ornikar/kitt/compare/@ornikar/kitt-universal@25.52.0...@ornikar/kitt-universal@25.53.0) (2025-05-19)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* add badge prop for IconButton - OSE-17330 ([#2592](https://github.com/ornikar/kitt/issues/2592)) ([df370d6](https://github.com/ornikar/kitt/commit/df370d68e657b60ace721b7039beed99ef00b40e))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
6
24
|
## [25.52.0](https://github.com/ornikar/kitt/compare/@ornikar/kitt-universal@25.51.0...@ornikar/kitt-universal@25.52.0) (2025-05-15)
|
|
7
25
|
|
|
8
26
|
|
|
@@ -16,8 +16,11 @@ interface CardModalWithChildren extends BaseCardModalProps {
|
|
|
16
16
|
}
|
|
17
17
|
interface CardModalWithoutChildren extends BaseCardModalProps {
|
|
18
18
|
children?: never;
|
|
19
|
+
/** @deprecated use `FullscreenModal.Header` as `children` instead */
|
|
19
20
|
header?: ReactNode;
|
|
21
|
+
/** @deprecated use `FullscreenModal.Footer` as `children` instead */
|
|
20
22
|
footer?: ReactNode;
|
|
23
|
+
/** @deprecated use `FullscreenModal.Body` as `children` instead */
|
|
21
24
|
body: ReactNode;
|
|
22
25
|
}
|
|
23
26
|
export type CardModalProps = CardModalWithChildren | CardModalWithoutChildren;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardModal.d.ts","sourceRoot":"","sources":["../../../src/CardModal/CardModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,M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,CAAC;AAK9C,MAAM,WAAW,wBAAyB,SAAQ,SAAS;IACzD,QAAQ,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACjC,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC;AAED,wBAAgB,mBAAmB,CAAC,EAClC,QAAQ,EACR,uBAAuB,EACvB,KAAK,EACL,oBAAoB,EACpB,GAAG,KAAK,EACT,EAAE,wBAAwB,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"Body.d.ts","sourceRoot":"","sources":["../../../src/FullscreenModal/Body.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAK9C,MAAM,WAAW,wBAAyB,SAAQ,SAAS;IACzD,QAAQ,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACjC,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC;AAED,wBAAgB,mBAAmB,CAAC,EAClC,QAAQ,EACR,uBAAuB,EACvB,KAAK,EACL,oBAAoB,EACpB,GAAG,KAAK,EACT,EAAE,wBAAwB,GAAG,SAAS,CAyBtC"}
|
|
@@ -4,17 +4,31 @@ import { FullscreenModalBody } from './Body';
|
|
|
4
4
|
import { FullscreenModalFooter } from './Footer';
|
|
5
5
|
import { FullscreenModalBehaviour } from './FullscreenModalBehaviour';
|
|
6
6
|
import { FullscreenModalHeader } from './Header';
|
|
7
|
-
export interface
|
|
7
|
+
export interface BaseFullscreenModalProps {
|
|
8
|
+
backgroundColor?: ViewProps['backgroundColor'];
|
|
9
|
+
}
|
|
10
|
+
interface BaseFullscreenModalPropsWithChildren extends BaseFullscreenModalProps {
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
header?: never;
|
|
13
|
+
footer?: never;
|
|
14
|
+
body?: never;
|
|
15
|
+
}
|
|
16
|
+
interface BaseFullscreenModalPropsWithoutChildren extends BaseFullscreenModalProps {
|
|
17
|
+
children?: never;
|
|
18
|
+
/** @deprecated use `FullscreenModal.Header` as `children` instead */
|
|
8
19
|
header?: ReactNode;
|
|
20
|
+
/** @deprecated use `FullscreenModal.Footer` as `children` instead */
|
|
9
21
|
footer?: ReactNode;
|
|
22
|
+
/** @deprecated use `FullscreenModal.Body` as `children` instead */
|
|
10
23
|
body: ReactNode;
|
|
11
|
-
backgroundColor?: ViewProps['backgroundColor'];
|
|
12
24
|
}
|
|
13
|
-
export
|
|
25
|
+
export type FullscreenModalProps = BaseFullscreenModalPropsWithChildren | BaseFullscreenModalPropsWithoutChildren;
|
|
26
|
+
export declare function FullscreenModal({ children, body, header, footer, backgroundColor }: FullscreenModalProps): ReactNode;
|
|
14
27
|
export declare namespace FullscreenModal {
|
|
15
28
|
var Header: typeof FullscreenModalHeader;
|
|
16
29
|
var Footer: typeof FullscreenModalFooter;
|
|
17
30
|
var Body: typeof FullscreenModalBody;
|
|
18
31
|
var ModalBehaviour: typeof FullscreenModalBehaviour;
|
|
19
32
|
}
|
|
33
|
+
export {};
|
|
20
34
|
//# sourceMappingURL=FullscreenModal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FullscreenModal.d.ts","sourceRoot":"","sources":["../../../src/FullscreenModal/FullscreenModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAEpC,OAAO,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAC7C,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAEtE,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEjD,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"FullscreenModal.d.ts","sourceRoot":"","sources":["../../../src/FullscreenModal/FullscreenModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAEpC,OAAO,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAC7C,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAEtE,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEjD,MAAM,WAAW,wBAAwB;IACvC,eAAe,CAAC,EAAE,SAAS,CAAC,iBAAiB,CAAC,CAAC;CAChD;AAED,UAAU,oCAAqC,SAAQ,wBAAwB;IAC7E,QAAQ,EAAE,SAAS,CAAC;IACpB,MAAM,CAAC,EAAE,KAAK,CAAC;IACf,MAAM,CAAC,EAAE,KAAK,CAAC;IACf,IAAI,CAAC,EAAE,KAAK,CAAC;CACd;AAED,UAAU,uCAAwC,SAAQ,wBAAwB;IAChF,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,qEAAqE;IACrE,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,qEAAqE;IACrE,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,mEAAmE;IACnE,IAAI,EAAE,SAAS,CAAC;CACjB;AAED,MAAM,MAAM,oBAAoB,GAAG,oCAAoC,GAAG,uCAAuC,CAAC;AAElH,wBAAgB,eAAe,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,EAAE,EAAE,oBAAoB,GAAG,SAAS,CAgBpH;yBAhBe,eAAe"}
|
|
@@ -9,6 +9,8 @@ export interface IconButtonProps {
|
|
|
9
9
|
testID?: string;
|
|
10
10
|
ariaLabel?: PressableProps['aria-label'];
|
|
11
11
|
accessibilityRole?: PressableProps['accessibilityRole'];
|
|
12
|
+
withBadge?: boolean;
|
|
13
|
+
bagdeCount?: number;
|
|
12
14
|
/** @internal for story purpose */
|
|
13
15
|
isHoveredInternal?: boolean;
|
|
14
16
|
/** @internal for story purpose */
|
|
@@ -17,6 +19,6 @@ export interface IconButtonProps {
|
|
|
17
19
|
isFocusedInternal?: boolean;
|
|
18
20
|
onPress?: () => void;
|
|
19
21
|
}
|
|
20
|
-
export declare function IconButton({ icon, color, disabled, testID, ariaLabel, accessibilityRole, isHoveredInternal, isPressedInternal, isFocusedInternal, onPress, }: IconButtonProps): ReactNode;
|
|
22
|
+
export declare function IconButton({ icon, color, disabled, testID, ariaLabel, accessibilityRole, withBadge, bagdeCount, isHoveredInternal, isPressedInternal, isFocusedInternal, onPress, }: IconButtonProps): ReactNode;
|
|
21
23
|
export declare function CloseIconButton(props: Except<IconButtonProps, 'icon'>): ReactNode;
|
|
22
24
|
//# sourceMappingURL=IconButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../src/IconButton/IconButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../src/IconButton/IconButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAWhE,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,OAAO,GAAG,SAAS,GAAG,eAAe,GAAG,WAAW,CAAC;AAE5F,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,WAAW,CAAC,YAAY,CAAC,CAAC;IAChC,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,cAAc,CAAC,YAAY,CAAC,CAAC;IACzC,iBAAiB,CAAC,EAAE,cAAc,CAAC,mBAAmB,CAAC,CAAC;IACxD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kCAAkC;IAClC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,kCAAkC;IAClC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,kCAAkC;IAClC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,wBAAgB,UAAU,CAAC,EACzB,IAAI,EACJ,KAAe,EACf,QAAQ,EACR,MAAM,EACN,SAAS,EACT,iBAA4B,EAC5B,SAAS,EACT,UAAU,EACV,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,OAAO,GACR,EAAE,eAAe,GAAG,SAAS,CAsF7B;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,CAAC,eAAe,EAAE,MAAM,CAAC,GAAG,SAAS,CAEjF"}
|
|
@@ -7,9 +7,8 @@ import type { FullscreenModalFooterProps } from '../FullscreenModal/Footer';
|
|
|
7
7
|
import type { FullscreenModalProps } from '../FullscreenModal/FullscreenModal';
|
|
8
8
|
import type { FullscreenModalHeaderProps } from '../FullscreenModal/Header';
|
|
9
9
|
import { NavigationModalBehaviour } from './NavigationModalBehaviour';
|
|
10
|
-
export
|
|
11
|
-
}
|
|
12
|
-
export declare function NavigationModal({ body, backgroundColor, footer, header }: NavigationModalProps): ReactNode;
|
|
10
|
+
export type NavigationModalProps = FullscreenModalProps;
|
|
11
|
+
export declare function NavigationModal({ body, backgroundColor, footer, header, children }: NavigationModalProps): ReactNode;
|
|
13
12
|
export declare namespace NavigationModal {
|
|
14
13
|
var Header: (props: HeaderProps) => ReactNode;
|
|
15
14
|
var Body: (props: BodyProps) => ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationModal.d.ts","sourceRoot":"","sources":["../../../src/NavigationModal/NavigationModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AAE5E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC/E,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AAE5E,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAEtE,MAAM,
|
|
1
|
+
{"version":3,"file":"NavigationModal.d.ts","sourceRoot":"","sources":["../../../src/NavigationModal/NavigationModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AAE5E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC/E,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AAE5E,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAEtE,MAAM,MAAM,oBAAoB,GAAG,oBAAoB,CAAC;AAExD,wBAAgB,eAAe,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,oBAAoB,GAAG,SAAS,CAWpH;yBAXe,eAAe;;;;;;AAa/B,KAAK,WAAW,GAAG,oBAAoB,GAAG,0BAA0B,CAAC;AAUrE,KAAK,SAAS,GAAG,kBAAkB,GAAG,wBAAwB,CAAC;AAU/D,KAAK,WAAW,GAAG,oBAAoB,GAAG,0BAA0B,CAAC"}
|
|
@@ -7784,7 +7784,10 @@ function FullscreenModalBody(_ref) {
|
|
|
7784
7784
|
} = useTheme();
|
|
7785
7785
|
const paddingBottom = shouldHandleBottomNotch ? Math.max(bottom, verticalPadding) : verticalPadding;
|
|
7786
7786
|
const paddingTop = shouldHandleTopNotch ? Math.max(top, verticalPadding) : verticalPadding;
|
|
7787
|
-
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
7787
|
+
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
7788
|
+
flexGrow: 1,
|
|
7789
|
+
flexShrink: 1
|
|
7790
|
+
}, props), {}, {
|
|
7788
7791
|
paddingX: "kitt.fullscreenModal.horizontalPadding",
|
|
7789
7792
|
paddingTop: paddingTop,
|
|
7790
7793
|
paddingBottom: paddingBottom,
|
|
@@ -8066,28 +8069,31 @@ function FullscreenModalHeader(_ref) {
|
|
|
8066
8069
|
}
|
|
8067
8070
|
|
|
8068
8071
|
function FullscreenModal({
|
|
8072
|
+
children,
|
|
8069
8073
|
body,
|
|
8070
8074
|
header,
|
|
8071
8075
|
footer,
|
|
8072
8076
|
backgroundColor
|
|
8073
8077
|
}) {
|
|
8074
|
-
return /*#__PURE__*/
|
|
8078
|
+
return /*#__PURE__*/jsx(FullscreenModalContainer, {
|
|
8075
8079
|
backgroundColor: backgroundColor,
|
|
8076
|
-
children:
|
|
8077
|
-
children: header
|
|
8078
|
-
|
|
8079
|
-
|
|
8080
|
-
|
|
8081
|
-
|
|
8082
|
-
|
|
8083
|
-
|
|
8084
|
-
|
|
8085
|
-
|
|
8086
|
-
|
|
8087
|
-
|
|
8088
|
-
|
|
8089
|
-
|
|
8090
|
-
|
|
8080
|
+
children: children || /*#__PURE__*/jsxs(Fragment, {
|
|
8081
|
+
children: [header ? /*#__PURE__*/jsx(View, {
|
|
8082
|
+
children: header
|
|
8083
|
+
}) : null, /*#__PURE__*/jsxs(View, {
|
|
8084
|
+
flexGrow: 1,
|
|
8085
|
+
flexShrink: 1,
|
|
8086
|
+
justifyContent: "space-between",
|
|
8087
|
+
children: [/*#__PURE__*/jsx(ScrollView$2, {
|
|
8088
|
+
bounces: false,
|
|
8089
|
+
contentContainerStyle: {
|
|
8090
|
+
flexGrow: 1,
|
|
8091
|
+
position: 'relative'
|
|
8092
|
+
},
|
|
8093
|
+
children: body
|
|
8094
|
+
}), footer || null]
|
|
8095
|
+
})]
|
|
8096
|
+
})
|
|
8091
8097
|
});
|
|
8092
8098
|
}
|
|
8093
8099
|
FullscreenModal.Header = FullscreenModalHeader;
|
|
@@ -8494,6 +8500,8 @@ function IconButton({
|
|
|
8494
8500
|
testID,
|
|
8495
8501
|
ariaLabel,
|
|
8496
8502
|
accessibilityRole = 'button',
|
|
8503
|
+
withBadge,
|
|
8504
|
+
bagdeCount,
|
|
8497
8505
|
isHoveredInternal,
|
|
8498
8506
|
isPressedInternal,
|
|
8499
8507
|
isFocusedInternal,
|
|
@@ -8535,26 +8543,55 @@ function IconButton({
|
|
|
8535
8543
|
}) => {
|
|
8536
8544
|
const isCurrentHovered = isHovered || isHoveredInternal;
|
|
8537
8545
|
const isCurrentPressed = isPressed || isPressedInternal;
|
|
8538
|
-
return /*#__PURE__*/jsxs(
|
|
8539
|
-
|
|
8540
|
-
isHovered: isCurrentHovered,
|
|
8541
|
-
isPressed: isCurrentPressed,
|
|
8542
|
-
scaleStyles: scaleStyles,
|
|
8543
|
-
children: [/*#__PURE__*/jsx(AnimatedBackground, {
|
|
8544
|
-
color: color,
|
|
8546
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
8547
|
+
children: [/*#__PURE__*/jsxs(AnimatedScale, {
|
|
8545
8548
|
isDisabled: disabled,
|
|
8546
8549
|
isHovered: isCurrentHovered,
|
|
8547
8550
|
isPressed: isCurrentPressed,
|
|
8548
|
-
|
|
8549
|
-
|
|
8550
|
-
|
|
8551
|
-
|
|
8552
|
-
|
|
8553
|
-
|
|
8554
|
-
|
|
8555
|
-
|
|
8551
|
+
scaleStyles: scaleStyles,
|
|
8552
|
+
children: [/*#__PURE__*/jsx(AnimatedBackground, {
|
|
8553
|
+
color: color,
|
|
8554
|
+
isDisabled: disabled,
|
|
8555
|
+
isHovered: isCurrentHovered,
|
|
8556
|
+
isPressed: isCurrentPressed,
|
|
8557
|
+
isFocused: isFocused || isFocusedInternal,
|
|
8558
|
+
opacityStyles: opacityStyles
|
|
8559
|
+
}), /*#__PURE__*/jsx(View, {
|
|
8560
|
+
alignItems: "center",
|
|
8561
|
+
justifyContent: "center",
|
|
8562
|
+
children: /*#__PURE__*/jsx(TypographyIcon, {
|
|
8563
|
+
color: getIconButtonTextColorByColor(color, disabled),
|
|
8564
|
+
icon: icon
|
|
8565
|
+
})
|
|
8566
|
+
})]
|
|
8567
|
+
}), withBadge ? /*#__PURE__*/jsx(View, {
|
|
8568
|
+
height: "10px",
|
|
8569
|
+
width: "10px",
|
|
8570
|
+
backgroundColor: lateOceanColorPalette['coral.10'],
|
|
8571
|
+
borderRadius: "kitt.iconButton.borderRadius",
|
|
8572
|
+
position: "absolute",
|
|
8573
|
+
top: "1px",
|
|
8574
|
+
right: "1px"
|
|
8575
|
+
}) : null, !withBadge && bagdeCount && bagdeCount > 0 ? /*#__PURE__*/jsx(View, {
|
|
8576
|
+
height: "20px",
|
|
8577
|
+
width: "20px",
|
|
8578
|
+
backgroundColor: lateOceanColorPalette['coral.10'],
|
|
8579
|
+
borderRadius: "kitt.iconButton.borderRadius",
|
|
8580
|
+
position: "absolute",
|
|
8581
|
+
top: "-6px",
|
|
8582
|
+
right: "-6px",
|
|
8583
|
+
children: /*#__PURE__*/jsx(View, {
|
|
8584
|
+
alignItems: "center",
|
|
8585
|
+
justifyContent: "center",
|
|
8586
|
+
marginTop: "2px",
|
|
8587
|
+
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
8588
|
+
base: "body-xs",
|
|
8589
|
+
variant: "bold",
|
|
8590
|
+
color: "white",
|
|
8591
|
+
children: bagdeCount > 5 ? '+5' : bagdeCount
|
|
8592
|
+
})
|
|
8556
8593
|
})
|
|
8557
|
-
})]
|
|
8594
|
+
}) : null]
|
|
8558
8595
|
});
|
|
8559
8596
|
}
|
|
8560
8597
|
});
|
|
@@ -11508,13 +11545,17 @@ function NavigationModal({
|
|
|
11508
11545
|
body,
|
|
11509
11546
|
backgroundColor,
|
|
11510
11547
|
footer,
|
|
11511
|
-
header
|
|
11548
|
+
header,
|
|
11549
|
+
children
|
|
11512
11550
|
}) {
|
|
11513
11551
|
const Component = useBreakpointValue({
|
|
11514
11552
|
base: FullscreenModal,
|
|
11515
11553
|
small: CardModal
|
|
11516
11554
|
});
|
|
11517
|
-
return /*#__PURE__*/jsx(Component, {
|
|
11555
|
+
return children ? /*#__PURE__*/jsx(Component, {
|
|
11556
|
+
backgroundColor: backgroundColor,
|
|
11557
|
+
children: children
|
|
11558
|
+
}) : /*#__PURE__*/jsx(Component, {
|
|
11518
11559
|
body: body,
|
|
11519
11560
|
backgroundColor: backgroundColor,
|
|
11520
11561
|
footer: footer,
|