@hexure/ui 1.13.16 → 1.13.18
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/cjs/index.js +439 -431
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/DatePicker/DatePicker.d.ts +1 -8
- package/dist/esm/index.js +439 -431
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/DatePicker/DatePicker.d.ts +1 -8
- package/dist/index.d.ts +1 -8
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -683,46 +683,46 @@ const BulkActionBar = (_a) => {
|
|
|
683
683
|
React.createElement(ErrorMsg, null, errorMsg))) : null));
|
|
684
684
|
};
|
|
685
685
|
|
|
686
|
-
const Wrapper$d = styled.div `
|
|
687
|
-
background: #fff;
|
|
688
|
-
border-radius: 8px;
|
|
689
|
-
box-shadow: 0px 10px 30px -15px rgba(0, 0, 0, 0.2);
|
|
690
|
-
display: flex;
|
|
691
|
-
flex-direction: column;
|
|
692
|
-
gap: 4px;
|
|
693
|
-
max-height: ${props => props.$maxHeight || '312px'};
|
|
694
|
-
padding: 10px;
|
|
695
|
-
width: 200px;
|
|
696
|
-
`;
|
|
697
|
-
const MenuItem = styled.div `
|
|
698
|
-
align-items: center;
|
|
699
|
-
border-radius: 8px;
|
|
700
|
-
border: 1px solid transparent;
|
|
701
|
-
display: flex;
|
|
702
|
-
gap: 8px;
|
|
703
|
-
height: 38px;
|
|
704
|
-
padding: 8px;
|
|
705
|
-
&:hover {
|
|
706
|
-
background: rgba(1, 147, 215, 0.1);
|
|
707
|
-
cursor: pointer;
|
|
708
|
-
|
|
709
|
-
svg,
|
|
710
|
-
path {
|
|
711
|
-
fill: ${props => props.theme.PRIMARY_COLOR.Hex} !important;
|
|
712
|
-
}
|
|
713
|
-
}
|
|
686
|
+
const Wrapper$d = styled.div `
|
|
687
|
+
background: #fff;
|
|
688
|
+
border-radius: 8px;
|
|
689
|
+
box-shadow: 0px 10px 30px -15px rgba(0, 0, 0, 0.2);
|
|
690
|
+
display: flex;
|
|
691
|
+
flex-direction: column;
|
|
692
|
+
gap: 4px;
|
|
693
|
+
max-height: ${props => props.$maxHeight || '312px'};
|
|
694
|
+
padding: 10px;
|
|
695
|
+
width: 200px;
|
|
696
|
+
`;
|
|
697
|
+
const MenuItem = styled.div `
|
|
698
|
+
align-items: center;
|
|
699
|
+
border-radius: 8px;
|
|
700
|
+
border: 1px solid transparent;
|
|
701
|
+
display: flex;
|
|
702
|
+
gap: 8px;
|
|
703
|
+
height: 38px;
|
|
704
|
+
padding: 8px;
|
|
705
|
+
&:hover {
|
|
706
|
+
background: rgba(1, 147, 215, 0.1);
|
|
707
|
+
cursor: pointer;
|
|
708
|
+
|
|
709
|
+
svg,
|
|
710
|
+
path {
|
|
711
|
+
fill: ${props => props.theme.PRIMARY_COLOR.Hex} !important;
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
714
|
`;
|
|
715
715
|
MenuItem.defaultProps = { theme: EditableTheme };
|
|
716
|
-
const Title$1 = styled.span `
|
|
717
|
-
font-family: Roboto;
|
|
718
|
-
font-size: 14px;
|
|
719
|
-
font-weight: 400;
|
|
720
|
-
height: auto;
|
|
721
|
-
letter-spacing: 0px;
|
|
722
|
-
line-height: 22px;
|
|
723
|
-
text-align: left;
|
|
724
|
-
color: ${({ disabled }) => (disabled ? Colors.LIGHT_GRAY.Hex : 'inherit')};
|
|
725
|
-
pointer-events: ${({ disabled }) => (disabled ? 'none' : 'auto')};
|
|
716
|
+
const Title$1 = styled.span `
|
|
717
|
+
font-family: Roboto;
|
|
718
|
+
font-size: 14px;
|
|
719
|
+
font-weight: 400;
|
|
720
|
+
height: auto;
|
|
721
|
+
letter-spacing: 0px;
|
|
722
|
+
line-height: 22px;
|
|
723
|
+
text-align: left;
|
|
724
|
+
color: ${({ disabled }) => (disabled ? Colors.LIGHT_GRAY.Hex : 'inherit')};
|
|
725
|
+
pointer-events: ${({ disabled }) => (disabled ? 'none' : 'auto')};
|
|
726
726
|
`;
|
|
727
727
|
Title$1.defaultProps = {
|
|
728
728
|
disabled: false,
|
|
@@ -737,17 +737,17 @@ const MoreMenu = (_a) => {
|
|
|
737
737
|
})));
|
|
738
738
|
};
|
|
739
739
|
|
|
740
|
-
const MenuWrapper = styled.div `
|
|
741
|
-
position: relative; // Ensure this is relative
|
|
742
|
-
display: inline-block;
|
|
743
|
-
`;
|
|
744
|
-
const StyledMoreMenu = styled(MoreMenu) `
|
|
745
|
-
position: absolute; // Changed from fixed to absolute
|
|
746
|
-
top: ${props => props.$top};
|
|
747
|
-
left: ${props => props.$left};
|
|
748
|
-
width: ${props => props.$menuWidth};
|
|
749
|
-
max-height: ${props => props.maxHeight};
|
|
750
|
-
z-index: 10;
|
|
740
|
+
const MenuWrapper = styled.div `
|
|
741
|
+
position: relative; // Ensure this is relative
|
|
742
|
+
display: inline-block;
|
|
743
|
+
`;
|
|
744
|
+
const StyledMoreMenu = styled(MoreMenu) `
|
|
745
|
+
position: absolute; // Changed from fixed to absolute
|
|
746
|
+
top: ${props => props.$top};
|
|
747
|
+
left: ${props => props.$left};
|
|
748
|
+
width: ${props => props.$menuWidth};
|
|
749
|
+
max-height: ${props => props.maxHeight};
|
|
750
|
+
z-index: 10;
|
|
751
751
|
`;
|
|
752
752
|
const ButtonMenu = ({ disabled, label, maxHeight, menuItems, small, position = 'bottomLeft', format = 'primary', menuWidth = '200px', enableHover = true, enableClick = false, show = false, }) => {
|
|
753
753
|
const [showMenu, toggleMenu] = React.useState(false);
|
|
@@ -864,7 +864,7 @@ const positions = {
|
|
|
864
864
|
transform: 'translateY(-50%)',
|
|
865
865
|
},
|
|
866
866
|
};
|
|
867
|
-
const Content$2 = styled.div(props => (Object.assign({ position: 'absolute', borderRadius: '4px', borderWidth: '1px', borderStyle: 'solid', borderColor: props.theme.PRIMARY_COLOR.Hex, background: '#ffffff', boxShadow: '0px 5px 30px -10px rgba(0, 0, 0, 0.5)', width: props.$width || '240px', padding: '10px 12px', zIndex:
|
|
867
|
+
const Content$2 = styled.div(props => (Object.assign({ position: 'absolute', borderRadius: '4px', borderWidth: '1px', borderStyle: 'solid', borderColor: props.theme.PRIMARY_COLOR.Hex, background: '#ffffff', boxShadow: '0px 5px 30px -10px rgba(0, 0, 0, 0.5)', width: props.$width || '240px', padding: '10px 12px', zIndex: 9999 }, positions[props.$position])));
|
|
868
868
|
Content$2.defaultProps = { theme: EditableTheme };
|
|
869
869
|
const Tooltip = ({ children, position = 'right-top', width = '240px', trigger, }) => {
|
|
870
870
|
const [show_content, toggleContent] = React.useState(false);
|
|
@@ -1007,73 +1007,77 @@ const Checklist = (_a) => {
|
|
|
1007
1007
|
}))));
|
|
1008
1008
|
};
|
|
1009
1009
|
|
|
1010
|
-
const Wrapper$a = styled.div `
|
|
1011
|
-
border-radius: 4px;
|
|
1012
|
-
height: 40px;
|
|
1013
|
-
background-color: ${props => (props.$readOnly ? '#f5f5f5' : '#ffffff')};
|
|
1014
|
-
position: relative;
|
|
1015
|
-
cursor: ${props => (props.$readOnly ? 'default' : 'pointer')};
|
|
1016
|
-
border-width: 1px;
|
|
1017
|
-
border-style: solid;
|
|
1018
|
-
border-color: ${props => (props.$invalid ? Colors.RED.Hex : '#cccccc')};
|
|
1019
|
-
border-radius: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.borderRadius) || '4px'};
|
|
1020
|
-
flex-grow: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.flexGrow) || 0};
|
|
1021
|
-
box-sizing: border-box;
|
|
1022
|
-
padding: 10px 0px;
|
|
1023
|
-
display: flex;
|
|
1024
|
-
align-items: center;
|
|
1025
|
-
width: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.width) || 'auto'};
|
|
1026
|
-
|
|
1027
|
-
&:focus-within {
|
|
1028
|
-
border-color: ${props => (props.$readOnly ? '#cccccc' : props.theme.PRIMARY_COLOR.Hex)};
|
|
1029
|
-
}
|
|
1010
|
+
const Wrapper$a = styled.div `
|
|
1011
|
+
border-radius: 4px;
|
|
1012
|
+
height: 40px;
|
|
1013
|
+
background-color: ${props => (props.$readOnly ? '#f5f5f5' : '#ffffff')};
|
|
1014
|
+
position: relative;
|
|
1015
|
+
cursor: ${props => (props.$readOnly ? 'default' : 'pointer')};
|
|
1016
|
+
border-width: 1px;
|
|
1017
|
+
border-style: solid;
|
|
1018
|
+
border-color: ${props => (props.$invalid ? Colors.RED.Hex : '#cccccc')};
|
|
1019
|
+
border-radius: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.borderRadius) || '4px'};
|
|
1020
|
+
flex-grow: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.flexGrow) || 0};
|
|
1021
|
+
box-sizing: border-box;
|
|
1022
|
+
padding: 10px 0px;
|
|
1023
|
+
display: flex;
|
|
1024
|
+
align-items: center;
|
|
1025
|
+
width: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.width) || 'auto'};
|
|
1026
|
+
|
|
1027
|
+
&:focus-within {
|
|
1028
|
+
border-color: ${props => (props.$readOnly ? '#cccccc' : props.theme.PRIMARY_COLOR.Hex)};
|
|
1029
|
+
}
|
|
1030
1030
|
`;
|
|
1031
1031
|
Wrapper$a.defaultProps = { theme: EditableTheme };
|
|
1032
|
-
const Trigger$1 = styled.select `
|
|
1033
|
-
appearance: none;
|
|
1034
|
-
box-shadow: none;
|
|
1035
|
-
outline: none;
|
|
1036
|
-
border: none;
|
|
1037
|
-
color: ${Colors.BLACK.Hex};
|
|
1038
|
-
font-size: ${FontSizes.DEFAULT};
|
|
1039
|
-
font-weight: 400;
|
|
1040
|
-
font-family: ${FontStyles.DEFAULT};
|
|
1041
|
-
line-height: 2.9em;
|
|
1042
|
-
background-color: transparent;
|
|
1043
|
-
background-image: none;
|
|
1044
|
-
width: 100%;
|
|
1045
|
-
box-sizing: border-box;
|
|
1046
|
-
padding: 0px 30px 0px 10px;
|
|
1047
|
-
box-sizing: border-box;
|
|
1048
|
-
position: relative;
|
|
1049
|
-
z-index: 2;
|
|
1050
|
-
`;
|
|
1051
|
-
const IconWrapper$2 = styled(Icon) `
|
|
1052
|
-
position: absolute;
|
|
1053
|
-
right: 9px;
|
|
1054
|
-
z-index: 1;
|
|
1055
|
-
`;
|
|
1056
|
-
const SearchInput$1 = styled.input `
|
|
1057
|
-
position: absolute;
|
|
1058
|
-
left: 2px;
|
|
1059
|
-
top: 2px;
|
|
1060
|
-
z-index: 999;
|
|
1061
|
-
width: 90%;
|
|
1062
|
-
height: 30px;
|
|
1063
|
-
border: none;
|
|
1064
|
-
outline: none;
|
|
1065
|
-
color: ${Colors.BLACK.Hex};
|
|
1066
|
-
font-family: ${FontStyles.DEFAULT};
|
|
1067
|
-
font-size: ${FontSizes.DEFAULT};
|
|
1068
|
-
font-weight: 400;
|
|
1069
|
-
line-height: 2.9em;
|
|
1070
|
-
overflow: hidden;
|
|
1071
|
-
white-space: nowrap;
|
|
1032
|
+
const Trigger$1 = styled.select `
|
|
1033
|
+
appearance: none;
|
|
1034
|
+
box-shadow: none;
|
|
1035
|
+
outline: none;
|
|
1036
|
+
border: none;
|
|
1037
|
+
color: ${Colors.BLACK.Hex};
|
|
1038
|
+
font-size: ${FontSizes.DEFAULT};
|
|
1039
|
+
font-weight: 400;
|
|
1040
|
+
font-family: ${FontStyles.DEFAULT};
|
|
1041
|
+
line-height: 2.9em;
|
|
1042
|
+
background-color: transparent;
|
|
1043
|
+
background-image: none;
|
|
1044
|
+
width: 100%;
|
|
1045
|
+
box-sizing: border-box;
|
|
1046
|
+
padding: 0px 30px 0px 10px;
|
|
1047
|
+
box-sizing: border-box;
|
|
1048
|
+
position: relative;
|
|
1049
|
+
z-index: 2;
|
|
1050
|
+
`;
|
|
1051
|
+
const IconWrapper$2 = styled(Icon) `
|
|
1052
|
+
position: absolute;
|
|
1053
|
+
right: 9px;
|
|
1054
|
+
z-index: 1;
|
|
1055
|
+
`;
|
|
1056
|
+
const SearchInput$1 = styled.input `
|
|
1057
|
+
position: absolute;
|
|
1058
|
+
left: 2px;
|
|
1059
|
+
top: 2px;
|
|
1060
|
+
z-index: 999;
|
|
1061
|
+
width: 90%;
|
|
1062
|
+
height: 30px;
|
|
1063
|
+
border: none;
|
|
1064
|
+
outline: none;
|
|
1065
|
+
color: ${Colors.BLACK.Hex};
|
|
1066
|
+
font-family: ${FontStyles.DEFAULT};
|
|
1067
|
+
font-size: ${FontSizes.DEFAULT};
|
|
1068
|
+
font-weight: 400;
|
|
1069
|
+
line-height: 2.9em;
|
|
1070
|
+
overflow: hidden;
|
|
1071
|
+
white-space: nowrap;
|
|
1072
1072
|
`;
|
|
1073
1073
|
const Select = (_a) => {
|
|
1074
1074
|
var { options, optionGroups, placeholder = '--Select-One--', readOnly, invalid, searchable = false, value: propValue, onChange, style } = _a, accessibleProps = __rest(_a, ["options", "optionGroups", "placeholder", "readOnly", "invalid", "searchable", "value", "onChange", "style"]);
|
|
1075
1075
|
const [searchTerm, setSearchTerm] = React.useState('');
|
|
1076
1076
|
const [value, setValue] = React.useState(propValue || '');
|
|
1077
|
+
// Update the value when the prop changes
|
|
1078
|
+
React.useEffect(() => {
|
|
1079
|
+
setValue(propValue || '');
|
|
1080
|
+
}, [propValue]);
|
|
1077
1081
|
const handleSearch = (event) => {
|
|
1078
1082
|
setSearchTerm(event.target.value);
|
|
1079
1083
|
};
|
|
@@ -1108,16 +1112,27 @@ const Middle = styled.div `
|
|
|
1108
1112
|
margin: 0px -1px;
|
|
1109
1113
|
flex-grow: 1;
|
|
1110
1114
|
`;
|
|
1111
|
-
const DatePicker = ({ readOnly = false, invalid = false, maxDate = null, minDate = null, date,
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
const [
|
|
1115
|
+
const DatePicker = ({ readOnly = false, invalid = false, maxDate = null, minDate = null, date,
|
|
1116
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
1117
|
+
onChange = () => { }, style, }) => {
|
|
1118
|
+
const [selectedDay, setSelectedDay] = React.useState(date ? dayjs(date).date().toString() : '');
|
|
1119
|
+
const [selectedMonth, setSelectedMonth] = React.useState(date ? (dayjs(date).month() + 1).toString() : '');
|
|
1120
|
+
const [selectedYear, setSelectedYear] = React.useState(date ? dayjs(date).year().toString() : '');
|
|
1115
1121
|
const [dDate, setDDate] = React.useState(dayjs(date || undefined));
|
|
1116
1122
|
const dMaxDate = maxDate ? dayjs(maxDate) : dayjs();
|
|
1117
1123
|
const dMinDate = minDate ? dayjs(minDate) : dMaxDate.subtract(100, 'year');
|
|
1118
1124
|
const [dayOptions, setDayOptions] = React.useState(Array.from({ length: dDate.daysInMonth() }, (_, i) => ({
|
|
1119
1125
|
value: i + 1,
|
|
1126
|
+
label: (i + 1).toString(),
|
|
1120
1127
|
})));
|
|
1128
|
+
const months = Array.from({ length: 12 }, (_, i) => ({
|
|
1129
|
+
value: i + 1,
|
|
1130
|
+
label: dayjs().month(i).format('MMMM'),
|
|
1131
|
+
}));
|
|
1132
|
+
const years = Array.from({ length: dMaxDate.year() - dMinDate.year() + 1 }, (_, i) => ({
|
|
1133
|
+
value: dMinDate.year() + i,
|
|
1134
|
+
label: (dMinDate.year() + i).toString(),
|
|
1135
|
+
}));
|
|
1121
1136
|
React.useEffect(() => {
|
|
1122
1137
|
if (date) {
|
|
1123
1138
|
const d = dayjs(date);
|
|
@@ -1127,33 +1142,20 @@ const DatePicker = ({ readOnly = false, invalid = false, maxDate = null, minDate
|
|
|
1127
1142
|
setDDate(d);
|
|
1128
1143
|
}
|
|
1129
1144
|
}, [date]);
|
|
1130
|
-
const months = [
|
|
1131
|
-
{ label: 'January', value: 1 },
|
|
1132
|
-
{ label: 'Feburary', value: 2 },
|
|
1133
|
-
{ label: 'March', value: 3 },
|
|
1134
|
-
{ label: 'April', value: 4 },
|
|
1135
|
-
{ label: 'May', value: 5 },
|
|
1136
|
-
{ label: 'June', value: 6 },
|
|
1137
|
-
{ label: 'July', value: 7 },
|
|
1138
|
-
{ label: 'August', value: 8 },
|
|
1139
|
-
{ label: 'September', value: 9 },
|
|
1140
|
-
{ label: 'October', value: 10 },
|
|
1141
|
-
{ label: 'November', value: 11 },
|
|
1142
|
-
{ label: 'December', value: 12 },
|
|
1143
|
-
];
|
|
1144
|
-
const years = Array.from({ length: dMaxDate.year() - dMinDate.year() + 1 }, (_, i) => ({
|
|
1145
|
-
label: (dMinDate.year() + i).toString(),
|
|
1146
|
-
value: dMinDate.year() + i,
|
|
1147
|
-
}));
|
|
1148
1145
|
React.useEffect(() => {
|
|
1149
1146
|
if (selectedDay && selectedMonth && selectedYear) {
|
|
1150
1147
|
const newDate = dayjs(`${selectedYear}-${selectedMonth}-${selectedDay}`);
|
|
1151
1148
|
if (newDate.isValid() && newDate.format('YYYY-MM-DD') !== date) {
|
|
1152
|
-
onChange
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1149
|
+
if (typeof onChange === 'function') {
|
|
1150
|
+
onChange({
|
|
1151
|
+
target: {
|
|
1152
|
+
value: newDate.format('YYYY-MM-DD'),
|
|
1153
|
+
},
|
|
1154
|
+
});
|
|
1155
|
+
}
|
|
1156
|
+
else {
|
|
1157
|
+
console.error('onChange is not a function');
|
|
1158
|
+
}
|
|
1157
1159
|
}
|
|
1158
1160
|
}
|
|
1159
1161
|
}, [selectedDay, selectedMonth, selectedYear]);
|
|
@@ -1174,6 +1176,7 @@ const DatePicker = ({ readOnly = false, invalid = false, maxDate = null, minDate
|
|
|
1174
1176
|
// Update dayOptions based on the new date
|
|
1175
1177
|
setDayOptions(Array.from({ length: new_date.daysInMonth() }, (_, i) => ({
|
|
1176
1178
|
value: i + 1,
|
|
1179
|
+
label: (i + 1).toString(),
|
|
1177
1180
|
})));
|
|
1178
1181
|
};
|
|
1179
1182
|
const handleYearChange = (e) => {
|
|
@@ -1636,143 +1639,143 @@ const formatAsSsn = (number) => {
|
|
|
1636
1639
|
return formatted_value;
|
|
1637
1640
|
};
|
|
1638
1641
|
|
|
1639
|
-
const StyledInput = styled.input `
|
|
1640
|
-
border: none !important;
|
|
1641
|
-
background: none !important;
|
|
1642
|
-
font-size: ${FontSizes.DEFAULT};
|
|
1643
|
-
font-weight: 400;
|
|
1644
|
-
font-family: ${FontStyles.DEFAULT};
|
|
1645
|
-
line-height: 1.28em;
|
|
1646
|
-
color: ${props => (props.$invalid && !props.$readOnly ? Colors.RED.Hex : Colors.BLACK.Hex)};
|
|
1647
|
-
position: relative;
|
|
1648
|
-
height: ${props => props.$height || 'auto'};
|
|
1649
|
-
padding: 10px;
|
|
1650
|
-
opacity: ${props => (props.$readOnly ? 0.6 : 1)};
|
|
1651
|
-
box-shadow: none;
|
|
1652
|
-
outline: none;
|
|
1653
|
-
margin: 0px;
|
|
1654
|
-
text-indent: 0px;
|
|
1655
|
-
--webkit-appearance: none;
|
|
1656
|
-
box-sizing: border-box;
|
|
1657
|
-
display: block;
|
|
1658
|
-
width: 100%;
|
|
1659
|
-
`;
|
|
1660
|
-
const StyledTextArea = styled.textarea `
|
|
1661
|
-
border: none !important;
|
|
1662
|
-
background: none !important;
|
|
1663
|
-
overflow-y: scroll !important;
|
|
1664
|
-
font-size: 14px;
|
|
1665
|
-
font-weight: 400;
|
|
1666
|
-
height: ${props => props.$height || 'auto'};
|
|
1667
|
-
font-family: 'Roboto', Helvetica, Arial, sans-serif;
|
|
1668
|
-
line-height: 1.28em;
|
|
1669
|
-
color: ${({ $invalid }) => ($invalid ? '#ff0000' : '#000000')};
|
|
1670
|
-
position: relative;
|
|
1671
|
-
padding: 10px;
|
|
1672
|
-
opacity: 1;
|
|
1673
|
-
box-shadow: none;
|
|
1674
|
-
outline: none;
|
|
1675
|
-
margin: 0px;
|
|
1676
|
-
text-indent: 0px;
|
|
1677
|
-
--webkit-appearance: none;
|
|
1678
|
-
overflow-wrap: break-word;
|
|
1679
|
-
box-sizing: border-box;
|
|
1680
|
-
display: block;
|
|
1681
|
-
width: 100%;
|
|
1642
|
+
const StyledInput = styled.input `
|
|
1643
|
+
border: none !important;
|
|
1644
|
+
background: none !important;
|
|
1645
|
+
font-size: ${FontSizes.DEFAULT};
|
|
1646
|
+
font-weight: 400;
|
|
1647
|
+
font-family: ${FontStyles.DEFAULT};
|
|
1648
|
+
line-height: 1.28em;
|
|
1649
|
+
color: ${props => (props.$invalid && !props.$readOnly ? Colors.RED.Hex : Colors.BLACK.Hex)};
|
|
1650
|
+
position: relative;
|
|
1651
|
+
height: ${props => props.$height || 'auto'};
|
|
1652
|
+
padding: 10px;
|
|
1653
|
+
opacity: ${props => (props.$readOnly ? 0.6 : 1)};
|
|
1654
|
+
box-shadow: none;
|
|
1655
|
+
outline: none;
|
|
1656
|
+
margin: 0px;
|
|
1657
|
+
text-indent: 0px;
|
|
1658
|
+
--webkit-appearance: none;
|
|
1659
|
+
box-sizing: border-box;
|
|
1660
|
+
display: block;
|
|
1661
|
+
width: 100%;
|
|
1662
|
+
`;
|
|
1663
|
+
const StyledTextArea = styled.textarea `
|
|
1664
|
+
border: none !important;
|
|
1665
|
+
background: none !important;
|
|
1666
|
+
overflow-y: scroll !important;
|
|
1667
|
+
font-size: 14px;
|
|
1668
|
+
font-weight: 400;
|
|
1669
|
+
height: ${props => props.$height || 'auto'};
|
|
1670
|
+
font-family: 'Roboto', Helvetica, Arial, sans-serif;
|
|
1671
|
+
line-height: 1.28em;
|
|
1672
|
+
color: ${({ $invalid }) => ($invalid ? '#ff0000' : '#000000')};
|
|
1673
|
+
position: relative;
|
|
1674
|
+
padding: 10px;
|
|
1675
|
+
opacity: 1;
|
|
1676
|
+
box-shadow: none;
|
|
1677
|
+
outline: none;
|
|
1678
|
+
margin: 0px;
|
|
1679
|
+
text-indent: 0px;
|
|
1680
|
+
--webkit-appearance: none;
|
|
1681
|
+
overflow-wrap: break-word;
|
|
1682
|
+
box-sizing: border-box;
|
|
1683
|
+
display: block;
|
|
1684
|
+
width: 100%;
|
|
1682
1685
|
${({ $readOnly }) => $readOnly &&
|
|
1683
|
-
`
|
|
1684
|
-
background-color: #f0f0f0;
|
|
1685
|
-
color: #999999;
|
|
1686
|
-
overflow-y: scroll;
|
|
1687
|
-
`}
|
|
1688
|
-
`;
|
|
1689
|
-
const StyledSuffix = styled.div `
|
|
1690
|
-
box-sizing: border-box;
|
|
1691
|
-
border-radius: 0px 4px 4px 0px;
|
|
1692
|
-
display: flex;
|
|
1693
|
-
justify-content: center;
|
|
1694
|
-
align-items: center;
|
|
1695
|
-
padding: 10px;
|
|
1696
|
-
height: auto;
|
|
1697
|
-
background: #f5f5f5;
|
|
1698
|
-
border-width: 0px 0px 0px 1px;
|
|
1699
|
-
border-style: solid;
|
|
1700
|
-
border-color: #cccccc;
|
|
1701
|
-
font-family: ${FontStyles.DEFAULT};
|
|
1702
|
-
font-style: normal;
|
|
1703
|
-
font-weight: 400;
|
|
1704
|
-
font-size: ${FontSizes.DEFAULT};
|
|
1705
|
-
color: ${Colors.BLACK.Hex};
|
|
1706
|
-
`;
|
|
1707
|
-
const StyledWrapper = styled.div `
|
|
1708
|
-
display: flex;
|
|
1709
|
-
width: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.width) || 'auto'};
|
|
1710
|
-
background-color: ${props => (props.$readOnly ? '#f5f5f5' : '#ffffff')};
|
|
1711
|
-
position: relative;
|
|
1712
|
-
border-width: 1px;
|
|
1713
|
-
border-style: solid;
|
|
1714
|
-
border-color: ${props => (props.$invalid && !props.$readOnly ? Colors.RED.Hex : '#cccccc')};
|
|
1715
|
-
border-radius: ${props => (props.$suggestions ? '4px 4px 0px 0px' : '4px')};
|
|
1716
|
-
|
|
1717
|
-
&:focus-within {
|
|
1718
|
-
border-color: ${props => (props.$readOnly ? '#cccccc' : props.theme.PRIMARY_COLOR.Hex)};
|
|
1719
|
-
}
|
|
1686
|
+
`
|
|
1687
|
+
background-color: #f0f0f0;
|
|
1688
|
+
color: #999999;
|
|
1689
|
+
overflow-y: scroll;
|
|
1690
|
+
`}
|
|
1691
|
+
`;
|
|
1692
|
+
const StyledSuffix = styled.div `
|
|
1693
|
+
box-sizing: border-box;
|
|
1694
|
+
border-radius: 0px 4px 4px 0px;
|
|
1695
|
+
display: flex;
|
|
1696
|
+
justify-content: center;
|
|
1697
|
+
align-items: center;
|
|
1698
|
+
padding: 10px;
|
|
1699
|
+
height: auto;
|
|
1700
|
+
background: #f5f5f5;
|
|
1701
|
+
border-width: 0px 0px 0px 1px;
|
|
1702
|
+
border-style: solid;
|
|
1703
|
+
border-color: #cccccc;
|
|
1704
|
+
font-family: ${FontStyles.DEFAULT};
|
|
1705
|
+
font-style: normal;
|
|
1706
|
+
font-weight: 400;
|
|
1707
|
+
font-size: ${FontSizes.DEFAULT};
|
|
1708
|
+
color: ${Colors.BLACK.Hex};
|
|
1709
|
+
`;
|
|
1710
|
+
const StyledWrapper = styled.div `
|
|
1711
|
+
display: flex;
|
|
1712
|
+
width: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.width) || 'auto'};
|
|
1713
|
+
background-color: ${props => (props.$readOnly ? '#f5f5f5' : '#ffffff')};
|
|
1714
|
+
position: relative;
|
|
1715
|
+
border-width: 1px;
|
|
1716
|
+
border-style: solid;
|
|
1717
|
+
border-color: ${props => (props.$invalid && !props.$readOnly ? Colors.RED.Hex : '#cccccc')};
|
|
1718
|
+
border-radius: ${props => (props.$suggestions ? '4px 4px 0px 0px' : '4px')};
|
|
1719
|
+
|
|
1720
|
+
&:focus-within {
|
|
1721
|
+
border-color: ${props => (props.$readOnly ? '#cccccc' : props.theme.PRIMARY_COLOR.Hex)};
|
|
1722
|
+
}
|
|
1720
1723
|
`;
|
|
1721
1724
|
StyledWrapper.defaultProps = { theme: EditableTheme };
|
|
1722
|
-
const SuggestedValues = styled.div `
|
|
1723
|
-
background: #fff;
|
|
1724
|
-
box-shadow: 0px 5px 30px -15px rgba(0, 0, 0, 0.2);
|
|
1725
|
-
border-color: ${props => props.theme.PRIMARY_COLOR.Hex};
|
|
1726
|
-
border-radius: 0px 0px 4px 4px;
|
|
1727
|
-
border-style: solid;
|
|
1728
|
-
border-top: none;
|
|
1729
|
-
border-width: 1px;
|
|
1730
|
-
left: -1px;
|
|
1731
|
-
position: absolute;
|
|
1732
|
-
right: -1px;
|
|
1733
|
-
top: 39px;
|
|
1734
|
-
z-index: 9999;
|
|
1735
|
-
max-height: 220px;
|
|
1736
|
-
overflow: auto;
|
|
1725
|
+
const SuggestedValues = styled.div `
|
|
1726
|
+
background: #fff;
|
|
1727
|
+
box-shadow: 0px 5px 30px -15px rgba(0, 0, 0, 0.2);
|
|
1728
|
+
border-color: ${props => props.theme.PRIMARY_COLOR.Hex};
|
|
1729
|
+
border-radius: 0px 0px 4px 4px;
|
|
1730
|
+
border-style: solid;
|
|
1731
|
+
border-top: none;
|
|
1732
|
+
border-width: 1px;
|
|
1733
|
+
left: -1px;
|
|
1734
|
+
position: absolute;
|
|
1735
|
+
right: -1px;
|
|
1736
|
+
top: 39px;
|
|
1737
|
+
z-index: 9999;
|
|
1738
|
+
max-height: 220px;
|
|
1739
|
+
overflow: auto;
|
|
1737
1740
|
`;
|
|
1738
1741
|
SuggestedValues.defaultProps = { theme: EditableTheme };
|
|
1739
|
-
const SuggestedSummary = styled.div `
|
|
1740
|
-
color: ${Colors.MEDIUM_GRAY.Hex};
|
|
1741
|
-
font-size: 12px;
|
|
1742
|
-
font-family: ${FontStyles.DEFAULT};
|
|
1743
|
-
font-weight: 500;
|
|
1744
|
-
line-height: 18px;
|
|
1745
|
-
padding: 10px 12px;
|
|
1746
|
-
border-bottom: 1px solid #e5e5e5;
|
|
1747
|
-
background: #fff;
|
|
1748
|
-
z-index: 1;
|
|
1749
|
-
position: sticky;
|
|
1750
|
-
top: 0px;
|
|
1751
|
-
`;
|
|
1752
|
-
const SuggestedValue = styled.div `
|
|
1753
|
-
cursor: pointer;
|
|
1754
|
-
padding: 8px 12px;
|
|
1755
|
-
font-size: ${FontSizes.DEFAULT};
|
|
1756
|
-
font-family: ${FontStyles.DEFAULT};
|
|
1757
|
-
font-weight: 400;
|
|
1758
|
-
line-height: 1.6em;
|
|
1759
|
-
color: ${Colors.BLACK.Hex};
|
|
1760
|
-
|
|
1761
|
-
&:hover {
|
|
1762
|
-
background: rgba(${props => props.theme.PRIMARY_COLOR.Rgb}, 0.05);
|
|
1763
|
-
}
|
|
1742
|
+
const SuggestedSummary = styled.div `
|
|
1743
|
+
color: ${Colors.MEDIUM_GRAY.Hex};
|
|
1744
|
+
font-size: 12px;
|
|
1745
|
+
font-family: ${FontStyles.DEFAULT};
|
|
1746
|
+
font-weight: 500;
|
|
1747
|
+
line-height: 18px;
|
|
1748
|
+
padding: 10px 12px;
|
|
1749
|
+
border-bottom: 1px solid #e5e5e5;
|
|
1750
|
+
background: #fff;
|
|
1751
|
+
z-index: 1;
|
|
1752
|
+
position: sticky;
|
|
1753
|
+
top: 0px;
|
|
1754
|
+
`;
|
|
1755
|
+
const SuggestedValue = styled.div `
|
|
1756
|
+
cursor: pointer;
|
|
1757
|
+
padding: 8px 12px;
|
|
1758
|
+
font-size: ${FontSizes.DEFAULT};
|
|
1759
|
+
font-family: ${FontStyles.DEFAULT};
|
|
1760
|
+
font-weight: 400;
|
|
1761
|
+
line-height: 1.6em;
|
|
1762
|
+
color: ${Colors.BLACK.Hex};
|
|
1763
|
+
|
|
1764
|
+
&:hover {
|
|
1765
|
+
background: rgba(${props => props.theme.PRIMARY_COLOR.Rgb}, 0.05);
|
|
1766
|
+
}
|
|
1764
1767
|
`;
|
|
1765
1768
|
SuggestedValue.defaultProps = { theme: EditableTheme };
|
|
1766
|
-
const CharacterCount = styled.div `
|
|
1767
|
-
font-family: ${FontStyles.DEFAULT};
|
|
1768
|
-
font-size: ${FontSizes.SMALL};
|
|
1769
|
-
color: ${Colors.MEDIUM_GRAY.Hex};
|
|
1770
|
-
padding: 10px;
|
|
1769
|
+
const CharacterCount = styled.div `
|
|
1770
|
+
font-family: ${FontStyles.DEFAULT};
|
|
1771
|
+
font-size: ${FontSizes.SMALL};
|
|
1772
|
+
color: ${Colors.MEDIUM_GRAY.Hex};
|
|
1773
|
+
padding: 10px;
|
|
1771
1774
|
`;
|
|
1772
|
-
const Loader$1 = styled.div `
|
|
1773
|
-
padding: 0px 10px;
|
|
1774
|
-
display: flex;
|
|
1775
|
-
align-items: center;
|
|
1775
|
+
const Loader$1 = styled.div `
|
|
1776
|
+
padding: 0px 10px;
|
|
1777
|
+
display: flex;
|
|
1778
|
+
align-items: center;
|
|
1776
1779
|
`;
|
|
1777
1780
|
const Input$1 = (_a) => {
|
|
1778
1781
|
var { format, suffix, height, invalid, loading, max, maxLength, min, onBlur, onChange, onFocus, onKeyDown,
|
|
@@ -1942,53 +1945,53 @@ const Loader = () => {
|
|
|
1942
1945
|
React.createElement(Path, { d: 'M7.21487 1.2868C7.88431 0.9044 8.73031 0.9044 9.39974 1.2868L9.40283 1.28856L14.4613 4.20761C15.1684 4.598 15.5746 5.33558 15.5746 6.11465V8.99996V11.8853C15.5746 12.6507 15.1632 13.3848 14.4617 13.7721L9.37973 16.7132C8.71029 17.0956 7.86428 17.0956 7.19485 16.7132L7.19088 16.7109L2.11279 13.772C1.40602 13.3816 1 12.6441 1 11.8653V8.98995V6.11465C1 5.31458 1.44381 4.59039 2.10827 4.21051L7.21487 1.2868Z', fill: 'none', strokeWidth: '2' })));
|
|
1943
1946
|
};
|
|
1944
1947
|
|
|
1945
|
-
const Steps = styled.div `
|
|
1946
|
-
padding: 20px;
|
|
1947
|
-
border-bottom: 1px solid #e7e6e6;
|
|
1948
|
-
background: #f5f5f5;
|
|
1949
|
-
display: flex;
|
|
1950
|
-
gap: 30px;
|
|
1951
|
-
align-items: center;
|
|
1952
|
-
`;
|
|
1953
|
-
const Step = styled.div `
|
|
1954
|
-
display: flex;
|
|
1955
|
-
align-items: center;
|
|
1956
|
-
gap: 8px;
|
|
1957
|
-
`;
|
|
1958
|
-
const StyledIcon$2 = styled(Icon) `
|
|
1959
|
-
> path {
|
|
1960
|
-
fill: ${props => props.theme.PRIMARY_COLOR.Hex} !important;
|
|
1961
|
-
}
|
|
1948
|
+
const Steps = styled.div `
|
|
1949
|
+
padding: 20px;
|
|
1950
|
+
border-bottom: 1px solid #e7e6e6;
|
|
1951
|
+
background: #f5f5f5;
|
|
1952
|
+
display: flex;
|
|
1953
|
+
gap: 30px;
|
|
1954
|
+
align-items: center;
|
|
1955
|
+
`;
|
|
1956
|
+
const Step = styled.div `
|
|
1957
|
+
display: flex;
|
|
1958
|
+
align-items: center;
|
|
1959
|
+
gap: 8px;
|
|
1960
|
+
`;
|
|
1961
|
+
const StyledIcon$2 = styled(Icon) `
|
|
1962
|
+
> path {
|
|
1963
|
+
fill: ${props => props.theme.PRIMARY_COLOR.Hex} !important;
|
|
1964
|
+
}
|
|
1962
1965
|
`;
|
|
1963
1966
|
StyledIcon$2.defaultProps = { theme: EditableTheme };
|
|
1964
|
-
const StepIndicator = styled.div `
|
|
1965
|
-
width: 30px;
|
|
1966
|
-
height: 30px;
|
|
1967
|
-
border-radius: 15px;
|
|
1968
|
-
background: ${props => (props.$active ? props.theme.PRIMARY_COLOR.Hex : Colors.LIGHT_GRAY.Hex)};
|
|
1969
|
-
color: ${props => (props.$active ? '#fff' : Colors.MEDIUM_GRAY.Hex)};
|
|
1970
|
-
font-family: 'Roboto', Helvetica, Arial, sans-serif;
|
|
1971
|
-
font-size: 14px;
|
|
1972
|
-
font-weight: 500;
|
|
1973
|
-
line-height: 1;
|
|
1974
|
-
display: flex;
|
|
1975
|
-
align-items: center;
|
|
1976
|
-
justify-content: center;
|
|
1977
|
-
flex-shrink: 0;
|
|
1967
|
+
const StepIndicator = styled.div `
|
|
1968
|
+
width: 30px;
|
|
1969
|
+
height: 30px;
|
|
1970
|
+
border-radius: 15px;
|
|
1971
|
+
background: ${props => (props.$active ? props.theme.PRIMARY_COLOR.Hex : Colors.LIGHT_GRAY.Hex)};
|
|
1972
|
+
color: ${props => (props.$active ? '#fff' : Colors.MEDIUM_GRAY.Hex)};
|
|
1973
|
+
font-family: 'Roboto', Helvetica, Arial, sans-serif;
|
|
1974
|
+
font-size: 14px;
|
|
1975
|
+
font-weight: 500;
|
|
1976
|
+
line-height: 1;
|
|
1977
|
+
display: flex;
|
|
1978
|
+
align-items: center;
|
|
1979
|
+
justify-content: center;
|
|
1980
|
+
flex-shrink: 0;
|
|
1978
1981
|
`;
|
|
1979
1982
|
StepIndicator.defaultProps = { theme: EditableTheme };
|
|
1980
|
-
const StepLabel = styled.div `
|
|
1981
|
-
color: #000;
|
|
1982
|
-
font-family: 'Roboto', Helvetica, Arial, sans-serif;
|
|
1983
|
-
font-size: 14px;
|
|
1984
|
-
font-weight: 500;
|
|
1985
|
-
line-height: 1;
|
|
1986
|
-
`;
|
|
1987
|
-
const StepLine = styled.div `
|
|
1988
|
-
height: 2px;
|
|
1989
|
-
flex-grow: 1;
|
|
1990
|
-
background-color: ${props => (props.$active ? Colors.PRIMARY.Hex : Colors.MEDIUM_GRAY.Hex)};
|
|
1991
|
-
transition: background-color 0.5s ease-in-out;
|
|
1983
|
+
const StepLabel = styled.div `
|
|
1984
|
+
color: #000;
|
|
1985
|
+
font-family: 'Roboto', Helvetica, Arial, sans-serif;
|
|
1986
|
+
font-size: 14px;
|
|
1987
|
+
font-weight: 500;
|
|
1988
|
+
line-height: 1;
|
|
1989
|
+
`;
|
|
1990
|
+
const StepLine = styled.div `
|
|
1991
|
+
height: 2px;
|
|
1992
|
+
flex-grow: 1;
|
|
1993
|
+
background-color: ${props => (props.$active ? Colors.PRIMARY.Hex : Colors.MEDIUM_GRAY.Hex)};
|
|
1994
|
+
transition: background-color 0.5s ease-in-out;
|
|
1992
1995
|
`;
|
|
1993
1996
|
const ProgressBar = ({ steps, showStepLine = false }) => {
|
|
1994
1997
|
return (React.createElement(Steps, null, steps.map((step, i) => {
|
|
@@ -2000,73 +2003,76 @@ const ProgressBar = ({ steps, showStepLine = false }) => {
|
|
|
2000
2003
|
})));
|
|
2001
2004
|
};
|
|
2002
2005
|
|
|
2003
|
-
const Wrapper$6 = styled.div `
|
|
2004
|
-
position: fixed;
|
|
2005
|
-
top: 0;
|
|
2006
|
-
right: 0;
|
|
2007
|
-
bottom: 0;
|
|
2008
|
-
left: 0;
|
|
2009
|
-
z-index: 9999;
|
|
2010
|
-
background: rgba(0, 0, 0, 0.8);
|
|
2011
|
-
display: flex;
|
|
2012
|
-
align-items: center;
|
|
2013
|
-
justify-content: center;
|
|
2014
|
-
`;
|
|
2015
|
-
const Container$1 = styled.dialog `
|
|
2016
|
-
width: ${props => (props.$fullscreen ? 'calc(100vw - 80px)' : props.$maxWidth || '900px')};
|
|
2017
|
-
max-width: calc(100vw - 80px);
|
|
2018
|
-
height: ${props => (props.$fullscreen ? 'calc(100vh - 80px)' : 'auto')};
|
|
2019
|
-
max-height: calc(100vh - 80px);
|
|
2020
|
-
border-radius: 8px;
|
|
2021
|
-
overflow: hidden;
|
|
2022
|
-
box-shadow: 0px 10px 30px -15px rgba(0, 0, 0, 0.2);
|
|
2023
|
-
outline: none;
|
|
2024
|
-
border: none;
|
|
2025
|
-
position: relative;
|
|
2026
|
-
padding: 0px;
|
|
2027
|
-
box-sizing: border-box;
|
|
2028
|
-
display: flex;
|
|
2029
|
-
flex-direction: column;
|
|
2030
|
-
`;
|
|
2031
|
-
const Header$1 = styled.div `
|
|
2032
|
-
flex-shrink: 0;
|
|
2033
|
-
padding: 20px;
|
|
2034
|
-
border-bottom: 1px solid #e7e6e6;
|
|
2035
|
-
display: flex;
|
|
2036
|
-
align-items: center;
|
|
2037
|
-
background: #ffffff;
|
|
2038
|
-
box-sizing: border-box;
|
|
2039
|
-
`;
|
|
2040
|
-
const Close = styled.div `
|
|
2041
|
-
margin-left: auto;
|
|
2042
|
-
display: flex;
|
|
2043
|
-
align-items: center;
|
|
2044
|
-
padding-left: 20px;
|
|
2045
|
-
cursor: pointer;
|
|
2046
|
-
`;
|
|
2047
|
-
const CloseMsg = styled.span `
|
|
2048
|
-
font-size: ${FontSizes.SMALL};
|
|
2049
|
-
font-weight: 400;
|
|
2050
|
-
font-family: ${FontStyles.DEFAULT};
|
|
2051
|
-
line-height: 1em;
|
|
2052
|
-
color: ${Colors.MEDIUM_GRAY.Hex};
|
|
2053
|
-
`;
|
|
2054
|
-
const ContentWrapper = styled.div `
|
|
2055
|
-
overflow-x: hidden;
|
|
2056
|
-
overflow-y: auto;
|
|
2057
|
-
background: #ffffff;
|
|
2058
|
-
flex: 1;
|
|
2059
|
-
box-sizing: border-box;
|
|
2060
|
-
`;
|
|
2061
|
-
const ButtonBar = styled.div `
|
|
2062
|
-
flex-shrink: 0;
|
|
2063
|
-
background: #ffffff;
|
|
2064
|
-
padding: 20px;
|
|
2065
|
-
border-top: 1px solid #e7e6e6;
|
|
2066
|
-
display: flex;
|
|
2067
|
-
align-items: center;
|
|
2068
|
-
justify-self: flex-end;
|
|
2069
|
-
box-sizing: border-box;
|
|
2006
|
+
const Wrapper$6 = styled.div `
|
|
2007
|
+
position: fixed;
|
|
2008
|
+
top: 0;
|
|
2009
|
+
right: 0;
|
|
2010
|
+
bottom: 0;
|
|
2011
|
+
left: 0;
|
|
2012
|
+
z-index: 9999;
|
|
2013
|
+
background: rgba(0, 0, 0, 0.8);
|
|
2014
|
+
display: flex;
|
|
2015
|
+
align-items: center;
|
|
2016
|
+
justify-content: center;
|
|
2017
|
+
`;
|
|
2018
|
+
const Container$1 = styled.dialog `
|
|
2019
|
+
width: ${props => (props.$fullscreen ? 'calc(100vw - 80px)' : props.$maxWidth || '900px')};
|
|
2020
|
+
max-width: calc(100vw - 80px);
|
|
2021
|
+
height: ${props => (props.$fullscreen ? 'calc(100vh - 80px)' : 'auto')};
|
|
2022
|
+
max-height: calc(100vh - 80px);
|
|
2023
|
+
border-radius: 8px;
|
|
2024
|
+
overflow: hidden;
|
|
2025
|
+
box-shadow: 0px 10px 30px -15px rgba(0, 0, 0, 0.2);
|
|
2026
|
+
outline: none;
|
|
2027
|
+
border: none;
|
|
2028
|
+
position: relative;
|
|
2029
|
+
padding: 0px;
|
|
2030
|
+
box-sizing: border-box;
|
|
2031
|
+
display: flex;
|
|
2032
|
+
flex-direction: column;
|
|
2033
|
+
`;
|
|
2034
|
+
const Header$1 = styled.div `
|
|
2035
|
+
flex-shrink: 0;
|
|
2036
|
+
padding: 20px;
|
|
2037
|
+
border-bottom: 1px solid #e7e6e6;
|
|
2038
|
+
display: flex;
|
|
2039
|
+
align-items: center;
|
|
2040
|
+
background: #ffffff;
|
|
2041
|
+
box-sizing: border-box;
|
|
2042
|
+
`;
|
|
2043
|
+
const Close = styled.div `
|
|
2044
|
+
margin-left: auto;
|
|
2045
|
+
display: flex;
|
|
2046
|
+
align-items: center;
|
|
2047
|
+
padding-left: 20px;
|
|
2048
|
+
cursor: pointer;
|
|
2049
|
+
`;
|
|
2050
|
+
const CloseMsg = styled.span `
|
|
2051
|
+
font-size: ${FontSizes.SMALL};
|
|
2052
|
+
font-weight: 400;
|
|
2053
|
+
font-family: ${FontStyles.DEFAULT};
|
|
2054
|
+
line-height: 1em;
|
|
2055
|
+
color: ${Colors.MEDIUM_GRAY.Hex};
|
|
2056
|
+
`;
|
|
2057
|
+
const ContentWrapper = styled.div `
|
|
2058
|
+
overflow-x: hidden;
|
|
2059
|
+
overflow-y: auto;
|
|
2060
|
+
background: #ffffff;
|
|
2061
|
+
flex: 1;
|
|
2062
|
+
box-sizing: border-box;
|
|
2063
|
+
`;
|
|
2064
|
+
const ButtonBar = styled.div `
|
|
2065
|
+
flex-shrink: 0;
|
|
2066
|
+
background: #ffffff;
|
|
2067
|
+
padding: 20px;
|
|
2068
|
+
border-top: 1px solid #e7e6e6;
|
|
2069
|
+
display: flex;
|
|
2070
|
+
align-items: center;
|
|
2071
|
+
justify-self: flex-end;
|
|
2072
|
+
box-sizing: border-box;
|
|
2073
|
+
`;
|
|
2074
|
+
const ButtonContainer = styled.div `
|
|
2075
|
+
margin: 0 10px;
|
|
2070
2076
|
`;
|
|
2071
2077
|
const Modal = (_a) => {
|
|
2072
2078
|
var { children, title, onClose, maxWidth, fullscreen, steps, primaryButton, secondaryButton, tertiaryButton, quarternaryButton } = _a, accessibleProps = __rest(_a, ["children", "title", "onClose", "maxWidth", "fullscreen", "steps", "primaryButton", "secondaryButton", "tertiaryButton", "quarternaryButton"]);
|
|
@@ -2097,14 +2103,16 @@ const Modal = (_a) => {
|
|
|
2097
2103
|
alignItems: 'center',
|
|
2098
2104
|
} },
|
|
2099
2105
|
tertiaryButton ? (React.createElement(Button, Object.assign({}, tertiaryButton, { format: tertiaryButton.format || 'secondary' }))) : null,
|
|
2100
|
-
quarternaryButton ? (React.createElement(
|
|
2106
|
+
quarternaryButton ? (React.createElement(ButtonContainer, null,
|
|
2107
|
+
React.createElement(Button, Object.assign({}, quarternaryButton, { format: quarternaryButton.format || 'secondary' })))) : null)) : null,
|
|
2101
2108
|
primaryButton || secondaryButton ? (React.createElement("div", { style: {
|
|
2102
2109
|
marginLeft: 'auto',
|
|
2103
2110
|
paddingLeft: 40,
|
|
2104
2111
|
display: 'flex',
|
|
2105
2112
|
alignItems: 'center',
|
|
2106
2113
|
} },
|
|
2107
|
-
secondaryButton ? (React.createElement(
|
|
2114
|
+
secondaryButton ? (React.createElement(ButtonContainer, null,
|
|
2115
|
+
React.createElement(Button, Object.assign({}, secondaryButton, { format: secondaryButton.format || 'secondary' })))) : null,
|
|
2108
2116
|
primaryButton ? (React.createElement(Button, Object.assign({}, primaryButton, { format: primaryButton.format || 'primary' }))) : null)) : null)) : null)));
|
|
2109
2117
|
};
|
|
2110
2118
|
|
|
@@ -2212,35 +2220,35 @@ const MultiSelect = (_a) => {
|
|
|
2212
2220
|
showOptions ? React.createElement(Scrim, { onClick: setShowOptions.bind(null, !showOptions) }) : null));
|
|
2213
2221
|
};
|
|
2214
2222
|
|
|
2215
|
-
const Wrapper$4 = styled.div `
|
|
2216
|
-
display: flex;
|
|
2217
|
-
padding: 16px 30px;
|
|
2218
|
-
align-items: center;
|
|
2219
|
-
gap: 20px;
|
|
2220
|
-
align-self: stretch;
|
|
2221
|
-
border-bottom: 1px solid ${Colors.LIGHT_GRAY.Hex};
|
|
2222
|
-
`;
|
|
2223
|
-
const Title = styled.div `
|
|
2224
|
-
display: flex;
|
|
2225
|
-
align-items: center;
|
|
2226
|
-
gap: 20px;
|
|
2227
|
-
`;
|
|
2228
|
-
const Info = styled.div `
|
|
2229
|
-
display: flex;
|
|
2230
|
-
flex-direction: column;
|
|
2231
|
-
align-items: flex-start;
|
|
2232
|
-
gap: 4px;
|
|
2233
|
-
flex: 1 0 0;
|
|
2234
|
-
`;
|
|
2235
|
-
const Breadcrumbs = styled.div `
|
|
2236
|
-
display: flex;
|
|
2237
|
-
align-items: center;
|
|
2238
|
-
gap: 4px;
|
|
2239
|
-
`;
|
|
2240
|
-
const Actions = styled.div `
|
|
2241
|
-
display: flex;
|
|
2242
|
-
align-items: center;
|
|
2243
|
-
gap: 8px;
|
|
2223
|
+
const Wrapper$4 = styled.div `
|
|
2224
|
+
display: flex;
|
|
2225
|
+
padding: 16px 30px;
|
|
2226
|
+
align-items: center;
|
|
2227
|
+
gap: 20px;
|
|
2228
|
+
align-self: stretch;
|
|
2229
|
+
border-bottom: 1px solid ${Colors.LIGHT_GRAY.Hex};
|
|
2230
|
+
`;
|
|
2231
|
+
const Title = styled.div `
|
|
2232
|
+
display: flex;
|
|
2233
|
+
align-items: center;
|
|
2234
|
+
gap: 20px;
|
|
2235
|
+
`;
|
|
2236
|
+
const Info = styled.div `
|
|
2237
|
+
display: flex;
|
|
2238
|
+
flex-direction: column;
|
|
2239
|
+
align-items: flex-start;
|
|
2240
|
+
gap: 4px;
|
|
2241
|
+
flex: 1 0 0;
|
|
2242
|
+
`;
|
|
2243
|
+
const Breadcrumbs = styled.div `
|
|
2244
|
+
display: flex;
|
|
2245
|
+
align-items: center;
|
|
2246
|
+
gap: 4px;
|
|
2247
|
+
`;
|
|
2248
|
+
const Actions = styled.div `
|
|
2249
|
+
display: flex;
|
|
2250
|
+
align-items: center;
|
|
2251
|
+
gap: 8px;
|
|
2244
2252
|
`;
|
|
2245
2253
|
const PageHeader = ({ title = '', breadcrumbs, actions, buttonMenu, tag }) => {
|
|
2246
2254
|
const { format = 'primary', menuItems = [], label = '', enableHover = true, enableClick = false, show = false, } = buttonMenu || {};
|
|
@@ -2561,30 +2569,30 @@ const Toggle = (_a) => {
|
|
|
2561
2569
|
};
|
|
2562
2570
|
Toggle.defaultProps = {};
|
|
2563
2571
|
|
|
2564
|
-
const Container = styled.div `
|
|
2565
|
-
width: 100%;
|
|
2566
|
-
padding: 40px auto;
|
|
2567
|
-
gap: 20px;
|
|
2568
|
-
display: flex;
|
|
2569
|
-
flex-direction: column;
|
|
2570
|
-
justify-items: center;
|
|
2571
|
-
align-items: center;
|
|
2572
|
-
`;
|
|
2573
|
-
const Wrapper = styled.div `
|
|
2574
|
-
gap: 10px;
|
|
2575
|
-
display: flex;
|
|
2576
|
-
flex-direction: column;
|
|
2577
|
-
justify-items: center;
|
|
2578
|
-
align-items: center;
|
|
2579
|
-
`;
|
|
2580
|
-
const StyledIcon = styled.div `
|
|
2581
|
-
display: flex;
|
|
2582
|
-
align-items: center;
|
|
2583
|
-
justify-content: center;
|
|
2584
|
-
width: 80px;
|
|
2585
|
-
height: 80px;
|
|
2586
|
-
border-radius: 40px;
|
|
2587
|
-
background: #f5f5f5;
|
|
2572
|
+
const Container = styled.div `
|
|
2573
|
+
width: 100%;
|
|
2574
|
+
padding: 40px auto;
|
|
2575
|
+
gap: 20px;
|
|
2576
|
+
display: flex;
|
|
2577
|
+
flex-direction: column;
|
|
2578
|
+
justify-items: center;
|
|
2579
|
+
align-items: center;
|
|
2580
|
+
`;
|
|
2581
|
+
const Wrapper = styled.div `
|
|
2582
|
+
gap: 10px;
|
|
2583
|
+
display: flex;
|
|
2584
|
+
flex-direction: column;
|
|
2585
|
+
justify-items: center;
|
|
2586
|
+
align-items: center;
|
|
2587
|
+
`;
|
|
2588
|
+
const StyledIcon = styled.div `
|
|
2589
|
+
display: flex;
|
|
2590
|
+
align-items: center;
|
|
2591
|
+
justify-content: center;
|
|
2592
|
+
width: 80px;
|
|
2593
|
+
height: 80px;
|
|
2594
|
+
border-radius: 40px;
|
|
2595
|
+
background: #f5f5f5;
|
|
2588
2596
|
`;
|
|
2589
2597
|
const ZeroState = (_a) => {
|
|
2590
2598
|
var { icon, title, description, action } = _a, accessibleProps = __rest(_a, ["icon", "title", "description", "action"]);
|