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.js
CHANGED
|
@@ -24177,21 +24177,22 @@ const DeleteIcon = styled__default["default"].div`
|
|
|
24177
24177
|
position: absolute;
|
|
24178
24178
|
`;
|
|
24179
24179
|
|
|
24180
|
-
const QuickFilterDropdownSingle =
|
|
24181
|
-
|
|
24182
|
-
|
|
24183
|
-
|
|
24184
|
-
|
|
24185
|
-
|
|
24186
|
-
|
|
24187
|
-
|
|
24188
|
-
|
|
24189
|
-
|
|
24190
|
-
|
|
24191
|
-
|
|
24192
|
-
|
|
24193
|
-
|
|
24194
|
-
|
|
24180
|
+
const QuickFilterDropdownSingle = _ref => {
|
|
24181
|
+
let {
|
|
24182
|
+
label,
|
|
24183
|
+
hoverColor,
|
|
24184
|
+
options,
|
|
24185
|
+
selectedValue,
|
|
24186
|
+
placeHolder,
|
|
24187
|
+
onChange,
|
|
24188
|
+
disabled,
|
|
24189
|
+
width,
|
|
24190
|
+
error,
|
|
24191
|
+
errorMessage,
|
|
24192
|
+
xIconShow,
|
|
24193
|
+
labelColor,
|
|
24194
|
+
showLabelOnTop
|
|
24195
|
+
} = _ref;
|
|
24195
24196
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
24196
24197
|
const [showOptions, setShowOptions] = React$1.useState(false);
|
|
24197
24198
|
const [inputValue, setInputValue] = React$1.useState("");
|
|
@@ -24648,25 +24649,26 @@ const IconContainer$2 = styled__default["default"].div`
|
|
|
24648
24649
|
cursor: pointer;
|
|
24649
24650
|
`;
|
|
24650
24651
|
|
|
24651
|
-
const QuickFilterDropdownMultiSelection =
|
|
24652
|
-
|
|
24653
|
-
|
|
24654
|
-
|
|
24655
|
-
|
|
24656
|
-
|
|
24657
|
-
|
|
24658
|
-
|
|
24659
|
-
|
|
24660
|
-
|
|
24661
|
-
|
|
24662
|
-
|
|
24663
|
-
|
|
24664
|
-
|
|
24665
|
-
|
|
24666
|
-
|
|
24667
|
-
|
|
24668
|
-
|
|
24669
|
-
|
|
24652
|
+
const QuickFilterDropdownMultiSelection = _ref => {
|
|
24653
|
+
let {
|
|
24654
|
+
label,
|
|
24655
|
+
labelEmptyValue,
|
|
24656
|
+
options,
|
|
24657
|
+
selectedValue,
|
|
24658
|
+
placeHolder,
|
|
24659
|
+
onChange,
|
|
24660
|
+
required,
|
|
24661
|
+
disabled,
|
|
24662
|
+
width,
|
|
24663
|
+
height,
|
|
24664
|
+
error,
|
|
24665
|
+
errorMessage,
|
|
24666
|
+
labelColor,
|
|
24667
|
+
xIconShow,
|
|
24668
|
+
checkBoxColor,
|
|
24669
|
+
showLabelOnTop,
|
|
24670
|
+
dropdownHeight
|
|
24671
|
+
} = _ref;
|
|
24670
24672
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
24671
24673
|
const [showOptions, setShowOptions] = React$1.useState(false);
|
|
24672
24674
|
const [inputValue, setInputValue] = React$1.useState('');
|
|
@@ -35120,13 +35122,14 @@ const StyledInput$1 = styled__default["default"].input`
|
|
|
35120
35122
|
border-radius: ${props => props.borderRadius || '4px'};
|
|
35121
35123
|
border: none;
|
|
35122
35124
|
outline: none;
|
|
35125
|
+
background-color: ${props => props.isDarkerBackground ? '#F2F2F2' : 'white'} !important;
|
|
35123
35126
|
width: ${props => props.width || '90%'};
|
|
35124
35127
|
height: ${props => props.height || 'auto'};
|
|
35125
35128
|
transition: border-color 0.3s ease;
|
|
35126
35129
|
font-size: 14px;
|
|
35127
35130
|
font-weight: 400;
|
|
35128
35131
|
box-sizing: border-box;
|
|
35129
|
-
color: ${props => props.disabled ? '#
|
|
35132
|
+
color: ${props => props.disabled ? '#D0D0D0' : (props.isFocused || props.value ? props.textColor : '#757575') || '#333'};
|
|
35130
35133
|
cursor: ${props => props.disabled ? 'not-allowed' : 'text'};
|
|
35131
35134
|
`;
|
|
35132
35135
|
const StyledLabel = styled__default["default"].label`
|
|
@@ -35173,9 +35176,8 @@ const InputContainer$1 = styled__default["default"].div`
|
|
|
35173
35176
|
overflow: hidden;
|
|
35174
35177
|
width: 100%;
|
|
35175
35178
|
height: 100%;
|
|
35176
|
-
box-sizing: border-box;
|
|
35177
|
-
|
|
35178
|
-
border: 1px solid ${props => props.disabled ? '#bdbdbd' : props.error ? 'red' : '#B1B1B1'};
|
|
35179
|
+
box-sizing: border-box;
|
|
35180
|
+
border: 1px solid ${props => props.disabled ? '#D0D0D0' : props.error ? 'red' : '#B1B1B1'};
|
|
35179
35181
|
font-weight: 400;
|
|
35180
35182
|
font-size: 14px;
|
|
35181
35183
|
border-radius: 12px;
|
|
@@ -35217,6 +35219,7 @@ const WeeksPicker = _ref => {
|
|
|
35217
35219
|
withMarginBottom = true,
|
|
35218
35220
|
onChange,
|
|
35219
35221
|
selectedValue,
|
|
35222
|
+
isDarkerBackground = false,
|
|
35220
35223
|
// New props for range restriction
|
|
35221
35224
|
allowedWeekRange = null,
|
|
35222
35225
|
// { startWeek: number, endWeek: number } or null
|
|
@@ -35413,7 +35416,8 @@ const WeeksPicker = _ref => {
|
|
|
35413
35416
|
placeholder: isFocused ? placeholder : "",
|
|
35414
35417
|
disabled: disabled,
|
|
35415
35418
|
borderColor: borderColor,
|
|
35416
|
-
textColor: textColor
|
|
35419
|
+
textColor: textColor,
|
|
35420
|
+
isDarkerBackground: isDarkerBackground
|
|
35417
35421
|
}), /*#__PURE__*/React__default["default"].createElement(CalendarDiv, {
|
|
35418
35422
|
onClick: disabled ? undefined : handleToggle
|
|
35419
35423
|
}, /*#__PURE__*/React__default["default"].createElement(CalendarInOpen, {
|
|
@@ -54863,7 +54867,7 @@ const DropdownContainer = styled__default["default"].div`
|
|
|
54863
54867
|
`;
|
|
54864
54868
|
const DropdownButton = styled__default["default"].button`
|
|
54865
54869
|
width: 100%;
|
|
54866
|
-
background: #fff;
|
|
54870
|
+
background: ${props => props.isDarkerBackground ? '#F2F2F2' : '#fff'};
|
|
54867
54871
|
border: 1px solid #8B8989;
|
|
54868
54872
|
border-radius: 12px;
|
|
54869
54873
|
padding: 17px;
|
|
@@ -54876,7 +54880,7 @@ const DropdownButton = styled__default["default"].button`
|
|
|
54876
54880
|
${props => props.disabled && styled.css`
|
|
54877
54881
|
color: #D0D0D0;
|
|
54878
54882
|
cursor: not-allowed;
|
|
54879
|
-
border: 1px solid #
|
|
54883
|
+
border: 1px solid #D9D9D9;
|
|
54880
54884
|
background: ${props => props.isDarkerBackground ? '#F2F2F2' : '#fff'};
|
|
54881
54885
|
`}
|
|
54882
54886
|
`;
|
|
@@ -54985,8 +54989,8 @@ const Label$1 = styled__default["default"].label`
|
|
|
54985
54989
|
padding-inline-start: 5px;
|
|
54986
54990
|
margin-right: 10px;
|
|
54987
54991
|
z-index: 2;
|
|
54988
|
-
color: ${props => props.error ? 'red' : props.disabled ? '#
|
|
54989
|
-
background-color: ${props => props.
|
|
54992
|
+
color: ${props => props.error ? 'red' : props.disabled ? '#D0D0D0' : props.labelColor};
|
|
54993
|
+
background-color: ${props => props.isDarkerBackground ? '#F2F2F2' : props.showLabelOnTop ? 'white' : 'transparent'};
|
|
54990
54994
|
position: absolute;
|
|
54991
54995
|
top: ${props => props.isFocused || props.hasValue ? '0px' : '50%'};
|
|
54992
54996
|
left: ${props => props.isFocused || props.hasValue ? '23px' : '14px'};
|
|
@@ -55517,7 +55521,8 @@ const OverlayDropdown = _ref => {
|
|
|
55517
55521
|
labelColor: labelColor,
|
|
55518
55522
|
hasValue: hasValue,
|
|
55519
55523
|
disabled: disabled,
|
|
55520
|
-
showLabelOnTop: showLabelOnTop
|
|
55524
|
+
showLabelOnTop: showLabelOnTop,
|
|
55525
|
+
isDarkerBackground: isDarkerBackground
|
|
55521
55526
|
}, getLabel(), getRequired()), /*#__PURE__*/React__default["default"].createElement(DropdownButton, {
|
|
55522
55527
|
ref: buttonRef,
|
|
55523
55528
|
onClick: toggleDropdown,
|