@galaxy-ds/core 2.0.15 → 2.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Dialog/Dialog.type.d.ts +0 -4
- package/dist/Icons/leap/CaretDown12.d.ts +2 -0
- package/dist/Icons/leap/CaretUp12.d.ts +2 -0
- package/dist/Icons/leap/index.d.ts +2 -0
- package/dist/index.esm.js +13 -100
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +14 -99
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -936,56 +936,6 @@ var dialogOverrides$1 = {
|
|
|
936
936
|
display: 'flex',
|
|
937
937
|
alignItems: 'center',
|
|
938
938
|
justifyContent: 'center',
|
|
939
|
-
"&.gds-modal--web": {
|
|
940
|
-
textAlign: 'center',
|
|
941
|
-
'& .gds-modal_paper': {
|
|
942
|
-
color: '#444444',
|
|
943
|
-
borderRadius: 8,
|
|
944
|
-
boxShadow: '0 1rem 2rem -0.5rem rgb(28 40 54 / 24%)',
|
|
945
|
-
maxWidth: 360,
|
|
946
|
-
"&:focus": {
|
|
947
|
-
outline: 'none',
|
|
948
|
-
}
|
|
949
|
-
},
|
|
950
|
-
'& .gds-modal_body': {
|
|
951
|
-
flexDirection: 'column',
|
|
952
|
-
justifyContent: 'center',
|
|
953
|
-
display: 'flex',
|
|
954
|
-
alignItems: 'center',
|
|
955
|
-
paddingLeft: 32,
|
|
956
|
-
paddingRight: 32,
|
|
957
|
-
paddingTop: 16,
|
|
958
|
-
paddingBottom: 16,
|
|
959
|
-
},
|
|
960
|
-
'& .gds-modal_footer': {
|
|
961
|
-
backgroundColor: theme.palette.grey[50],
|
|
962
|
-
display: 'flex',
|
|
963
|
-
alignItems: 'center',
|
|
964
|
-
justifyContent: 'center',
|
|
965
|
-
paddingTop: 0,
|
|
966
|
-
paddingBottom: 16,
|
|
967
|
-
paddingLeft: 16,
|
|
968
|
-
paddingRight: 16,
|
|
969
|
-
},
|
|
970
|
-
'& .gds-modal_header': {
|
|
971
|
-
display: 'flex',
|
|
972
|
-
alignItems: 'center',
|
|
973
|
-
padding: '16px',
|
|
974
|
-
"& .MuiTypography-body1": {
|
|
975
|
-
textTransform: "uppercase",
|
|
976
|
-
},
|
|
977
|
-
"& .MuiTypography-root": {
|
|
978
|
-
flex: 1
|
|
979
|
-
}
|
|
980
|
-
},
|
|
981
|
-
'& .gds-modal_icon': {
|
|
982
|
-
"& svg": {
|
|
983
|
-
width: '1em',
|
|
984
|
-
height: '1em',
|
|
985
|
-
fontSize: 56,
|
|
986
|
-
}
|
|
987
|
-
},
|
|
988
|
-
},
|
|
989
939
|
"&.gds-modal--desktop": {
|
|
990
940
|
'& .gds-modal_paper': {
|
|
991
941
|
color: "#444444",
|
|
@@ -1101,7 +1051,7 @@ var dialogContentOverrides$1 = {
|
|
|
1101
1051
|
'&.gds-disablePaddings': {
|
|
1102
1052
|
padding: 0,
|
|
1103
1053
|
},
|
|
1104
|
-
'&:first-
|
|
1054
|
+
'&:first-of-type': {
|
|
1105
1055
|
paddingTop: 0,
|
|
1106
1056
|
},
|
|
1107
1057
|
},
|
|
@@ -2593,51 +2543,6 @@ var dialogOverrides = {
|
|
|
2593
2543
|
}
|
|
2594
2544
|
},
|
|
2595
2545
|
},
|
|
2596
|
-
"&.gds-modal--desktop": {
|
|
2597
|
-
'& .gds-modal_paper': {
|
|
2598
|
-
color: "#444444",
|
|
2599
|
-
boxShadow: theme.shadows[5],
|
|
2600
|
-
maxWidth: 502,
|
|
2601
|
-
"&:focus": {
|
|
2602
|
-
outline: 'none',
|
|
2603
|
-
}
|
|
2604
|
-
},
|
|
2605
|
-
'& .gds-modal_footer': {
|
|
2606
|
-
backgroundColor: theme.palette.grey[100],
|
|
2607
|
-
borderTop: '1px solid #d4d4d4',
|
|
2608
|
-
paddingTop: 5,
|
|
2609
|
-
paddingBottom: 5,
|
|
2610
|
-
paddingLeft: 10,
|
|
2611
|
-
paddingRight: 10,
|
|
2612
|
-
},
|
|
2613
|
-
'& .gds-modal_body': {
|
|
2614
|
-
minHeight: 175,
|
|
2615
|
-
minWidth: 360,
|
|
2616
|
-
display: 'flex',
|
|
2617
|
-
alignItems: 'center',
|
|
2618
|
-
paddingLeft: 35,
|
|
2619
|
-
paddingRight: 35,
|
|
2620
|
-
},
|
|
2621
|
-
'& .gds-modal_header': {
|
|
2622
|
-
display: 'flex',
|
|
2623
|
-
alignItems: 'center',
|
|
2624
|
-
padding: '6px 9px',
|
|
2625
|
-
"& .MuiTypography-root": {
|
|
2626
|
-
flex: 1
|
|
2627
|
-
},
|
|
2628
|
-
"& .MuiTypography-body1": {
|
|
2629
|
-
textTransform: "uppercase",
|
|
2630
|
-
},
|
|
2631
|
-
},
|
|
2632
|
-
'& .gds-modal_icon': {
|
|
2633
|
-
marginRight: 14,
|
|
2634
|
-
"& svg": {
|
|
2635
|
-
width: '1em',
|
|
2636
|
-
height: '1em',
|
|
2637
|
-
fontSize: 50,
|
|
2638
|
-
}
|
|
2639
|
-
},
|
|
2640
|
-
}
|
|
2641
2546
|
},
|
|
2642
2547
|
'& .gds-modal_paper': {
|
|
2643
2548
|
background: "#ffffff",
|
|
@@ -2699,7 +2604,7 @@ var dialogContentOverrides = {
|
|
|
2699
2604
|
'&.gds-disablePaddings': {
|
|
2700
2605
|
padding: 0,
|
|
2701
2606
|
},
|
|
2702
|
-
'&:first-
|
|
2607
|
+
'&:first-of-type': {
|
|
2703
2608
|
paddingTop: 0,
|
|
2704
2609
|
},
|
|
2705
2610
|
},
|
|
@@ -3815,6 +3720,14 @@ function CalendarIcon(props) {
|
|
|
3815
3720
|
return (jsxRuntime.jsxs(SvgIcon, __assign({}, props, { children: [jsxRuntime.jsx("rect", { x: "4.03812", y: "7.03696", width: "16", height: "12", fill: "white" }), jsxRuntime.jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.509 4C10.2132 4 9.97333 4.23985 9.97333 4.53571C9.97333 4.83158 10.2132 5.07143 10.509 5.07143H13.4957C13.7916 5.07143 14.0314 4.83158 14.0314 4.53571C14.0314 4.23985 13.7916 4 13.4957 4H10.509ZM4.46132 4.46018C4.71899 4.20251 5.08976 4.00122 5.50238 4.00122H7.00238C7.27852 4.00122 7.50238 4.22508 7.50238 4.50122C7.50238 4.77736 7.27852 5.00122 7.00238 5.00122H5.50238C5.41501 5.00122 5.28577 5.04995 5.16844 5.16728C5.0511 5.28462 5.00238 5.41386 5.00238 5.50122V6.99332H19.0024V5.50122C19.0024 5.41384 18.9537 5.2846 18.8363 5.16727C18.719 5.04995 18.5898 5.00122 18.5024 5.00122H17.0024C16.7262 5.00122 16.5024 4.77736 16.5024 4.50122C16.5024 4.22508 16.7262 4.00122 17.0024 4.00122H18.5024C18.915 4.00122 19.2858 4.20249 19.5434 4.46017C19.8011 4.71784 20.0024 5.0886 20.0024 5.50122V7.47818C20.004 7.49492 20.0048 7.51188 20.0048 7.52903C20.0048 7.54618 20.004 7.56315 20.0024 7.57989V18.5012C20.0024 18.9138 19.8011 19.2846 19.5434 19.5423C19.2858 19.7999 18.915 20.0012 18.5024 20.0012H5.50238C5.08976 20.0012 4.719 19.7999 4.46133 19.5423C4.20365 19.2846 4.00238 18.9138 4.00238 18.5012V7.57987C4.00081 7.56313 4 7.54618 4 7.52903C4 7.51189 4.00081 7.49493 4.00238 7.4782V5.50122C4.00238 5.08862 4.20366 4.71785 4.46132 4.46018ZM5.00238 18.5012V8.06475H19.0024V18.5012C19.0024 18.5886 18.9537 18.7178 18.8363 18.8352C18.719 18.9525 18.5898 19.0012 18.5024 19.0012H5.50238C5.415 19.0012 5.28576 18.9525 5.16843 18.8352C5.05111 18.7178 5.00238 18.5886 5.00238 18.5012ZM15.4869 4C15.7827 4 16.0226 4.23985 16.0226 4.53571V5.53349C16.0226 5.82935 15.7827 6.0692 15.4869 6.0692C15.191 6.0692 14.9511 5.82935 14.9511 5.53349V4.53571C14.9511 4.23985 15.191 4 15.4869 4ZM9.05364 4.53571C9.05364 4.23985 8.81379 4 8.51793 4C8.22206 4 7.98221 4.23985 7.98221 4.53571V5.53349C7.98221 5.82935 8.22206 6.0692 8.51793 6.0692C8.81379 6.0692 9.05364 5.82935 9.05364 5.53349V4.53571Z", fill: "#1E365E" }), jsxRuntime.jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.5024 7.00122C10.7785 7.00122 11.0024 7.22508 11.0024 7.50122V10.0012H12.0024C12.2785 10.0012 12.5024 10.2251 12.5024 10.5012C12.5024 10.7774 12.2785 11.0012 12.0024 11.0012H11.0024V13.0012H12.0024C12.2785 13.0012 12.5024 13.2251 12.5024 13.5012C12.5024 13.7774 12.2785 14.0012 12.0024 14.0012H11.0024V16.0012H16.0024V15.0012C16.0024 14.7251 16.2262 14.5012 16.5024 14.5012C16.7785 14.5012 17.0024 14.7251 17.0024 15.0012V16.0012H19.5024C19.7785 16.0012 20.0024 16.2251 20.0024 16.5012C20.0024 16.7774 19.7785 17.0012 19.5024 17.0012H17.0024V19.5012C17.0024 19.7774 16.7785 20.0012 16.5024 20.0012C16.2262 20.0012 16.0024 19.7774 16.0024 19.5012V17.0012H11.0024V19.5012C11.0024 19.7774 10.7785 20.0012 10.5024 20.0012C10.2262 20.0012 10.0024 19.7774 10.0024 19.5012V17.0012H8.00238V19.5012C8.00238 19.7774 7.77852 20.0012 7.50238 20.0012C7.22624 20.0012 7.00238 19.7774 7.00238 19.5012V17.0012H4.50238C4.22624 17.0012 4.00238 16.7774 4.00238 16.5012C4.00238 16.2251 4.22624 16.0012 4.50238 16.0012H7.00238V14.0012H4.50238C4.22624 14.0012 4.00238 13.7774 4.00238 13.5012C4.00238 13.2251 4.22624 13.0012 4.50238 13.0012H7.00238V11.0012H4.50238C4.22624 11.0012 4.00238 10.7774 4.00238 10.5012C4.00238 10.2251 4.22624 10.0012 4.50238 10.0012H7.00238V7.50122C7.00238 7.22508 7.22624 7.00122 7.50238 7.00122C7.77852 7.00122 8.00238 7.22508 8.00238 7.50122V10.0012H10.0024V7.50122C10.0024 7.22508 10.2262 7.00122 10.5024 7.00122ZM8.00238 11.0012V13.0012H10.0024V11.0012H8.00238ZM8.00238 14.0012V16.0012H10.0024V14.0012H8.00238ZM18.0024 13.0012C17.7262 13.0012 17.5024 13.2251 17.5024 13.5012C17.5024 13.7774 17.7262 14.0012 18.0024 14.0012H19.5024C19.7785 14.0012 20.0024 13.7774 20.0024 13.5012C20.0024 13.2251 19.7785 13.0012 19.5024 13.0012H18.0024ZM18.0024 10.0012C17.7262 10.0012 17.5024 10.2251 17.5024 10.5012C17.5024 10.7774 17.7262 11.0012 18.0024 11.0012H19.5024C19.7785 11.0012 20.0024 10.7774 20.0024 10.5012C20.0024 10.2251 19.7785 10.0012 19.5024 10.0012H18.0024ZM16.5024 7.00122C16.7785 7.00122 17.0024 7.22508 17.0024 7.50122V9.00122C17.0024 9.27736 16.7785 9.50122 16.5024 9.50122C16.2262 9.50122 16.0024 9.27736 16.0024 9.00122V7.50122C16.0024 7.22508 16.2262 7.00122 16.5024 7.00122Z", fill: "#1E365E", fillOpacity: "0.5" }), jsxRuntime.jsx("rect", { x: "13.5381", y: "10.5369", width: "3", height: "3", fill: "#1E365E", fillOpacity: "0.5", stroke: "#1E365E" })] })));
|
|
3816
3721
|
}
|
|
3817
3722
|
|
|
3723
|
+
function CaretDown12Icon(props) {
|
|
3724
|
+
return (jsxRuntime.jsx(SvgIcon, __assign({}, props, { children: jsxRuntime.jsx("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: jsxRuntime.jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M2.75 4.5H9.25L6 7.99887L2.75 4.5Z", fill: "currentColor" }) }) })));
|
|
3725
|
+
}
|
|
3726
|
+
|
|
3727
|
+
function CaretUp12Icon(props) {
|
|
3728
|
+
return (jsxRuntime.jsx(SvgIcon, __assign({}, props, { children: jsxRuntime.jsx("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: jsxRuntime.jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9.25 7.99887L2.75 7.99887L6 4.5L9.25 7.99887Z", fill: "currentColor" }) }) })));
|
|
3729
|
+
}
|
|
3730
|
+
|
|
3818
3731
|
function ChevronLeftIcon(props) {
|
|
3819
3732
|
return (jsxRuntime.jsx(SvgIcon, __assign({}, props, { viewBox: "0 0 16 16", children: jsxRuntime.jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9.91782 3.6263L10.5822 4.3737L6.5026 8L10.5822 11.6263L9.91782 12.3737L4.9974 8L9.91782 3.6263Z" }) })));
|
|
3820
3733
|
}
|
|
@@ -16350,9 +16263,9 @@ function LeapLogoIcon(props) {
|
|
|
16350
16263
|
}
|
|
16351
16264
|
|
|
16352
16265
|
var Dialog = function (props) {
|
|
16353
|
-
var variant = props.variant, platform = props.platform, title = props.title, message = props.message, children = props.children, rest = __rest(props, ["variant", "platform", "title", "message", "children"]);
|
|
16354
16266
|
var theme = material.useTheme();
|
|
16355
|
-
var
|
|
16267
|
+
var variant = props.variant, title = props.title, message = props.message, children = props.children, rest = __rest(props, ["variant", "title", "message", "children"]);
|
|
16268
|
+
var isWeb = function () { return theme.platform.name === 'leap_web'; };
|
|
16356
16269
|
var variantIcon;
|
|
16357
16270
|
switch (variant) {
|
|
16358
16271
|
case 'info':
|
|
@@ -17706,6 +17619,8 @@ exports.CalendarIcon = CalendarIcon;
|
|
|
17706
17619
|
exports.CalendarRibbonIcon = CalendarRibbonIcon;
|
|
17707
17620
|
exports.CaratIcon = CaratIcon;
|
|
17708
17621
|
exports.Card = Card;
|
|
17622
|
+
exports.CaretDown12Icon = CaretDown12Icon;
|
|
17623
|
+
exports.CaretUp12Icon = CaretUp12Icon;
|
|
17709
17624
|
exports.Checkbox = Checkbox;
|
|
17710
17625
|
exports.ChevronDownIcon = ChevronDownIcon;
|
|
17711
17626
|
exports.ChevronLeftIcon = ChevronLeftIcon;
|