@turnit-ou/shared 0.0.0-stage → 2.18.1
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/@types/@mui/index.d.ts +125 -0
- package/@types/axios/index.d.ts +7 -0
- package/@types/openapi-client-axios/index.d.ts +5 -0
- package/@types/openapi-typescript/index.d.ts +71 -0
- package/@types/react-final-form-arrays/index.d.ts +75 -0
- package/@types/react-table/index.d.ts +292 -0
- package/components/Alert/AlertTemplate.d.ts +3 -0
- package/components/Alert/AlertTemplate.js +66 -0
- package/components/Alert/index.d.ts +4 -0
- package/components/Alert/index.js +17 -0
- package/components/ConfirmButton.d.ts +15 -0
- package/components/ConfirmButton.js +47 -0
- package/components/Drawer.d.ts +4 -0
- package/components/Drawer.js +24 -0
- package/components/DrawerForm/DrawerFormCardActions.d.ts +5 -0
- package/components/DrawerForm/DrawerFormCardActions.js +21 -0
- package/components/DrawerForm/DrawerFormCloseButton.d.ts +3 -0
- package/components/DrawerForm/DrawerFormCloseButton.js +5 -0
- package/components/DrawerForm/DrawerFormContext.d.ts +7 -0
- package/components/DrawerForm/DrawerFormContext.js +4 -0
- package/components/DrawerForm.d.ts +10 -0
- package/components/DrawerForm.js +89 -0
- package/components/Editor/Editor.d.ts +9 -0
- package/components/Editor/Editor.js +36 -0
- package/components/Editor/Toolbar.d.ts +7 -0
- package/components/Editor/Toolbar.js +31 -0
- package/components/Editor/buttons/FormatLinkButton.d.ts +5 -0
- package/components/Editor/buttons/FormatLinkButton.js +64 -0
- package/components/Editor/buttons/InsertImageButton.d.ts +5 -0
- package/components/Editor/buttons/InsertImageButton.js +59 -0
- package/components/Editor/buttons.d.ts +15 -0
- package/components/Editor/buttons.js +70 -0
- package/components/Editor/createButton.d.ts +28 -0
- package/components/Editor/createButton.js +68 -0
- package/components/Editor/editor.scss +45 -0
- package/components/Ellipsis.d.ts +9 -0
- package/components/Ellipsis.js +22 -0
- package/components/EllipsisText.d.ts +8 -0
- package/components/EllipsisText.js +25 -0
- package/components/EnvironmentBanner.d.ts +8 -0
- package/components/EnvironmentBanner.js +25 -0
- package/components/Header/AccessibilityModal.d.ts +5 -0
- package/components/Header/AccessibilityModal.js +28 -0
- package/components/Header/AllowedBusinessEntityModal.d.ts +9 -0
- package/components/Header/AllowedBusinessEntityModal.js +24 -0
- package/components/Header/LanguageSelect.d.ts +2 -0
- package/components/Header/LanguageSelect.js +80 -0
- package/components/Header/MenuItems.d.ts +9 -0
- package/components/Header/MenuItems.js +55 -0
- package/components/Header/ModuleIcon.d.ts +7 -0
- package/components/Header/ModuleIcon.js +119 -0
- package/components/Header/index.d.ts +44 -0
- package/components/Header/index.js +89 -0
- package/components/Layout/LayoutCol.d.ts +8 -0
- package/components/Layout/LayoutCol.js +26 -0
- package/components/Layout/index.d.ts +32 -0
- package/components/Layout/index.js +56 -0
- package/components/Loadable.d.ts +11 -0
- package/components/Loadable.js +3 -0
- package/components/SearchCard.d.ts +8 -0
- package/components/SearchCard.js +81 -0
- package/components/SearchForm.d.ts +14 -0
- package/components/SearchForm.js +51 -0
- package/components/SearchFormTable.d.ts +8 -0
- package/components/SearchFormTable.js +32 -0
- package/components/SearchResult.d.ts +13 -0
- package/components/SearchResult.js +67 -0
- package/components/Table/TableCaption.d.ts +6 -0
- package/components/Table/TableCaption.js +25 -0
- package/components/Table/TableCell.d.ts +17 -0
- package/components/Table/TableCell.js +45 -0
- package/components/Table/TableCellEditable.d.ts +28 -0
- package/components/Table/TableCellEditable.js +151 -0
- package/components/Table/TableCellEditableAction.d.ts +13 -0
- package/components/Table/TableCellEditableAction.js +70 -0
- package/components/Table/TableCellEditableField.d.ts +17 -0
- package/components/Table/TableCellEditableField.js +1 -0
- package/components/Table/TableCellEditableTimeDuration.d.ts +13 -0
- package/components/Table/TableCellEditableTimeDuration.js +12 -0
- package/components/Table/TableContext.d.ts +11 -0
- package/components/Table/TableContext.js +4 -0
- package/components/Table/TablePagination.d.ts +5 -0
- package/components/Table/TablePagination.js +84 -0
- package/components/Table.d.ts +53 -0
- package/components/Table.js +389 -0
- package/components/Version.d.ts +5 -0
- package/components/Version.js +23 -0
- package/dto/businessEntity.d.ts +15 -0
- package/dto/businessEntity.js +1 -0
- package/dto/classification.d.ts +9 -0
- package/dto/classification.js +1 -0
- package/dto/classifier.d.ts +13 -0
- package/dto/classifier.js +4 -0
- package/dto/common.d.ts +5 -0
- package/dto/common.js +1 -0
- package/dto/fare.d.ts +11 -0
- package/dto/fare.js +1 -0
- package/dto/line-network.d.ts +23 -0
- package/dto/line-network.js +1 -0
- package/dto/option.d.ts +7 -0
- package/dto/option.js +1 -0
- package/dto/pagination.d.ts +10 -0
- package/dto/pagination.js +1 -0
- package/fields/FormCheckbox.d.ts +11 -0
- package/fields/FormCheckbox.js +5 -0
- package/fields/FormCheckboxGroup.d.ts +6 -0
- package/fields/FormCheckboxGroup.js +20 -0
- package/fields/FormController.d.ts +7 -0
- package/fields/FormController.js +16 -0
- package/fields/FormDatepicker.d.ts +8 -0
- package/fields/FormDatepicker.js +7 -0
- package/fields/FormInput.d.ts +8 -0
- package/fields/FormInput.js +4 -0
- package/fields/FormRadioGroup.d.ts +10 -0
- package/fields/FormRadioGroup.js +6 -0
- package/fields/FormSelect.d.ts +11 -0
- package/fields/FormSelect.js +9 -0
- package/fields/FormSwitch.d.ts +11 -0
- package/fields/FormSwitch.js +5 -0
- package/fields/FormTimeZoneSelect.d.ts +4 -0
- package/fields/FormTimeZoneSelect.js +8 -0
- package/fields/index.d.ts +9 -0
- package/fields/index.js +9 -0
- package/form/ArrayField.d.ts +27 -0
- package/form/ArrayField.js +69 -0
- package/form/CheckboxField.d.ts +8 -0
- package/form/CheckboxField.js +14 -0
- package/form/CheckboxGroupField.d.ts +6 -0
- package/form/CheckboxGroupField.js +15 -0
- package/form/ConditionField.d.ts +7 -0
- package/form/ConditionField.js +20 -0
- package/form/ContentField.d.ts +7 -0
- package/form/ContentField.js +15 -0
- package/form/CounterField.d.ts +5 -0
- package/form/CounterField.js +7 -0
- package/form/DateField.d.ts +8 -0
- package/form/DateField.js +52 -0
- package/form/DatesArrayField.d.ts +8 -0
- package/form/DatesArrayField.js +79 -0
- package/form/DependSelectField.d.ts +8 -0
- package/form/DependSelectField.js +12 -0
- package/form/EditorField.d.ts +5 -0
- package/form/EditorField.js +7 -0
- package/form/FileField.d.ts +12 -0
- package/form/FileField.js +9 -0
- package/form/FormField.d.ts +15 -0
- package/form/FormField.js +22 -0
- package/form/ModalFieldArray.d.ts +13 -0
- package/form/ModalFieldArray.js +62 -0
- package/form/PeriodField.d.ts +24 -0
- package/form/PeriodField.js +111 -0
- package/form/RadioGroupField.d.ts +10 -0
- package/form/RadioGroupField.js +21 -0
- package/form/SearchField.d.ts +19 -0
- package/form/SearchField.js +51 -0
- package/form/SelectField.d.ts +8 -0
- package/form/SelectField.js +13 -0
- package/form/SelectOwnerField.d.ts +11 -0
- package/form/SelectOwnerField.js +11 -0
- package/form/StopsSelect/StopSelectWithSearch.d.ts +28 -0
- package/form/StopsSelect/StopSelectWithSearch.js +181 -0
- package/form/StopsSelect/StopsSelect.d.ts +19 -0
- package/form/StopsSelect/StopsSelect.js +65 -0
- package/form/StopsSelect/StopsSelectModal.d.ts +26 -0
- package/form/StopsSelect/StopsSelectModal.js +280 -0
- package/form/StopsSelect/StopsSelectSearchForm.d.ts +22 -0
- package/form/StopsSelect/StopsSelectSearchForm.js +43 -0
- package/form/SwitchField.d.ts +9 -0
- package/form/SwitchField.js +16 -0
- package/form/TextField.d.ts +6 -0
- package/form/TextField.js +21 -0
- package/form/TimeDurationField.d.ts +6 -0
- package/form/TimeDurationField.js +54 -0
- package/form/TimeZoneField.d.ts +6 -0
- package/form/TimeZoneField.js +8 -0
- package/form/ToggleButtonGroupField.d.ts +12 -0
- package/form/ToggleButtonGroupField.js +16 -0
- package/form/hooks/addLazyFieldMetaState.d.ts +3 -0
- package/form/hooks/addLazyFieldMetaState.js +55 -0
- package/form/hooks/getValue.d.ts +3 -0
- package/form/hooks/getValue.js +60 -0
- package/form/hooks/useConstant.d.ts +13 -0
- package/form/hooks/useConstant.js +20 -0
- package/form/hooks/useConstantCallback.d.ts +7 -0
- package/form/hooks/useConstantCallback.js +14 -0
- package/form/hooks/useField.d.ts +3 -0
- package/form/hooks/useField.js +175 -0
- package/form/hooks/useFieldArray.d.ts +6 -0
- package/form/hooks/useFieldArray.js +87 -0
- package/form/hooks/useLatest.d.ts +3 -0
- package/form/hooks/useLatest.js +8 -0
- package/form/hooks/useModalTableSelectedRows.d.ts +12 -0
- package/form/hooks/useModalTableSelectedRows.js +66 -0
- package/form/hooks/useWatch.d.ts +12 -0
- package/form/hooks/useWatch.js +16 -0
- package/form/index.d.ts +45 -0
- package/form/index.js +58 -0
- package/form/mutators/change.d.ts +2 -0
- package/form/mutators/change.js +9 -0
- package/form/validate.d.ts +14 -0
- package/form/validate.js +39 -0
- package/helpers/capitalize.d.ts +1 -0
- package/helpers/capitalize.js +1 -0
- package/helpers/filter.d.ts +4 -0
- package/helpers/filter.js +21 -0
- package/helpers/formSubmit.d.ts +5 -0
- package/helpers/formSubmit.js +21 -0
- package/helpers/index.d.ts +7 -0
- package/helpers/index.js +7 -0
- package/helpers/makeClassificationOptions.d.ts +30 -0
- package/helpers/makeClassificationOptions.js +29 -0
- package/helpers/map.d.ts +1 -0
- package/helpers/map.js +1 -0
- package/helpers/openapi.d.ts +10 -0
- package/helpers/openapi.js +10 -0
- package/helpers/renderRangeError.d.ts +1 -0
- package/helpers/renderRangeError.js +20 -0
- package/helpers/sentry/assertEnvVariable.d.ts +1 -0
- package/helpers/sentry/assertEnvVariable.js +7 -0
- package/helpers/sentry/sentryConfig.d.ts +2 -0
- package/helpers/sentry/sentryConfig.js +18 -0
- package/helpers/serializeErrors.d.ts +2 -0
- package/helpers/serializeErrors.js +13 -0
- package/hooks/index.d.ts +26 -0
- package/hooks/index.js +26 -0
- package/hooks/useAllowedBusinessEntities.d.ts +4 -0
- package/hooks/useAllowedBusinessEntities.js +9 -0
- package/hooks/useBusinessEntitiesByType.d.ts +8 -0
- package/hooks/useBusinessEntitiesByType.js +17 -0
- package/hooks/useChangePassword.d.ts +14 -0
- package/hooks/useChangePassword.js +48 -0
- package/hooks/useClassification.d.ts +9 -0
- package/hooks/useClassification.js +16 -0
- package/hooks/useDraggable.d.ts +5 -0
- package/hooks/useDraggable.js +11 -0
- package/hooks/useEllipsis.d.ts +10 -0
- package/hooks/useEllipsis.js +79 -0
- package/hooks/useFavicon.d.ts +1 -0
- package/hooks/useFavicon.js +13 -0
- package/hooks/useFormTable.d.ts +24 -0
- package/hooks/useFormTable.js +105 -0
- package/hooks/useFormTableControls.d.ts +31 -0
- package/hooks/useFormTableControls.js +34 -0
- package/hooks/useInertBackground.d.ts +20 -0
- package/hooks/useInertBackground.js +57 -0
- package/hooks/useIsMounted.d.ts +2 -0
- package/hooks/useIsMounted.js +11 -0
- package/hooks/useLanguage.d.ts +1 -0
- package/hooks/useLanguage.js +2 -0
- package/hooks/useLoaded.d.ts +1 -0
- package/hooks/useLoaded.js +19 -0
- package/hooks/useLocale.d.ts +1 -0
- package/hooks/useLocale.js +7 -0
- package/hooks/useModal.d.ts +307 -0
- package/hooks/useModal.js +12 -0
- package/hooks/useOptions.d.ts +13 -0
- package/hooks/useOptions.js +24 -0
- package/hooks/usePrevious.d.ts +1 -0
- package/hooks/usePrevious.js +12 -0
- package/hooks/usePrompt.d.ts +8 -0
- package/hooks/usePrompt.js +17 -0
- package/hooks/useRowActive.d.ts +6 -0
- package/hooks/useRowActive.js +104 -0
- package/hooks/useRowEditActions.d.ts +5 -0
- package/hooks/useRowEditActions.js +12 -0
- package/hooks/useRowExpandToggle.d.ts +5 -0
- package/hooks/useRowExpandToggle.js +13 -0
- package/hooks/useRowHidden.d.ts +4 -0
- package/hooks/useRowHidden.js +6 -0
- package/hooks/useRowSelectCheckbox.d.ts +27 -0
- package/hooks/useRowSelectCheckbox.js +48 -0
- package/hooks/useTable.d.ts +4 -0
- package/hooks/useTable.js +38 -0
- package/hooks/useTableRowHighlight.d.ts +4 -0
- package/hooks/useTableRowHighlight.js +16 -0
- package/hooks/useTranslation.d.ts +3 -0
- package/hooks/useTranslation.js +3 -0
- package/hooks/useWeekdayOptions.d.ts +40 -0
- package/hooks/useWeekdayOptions.js +66 -0
- package/i18n/index.d.ts +13 -0
- package/i18n/index.js +82 -0
- package/i18n/resources/de.json +115 -0
- package/i18n/resources/el.json +116 -0
- package/i18n/resources/en-AE.json +115 -0
- package/i18n/resources/en.json +118 -0
- package/i18n/resources/es.json +115 -0
- package/i18n/resources/fr.json +115 -0
- package/i18n/resources/index.d.ts +1295 -0
- package/i18n/resources/index.js +24 -0
- package/i18n/resources/it.json +115 -0
- package/i18n/resources/lt.json +115 -0
- package/i18n/resources/pt.json +115 -0
- package/i18n/resources/sk.json +115 -0
- package/i18n/resources/sv.json +116 -0
- package/i18n/trans/alert.d.ts +8 -0
- package/i18n/trans/alert.js +10 -0
- package/i18n/trans/button.d.ts +24 -0
- package/i18n/trans/button.js +26 -0
- package/i18n/trans/error.d.ts +10 -0
- package/i18n/trans/error.js +12 -0
- package/i18n/trans/field.d.ts +19 -0
- package/i18n/trans/field.js +21 -0
- package/i18n/trans/index.d.ts +13 -0
- package/i18n/trans/index.js +20 -0
- package/i18n/trans/label.d.ts +18 -0
- package/i18n/trans/label.js +20 -0
- package/i18n/trans/option.d.ts +6 -0
- package/i18n/trans/option.js +8 -0
- package/i18n/trans/qty.d.ts +5 -0
- package/i18n/trans/qty.js +7 -0
- package/i18n/trans/table.d.ts +8 -0
- package/i18n/trans/table.js +10 -0
- package/i18n/trans/title.d.ts +6 -0
- package/i18n/trans/title.js +8 -0
- package/i18n/trans/tooltip.d.ts +8 -0
- package/i18n/trans/tooltip.js +10 -0
- package/icons/1-class.svg +4 -0
- package/icons/2-class-calm.svg +5 -0
- package/icons/2-class-crossed.svg +5 -0
- package/icons/2-class.svg +4 -0
- package/icons/3-class.svg +4 -0
- package/icons/4-class.svg +4 -0
- package/icons/ac-crossed.svg +6 -0
- package/icons/ac.svg +9 -0
- package/icons/accessibility.svg +5 -0
- package/icons/add-journey-segment.svg +9 -0
- package/icons/add-person.svg +6 -0
- package/icons/add.svg +4 -0
- package/icons/air-condition.svg +11 -0
- package/icons/airport.svg +4 -0
- package/icons/alert-circle.svg +5 -0
- package/icons/arrow-down.svg +4 -0
- package/icons/arrow-left-circle.svg +5 -0
- package/icons/arrow-left.svg +4 -0
- package/icons/arrow-right.svg +4 -0
- package/icons/arrow-up.svg +4 -0
- package/icons/baby-care.svg +7 -0
- package/icons/bar.svg +6 -0
- package/icons/bed.svg +3 -0
- package/icons/bicycle-crossed.svg +6 -0
- package/icons/bicycle.svg +8 -0
- package/icons/bin.svg +6 -0
- package/icons/break.svg +5 -0
- package/icons/breakfast-1-class.svg +5 -0
- package/icons/breakfast-2-class.svg +5 -0
- package/icons/breakfast.svg +3 -0
- package/icons/bus.svg +7 -0
- package/icons/business-area.svg +6 -0
- package/icons/by-aisle.svg +8 -0
- package/icons/by-window.svg +6 -0
- package/icons/cafe-1-class.svg +5 -0
- package/icons/calendar.svg +6 -0
- package/icons/cancel.svg +5 -0
- package/icons/cargo.svg +4 -0
- package/icons/carriage-bot.svg +6 -0
- package/icons/carriage-mid.svg +4 -0
- package/icons/carriage-top.svg +12 -0
- package/icons/carriage.svg +3 -0
- package/icons/cart.svg +3 -0
- package/icons/cd.svg +4 -0
- package/icons/check-circle.svg +4 -0
- package/icons/check.svg +3 -0
- package/icons/checkbox-checked.svg +4 -0
- package/icons/checkbox-indeterminate.svg +5 -0
- package/icons/checkbox-mark.svg +3 -0
- package/icons/checkbox.svg +3 -0
- package/icons/chevron-down.svg +3 -0
- package/icons/chevron-left.svg +3 -0
- package/icons/chevron-right.svg +3 -0
- package/icons/chevron-up.svg +3 -0
- package/icons/circle.svg +3 -0
- package/icons/clock.svg +5 -0
- package/icons/clone.svg +4 -0
- package/icons/close-bold.svg +4 -0
- package/icons/close.svg +4 -0
- package/icons/coffee-machine-crossed.svg +6 -0
- package/icons/coffee-machine.svg +7 -0
- package/icons/coin.svg +4 -0
- package/icons/comment.svg +3 -0
- package/icons/compartment.svg +6 -0
- package/icons/couchette.svg +6 -0
- package/icons/cube.svg +1 -0
- package/icons/currency.svg +4 -0
- package/icons/deactivate.svg +4 -0
- package/icons/delete.svg +4 -0
- package/icons/dining.svg +7 -0
- package/icons/direction-bottom.svg +4 -0
- package/icons/direction-forward-v.svg +4 -0
- package/icons/direction-forward.svg +4 -0
- package/icons/direction-left.svg +4 -0
- package/icons/direction-reverse-v.svg +4 -0
- package/icons/direction-reverse.svg +4 -0
- package/icons/direction-right.svg +4 -0
- package/icons/direction-top.svg +4 -0
- package/icons/dots.svg +5 -0
- package/icons/download.svg +5 -0
- package/icons/drag-n-drop.svg +3 -0
- package/icons/draggable.svg +5 -0
- package/icons/duplicate.svg +4 -0
- package/icons/dvd.svg +5 -0
- package/icons/edit.svg +3 -0
- package/icons/empty-search.svg +9 -0
- package/icons/empty-state.svg +13 -0
- package/icons/empty.svg +9 -0
- package/icons/empty_search_purple.svg +6 -0
- package/icons/error-circle.svg +4 -0
- package/icons/eu-law.svg +5 -0
- package/icons/external_link.svg +5 -0
- package/icons/family-area.svg +7 -0
- package/icons/file-settings.svg +3 -0
- package/icons/file.svg +11 -0
- package/icons/filter.svg +3 -0
- package/icons/flip.svg +11 -0
- package/icons/food-1-class.svg +5 -0
- package/icons/food-plus.svg +5 -0
- package/icons/food.svg +7 -0
- package/icons/grid-cell.svg +1 -0
- package/icons/grid.svg +6 -0
- package/icons/headphones.svg +5 -0
- package/icons/helping-hand-crossed.svg +12 -0
- package/icons/helping-hand.svg +3 -0
- package/icons/hide.svg +4 -0
- package/icons/home.svg +4 -0
- package/icons/index.json +228 -0
- package/icons/info-circle.svg +5 -0
- package/icons/insurance.svg +6 -0
- package/icons/journey-changeover.svg +5 -0
- package/icons/journey-light.svg +5 -0
- package/icons/journey.svg +5 -0
- package/icons/key.svg +4 -0
- package/icons/language.svg +3 -0
- package/icons/link.svg +4 -0
- package/icons/list.svg +8 -0
- package/icons/locker.svg +8 -0
- package/icons/logout.svg +5 -0
- package/icons/luggage.svg +9 -0
- package/icons/mail.svg +4 -0
- package/icons/meeting-lounge.svg +10 -0
- package/icons/metro.svg +3 -0
- package/icons/middle-seat.svg +7 -0
- package/icons/minus.svg +3 -0
- package/icons/minus24.svg +3 -0
- package/icons/mobile-crossed.svg +7 -0
- package/icons/mobile.svg +6 -0
- package/icons/movingo.svg +3 -0
- package/icons/multimedia.svg +9 -0
- package/icons/near-bicycle.svg +5 -0
- package/icons/near-pet.svg +5 -0
- package/icons/near-wheelchair.svg +8 -0
- package/icons/night-train.svg +4 -0
- package/icons/nonstop.svg +3 -0
- package/icons/occupancy-seat-hover.svg +11 -0
- package/icons/occupancy-seat-selected.svg +11 -0
- package/icons/occupancy-seat.svg +4 -0
- package/icons/oneway.svg +4 -0
- package/icons/pet-crossed.svg +5 -0
- package/icons/pet.svg +7 -0
- package/icons/pic.svg +5 -0
- package/icons/playground.svg +7 -0
- package/icons/plus.svg +4 -0
- package/icons/plus24.svg +4 -0
- package/icons/popup-controls.svg +15 -0
- package/icons/power-socket.svg +6 -0
- package/icons/preview.svg +3 -0
- package/icons/print.svg +5 -0
- package/icons/priority-seat-elderly.svg +6 -0
- package/icons/priority-seat-pregnant.svg +5 -0
- package/icons/profile.svg +4 -0
- package/icons/question.svg +5 -0
- package/icons/radio-filled.svg +4 -0
- package/icons/radio.svg +3 -0
- package/icons/reclining-seat.svg +9 -0
- package/icons/refresh.svg +6 -0
- package/icons/reload.svg +4 -0
- package/icons/remove-circle.svg +3 -0
- package/icons/replace.svg +6 -0
- package/icons/reservation-crossed.svg +4 -0
- package/icons/reservation-mandatory.svg +4 -0
- package/icons/reservation-optional.svg +5 -0
- package/icons/resplus-horizontal.svg +1 -0
- package/icons/resplus.svg +3 -0
- package/icons/restaurant.svg +3 -0
- package/icons/roundtrip.svg +6 -0
- package/icons/save.svg +5 -0
- package/icons/search.svg +4 -0
- package/icons/seat-compartment.svg +8 -0
- package/icons/seat-selected.svg +3 -0
- package/icons/seat.svg +5 -0
- package/icons/sent.svg +34 -0
- package/icons/service-dog.svg +4 -0
- package/icons/settings.svg +4 -0
- package/icons/shift.svg +3 -0
- package/icons/ship.svg +3 -0
- package/icons/show.svg +4 -0
- package/icons/shower.svg +9 -0
- package/icons/silence.svg +6 -0
- package/icons/sink.svg +5 -0
- package/icons/skis.svg +8 -0
- package/icons/sleeper-car-bedding.svg +6 -0
- package/icons/sleeper-car.svg +5 -0
- package/icons/smoking-crossed.svg +6 -0
- package/icons/sort.svg +6 -0
- package/icons/stairs-down.svg +5 -0
- package/icons/stairs-up.svg +5 -0
- package/icons/star-filled.svg +3 -0
- package/icons/star.svg +3 -0
- package/icons/stroller.svg +6 -0
- package/icons/sw-law.svg +5 -0
- package/icons/switch.svg +3 -0
- package/icons/table.svg +6 -0
- package/icons/tag.svg +4 -0
- package/icons/taxi.svg +3 -0
- package/icons/tick.svg +3 -0
- package/icons/ticket-cancel.svg +8 -0
- package/icons/ticket-change.svg +3 -0
- package/icons/ticket-manage.svg +7 -0
- package/icons/ticket-refund.svg +8 -0
- package/icons/ticket-travel-pass.svg +4 -0
- package/icons/ticket.svg +6 -0
- package/icons/tickets.svg +4 -0
- package/icons/train.svg +3 -0
- package/icons/transfer.svg +3 -0
- package/icons/trash.svg +6 -0
- package/icons/triange.svg +17 -0
- package/icons/tv.svg +5 -0
- package/icons/unaccompanied-minor.svg +8 -0
- package/icons/upload.svg +5 -0
- package/icons/usb.svg +9 -0
- package/icons/visibility-off.svg +4 -0
- package/icons/visibility-on.svg +4 -0
- package/icons/voucher.svg +5 -0
- package/icons/wardrobe.svg +4 -0
- package/icons/warning.svg +3 -0
- package/icons/water.svg +5 -0
- package/icons/wc.svg +4 -0
- package/icons/wheelchair-lift-reservation.svg +8 -0
- package/icons/wheelchair-lift.svg +6 -0
- package/icons/wheelchair-ramp.svg +8 -0
- package/icons/wheelchair-space-reservation.svg +13 -0
- package/icons/wheelchair-space.svg +4 -0
- package/icons/wheelchair.svg +5 -0
- package/icons/wifi-crossed.svg +9 -0
- package/icons/wifi.svg +6 -0
- package/index.css +327 -0
- package/index.d.ts +31 -0
- package/index.js +32 -0
- package/mui/Accordion.d.ts +17 -0
- package/mui/Accordion.js +46 -0
- package/mui/Button/index.d.ts +16 -0
- package/mui/Button/index.js +35 -0
- package/mui/Card/CardHeader.d.ts +7 -0
- package/mui/Card/CardHeader.js +43 -0
- package/mui/Card/index.d.ts +4 -0
- package/mui/Card/index.js +4 -0
- package/mui/Checkbox/CheckboxGroup.d.ts +26 -0
- package/mui/Checkbox/CheckboxGroup.js +81 -0
- package/mui/Checkbox/index.d.ts +18 -0
- package/mui/Checkbox/index.js +40 -0
- package/mui/Chip/ChipSecondarySmall.d.ts +10 -0
- package/mui/Chip/ChipSecondarySmall.js +40 -0
- package/mui/CircularProgress/index.d.ts +3 -0
- package/mui/CircularProgress/index.js +36 -0
- package/mui/Collapsible/index.d.ts +9 -0
- package/mui/Collapsible/index.js +66 -0
- package/mui/Counter/index.d.ts +9 -0
- package/mui/Counter/index.js +37 -0
- package/mui/DatePicker/DatePicker.scss +276 -0
- package/mui/DatePicker/DatePickerContext.d.ts +8 -0
- package/mui/DatePicker/DatePickerContext.js +2 -0
- package/mui/DatePicker/DatePickerHeader.d.ts +3 -0
- package/mui/DatePicker/DatePickerHeader.js +63 -0
- package/mui/DatePicker/DatePickerHeaderSelect.d.ts +10 -0
- package/mui/DatePicker/DatePickerHeaderSelect.js +72 -0
- package/mui/DatePicker/DatePickerInput.d.ts +6 -0
- package/mui/DatePicker/DatePickerInput.js +28 -0
- package/mui/DatePicker/TimeInput.d.ts +10 -0
- package/mui/DatePicker/TimeInput.js +63 -0
- package/mui/DatePicker/index.d.ts +52 -0
- package/mui/DatePicker/index.js +187 -0
- package/mui/Dropdown/index.d.ts +22 -0
- package/mui/Dropdown/index.js +90 -0
- package/mui/EditableLabel/index.d.ts +7 -0
- package/mui/EditableLabel/index.js +81 -0
- package/mui/ExternalLink/index.d.ts +8 -0
- package/mui/ExternalLink/index.js +11 -0
- package/mui/FileInput/index.d.ts +27 -0
- package/mui/FileInput/index.js +66 -0
- package/mui/FormControl/index.d.ts +23 -0
- package/mui/FormControl/index.js +36 -0
- package/mui/FormField/index.d.ts +8 -0
- package/mui/FormField/index.js +12 -0
- package/mui/Icon/index.d.ts +21 -0
- package/mui/Icon/index.js +47 -0
- package/mui/Input/index.d.ts +28 -0
- package/mui/Input/index.js +102 -0
- package/mui/Loader/index.d.ts +9 -0
- package/mui/Loader/index.js +47 -0
- package/mui/Modal/index.d.ts +16 -0
- package/mui/Modal/index.js +64 -0
- package/mui/Pagination/index.d.ts +6 -0
- package/mui/Pagination/index.js +23 -0
- package/mui/Paper/index.d.ts +4 -0
- package/mui/Paper/index.js +3 -0
- package/mui/Popper/index.d.ts +13 -0
- package/mui/Popper/index.js +139 -0
- package/mui/RadioGroup/index.d.ts +26 -0
- package/mui/RadioGroup/index.js +41 -0
- package/mui/ReadOnlyField/index.d.ts +8 -0
- package/mui/ReadOnlyField/index.js +35 -0
- package/mui/Select/index.d.ts +47 -0
- package/mui/Select/index.js +164 -0
- package/mui/Stepper/StepIconComponent.d.ts +6 -0
- package/mui/Stepper/StepIconComponent.js +93 -0
- package/mui/Stepper/index.d.ts +6 -0
- package/mui/Stepper/index.js +13 -0
- package/mui/Switch/index.d.ts +3 -0
- package/mui/Switch/index.js +2 -0
- package/mui/Tab/index.d.ts +60 -0
- package/mui/Tab/index.js +12 -0
- package/mui/Tabs/index.d.ts +22 -0
- package/mui/Tabs/index.js +70 -0
- package/mui/TimeDurationLabel/index.d.ts +7 -0
- package/mui/TimeDurationLabel/index.js +13 -0
- package/mui/ToggleButton/index.d.ts +4 -0
- package/mui/ToggleButton/index.js +57 -0
- package/mui/ToggleButtonGroup/index.d.ts +25 -0
- package/mui/ToggleButtonGroup/index.js +61 -0
- package/mui/ToggleList/index.d.ts +11 -0
- package/mui/ToggleList/index.js +54 -0
- package/mui/Tooltip/index.d.ts +11 -0
- package/mui/Tooltip/index.js +36 -0
- package/mui/index.d.ts +36 -0
- package/mui/index.js +36 -0
- package/mui/provider.d.ts +9 -0
- package/mui/provider.js +22 -0
- package/mui/theme.d.ts +17 -0
- package/mui/theme.js +1228 -0
- package/package.json +197 -4
- package/services/api.d.ts +28 -0
- package/services/api.js +141 -0
- package/services/index.d.ts +2 -0
- package/services/index.js +2 -0
- package/services/openapi.d.ts +6 -0
- package/services/openapi.js +112 -0
- package/store/index.d.ts +6 -0
- package/store/index.js +1 -0
- package/store/useClassificationOptions.d.ts +3 -0
- package/store/useClassificationOptions.js +2 -0
- package/types.d.ts +2423 -0
- package/utils/array.d.ts +2 -0
- package/utils/array.js +21 -0
- package/utils/auth.d.ts +2 -0
- package/utils/auth.js +31 -0
- package/utils/color.d.ts +29 -0
- package/utils/color.js +132 -0
- package/utils/date.d.ts +40 -0
- package/utils/date.js +51 -0
- package/utils/filter.d.ts +3 -0
- package/utils/filter.js +11 -0
- package/utils/getScrollbarSize.d.ts +1 -0
- package/utils/getScrollbarSize.js +8 -0
- package/utils/index.d.ts +12 -0
- package/utils/index.js +12 -0
- package/utils/input.d.ts +2 -0
- package/utils/input.js +2 -0
- package/utils/knowledge-owl-script.d.ts +64 -0
- package/utils/knowledge-owl-script.js +226 -0
- package/utils/locales.d.ts +3 -0
- package/utils/locales.js +24 -0
- package/utils/noop.d.ts +1 -0
- package/utils/noop.js +1 -0
- package/utils/percentage.d.ts +6 -0
- package/utils/percentage.js +43 -0
- package/utils/redirect.d.ts +1 -0
- package/utils/redirect.js +6 -0
- package/utils/sort.d.ts +21 -0
- package/utils/sort.js +32 -0
- package/utils/storage.d.ts +2 -0
- package/utils/storage.js +2 -0
- package/utils/timeDuration.d.ts +26 -0
- package/utils/timeDuration.js +78 -0
- package/utils/wallClock.d.ts +17 -0
- package/utils/wallClock.js +178 -0
- package/wrappers/ApiInitializer.d.ts +9 -0
- package/wrappers/ApiInitializer.js +21 -0
- package/wrappers/AuthWrapper.d.ts +6 -0
- package/wrappers/AuthWrapper.js +38 -0
- package/wrappers/AxiosErrorsInterceptorWrapper.d.ts +2 -0
- package/wrappers/AxiosErrorsInterceptorWrapper.js +30 -0
- package/README.md +0 -3
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
3
|
+
import { FormControl } from "../FormControl";
|
|
4
|
+
import FormLabel from '@mui/material/FormLabel';
|
|
5
|
+
import FormGroup from '@mui/material/FormGroup';
|
|
6
|
+
import FormControlLabel from '@mui/material/FormControlLabel';
|
|
7
|
+
import Checkbox from '@mui/material/Checkbox';
|
|
8
|
+
import get from 'lodash/get';
|
|
9
|
+
import set from 'lodash/set';
|
|
10
|
+
import unset from 'lodash/unset';
|
|
11
|
+
import cloneDeep from 'lodash/cloneDeep';
|
|
12
|
+
import { Switch } from "../Switch";
|
|
13
|
+
const CheckboxGroupLabel = (props) => (_jsx(FormLabel, { ...props, component: "legend" }));
|
|
14
|
+
const concat = (...args) => args.filter(Boolean).join('.');
|
|
15
|
+
const shiftPath = (name) => {
|
|
16
|
+
let names = name.split(/[,[\].]+?/).filter(Boolean);
|
|
17
|
+
if (names.length > 1)
|
|
18
|
+
names = names.slice(0, -1);
|
|
19
|
+
return names.join('.');
|
|
20
|
+
};
|
|
21
|
+
export function CheckboxGroup(props) {
|
|
22
|
+
const { name, value: defaultValue, label, options, onChange, onBlur } = props;
|
|
23
|
+
const { className, required, error, helper, inline, margin, useSwitchCheckbox, labelPlacement = 'end', disabled, readOnly, } = props;
|
|
24
|
+
const [state, setState] = useState();
|
|
25
|
+
useEffect(() => {
|
|
26
|
+
let value = {};
|
|
27
|
+
if (name) {
|
|
28
|
+
set(value, name, defaultValue);
|
|
29
|
+
}
|
|
30
|
+
else {
|
|
31
|
+
value = defaultValue;
|
|
32
|
+
}
|
|
33
|
+
setState(value);
|
|
34
|
+
}, [defaultValue, name]);
|
|
35
|
+
const handleChange = useCallback((event) => {
|
|
36
|
+
const { checked } = event.target;
|
|
37
|
+
const targetValue = event.target.getAttribute('value');
|
|
38
|
+
const cloned = cloneDeep(state);
|
|
39
|
+
const shifted = shiftPath(event.target.name);
|
|
40
|
+
if (!Array.isArray(get(cloned, shifted))) {
|
|
41
|
+
if (checked) {
|
|
42
|
+
set(cloned, event.target.name, targetValue ? targetValue : checked);
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
unset(cloned, event.target.name);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
const topValue = get(cloned, shifted);
|
|
49
|
+
if (Array.isArray(topValue)) {
|
|
50
|
+
const nextValue = topValue.filter((prev) => prev !== targetValue);
|
|
51
|
+
if (checked)
|
|
52
|
+
nextValue.push(targetValue);
|
|
53
|
+
set(cloned, shifted, nextValue);
|
|
54
|
+
}
|
|
55
|
+
setState(cloned);
|
|
56
|
+
onChange?.(event, get(cloned, name));
|
|
57
|
+
onBlur?.();
|
|
58
|
+
}, [name, onBlur, onChange, state]);
|
|
59
|
+
const value = useMemo(() => get(state, name), [state, name]);
|
|
60
|
+
const isChecked = useCallback((option, name) => {
|
|
61
|
+
if (Array.isArray(value) && option.value)
|
|
62
|
+
return value.includes(option.value);
|
|
63
|
+
return Boolean(get(state, name));
|
|
64
|
+
}, [state, value]);
|
|
65
|
+
const handleFormControlClick = useCallback((event) => readOnly ? event.preventDefault() : undefined, [readOnly]);
|
|
66
|
+
const Component = useSwitchCheckbox ? Switch : Checkbox;
|
|
67
|
+
return (_jsx(FormControl, { className: className, label: label, labelComponent: CheckboxGroupLabel, required: required, error: error, helper: helper, margin: margin, onClick: handleFormControlClick, children: _jsx(FormGroup, { ...(inline && {
|
|
68
|
+
row: true,
|
|
69
|
+
sx: { gap: '8px 16px' },
|
|
70
|
+
}), children: options.map((option, index) => {
|
|
71
|
+
const inputName = concat(name, option.name ?? `${index}`);
|
|
72
|
+
return (_jsx(FormControlLabel, { labelPlacement: labelPlacement, control: _jsx(Component, { name: inputName, value: option.value, onChange: handleChange, onFocus: props.onFocus, checked: isChecked(option, inputName) }), label: option.label, sx: {
|
|
73
|
+
...(labelPlacement === 'start' && {
|
|
74
|
+
justifyContent: 'space-between',
|
|
75
|
+
}),
|
|
76
|
+
'.MuiFormControlLabel-label': {
|
|
77
|
+
...(labelPlacement === 'end' && { ml: 1 }),
|
|
78
|
+
},
|
|
79
|
+
}, disabled: disabled || option.disabled }, concat(name, option.name ?? option.value ?? `${index}`)));
|
|
80
|
+
}) }) }));
|
|
81
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ChangeEvent, ReactNode } from 'react';
|
|
2
|
+
import { CheckboxProps as MuiCheckboxProps } from '@mui/material/Checkbox';
|
|
3
|
+
import { FormControlLabelProps } from '@mui/material/FormControlLabel';
|
|
4
|
+
import { FormControlProps } from "../FormControl";
|
|
5
|
+
export interface CheckboxProps extends MuiCheckboxProps, Pick<FormControlProps, 'margin' | 'helper'> {
|
|
6
|
+
name?: string;
|
|
7
|
+
label?: ReactNode;
|
|
8
|
+
checked?: boolean;
|
|
9
|
+
indeterminate?: boolean;
|
|
10
|
+
onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
11
|
+
size?: 'small' | 'medium';
|
|
12
|
+
inline?: boolean;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
error?: ReactNode;
|
|
15
|
+
labelPosition?: FormControlLabelProps['labelPlacement'];
|
|
16
|
+
['data-testid']?: string;
|
|
17
|
+
}
|
|
18
|
+
export declare const Checkbox: import("react").ForwardRefExoticComponent<Pick<CheckboxProps, "value" | "action" | "autoFocus" | "checked" | "disabled" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "label" | "name" | "placeholder" | "readOnly" | "required" | "size" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "inline" | "error" | "margin" | "icon" | "classes" | "sx" | "indeterminate" | "data-testid" | "labelPosition" | "helper" | "inputProps" | "inputRef" | "checkedIcon" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "indeterminateIcon"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useEffect, useCallback, forwardRef, } from 'react';
|
|
3
|
+
import MuiCheckbox from '@mui/material/Checkbox';
|
|
4
|
+
import FormControlLabel from '@mui/material/FormControlLabel';
|
|
5
|
+
import Typography from '@mui/material/Typography';
|
|
6
|
+
import { FormControl } from "../FormControl";
|
|
7
|
+
import { generateUtilityClass } from '@mui/material';
|
|
8
|
+
import classNames from 'classnames';
|
|
9
|
+
export const Checkbox = forwardRef((props, ref) => {
|
|
10
|
+
const { name, label, labelPosition, checked: initialChecked = false, indeterminate = false, onChange, size, inline, disabled, error, helper, margin, sx = {}, ['aria-label']: ariaLabel, } = props;
|
|
11
|
+
const [checked, setChecked] = useState(initialChecked);
|
|
12
|
+
useEffect(() => {
|
|
13
|
+
setChecked(initialChecked);
|
|
14
|
+
}, [initialChecked]);
|
|
15
|
+
const handleChange = useCallback((event) => {
|
|
16
|
+
onChange?.(event);
|
|
17
|
+
setChecked(event.target.checked);
|
|
18
|
+
}, [onChange]);
|
|
19
|
+
const onClickHandler = useCallback((e) => e.stopPropagation(), []);
|
|
20
|
+
return (_jsx(FormControl, { error: error, margin: margin, ...(inline && { fullWidth: false }), helper: helper, sx: sx, children: _jsx(FormControlLabel, { ...(label && {
|
|
21
|
+
label: (_jsx(Typography, { color: "secondary.light", ...(labelPosition === 'top' && { variant: 'body2', mb: 1 }), ...(!labelPosition && {
|
|
22
|
+
sx: { ml: 1 },
|
|
23
|
+
}), ...(error && {
|
|
24
|
+
color: 'error',
|
|
25
|
+
}), children: label })),
|
|
26
|
+
labelPlacement: labelPosition,
|
|
27
|
+
...(labelPosition === 'top' && {
|
|
28
|
+
sx: { alignItems: 'flex-start' },
|
|
29
|
+
}),
|
|
30
|
+
}), control: _jsx(MuiCheckbox, { ref: ref, className: classNames({
|
|
31
|
+
[generateUtilityClass('MuiCheckbox', 'checked')]: checked,
|
|
32
|
+
}), onClick: onClickHandler, checked: checked, onChange: handleChange, indeterminate: indeterminate, inputProps: {
|
|
33
|
+
id: name,
|
|
34
|
+
name,
|
|
35
|
+
// Forward aria-label onto the underlying <input> so the
|
|
36
|
+
// checkbox has an accessible name (MUI keeps top-level
|
|
37
|
+
// aria-* on the wrapper, not the input).
|
|
38
|
+
...(ariaLabel ? { 'aria-label': ariaLabel } : {}),
|
|
39
|
+
}, color: error ? 'error' : 'secondary', size: size, disabled: disabled, "data-testid": props['data-testid'] }) }) }));
|
|
40
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import { ChipProps } from '@mui/material';
|
|
3
|
+
export interface ChipSecondarySmallProps extends ChipProps {
|
|
4
|
+
invalid?: boolean;
|
|
5
|
+
/** Accessible name for the delete control, e.g. "Remove Tallinn". */
|
|
6
|
+
deleteAriaLabel?: string;
|
|
7
|
+
/** Content-independent test hook for the delete control. */
|
|
8
|
+
deleteTestId?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const ChipSecondarySmall: FC<ChipSecondarySmallProps>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { makeStyles } from '@mui/styles';
|
|
3
|
+
import { Chip } from '@mui/material';
|
|
4
|
+
import classNames from 'classnames';
|
|
5
|
+
import { Icon } from "../Icon";
|
|
6
|
+
const useStyles = makeStyles((theme) => ({
|
|
7
|
+
root: {
|
|
8
|
+
'&&.MuiChip-root': {
|
|
9
|
+
height: 20,
|
|
10
|
+
backgroundColor: theme.palette.secondary.main,
|
|
11
|
+
color: theme.palette.common.white,
|
|
12
|
+
fontSize: '10px',
|
|
13
|
+
borderRadius: '3px',
|
|
14
|
+
'& .MuiChip-label': {
|
|
15
|
+
paddingLeft: theme.spacing(),
|
|
16
|
+
paddingRight: theme.spacing(),
|
|
17
|
+
lineHeight: 'normal',
|
|
18
|
+
},
|
|
19
|
+
'& .MuiChip-deleteIcon': {
|
|
20
|
+
marginLeft: theme.spacing(-0.5),
|
|
21
|
+
marginRight: theme.spacing(),
|
|
22
|
+
color: '#fff',
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
invalid: {
|
|
27
|
+
'&&.MuiChip-root': {
|
|
28
|
+
color: theme.palette.common.white,
|
|
29
|
+
backgroundColor: theme.palette.error.main,
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
}), {
|
|
33
|
+
name: 'Chip',
|
|
34
|
+
});
|
|
35
|
+
export const ChipSecondarySmall = ({ className, invalid, deleteAriaLabel, deleteTestId, ...props }) => {
|
|
36
|
+
const classes = useStyles();
|
|
37
|
+
return (_jsx(Chip, { className: classNames(classes.root, {
|
|
38
|
+
[classes.invalid]: invalid,
|
|
39
|
+
}, className), deleteIcon: _jsx(Icon, { name: "close-bold", width: 9, height: 9, ...(deleteTestId && { 'data-testid': deleteTestId }), ...(deleteAriaLabel && { 'aria-label': deleteAriaLabel, role: 'button' }) }), size: "small", ...props }));
|
|
40
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo } from 'react';
|
|
3
|
+
import MuiCircularProgress from '@mui/material/CircularProgress';
|
|
4
|
+
import Typography from '@mui/material/Typography';
|
|
5
|
+
import Box from '@mui/material/Box';
|
|
6
|
+
import { makeStyles } from '@mui/styles';
|
|
7
|
+
import classNames from 'classnames';
|
|
8
|
+
const SIZE = 64;
|
|
9
|
+
const useStyles = makeStyles((theme) => ({
|
|
10
|
+
card: {
|
|
11
|
+
position: 'relative',
|
|
12
|
+
display: 'inline-flex',
|
|
13
|
+
width: `${SIZE}px`,
|
|
14
|
+
height: `${SIZE}px`,
|
|
15
|
+
},
|
|
16
|
+
progress: {
|
|
17
|
+
position: 'absolute',
|
|
18
|
+
animationDuration: '150ms',
|
|
19
|
+
color: theme.palette.primary.main,
|
|
20
|
+
},
|
|
21
|
+
progressBackground: {
|
|
22
|
+
color: theme.palette.primary.dark,
|
|
23
|
+
},
|
|
24
|
+
}), {
|
|
25
|
+
name: 'CircularProgressProperties',
|
|
26
|
+
});
|
|
27
|
+
export const CircularProgress = ({ value = 0, ...props }) => {
|
|
28
|
+
const classes = useStyles();
|
|
29
|
+
const progressProps = useMemo(() => ({
|
|
30
|
+
...props,
|
|
31
|
+
variant: 'determinate',
|
|
32
|
+
size: SIZE,
|
|
33
|
+
thickness: 2,
|
|
34
|
+
}), [props]);
|
|
35
|
+
return (_jsxs(Box, { className: classes.card, children: [_jsx(MuiCircularProgress, { className: classNames([classes.progress, classes.progressBackground]), ...progressProps, value: 100 }), _jsx(MuiCircularProgress, { className: classNames(classes.progress), ...progressProps, value: value }), _jsx(Typography, { color: "primary.main", fontWeight: 600, sx: { margin: 'auto' }, children: `${Math.round(value)}%` })] }));
|
|
36
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
export interface CollapsibleProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
initialOpen?: boolean;
|
|
5
|
+
open?: boolean;
|
|
6
|
+
title?: ReactNode;
|
|
7
|
+
arrowPosition?: 'left' | 'right' | 'none';
|
|
8
|
+
}
|
|
9
|
+
export declare const Collapsible: FC<CollapsibleProps>;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useEffect, useCallback, } from 'react';
|
|
3
|
+
import { Icon } from "../Icon";
|
|
4
|
+
import { Typography } from '@mui/material';
|
|
5
|
+
import MuiAccordion from '@mui/material/Accordion';
|
|
6
|
+
import MuiAccordionSummary from '@mui/material/AccordionSummary';
|
|
7
|
+
import MuiAccordionDetails from '@mui/material/AccordionDetails';
|
|
8
|
+
import { styled } from '@mui/material/styles';
|
|
9
|
+
const Accordion = styled(MuiAccordion)(({}) => ({
|
|
10
|
+
boxShadow: 'none',
|
|
11
|
+
background: 'transparent',
|
|
12
|
+
marginBottom: 8,
|
|
13
|
+
'&.MuiAccordion-root': {
|
|
14
|
+
position: 'static',
|
|
15
|
+
},
|
|
16
|
+
'&:before': {
|
|
17
|
+
display: 'none',
|
|
18
|
+
},
|
|
19
|
+
'&.Mui-expanded': {
|
|
20
|
+
marginTop: 0,
|
|
21
|
+
marginBottom: 24,
|
|
22
|
+
},
|
|
23
|
+
}));
|
|
24
|
+
const AccordionSummary = styled(MuiAccordionSummary)(({ theme }) => ({
|
|
25
|
+
padding: '6px 8px',
|
|
26
|
+
background: theme.palette.common.white,
|
|
27
|
+
'&.Mui-expanded, &:not(.Mui-expanded)': {
|
|
28
|
+
minHeight: 32,
|
|
29
|
+
'& .MuiAccordionSummary-content': {
|
|
30
|
+
margin: 0,
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
'&.Mui-expanded': {
|
|
34
|
+
'&, & .MuiAccordionSummary-expandIconWrapper': {
|
|
35
|
+
color: theme.palette.primary.main,
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
}));
|
|
39
|
+
const AccordionDetails = styled(MuiAccordionDetails)(() => ({
|
|
40
|
+
padding: 0,
|
|
41
|
+
paddingTop: 24,
|
|
42
|
+
}));
|
|
43
|
+
export const Collapsible = ({ className, initialOpen = false, open, title, children, arrowPosition = 'left', }) => {
|
|
44
|
+
const [isOpen, toggleState] = useState(initialOpen);
|
|
45
|
+
useEffect(() => {
|
|
46
|
+
open && toggleState(open);
|
|
47
|
+
}, [open]);
|
|
48
|
+
const handleToggle = useCallback((e, isExpanded) => {
|
|
49
|
+
toggleState(isExpanded);
|
|
50
|
+
}, []);
|
|
51
|
+
return (_jsxs(Accordion, { className: className, expanded: isOpen, onChange: handleToggle, square: true, children: [_jsx(AccordionSummary, { expandIcon: _jsx(Icon, { name: "chevron-up", width: 15, height: 15 }), sx: {
|
|
52
|
+
...(['left', 'right'].includes(arrowPosition)
|
|
53
|
+
? {
|
|
54
|
+
flexDirection: arrowPosition === 'left' ? 'row-reverse' : 'row',
|
|
55
|
+
'& .MuiAccordionSummary-content': {
|
|
56
|
+
paddingLeft: arrowPosition === 'left' ? '12px' : 0,
|
|
57
|
+
paddingRight: arrowPosition === 'left' ? 0 : '12px',
|
|
58
|
+
},
|
|
59
|
+
}
|
|
60
|
+
: {
|
|
61
|
+
'& .MuiAccordionSummary-expandIconWrapper': {
|
|
62
|
+
display: 'none',
|
|
63
|
+
},
|
|
64
|
+
}),
|
|
65
|
+
}, children: _jsx(Typography, { children: title }) }), _jsx(AccordionDetails, { children: children })] }));
|
|
66
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { FormControlProps } from "../FormControl";
|
|
3
|
+
export interface CounterProps extends Omit<FormControlProps, 'onChange'> {
|
|
4
|
+
value: number;
|
|
5
|
+
onChange: (val: number) => void;
|
|
6
|
+
max?: number;
|
|
7
|
+
min?: number;
|
|
8
|
+
}
|
|
9
|
+
export declare const Counter: FC<CounterProps>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback } from 'react';
|
|
3
|
+
import { FormControl } from "../FormControl";
|
|
4
|
+
import { Button, Typography } from '@mui/material';
|
|
5
|
+
import Stack from '@mui/material/Stack';
|
|
6
|
+
import { Icon } from "../Icon";
|
|
7
|
+
import { makeStyles } from '@mui/styles';
|
|
8
|
+
const useStyles = makeStyles(() => ({
|
|
9
|
+
button: {
|
|
10
|
+
minWidth: 0,
|
|
11
|
+
padding: '0.25rem',
|
|
12
|
+
},
|
|
13
|
+
}), {
|
|
14
|
+
name: 'Counter',
|
|
15
|
+
});
|
|
16
|
+
export const Counter = ({ value = 0, onChange, label, error, helper, required, max, min = 0, }) => {
|
|
17
|
+
const classes = useStyles();
|
|
18
|
+
const handleDecrease = useCallback(() => {
|
|
19
|
+
const nextValue = +value - 1;
|
|
20
|
+
if (min && nextValue <= min) {
|
|
21
|
+
onChange(min);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
onChange(nextValue);
|
|
25
|
+
}
|
|
26
|
+
}, [min, onChange, value]);
|
|
27
|
+
const handleIncrease = useCallback(() => {
|
|
28
|
+
const nextValue = +value + 1;
|
|
29
|
+
if (max && nextValue > max) {
|
|
30
|
+
onChange(max);
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
onChange(nextValue);
|
|
34
|
+
}
|
|
35
|
+
}, [max, onChange, value]);
|
|
36
|
+
return (_jsx(FormControl, { label: label, error: error, helper: helper, variant: "standard", required: required, children: _jsxs(Stack, { direction: "row", spacing: 2, children: [_jsx(Button, { disabled: !value, onClick: handleDecrease, variant: "contained", className: classes.button, children: _jsx(Icon, { name: "minus24", size: 20 }) }), _jsx(Typography, { variant: "h2", children: value }), _jsx(Button, { onClick: handleIncrease, variant: "contained", className: classes.button, children: _jsx(Icon, { name: "plus24", size: 20 }) })] }) }));
|
|
37
|
+
};
|
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
@import '~react-datepicker/dist/react-datepicker.css';
|
|
2
|
+
|
|
3
|
+
$accessibilityBorder: #9e9e9e;
|
|
4
|
+
$accessibilityColor: #606980;
|
|
5
|
+
$border: #e1e1e1;
|
|
6
|
+
$muted: #48587F;
|
|
7
|
+
$disabled: lighten($muted, 10%) !default;
|
|
8
|
+
$primary: #003fbf;
|
|
9
|
+
$secondary: #010845;
|
|
10
|
+
$cell: 28px;
|
|
11
|
+
|
|
12
|
+
.datepicker-wrapper,
|
|
13
|
+
.react-datepicker__portal,
|
|
14
|
+
.react-datepicker-popper {
|
|
15
|
+
&.react-datepicker__portal {
|
|
16
|
+
background: transparent;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&.range {
|
|
20
|
+
.datepicker-input-wrapper {
|
|
21
|
+
width: 234px;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.container-wrapper {
|
|
26
|
+
box-shadow: 0 1px 4px rgba(black, 0.1);
|
|
27
|
+
position: relative;
|
|
28
|
+
}
|
|
29
|
+
.disclaimer {
|
|
30
|
+
padding: 0.5rem 1rem 1rem;
|
|
31
|
+
color: $muted;
|
|
32
|
+
}
|
|
33
|
+
.react-datepicker {
|
|
34
|
+
font-family: 'Lato', sans-serif;
|
|
35
|
+
border-color: $border;
|
|
36
|
+
border-radius: 4px;
|
|
37
|
+
|
|
38
|
+
.MuiBackdrop-root {
|
|
39
|
+
display: none;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&__close-icon {
|
|
43
|
+
right: 32px;
|
|
44
|
+
|
|
45
|
+
&:after {
|
|
46
|
+
content: '';
|
|
47
|
+
width: 12px;
|
|
48
|
+
height: 12px;
|
|
49
|
+
border: 5px solid transparent;
|
|
50
|
+
background: url(../../icons/close.svg) no-repeat center / cover;
|
|
51
|
+
border-radius: 50%;
|
|
52
|
+
box-sizing: content-box;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&:hover:after {
|
|
56
|
+
background-color: rgba(0, 63, 191, 0.05);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&-popper {
|
|
61
|
+
z-index: 5;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&__month-container {
|
|
65
|
+
position: relative;
|
|
66
|
+
&:before {
|
|
67
|
+
position: absolute;
|
|
68
|
+
top: 16px;
|
|
69
|
+
bottom: 16px;
|
|
70
|
+
left: 0;
|
|
71
|
+
width: 1px;
|
|
72
|
+
background: $border;
|
|
73
|
+
}
|
|
74
|
+
& + .react-datepicker__month-container {
|
|
75
|
+
&:before {
|
|
76
|
+
content: '';
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&__header {
|
|
82
|
+
background: #ffffff;
|
|
83
|
+
border-bottom: none;
|
|
84
|
+
padding: 1rem 0 0.5rem;
|
|
85
|
+
position: static;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&__current-month {
|
|
89
|
+
font-size: 14px;
|
|
90
|
+
border-bottom: 1px solid $border;
|
|
91
|
+
width: calc(100% - 16px);
|
|
92
|
+
margin: 0 auto;
|
|
93
|
+
padding-bottom: 16px;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&__month {
|
|
97
|
+
margin: 0;
|
|
98
|
+
padding-bottom: 8px;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&__week {
|
|
102
|
+
font-size: 0;
|
|
103
|
+
&:not(:last-of-type) {
|
|
104
|
+
margin: 0.15rem;
|
|
105
|
+
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&__day,
|
|
111
|
+
&__day-name,
|
|
112
|
+
&__week-number {
|
|
113
|
+
width: 56px;
|
|
114
|
+
height: 48px;
|
|
115
|
+
line-height: 16px;
|
|
116
|
+
margin: 0;
|
|
117
|
+
display: inline-block;
|
|
118
|
+
vertical-align: top;
|
|
119
|
+
background: transparent;
|
|
120
|
+
border-bottom: 1px solid white;
|
|
121
|
+
align-content: center;
|
|
122
|
+
}
|
|
123
|
+
&__day-name,
|
|
124
|
+
&__week-number {
|
|
125
|
+
font-size: 16px;
|
|
126
|
+
}
|
|
127
|
+
&__day-names {
|
|
128
|
+
.react-datepicker__day-name:first-of-type {
|
|
129
|
+
padding-left: 0;
|
|
130
|
+
color: $muted;
|
|
131
|
+
& + .react-datepicker__day-name {
|
|
132
|
+
margin-left: 0.75rem;
|
|
133
|
+
}
|
|
134
|
+
& ~ .react-datepicker__day-name:last-of-type {
|
|
135
|
+
margin-right: 0.75rem;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
&__day-names,
|
|
140
|
+
&__week-number {
|
|
141
|
+
color: $muted;
|
|
142
|
+
padding-left: 0;
|
|
143
|
+
& + .react-datepicker__day {
|
|
144
|
+
margin-left: 0.75rem;
|
|
145
|
+
}
|
|
146
|
+
& ~ .react-datepicker__day:last-of-type {
|
|
147
|
+
margin-right: 0.75rem;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
&__day {
|
|
151
|
+
white-space: pre;
|
|
152
|
+
font-weight: 700;
|
|
153
|
+
outline: none;
|
|
154
|
+
transition: background-color cubic-bezier(0.4, 0, 0.2, 1) 0.15s, color cubic-bezier(0.4, 0, 0.2, 1) 0.15s;
|
|
155
|
+
font-size: 10px;
|
|
156
|
+
&::first-line {
|
|
157
|
+
font-size: 1rem;
|
|
158
|
+
line-height: 24px;
|
|
159
|
+
}
|
|
160
|
+
&--keyboard-selected,
|
|
161
|
+
&--selected,
|
|
162
|
+
&--highlighted {
|
|
163
|
+
border-radius: 0.25rem;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
&--keyboard-selected,
|
|
167
|
+
&--highlighted {
|
|
168
|
+
background-color: lighten($secondary, 5%);
|
|
169
|
+
color: white;
|
|
170
|
+
}
|
|
171
|
+
&--outside-month {
|
|
172
|
+
color: $disabled;
|
|
173
|
+
}
|
|
174
|
+
&--selected,
|
|
175
|
+
&--in-range {
|
|
176
|
+
background-color: $secondary;
|
|
177
|
+
color: white;
|
|
178
|
+
}
|
|
179
|
+
&--in-selecting-range,
|
|
180
|
+
&--in-range {
|
|
181
|
+
border-radius: 0;
|
|
182
|
+
}
|
|
183
|
+
&--range-start,
|
|
184
|
+
&--selecting-range-start {
|
|
185
|
+
border-top-left-radius: 0.25rem;
|
|
186
|
+
border-bottom-left-radius: 0.25rem;
|
|
187
|
+
}
|
|
188
|
+
&--range-end,
|
|
189
|
+
&--selecting-range-end {
|
|
190
|
+
border-top-right-radius: 0.25rem;
|
|
191
|
+
border-bottom-right-radius: 0.25rem;
|
|
192
|
+
}
|
|
193
|
+
&--in-selecting-range,
|
|
194
|
+
&:hover {
|
|
195
|
+
background: rgba($primary, 0.1);
|
|
196
|
+
color: black;
|
|
197
|
+
}
|
|
198
|
+
&--disabled:hover {
|
|
199
|
+
background: unset;
|
|
200
|
+
color: $disabled;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
&__month {
|
|
205
|
+
position: relative;
|
|
206
|
+
&:after {
|
|
207
|
+
content: '';
|
|
208
|
+
display: block;
|
|
209
|
+
position: absolute;
|
|
210
|
+
top: -38px;
|
|
211
|
+
left: 57px;
|
|
212
|
+
bottom: 16px;
|
|
213
|
+
width: 1px;
|
|
214
|
+
background: $border;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
&__input-time-container {
|
|
219
|
+
margin: 24px 0 0 0;
|
|
220
|
+
padding: 0 16px;
|
|
221
|
+
border-left: 1px solid $border;
|
|
222
|
+
|
|
223
|
+
.react-datepicker-time__input-container .react-datepicker-time__input {
|
|
224
|
+
margin-left: 0;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
input {
|
|
228
|
+
user-select: none;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.react-datepicker-time__caption {
|
|
232
|
+
font-weight: 600;
|
|
233
|
+
font-size: 14px;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.datepicker-accessibility-wrapper {
|
|
240
|
+
& .react-datepicker {
|
|
241
|
+
border-color: $accessibilityBorder;
|
|
242
|
+
|
|
243
|
+
&__month-container {
|
|
244
|
+
& .react-datepicker__month:after {
|
|
245
|
+
background: $accessibilityBorder;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
&__input-time-container {
|
|
250
|
+
border-left-color: $accessibilityBorder;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
&__week-number {
|
|
254
|
+
color: $accessibilityColor;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
&__day--outside-month {
|
|
258
|
+
color: $accessibilityColor;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
&__time-list-item {
|
|
262
|
+
position: relative;
|
|
263
|
+
|
|
264
|
+
&::before {
|
|
265
|
+
content: '';
|
|
266
|
+
position: absolute;
|
|
267
|
+
bottom: 0;
|
|
268
|
+
left: 8px;
|
|
269
|
+
width: calc(100% - 16px);
|
|
270
|
+
border-bottom-color: $accessibilityBorder;
|
|
271
|
+
border-bottom-style: solid;
|
|
272
|
+
border-bottom-width: 1px;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DatePickerProps } from "./index";
|
|
3
|
+
interface DatePickerContextProps extends Pick<DatePickerProps, 'minDate' | 'maxDate' | 'startDate' | 'endDate' | 'onChange' | 'monthsShown' | 'dropdownDisablePortal'> {
|
|
4
|
+
wallClockTime?: string;
|
|
5
|
+
onWallClockTimeChange?: (time: string) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const DatePickerContext: import("react").Context<DatePickerContextProps>;
|
|
8
|
+
export {};
|