@secondstaxorg/sscomp 1.5.3 → 1.5.4
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/index.es.js +12 -12
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +21 -22
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +9 -9
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
- package/types/components/DatePicker/type.d.ts +1 -0
- package/types/components/DateRangePicker/type.d.ts +1 -0
- package/types/components/DropdownList/type.d.ts +1 -0
- package/types/components/PasswordField/type.d.ts +1 -0
- package/types/components/Selector/types.d.ts +1 -0
- package/types/components/TextArea/type.d.ts +1 -0
- package/types/components/TextField/type.d.ts +1 -0
package/dist/index.js
CHANGED
|
@@ -16995,7 +16995,7 @@ const DatePickerContainer = styled.div`
|
|
|
16995
16995
|
|
|
16996
16996
|
const InputField$3 = styled.div`
|
|
16997
16997
|
border: 1px solid ${theme.colors["neutral-200"]};
|
|
16998
|
-
width: 430px;
|
|
16998
|
+
//width: 430px;
|
|
16999
16999
|
display: flex;
|
|
17000
17000
|
border-radius: 8px;
|
|
17001
17001
|
background: #ffffff;
|
|
@@ -17161,7 +17161,7 @@ const _jsxFileName$I = "D:\\SSX\\Project\\Component Library\\sscomp\\src\\compon
|
|
|
17161
17161
|
* Component for picking date
|
|
17162
17162
|
*/
|
|
17163
17163
|
const DatePicker = (props) => {
|
|
17164
|
-
const { onChange, label, subtext,disablePastDays,disableFutureDays ,placeholder} = props;
|
|
17164
|
+
const { onChange, label, subtext,disablePastDays,disableFutureDays ,placeholder,width} = props;
|
|
17165
17165
|
const [selectedDate, setSelectedDate] = React$1.useState(null);
|
|
17166
17166
|
const [isCalendarOpen, setIsCalendarOpen] = React$1.useState(false);
|
|
17167
17167
|
|
|
@@ -17198,7 +17198,7 @@ const DatePicker = (props) => {
|
|
|
17198
17198
|
, subtext && React$1.createElement('span', {__self: undefined, __source: {fileName: _jsxFileName$I, lineNumber: 43}}, subtext)
|
|
17199
17199
|
)
|
|
17200
17200
|
|
|
17201
|
-
, React$1.createElement(DatePickerContainer, { ref: calendarRef, className: selectedDate ? 'success' : '', __self: undefined, __source: {fileName: _jsxFileName$I, lineNumber: 46}}
|
|
17201
|
+
, React$1.createElement(DatePickerContainer, { ref: calendarRef, className: selectedDate ? 'success' : '', style: {width:width ? width : '100%'}, __self: undefined, __source: {fileName: _jsxFileName$I, lineNumber: 46}}
|
|
17202
17202
|
, React$1.createElement(InputField$3, { className: `${selectedDate ? 'success' : ''} ${isCalendarOpen ? 'focused' : ''}`, __self: undefined, __source: {fileName: _jsxFileName$I, lineNumber: 47}}
|
|
17203
17203
|
, React$1.createElement('input', {
|
|
17204
17204
|
type: "text",
|
|
@@ -17465,7 +17465,7 @@ const InputLabel$3 = styled.div`
|
|
|
17465
17465
|
`;
|
|
17466
17466
|
|
|
17467
17467
|
const InputField$2 = styled.div`
|
|
17468
|
-
width: 430px;
|
|
17468
|
+
//width: 430px;
|
|
17469
17469
|
border: 1px solid ${theme.colors["neutral-200"]};
|
|
17470
17470
|
border-radius: 8px;
|
|
17471
17471
|
background: #ffffff;
|
|
@@ -17717,7 +17717,7 @@ const _jsxFileName$H = "D:\\SSX\\Project\\Component Library\\sscomp\\src\\compon
|
|
|
17717
17717
|
/**
|
|
17718
17718
|
* Component for picking date ranges
|
|
17719
17719
|
*/
|
|
17720
|
-
const DateRangePicker = ({ selectedDateRange,label,subtext ,placeholder,showActionButtons}) => {
|
|
17720
|
+
const DateRangePicker = ({ selectedDateRange,label,subtext ,placeholder,showActionButtons,width}) => {
|
|
17721
17721
|
const [startMonth, setStartMonth] = React$1.useState(new Date());
|
|
17722
17722
|
const [endMonth, setEndMonth] = React$1.useState(() => {
|
|
17723
17723
|
const nextMonth = new Date();
|
|
@@ -17983,7 +17983,7 @@ const DateRangePicker = ({ selectedDateRange,label,subtext ,placeholder,showActi
|
|
|
17983
17983
|
, subtext && React$1.createElement('span', {__self: undefined, __source: {fileName: _jsxFileName$H, lineNumber: 275}}, subtext)
|
|
17984
17984
|
)
|
|
17985
17985
|
|
|
17986
|
-
, React$1.createElement(InputField$2, { className: `${showCalendar ? 'focused' : ''} ${startDate && endDate ? 'success' : ''}`, __self: undefined, __source: {fileName: _jsxFileName$H, lineNumber: 278}}
|
|
17986
|
+
, React$1.createElement(InputField$2, { className: `${showCalendar ? 'focused' : ''} ${startDate && endDate ? 'success' : ''}`, style: {width:width ? width : '100%'}, __self: undefined, __source: {fileName: _jsxFileName$H, lineNumber: 278}}
|
|
17987
17987
|
, React$1.createElement('input', {
|
|
17988
17988
|
type: "text",
|
|
17989
17989
|
value: startDate ? `${startDate.toLocaleDateString('en-GB',options)} - ${endDate ? endDate.toLocaleDateString('en-GB',options) : ''}` : '',
|
|
@@ -18119,7 +18119,7 @@ const FieldContainer = styled.div`
|
|
|
18119
18119
|
display: flex;
|
|
18120
18120
|
flex-direction: column;
|
|
18121
18121
|
gap: 16px;
|
|
18122
|
-
width: 430px;
|
|
18122
|
+
//width: 430px;
|
|
18123
18123
|
`;
|
|
18124
18124
|
|
|
18125
18125
|
const LabelContainer = styled.div`
|
|
@@ -18268,7 +18268,7 @@ const _jsxFileName$F = "D:\\SSX\\Project\\Component Library\\sscomp\\src\\compon
|
|
|
18268
18268
|
* Dropdown component for selecting from a list of options
|
|
18269
18269
|
*/
|
|
18270
18270
|
const DropdownList = (props) => {
|
|
18271
|
-
const {options,returnedSelection,initialText,disabled,label,placeholder,searchable} = props;
|
|
18271
|
+
const {options,returnedSelection,initialText,disabled,label,placeholder,searchable,width} = props;
|
|
18272
18272
|
const [opened,setOpened] = React$1.useState(false);
|
|
18273
18273
|
const [passedOption,setPassedOption] = React$1.useState({});
|
|
18274
18274
|
const [err,setErr] = React$1.useState(false);
|
|
@@ -18301,7 +18301,7 @@ const DropdownList = (props) => {
|
|
|
18301
18301
|
}
|
|
18302
18302
|
|
|
18303
18303
|
return (
|
|
18304
|
-
React$1.createElement(FieldContainer, {__self: undefined, __source: {fileName: _jsxFileName$F, lineNumber: 43}}
|
|
18304
|
+
React$1.createElement(FieldContainer, { style: {width:width ? width : '100%'}, __self: undefined, __source: {fileName: _jsxFileName$F, lineNumber: 43}}
|
|
18305
18305
|
, !disabled &&
|
|
18306
18306
|
React$1.createElement(React$1.Fragment, null
|
|
18307
18307
|
, label &&
|
|
@@ -20487,7 +20487,7 @@ const InputField$1 = styled.input`
|
|
|
20487
20487
|
|
|
20488
20488
|
const InputContainer$2 = styled.div`
|
|
20489
20489
|
height: 50px;
|
|
20490
|
-
width: 430px;
|
|
20490
|
+
//width: 430px;
|
|
20491
20491
|
border-radius: 8px;
|
|
20492
20492
|
border: 1px solid ${theme.colors["neutral-200"]};
|
|
20493
20493
|
display: flex;
|
|
@@ -20538,7 +20538,7 @@ const _jsxFileName$p = "D:\\SSX\\Project\\Component Library\\sscomp\\src\\compon
|
|
|
20538
20538
|
* Component for handling password input fields
|
|
20539
20539
|
*/
|
|
20540
20540
|
const PasswordField = (props) => {
|
|
20541
|
-
const {label,subtext,disabled,errMsg,placeholder} = props;
|
|
20541
|
+
const {label,subtext,disabled,errMsg,placeholder,width} = props;
|
|
20542
20542
|
|
|
20543
20543
|
const [passString,setPassString] = React$1.useState('');
|
|
20544
20544
|
const [borderColor,setBorderColor] = React$1.useState('');
|
|
@@ -20574,7 +20574,7 @@ const PasswordField = (props) => {
|
|
|
20574
20574
|
, React$1.createElement('span', { className: disabled ? 'disabled' : '', __self: undefined, __source: {fileName: _jsxFileName$p, lineNumber: 42}}, subtext)
|
|
20575
20575
|
)
|
|
20576
20576
|
|
|
20577
|
-
, React$1.createElement(InputContainer$2, { className: `${borderColor} ${disabled ? 'disabled' : ''}`, __self: undefined, __source: {fileName: _jsxFileName$p, lineNumber: 45}}
|
|
20577
|
+
, React$1.createElement(InputContainer$2, { className: `${borderColor} ${disabled ? 'disabled' : ''}`, style: {width:width ? width : '100%'}, __self: undefined, __source: {fileName: _jsxFileName$p, lineNumber: 45}}
|
|
20578
20578
|
, React$1.createElement(InputField$1, { type: !showPw ? 'password' : 'text', value: passString, onChange: (e)=>{
|
|
20579
20579
|
// setValue(e.target.value)
|
|
20580
20580
|
setPassString(e.target.value);
|
|
@@ -20591,14 +20591,13 @@ const PasswordField = (props) => {
|
|
|
20591
20591
|
, React$1.createElement('path', { d: "M9.94018 5.07994C10.2909 5.02617 10.6453 4.99943 11.0002 4.99994C14.1802 4.99994 17.1702 7.28994 18.9102 10.9999C18.6441 11.5645 18.3435 12.1122 18.0102 12.6399C17.9044 12.8038 17.8487 12.9949 17.8502 13.1899C17.8524 13.4082 17.926 13.6197 18.0596 13.7922C18.1933 13.9647 18.3798 14.0888 18.5905 14.1455C18.8013 14.2021 19.0248 14.1883 19.227 14.106C19.4291 14.0238 19.5988 13.8776 19.7102 13.6899C20.1761 12.9579 20.5808 12.1886 20.9202 11.3899C20.9738 11.2652 21.0015 11.1308 21.0015 10.9949C21.0015 10.8591 20.9738 10.7247 20.9202 10.5999C18.9002 5.90994 15.1002 2.99994 11.0002 2.99994C10.5309 2.99758 10.0623 3.03774 9.60019 3.11994C9.46886 3.14227 9.34322 3.19024 9.23044 3.26112C9.11766 3.332 9.01994 3.4244 8.94287 3.53304C8.8658 3.64169 8.81088 3.76445 8.78125 3.89432C8.75162 4.02419 8.74786 4.15862 8.77018 4.28994C8.79251 4.42126 8.84048 4.5469 8.91136 4.65968C8.98224 4.77247 9.07464 4.87018 9.18329 4.94726C9.29193 5.02433 9.41469 5.07925 9.54456 5.10888C9.67443 5.13851 9.80886 5.14227 9.94018 5.11994V5.07994ZM2.71019 1.28994C2.61695 1.1967 2.50626 1.12274 2.38443 1.07228C2.26261 1.02182 2.13204 0.99585 2.00019 0.99585C1.86833 0.99585 1.73776 1.02182 1.61594 1.07228C1.49411 1.12274 1.38342 1.1967 1.29019 1.28994C1.10188 1.47824 0.996094 1.73364 0.996094 1.99994C0.996094 2.26624 1.10188 2.52164 1.29019 2.70994L4.39019 5.79994C2.97576 7.16147 1.85004 8.79393 1.08019 10.5999C1.02512 10.7261 0.996701 10.8623 0.996701 10.9999C0.996701 11.1376 1.02512 11.2738 1.08019 11.3999C3.10019 16.0899 6.90019 18.9999 11.0002 18.9999C12.7973 18.9875 14.552 18.4524 16.0502 17.4599L19.2902 20.7099C19.3831 20.8037 19.4937 20.8781 19.6156 20.9288C19.7375 20.9796 19.8682 21.0057 20.0002 21.0057C20.1322 21.0057 20.2629 20.9796 20.3848 20.9288C20.5066 20.8781 20.6172 20.8037 20.7102 20.7099C20.8039 20.617 20.8783 20.5064 20.9291 20.3845C20.9798 20.2627 21.006 20.132 21.006 19.9999C21.006 19.8679 20.9798 19.7372 20.9291 19.6154C20.8783 19.4935 20.8039 19.3829 20.7102 19.2899L2.71019 1.28994ZM9.07018 10.4799L11.5202 12.9299C11.3512 12.9784 11.176 13.002 11.0002 12.9999C10.4698 12.9999 9.96104 12.7892 9.58597 12.4142C9.2109 12.0391 9.00019 11.5304 9.00019 10.9999C8.99814 10.8241 9.02172 10.649 9.07018 10.4799ZM11.0002 16.9999C7.82018 16.9999 4.83019 14.7099 3.10019 10.9999C3.74627 9.57369 4.66326 8.28652 5.80019 7.20994L7.57019 8.99994C7.15443 9.75874 6.99592 10.6319 7.11844 11.4884C7.24096 12.3449 7.6379 13.1386 8.24971 13.7504C8.86152 14.3622 9.65522 14.7592 10.5117 14.8817C11.3682 15.0042 12.2414 14.8457 13.0002 14.4299L14.5902 15.9999C13.5013 16.6408 12.2636 16.9856 11.0002 16.9999Z" , fill: "#070B12", __self: undefined, __source: {fileName: _jsxFileName$p, lineNumber: 59}})
|
|
20592
20592
|
)
|
|
20593
20593
|
|
|
20594
|
-
|
|
20595
20594
|
)
|
|
20596
20595
|
)
|
|
20597
20596
|
, !passString && err &&
|
|
20598
|
-
React$1.createElement(ErrorMessage$2, {__self: undefined, __source: {fileName: _jsxFileName$p, lineNumber:
|
|
20597
|
+
React$1.createElement(ErrorMessage$2, {__self: undefined, __source: {fileName: _jsxFileName$p, lineNumber: 65}}
|
|
20599
20598
|
/*exclamation-triangle*/
|
|
20600
|
-
, React$1.createElement('svg', { width: "16", height: "14", viewBox: "0 0 16 14" , fill: "none", xmlns: "http://www.w3.org/2000/svg", __self: undefined, __source: {fileName: _jsxFileName$p, lineNumber:
|
|
20601
|
-
, React$1.createElement('path', { d: "M8.00006 9.66669C7.86821 9.66669 7.73931 9.70578 7.62968 9.77904C7.52005 9.85229 7.4346 9.95641 7.38414 10.0782C7.33368 10.2 7.32048 10.3341 7.3462 10.4634C7.37193 10.5927 7.43542 10.7115 7.52866 10.8048C7.62189 10.898 7.74068 10.9615 7.87 10.9872C7.99932 11.0129 8.13336 10.9997 8.25518 10.9493C8.377 10.8988 8.48112 10.8134 8.55437 10.7037C8.62763 10.5941 8.66673 10.4652 8.66673 10.3334C8.66673 10.1565 8.59649 9.98697 8.47146 9.86195C8.34644 9.73692 8.17687 9.66669 8.00006 9.66669ZM15.1134 10.6467L9.74673 1.31335C9.57326 1.00236 9.31992 0.743323 9.01285 0.562997C8.70579 0.382672 8.35615 0.287598 8.00006 0.287598C7.64396 0.287598 7.29433 0.382672 6.98726 0.562997C6.6802 0.743323 6.42686 1.00236 6.25339 1.31335L0.92006 10.6467C0.74059 10.9494 0.644155 11.294 0.640489 11.6459C0.636824 11.9978 0.726058 12.3444 0.899184 12.6507C1.07231 12.9571 1.3232 13.2123 1.62652 13.3907C1.92984 13.5691 2.27485 13.6643 2.62673 13.6667H13.3734C13.7281 13.6702 14.0773 13.5793 14.3853 13.4033C14.6933 13.2273 14.949 12.9726 15.126 12.6652C15.3031 12.3579 15.3953 12.009 15.3931 11.6542C15.3908 11.2995 15.2943 10.9518 15.1134 10.6467ZM13.9601 11.98C13.9016 12.084 13.8164 12.1704 13.7132 12.2302C13.61 12.29 13.4927 12.321 13.3734 12.32H2.62673C2.50747 12.321 2.39013 12.29 2.28694 12.2302C2.18375 12.1704 2.0985 12.084 2.04006 11.98C1.98155 11.8787 1.95074 11.7637 1.95074 11.6467C1.95074 11.5297 1.98155 11.4147 2.04006 11.3134L7.37339 1.98002C7.42934 1.87082 7.51433 1.77917 7.61902 1.71518C7.72371 1.65119 7.84403 1.61733 7.96673 1.61733C8.08942 1.61733 8.20974 1.65119 8.31443 1.71518C8.41912 1.77917 8.50411 1.87082 8.56006 1.98002L13.9267 11.3134C13.9929 11.4132 14.0309 11.5291 14.0367 11.6488C14.0426 11.7684 14.0161 11.8875 13.9601 11.9934V11.98ZM8.00006 4.33335C7.82325 4.33335 7.65368 4.40359 7.52866 4.52861C7.40363 4.65364 7.33339 4.82321 7.33339 5.00002V7.66669C7.33339 7.8435 7.40363 8.01307 7.52866 8.13809C7.65368 8.26311 7.82325 8.33335 8.00006 8.33335C8.17687 8.33335 8.34644 8.26311 8.47146 8.13809C8.59649 8.01307 8.66673 7.8435 8.66673 7.66669V5.00002C8.66673 4.82321 8.59649 4.65364 8.47146 4.52861C8.34644 4.40359 8.17687 4.33335 8.00006 4.33335Z" , fill: "#F80000", __self: undefined, __source: {fileName: _jsxFileName$p, lineNumber:
|
|
20599
|
+
, React$1.createElement('svg', { width: "16", height: "14", viewBox: "0 0 16 14" , fill: "none", xmlns: "http://www.w3.org/2000/svg", __self: undefined, __source: {fileName: _jsxFileName$p, lineNumber: 67}}
|
|
20600
|
+
, React$1.createElement('path', { d: "M8.00006 9.66669C7.86821 9.66669 7.73931 9.70578 7.62968 9.77904C7.52005 9.85229 7.4346 9.95641 7.38414 10.0782C7.33368 10.2 7.32048 10.3341 7.3462 10.4634C7.37193 10.5927 7.43542 10.7115 7.52866 10.8048C7.62189 10.898 7.74068 10.9615 7.87 10.9872C7.99932 11.0129 8.13336 10.9997 8.25518 10.9493C8.377 10.8988 8.48112 10.8134 8.55437 10.7037C8.62763 10.5941 8.66673 10.4652 8.66673 10.3334C8.66673 10.1565 8.59649 9.98697 8.47146 9.86195C8.34644 9.73692 8.17687 9.66669 8.00006 9.66669ZM15.1134 10.6467L9.74673 1.31335C9.57326 1.00236 9.31992 0.743323 9.01285 0.562997C8.70579 0.382672 8.35615 0.287598 8.00006 0.287598C7.64396 0.287598 7.29433 0.382672 6.98726 0.562997C6.6802 0.743323 6.42686 1.00236 6.25339 1.31335L0.92006 10.6467C0.74059 10.9494 0.644155 11.294 0.640489 11.6459C0.636824 11.9978 0.726058 12.3444 0.899184 12.6507C1.07231 12.9571 1.3232 13.2123 1.62652 13.3907C1.92984 13.5691 2.27485 13.6643 2.62673 13.6667H13.3734C13.7281 13.6702 14.0773 13.5793 14.3853 13.4033C14.6933 13.2273 14.949 12.9726 15.126 12.6652C15.3031 12.3579 15.3953 12.009 15.3931 11.6542C15.3908 11.2995 15.2943 10.9518 15.1134 10.6467ZM13.9601 11.98C13.9016 12.084 13.8164 12.1704 13.7132 12.2302C13.61 12.29 13.4927 12.321 13.3734 12.32H2.62673C2.50747 12.321 2.39013 12.29 2.28694 12.2302C2.18375 12.1704 2.0985 12.084 2.04006 11.98C1.98155 11.8787 1.95074 11.7637 1.95074 11.6467C1.95074 11.5297 1.98155 11.4147 2.04006 11.3134L7.37339 1.98002C7.42934 1.87082 7.51433 1.77917 7.61902 1.71518C7.72371 1.65119 7.84403 1.61733 7.96673 1.61733C8.08942 1.61733 8.20974 1.65119 8.31443 1.71518C8.41912 1.77917 8.50411 1.87082 8.56006 1.98002L13.9267 11.3134C13.9929 11.4132 14.0309 11.5291 14.0367 11.6488C14.0426 11.7684 14.0161 11.8875 13.9601 11.9934V11.98ZM8.00006 4.33335C7.82325 4.33335 7.65368 4.40359 7.52866 4.52861C7.40363 4.65364 7.33339 4.82321 7.33339 5.00002V7.66669C7.33339 7.8435 7.40363 8.01307 7.52866 8.13809C7.65368 8.26311 7.82325 8.33335 8.00006 8.33335C8.17687 8.33335 8.34644 8.26311 8.47146 8.13809C8.59649 8.01307 8.66673 7.8435 8.66673 7.66669V5.00002C8.66673 4.82321 8.59649 4.65364 8.47146 4.52861C8.34644 4.40359 8.17687 4.33335 8.00006 4.33335Z" , fill: "#F80000", __self: undefined, __source: {fileName: _jsxFileName$p, lineNumber: 68}})
|
|
20602
20601
|
)
|
|
20603
20602
|
, errMsg ? errMsg : 'This field is required'
|
|
20604
20603
|
)
|
|
@@ -21408,7 +21407,7 @@ const InputField = styled.input`
|
|
|
21408
21407
|
const InputContainer$1 = styled.div`
|
|
21409
21408
|
position: relative;
|
|
21410
21409
|
height: 50px;
|
|
21411
|
-
width: 430px;
|
|
21410
|
+
//width: 430px;
|
|
21412
21411
|
border-radius: 8px;
|
|
21413
21412
|
border: 1px solid ${theme.colors["neutral-200"]};
|
|
21414
21413
|
display: flex;
|
|
@@ -21449,7 +21448,7 @@ const _jsxFileName$j = "D:\\SSX\\Project\\Component Library\\sscomp\\src\\compon
|
|
|
21449
21448
|
* Component to display an input field component in a form. This mimics the behavior of a regular HTML <code><input></code> element and accepts the same props as it along with the custom ones defined.
|
|
21450
21449
|
*/
|
|
21451
21450
|
const TextField = (props) => {
|
|
21452
|
-
let {label,subtext,errMsg,disabled,required,value} = props;
|
|
21451
|
+
let {label,subtext,errMsg,disabled,required,value,width} = props;
|
|
21453
21452
|
|
|
21454
21453
|
const [borderColor,setBorderColor] = React$1.useState('');
|
|
21455
21454
|
const [err,setErr] = React$1.useState(false);
|
|
@@ -21481,7 +21480,7 @@ const TextField = (props) => {
|
|
|
21481
21480
|
, subtext && React$1.createElement('span', {__self: undefined, __source: {fileName: _jsxFileName$j, lineNumber: 38}}, subtext)
|
|
21482
21481
|
)
|
|
21483
21482
|
|
|
21484
|
-
, React$1.createElement(InputContainer$1, { className: `${borderColor} ${disabled ? 'disabled' : ''}`, __self: undefined, __source: {fileName: _jsxFileName$j, lineNumber: 41}}
|
|
21483
|
+
, React$1.createElement(InputContainer$1, { className: `${borderColor} ${disabled ? 'disabled' : ''}`, style: {width:width ? width : '100%'}, __self: undefined, __source: {fileName: _jsxFileName$j, lineNumber: 41}}
|
|
21485
21484
|
, React$1.createElement(InputField, { ref: textFieldRef, onBlur: ()=>{validate();}, ...props, __self: undefined, __source: {fileName: _jsxFileName$j, lineNumber: 42}})
|
|
21486
21485
|
)
|
|
21487
21486
|
, !value && required && err &&
|
|
@@ -22925,7 +22924,7 @@ const TextAreaField = styled.textarea`
|
|
|
22925
22924
|
const InputContainer = styled.div`
|
|
22926
22925
|
position: relative;
|
|
22927
22926
|
height: auto;
|
|
22928
|
-
width: 430px;
|
|
22927
|
+
//width: 430px;
|
|
22929
22928
|
border-radius: 8px;
|
|
22930
22929
|
border: 1px solid ${theme.colors["neutral-200"]};
|
|
22931
22930
|
display: flex;
|
|
@@ -22966,7 +22965,7 @@ const _jsxFileName$9 = "D:\\SSX\\Project\\Component Library\\sscomp\\src\\compon
|
|
|
22966
22965
|
* Component to display a textarea field in a form. This mimics the behavior of a regular HTML <code><textarea></code> element and accepts the same props as it along with the custom ones defined.
|
|
22967
22966
|
*/
|
|
22968
22967
|
const TextArea = (props) => {
|
|
22969
|
-
let {label,subtext,errMsg,disabled,required,value} = props;
|
|
22968
|
+
let {label,subtext,errMsg,disabled,required,value,width} = props;
|
|
22970
22969
|
|
|
22971
22970
|
const [borderColor,setBorderColor] = React$1.useState('');
|
|
22972
22971
|
const [err,setErr] = React$1.useState(false);
|
|
@@ -22998,7 +22997,7 @@ const TextArea = (props) => {
|
|
|
22998
22997
|
, subtext && React$1.createElement('span', {__self: undefined, __source: {fileName: _jsxFileName$9, lineNumber: 38}}, subtext)
|
|
22999
22998
|
)
|
|
23000
22999
|
|
|
23001
|
-
, React$1.createElement(InputContainer, { className: `${borderColor} ${disabled ? 'disabled' : ''}`, __self: undefined, __source: {fileName: _jsxFileName$9, lineNumber: 41}}
|
|
23000
|
+
, React$1.createElement(InputContainer, { className: `${borderColor} ${disabled ? 'disabled' : ''}`, style: {width:width ? width : '100%'}, __self: undefined, __source: {fileName: _jsxFileName$9, lineNumber: 41}}
|
|
23002
23001
|
, React$1.createElement(TextAreaField, { ref: textFieldRef, onBlur: ()=>{validate();}, ...props, __self: undefined, __source: {fileName: _jsxFileName$9, lineNumber: 42}})
|
|
23003
23002
|
)
|
|
23004
23003
|
, !value && required && err &&
|