@luscii-healthtech/web-ui 2.9.0 → 2.10.2
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/components/Avatar/Avatar.d.ts +11 -11
- package/dist/components/CenteredHero/CenteredHero.d.ts +1 -1
- package/dist/components/Container/types/FlexContainerProps.type.d.ts +3 -2
- package/dist/components/Datepicker/Datepicker.d.ts +12 -11
- package/dist/components/Dropdown/Dropdown.d.ts +17 -7
- package/dist/components/ErrorBlock/ErrorBlock.d.ts +3 -3
- package/dist/components/Form/form.transformer.d.ts +3 -20
- package/dist/components/Form/form.types.d.ts +5 -5
- package/dist/components/InfoBlock/InfoBlock.d.ts +4 -4
- package/dist/components/Input/SearchInput.d.ts +1 -1
- package/dist/components/Line/Line.d.ts +4 -4
- package/dist/components/Menu/Menu.d.ts +6 -0
- package/dist/components/MultiSelect/MultiSelect.d.ts +7 -7
- package/dist/components/Page/CRUDPage.d.ts +13 -13
- package/dist/components/Page/Page.d.ts +13 -13
- package/dist/components/PaginationMenu/PaginationMenu.utils.d.ts +1 -1
- package/dist/components/Radio/Radio.d.ts +5 -1
- package/dist/components/RadioGroup/RadioGroup.d.ts +9 -10
- package/dist/components/Select/LegacySelect.d.ts +8 -9
- package/dist/components/Select/SelectV2.d.ts +1 -1
- package/dist/components/Switcher/Switcher.d.ts +6 -6
- package/dist/components/Switcher/SwitcherItem.d.ts +7 -7
- package/dist/components/Text/LegacyText.d.ts +18 -18
- package/dist/components/TextEditor/TextEditor.d.ts +4 -4
- package/dist/components/Textarea/Textarea.d.ts +16 -16
- package/dist/components/Title/LegacyTitle.d.ts +10 -10
- package/dist/web-ui-tailwind.css +8 -0
- package/dist/web-ui.cjs.development.js +81 -74
- package/dist/web-ui.cjs.development.js.map +1 -1
- package/dist/web-ui.cjs.production.min.js +1 -1
- package/dist/web-ui.cjs.production.min.js.map +1 -1
- package/dist/web-ui.esm.js +81 -74
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +7 -3
- package/src/assets/add.svg +0 -5
- package/src/assets/add_hover.svg +0 -4
- package/src/assets/arrow-down-icon.svg +0 -3
- package/src/assets/big-menu-icon-hover.svg +0 -6
- package/src/assets/big-menu-icon.svg +0 -6
- package/src/assets/check-cross-icon.svg +0 -7
- package/src/assets/check-icon-primary.svg +0 -5
- package/src/assets/check-icon.svg +0 -3
- package/src/assets/chevron-double.svg +0 -3
- package/src/assets/close.svg +0 -3
- package/src/assets/color-variant-cross.svg +0 -3
- package/src/assets/cross-dark.svg +0 -3
- package/src/assets/delete.svg +0 -4
- package/src/assets/delete_hover.svg +0 -4
- package/src/assets/edit.svg +0 -6
- package/src/assets/edit_hover.svg +0 -6
- package/src/assets/error-icon.svg +0 -7
- package/src/assets/grid-view-icon-active.svg +0 -6
- package/src/assets/grid-view-icon.svg +0 -6
- package/src/assets/groups.svg +0 -3
- package/src/assets/hamburger.svg +0 -5
- package/src/assets/happy-star.svg +0 -9
- package/src/assets/hcps.svg +0 -3
- package/src/assets/indeterminate-icon.svg +0 -3
- package/src/assets/info-icon.svg +0 -6
- package/src/assets/left-arrow-blue.svg +0 -3
- package/src/assets/left-arrow-grey.svg +0 -3
- package/src/assets/list-view-icon-active.svg +0 -3
- package/src/assets/list-view-icon.svg +0 -3
- package/src/assets/loading.svg +0 -16
- package/src/assets/modal-close-icon-active.svg +0 -9
- package/src/assets/modal-close-icon.svg +0 -9
- package/src/assets/no-open-alerts.svg +0 -19
- package/src/assets/patients.svg +0 -3
- package/src/assets/phone-mockup.svg +0 -9
- package/src/assets/programs.svg +0 -3
- package/src/assets/right-arrow-blue.svg +0 -3
- package/src/assets/right-arrow-grey.svg +0 -3
- package/src/assets/search-cancel.svg +0 -3
- package/src/assets/search-not-found.svg +0 -70
- package/src/assets/search.svg +0 -3
- package/src/assets/spinner-gray.svg +0 -6
- package/src/assets/spinner.svg +0 -5
- package/src/assets/starIcon.svg +0 -3
- package/src/assets/success-icon.svg +0 -6
- package/src/components/Accordion/Accordion.tsx +0 -33
- package/src/components/Accordion/AccordionItem.tsx +0 -50
- package/src/components/Avatar/Avatar.js +0 -81
- package/src/components/Avatar/Avatar.scss +0 -153
- package/src/components/Badge/Badge.tsx +0 -23
- package/src/components/Breadcrumbs/Breadcrumbs.tsx +0 -46
- package/src/components/Button/Button.examples.md +0 -46
- package/src/components/Button/Button.tsx +0 -200
- package/src/components/Button/Button.types.ts +0 -41
- package/src/components/Button/ButtonIcon.tsx +0 -42
- package/src/components/ButtonV2/ButtonProps.type.ts +0 -44
- package/src/components/ButtonV2/ButtonV2.tsx +0 -97
- package/src/components/ButtonV2/PrimaryButton.tsx +0 -25
- package/src/components/ButtonV2/SecondaryButton.tsx +0 -26
- package/src/components/ButtonV2/TertiaryButton.tsx +0 -26
- package/src/components/Carousel/Carousel.tsx +0 -52
- package/src/components/Carousel/GliderContainer.scss +0 -13
- package/src/components/Carousel/GliderContainer.tsx +0 -22
- package/src/components/CenteredHero/CenteredHero.tsx +0 -63
- package/src/components/CheckBoxListModal/CheckboxListModal.tsx +0 -180
- package/src/components/Checkbox/Checkbox.scss +0 -125
- package/src/components/Checkbox/Checkbox.tsx +0 -147
- package/src/components/CheckboxList/CheckboxGroup.tsx +0 -120
- package/src/components/CheckboxList/CheckboxList.tsx +0 -46
- package/src/components/CheckboxList/CheckboxList.types.ts +0 -47
- package/src/components/CheckboxList/CheckboxListItem.tsx +0 -54
- package/src/components/ConfirmationDialog/ConfirmationDialog.scss +0 -15
- package/src/components/ConfirmationDialog/ConfirmationDialog.tsx +0 -84
- package/src/components/Container/FlexColumn.tsx +0 -18
- package/src/components/Container/FlexContainer.tsx +0 -46
- package/src/components/Container/FlexRow.tsx +0 -18
- package/src/components/Container/types/FlexContainerProps.type.ts +0 -18
- package/src/components/Datepicker/Datepicker.js +0 -96
- package/src/components/Datepicker/Datepicker.scss +0 -332
- package/src/components/Dropdown/Dropdown.js +0 -416
- package/src/components/Dropdown/Dropdown.scss +0 -83
- package/src/components/EmptyListMessage/EmptyListMessage.tsx +0 -34
- package/src/components/ErrorBlock/ErrorBlock.js +0 -24
- package/src/components/ErrorBlock/ErrorBlock.scss +0 -20
- package/src/components/Form/Form.tsx +0 -138
- package/src/components/Form/FormFieldDecorator.tsx +0 -66
- package/src/components/Form/FormInput.tsx +0 -47
- package/src/components/Form/FormRadioGroup.tsx +0 -23
- package/src/components/Form/FormSelect.tsx +0 -32
- package/src/components/Form/form.transformer.ts +0 -9
- package/src/components/Form/form.types.ts +0 -139
- package/src/components/Icons/AddIcon.tsx +0 -29
- package/src/components/Icons/AlertsIcon.tsx +0 -39
- package/src/components/Icons/BellIcon.tsx +0 -39
- package/src/components/Icons/ChartIcon.tsx +0 -22
- package/src/components/Icons/ChatBoxIcon.tsx +0 -23
- package/src/components/Icons/CheckIcon.tsx +0 -26
- package/src/components/Icons/ChevronDoubleIcon.tsx +0 -25
- package/src/components/Icons/ChevronDownIcon.tsx +0 -20
- package/src/components/Icons/ChevronRightIcon.tsx +0 -20
- package/src/components/Icons/CrossIcon.tsx +0 -24
- package/src/components/Icons/DeleteIcon.tsx +0 -23
- package/src/components/Icons/DownArrowIcon.tsx +0 -23
- package/src/components/Icons/DragIcon.tsx +0 -25
- package/src/components/Icons/DynamicIcon.tsx +0 -25
- package/src/components/Icons/EditIcon.tsx +0 -23
- package/src/components/Icons/EmptyIcon.tsx +0 -29
- package/src/components/Icons/EmptyStateDashboardIcon.tsx +0 -130
- package/src/components/Icons/ExclamationMarkIcon.tsx +0 -23
- package/src/components/Icons/EyeIcon.tsx +0 -23
- package/src/components/Icons/GearIcon.tsx +0 -23
- package/src/components/Icons/GroupIcon.tsx +0 -23
- package/src/components/Icons/HamburgerIcon.tsx +0 -31
- package/src/components/Icons/HeartIcon.tsx +0 -23
- package/src/components/Icons/ImageIcon.tsx +0 -23
- package/src/components/Icons/LeftArrowIcon.tsx +0 -23
- package/src/components/Icons/LightBulbIcon.tsx +0 -31
- package/src/components/Icons/LockIcon.tsx +0 -23
- package/src/components/Icons/MessagesIcon.tsx +0 -23
- package/src/components/Icons/NotesIcon.tsx +0 -23
- package/src/components/Icons/PinIcon.tsx +0 -23
- package/src/components/Icons/PrintIcon.tsx +0 -22
- package/src/components/Icons/RightArrowIcon.tsx +0 -23
- package/src/components/Icons/SearchCancelIcon.tsx +0 -23
- package/src/components/Icons/SearchIcon.tsx +0 -23
- package/src/components/Icons/SmallCircleIcon.tsx +0 -21
- package/src/components/Icons/SmallDiamondIcon.tsx +0 -31
- package/src/components/Icons/SmallSquareIcon.tsx +0 -21
- package/src/components/Icons/SpaceRocketIcon.tsx +0 -23
- package/src/components/Icons/StarIcon.tsx +0 -23
- package/src/components/Icons/WarningIcon.tsx +0 -24
- package/src/components/Icons/types/IconProps.type.ts +0 -5
- package/src/components/InfoBlock/InfoBlock.js +0 -24
- package/src/components/InfoBlock/InfoBlock.scss +0 -20
- package/src/components/InfoField/InfoField.tsx +0 -94
- package/src/components/Input/Input.css +0 -3
- package/src/components/Input/Input.tsx +0 -211
- package/src/components/Input/SearchInput.tsx +0 -24
- package/src/components/Line/Line.js +0 -38
- package/src/components/List/List.scss +0 -23
- package/src/components/List/List.tsx +0 -138
- package/src/components/List/List.types.ts +0 -41
- package/src/components/List/ListItem.tsx +0 -89
- package/src/components/List/ListItemSkeleton.tsx +0 -26
- package/src/components/List/ListSkeleton.scss +0 -5
- package/src/components/List/ListSkeleton.tsx +0 -30
- package/src/components/LoadingIndicator/LoadingIndicator.scss +0 -50
- package/src/components/LoadingIndicator/LoadingIndicator.tsx +0 -46
- package/src/components/Menu/Menu.js +0 -74
- package/src/components/Menu/Menu.scss +0 -27
- package/src/components/Modal/Modal.scss +0 -117
- package/src/components/Modal/Modal.tsx +0 -104
- package/src/components/Modal/ModalWithButtons.tsx +0 -34
- package/src/components/MultiSelect/MultiSelect.js +0 -117
- package/src/components/MultiSelect/MultiSelect.scss +0 -29
- package/src/components/MultiSelect/MultiSelectUtils.js +0 -23
- package/src/components/NavMenu/NavLayout.tsx +0 -40
- package/src/components/NavMenu/NavMenu.tsx +0 -39
- package/src/components/NavMenu/NavMenu.utils.ts +0 -6
- package/src/components/NavMenu/NavMenuContent.tsx +0 -23
- package/src/components/NavMenu/NavMenuItem.tsx +0 -102
- package/src/components/NotificationBanner/NotificationBanner.tsx +0 -104
- package/src/components/Page/CRUDPage.js +0 -123
- package/src/components/Page/CRUDPage.scss +0 -32
- package/src/components/Page/Page.js +0 -102
- package/src/components/Page/Page.scss +0 -59
- package/src/components/PageHeader/PageHeader.tsx +0 -51
- package/src/components/PaginationMenu/PaginationMenu.tsx +0 -47
- package/src/components/PaginationMenu/PaginationMenu.types.ts +0 -46
- package/src/components/PaginationMenu/PaginationMenu.utils.ts +0 -49
- package/src/components/PaginationMenu/PaginationMenuLarge.tsx +0 -96
- package/src/components/PaginationMenu/PaginationMenuSmall.tsx +0 -43
- package/src/components/PreviewPhone/PreviewPhone.tsx +0 -52
- package/src/components/PreviewPhone/useWindowDimensions.js +0 -26
- package/src/components/Radio/Radio.js +0 -102
- package/src/components/Radio/Radio.scss +0 -58
- package/src/components/Radio/RadioV2.css +0 -15
- package/src/components/Radio/RadioV2.tsx +0 -87
- package/src/components/RadioGroup/RadioGroup.js +0 -66
- package/src/components/RadioGroup/RadioGroup.scss +0 -37
- package/src/components/RadioGroup/RadioGroupV2.tsx +0 -35
- package/src/components/Section/Section.scss +0 -74
- package/src/components/Section/Section.tsx +0 -68
- package/src/components/Section/SectionItem.scss +0 -20
- package/src/components/Section/SectionItem.tsx +0 -26
- package/src/components/Section/SectionItemWithContent.tsx +0 -30
- package/src/components/Select/LegacySelect.js +0 -114
- package/src/components/Select/Select.scss +0 -29
- package/src/components/Select/Select.tsx +0 -151
- package/src/components/Select/SelectV2.tsx +0 -171
- package/src/components/Select/options.transformer.ts +0 -36
- package/src/components/Select/select.utils.spec.ts +0 -63
- package/src/components/Select/select.utils.ts +0 -45
- package/src/components/SettingsMenuButton/SettingsMenuButton.tsx +0 -111
- package/src/components/Spinner/Spinner.tsx +0 -23
- package/src/components/Steps/Step.tsx +0 -31
- package/src/components/Steps/Steps.tsx +0 -24
- package/src/components/Switcher/Switcher.js +0 -58
- package/src/components/Switcher/SwitcherItem.js +0 -61
- package/src/components/Switcher/SwitcherItem.scss +0 -67
- package/src/components/TabLinks/TabLinks.tsx +0 -63
- package/src/components/Tabbar/Tabbar.tsx +0 -60
- package/src/components/Tabbar/TabbarItem.tsx +0 -66
- package/src/components/Table/Table.tsx +0 -91
- package/src/components/Table/Table.types.ts +0 -28
- package/src/components/Table/Table.utils.ts +0 -23
- package/src/components/Table/TableBody.tsx +0 -57
- package/src/components/Table/TableBodyRow.tsx +0 -47
- package/src/components/Table/TableBodyRowDataCell.tsx +0 -76
- package/src/components/Table/TableFooter.tsx +0 -21
- package/src/components/Table/TableHeader.tsx +0 -28
- package/src/components/Tag/Tag.tsx +0 -58
- package/src/components/Tag/Tag.utils.ts +0 -4
- package/src/components/Tag/TagGroup.tsx +0 -29
- package/src/components/Text/LegacyText.js +0 -78
- package/src/components/Text/Text.scss +0 -67
- package/src/components/Text/Text.tsx +0 -131
- package/src/components/TextEditor/TextEditor.js +0 -61
- package/src/components/TextEditor/TextEditor.scss +0 -14
- package/src/components/TextEditorV2/TextEditorV2.js +0 -52
- package/src/components/TextEditorV2/TextEditorV2.scss +0 -110
- package/src/components/TextLink/TextLink.tsx +0 -42
- package/src/components/Textarea/Textarea.js +0 -108
- package/src/components/Textarea/Textarea.scss +0 -56
- package/src/components/Timeline/Timeline.tsx +0 -28
- package/src/components/Timeline/TimelineStep.tsx +0 -36
- package/src/components/Title/LegacyTitle.js +0 -64
- package/src/components/Title/Title.scss +0 -6
- package/src/components/Title/Title.tsx +0 -62
- package/src/components/Toaster/Toaster.scss +0 -57
- package/src/components/Toaster/Toaster.tsx +0 -100
- package/src/components/Toaster/toast-elements-getter.ts +0 -72
- package/src/components/Toaster/toast-progress-animator.ts +0 -53
- package/src/components/Toaster/toast.ts +0 -112
- package/src/components/ViewItem/ViewItem.tsx +0 -85
- package/src/custom.d.ts +0 -4
- package/src/index.tsx +0 -170
- package/src/styles/_colors.scss +0 -59
- package/src/styles/_layout.scss +0 -64
- package/src/styles/_shadows.scss +0 -19
- package/src/styles/_skeleton.scss +0 -63
- package/src/styles/_typography.scss +0 -8
- package/src/styles/_utils.scss +0 -45
- package/src/styles/fonts/avenir/3A0AF8_0_0.eot +0 -0
- package/src/styles/fonts/avenir/3A0AF8_0_0.ttf +0 -0
- package/src/styles/fonts/avenir/3A0AF8_0_0.woff +0 -0
- package/src/styles/fonts/avenir/3A0AF8_0_0.woff2 +0 -0
- package/src/styles/fonts/avenir/3A0AF8_1_0.eot +0 -0
- package/src/styles/fonts/avenir/3A0AF8_1_0.ttf +0 -0
- package/src/styles/fonts/avenir/3A0AF8_1_0.woff +0 -0
- package/src/styles/fonts/avenir/3A0AF8_1_0.woff2 +0 -0
- package/src/types/general.types.ts +0 -11
- package/src/utils/useOutsideClick.js +0 -19
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import React, { Component } from "react";
|
|
2
|
-
import ReactDatePicker from "react-datepicker";
|
|
3
|
-
import PropTypes from "prop-types";
|
|
4
|
-
import classNames from "classnames";
|
|
5
|
-
import moment from "moment";
|
|
6
|
-
|
|
7
|
-
import Button from "../Button/Button";
|
|
8
|
-
|
|
9
|
-
import "react-datepicker/dist/react-datepicker.css";
|
|
10
|
-
import "./Datepicker.scss";
|
|
11
|
-
|
|
12
|
-
export default class Datepicker extends Component {
|
|
13
|
-
handleCloseButtonClick = (event) => {
|
|
14
|
-
event.preventDefault();
|
|
15
|
-
|
|
16
|
-
this.datepickerRef.setOpen(false);
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
getDateFormat = () => {
|
|
20
|
-
const { showTimeSelect, formatDateWithTime = false } = this.props;
|
|
21
|
-
|
|
22
|
-
return showTimeSelect || formatDateWithTime ? "L LT" : "L";
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
render() {
|
|
26
|
-
const {
|
|
27
|
-
className,
|
|
28
|
-
hasCloseButton,
|
|
29
|
-
closeButtonText,
|
|
30
|
-
adjustDateOnChange = true,
|
|
31
|
-
showMonthDropdown = true,
|
|
32
|
-
showYearDropdown = true,
|
|
33
|
-
shouldCloseOnSelect = false,
|
|
34
|
-
allowSameDay = false,
|
|
35
|
-
minDate,
|
|
36
|
-
maxDate,
|
|
37
|
-
isDisabled = false,
|
|
38
|
-
selected,
|
|
39
|
-
...otherProps
|
|
40
|
-
} = this.props;
|
|
41
|
-
|
|
42
|
-
const dateFormat = this.getDateFormat();
|
|
43
|
-
const pickerClassName = classNames("cweb-datepicker text-slate-700 text-sm", className);
|
|
44
|
-
const getCloseButtonText = () => {
|
|
45
|
-
if (!closeButtonText) {
|
|
46
|
-
return "OK";
|
|
47
|
-
}
|
|
48
|
-
return closeButtonText;
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
return (
|
|
52
|
-
<ReactDatePicker
|
|
53
|
-
{...otherProps}
|
|
54
|
-
adjustDateOnChange={adjustDateOnChange}
|
|
55
|
-
ref={(element) => (this.datepickerRef = element)}
|
|
56
|
-
className={pickerClassName}
|
|
57
|
-
calendarClassName="cweb-datepicker-calendar"
|
|
58
|
-
shouldCloseOnSelect={shouldCloseOnSelect}
|
|
59
|
-
allowSameDay={allowSameDay}
|
|
60
|
-
closeButtonText
|
|
61
|
-
minDate={minDate}
|
|
62
|
-
maxDate={maxDate}
|
|
63
|
-
disabled={isDisabled}
|
|
64
|
-
showMonthDropdown={showMonthDropdown}
|
|
65
|
-
showYearDropdown={showYearDropdown}
|
|
66
|
-
dateFormat={dateFormat}
|
|
67
|
-
timeFormat="HH:mm"
|
|
68
|
-
selected={selected}
|
|
69
|
-
dropdownMode="select"
|
|
70
|
-
>
|
|
71
|
-
<div className="m-2">
|
|
72
|
-
{hasCloseButton ? (
|
|
73
|
-
<Button
|
|
74
|
-
text={getCloseButtonText()}
|
|
75
|
-
className="w-full cweb-datepicker-close-button"
|
|
76
|
-
onClick={this.handleCloseButtonClick}
|
|
77
|
-
/>
|
|
78
|
-
) : null}
|
|
79
|
-
</div>
|
|
80
|
-
</ReactDatePicker>
|
|
81
|
-
);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
Datepicker.propTypes = {
|
|
86
|
-
className: PropTypes.string,
|
|
87
|
-
selected: PropTypes.object,
|
|
88
|
-
hasCloseButton: PropTypes.bool,
|
|
89
|
-
closeButtonText: PropTypes.string,
|
|
90
|
-
onChange: PropTypes.func.isRequired,
|
|
91
|
-
showMonthDropdown: PropTypes.bool,
|
|
92
|
-
showYearDropdown: PropTypes.bool,
|
|
93
|
-
minDate: PropTypes.instanceOf(moment),
|
|
94
|
-
maxDate: PropTypes.instanceOf(moment),
|
|
95
|
-
isDisabled: PropTypes.bool,
|
|
96
|
-
};
|
|
@@ -1,332 +0,0 @@
|
|
|
1
|
-
@import "../../styles/colors";
|
|
2
|
-
@import "../../styles/typography";
|
|
3
|
-
@import "../../styles/layout";
|
|
4
|
-
@import "../../styles/utils";
|
|
5
|
-
|
|
6
|
-
.cweb-datepicker {
|
|
7
|
-
width: 182px;
|
|
8
|
-
height: $default-height;
|
|
9
|
-
border: 1px solid $color-border;
|
|
10
|
-
border-radius: $default-border-radius;
|
|
11
|
-
background-color: $color-white;
|
|
12
|
-
outline: none;
|
|
13
|
-
padding: 12px 12px 11px 12px;
|
|
14
|
-
|
|
15
|
-
input.cweb-datepicker {
|
|
16
|
-
font-size: 14px;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
&::placeholder {
|
|
20
|
-
color: $color-placeholder;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
&:-ms-input-placeholder {
|
|
24
|
-
color: $color-placeholder !important;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&::-ms-input-placeholder {
|
|
28
|
-
color: $color-placeholder;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.react-datepicker-popper {
|
|
33
|
-
z-index: 5;
|
|
34
|
-
|
|
35
|
-
&[data-placement^="bottom"] {
|
|
36
|
-
margin-top: 4px;
|
|
37
|
-
|
|
38
|
-
.react-datepicker__triangle {
|
|
39
|
-
border-bottom-color: $color-white;
|
|
40
|
-
margin-top: -4px;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&[data-placement^="top"] {
|
|
45
|
-
margin-bottom: 4px;
|
|
46
|
-
|
|
47
|
-
.react-datepicker__triangle {
|
|
48
|
-
border-top-color: $color-white;
|
|
49
|
-
margin-bottom: -4px;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.cweb-datepicker-calendar {
|
|
55
|
-
@include cweb-box-shadow(0, 4px, 8px, rgba(0, 0, 0, 0.2));
|
|
56
|
-
|
|
57
|
-
$header-navigation-height: 19px;
|
|
58
|
-
|
|
59
|
-
padding: 0;
|
|
60
|
-
border: 1px solid $color-border;
|
|
61
|
-
display: flex;
|
|
62
|
-
flex-direction: column;
|
|
63
|
-
justify-content: flex-start;
|
|
64
|
-
align-items: center;
|
|
65
|
-
|
|
66
|
-
.react-datepicker__triangle {
|
|
67
|
-
left: 10px;
|
|
68
|
-
border: 6px solid transparent;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.react-datepicker__navigation {
|
|
72
|
-
top: $header-navigation-height;
|
|
73
|
-
width: $header-navigation-height;
|
|
74
|
-
height: 10px;
|
|
75
|
-
background: url("../../assets/arrow-down-icon.svg") no-repeat center;
|
|
76
|
-
|
|
77
|
-
&.react-datepicker__navigation--previous {
|
|
78
|
-
border: 0;
|
|
79
|
-
transform: rotate(90deg);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
&.react-datepicker__navigation--next {
|
|
83
|
-
border: 0;
|
|
84
|
-
transform: rotate(-90deg);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.react-datepicker__time-container {
|
|
89
|
-
.react-datepicker__time-box {
|
|
90
|
-
width: auto;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.react-datepicker__time-list {
|
|
94
|
-
overflow-x: hidden;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.react-datepicker__time-list-item {
|
|
98
|
-
@include text(14px, $header-navigation-height, $color-slate-700);
|
|
99
|
-
@include flexbox-horizontal(center, center);
|
|
100
|
-
|
|
101
|
-
height: 40px !important;
|
|
102
|
-
padding: 0 !important;
|
|
103
|
-
|
|
104
|
-
&.react-datepicker__time-list-item--selected {
|
|
105
|
-
color: $color-white;
|
|
106
|
-
background-color: $color-primary !important;
|
|
107
|
-
position: relative;
|
|
108
|
-
|
|
109
|
-
&:hover {
|
|
110
|
-
background-color: $color-primary-emphasis !important;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
&:before {
|
|
114
|
-
$triangle-width: 6px;
|
|
115
|
-
|
|
116
|
-
content: "";
|
|
117
|
-
position: absolute;
|
|
118
|
-
bottom: -($triangle-width / 2);
|
|
119
|
-
right: 0;
|
|
120
|
-
left: initial;
|
|
121
|
-
top: initial;
|
|
122
|
-
border-style: solid;
|
|
123
|
-
border-width: $triangle-width $triangle-width $triangle-width 0;
|
|
124
|
-
border-color: transparent $color-white transparent transparent;
|
|
125
|
-
transform: rotate(-135deg);
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.react-datepicker__header {
|
|
132
|
-
padding-top: 0;
|
|
133
|
-
border: none;
|
|
134
|
-
background-color: $color-white;
|
|
135
|
-
font-size: 14px;
|
|
136
|
-
|
|
137
|
-
.react-datepicker__current-month {
|
|
138
|
-
@include text(14px, $header-navigation-height, $color-body, 600);
|
|
139
|
-
@include vertical-padding(16px);
|
|
140
|
-
|
|
141
|
-
text-transform: capitalize;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
.react-datepicker__header__dropdown {
|
|
145
|
-
margin-bottom: 15px;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
.react-datepicker__month-select,
|
|
149
|
-
.react-datepicker__year-select {
|
|
150
|
-
@include text(14px, $header-navigation-height, $color-slate-700);
|
|
151
|
-
|
|
152
|
-
height: $default-height;
|
|
153
|
-
padding-left: 12px;
|
|
154
|
-
border-radius: 4px;
|
|
155
|
-
background: $color-white url("../../assets/chevron-double.svg") no-repeat
|
|
156
|
-
right 8px center;
|
|
157
|
-
text-transform: capitalize;
|
|
158
|
-
-webkit-appearance: none;
|
|
159
|
-
-moz-appearance: none;
|
|
160
|
-
border: 1px solid $color-border;
|
|
161
|
-
transition: all 0.4s ease;
|
|
162
|
-
|
|
163
|
-
&:hover,
|
|
164
|
-
&:focus {
|
|
165
|
-
color: $color-primary;
|
|
166
|
-
border-color: $color-primary;
|
|
167
|
-
cursor: pointer;
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
.react-datepicker__month-select {
|
|
172
|
-
min-width: 172px;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
.react-datepicker__year-select {
|
|
176
|
-
min-width: 107px;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
&.react-datepicker__header--time {
|
|
180
|
-
@include flexbox-horizontal(center, center);
|
|
181
|
-
|
|
182
|
-
height: 52px;
|
|
183
|
-
padding: 0;
|
|
184
|
-
background-color: $color-chrome;
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
.react-datepicker__day-names,
|
|
189
|
-
.react-datepicker__month {
|
|
190
|
-
margin: 0.4rem;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
.react-datepicker__month {
|
|
194
|
-
padding-bottom: 8px;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
.react-datepicker__day-names,
|
|
198
|
-
.react-datepicker__week {
|
|
199
|
-
display: flex;
|
|
200
|
-
justify-content: center;
|
|
201
|
-
align-items: center;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
.react-datepicker__day-name,
|
|
205
|
-
.react-datepicker__day {
|
|
206
|
-
@include text(14px, $header-navigation-height, $color-slate-700);
|
|
207
|
-
|
|
208
|
-
width: 41px;
|
|
209
|
-
display: flex;
|
|
210
|
-
justify-content: center;
|
|
211
|
-
align-items: center;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
.react-datepicker__day-name {
|
|
215
|
-
height: 19px;
|
|
216
|
-
text-transform: capitalize;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
.react-datepicker__day {
|
|
220
|
-
height: 30px;
|
|
221
|
-
border-radius: 4px;
|
|
222
|
-
transition: background-color 0.3s ease-in-out;
|
|
223
|
-
|
|
224
|
-
&.react-datepicker__day--highlighted {
|
|
225
|
-
background-color: $color-white;
|
|
226
|
-
color: $color-primary;
|
|
227
|
-
position: relative;
|
|
228
|
-
|
|
229
|
-
&:after {
|
|
230
|
-
content: "";
|
|
231
|
-
position: absolute;
|
|
232
|
-
width: 4px;
|
|
233
|
-
height: 4px;
|
|
234
|
-
border-radius: 50%;
|
|
235
|
-
background-color: $color-primary;
|
|
236
|
-
left: 0;
|
|
237
|
-
right: 0;
|
|
238
|
-
bottom: 2px;
|
|
239
|
-
margin: 0 auto;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
&.react-datepicker__day--selected,
|
|
243
|
-
&.react-datepicker__day--keyboard-selected,
|
|
244
|
-
&.react-datepicker__day--in-range {
|
|
245
|
-
&:after {
|
|
246
|
-
background-color: $color-white;
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
&.react-datepicker__day--today {
|
|
252
|
-
font-weight: bold;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
&.react-datepicker__day--in-selecting-range {
|
|
256
|
-
background-color: $color-emphasis-background;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
&:hover {
|
|
260
|
-
background-color: $color-slate-50;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
&.react-datepicker__day--in-range,
|
|
264
|
-
&.react-datepicker__day--selected {
|
|
265
|
-
color: $color-white;
|
|
266
|
-
background-color: $color-primary;
|
|
267
|
-
|
|
268
|
-
&:hover {
|
|
269
|
-
background-color: $color-primary-emphasis;
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
&.react-datepicker__day--keyboard-selected {
|
|
274
|
-
color: $color-white;
|
|
275
|
-
background-color: $color-primary-emphasis;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
&.react-datepicker__day--selected {
|
|
279
|
-
position: relative;
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
&.react-datepicker__day--range-start {
|
|
283
|
-
position: relative;
|
|
284
|
-
|
|
285
|
-
&:before {
|
|
286
|
-
$triangle-width: 6px;
|
|
287
|
-
|
|
288
|
-
content: "";
|
|
289
|
-
position: absolute;
|
|
290
|
-
top: -($triangle-width / 2);
|
|
291
|
-
left: 0;
|
|
292
|
-
bottom: initial;
|
|
293
|
-
right: initial;
|
|
294
|
-
border-style: solid;
|
|
295
|
-
border-width: $triangle-width $triangle-width $triangle-width 0;
|
|
296
|
-
border-color: transparent $color-white transparent transparent;
|
|
297
|
-
transform: rotate(45deg);
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
&.react-datepicker__day--range-end {
|
|
302
|
-
position: relative;
|
|
303
|
-
|
|
304
|
-
&:before {
|
|
305
|
-
$triangle-width: 6px;
|
|
306
|
-
|
|
307
|
-
content: "";
|
|
308
|
-
position: absolute;
|
|
309
|
-
bottom: -($triangle-width / 2);
|
|
310
|
-
right: 0;
|
|
311
|
-
left: initial;
|
|
312
|
-
top: initial;
|
|
313
|
-
border-style: solid;
|
|
314
|
-
border-width: $triangle-width $triangle-width $triangle-width 0;
|
|
315
|
-
border-color: transparent $color-white transparent transparent;
|
|
316
|
-
transform: rotate(-135deg);
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
&.react-datepicker__day--disabled {
|
|
321
|
-
color: $color-border;
|
|
322
|
-
|
|
323
|
-
&:hover {
|
|
324
|
-
background-color: $color-white;
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
&.react-datepicker__day--outside-month {
|
|
329
|
-
color: $color-border;
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
}
|