@pushwoosh/smart-components-kit 0.4.5 → 0.4.6
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/PlatformsConfigurationDrawer/PlatformsConfigurationDrawer.d.ts +3 -0
- package/PlatformsConfigurationDrawer/PlatformsConfigurationDrawer.js +39 -0
- package/PlatformsConfigurationDrawer/components/DesktopPage/DesktopPage.d.ts +3 -0
- package/PlatformsConfigurationDrawer/components/DesktopPage/DesktopPage.js +72 -0
- package/PlatformsConfigurationDrawer/components/DesktopPage/index.d.ts +1 -0
- package/PlatformsConfigurationDrawer/components/DesktopPage/index.js +1 -0
- package/PlatformsConfigurationDrawer/components/DesktopPage/types.d.ts +6 -0
- package/PlatformsConfigurationDrawer/components/DesktopPage/types.js +1 -0
- package/PlatformsConfigurationDrawer/components/MainPage/MainPage.d.ts +3 -0
- package/PlatformsConfigurationDrawer/components/MainPage/MainPage.js +90 -0
- package/PlatformsConfigurationDrawer/components/MainPage/index.d.ts +1 -0
- package/PlatformsConfigurationDrawer/components/MainPage/index.js +1 -0
- package/PlatformsConfigurationDrawer/components/MainPage/types.d.ts +7 -0
- package/PlatformsConfigurationDrawer/components/MainPage/types.js +1 -0
- package/PlatformsConfigurationDrawer/components/MobilePage/MobilePage.d.ts +3 -0
- package/PlatformsConfigurationDrawer/components/MobilePage/MobilePage.js +88 -0
- package/PlatformsConfigurationDrawer/components/MobilePage/index.d.ts +1 -0
- package/PlatformsConfigurationDrawer/components/MobilePage/index.js +1 -0
- package/PlatformsConfigurationDrawer/components/MobilePage/types.d.ts +6 -0
- package/PlatformsConfigurationDrawer/components/MobilePage/types.js +1 -0
- package/PlatformsConfigurationDrawer/index.d.ts +1 -0
- package/PlatformsConfigurationDrawer/index.js +1 -0
- package/PlatformsConfigurationDrawer/styled.d.ts +7 -0
- package/PlatformsConfigurationDrawer/styled.js +27 -0
- package/PlatformsConfigurationDrawer/types.d.ts +6 -0
- package/PlatformsConfigurationDrawer/types.js +1 -0
- package/index.d.ts +1 -0
- package/index.js +2 -1
- package/package.json +10 -5
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
import { Drawer, DrawerBody } from '@pushwoosh/kit-drawer';
|
|
3
|
+
import { DesktopPage } from './components/DesktopPage';
|
|
4
|
+
import { MainPage } from './components/MainPage';
|
|
5
|
+
import { MobilePage } from './components/MobilePage';
|
|
6
|
+
export function PlatformsConfigurationDrawer(props) {
|
|
7
|
+
const {
|
|
8
|
+
application,
|
|
9
|
+
isOpen,
|
|
10
|
+
onClose
|
|
11
|
+
} = props;
|
|
12
|
+
const [isOpenMobilePage, setIsOpenMobilePage] = useState(false);
|
|
13
|
+
const [isOpenDesktopPage, setIsOpenDesktopPage] = useState(false);
|
|
14
|
+
const toggleMobilePage = () => setIsOpenMobilePage(prev => !prev);
|
|
15
|
+
const toggleDesktopPage = () => setIsOpenDesktopPage(prev => !prev);
|
|
16
|
+
const onCloseHandler = () => {
|
|
17
|
+
setIsOpenMobilePage(false);
|
|
18
|
+
setIsOpenDesktopPage(false);
|
|
19
|
+
onClose();
|
|
20
|
+
};
|
|
21
|
+
return React.createElement(Drawer, {
|
|
22
|
+
size: "medium",
|
|
23
|
+
isOpen: isOpen,
|
|
24
|
+
onClose: onClose
|
|
25
|
+
}, React.createElement(DrawerBody, null, isOpenMobilePage && React.createElement(MobilePage, {
|
|
26
|
+
application: application,
|
|
27
|
+
onBack: toggleMobilePage,
|
|
28
|
+
onClose: onCloseHandler
|
|
29
|
+
}), isOpenDesktopPage && React.createElement(DesktopPage, {
|
|
30
|
+
application: application,
|
|
31
|
+
onBack: toggleDesktopPage,
|
|
32
|
+
onClose: onCloseHandler
|
|
33
|
+
}), !isOpenDesktopPage && !isOpenMobilePage && React.createElement(MainPage, {
|
|
34
|
+
application: application,
|
|
35
|
+
onClickMobile: toggleMobilePage,
|
|
36
|
+
onClickDesktop: toggleDesktopPage,
|
|
37
|
+
onClose: onCloseHandler
|
|
38
|
+
})));
|
|
39
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Button } from '@pushwoosh/kit-button';
|
|
3
|
+
import { Spacing, Color, AllPlatforms } from '@pushwoosh/kit-constants';
|
|
4
|
+
import { Vertical, Columns } from '@pushwoosh/kit-helpers';
|
|
5
|
+
import { ArrowRoundIcon, CloseIcon, PlatformLogoIcon } from '@pushwoosh/kit-icons';
|
|
6
|
+
import { H2, H4, Text } from '@pushwoosh/kit-typography';
|
|
7
|
+
import { ColumnsWrapper, BreadCrumbs, Header, Close, Card, CardIcon } from '../../styled';
|
|
8
|
+
export function DesktopPage(props) {
|
|
9
|
+
const {
|
|
10
|
+
application,
|
|
11
|
+
onBack,
|
|
12
|
+
onClose
|
|
13
|
+
} = props;
|
|
14
|
+
const hasWindowsPlatform = Object.hasOwn((application === null || application === void 0 ? void 0 : application.platforms) || {}, AllPlatforms.Windows);
|
|
15
|
+
const hasMacOSPlatform = Object.hasOwn((application === null || application === void 0 ? void 0 : application.platforms) || {}, AllPlatforms.OSX);
|
|
16
|
+
return React.createElement(React.Fragment, null, React.createElement(Header, null, React.createElement(ColumnsWrapper, null, React.createElement(Columns, {
|
|
17
|
+
"$sizes": "auto 1fr auto",
|
|
18
|
+
"$gap": Spacing.S2,
|
|
19
|
+
"$alignItems": "center"
|
|
20
|
+
}, React.createElement(Button, {
|
|
21
|
+
color: "primary",
|
|
22
|
+
view: "ghost",
|
|
23
|
+
onClick: onBack
|
|
24
|
+
}, React.createElement(ArrowRoundIcon, {
|
|
25
|
+
direction: "left",
|
|
26
|
+
size: "medium",
|
|
27
|
+
view: "filled"
|
|
28
|
+
})), React.createElement(H2, null, "Platform for desktop app"), React.createElement(Close, null, React.createElement(Button, {
|
|
29
|
+
view: "ghost",
|
|
30
|
+
color: "secondary",
|
|
31
|
+
icon: React.createElement(CloseIcon, {
|
|
32
|
+
size: "medium"
|
|
33
|
+
}),
|
|
34
|
+
onClick: onClose
|
|
35
|
+
}))), React.createElement(BreadCrumbs, null, React.createElement(Text, {
|
|
36
|
+
"$color": Color.LOCKED
|
|
37
|
+
}, "Channel"), React.createElement(Text, {
|
|
38
|
+
"$color": Color.LOCKED
|
|
39
|
+
}, "\u00A0\u203A\u00A0"), React.createElement(Text, {
|
|
40
|
+
"$color": Color.LOCKED
|
|
41
|
+
}, "Platform"), React.createElement(Text, {
|
|
42
|
+
"$color": Color.PHANTOM
|
|
43
|
+
}, "\u00A0\u203A\u00A0"), React.createElement(Text, {
|
|
44
|
+
"$color": Color.PHANTOM
|
|
45
|
+
}, "Gateway"), React.createElement(Text, {
|
|
46
|
+
"$color": Color.PHANTOM
|
|
47
|
+
}, "\u00A0\u203A\u00A0"), React.createElement(Text, {
|
|
48
|
+
"$color": Color.PHANTOM
|
|
49
|
+
}, "SDK"), React.createElement(Text, {
|
|
50
|
+
"$color": Color.PHANTOM
|
|
51
|
+
}, "\u00A0\u203A\u00A0"), React.createElement(Text, {
|
|
52
|
+
"$color": Color.PHANTOM
|
|
53
|
+
}, "Test message")))), React.createElement(Vertical, {
|
|
54
|
+
"$gap": Spacing.S3,
|
|
55
|
+
"$padding": `${Spacing.S4} 0 0`
|
|
56
|
+
}, React.createElement(H4, null, "Which platform will we configure first?"), React.createElement(Columns, {
|
|
57
|
+
"$gap": Spacing.S2,
|
|
58
|
+
"$sizes": "1fr 1fr"
|
|
59
|
+
}, hasWindowsPlatform && React.createElement(Card, {
|
|
60
|
+
as: "a",
|
|
61
|
+
href: `/applications/${application === null || application === void 0 ? void 0 : application.code}/configure`
|
|
62
|
+
}, React.createElement(CardIcon, null, React.createElement(PlatformLogoIcon, {
|
|
63
|
+
type: "windows",
|
|
64
|
+
size: "medium"
|
|
65
|
+
})), React.createElement(H4, null, "Windows")), hasMacOSPlatform && React.createElement(Card, {
|
|
66
|
+
as: "a",
|
|
67
|
+
href: `/applications/${application === null || application === void 0 ? void 0 : application.code}/configure/osx`
|
|
68
|
+
}, React.createElement(CardIcon, null, React.createElement(PlatformLogoIcon, {
|
|
69
|
+
type: "macos",
|
|
70
|
+
size: "medium"
|
|
71
|
+
})), React.createElement(H4, null, "MacOS")))));
|
|
72
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DesktopPage } from './DesktopPage';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DesktopPage } from './DesktopPage';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Button } from '@pushwoosh/kit-button';
|
|
3
|
+
import { Spacing, Color, AllPlatforms } from '@pushwoosh/kit-constants';
|
|
4
|
+
import { Vertical, Columns } from '@pushwoosh/kit-helpers';
|
|
5
|
+
import { CloseIcon, DeviceIcon, EmailIcon, WhatsappIcon, SmsIcon } from '@pushwoosh/kit-icons';
|
|
6
|
+
import { H2, Paragraph, H4, Text } from '@pushwoosh/kit-typography';
|
|
7
|
+
import { Header, Close, Card, CardIcon } from '../../styled';
|
|
8
|
+
export function MainPage(props) {
|
|
9
|
+
const {
|
|
10
|
+
application,
|
|
11
|
+
onClickDesktop,
|
|
12
|
+
onClickMobile,
|
|
13
|
+
onClose
|
|
14
|
+
} = props;
|
|
15
|
+
const hasDesktopPlatforms = Object.hasOwn((application === null || application === void 0 ? void 0 : application.platforms) || {}, AllPlatforms.Windows) || Object.hasOwn((application === null || application === void 0 ? void 0 : application.platforms) || {}, AllPlatforms.OSX);
|
|
16
|
+
return React.createElement(React.Fragment, null, React.createElement(Header, null, React.createElement(Vertical, {
|
|
17
|
+
"$gap": Spacing.S1
|
|
18
|
+
}, React.createElement(H2, null, "Channel to configure"), React.createElement(Paragraph, null, React.createElement(Text, {
|
|
19
|
+
"$color": Color.LOCKED
|
|
20
|
+
}, "Channel"), React.createElement(Text, {
|
|
21
|
+
"$color": Color.PHANTOM
|
|
22
|
+
}, "\u00A0\u203A\u00A0"), React.createElement(Text, {
|
|
23
|
+
"$color": Color.PHANTOM
|
|
24
|
+
}, "Platform"), React.createElement(Text, {
|
|
25
|
+
"$color": Color.PHANTOM
|
|
26
|
+
}, "\u00A0\u203A\u00A0"), React.createElement(Text, {
|
|
27
|
+
"$color": Color.PHANTOM
|
|
28
|
+
}, "Gateway"), React.createElement(Text, {
|
|
29
|
+
"$color": Color.PHANTOM
|
|
30
|
+
}, "\u00A0\u203A\u00A0"), React.createElement(Text, {
|
|
31
|
+
"$color": Color.PHANTOM
|
|
32
|
+
}, "SDK"), React.createElement(Text, {
|
|
33
|
+
"$color": Color.PHANTOM
|
|
34
|
+
}, "\u00A0\u203A\u00A0"), React.createElement(Text, {
|
|
35
|
+
"$color": Color.PHANTOM
|
|
36
|
+
}, "Test message"))), React.createElement(Close, null, React.createElement(Button, {
|
|
37
|
+
view: "ghost",
|
|
38
|
+
color: "secondary",
|
|
39
|
+
icon: React.createElement(CloseIcon, {
|
|
40
|
+
size: "medium"
|
|
41
|
+
}),
|
|
42
|
+
onClick: onClose
|
|
43
|
+
}))), React.createElement(Vertical, {
|
|
44
|
+
"$gap": Spacing.S3,
|
|
45
|
+
"$padding": `${Spacing.S4} 0 0`
|
|
46
|
+
}, React.createElement(H4, null, "Where would you like to send your messages?"), React.createElement(Columns, {
|
|
47
|
+
"$gap": Spacing.S2,
|
|
48
|
+
"$sizes": "1fr 1fr"
|
|
49
|
+
}, React.createElement(Card, {
|
|
50
|
+
as: "div",
|
|
51
|
+
onClick: onClickMobile
|
|
52
|
+
}, React.createElement(CardIcon, null, React.createElement(DeviceIcon, {
|
|
53
|
+
type: "mobile",
|
|
54
|
+
size: "medium",
|
|
55
|
+
view: "filled"
|
|
56
|
+
})), React.createElement(H4, null, "Mobile application")), hasDesktopPlatforms && React.createElement(Card, {
|
|
57
|
+
as: "div",
|
|
58
|
+
onClick: onClickDesktop
|
|
59
|
+
}, React.createElement(CardIcon, null, React.createElement(DeviceIcon, {
|
|
60
|
+
type: "desktop",
|
|
61
|
+
size: "medium",
|
|
62
|
+
view: "filled"
|
|
63
|
+
})), React.createElement(H4, null, "Desktop application")), React.createElement(Card, {
|
|
64
|
+
as: "a",
|
|
65
|
+
href: `/applications/${application === null || application === void 0 ? void 0 : application.code}/configure/web`
|
|
66
|
+
}, React.createElement(CardIcon, null, React.createElement(DeviceIcon, {
|
|
67
|
+
type: "web",
|
|
68
|
+
size: "medium",
|
|
69
|
+
view: "filled"
|
|
70
|
+
})), React.createElement(H4, null, "Website")), React.createElement(Card, {
|
|
71
|
+
as: "a",
|
|
72
|
+
href: `/applications/${application === null || application === void 0 ? void 0 : application.code}/configure/email`
|
|
73
|
+
}, React.createElement(CardIcon, null, React.createElement(EmailIcon, {
|
|
74
|
+
size: "medium",
|
|
75
|
+
view: "filled"
|
|
76
|
+
})), React.createElement(H4, null, "Emails")), React.createElement(Card, {
|
|
77
|
+
as: "a",
|
|
78
|
+
href: `/applications/${application === null || application === void 0 ? void 0 : application.code}/configure`
|
|
79
|
+
}, React.createElement(CardIcon, null, React.createElement(WhatsappIcon, {
|
|
80
|
+
size: "medium",
|
|
81
|
+
view: "filled"
|
|
82
|
+
})), React.createElement(H4, null, "Whatsapp")), React.createElement(Card, {
|
|
83
|
+
as: "a",
|
|
84
|
+
href: "https://www.pushwoosh.com/demo/",
|
|
85
|
+
target: "_blank"
|
|
86
|
+
}, React.createElement(CardIcon, null, React.createElement(SmsIcon, {
|
|
87
|
+
size: "medium",
|
|
88
|
+
view: "filled"
|
|
89
|
+
})), React.createElement(H4, null, "SMS")))));
|
|
90
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MainPage } from './MainPage';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MainPage } from './MainPage';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Button } from '@pushwoosh/kit-button';
|
|
3
|
+
import { Spacing, Color } from '@pushwoosh/kit-constants';
|
|
4
|
+
import { Columns, Vertical } from '@pushwoosh/kit-helpers';
|
|
5
|
+
import { ArrowRoundIcon, CloseIcon, PlatformLogoIcon } from '@pushwoosh/kit-icons';
|
|
6
|
+
import { H2, H4, Text } from '@pushwoosh/kit-typography';
|
|
7
|
+
import { ColumnsWrapper, BreadCrumbs, Header, Close, Card, CardIcon } from '../../styled';
|
|
8
|
+
export function MobilePage(props) {
|
|
9
|
+
const {
|
|
10
|
+
application,
|
|
11
|
+
onBack,
|
|
12
|
+
onClose
|
|
13
|
+
} = props;
|
|
14
|
+
return React.createElement(React.Fragment, null, React.createElement(Header, null, React.createElement(ColumnsWrapper, null, React.createElement(Columns, {
|
|
15
|
+
"$sizes": "auto 1fr auto",
|
|
16
|
+
"$gap": Spacing.S2,
|
|
17
|
+
"$alignItems": "center"
|
|
18
|
+
}, React.createElement(Button, {
|
|
19
|
+
color: "primary",
|
|
20
|
+
view: "ghost",
|
|
21
|
+
onClick: onBack
|
|
22
|
+
}, React.createElement(ArrowRoundIcon, {
|
|
23
|
+
direction: "left",
|
|
24
|
+
size: "medium",
|
|
25
|
+
view: "filled"
|
|
26
|
+
})), React.createElement(H2, null, "Platform for mobile app"), React.createElement(Close, null, React.createElement(Button, {
|
|
27
|
+
view: "ghost",
|
|
28
|
+
color: "secondary",
|
|
29
|
+
icon: React.createElement(CloseIcon, {
|
|
30
|
+
size: "medium"
|
|
31
|
+
}),
|
|
32
|
+
onClick: onClose
|
|
33
|
+
}))), React.createElement(BreadCrumbs, null, React.createElement(Text, {
|
|
34
|
+
"$color": Color.LOCKED
|
|
35
|
+
}, "Channel"), React.createElement(Text, {
|
|
36
|
+
"$color": Color.LOCKED
|
|
37
|
+
}, "\u00A0\u203A\u00A0"), React.createElement(Text, {
|
|
38
|
+
"$color": Color.LOCKED
|
|
39
|
+
}, "Platform"), React.createElement(Text, {
|
|
40
|
+
"$color": Color.PHANTOM
|
|
41
|
+
}, "\u00A0\u203A\u00A0"), React.createElement(Text, {
|
|
42
|
+
"$color": Color.PHANTOM
|
|
43
|
+
}, "Gateway"), React.createElement(Text, {
|
|
44
|
+
"$color": Color.PHANTOM
|
|
45
|
+
}, "\u00A0\u203A\u00A0"), React.createElement(Text, {
|
|
46
|
+
"$color": Color.PHANTOM
|
|
47
|
+
}, "SDK"), React.createElement(Text, {
|
|
48
|
+
"$color": Color.PHANTOM
|
|
49
|
+
}, "\u00A0\u203A\u00A0"), React.createElement(Text, {
|
|
50
|
+
"$color": Color.PHANTOM
|
|
51
|
+
}, "Test message")))), React.createElement(Vertical, {
|
|
52
|
+
"$gap": Spacing.S3,
|
|
53
|
+
"$padding": `${Spacing.S4} 0 0`
|
|
54
|
+
}, React.createElement(H4, null, "Which platform will we configure first?"), React.createElement(Columns, {
|
|
55
|
+
"$gap": Spacing.S2,
|
|
56
|
+
"$sizes": "1fr 1fr"
|
|
57
|
+
}, React.createElement(Card, {
|
|
58
|
+
as: "a",
|
|
59
|
+
href: `/applications/${application === null || application === void 0 ? void 0 : application.code}/configure/ios`
|
|
60
|
+
}, React.createElement(CardIcon, null, React.createElement(PlatformLogoIcon, {
|
|
61
|
+
type: "apple",
|
|
62
|
+
size: "medium"
|
|
63
|
+
})), React.createElement(H4, null, "iOS")), React.createElement(Card, {
|
|
64
|
+
as: "a",
|
|
65
|
+
href: `/applications/${application === null || application === void 0 ? void 0 : application.code}/configure/android`
|
|
66
|
+
}, React.createElement(CardIcon, null, React.createElement(PlatformLogoIcon, {
|
|
67
|
+
type: "android",
|
|
68
|
+
size: "medium"
|
|
69
|
+
})), React.createElement(H4, null, "Android")), React.createElement(Card, {
|
|
70
|
+
as: "a",
|
|
71
|
+
href: `/applications/${application === null || application === void 0 ? void 0 : application.code}/configure/xiaomi`
|
|
72
|
+
}, React.createElement(CardIcon, null, React.createElement(PlatformLogoIcon, {
|
|
73
|
+
type: "xiaomi",
|
|
74
|
+
size: "medium"
|
|
75
|
+
})), React.createElement(H4, null, "Xiaomi")), React.createElement(Card, {
|
|
76
|
+
as: "a",
|
|
77
|
+
href: `/applications/${application === null || application === void 0 ? void 0 : application.code}/configure/huawei`
|
|
78
|
+
}, React.createElement(CardIcon, null, React.createElement(PlatformLogoIcon, {
|
|
79
|
+
type: "huawei",
|
|
80
|
+
size: "medium"
|
|
81
|
+
})), React.createElement(H4, null, "Huawei")), React.createElement(Card, {
|
|
82
|
+
as: "a",
|
|
83
|
+
href: `/applications/${application === null || application === void 0 ? void 0 : application.code}/configure`
|
|
84
|
+
}, React.createElement(CardIcon, null, React.createElement(PlatformLogoIcon, {
|
|
85
|
+
type: "amazon",
|
|
86
|
+
size: "medium"
|
|
87
|
+
})), React.createElement(H4, null, "Amazon")))));
|
|
88
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MobilePage } from './MobilePage';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MobilePage } from './MobilePage';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PlatformsConfigurationDrawer } from './PlatformsConfigurationDrawer';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PlatformsConfigurationDrawer } from './PlatformsConfigurationDrawer';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Link } from '@pushwoosh/kit-link';
|
|
2
|
+
export declare const Header: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const Close: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
+
export declare const ColumnsWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
+
export declare const BreadCrumbs: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
|
+
export declare const Card: import("styled-components").StyledComponent<typeof Link, any, {}, never>;
|
|
7
|
+
export declare const CardIcon: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import { Color, Spacing } from '@pushwoosh/kit-constants';
|
|
3
|
+
import { Link } from '@pushwoosh/kit-link';
|
|
4
|
+
export const Header = styled.div.withConfig({
|
|
5
|
+
displayName: "Header",
|
|
6
|
+
componentId: "sc-1rmglxf-0"
|
|
7
|
+
})(["position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;background:", ";padding:", " 0 ", ";gap:", ";"], Color.CLEAR, Spacing.S11, Spacing.S3, Spacing.S3);
|
|
8
|
+
export const Close = styled.div.withConfig({
|
|
9
|
+
displayName: "Close",
|
|
10
|
+
componentId: "sc-1rmglxf-1"
|
|
11
|
+
})(["display:flex;justify-content:center;align-items:center;width:", ";height:", ";cursor:pointer;"], Spacing.S10, Spacing.S10);
|
|
12
|
+
export const ColumnsWrapper = styled.div.withConfig({
|
|
13
|
+
displayName: "ColumnsWrapper",
|
|
14
|
+
componentId: "sc-1rmglxf-2"
|
|
15
|
+
})(["flex:1;"]);
|
|
16
|
+
export const BreadCrumbs = styled.div.withConfig({
|
|
17
|
+
displayName: "BreadCrumbs",
|
|
18
|
+
componentId: "sc-1rmglxf-3"
|
|
19
|
+
})(["padding-left:", ";"], Spacing.S13);
|
|
20
|
+
export const Card = styled(Link).withConfig({
|
|
21
|
+
displayName: "Card",
|
|
22
|
+
componentId: "sc-1rmglxf-4"
|
|
23
|
+
})(["display:flex;align-items:center;padding:", ";gap:", ";border:1px solid ", ";border-radius:8px;color:", ";cursor:pointer;&:hover,&:focus,&:active{color:", ";text-decoration:none;background-color:", ";}&:focus,&:active{opacity:.5;}"], Spacing.S5, Spacing.S5, Color.DIVIDER, Color.MAIN, Color.MAIN, Color.ROW_HOVER);
|
|
24
|
+
export const CardIcon = styled.div.withConfig({
|
|
25
|
+
displayName: "CardIcon",
|
|
26
|
+
componentId: "sc-1rmglxf-5"
|
|
27
|
+
})(["padding:", ";color:", ";background-color:", ";border-radius:8px;"], Spacing.S1, Color.PRIMARY, Color.BRIGHT_LIGHT);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -5,8 +5,9 @@
|
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"scripts": {
|
|
8
|
-
"start": "
|
|
8
|
+
"start": "npm run playground",
|
|
9
9
|
"build": "pushwoosh-engine lib:build",
|
|
10
|
+
"playground": "`pushwoosh-engine lib:command:playground`",
|
|
10
11
|
"check": "npm run check:lint && npm run check:types",
|
|
11
12
|
"check:lint": "echo \"Run check:lint\" && NODE_ENV=production eslint ./src",
|
|
12
13
|
"check:lint-fix": "echo \"Run check:lint\" && NODE_ENV=production eslint . --fix",
|
|
@@ -17,14 +18,18 @@
|
|
|
17
18
|
"@pushwoosh/dumb-components": "^0.0.18",
|
|
18
19
|
"@pushwoosh/kit-button": "^2.2.5",
|
|
19
20
|
"@pushwoosh/kit-constants": "^1.6.5",
|
|
21
|
+
"@pushwoosh/kit-drawer": "^1.0.11",
|
|
20
22
|
"@pushwoosh/kit-helpers": "^4.6.1",
|
|
23
|
+
"@pushwoosh/kit-icons": "^2.1.1",
|
|
24
|
+
"@pushwoosh/kit-link": "^1.5.0",
|
|
21
25
|
"@pushwoosh/kit-select": "^1.1.0",
|
|
22
26
|
"@pushwoosh/kit-skeleton": "^1.1.6",
|
|
23
27
|
"@pushwoosh/kit-spinner": "^1.5.1",
|
|
24
|
-
"@pushwoosh/kit-text-input": "^1.5.1"
|
|
28
|
+
"@pushwoosh/kit-text-input": "^1.5.1",
|
|
29
|
+
"@pushwoosh/kit-typography": "^1.7.2"
|
|
25
30
|
},
|
|
26
31
|
"devDependencies": {
|
|
27
|
-
"@pushwoosh/frontend-builder-engine": "^1.0.
|
|
32
|
+
"@pushwoosh/frontend-builder-engine": "^1.0.11",
|
|
28
33
|
"@pushwoosh/grpc-bridge": "^1.5.36",
|
|
29
34
|
"@pushwoosh/http-client": "^2.4.12",
|
|
30
35
|
"@pushwoosh/session-store": "^2.5.0",
|
|
@@ -41,13 +46,13 @@
|
|
|
41
46
|
"peerDependencies": {
|
|
42
47
|
"@pushwoosh/grpc-bridge": "^1.5.36",
|
|
43
48
|
"@pushwoosh/http-client": "^2.4.12",
|
|
44
|
-
"@pushwoosh/session-store": "^2.5.0",
|
|
45
49
|
"@pushwoosh/rpc-v2-http-api-data": "^0.1.414",
|
|
50
|
+
"@pushwoosh/session-store": "^2.5.0",
|
|
46
51
|
"react": "^16.14.0 || ^18.0.0",
|
|
47
52
|
"react-dom": "^16.14.0 || ^18.0.0"
|
|
48
53
|
},
|
|
49
54
|
"engines": {
|
|
50
55
|
"node": ">= 18"
|
|
51
56
|
},
|
|
52
|
-
"version": "0.4.
|
|
57
|
+
"version": "0.4.6"
|
|
53
58
|
}
|