sag_components 2.0.0-beta236 → 2.0.0-beta237
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.d.ts +2 -1
- package/dist/index.esm.js +49 -44
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +49 -44
- package/dist/index.js.map +1 -1
- package/dist/types/components/OverlayDropdown/OverlayDropdown.stories.d.ts +8 -0
- package/dist/types/components/WeeksPicker/WeeksPicker.d.ts +2 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1284,7 +1284,7 @@ declare function ModalWithOverlay(props: any): react_jsx_runtime.JSX.Element;
|
|
|
1284
1284
|
|
|
1285
1285
|
declare function DropdownNew(props: any): react_jsx_runtime.JSX.Element;
|
|
1286
1286
|
|
|
1287
|
-
declare function WeeksPicker({ label, disabled, borderColor, borderColorFocus, textColor, hoverColor, required, placeholder, borderRadius, year, width, height, withMarginBottom, onChange, selectedValue, allowedWeekRange, restrictToRange, }: {
|
|
1287
|
+
declare function WeeksPicker({ label, disabled, borderColor, borderColorFocus, textColor, hoverColor, required, placeholder, borderRadius, year, width, height, withMarginBottom, onChange, selectedValue, isDarkerBackground, allowedWeekRange, restrictToRange, }: {
|
|
1288
1288
|
label: any;
|
|
1289
1289
|
disabled: any;
|
|
1290
1290
|
borderColor: any;
|
|
@@ -1300,6 +1300,7 @@ declare function WeeksPicker({ label, disabled, borderColor, borderColorFocus, t
|
|
|
1300
1300
|
withMarginBottom?: boolean;
|
|
1301
1301
|
onChange: any;
|
|
1302
1302
|
selectedValue: any;
|
|
1303
|
+
isDarkerBackground?: boolean;
|
|
1303
1304
|
allowedWeekRange?: any;
|
|
1304
1305
|
restrictToRange?: boolean;
|
|
1305
1306
|
}): react_jsx_runtime.JSX.Element;
|
package/dist/index.esm.js
CHANGED
|
@@ -24167,21 +24167,22 @@ const DeleteIcon = styled.div`
|
|
|
24167
24167
|
position: absolute;
|
|
24168
24168
|
`;
|
|
24169
24169
|
|
|
24170
|
-
const QuickFilterDropdownSingle =
|
|
24171
|
-
|
|
24172
|
-
|
|
24173
|
-
|
|
24174
|
-
|
|
24175
|
-
|
|
24176
|
-
|
|
24177
|
-
|
|
24178
|
-
|
|
24179
|
-
|
|
24180
|
-
|
|
24181
|
-
|
|
24182
|
-
|
|
24183
|
-
|
|
24184
|
-
|
|
24170
|
+
const QuickFilterDropdownSingle = _ref => {
|
|
24171
|
+
let {
|
|
24172
|
+
label,
|
|
24173
|
+
hoverColor,
|
|
24174
|
+
options,
|
|
24175
|
+
selectedValue,
|
|
24176
|
+
placeHolder,
|
|
24177
|
+
onChange,
|
|
24178
|
+
disabled,
|
|
24179
|
+
width,
|
|
24180
|
+
error,
|
|
24181
|
+
errorMessage,
|
|
24182
|
+
xIconShow,
|
|
24183
|
+
labelColor,
|
|
24184
|
+
showLabelOnTop
|
|
24185
|
+
} = _ref;
|
|
24185
24186
|
const [isFocused, setIsFocused] = useState(false);
|
|
24186
24187
|
const [showOptions, setShowOptions] = useState(false);
|
|
24187
24188
|
const [inputValue, setInputValue] = useState("");
|
|
@@ -24638,25 +24639,26 @@ const IconContainer$2 = styled.div`
|
|
|
24638
24639
|
cursor: pointer;
|
|
24639
24640
|
`;
|
|
24640
24641
|
|
|
24641
|
-
const QuickFilterDropdownMultiSelection =
|
|
24642
|
-
|
|
24643
|
-
|
|
24644
|
-
|
|
24645
|
-
|
|
24646
|
-
|
|
24647
|
-
|
|
24648
|
-
|
|
24649
|
-
|
|
24650
|
-
|
|
24651
|
-
|
|
24652
|
-
|
|
24653
|
-
|
|
24654
|
-
|
|
24655
|
-
|
|
24656
|
-
|
|
24657
|
-
|
|
24658
|
-
|
|
24659
|
-
|
|
24642
|
+
const QuickFilterDropdownMultiSelection = _ref => {
|
|
24643
|
+
let {
|
|
24644
|
+
label,
|
|
24645
|
+
labelEmptyValue,
|
|
24646
|
+
options,
|
|
24647
|
+
selectedValue,
|
|
24648
|
+
placeHolder,
|
|
24649
|
+
onChange,
|
|
24650
|
+
required,
|
|
24651
|
+
disabled,
|
|
24652
|
+
width,
|
|
24653
|
+
height,
|
|
24654
|
+
error,
|
|
24655
|
+
errorMessage,
|
|
24656
|
+
labelColor,
|
|
24657
|
+
xIconShow,
|
|
24658
|
+
checkBoxColor,
|
|
24659
|
+
showLabelOnTop,
|
|
24660
|
+
dropdownHeight
|
|
24661
|
+
} = _ref;
|
|
24660
24662
|
const [isFocused, setIsFocused] = useState(false);
|
|
24661
24663
|
const [showOptions, setShowOptions] = useState(false);
|
|
24662
24664
|
const [inputValue, setInputValue] = useState('');
|
|
@@ -35110,13 +35112,14 @@ const StyledInput$1 = styled.input`
|
|
|
35110
35112
|
border-radius: ${props => props.borderRadius || '4px'};
|
|
35111
35113
|
border: none;
|
|
35112
35114
|
outline: none;
|
|
35115
|
+
background-color: ${props => props.isDarkerBackground ? '#F2F2F2' : 'white'} !important;
|
|
35113
35116
|
width: ${props => props.width || '90%'};
|
|
35114
35117
|
height: ${props => props.height || 'auto'};
|
|
35115
35118
|
transition: border-color 0.3s ease;
|
|
35116
35119
|
font-size: 14px;
|
|
35117
35120
|
font-weight: 400;
|
|
35118
35121
|
box-sizing: border-box;
|
|
35119
|
-
color: ${props => props.disabled ? '#
|
|
35122
|
+
color: ${props => props.disabled ? '#D0D0D0' : (props.isFocused || props.value ? props.textColor : '#757575') || '#333'};
|
|
35120
35123
|
cursor: ${props => props.disabled ? 'not-allowed' : 'text'};
|
|
35121
35124
|
`;
|
|
35122
35125
|
const StyledLabel = styled.label`
|
|
@@ -35163,9 +35166,8 @@ const InputContainer$1 = styled.div`
|
|
|
35163
35166
|
overflow: hidden;
|
|
35164
35167
|
width: 100%;
|
|
35165
35168
|
height: 100%;
|
|
35166
|
-
box-sizing: border-box;
|
|
35167
|
-
|
|
35168
|
-
border: 1px solid ${props => props.disabled ? '#bdbdbd' : props.error ? 'red' : '#B1B1B1'};
|
|
35169
|
+
box-sizing: border-box;
|
|
35170
|
+
border: 1px solid ${props => props.disabled ? '#D0D0D0' : props.error ? 'red' : '#B1B1B1'};
|
|
35169
35171
|
font-weight: 400;
|
|
35170
35172
|
font-size: 14px;
|
|
35171
35173
|
border-radius: 12px;
|
|
@@ -35207,6 +35209,7 @@ const WeeksPicker = _ref => {
|
|
|
35207
35209
|
withMarginBottom = true,
|
|
35208
35210
|
onChange,
|
|
35209
35211
|
selectedValue,
|
|
35212
|
+
isDarkerBackground = false,
|
|
35210
35213
|
// New props for range restriction
|
|
35211
35214
|
allowedWeekRange = null,
|
|
35212
35215
|
// { startWeek: number, endWeek: number } or null
|
|
@@ -35403,7 +35406,8 @@ const WeeksPicker = _ref => {
|
|
|
35403
35406
|
placeholder: isFocused ? placeholder : "",
|
|
35404
35407
|
disabled: disabled,
|
|
35405
35408
|
borderColor: borderColor,
|
|
35406
|
-
textColor: textColor
|
|
35409
|
+
textColor: textColor,
|
|
35410
|
+
isDarkerBackground: isDarkerBackground
|
|
35407
35411
|
}), /*#__PURE__*/React$1.createElement(CalendarDiv, {
|
|
35408
35412
|
onClick: disabled ? undefined : handleToggle
|
|
35409
35413
|
}, /*#__PURE__*/React$1.createElement(CalendarInOpen, {
|
|
@@ -54853,7 +54857,7 @@ const DropdownContainer = styled.div`
|
|
|
54853
54857
|
`;
|
|
54854
54858
|
const DropdownButton = styled.button`
|
|
54855
54859
|
width: 100%;
|
|
54856
|
-
background: #fff;
|
|
54860
|
+
background: ${props => props.isDarkerBackground ? '#F2F2F2' : '#fff'};
|
|
54857
54861
|
border: 1px solid #8B8989;
|
|
54858
54862
|
border-radius: 12px;
|
|
54859
54863
|
padding: 17px;
|
|
@@ -54866,7 +54870,7 @@ const DropdownButton = styled.button`
|
|
|
54866
54870
|
${props => props.disabled && css`
|
|
54867
54871
|
color: #D0D0D0;
|
|
54868
54872
|
cursor: not-allowed;
|
|
54869
|
-
border: 1px solid #
|
|
54873
|
+
border: 1px solid #D9D9D9;
|
|
54870
54874
|
background: ${props => props.isDarkerBackground ? '#F2F2F2' : '#fff'};
|
|
54871
54875
|
`}
|
|
54872
54876
|
`;
|
|
@@ -54975,8 +54979,8 @@ const Label$1 = styled.label`
|
|
|
54975
54979
|
padding-inline-start: 5px;
|
|
54976
54980
|
margin-right: 10px;
|
|
54977
54981
|
z-index: 2;
|
|
54978
|
-
color: ${props => props.error ? 'red' : props.disabled ? '#
|
|
54979
|
-
background-color: ${props => props.
|
|
54982
|
+
color: ${props => props.error ? 'red' : props.disabled ? '#D0D0D0' : props.labelColor};
|
|
54983
|
+
background-color: ${props => props.isDarkerBackground ? '#F2F2F2' : props.showLabelOnTop ? 'white' : 'transparent'};
|
|
54980
54984
|
position: absolute;
|
|
54981
54985
|
top: ${props => props.isFocused || props.hasValue ? '0px' : '50%'};
|
|
54982
54986
|
left: ${props => props.isFocused || props.hasValue ? '23px' : '14px'};
|
|
@@ -55507,7 +55511,8 @@ const OverlayDropdown = _ref => {
|
|
|
55507
55511
|
labelColor: labelColor,
|
|
55508
55512
|
hasValue: hasValue,
|
|
55509
55513
|
disabled: disabled,
|
|
55510
|
-
showLabelOnTop: showLabelOnTop
|
|
55514
|
+
showLabelOnTop: showLabelOnTop,
|
|
55515
|
+
isDarkerBackground: isDarkerBackground
|
|
55511
55516
|
}, getLabel(), getRequired()), /*#__PURE__*/React$1.createElement(DropdownButton, {
|
|
55512
55517
|
ref: buttonRef,
|
|
55513
55518
|
onClick: toggleDropdown,
|