@adiba-banking-cloud/backoffice 0.0.18 → 0.0.20
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/build/index.cjs.js/index.js +284 -196
- package/build/index.esm.js/index.js +282 -195
- package/build/typings/components/documents/file/File.d.ts +3 -0
- package/build/typings/components/documents/file/File.stories.d.ts +6 -0
- package/build/typings/components/documents/file/File.types.d.ts +11 -0
- package/build/typings/components/documents/folder/Folder.d.ts +0 -0
- package/build/typings/components/documents/folder/Folder.stories.d.ts +0 -0
- package/build/typings/components/documents/folder/Folder.types.d.ts +0 -0
- package/build/typings/components/documents/image/Image.d.ts +0 -0
- package/build/typings/components/documents/image/Image.stories.d.ts +0 -0
- package/build/typings/components/documents/image/Image.types.d.ts +0 -0
- package/build/typings/components/index.d.ts +1 -0
- package/build/typings/components/tables/paginated/Paginated.d.ts +0 -0
- package/build/typings/components/tables/paginated/Paginated.stories.d.ts +0 -0
- package/build/typings/components/tables/paginated/Paginated.types.d.ts +0 -0
- package/build/typings/components/tables/simple/Simple.d.ts +3 -0
- package/build/typings/components/tables/simple/Simple.stories.d.ts +7 -0
- package/build/typings/components/tables/simple/Simple.types.d.ts +26 -0
- package/build/typings/components/tables/simple/SimpleBody.d.ts +3 -0
- package/build/typings/components/tables/simple/SimpleHeader.d.ts +2 -0
- package/build/typings/components/widgets/payment_method/PaymentMethod.types.d.ts +1 -1
- package/build/typings/components/widgets/payment_method/Payment_method.d.ts +0 -0
- package/build/typings/components/widgets/payment_method/Payment_method.stories.d.ts +0 -0
- package/build/typings/components/widgets/payment_method/Payment_method.types.d.ts +0 -0
- package/build/typings/components/widgets/subscription_plan/SubscriptionPlan.types.d.ts +4 -1
- package/build/typings/components/widgets/subscription_plan/Subscription_plan.d.ts +0 -0
- package/build/typings/components/widgets/subscription_plan/Subscription_plan.stories.d.ts +0 -0
- package/build/typings/components/widgets/subscription_plan/Subscription_plan.types.d.ts +0 -0
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import _extends from '@babel/runtime/helpers/extends';
|
|
2
2
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
3
|
-
import React, { useRef, useMemo, useEffect } from 'react';
|
|
3
|
+
import React$1, { useRef, useMemo, useEffect } from 'react';
|
|
4
4
|
import HighchartsReact from 'highcharts-react-official';
|
|
5
5
|
import HighchartsRounded from 'highcharts-rounded-corners';
|
|
6
6
|
import * as IconSax from 'iconsax-react';
|
|
7
7
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
8
|
-
import { Center, Image, Space, Popover, Button, Stack, Divider, Group, Text, Menu, Avatar, Badge, NavLink, Card, TextInput, ActionIcon, Box, Title, createTheme, SegmentedControl, Breadcrumbs, Anchor, ColorSwatch, rem, SimpleGrid, Indicator } from '@mantine/core';
|
|
8
|
+
import { Center, Image, Space, Popover, Button, Stack, Divider, Group, Text, Menu, Avatar, Badge, NavLink, Card, TextInput, ActionIcon, Box, Title, createTheme, SegmentedControl, Breadcrumbs, Anchor, ColorSwatch, rem, SimpleGrid, Indicator, Table } from '@mantine/core';
|
|
9
9
|
import { Link } from 'react-router-dom';
|
|
10
10
|
import { useDisclosure } from '@mantine/hooks';
|
|
11
11
|
import '@fontsource/poppins/100.css';
|
|
@@ -11212,7 +11212,7 @@ const Column = props => {
|
|
|
11212
11212
|
chartRef.current.chart.update(chartOptions, true);
|
|
11213
11213
|
}
|
|
11214
11214
|
}, [chartOptions]);
|
|
11215
|
-
return /*#__PURE__*/React.createElement(HighchartsReact, {
|
|
11215
|
+
return /*#__PURE__*/React$1.createElement(HighchartsReact, {
|
|
11216
11216
|
highcharts: Highcharts,
|
|
11217
11217
|
ref: chartRef,
|
|
11218
11218
|
options: chartOptions
|
|
@@ -11230,7 +11230,7 @@ const EqualizerColumn = props => {
|
|
|
11230
11230
|
colors: [props.color || "blue"],
|
|
11231
11231
|
title: props.title
|
|
11232
11232
|
};
|
|
11233
|
-
return /*#__PURE__*/React.createElement(Column, chartOptions);
|
|
11233
|
+
return /*#__PURE__*/React$1.createElement(Column, chartOptions);
|
|
11234
11234
|
};
|
|
11235
11235
|
const SimpleColumn = props => {
|
|
11236
11236
|
const chartOptions = {
|
|
@@ -11244,10 +11244,10 @@ const SimpleColumn = props => {
|
|
|
11244
11244
|
colors: [props.color || "gray"],
|
|
11245
11245
|
title: props.title
|
|
11246
11246
|
};
|
|
11247
|
-
return /*#__PURE__*/React.createElement(Column, chartOptions);
|
|
11247
|
+
return /*#__PURE__*/React$1.createElement(Column, chartOptions);
|
|
11248
11248
|
};
|
|
11249
11249
|
const StackedColumn = props => {
|
|
11250
|
-
return /*#__PURE__*/React.createElement(Column, _extends({}, props, {
|
|
11250
|
+
return /*#__PURE__*/React$1.createElement(Column, _extends({}, props, {
|
|
11251
11251
|
equalizer: false
|
|
11252
11252
|
}));
|
|
11253
11253
|
};
|
|
@@ -11382,7 +11382,7 @@ const Icons = _ref => {
|
|
|
11382
11382
|
color
|
|
11383
11383
|
} = _ref;
|
|
11384
11384
|
const Element = IconSax[name];
|
|
11385
|
-
return /*#__PURE__*/React.createElement(Element, {
|
|
11385
|
+
return /*#__PURE__*/React$1.createElement(Element, {
|
|
11386
11386
|
size,
|
|
11387
11387
|
color,
|
|
11388
11388
|
variant,
|
|
@@ -11407,15 +11407,15 @@ const Logo = _ref => {
|
|
|
11407
11407
|
fit
|
|
11408
11408
|
} = _ref,
|
|
11409
11409
|
rest = _objectWithoutProperties(_ref, _excluded$7);
|
|
11410
|
-
return /*#__PURE__*/React.createElement(Center, _extends({}, rest, {
|
|
11410
|
+
return /*#__PURE__*/React$1.createElement(Center, _extends({}, rest, {
|
|
11411
11411
|
component: Link,
|
|
11412
11412
|
display: "flex",
|
|
11413
11413
|
to: href
|
|
11414
|
-
}), /*#__PURE__*/React.createElement(Image, {
|
|
11414
|
+
}), /*#__PURE__*/React$1.createElement(Image, {
|
|
11415
11415
|
fallbackSrc: fallbackSrc,
|
|
11416
11416
|
src: src,
|
|
11417
11417
|
fit: fit
|
|
11418
|
-
}), /*#__PURE__*/React.createElement(Space, {
|
|
11418
|
+
}), /*#__PURE__*/React$1.createElement(Space, {
|
|
11419
11419
|
flex: 1,
|
|
11420
11420
|
hidden: true
|
|
11421
11421
|
}));
|
|
@@ -11428,7 +11428,7 @@ const DynamicLogo = _ref2 => {
|
|
|
11428
11428
|
w = 180
|
|
11429
11429
|
} = _ref2,
|
|
11430
11430
|
rest = _objectWithoutProperties(_ref2, _excluded2$2);
|
|
11431
|
-
return /*#__PURE__*/React.createElement(Logo, _extends({}, rest, {
|
|
11431
|
+
return /*#__PURE__*/React$1.createElement(Logo, _extends({}, rest, {
|
|
11432
11432
|
href,
|
|
11433
11433
|
src,
|
|
11434
11434
|
fit,
|
|
@@ -11442,7 +11442,7 @@ const DynamicShigaLogo = _ref3 => {
|
|
|
11442
11442
|
fit = "contain"
|
|
11443
11443
|
} = _ref3,
|
|
11444
11444
|
rest = _objectWithoutProperties(_ref3, _excluded3$1);
|
|
11445
|
-
return /*#__PURE__*/React.createElement(Logo, _extends({}, rest, {
|
|
11445
|
+
return /*#__PURE__*/React$1.createElement(Logo, _extends({}, rest, {
|
|
11446
11446
|
href,
|
|
11447
11447
|
src,
|
|
11448
11448
|
fit,
|
|
@@ -11457,13 +11457,13 @@ const ApplicationMenuTarget = _ref => {
|
|
|
11457
11457
|
toggle
|
|
11458
11458
|
} = _ref;
|
|
11459
11459
|
_objectWithoutProperties(_ref, _excluded$6);
|
|
11460
|
-
return /*#__PURE__*/React.createElement(Popover.Target, null, /*#__PURE__*/React.createElement(Button, {
|
|
11460
|
+
return /*#__PURE__*/React$1.createElement(Popover.Target, null, /*#__PURE__*/React$1.createElement(Button, {
|
|
11461
11461
|
variant: "transparent",
|
|
11462
11462
|
justify: "space-between",
|
|
11463
11463
|
h: 60,
|
|
11464
11464
|
fw: 300,
|
|
11465
11465
|
w: 200,
|
|
11466
|
-
rightSection: /*#__PURE__*/React.createElement(Icons, {
|
|
11466
|
+
rightSection: /*#__PURE__*/React$1.createElement(Icons, {
|
|
11467
11467
|
name: "ArrowDown2",
|
|
11468
11468
|
size: 16
|
|
11469
11469
|
}),
|
|
@@ -11478,32 +11478,32 @@ const ApplicationMenuDropdown = _ref => {
|
|
|
11478
11478
|
moreLink,
|
|
11479
11479
|
toggle
|
|
11480
11480
|
} = _ref;
|
|
11481
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Popover.Dropdown, {
|
|
11481
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(Popover.Dropdown, {
|
|
11482
11482
|
ml: "md",
|
|
11483
11483
|
p: 5
|
|
11484
|
-
}, /*#__PURE__*/React.createElement(Stack, {
|
|
11484
|
+
}, /*#__PURE__*/React$1.createElement(Stack, {
|
|
11485
11485
|
gap: 5,
|
|
11486
11486
|
p: 0
|
|
11487
|
-
}, /*#__PURE__*/React.createElement(Stack, {
|
|
11487
|
+
}, /*#__PURE__*/React$1.createElement(Stack, {
|
|
11488
11488
|
gap: 5,
|
|
11489
11489
|
align: "flex-start"
|
|
11490
|
-
}, items.map((item, index) => /*#__PURE__*/React.createElement(DropdownItem, _extends({
|
|
11490
|
+
}, items.map((item, index) => /*#__PURE__*/React$1.createElement(DropdownItem, _extends({
|
|
11491
11491
|
key: "item-".concat(index)
|
|
11492
11492
|
}, item, {
|
|
11493
11493
|
onClick: e => {
|
|
11494
11494
|
toggle();
|
|
11495
11495
|
item.onClick(e);
|
|
11496
11496
|
}
|
|
11497
|
-
})))), /*#__PURE__*/React.createElement(Divider, null), /*#__PURE__*/React.createElement(Group, {
|
|
11497
|
+
})))), /*#__PURE__*/React$1.createElement(Divider, null), /*#__PURE__*/React$1.createElement(Group, {
|
|
11498
11498
|
grow: true,
|
|
11499
11499
|
justify: "center"
|
|
11500
|
-
}, /*#__PURE__*/React.createElement(Button, {
|
|
11500
|
+
}, /*#__PURE__*/React$1.createElement(Button, {
|
|
11501
11501
|
variant: "subtle",
|
|
11502
11502
|
p: 0,
|
|
11503
11503
|
component: Link,
|
|
11504
11504
|
to: moreLink,
|
|
11505
11505
|
onClick: toggle
|
|
11506
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
11506
|
+
}, /*#__PURE__*/React$1.createElement(Text, {
|
|
11507
11507
|
size: "xs",
|
|
11508
11508
|
fw: 300,
|
|
11509
11509
|
w: 320
|
|
@@ -11520,22 +11520,22 @@ const DropdownItem = _ref2 => {
|
|
|
11520
11520
|
inactiveColor = "adiba",
|
|
11521
11521
|
onClick
|
|
11522
11522
|
} = _ref2;
|
|
11523
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, {
|
|
11523
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(Button, {
|
|
11524
11524
|
variant: "subtle",
|
|
11525
11525
|
fw: 300,
|
|
11526
11526
|
mih: 70,
|
|
11527
11527
|
bg: active ? activeBg : {},
|
|
11528
11528
|
c: active ? activeColor : inactiveColor,
|
|
11529
11529
|
onClick: onClick
|
|
11530
|
-
}, /*#__PURE__*/React.createElement(Group, {
|
|
11530
|
+
}, /*#__PURE__*/React$1.createElement(Group, {
|
|
11531
11531
|
w: 320
|
|
11532
|
-
}, /*#__PURE__*/React.createElement(Icons, icon), /*#__PURE__*/React.createElement(Stack, {
|
|
11532
|
+
}, /*#__PURE__*/React$1.createElement(Icons, icon), /*#__PURE__*/React$1.createElement(Stack, {
|
|
11533
11533
|
align: "flex-start",
|
|
11534
11534
|
gap: 5
|
|
11535
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
11535
|
+
}, /*#__PURE__*/React$1.createElement(Text, {
|
|
11536
11536
|
size: "sm",
|
|
11537
11537
|
fw: 300
|
|
11538
|
-
}, title), /*#__PURE__*/React.createElement(Text, {
|
|
11538
|
+
}, title), /*#__PURE__*/React$1.createElement(Text, {
|
|
11539
11539
|
size: "xs",
|
|
11540
11540
|
fz: 11,
|
|
11541
11541
|
fw: 300
|
|
@@ -11553,7 +11553,7 @@ const ApplicationMenu = _ref => {
|
|
|
11553
11553
|
const [opened, {
|
|
11554
11554
|
toggle
|
|
11555
11555
|
}] = useDisclosure(false);
|
|
11556
|
-
return /*#__PURE__*/React.createElement(Popover, {
|
|
11556
|
+
return /*#__PURE__*/React$1.createElement(Popover, {
|
|
11557
11557
|
transitionProps: {
|
|
11558
11558
|
transition
|
|
11559
11559
|
},
|
|
@@ -11567,9 +11567,9 @@ const ApplicationMenu = _ref => {
|
|
|
11567
11567
|
radius: "sm",
|
|
11568
11568
|
opened: opened,
|
|
11569
11569
|
onChange: toggle
|
|
11570
|
-
}, /*#__PURE__*/React.createElement(ApplicationMenuTarget, {
|
|
11570
|
+
}, /*#__PURE__*/React$1.createElement(ApplicationMenuTarget, {
|
|
11571
11571
|
toggle
|
|
11572
|
-
}, label), /*#__PURE__*/React.createElement(ApplicationMenuDropdown, {
|
|
11572
|
+
}, label), /*#__PURE__*/React$1.createElement(ApplicationMenuDropdown, {
|
|
11573
11573
|
items,
|
|
11574
11574
|
moreLink,
|
|
11575
11575
|
moreText,
|
|
@@ -11583,28 +11583,28 @@ const UserMenuTarget = _ref => {
|
|
|
11583
11583
|
username,
|
|
11584
11584
|
avatar
|
|
11585
11585
|
} = _ref;
|
|
11586
|
-
return /*#__PURE__*/React.createElement(Menu.Target, null, /*#__PURE__*/React.createElement(Button, {
|
|
11586
|
+
return /*#__PURE__*/React$1.createElement(Menu.Target, null, /*#__PURE__*/React$1.createElement(Button, {
|
|
11587
11587
|
variant: "subtle",
|
|
11588
11588
|
h: 50,
|
|
11589
11589
|
px: 10,
|
|
11590
11590
|
radius: "md"
|
|
11591
|
-
}, /*#__PURE__*/React.createElement(Group, {
|
|
11591
|
+
}, /*#__PURE__*/React$1.createElement(Group, {
|
|
11592
11592
|
gap: "sm"
|
|
11593
|
-
}, /*#__PURE__*/React.createElement(Avatar, {
|
|
11593
|
+
}, /*#__PURE__*/React$1.createElement(Avatar, {
|
|
11594
11594
|
radius: "xl",
|
|
11595
11595
|
src: avatar
|
|
11596
|
-
}), /*#__PURE__*/React.createElement(Stack, {
|
|
11596
|
+
}), /*#__PURE__*/React$1.createElement(Stack, {
|
|
11597
11597
|
gap: 0,
|
|
11598
11598
|
align: "flex-start",
|
|
11599
11599
|
visibleFrom: "md",
|
|
11600
11600
|
fw: 300
|
|
11601
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
11601
|
+
}, /*#__PURE__*/React$1.createElement(Text, {
|
|
11602
11602
|
fw: 300,
|
|
11603
11603
|
size: "sm"
|
|
11604
|
-
}, name), /*#__PURE__*/React.createElement(Text, {
|
|
11604
|
+
}, name), /*#__PURE__*/React$1.createElement(Text, {
|
|
11605
11605
|
c: "dimmed",
|
|
11606
11606
|
size: "xs"
|
|
11607
|
-
}, username)), /*#__PURE__*/React.createElement(Icons, {
|
|
11607
|
+
}, username)), /*#__PURE__*/React$1.createElement(Icons, {
|
|
11608
11608
|
name: "ArrowDown2",
|
|
11609
11609
|
size: 12
|
|
11610
11610
|
}))));
|
|
@@ -11615,36 +11615,36 @@ const UserMenuDropdown = _ref => {
|
|
|
11615
11615
|
sections,
|
|
11616
11616
|
height = 40
|
|
11617
11617
|
} = _ref;
|
|
11618
|
-
return /*#__PURE__*/React.createElement(Menu.Dropdown, null, sections.map((section, index) => {
|
|
11618
|
+
return /*#__PURE__*/React$1.createElement(Menu.Dropdown, null, sections.map((section, index) => {
|
|
11619
11619
|
const items = [];
|
|
11620
11620
|
const sectionItems = section.items.map((item, key) => {
|
|
11621
11621
|
var _item$badge, _item$badge2;
|
|
11622
|
-
return /*#__PURE__*/React.createElement(Menu.Item, {
|
|
11622
|
+
return /*#__PURE__*/React$1.createElement(Menu.Item, {
|
|
11623
11623
|
c: section === null || section === void 0 ? void 0 : section.color,
|
|
11624
11624
|
key: "menu-item-".concat(key),
|
|
11625
11625
|
h: height,
|
|
11626
|
-
leftSection: /*#__PURE__*/React.createElement(Icons, _extends({}, item.icon, {
|
|
11626
|
+
leftSection: /*#__PURE__*/React$1.createElement(Icons, _extends({}, item.icon, {
|
|
11627
11627
|
stroke: 0.5
|
|
11628
11628
|
})),
|
|
11629
|
-
rightSection: item !== null && item !== void 0 && item.disclosure ? /*#__PURE__*/React.createElement(Icons, {
|
|
11629
|
+
rightSection: item !== null && item !== void 0 && item.disclosure ? /*#__PURE__*/React$1.createElement(Icons, {
|
|
11630
11630
|
name: "ArrowRight2",
|
|
11631
11631
|
size: 12,
|
|
11632
11632
|
stroke: 0.5
|
|
11633
|
-
}) : item.badge ? /*#__PURE__*/React.createElement(Badge, {
|
|
11633
|
+
}) : item.badge ? /*#__PURE__*/React$1.createElement(Badge, {
|
|
11634
11634
|
color: item === null || item === void 0 || (_item$badge = item.badge) === null || _item$badge === void 0 ? void 0 : _item$badge.color,
|
|
11635
11635
|
size: "sm"
|
|
11636
11636
|
}, item === null || item === void 0 || (_item$badge2 = item.badge) === null || _item$badge2 === void 0 ? void 0 : _item$badge2.text) : undefined,
|
|
11637
11637
|
onClick: () => item.callbackFn ? item.callbackFn() : void 0
|
|
11638
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
11638
|
+
}, /*#__PURE__*/React$1.createElement(Text, {
|
|
11639
11639
|
size: "xs",
|
|
11640
11640
|
fw: 300
|
|
11641
11641
|
}, item.label));
|
|
11642
11642
|
});
|
|
11643
|
-
if (index) items.push(/*#__PURE__*/React.createElement(Divider, {
|
|
11643
|
+
if (index) items.push(/*#__PURE__*/React$1.createElement(Divider, {
|
|
11644
11644
|
key: "divider-".concat(index),
|
|
11645
11645
|
my: 2
|
|
11646
11646
|
}));
|
|
11647
|
-
if (section !== null && section !== void 0 && section.title) items.push(/*#__PURE__*/React.createElement(Menu.Label, {
|
|
11647
|
+
if (section !== null && section !== void 0 && section.title) items.push(/*#__PURE__*/React$1.createElement(Menu.Label, {
|
|
11648
11648
|
fz: 10,
|
|
11649
11649
|
fw: 500,
|
|
11650
11650
|
c: 'dimmed',
|
|
@@ -11664,7 +11664,7 @@ const UserMenu = _ref => {
|
|
|
11664
11664
|
avatar,
|
|
11665
11665
|
sections
|
|
11666
11666
|
} = _ref;
|
|
11667
|
-
return /*#__PURE__*/React.createElement(Menu, {
|
|
11667
|
+
return /*#__PURE__*/React$1.createElement(Menu, {
|
|
11668
11668
|
width: width || 250,
|
|
11669
11669
|
transitionProps: {
|
|
11670
11670
|
transition: "pop"
|
|
@@ -11675,11 +11675,11 @@ const UserMenu = _ref => {
|
|
|
11675
11675
|
offset: 5,
|
|
11676
11676
|
arrowOffset: 20,
|
|
11677
11677
|
arrowSize: 10
|
|
11678
|
-
}, /*#__PURE__*/React.createElement(UserMenuTarget, {
|
|
11678
|
+
}, /*#__PURE__*/React$1.createElement(UserMenuTarget, {
|
|
11679
11679
|
name,
|
|
11680
11680
|
username,
|
|
11681
11681
|
avatar
|
|
11682
|
-
}), /*#__PURE__*/React.createElement(UserMenuDropdown, {
|
|
11682
|
+
}), /*#__PURE__*/React$1.createElement(UserMenuDropdown, {
|
|
11683
11683
|
sections,
|
|
11684
11684
|
height
|
|
11685
11685
|
}));
|
|
@@ -11693,9 +11693,9 @@ const SideMenu = _ref => {
|
|
|
11693
11693
|
sidemenu,
|
|
11694
11694
|
onClick
|
|
11695
11695
|
} = _ref;
|
|
11696
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, sidemenu.map(item => {
|
|
11696
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, sidemenu.map(item => {
|
|
11697
11697
|
var _item$children, _item$children2;
|
|
11698
|
-
return /*#__PURE__*/React.createElement(NavLink, {
|
|
11698
|
+
return /*#__PURE__*/React$1.createElement(NavLink, {
|
|
11699
11699
|
className: "backoffice-sidemenu",
|
|
11700
11700
|
mt: "sm",
|
|
11701
11701
|
component: Link,
|
|
@@ -11708,10 +11708,10 @@ const SideMenu = _ref => {
|
|
|
11708
11708
|
color,
|
|
11709
11709
|
variant,
|
|
11710
11710
|
onClick,
|
|
11711
|
-
leftSection: item.icon ? /*#__PURE__*/React.createElement(Icons, item.icon) : undefined,
|
|
11711
|
+
leftSection: item.icon ? /*#__PURE__*/React$1.createElement(Icons, item.icon) : undefined,
|
|
11712
11712
|
label: item.label,
|
|
11713
11713
|
to: (_item$children = item.children) !== null && _item$children !== void 0 && _item$children.length ? "#" : (item === null || item === void 0 ? void 0 : item.href) || "#"
|
|
11714
|
-
}, (_item$children2 = item.children) !== null && _item$children2 !== void 0 && _item$children2.length ? item.children.map(subitem => /*#__PURE__*/React.createElement(NavLink, {
|
|
11714
|
+
}, (_item$children2 = item.children) !== null && _item$children2 !== void 0 && _item$children2.length ? item.children.map(subitem => /*#__PURE__*/React$1.createElement(NavLink, {
|
|
11715
11715
|
label: subitem.label,
|
|
11716
11716
|
active: subitem.active,
|
|
11717
11717
|
color,
|
|
@@ -11738,7 +11738,7 @@ const SimplePanel = _ref => {
|
|
|
11738
11738
|
children
|
|
11739
11739
|
} = _ref,
|
|
11740
11740
|
rest = _objectWithoutProperties(_ref, _excluded$5);
|
|
11741
|
-
return /*#__PURE__*/React.createElement(Card, _extends({
|
|
11741
|
+
return /*#__PURE__*/React$1.createElement(Card, _extends({
|
|
11742
11742
|
p: !withPadding ? 0 : "md",
|
|
11743
11743
|
radius: !withRadius ? 0 : "lg",
|
|
11744
11744
|
flex: autoHeight ? 1 : "none"
|
|
@@ -11751,34 +11751,34 @@ const TitledPanel = _ref2 => {
|
|
|
11751
11751
|
children
|
|
11752
11752
|
} = _ref2,
|
|
11753
11753
|
rest = _objectWithoutProperties(_ref2, _excluded2$1);
|
|
11754
|
-
return /*#__PURE__*/React.createElement(SimplePanel, _extends({}, rest, {
|
|
11754
|
+
return /*#__PURE__*/React$1.createElement(SimplePanel, _extends({}, rest, {
|
|
11755
11755
|
withPadding: withPadding
|
|
11756
|
-
}), /*#__PURE__*/React.createElement(Group, {
|
|
11756
|
+
}), /*#__PURE__*/React$1.createElement(Group, {
|
|
11757
11757
|
h: 48,
|
|
11758
11758
|
px: withPadding ? 0 : "md",
|
|
11759
11759
|
mt: !withPadding ? "md" : 0,
|
|
11760
11760
|
justify: "space-between"
|
|
11761
|
-
}, /*#__PURE__*/React.createElement(Group, null, /*#__PURE__*/React.createElement(Center, {
|
|
11761
|
+
}, /*#__PURE__*/React$1.createElement(Group, null, /*#__PURE__*/React$1.createElement(Center, {
|
|
11762
11762
|
bg: "gray.1",
|
|
11763
11763
|
w: 32,
|
|
11764
11764
|
h: 32,
|
|
11765
11765
|
style: {
|
|
11766
11766
|
borderRadius: "50%"
|
|
11767
11767
|
}
|
|
11768
|
-
}, /*#__PURE__*/React.createElement(Icons, _extends({}, title.icon, {
|
|
11768
|
+
}, /*#__PURE__*/React$1.createElement(Icons, _extends({}, title.icon, {
|
|
11769
11769
|
size: 20,
|
|
11770
11770
|
variant: "Bulk"
|
|
11771
|
-
}))), /*#__PURE__*/React.createElement(Text, {
|
|
11771
|
+
}))), /*#__PURE__*/React$1.createElement(Text, {
|
|
11772
11772
|
fw: 300
|
|
11773
|
-
}, title.label)), /*#__PURE__*/React.createElement(Space, {
|
|
11773
|
+
}, title.label)), /*#__PURE__*/React$1.createElement(Space, {
|
|
11774
11774
|
flex: 1
|
|
11775
|
-
}), /*#__PURE__*/React.createElement(Group, {
|
|
11775
|
+
}), /*#__PURE__*/React$1.createElement(Group, {
|
|
11776
11776
|
hidden: !rest.middlesection
|
|
11777
|
-
}, rest.middlesection), /*#__PURE__*/React.createElement(Space, {
|
|
11777
|
+
}, rest.middlesection), /*#__PURE__*/React$1.createElement(Space, {
|
|
11778
11778
|
flex: 1
|
|
11779
|
-
}), /*#__PURE__*/React.createElement(Group, {
|
|
11779
|
+
}), /*#__PURE__*/React$1.createElement(Group, {
|
|
11780
11780
|
hidden: !rest.rightsection
|
|
11781
|
-
}, rest.rightsection)), /*#__PURE__*/React.createElement(Box, {
|
|
11781
|
+
}, rest.rightsection)), /*#__PURE__*/React$1.createElement(Box, {
|
|
11782
11782
|
pt: !withPadding ? 0 : "md"
|
|
11783
11783
|
}, children));
|
|
11784
11784
|
};
|
|
@@ -11796,21 +11796,21 @@ const SearchPanel = _ref3 => {
|
|
|
11796
11796
|
children
|
|
11797
11797
|
} = _ref3,
|
|
11798
11798
|
rest = _objectWithoutProperties(_ref3, _excluded3);
|
|
11799
|
-
return /*#__PURE__*/React.createElement(SimplePanel, rest, /*#__PURE__*/React.createElement(Stack, null, /*#__PURE__*/React.createElement(Group, {
|
|
11799
|
+
return /*#__PURE__*/React$1.createElement(SimplePanel, rest, /*#__PURE__*/React$1.createElement(Stack, null, /*#__PURE__*/React$1.createElement(Group, {
|
|
11800
11800
|
gap: 'xs'
|
|
11801
|
-
}, /*#__PURE__*/React.createElement(TextInput, {
|
|
11801
|
+
}, /*#__PURE__*/React$1.createElement(TextInput, {
|
|
11802
11802
|
fw: 300,
|
|
11803
11803
|
name: "search",
|
|
11804
11804
|
size: "md",
|
|
11805
11805
|
radius: "md",
|
|
11806
11806
|
flex: 1,
|
|
11807
11807
|
placeholder: placeholder,
|
|
11808
|
-
leftSection: /*#__PURE__*/React.createElement(Icons, searchIcon),
|
|
11809
|
-
rightSection: typeof filterFn == 'function' ? /*#__PURE__*/React.createElement(ActionIcon, {
|
|
11808
|
+
leftSection: /*#__PURE__*/React$1.createElement(Icons, searchIcon),
|
|
11809
|
+
rightSection: typeof filterFn == 'function' ? /*#__PURE__*/React$1.createElement(ActionIcon, {
|
|
11810
11810
|
variant: "transparent",
|
|
11811
11811
|
onClick: filterFn
|
|
11812
|
-
}, /*#__PURE__*/React.createElement(Icons, filterIcon)) : /*#__PURE__*/React.createElement(React.Fragment, null, console.debug(typeof filterFn))
|
|
11813
|
-
}), /*#__PURE__*/React.createElement(Button, {
|
|
11812
|
+
}, /*#__PURE__*/React$1.createElement(Icons, filterIcon)) : /*#__PURE__*/React$1.createElement(React$1.Fragment, null, console.debug(typeof filterFn))
|
|
11813
|
+
}), /*#__PURE__*/React$1.createElement(Button, {
|
|
11814
11814
|
variant: "light",
|
|
11815
11815
|
size: "md",
|
|
11816
11816
|
fw: 300,
|
|
@@ -11818,7 +11818,7 @@ const SearchPanel = _ref3 => {
|
|
|
11818
11818
|
miw: 100,
|
|
11819
11819
|
maw: 150,
|
|
11820
11820
|
type: "submit",
|
|
11821
|
-
leftSection: /*#__PURE__*/React.createElement(Icons, searchIcon)
|
|
11821
|
+
leftSection: /*#__PURE__*/React$1.createElement(Icons, searchIcon)
|
|
11822
11822
|
}, searchText)), children));
|
|
11823
11823
|
};
|
|
11824
11824
|
|
|
@@ -11828,13 +11828,13 @@ const LabelPanelItem = _ref => {
|
|
|
11828
11828
|
value,
|
|
11829
11829
|
labelWidth
|
|
11830
11830
|
} = _ref;
|
|
11831
|
-
return /*#__PURE__*/React.createElement(Group, null, /*#__PURE__*/React.createElement(Text, {
|
|
11831
|
+
return /*#__PURE__*/React$1.createElement(Group, null, /*#__PURE__*/React$1.createElement(Text, {
|
|
11832
11832
|
fw: 300,
|
|
11833
11833
|
fz: "sm",
|
|
11834
11834
|
c: "dimmed",
|
|
11835
11835
|
w: labelWidth,
|
|
11836
11836
|
truncate: true
|
|
11837
|
-
}, label), /*#__PURE__*/React.createElement(Text, {
|
|
11837
|
+
}, label), /*#__PURE__*/React$1.createElement(Text, {
|
|
11838
11838
|
fw: 300,
|
|
11839
11839
|
fz: "sm",
|
|
11840
11840
|
truncate: true
|
|
@@ -11856,19 +11856,19 @@ const LabelPanel = _ref => {
|
|
|
11856
11856
|
p = "md"
|
|
11857
11857
|
} = _ref,
|
|
11858
11858
|
rest = _objectWithoutProperties(_ref, _excluded$4);
|
|
11859
|
-
return /*#__PURE__*/React.createElement(Card, _extends({}, rest, {
|
|
11859
|
+
return /*#__PURE__*/React$1.createElement(Card, _extends({}, rest, {
|
|
11860
11860
|
withBorder,
|
|
11861
11861
|
radius,
|
|
11862
11862
|
p
|
|
11863
|
-
}), /*#__PURE__*/React.createElement(Stack, {
|
|
11863
|
+
}), /*#__PURE__*/React$1.createElement(Stack, {
|
|
11864
11864
|
pb: 'md'
|
|
11865
|
-
}, /*#__PURE__*/React.createElement(Group, {
|
|
11865
|
+
}, /*#__PURE__*/React$1.createElement(Group, {
|
|
11866
11866
|
justify: "space-between",
|
|
11867
11867
|
p: 0
|
|
11868
|
-
}, /*#__PURE__*/React.createElement(Title, {
|
|
11868
|
+
}, /*#__PURE__*/React$1.createElement(Title, {
|
|
11869
11869
|
order: 6,
|
|
11870
11870
|
py: "xs"
|
|
11871
|
-
}, title), /*#__PURE__*/React.createElement(Button, {
|
|
11871
|
+
}, title), /*#__PURE__*/React$1.createElement(Button, {
|
|
11872
11872
|
style: {
|
|
11873
11873
|
display: hasEdit ? "block" : "none"
|
|
11874
11874
|
},
|
|
@@ -11876,11 +11876,11 @@ const LabelPanel = _ref => {
|
|
|
11876
11876
|
variant: "outline",
|
|
11877
11877
|
onClick: editFn,
|
|
11878
11878
|
size: "xs",
|
|
11879
|
-
leftSection: /*#__PURE__*/React.createElement(Icons, {
|
|
11879
|
+
leftSection: /*#__PURE__*/React$1.createElement(Icons, {
|
|
11880
11880
|
name: "Edit2"
|
|
11881
11881
|
})
|
|
11882
11882
|
}, editLabel)), items.map((item, index) => {
|
|
11883
|
-
return /*#__PURE__*/React.createElement(LabelPanelItem, _extends({
|
|
11883
|
+
return /*#__PURE__*/React$1.createElement(LabelPanelItem, _extends({
|
|
11884
11884
|
key: "label-item-".concat(index)
|
|
11885
11885
|
}, item, {
|
|
11886
11886
|
labelWidth: labelWidth
|
|
@@ -11903,41 +11903,41 @@ const AvatarLabelPanel = _ref2 => {
|
|
|
11903
11903
|
editFn = void 0
|
|
11904
11904
|
} = _ref2,
|
|
11905
11905
|
rest = _objectWithoutProperties(_ref2, _excluded2);
|
|
11906
|
-
return /*#__PURE__*/React.createElement(Card, _extends({}, rest, {
|
|
11906
|
+
return /*#__PURE__*/React$1.createElement(Card, _extends({}, rest, {
|
|
11907
11907
|
withBorder,
|
|
11908
11908
|
radius,
|
|
11909
11909
|
p
|
|
11910
|
-
}), /*#__PURE__*/React.createElement(Group, {
|
|
11910
|
+
}), /*#__PURE__*/React$1.createElement(Group, {
|
|
11911
11911
|
align: "flex-start",
|
|
11912
11912
|
py: "sm"
|
|
11913
|
-
}, /*#__PURE__*/React.createElement(Center, {
|
|
11913
|
+
}, /*#__PURE__*/React$1.createElement(Center, {
|
|
11914
11914
|
w: labelWidth
|
|
11915
|
-
}, /*#__PURE__*/React.createElement(Avatar, {
|
|
11915
|
+
}, /*#__PURE__*/React$1.createElement(Avatar, {
|
|
11916
11916
|
size: avatarSize,
|
|
11917
11917
|
src: avatar
|
|
11918
|
-
})), /*#__PURE__*/React.createElement(Stack, {
|
|
11918
|
+
})), /*#__PURE__*/React$1.createElement(Stack, {
|
|
11919
11919
|
py: 10,
|
|
11920
11920
|
gap: "md",
|
|
11921
11921
|
h: "100%"
|
|
11922
|
-
}, /*#__PURE__*/React.createElement(Title, {
|
|
11922
|
+
}, /*#__PURE__*/React$1.createElement(Title, {
|
|
11923
11923
|
fw: 500,
|
|
11924
11924
|
order: 4
|
|
11925
|
-
}, name), /*#__PURE__*/React.createElement(Text, {
|
|
11925
|
+
}, name), /*#__PURE__*/React$1.createElement(Text, {
|
|
11926
11926
|
fw: 300,
|
|
11927
11927
|
fz: 14
|
|
11928
|
-
}, username), /*#__PURE__*/React.createElement(Text, {
|
|
11928
|
+
}, username), /*#__PURE__*/React$1.createElement(Text, {
|
|
11929
11929
|
fw: 300,
|
|
11930
11930
|
fz: 14
|
|
11931
|
-
}, "Internal / ", role), /*#__PURE__*/React.createElement(Text, {
|
|
11931
|
+
}, "Internal / ", role), /*#__PURE__*/React$1.createElement(Text, {
|
|
11932
11932
|
fw: 300,
|
|
11933
11933
|
fz: 14
|
|
11934
|
-
}, "Last login: ", lastActive)), /*#__PURE__*/React.createElement(Space, {
|
|
11934
|
+
}, "Last login: ", lastActive)), /*#__PURE__*/React$1.createElement(Space, {
|
|
11935
11935
|
flex: 1
|
|
11936
|
-
}), /*#__PURE__*/React.createElement(Button, {
|
|
11936
|
+
}), /*#__PURE__*/React$1.createElement(Button, {
|
|
11937
11937
|
fw: 300,
|
|
11938
11938
|
variant: "outline",
|
|
11939
11939
|
size: "xs",
|
|
11940
|
-
leftSection: /*#__PURE__*/React.createElement(Icons, {
|
|
11940
|
+
leftSection: /*#__PURE__*/React$1.createElement(Icons, {
|
|
11941
11941
|
name: "Edit2"
|
|
11942
11942
|
})
|
|
11943
11943
|
}, editLabel)));
|
|
@@ -11950,7 +11950,7 @@ const SimpleText = _ref => {
|
|
|
11950
11950
|
smaller
|
|
11951
11951
|
} = _ref,
|
|
11952
11952
|
rest = _objectWithoutProperties(_ref, _excluded$3);
|
|
11953
|
-
return /*#__PURE__*/React.createElement(Text, _extends({
|
|
11953
|
+
return /*#__PURE__*/React$1.createElement(Text, _extends({
|
|
11954
11954
|
fw: 300,
|
|
11955
11955
|
fz: smaller ? '90%' : undefined
|
|
11956
11956
|
}, rest), label);
|
|
@@ -11994,51 +11994,51 @@ const PageTitle = _ref => {
|
|
|
11994
11994
|
icon,
|
|
11995
11995
|
label
|
|
11996
11996
|
} = create;
|
|
11997
|
-
rightsection = /*#__PURE__*/React.createElement(Button, {
|
|
11997
|
+
rightsection = /*#__PURE__*/React$1.createElement(Button, {
|
|
11998
11998
|
radius: "md",
|
|
11999
11999
|
size: "sm",
|
|
12000
|
-
leftSection: /*#__PURE__*/React.createElement(Icons, icon),
|
|
12000
|
+
leftSection: /*#__PURE__*/React$1.createElement(Icons, icon),
|
|
12001
12001
|
onClick: createFn
|
|
12002
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
12002
|
+
}, /*#__PURE__*/React$1.createElement(Text, {
|
|
12003
12003
|
fw: 300,
|
|
12004
12004
|
fz: 14
|
|
12005
12005
|
}, label));
|
|
12006
12006
|
}
|
|
12007
12007
|
if (withSwitcher && switcher !== null && switcher !== void 0 && (_switcher$items = switcher.items) !== null && _switcher$items !== void 0 && _switcher$items.length) {
|
|
12008
|
-
rightsection = /*#__PURE__*/React.createElement(SegmentedControl, {
|
|
12008
|
+
rightsection = /*#__PURE__*/React$1.createElement(SegmentedControl, {
|
|
12009
12009
|
size: "sm",
|
|
12010
12010
|
color: theme.primaryColor,
|
|
12011
12011
|
data: switcher.items
|
|
12012
12012
|
});
|
|
12013
12013
|
}
|
|
12014
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Group, {
|
|
12014
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(Group, {
|
|
12015
12015
|
justify: "space-between",
|
|
12016
12016
|
py: "lg"
|
|
12017
|
-
}, /*#__PURE__*/React.createElement(Stack, {
|
|
12017
|
+
}, /*#__PURE__*/React$1.createElement(Stack, {
|
|
12018
12018
|
gap: 4
|
|
12019
|
-
}, /*#__PURE__*/React.createElement(Title, _extends({
|
|
12019
|
+
}, /*#__PURE__*/React$1.createElement(Title, _extends({
|
|
12020
12020
|
order: 2,
|
|
12021
12021
|
fw: 500
|
|
12022
|
-
}, rest), title), typeof subtitle == "string" ? /*#__PURE__*/React.createElement(Text, {
|
|
12022
|
+
}, rest), title), typeof subtitle == "string" ? /*#__PURE__*/React$1.createElement(Text, {
|
|
12023
12023
|
fz: 14,
|
|
12024
12024
|
fw: 300
|
|
12025
|
-
}, subtitle) : /*#__PURE__*/React.createElement(Breadcrumbs, {
|
|
12025
|
+
}, subtitle) : /*#__PURE__*/React$1.createElement(Breadcrumbs, {
|
|
12026
12026
|
separatorMargin: "xs",
|
|
12027
12027
|
separator: "\xB7"
|
|
12028
12028
|
}, subtitle === null || subtitle === void 0 ? void 0 : subtitle.map((item, index) => {
|
|
12029
|
-
return index < subtitle.length - 1 ? /*#__PURE__*/React.createElement(Anchor, {
|
|
12029
|
+
return index < subtitle.length - 1 ? /*#__PURE__*/React$1.createElement(Anchor, {
|
|
12030
12030
|
key: index,
|
|
12031
12031
|
fz: 14,
|
|
12032
12032
|
fw: 400,
|
|
12033
12033
|
component: Link,
|
|
12034
12034
|
to: item.link
|
|
12035
|
-
}, item.name) : /*#__PURE__*/React.createElement(Text, {
|
|
12035
|
+
}, item.name) : /*#__PURE__*/React$1.createElement(Text, {
|
|
12036
12036
|
fz: 14,
|
|
12037
12037
|
key: index,
|
|
12038
12038
|
fw: 300,
|
|
12039
12039
|
c: 'dimmed'
|
|
12040
12040
|
}, item.name);
|
|
12041
|
-
}))), /*#__PURE__*/React.createElement(React.Fragment, null, rightsection)));
|
|
12041
|
+
}))), /*#__PURE__*/React$1.createElement(React$1.Fragment, null, rightsection)));
|
|
12042
12042
|
};
|
|
12043
12043
|
|
|
12044
12044
|
const ConnectionPanelDetail = _ref => {
|
|
@@ -12047,13 +12047,13 @@ const ConnectionPanelDetail = _ref => {
|
|
|
12047
12047
|
value,
|
|
12048
12048
|
altColor
|
|
12049
12049
|
} = _ref;
|
|
12050
|
-
return /*#__PURE__*/React.createElement(Group, null, /*#__PURE__*/React.createElement(Text, {
|
|
12050
|
+
return /*#__PURE__*/React$1.createElement(Group, null, /*#__PURE__*/React$1.createElement(Text, {
|
|
12051
12051
|
w: 100,
|
|
12052
12052
|
fw: 300,
|
|
12053
12053
|
fz: "xs"
|
|
12054
|
-
}, label), /*#__PURE__*/React.createElement(Text, {
|
|
12054
|
+
}, label), /*#__PURE__*/React$1.createElement(Text, {
|
|
12055
12055
|
fw: 300,
|
|
12056
|
-
fz:
|
|
12056
|
+
fz: 'sm',
|
|
12057
12057
|
c: altColor
|
|
12058
12058
|
}, value));
|
|
12059
12059
|
};
|
|
@@ -12071,35 +12071,35 @@ const ConnectionPanel = _ref => {
|
|
|
12071
12071
|
altColor
|
|
12072
12072
|
} = _ref;
|
|
12073
12073
|
_objectWithoutProperties(_ref, _excluded$1);
|
|
12074
|
-
return /*#__PURE__*/React.createElement(Card, {
|
|
12074
|
+
return /*#__PURE__*/React$1.createElement(Card, {
|
|
12075
12075
|
withBorder: true,
|
|
12076
12076
|
bg: "gray.0",
|
|
12077
12077
|
p: "lg",
|
|
12078
12078
|
radius: "md",
|
|
12079
12079
|
color: "red"
|
|
12080
|
-
}, /*#__PURE__*/React.createElement(Stack, null, /*#__PURE__*/React.createElement(Group, {
|
|
12080
|
+
}, /*#__PURE__*/React$1.createElement(Stack, null, /*#__PURE__*/React$1.createElement(Group, {
|
|
12081
12081
|
align: "flex-start"
|
|
12082
|
-
}, /*#__PURE__*/React.createElement(Icons, {
|
|
12082
|
+
}, /*#__PURE__*/React$1.createElement(Icons, {
|
|
12083
12083
|
size: 48,
|
|
12084
12084
|
name: "Driver",
|
|
12085
12085
|
stroke: "0.5"
|
|
12086
|
-
}), /*#__PURE__*/React.createElement(Stack, {
|
|
12086
|
+
}), /*#__PURE__*/React$1.createElement(Stack, {
|
|
12087
12087
|
gap: 5
|
|
12088
|
-
}, /*#__PURE__*/React.createElement(Title, {
|
|
12088
|
+
}, /*#__PURE__*/React$1.createElement(Title, {
|
|
12089
12089
|
fw: 400,
|
|
12090
12090
|
order: 6
|
|
12091
|
-
}, name), /*#__PURE__*/React.createElement(Group, {
|
|
12091
|
+
}, name), /*#__PURE__*/React$1.createElement(Group, {
|
|
12092
12092
|
justify: "flex-start",
|
|
12093
12093
|
gap: 5
|
|
12094
|
-
}, /*#__PURE__*/React.createElement(ColorSwatch, {
|
|
12094
|
+
}, /*#__PURE__*/React$1.createElement(ColorSwatch, {
|
|
12095
12095
|
size: 12,
|
|
12096
12096
|
color: statusColor
|
|
12097
|
-
}), /*#__PURE__*/React.createElement(Text, {
|
|
12097
|
+
}), /*#__PURE__*/React$1.createElement(Text, {
|
|
12098
12098
|
fw: 300,
|
|
12099
12099
|
fz: "xs"
|
|
12100
|
-
}, status))), /*#__PURE__*/React.createElement(Space, {
|
|
12100
|
+
}, status))), /*#__PURE__*/React$1.createElement(Space, {
|
|
12101
12101
|
flex: 1
|
|
12102
|
-
}), /*#__PURE__*/React.createElement(Menu, {
|
|
12102
|
+
}), /*#__PURE__*/React$1.createElement(Menu, {
|
|
12103
12103
|
width: 190,
|
|
12104
12104
|
transitionProps: {
|
|
12105
12105
|
transition: "pop"
|
|
@@ -12108,52 +12108,52 @@ const ConnectionPanel = _ref => {
|
|
|
12108
12108
|
withArrow: true,
|
|
12109
12109
|
withinPortal: true,
|
|
12110
12110
|
arrowSize: 20
|
|
12111
|
-
}, /*#__PURE__*/React.createElement(Menu.Target, null, /*#__PURE__*/React.createElement(ActionIcon, {
|
|
12111
|
+
}, /*#__PURE__*/React$1.createElement(Menu.Target, null, /*#__PURE__*/React$1.createElement(ActionIcon, {
|
|
12112
12112
|
variant: "subtle",
|
|
12113
12113
|
m: 0
|
|
12114
|
-
}, /*#__PURE__*/React.createElement(Icons, {
|
|
12114
|
+
}, /*#__PURE__*/React$1.createElement(Icons, {
|
|
12115
12115
|
name: "More"
|
|
12116
|
-
}))), /*#__PURE__*/React.createElement(Menu.Dropdown, null, /*#__PURE__*/React.createElement(Menu.Item, {
|
|
12116
|
+
}))), /*#__PURE__*/React$1.createElement(Menu.Dropdown, null, /*#__PURE__*/React$1.createElement(Menu.Item, {
|
|
12117
12117
|
h: 40,
|
|
12118
12118
|
onClick: edit.onClick,
|
|
12119
|
-
rightSection: /*#__PURE__*/React.createElement(Icons, {
|
|
12119
|
+
rightSection: /*#__PURE__*/React$1.createElement(Icons, {
|
|
12120
12120
|
name: "ArrowRight2"
|
|
12121
12121
|
})
|
|
12122
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
12122
|
+
}, /*#__PURE__*/React$1.createElement(Text, {
|
|
12123
12123
|
size: "xs",
|
|
12124
12124
|
fw: 300
|
|
12125
|
-
}, edit.label)), /*#__PURE__*/React.createElement(Menu.Item, {
|
|
12125
|
+
}, edit.label)), /*#__PURE__*/React$1.createElement(Menu.Item, {
|
|
12126
12126
|
h: 40,
|
|
12127
12127
|
onClick: test.onClick,
|
|
12128
|
-
rightSection: /*#__PURE__*/React.createElement(Icons, {
|
|
12128
|
+
rightSection: /*#__PURE__*/React$1.createElement(Icons, {
|
|
12129
12129
|
name: "ArrowRight2"
|
|
12130
12130
|
})
|
|
12131
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
12131
|
+
}, /*#__PURE__*/React$1.createElement(Text, {
|
|
12132
12132
|
size: "xs",
|
|
12133
12133
|
fw: 300
|
|
12134
|
-
}, test.label)), /*#__PURE__*/React.createElement(Divider, null), /*#__PURE__*/React.createElement(Menu.Item, {
|
|
12134
|
+
}, test.label)), /*#__PURE__*/React$1.createElement(Divider, null), /*#__PURE__*/React$1.createElement(Menu.Item, {
|
|
12135
12135
|
h: 40,
|
|
12136
12136
|
onClick: pause.onClick,
|
|
12137
12137
|
c: "red",
|
|
12138
|
-
leftSection: /*#__PURE__*/React.createElement(Icons, {
|
|
12138
|
+
leftSection: /*#__PURE__*/React$1.createElement(Icons, {
|
|
12139
12139
|
name: "PauseCircle",
|
|
12140
12140
|
color: "red"
|
|
12141
12141
|
})
|
|
12142
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
12142
|
+
}, /*#__PURE__*/React$1.createElement(Text, {
|
|
12143
12143
|
size: "xs",
|
|
12144
12144
|
fw: 300
|
|
12145
|
-
}, pause.label))))), /*#__PURE__*/React.createElement(Card.Section, {
|
|
12145
|
+
}, pause.label))))), /*#__PURE__*/React$1.createElement(Card.Section, {
|
|
12146
12146
|
style: {
|
|
12147
12147
|
borderTop: "1px solid #ddd"
|
|
12148
12148
|
}
|
|
12149
|
-
}, /*#__PURE__*/React.createElement(Stack, {
|
|
12149
|
+
}, /*#__PURE__*/React$1.createElement(Stack, {
|
|
12150
12150
|
mt: 0,
|
|
12151
12151
|
bg: "white",
|
|
12152
12152
|
p: "md",
|
|
12153
12153
|
gap: "lg",
|
|
12154
12154
|
py: "lg"
|
|
12155
12155
|
}, details.map((item, index) => {
|
|
12156
|
-
return /*#__PURE__*/React.createElement(ConnectionPanelDetail, _extends({
|
|
12156
|
+
return /*#__PURE__*/React$1.createElement(ConnectionPanelDetail, _extends({
|
|
12157
12157
|
key: "detail-".concat(index)
|
|
12158
12158
|
}, item, {
|
|
12159
12159
|
altColor: altColor
|
|
@@ -12168,13 +12168,13 @@ const ApplicationPanelFeatures = _ref => {
|
|
|
12168
12168
|
label,
|
|
12169
12169
|
icon
|
|
12170
12170
|
} = _ref;
|
|
12171
|
-
return /*#__PURE__*/React.createElement(Group, {
|
|
12171
|
+
return /*#__PURE__*/React$1.createElement(Group, {
|
|
12172
12172
|
gap: "xs"
|
|
12173
|
-
}, /*#__PURE__*/React.createElement(Icons, _extends({}, icon, {
|
|
12173
|
+
}, /*#__PURE__*/React$1.createElement(Icons, _extends({}, icon, {
|
|
12174
12174
|
color: "#aaa",
|
|
12175
12175
|
variant: "Bulk",
|
|
12176
12176
|
stroke: 1.5
|
|
12177
|
-
})), /*#__PURE__*/React.createElement(Text, {
|
|
12177
|
+
})), /*#__PURE__*/React$1.createElement(Text, {
|
|
12178
12178
|
fw: 300,
|
|
12179
12179
|
c: 'altiba',
|
|
12180
12180
|
size: '12px',
|
|
@@ -12200,32 +12200,32 @@ const ApplicationPanel = _ref => {
|
|
|
12200
12200
|
onClick = () => void 0
|
|
12201
12201
|
} = _ref,
|
|
12202
12202
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
12203
|
-
return /*#__PURE__*/React.createElement(Card, _extends({
|
|
12203
|
+
return /*#__PURE__*/React$1.createElement(Card, _extends({
|
|
12204
12204
|
withBorder: true,
|
|
12205
12205
|
radius: "md"
|
|
12206
|
-
}, rest), /*#__PURE__*/React.createElement(Card.Section, null, /*#__PURE__*/React.createElement(Image, {
|
|
12206
|
+
}, rest), /*#__PURE__*/React$1.createElement(Card.Section, null, /*#__PURE__*/React$1.createElement(Image, {
|
|
12207
12207
|
src: coverImage,
|
|
12208
12208
|
alt: name,
|
|
12209
12209
|
fallbackSrc: img$5
|
|
12210
|
-
})), /*#__PURE__*/React.createElement(Card.Section, {
|
|
12210
|
+
})), /*#__PURE__*/React$1.createElement(Card.Section, {
|
|
12211
12211
|
p: "md"
|
|
12212
|
-
}, /*#__PURE__*/React.createElement(Stack, {
|
|
12212
|
+
}, /*#__PURE__*/React$1.createElement(Stack, {
|
|
12213
12213
|
gap: "sm"
|
|
12214
|
-
}, /*#__PURE__*/React.createElement(Group, {
|
|
12214
|
+
}, /*#__PURE__*/React$1.createElement(Group, {
|
|
12215
12215
|
justify: "space-between"
|
|
12216
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
12216
|
+
}, /*#__PURE__*/React$1.createElement(Text, {
|
|
12217
12217
|
fw: 400
|
|
12218
|
-
}, name), /*#__PURE__*/React.createElement(Badge, {
|
|
12218
|
+
}, name), /*#__PURE__*/React$1.createElement(Badge, {
|
|
12219
12219
|
hidden: !discount,
|
|
12220
12220
|
fw: 300,
|
|
12221
12221
|
variant: "outline"
|
|
12222
|
-
}, discount)), /*#__PURE__*/React.createElement(Text, {
|
|
12222
|
+
}, discount)), /*#__PURE__*/React$1.createElement(Text, {
|
|
12223
12223
|
fw: 300,
|
|
12224
12224
|
fz: "sm"
|
|
12225
|
-
}, summary))), /*#__PURE__*/React.createElement(Card.Section, {
|
|
12225
|
+
}, summary))), /*#__PURE__*/React$1.createElement(Card.Section, {
|
|
12226
12226
|
p: "md",
|
|
12227
12227
|
pt: 0
|
|
12228
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
12228
|
+
}, /*#__PURE__*/React$1.createElement(Text, {
|
|
12229
12229
|
fz: "xs",
|
|
12230
12230
|
c: "gray.5",
|
|
12231
12231
|
mb: "xs",
|
|
@@ -12233,26 +12233,26 @@ const ApplicationPanel = _ref => {
|
|
|
12233
12233
|
fw: 500,
|
|
12234
12234
|
lts: rem("-0.25px"),
|
|
12235
12235
|
tt: "uppercase"
|
|
12236
|
-
}, featureLabel), /*#__PURE__*/React.createElement(SimpleGrid, {
|
|
12236
|
+
}, featureLabel), /*#__PURE__*/React$1.createElement(SimpleGrid, {
|
|
12237
12237
|
cols: 1,
|
|
12238
12238
|
spacing: "xs",
|
|
12239
12239
|
verticalSpacing: "xs"
|
|
12240
12240
|
}, features.map((feature, index) => {
|
|
12241
|
-
return /*#__PURE__*/React.createElement(ApplicationPanelFeatures, _extends({
|
|
12241
|
+
return /*#__PURE__*/React$1.createElement(ApplicationPanelFeatures, _extends({
|
|
12242
12242
|
key: index
|
|
12243
12243
|
}, feature));
|
|
12244
|
-
}))), /*#__PURE__*/React.createElement(Card.Section, {
|
|
12244
|
+
}))), /*#__PURE__*/React$1.createElement(Card.Section, {
|
|
12245
12245
|
p: "md"
|
|
12246
|
-
}, /*#__PURE__*/React.createElement(Group, {
|
|
12246
|
+
}, /*#__PURE__*/React$1.createElement(Group, {
|
|
12247
12247
|
gap: 30,
|
|
12248
12248
|
justify: "space-between"
|
|
12249
|
-
}, /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(Text, {
|
|
12249
|
+
}, /*#__PURE__*/React$1.createElement(Box, null, /*#__PURE__*/React$1.createElement(Text, {
|
|
12250
12250
|
fz: "lg",
|
|
12251
12251
|
fw: 500,
|
|
12252
12252
|
style: {
|
|
12253
12253
|
lineHeight: 1
|
|
12254
12254
|
}
|
|
12255
|
-
}, amount), /*#__PURE__*/React.createElement(Text, {
|
|
12255
|
+
}, amount), /*#__PURE__*/React$1.createElement(Text, {
|
|
12256
12256
|
fz: "xs",
|
|
12257
12257
|
c: "dimmed",
|
|
12258
12258
|
fw: 300,
|
|
@@ -12260,19 +12260,19 @@ const ApplicationPanel = _ref => {
|
|
|
12260
12260
|
lineHeight: 1
|
|
12261
12261
|
},
|
|
12262
12262
|
mt: 3
|
|
12263
|
-
}, "per ".concat(frequency))), /*#__PURE__*/React.createElement(Box, {
|
|
12263
|
+
}, "per ".concat(frequency))), /*#__PURE__*/React$1.createElement(Box, {
|
|
12264
12264
|
hidden: subscribed
|
|
12265
|
-
}, /*#__PURE__*/React.createElement(Button, {
|
|
12265
|
+
}, /*#__PURE__*/React$1.createElement(Button, {
|
|
12266
12266
|
fw: 300,
|
|
12267
|
-
leftSection: /*#__PURE__*/React.createElement(Icons, {
|
|
12267
|
+
leftSection: /*#__PURE__*/React$1.createElement(Icons, {
|
|
12268
12268
|
name: "AddCircle"
|
|
12269
12269
|
}),
|
|
12270
12270
|
radius: "md",
|
|
12271
12271
|
onClick: onClick
|
|
12272
|
-
}, actionLabel)), /*#__PURE__*/React.createElement(Box, {
|
|
12272
|
+
}, actionLabel)), /*#__PURE__*/React$1.createElement(Box, {
|
|
12273
12273
|
hidden: !subscribed
|
|
12274
|
-
}, /*#__PURE__*/React.createElement(Button, {
|
|
12275
|
-
leftSection: /*#__PURE__*/React.createElement(Icons, {
|
|
12274
|
+
}, /*#__PURE__*/React$1.createElement(Button, {
|
|
12275
|
+
leftSection: /*#__PURE__*/React$1.createElement(Icons, {
|
|
12276
12276
|
name: "TickCircle"
|
|
12277
12277
|
}),
|
|
12278
12278
|
fw: 300,
|
|
@@ -12284,52 +12284,56 @@ const ApplicationPanel = _ref => {
|
|
|
12284
12284
|
|
|
12285
12285
|
const SubscriptionPlans = _ref => {
|
|
12286
12286
|
let {
|
|
12287
|
-
|
|
12287
|
+
isActive,
|
|
12288
12288
|
title,
|
|
12289
12289
|
altColor = "altiba.3",
|
|
12290
12290
|
durationDays,
|
|
12291
|
-
planPrice
|
|
12291
|
+
planPrice,
|
|
12292
|
+
buttonLabel = 'Pay Early',
|
|
12293
|
+
altButtonLabel = 'Pay Now',
|
|
12294
|
+
onClick
|
|
12292
12295
|
} = _ref;
|
|
12293
12296
|
const price = planPrice.split("/");
|
|
12294
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Indicator, {
|
|
12297
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(Indicator, {
|
|
12295
12298
|
size: 20,
|
|
12296
|
-
label: /*#__PURE__*/React.createElement(Icons, {
|
|
12299
|
+
label: /*#__PURE__*/React$1.createElement(Icons, {
|
|
12297
12300
|
name: "TickCircle",
|
|
12298
12301
|
size: 18,
|
|
12299
12302
|
stroke: 1
|
|
12300
12303
|
}),
|
|
12301
|
-
disabled:
|
|
12304
|
+
disabled: !isActive,
|
|
12302
12305
|
className: "payment-plan"
|
|
12303
|
-
}, /*#__PURE__*/React.createElement(Card, {
|
|
12304
|
-
bg:
|
|
12306
|
+
}, /*#__PURE__*/React$1.createElement(Card, {
|
|
12307
|
+
bg: isActive ? "gray.1" : "white",
|
|
12305
12308
|
p: "md",
|
|
12306
12309
|
radius: "sm",
|
|
12307
12310
|
withBorder: true
|
|
12308
|
-
}, /*#__PURE__*/React.createElement(Stack, {
|
|
12311
|
+
}, /*#__PURE__*/React$1.createElement(Stack, {
|
|
12309
12312
|
gap: "xl"
|
|
12310
|
-
}, /*#__PURE__*/React.createElement(Group, {
|
|
12313
|
+
}, /*#__PURE__*/React$1.createElement(Group, {
|
|
12311
12314
|
justify: "space-between",
|
|
12312
12315
|
align: "flex-start"
|
|
12313
|
-
}, /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(Title, {
|
|
12316
|
+
}, /*#__PURE__*/React$1.createElement(Box, null, /*#__PURE__*/React$1.createElement(Title, {
|
|
12314
12317
|
order: 6,
|
|
12315
12318
|
fw: 500
|
|
12316
|
-
}, title), /*#__PURE__*/React.createElement(Text, {
|
|
12319
|
+
}, title), /*#__PURE__*/React$1.createElement(Text, {
|
|
12317
12320
|
fz: "xs",
|
|
12318
12321
|
c: altColor,
|
|
12319
12322
|
fw: 300
|
|
12320
|
-
}, durationDays, " ",
|
|
12323
|
+
}, durationDays, " ", isActive ? " days remaining" : " days")), /*#__PURE__*/React$1.createElement(Text, {
|
|
12321
12324
|
fz: "sm",
|
|
12322
12325
|
fw: 500
|
|
12323
|
-
}, price[0], /*#__PURE__*/React.createElement(Text, {
|
|
12326
|
+
}, price[0], /*#__PURE__*/React$1.createElement(Text, {
|
|
12324
12327
|
fz: "sm",
|
|
12325
12328
|
component: "span",
|
|
12326
12329
|
c: "dimmed"
|
|
12327
|
-
}, price[1] ? "/".concat(price[1]) : " /month"))), /*#__PURE__*/React.createElement(Button, {
|
|
12330
|
+
}, price[1] ? "/".concat(price[1]) : " /month"))), /*#__PURE__*/React$1.createElement(Button, {
|
|
12328
12331
|
w: 100,
|
|
12329
12332
|
size: "xs",
|
|
12330
12333
|
fw: 500,
|
|
12331
|
-
|
|
12332
|
-
|
|
12334
|
+
onClick: onClick,
|
|
12335
|
+
variant: isActive ? "outline" : "filled"
|
|
12336
|
+
}, durationDays > 0 ? buttonLabel : altButtonLabel)))));
|
|
12333
12337
|
};
|
|
12334
12338
|
|
|
12335
12339
|
var img$4 = "data:image/svg+xml,%3c%3fxml version='1.0' encoding='utf-8'%3f%3e%3c!-- Uploaded to: SVG Repo%2c www.svgrepo.com%2c Generator: SVG Repo Mixer Tools --%3e%3csvg width='800px' height='800px' viewBox='0 -139.5 750 750' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3e %3cdesc%3eCreated with Sketch.%3c/desc%3e %3cdefs%3e%3c/defs%3e %3cg id='Page-1' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3e %3cg id='amex' fill='%23393939' fill-rule='nonzero'%3e %3cpath d='M52.8846154%2c28.2035928 C39.6085397%2c28.2035928 28.8461538%2c38.7262417 28.8461538%2c51.7065868 L28.8461538%2c419.293413 C28.8461538%2c432.273758 39.6085397%2c442.796407 52.8846154%2c442.796407 L697.115385%2c442.796407 C710.39146%2c442.796407 721.153846%2c432.273758 721.153846%2c419.293413 L721.153846%2c51.7065868 C721.153846%2c38.7262417 710.39146%2c28.2035928 697.115385%2c28.2035928 L52.8846154%2c28.2035928 Z M52.8846154%2c0 L697.115385%2c0 C726.322751%2c-5.0099645e-15 750%2c23.1498275 750%2c51.7065868 L750%2c419.293413 C750%2c447.850173 726.322751%2c471 697.115385%2c471 L52.8846154%2c471 C23.6772488%2c471 3.41607085e-15%2c447.850173 0%2c419.293413 L0%2c51.7065868 C-3.41607085e-15%2c23.1498275 23.6772488%2c5.0099645e-15 52.8846154%2c0 Z' id='Rectangle-1'%3e%3c/path%3e %3cg id='Group' transform='translate(27.000000%2c 109.000000)'%3e %3cpath d='M1.00185169%2c114.13736 L34.3337698%2c114.13736 L41.8494525%2c96.0854168 L58.6754244%2c96.0854168 L66.1714134%2c114.13736 L131.754546%2c114.13736 L131.754546%2c100.336105 L137.608557%2c114.196192 L171.654379%2c114.196192 L177.508389%2c100.13019 L177.508389%2c114.13736 L340.495068%2c114.13736 L340.418753%2c84.5051101 L343.572239%2c84.5051101 C345.780417%2c84.5811032 346.425392%2c84.7845674 346.425392%2c88.4150574 L346.425392%2c114.13736 L430.722649%2c114.13736 L430.722649%2c107.239184 C437.521967%2c110.867222 448.097589%2c114.13736 462.013787%2c114.13736 L497.477569%2c114.13736 L505.067105%2c96.0854168 L521.893076%2c96.0854168 L529.315214%2c114.13736 L597.655492%2c114.13736 L597.655492%2c96.9899751 L608.004634%2c114.13736 L662.768433%2c114.13736 L662.768433%2c0.785672 L608.570834%2c0.785672 L608.570834%2c14.1726435 L600.981299%2c0.785672 L545.3682%2c0.785672 L545.3682%2c14.1726435 L538.399022%2c0.785672 L463.279121%2c0.785672 C450.704568%2c0.785672 439.651369%2c2.53350409 430.722649%2c7.40439063 L430.722649%2c0.785672 L378.883394%2c0.785672 L378.883394%2c7.40439063 C373.201705%2c2.38397078 365.459542%2c0.785672 356.850848%2c0.785672 L167.462041%2c0.785672 L154.754555%2c30.0624712 L141.704887%2c0.785672 L82.0520781%2c0.785672 L82.0520781%2c14.1726435 L75.4989347%2c0.785672 L24.6246793%2c0.785672 L0.99939%2c54.6792028 L0.99939%2c114.13736 L1.00185169%2c114.13736 Z M211.404045%2c97.7872512 L191.404894%2c97.7872512 L191.331043%2c34.134787 L163.043223%2c97.7872512 L145.914458%2c97.7872512 L117.552787%2c34.0784061 L117.552787%2c97.7872512 L77.874511%2c97.7872512 L70.3785219%2c79.6593152 L29.7598625%2c79.6593152 L22.1875597%2c97.7872512 L0.99939%2c97.7872512 L35.9338988%2c16.5142875 L64.9183893%2c16.5142875 L98.0976798%2c93.4630208 L98.0976798%2c16.5142875 L129.937785%2c16.5142875 L155.468458%2c71.6482149 L178.921427%2c16.5142875 L211.401583%2c16.5142875 L211.401583%2c97.7872512 L211.404045%2c97.7872512 Z M63.7112913%2c62.7923309 L50.3588303%2c30.3924772 L37.082683%2c62.7923309 L63.7112913%2c62.7923309 Z M290.995623%2c97.7872512 L225.826062%2c97.7872512 L225.826062%2c16.5142875 L290.995623%2c16.5142875 L290.995623%2c33.4385966 L245.335327%2c33.4385966 L245.335327%2c48.0880268 L289.90015%2c48.0880268 L289.90015%2c64.7475871 L245.335327%2c64.7475871 L245.335327%2c80.9781567 L290.995623%2c80.9781567 L290.995623%2c97.7872512 Z M382.833608%2c38.4026356 C382.833608%2c51.3606156 374.1486%2c58.0553273 369.087269%2c60.0654563 C373.355921%2c61.6833654 377.001753%2c64.5416719 378.737277%2c66.9097023 C381.491962%2c70.9520236 381.967077%2c74.5629023 381.967077%2c81.8214305 L381.967077%2c97.7872512 L362.290413%2c97.7872512 L362.216561%2c87.5380426 C362.216561%2c82.6475448 362.686753%2c75.6145431 359.136929%2c71.7045958 C356.286237%2c68.8462902 351.941271%2c68.2260919 344.917936%2c68.2260919 L323.975939%2c68.2260919 L323.975939%2c97.7872512 L304.469136%2c97.7872512 L304.469136%2c16.5142875 L349.339215%2c16.5142875 C359.30925%2c16.5142875 366.655073%2c16.7765845 372.962043%2c20.4070745 C379.133618%2c24.0375645 382.833608%2c29.3374416 382.833608%2c38.4026356 Z M358.172965%2c50.470979 C355.492133%2c52.0913399 352.321416%2c52.1452699 348.522956%2c52.1452699 L324.823814%2c52.1452699 L324.823814%2c34.093327 L348.845443%2c34.093327 C352.245102%2c34.093327 355.792465%2c34.2453131 358.096651%2c35.5592508 C360.627317%2c36.7432665 362.192981%2c39.263282 362.192981%2c42.7442378 C362.192981%2c46.2962838 360.70363%2c49.1545894 358.172965%2c50.470979 Z M414.120367%2c97.7872512 L394.214762%2c97.7872512 L394.214762%2c16.5142875 L414.120367%2c16.5142875 L414.120367%2c97.7872512 Z M645.195722%2c97.7872512 L617.550416%2c97.7872512 L580.572666%2c36.7871775 L580.572666%2c97.7872512 L540.842694%2c97.7872512 L533.250697%2c79.6593152 L492.725584%2c79.6593152 L485.360067%2c97.7872512 L462.532381%2c97.7872512 C453.049769%2c97.7872512 441.043878%2c95.6986772 434.244561%2c88.7980504 C427.388624%2c81.8974235 423.821567%2c72.5503214 423.821567%2c57.7709672 C423.821567%2c45.7175456 425.953432%2c34.6986044 434.338108%2c25.9913117 C440.645077%2c19.504968 450.521566%2c16.5142875 463.965111%2c16.5142875 L482.851557%2c16.5142875 L482.851557%2c33.9288719 L464.361451%2c33.9288719 C457.242107%2c33.9288719 453.222091%2c34.9829635 449.349779%2c38.7433766 C446.023972%2c42.1654996 443.741943%2c48.6346839 443.741943%2c57.1532208 C443.741943%2c65.8605125 445.479929%2c72.1384901 449.106068%2c76.2396441 C452.109386%2c79.455851 457.567057%2c80.4314997 462.70224%2c80.4314997 L471.463562%2c80.4314997 L498.958702%2c16.5167384 L528.189366%2c16.5167384 L561.21849%2c93.3894796 L561.21849%2c16.5167384 L590.921808%2c16.5167384 L625.213803%2c73.1190406 L625.213803%2c16.5167384 L645.195722%2c16.5167384 L645.195722%2c97.7872512 Z M526.615482%2c62.7923309 L513.115317%2c30.3924772 L499.689004%2c62.7923309 L526.615482%2c62.7923309 Z' id='Path'%3e%3c/path%3e %3cpath d='M694.908287%2c227.558349 C690.169443%2c234.458977 680.935468%2c237.957092 668.434768%2c237.957092 L630.760346%2c237.957092 L630.760346%2c220.525348 L668.282141%2c220.525348 C672.004287%2c220.525348 674.608804%2c220.037524 676.176931%2c218.512767 C677.53581%2c217.25521 678.483578%2c215.428934 678.483578%2c213.210438 C678.483578%2c210.842408 677.53581%2c208.962201 676.100617%2c207.834568 C674.685118%2c206.59417 672.624644%2c206.030354 669.227447%2c206.030354 C650.909663%2c205.410156 628.057359%2c206.59417 628.057359%2c180.869417 C628.057359%2c169.078292 635.575503%2c156.666969 656.047307%2c156.666969 L694.905825%2c156.666969 L694.908287%2c140.492781 L658.801992%2c140.492781 C647.906344%2c140.492781 639.99186%2c143.091241 634.386485%2c147.131111 L634.386485%2c140.492781 L580.984025%2c140.492781 C572.44426%2c140.492781 562.420068%2c142.600965 557.678762%2c147.131111 L557.678762%2c140.492781 L462.315997%2c140.492781 L462.315997%2c147.131111 C454.726462%2c141.679248 441.920507%2c140.492781 436.009877%2c140.492781 L373.107574%2c140.492781 L373.107574%2c147.131111 C367.103398%2c141.340957 353.750937%2c140.492781 345.612434%2c140.492781 L275.214144%2c140.492781 L259.104537%2c157.853435 L244.016551%2c140.492781 L138.856074%2c140.492781 L138.856074%2c253.922913 L242.037315%2c253.922913 L258.636807%2c236.287704 L274.273761%2c253.922913 L337.875196%2c253.979294 L337.875196%2c227.296052 L344.128008%2c227.296052 C352.566841%2c227.425975 362.519644%2c227.087685 371.300659%2c223.307661 L371.300659%2c253.920461 L423.760273%2c253.920461 L423.760273%2c224.356851 L426.290938%2c224.356851 C429.520738%2c224.356851 429.838302%2c224.489225 429.838302%2c227.70298 L429.838302%2c253.91801 L589.201303%2c253.91801 C599.319042%2c253.91801 609.894664%2c251.339161 615.751136%2c246.659482 L615.751136%2c253.91801 L666.300442%2c253.91801 C676.819444%2c253.91801 687.092272%2c252.449635 694.908287%2c248.689222 L694.908287%2c227.558349 Z M378.926897%2c183.927906 C378.926897%2c206.509994 362.007379%2c211.172514 344.954927%2c211.172514 L320.613273%2c211.172514 L320.613273%2c238.439183 L282.695139%2c238.439183 L258.67351%2c211.527963 L233.709035%2c238.439183 L156.435114%2c238.439183 L156.435114%2c157.146609 L234.898055%2c157.146609 L258.89999%2c183.79308 L283.714298%2c157.146609 L346.0504%2c157.146609 C361.532264%2c157.146609 378.926897%2c161.414457 378.926897%2c183.927906 Z M223.829062%2c221.339997 L175.864579%2c221.339997 L175.864579%2c205.165809 L218.693878%2c205.165809 L218.693878%2c188.57979 L175.864579%2c188.57979 L175.864579%2c173.800436 L224.774368%2c173.800436 L246.112704%2c197.490547 L223.829062%2c221.339997 Z M301.113434%2c230.648291 L271.161481%2c197.535087 L301.113434%2c165.473523 L301.113434%2c230.648291 Z M345.408399%2c194.502317 L320.197751%2c194.502317 L320.197751%2c173.800436 L345.634879%2c173.800436 C352.677909%2c173.800436 357.566917%2c176.658742 357.566917%2c183.767736 C357.566917%2c190.798286 352.904388%2c194.502317 345.408399%2c194.502317 Z M477.4839%2c157.146609 L542.59438%2c157.146609 L542.59438%2c173.958154 L496.911928%2c173.958154 L496.911928%2c188.737509 L541.479213%2c188.737509 L541.479213%2c205.323528 L496.911928%2c205.323528 L496.911928%2c221.497714 L542.59438%2c221.571256 L542.59438%2c238.439183 L477.4839%2c238.439183 L477.4839%2c157.146609 Z M452.452415%2c200.661007 C456.794918%2c202.256854 460.344743%2c205.117612 462.008877%2c207.485642 C464.763561%2c211.454422 465.162362%2c215.158453 465.241138%2c222.323829 L465.241138%2c238.439183 L445.655559%2c238.439183 L445.655559%2c228.268419 C445.655559%2c223.377921 446.128213%2c216.136553 442.502074%2c212.356528 C439.651382%2c209.444293 435.306417%2c208.748102 428.189535%2c208.748102 L407.341085%2c208.748102 L407.341085%2c238.439183 L387.738274%2c238.439183 L387.738274%2c157.146609 L432.778213%2c157.146609 C442.654702%2c157.146609 449.847897%2c157.580502 456.250875%2c160.983014 C462.407679%2c164.687045 466.27999%2c169.761396 466.27999%2c179.034957 C466.277529%2c192.010097 457.587597%2c198.631267 452.452415%2c200.661007 Z M441.42487%2c190.384004 C438.815429%2c191.92592 435.588092%2c192.058295 431.792093%2c192.058295 L408.092952%2c192.058295 L408.092952%2c173.800436 L432.114581%2c173.800436 C435.588092%2c173.800436 439.064065%2c173.873978 441.42487%2c175.268812 C443.953074%2c176.585201 445.46458%2c179.102766 445.46458%2c182.58127 C445.46458%2c186.059775 443.953074%2c188.861698 441.42487%2c190.384004 Z M617.536604%2c195.562142 C621.335064%2c199.476992 623.370921%2c204.418969 623.370921%2c212.78552 C623.370921%2c230.273646 612.398959%2c238.436732 592.724758%2c238.436732 L554.727848%2c238.436732 L554.727848%2c221.004988 L592.572131%2c221.004988 C596.272121%2c221.004988 598.896333%2c220.517164 600.540772%2c218.992407 C601.882419%2c217.734851 602.844958%2c215.908574 602.844958%2c213.690078 C602.844958%2c211.322047 601.803643%2c209.441841 600.464459%2c208.314207 C598.972646%2c207.073811 596.914634%2c206.509994 593.517437%2c206.509994 C575.273505%2c205.889795 552.426124%2c207.073811 552.426124%2c181.349057 C552.426124%2c169.557932 559.865493%2c157.146609 580.317603%2c157.146609 L619.427218%2c157.146609 L619.427218%2c174.44843 L583.640948%2c174.44843 C580.093586%2c174.44843 577.786938%2c174.580805 575.824934%2c175.916805 C573.688146%2c177.233195 572.895467%2c179.186942 572.895467%2c181.765791 C572.895467%2c184.832464 574.709767%2c186.918586 577.164119%2c187.820693 C579.22213%2c188.534044 581.43277%2c188.742411 584.756115%2c188.742411 L595.257885%2c189.02432 C605.848277%2c189.281714 613.117786%2c191.105539 617.536604%2c195.562142 Z M694.948587%2c173.800436 L659.393721%2c173.800436 C655.843896%2c173.800436 653.485552%2c173.932811 651.498931%2c175.268812 C649.440918%2c176.585201 648.648239%2c178.538949 648.648239%2c181.117798 C648.648239%2c184.18447 650.386226%2c186.270593 652.914429%2c187.1727 C654.972441%2c187.886051 657.183081%2c188.094418 660.432574%2c188.094418 L671.005734%2c188.376326 C681.674901%2c188.638623 688.796706%2c190.464899 693.139211%2c194.919051 C693.929428%2c195.539251 694.404543%2c196.235441 694.948587%2c196.931632 L694.948587%2c173.800436 Z' id='Path'%3e%3c/path%3e %3c/g%3e %3c/g%3e %3c/g%3e%3c/svg%3e";
|
|
@@ -12344,83 +12348,166 @@ var img = "data:image/svg+xml,%3c%3fxml version='1.0' encoding='utf-8'%3f%3e%3c!
|
|
|
12344
12348
|
|
|
12345
12349
|
const PaymentMethod = _ref => {
|
|
12346
12350
|
let {
|
|
12347
|
-
|
|
12351
|
+
isActive,
|
|
12348
12352
|
pan,
|
|
12349
12353
|
type,
|
|
12350
12354
|
exp
|
|
12351
12355
|
} = _ref;
|
|
12352
|
-
return /*#__PURE__*/React.createElement(Card, {
|
|
12356
|
+
return /*#__PURE__*/React$1.createElement(Card, {
|
|
12353
12357
|
withBorder: true,
|
|
12354
12358
|
radius: "md",
|
|
12355
12359
|
p: 0,
|
|
12356
|
-
bg:
|
|
12360
|
+
bg: isActive ? "gray.1" : "white",
|
|
12357
12361
|
w: 330
|
|
12358
|
-
}, /*#__PURE__*/React.createElement(Group, {
|
|
12362
|
+
}, /*#__PURE__*/React$1.createElement(Group, {
|
|
12359
12363
|
gap: "md",
|
|
12360
12364
|
px: "sm"
|
|
12361
|
-
}, /*#__PURE__*/React.createElement(Center, {
|
|
12365
|
+
}, /*#__PURE__*/React$1.createElement(Center, {
|
|
12362
12366
|
h: 88,
|
|
12363
12367
|
w: 80
|
|
12364
|
-
}, logo[type]), /*#__PURE__*/React.createElement(Stack, {
|
|
12368
|
+
}, logo[type]), /*#__PURE__*/React$1.createElement(Stack, {
|
|
12365
12369
|
gap: 3
|
|
12366
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
12370
|
+
}, /*#__PURE__*/React$1.createElement(Text, {
|
|
12367
12371
|
fz: 14,
|
|
12368
12372
|
tt: "uppercase",
|
|
12369
12373
|
fw: 500
|
|
12370
|
-
}, "**** **** **** ".concat(pan)), /*#__PURE__*/React.createElement(Group, {
|
|
12374
|
+
}, "**** **** **** ".concat(pan)), /*#__PURE__*/React$1.createElement(Group, {
|
|
12371
12375
|
c: "dimmed"
|
|
12372
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
12376
|
+
}, /*#__PURE__*/React$1.createElement(Text, {
|
|
12373
12377
|
tt: "capitalize",
|
|
12374
12378
|
fw: 300,
|
|
12375
12379
|
size: "xs"
|
|
12376
|
-
}, type), /*#__PURE__*/React.createElement(Text, {
|
|
12380
|
+
}, type), /*#__PURE__*/React$1.createElement(Text, {
|
|
12377
12381
|
fw: 300,
|
|
12378
12382
|
size: "sm"
|
|
12379
|
-
}, exp))), /*#__PURE__*/React.createElement(Space, {
|
|
12383
|
+
}, exp))), /*#__PURE__*/React$1.createElement(Space, {
|
|
12380
12384
|
flex: 1
|
|
12381
|
-
}), /*#__PURE__*/React.createElement(ActionIcon, {
|
|
12385
|
+
}), /*#__PURE__*/React$1.createElement(ActionIcon, {
|
|
12382
12386
|
variant: "subtle",
|
|
12383
|
-
disabled:
|
|
12384
|
-
}, !
|
|
12387
|
+
disabled: isActive
|
|
12388
|
+
}, !isActive ? /*#__PURE__*/React$1.createElement(Icons, {
|
|
12385
12389
|
name: "Record"
|
|
12386
|
-
}) : /*#__PURE__*/React.createElement(Icons, {
|
|
12390
|
+
}) : /*#__PURE__*/React$1.createElement(Icons, {
|
|
12387
12391
|
name: "TickCircle"
|
|
12388
12392
|
}))));
|
|
12389
12393
|
};
|
|
12390
12394
|
const logo = {
|
|
12391
|
-
mastercard: /*#__PURE__*/React.createElement(Image, {
|
|
12395
|
+
mastercard: /*#__PURE__*/React$1.createElement(Image, {
|
|
12392
12396
|
height: 60,
|
|
12393
12397
|
src: img$2
|
|
12394
12398
|
}),
|
|
12395
|
-
visa: /*#__PURE__*/React.createElement(Image, {
|
|
12399
|
+
visa: /*#__PURE__*/React$1.createElement(Image, {
|
|
12396
12400
|
height: 60,
|
|
12397
12401
|
src: img$3
|
|
12398
12402
|
}),
|
|
12399
|
-
amex: /*#__PURE__*/React.createElement(Image, {
|
|
12403
|
+
amex: /*#__PURE__*/React$1.createElement(Image, {
|
|
12400
12404
|
height: 60,
|
|
12401
12405
|
src: img$4
|
|
12402
12406
|
}),
|
|
12403
|
-
paypal: /*#__PURE__*/React.createElement(Image, {
|
|
12407
|
+
paypal: /*#__PURE__*/React$1.createElement(Image, {
|
|
12404
12408
|
height: 60,
|
|
12405
12409
|
src: img$1
|
|
12406
12410
|
}),
|
|
12407
|
-
verve: /*#__PURE__*/React.createElement(Image, {
|
|
12411
|
+
verve: /*#__PURE__*/React$1.createElement(Image, {
|
|
12408
12412
|
height: 60,
|
|
12409
12413
|
src: img
|
|
12410
12414
|
})
|
|
12411
12415
|
};
|
|
12412
12416
|
const PaymentMethodAdd = () => {
|
|
12413
|
-
return /*#__PURE__*/React.createElement(Group, {
|
|
12417
|
+
return /*#__PURE__*/React$1.createElement(Group, {
|
|
12414
12418
|
align: "center"
|
|
12415
|
-
}, /*#__PURE__*/React.createElement(Button, {
|
|
12419
|
+
}, /*#__PURE__*/React$1.createElement(Button, {
|
|
12416
12420
|
variant: "outline",
|
|
12417
12421
|
w: 60,
|
|
12418
12422
|
h: 60
|
|
12419
|
-
}, /*#__PURE__*/React.createElement(Icons, {
|
|
12423
|
+
}, /*#__PURE__*/React$1.createElement(Icons, {
|
|
12420
12424
|
name: "Add",
|
|
12421
12425
|
size: 60,
|
|
12422
12426
|
stroke: 1
|
|
12423
12427
|
})));
|
|
12424
12428
|
};
|
|
12425
12429
|
|
|
12426
|
-
|
|
12430
|
+
const SimpleHeader = _ref => {
|
|
12431
|
+
let {
|
|
12432
|
+
id,
|
|
12433
|
+
label
|
|
12434
|
+
} = _ref;
|
|
12435
|
+
return /*#__PURE__*/React.createElement(Table.Th, {
|
|
12436
|
+
fw: 500,
|
|
12437
|
+
id: id,
|
|
12438
|
+
fz: "xs",
|
|
12439
|
+
tt: "uppercase"
|
|
12440
|
+
}, label)
|
|
12441
|
+
//TODO: Manage control of table width from here
|
|
12442
|
+
;
|
|
12443
|
+
};
|
|
12444
|
+
|
|
12445
|
+
const SimpleBody = _ref => {
|
|
12446
|
+
let {
|
|
12447
|
+
row,
|
|
12448
|
+
columns,
|
|
12449
|
+
withAction,
|
|
12450
|
+
withIndex,
|
|
12451
|
+
actionFn,
|
|
12452
|
+
index
|
|
12453
|
+
} = _ref;
|
|
12454
|
+
if (withAction && actionFn) {
|
|
12455
|
+
row["action"] = actionFn;
|
|
12456
|
+
}
|
|
12457
|
+
if (withIndex) {
|
|
12458
|
+
row["index"] = "".concat(index ? index + 1 : 1);
|
|
12459
|
+
}
|
|
12460
|
+
return /*#__PURE__*/React$1.createElement(Table.Tr, {
|
|
12461
|
+
fw: 300,
|
|
12462
|
+
fz: "sm",
|
|
12463
|
+
h: 50
|
|
12464
|
+
}, columns.map((column, index) => {
|
|
12465
|
+
const columnIndex = column.id;
|
|
12466
|
+
console.log("column: ".concat(column.id, ", type: ").concat(typeof row[column.id]));
|
|
12467
|
+
return /*#__PURE__*/React$1.createElement(Table.Td, {
|
|
12468
|
+
key: index
|
|
12469
|
+
}, typeof row[columnIndex] === "string" ? row[columnIndex] : row[columnIndex](columnIndex));
|
|
12470
|
+
}));
|
|
12471
|
+
};
|
|
12472
|
+
|
|
12473
|
+
//TODO: Add rowId and cellId to enable onclick attributes
|
|
12474
|
+
|
|
12475
|
+
const SimpleTable = _ref => {
|
|
12476
|
+
let {
|
|
12477
|
+
columns,
|
|
12478
|
+
rows,
|
|
12479
|
+
withAction,
|
|
12480
|
+
withIndex,
|
|
12481
|
+
actionFn
|
|
12482
|
+
} = _ref;
|
|
12483
|
+
columns.sort((a, b) => a.order - b.order);
|
|
12484
|
+
const indexColumn = {
|
|
12485
|
+
order: -99,
|
|
12486
|
+
id: "index",
|
|
12487
|
+
label: "Id"
|
|
12488
|
+
};
|
|
12489
|
+
const actionColumn = {
|
|
12490
|
+
order: 99999,
|
|
12491
|
+
id: "action",
|
|
12492
|
+
label: ""
|
|
12493
|
+
};
|
|
12494
|
+
withIndex ? columns.unshift(indexColumn) : null;
|
|
12495
|
+
withAction && actionFn ? columns.push(actionColumn) : null;
|
|
12496
|
+
return /*#__PURE__*/React$1.createElement(Table, null, /*#__PURE__*/React$1.createElement(Table.Thead, null, /*#__PURE__*/React$1.createElement(Table.Tr, null, columns.map((column, index) => {
|
|
12497
|
+
return /*#__PURE__*/React$1.createElement(SimpleHeader, _extends({
|
|
12498
|
+
key: "column-".concat(index)
|
|
12499
|
+
}, column));
|
|
12500
|
+
}))), /*#__PURE__*/React$1.createElement(Table.Tbody, null, rows.map((row, index) => {
|
|
12501
|
+
return /*#__PURE__*/React$1.createElement(SimpleBody, {
|
|
12502
|
+
key: index,
|
|
12503
|
+
row,
|
|
12504
|
+
columns,
|
|
12505
|
+
withAction,
|
|
12506
|
+
withIndex,
|
|
12507
|
+
actionFn,
|
|
12508
|
+
index
|
|
12509
|
+
});
|
|
12510
|
+
})));
|
|
12511
|
+
};
|
|
12512
|
+
|
|
12513
|
+
export { ApplicationMenu, ApplicationPanel, AvatarLabelPanel, ConnectionPanel, DynamicLogo, DynamicShigaLogo, EqualizerColumn, Icons, LabelPanel, PageTitle, PaymentMethod, PaymentMethodAdd, SearchPanel, SideMenu, SimpleColumn, SimplePanel, SimpleTable, SimpleText, StackedColumn, SubscriptionPlans, TitledPanel, UserMenu, theme };
|