@turnit-ou/shared 0.0.0-stage → 2.18.0
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 +84 -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
package/mui/theme.js
ADDED
|
@@ -0,0 +1,1228 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { createTheme as createMuiTheme, lighten, } from '@mui/material/styles';
|
|
3
|
+
import { alpha } from '@mui/material/styles';
|
|
4
|
+
import { Icon } from "./Icon";
|
|
5
|
+
import { darken } from '@mui/system/colorManipulator';
|
|
6
|
+
import { StepIconComponent } from "./Stepper/StepIconComponent";
|
|
7
|
+
import merge from 'lodash/merge';
|
|
8
|
+
import mapKeys from 'lodash/mapKeys';
|
|
9
|
+
import { generateColorsList, getAccessabilityValue } from "../utils";
|
|
10
|
+
const baseTheme = createMuiTheme({
|
|
11
|
+
palette: {
|
|
12
|
+
common: { black: '#000', white: '#FFF' },
|
|
13
|
+
primary: {
|
|
14
|
+
light: 'rgba(0, 63, 191, 0.1)',
|
|
15
|
+
main: '#003FBF',
|
|
16
|
+
},
|
|
17
|
+
secondary: {
|
|
18
|
+
main: '#010845',
|
|
19
|
+
light: '#EEDFFF',
|
|
20
|
+
},
|
|
21
|
+
error: {
|
|
22
|
+
main: '#9B0105',
|
|
23
|
+
},
|
|
24
|
+
warning: {
|
|
25
|
+
main: '#E47A04',
|
|
26
|
+
},
|
|
27
|
+
background: {
|
|
28
|
+
default: '#F9F9F9',
|
|
29
|
+
},
|
|
30
|
+
grey: {
|
|
31
|
+
100: '#E9ECF3',
|
|
32
|
+
400: '#C2C8D6',
|
|
33
|
+
700: '#838895',
|
|
34
|
+
800: '#50586D',
|
|
35
|
+
900: '#2A3246',
|
|
36
|
+
},
|
|
37
|
+
yellow: { main: '#FFF250' },
|
|
38
|
+
divider: '#E1E1E1',
|
|
39
|
+
success: {
|
|
40
|
+
main: '#125202',
|
|
41
|
+
},
|
|
42
|
+
text: {
|
|
43
|
+
primary: '#010845',
|
|
44
|
+
secondary: '#67789A',
|
|
45
|
+
disabled: '#8A929F',
|
|
46
|
+
warning: '#FFF250',
|
|
47
|
+
},
|
|
48
|
+
icons: {
|
|
49
|
+
main: '#010845',
|
|
50
|
+
hover: '#003FBF',
|
|
51
|
+
},
|
|
52
|
+
action: {
|
|
53
|
+
selected: 'rgba(0, 63, 191, 0.1)',
|
|
54
|
+
hover: '#E7EFFF',
|
|
55
|
+
hoverText: '#7616E3',
|
|
56
|
+
focus: '#003FBF',
|
|
57
|
+
focusOpacity: 0.2,
|
|
58
|
+
disabled: '#8A929F',
|
|
59
|
+
hoverOpacity: 0.2,
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
shadows: {
|
|
63
|
+
0: 'none',
|
|
64
|
+
1: '0px 1px 1px 0px rgba(0, 0, 0, 0.1)',
|
|
65
|
+
2: '0px 2px 8px 0px rgba(0, 0, 0, 0.1)',
|
|
66
|
+
3: '0px 4px 16px 0px rgba(0, 0, 0, 0.1)',
|
|
67
|
+
4: '0px 20px 32px 0px rgba(0, 0, 0, 0.1)',
|
|
68
|
+
24: '0px 1px 4px 0px #0000001A',
|
|
69
|
+
},
|
|
70
|
+
});
|
|
71
|
+
export const createTheme = (theme = baseTheme, ...overwriteThemes) => createMuiTheme({
|
|
72
|
+
...theme,
|
|
73
|
+
...merge({}, {
|
|
74
|
+
typography: {
|
|
75
|
+
fontFamily: '"Lato", "Helvetica", "Arial", sans-serif',
|
|
76
|
+
fontSize: 14,
|
|
77
|
+
title: {
|
|
78
|
+
fontSize: 32,
|
|
79
|
+
fontWeight: 600,
|
|
80
|
+
lineHeight: '48px',
|
|
81
|
+
},
|
|
82
|
+
h1: {
|
|
83
|
+
fontSize: 24,
|
|
84
|
+
fontWeight: 600,
|
|
85
|
+
lineHeight: '40px',
|
|
86
|
+
},
|
|
87
|
+
h2: {
|
|
88
|
+
fontSize: 20,
|
|
89
|
+
fontWeight: 600,
|
|
90
|
+
lineHeight: '32px',
|
|
91
|
+
},
|
|
92
|
+
subtitle: {
|
|
93
|
+
fontSize: 16,
|
|
94
|
+
fontWeight: 600,
|
|
95
|
+
lineHeight: '24px',
|
|
96
|
+
},
|
|
97
|
+
paragraph: {
|
|
98
|
+
fontSize: 16,
|
|
99
|
+
fontWeight: 400,
|
|
100
|
+
lineHeight: '24px',
|
|
101
|
+
},
|
|
102
|
+
body1: {
|
|
103
|
+
fontSize: 14,
|
|
104
|
+
lineHeight: '20px',
|
|
105
|
+
},
|
|
106
|
+
body2: {
|
|
107
|
+
fontSize: 12,
|
|
108
|
+
lineHeight: '16px',
|
|
109
|
+
},
|
|
110
|
+
caption: {
|
|
111
|
+
fontSize: 10,
|
|
112
|
+
lineHeight: '16px',
|
|
113
|
+
textTransform: 'uppercase',
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
components: {
|
|
117
|
+
MuiCssBaseline: {
|
|
118
|
+
styleOverrides: {
|
|
119
|
+
body: {},
|
|
120
|
+
'#root': {
|
|
121
|
+
minWidth: 1180,
|
|
122
|
+
},
|
|
123
|
+
':any-link': {
|
|
124
|
+
color: theme.palette.primary.main,
|
|
125
|
+
'&:hover': {
|
|
126
|
+
color: theme.palette.action.hoverText,
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
MuiAutocomplete: {
|
|
132
|
+
defaultProps: {
|
|
133
|
+
popupIcon: _jsx(Icon, { name: "chevron-down", size: 16 }),
|
|
134
|
+
},
|
|
135
|
+
styleOverrides: {
|
|
136
|
+
inputRoot: {
|
|
137
|
+
gap: 4,
|
|
138
|
+
'&.MuiInputBase-sizeSmall': {
|
|
139
|
+
paddingTop: 6,
|
|
140
|
+
paddingBottom: 6,
|
|
141
|
+
'.MuiAutocomplete-input': {
|
|
142
|
+
padding: 0,
|
|
143
|
+
paddingRight: 32,
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
},
|
|
147
|
+
endAdornment: {
|
|
148
|
+
top: '50%',
|
|
149
|
+
transform: 'translateY(-50%)',
|
|
150
|
+
},
|
|
151
|
+
listbox: {
|
|
152
|
+
padding: 0,
|
|
153
|
+
'& .MuiAutocomplete-option': {
|
|
154
|
+
padding: '6px 8px',
|
|
155
|
+
'&.Mui-focused': {
|
|
156
|
+
backgroundColor: theme.palette.primary.light,
|
|
157
|
+
},
|
|
158
|
+
'&[aria-selected=true], &[aria-selected=true].Mui-focused': {
|
|
159
|
+
backgroundColor: theme.palette.secondary.main,
|
|
160
|
+
color: theme.palette.common.white,
|
|
161
|
+
},
|
|
162
|
+
},
|
|
163
|
+
},
|
|
164
|
+
tag: {
|
|
165
|
+
margin: 0,
|
|
166
|
+
},
|
|
167
|
+
},
|
|
168
|
+
},
|
|
169
|
+
MuiAccordionSummary: {
|
|
170
|
+
styleOverrides: {
|
|
171
|
+
root: {
|
|
172
|
+
'&.Mui-expanded': {
|
|
173
|
+
minHeight: 48,
|
|
174
|
+
},
|
|
175
|
+
'&.Mui-focusVisible': {
|
|
176
|
+
background: 'transparent',
|
|
177
|
+
},
|
|
178
|
+
},
|
|
179
|
+
content: {
|
|
180
|
+
'&.Mui-expanded': {
|
|
181
|
+
margin: '12px 0',
|
|
182
|
+
},
|
|
183
|
+
},
|
|
184
|
+
},
|
|
185
|
+
},
|
|
186
|
+
MuiBackdrop: {
|
|
187
|
+
styleOverrides: {
|
|
188
|
+
root: {
|
|
189
|
+
background: alpha(theme.palette.common.black, 0.1),
|
|
190
|
+
},
|
|
191
|
+
},
|
|
192
|
+
},
|
|
193
|
+
MuiButton: {
|
|
194
|
+
styleOverrides: {
|
|
195
|
+
root: {
|
|
196
|
+
textTransform: 'none',
|
|
197
|
+
borderRadius: 3,
|
|
198
|
+
// maxHeight: 32,
|
|
199
|
+
position: 'relative',
|
|
200
|
+
'&&': {
|
|
201
|
+
boxShadow: 'none',
|
|
202
|
+
},
|
|
203
|
+
'&:disabled': {
|
|
204
|
+
pointerEvents: 'all',
|
|
205
|
+
cursor: 'not-allowed',
|
|
206
|
+
},
|
|
207
|
+
},
|
|
208
|
+
sizeMedium: {
|
|
209
|
+
lineHeight: '20px',
|
|
210
|
+
padding: '6px 16px',
|
|
211
|
+
},
|
|
212
|
+
startIcon: {
|
|
213
|
+
marginLeft: 0,
|
|
214
|
+
marginRight: '8px',
|
|
215
|
+
'& .Icon-root:hover': {
|
|
216
|
+
color: 'unset',
|
|
217
|
+
},
|
|
218
|
+
},
|
|
219
|
+
endIcon: {
|
|
220
|
+
marginRight: 0,
|
|
221
|
+
marginLeft: '8px',
|
|
222
|
+
},
|
|
223
|
+
text: {
|
|
224
|
+
padding: '6px 8px',
|
|
225
|
+
'& .MuiCircularProgress-root': {
|
|
226
|
+
color: theme.palette.primary.main,
|
|
227
|
+
},
|
|
228
|
+
'&:hover': {
|
|
229
|
+
background: 'transparent',
|
|
230
|
+
color: theme.palette.action.hoverText,
|
|
231
|
+
'& .MuiButton-startIcon > *, & .MuiButton-endIcon > *': {
|
|
232
|
+
borderColor: theme.palette.action.hoverText,
|
|
233
|
+
},
|
|
234
|
+
},
|
|
235
|
+
'&:disabled': {
|
|
236
|
+
color: theme.palette.action.disabled,
|
|
237
|
+
},
|
|
238
|
+
},
|
|
239
|
+
contained: {
|
|
240
|
+
'&&:not(.MuiLoadingButton-loading):disabled': {
|
|
241
|
+
color: theme.palette.common.white,
|
|
242
|
+
background: theme.palette.action.disabled,
|
|
243
|
+
},
|
|
244
|
+
'.MuiCircularProgress-root': {
|
|
245
|
+
color: theme.palette.common.white,
|
|
246
|
+
},
|
|
247
|
+
},
|
|
248
|
+
outlined: {
|
|
249
|
+
'& .MuiCircularProgress-root': {
|
|
250
|
+
color: theme.palette.primary.main,
|
|
251
|
+
},
|
|
252
|
+
'&:hover, &:active': {
|
|
253
|
+
background: alpha(theme.palette.primary.main, theme.palette.action.hoverOpacity),
|
|
254
|
+
},
|
|
255
|
+
'&:disabled': {
|
|
256
|
+
borderColor: theme.palette.action.disabled,
|
|
257
|
+
color: theme.palette.action.disabled,
|
|
258
|
+
background: 'transparent',
|
|
259
|
+
},
|
|
260
|
+
},
|
|
261
|
+
textYellow: {
|
|
262
|
+
'&:any-link': {
|
|
263
|
+
color: theme.palette.yellow.main,
|
|
264
|
+
'&:disabled, &.Mui-disabled': {
|
|
265
|
+
color: theme.palette.text.disabled,
|
|
266
|
+
},
|
|
267
|
+
},
|
|
268
|
+
'&:hover, &:active': {
|
|
269
|
+
color: darken(theme.palette.yellow.main, theme.palette.action.hoverOpacity),
|
|
270
|
+
'&:disabled, &.Mui-disabled': {
|
|
271
|
+
color: theme.palette.text.disabled,
|
|
272
|
+
},
|
|
273
|
+
},
|
|
274
|
+
},
|
|
275
|
+
},
|
|
276
|
+
},
|
|
277
|
+
MuiCardHeader: {
|
|
278
|
+
styleOverrides: {
|
|
279
|
+
root: {
|
|
280
|
+
padding: '16px 24px',
|
|
281
|
+
},
|
|
282
|
+
action: {
|
|
283
|
+
alignSelf: 'center',
|
|
284
|
+
'& > .MuiButton-root': {
|
|
285
|
+
paddingTop: 0,
|
|
286
|
+
paddingBottom: 0,
|
|
287
|
+
},
|
|
288
|
+
},
|
|
289
|
+
},
|
|
290
|
+
},
|
|
291
|
+
MuiCardContent: {
|
|
292
|
+
styleOverrides: {
|
|
293
|
+
root: {
|
|
294
|
+
padding: '16px 24px',
|
|
295
|
+
},
|
|
296
|
+
},
|
|
297
|
+
},
|
|
298
|
+
MuiCheckbox: {
|
|
299
|
+
defaultProps: {
|
|
300
|
+
disableRipple: true,
|
|
301
|
+
color: 'secondary',
|
|
302
|
+
icon: _jsx(Icon, { name: "checkbox" }),
|
|
303
|
+
checkedIcon: _jsx(Icon, { name: "checkbox-checked" }),
|
|
304
|
+
indeterminateIcon: _jsx(Icon, { name: "checkbox-indeterminate" }),
|
|
305
|
+
},
|
|
306
|
+
styleOverrides: {
|
|
307
|
+
root: {
|
|
308
|
+
padding: 8,
|
|
309
|
+
margin: -4,
|
|
310
|
+
marginLeft: -8,
|
|
311
|
+
'& .Icon-root': {
|
|
312
|
+
borderRadius: 4,
|
|
313
|
+
},
|
|
314
|
+
'&:hover': {
|
|
315
|
+
'&:not(.Mui-disabled)': {
|
|
316
|
+
backgroundColor: 'unset',
|
|
317
|
+
color: theme.palette.primary.main,
|
|
318
|
+
// color: theme.palette.common.black,
|
|
319
|
+
'&.Mui-checked': {
|
|
320
|
+
color: theme.palette.common.black,
|
|
321
|
+
},
|
|
322
|
+
},
|
|
323
|
+
},
|
|
324
|
+
'&.MuiCheckbox-colorError:not(.Mui-disabled)': {
|
|
325
|
+
color: theme.palette.error.main,
|
|
326
|
+
'& .Icon-root': {
|
|
327
|
+
backgroundColor: alpha(theme.palette.error.main, 0.1),
|
|
328
|
+
},
|
|
329
|
+
},
|
|
330
|
+
'&.Mui-disabled': {
|
|
331
|
+
color: theme.palette.divider,
|
|
332
|
+
'& .Icon-root': {
|
|
333
|
+
backgroundColor: alpha(theme.palette.divider, 0.1),
|
|
334
|
+
},
|
|
335
|
+
},
|
|
336
|
+
},
|
|
337
|
+
},
|
|
338
|
+
},
|
|
339
|
+
MuiDialog: {
|
|
340
|
+
defaultProps: {
|
|
341
|
+
PaperProps: {
|
|
342
|
+
elevation: 4,
|
|
343
|
+
},
|
|
344
|
+
},
|
|
345
|
+
},
|
|
346
|
+
MuiDialogActions: {
|
|
347
|
+
styleOverrides: {
|
|
348
|
+
root: {
|
|
349
|
+
'&:empty': {
|
|
350
|
+
display: 'none',
|
|
351
|
+
},
|
|
352
|
+
padding: theme.spacing(3),
|
|
353
|
+
paddingTop: 0,
|
|
354
|
+
},
|
|
355
|
+
},
|
|
356
|
+
},
|
|
357
|
+
MuiDialogContent: {
|
|
358
|
+
styleOverrides: {
|
|
359
|
+
root: {
|
|
360
|
+
padding: theme.spacing(3),
|
|
361
|
+
paddingTop: 0,
|
|
362
|
+
paddingBottom: theme.spacing(3),
|
|
363
|
+
},
|
|
364
|
+
},
|
|
365
|
+
},
|
|
366
|
+
MuiDialogTitle: {
|
|
367
|
+
styleOverrides: {
|
|
368
|
+
root: {
|
|
369
|
+
padding: theme.spacing(3),
|
|
370
|
+
},
|
|
371
|
+
},
|
|
372
|
+
},
|
|
373
|
+
MuiDivider: {
|
|
374
|
+
variants: [
|
|
375
|
+
{
|
|
376
|
+
props: { variant: 'transparent' },
|
|
377
|
+
style: {
|
|
378
|
+
borderColor: 'transparent',
|
|
379
|
+
},
|
|
380
|
+
},
|
|
381
|
+
],
|
|
382
|
+
},
|
|
383
|
+
MuiInputLabel: {
|
|
384
|
+
styleOverrides: {
|
|
385
|
+
root: {
|
|
386
|
+
color: theme.palette.text.primary,
|
|
387
|
+
},
|
|
388
|
+
},
|
|
389
|
+
},
|
|
390
|
+
MuiFormLabel: {
|
|
391
|
+
styleOverrides: {
|
|
392
|
+
root: {
|
|
393
|
+
color: theme.palette.text.primary,
|
|
394
|
+
},
|
|
395
|
+
},
|
|
396
|
+
},
|
|
397
|
+
MuiFormControl: {
|
|
398
|
+
styleOverrides: {
|
|
399
|
+
root: {
|
|
400
|
+
minWidth: 'unset',
|
|
401
|
+
},
|
|
402
|
+
},
|
|
403
|
+
},
|
|
404
|
+
MuiFormControlLabel: {
|
|
405
|
+
styleOverrides: {
|
|
406
|
+
root: {
|
|
407
|
+
margin: 0,
|
|
408
|
+
'&.Mui-disabled': {
|
|
409
|
+
cursor: 'not-allowed',
|
|
410
|
+
},
|
|
411
|
+
'& .MuiTypography-root': {
|
|
412
|
+
color: theme.palette.text.primary,
|
|
413
|
+
},
|
|
414
|
+
},
|
|
415
|
+
},
|
|
416
|
+
},
|
|
417
|
+
MuiButtonBase: {
|
|
418
|
+
defaultProps: {
|
|
419
|
+
// The properties to apply
|
|
420
|
+
disableRipple: true, // No more ripple, on the whole application 💣!
|
|
421
|
+
},
|
|
422
|
+
styleOverrides: {
|
|
423
|
+
root: {
|
|
424
|
+
lineHeight: 1,
|
|
425
|
+
},
|
|
426
|
+
},
|
|
427
|
+
},
|
|
428
|
+
MuiButtonGroup: {
|
|
429
|
+
defaultProps: {
|
|
430
|
+
// The properties to apply
|
|
431
|
+
disableRipple: true, // No more ripple, on the whole application 💣!
|
|
432
|
+
},
|
|
433
|
+
},
|
|
434
|
+
MuiInputBase: {
|
|
435
|
+
defaultProps: { size: 'small' },
|
|
436
|
+
styleOverrides: {
|
|
437
|
+
root: {
|
|
438
|
+
color: 'currentColor',
|
|
439
|
+
'&.Mui-disabled': {
|
|
440
|
+
color: 'currentColor',
|
|
441
|
+
'& .MuiInputBase-input': {
|
|
442
|
+
textFillColor: 'currentColor',
|
|
443
|
+
},
|
|
444
|
+
},
|
|
445
|
+
'&.Mui-error': {
|
|
446
|
+
borderColor: theme.palette.error.main,
|
|
447
|
+
},
|
|
448
|
+
'&.MuiInputBase-multiline': {
|
|
449
|
+
padding: '6px 8px',
|
|
450
|
+
},
|
|
451
|
+
},
|
|
452
|
+
sizeSmall: {
|
|
453
|
+
padding: `6px 8px`,
|
|
454
|
+
'& .MuiInputBase-input': {
|
|
455
|
+
height: 20,
|
|
456
|
+
},
|
|
457
|
+
},
|
|
458
|
+
input: {
|
|
459
|
+
webkitTextFillColor: 'currentColor',
|
|
460
|
+
},
|
|
461
|
+
},
|
|
462
|
+
},
|
|
463
|
+
MuiFilledInput: {
|
|
464
|
+
defaultProps: { size: 'small', fullWidth: true },
|
|
465
|
+
styleOverrides: {
|
|
466
|
+
root: {
|
|
467
|
+
background: theme.palette.common.white,
|
|
468
|
+
borderColor: theme.palette.divider,
|
|
469
|
+
color: theme.palette.text.primary,
|
|
470
|
+
borderStyle: 'solid',
|
|
471
|
+
borderWidth: 1,
|
|
472
|
+
borderRadius: 4,
|
|
473
|
+
'&:before, &:after': {
|
|
474
|
+
display: 'none',
|
|
475
|
+
},
|
|
476
|
+
'&:hover:not(.Mui-disabled), &.Mui-focused': {
|
|
477
|
+
background: theme.palette.common.white,
|
|
478
|
+
borderColor: theme.palette.primary.main,
|
|
479
|
+
},
|
|
480
|
+
'&.Mui-focused': {
|
|
481
|
+
boxShadow: `${theme.palette.primary.main} 0 0 3px`,
|
|
482
|
+
},
|
|
483
|
+
'&.Mui-disabled': {
|
|
484
|
+
background: theme.palette.common.white,
|
|
485
|
+
color: theme.palette.text.secondary,
|
|
486
|
+
},
|
|
487
|
+
},
|
|
488
|
+
inputSizeSmall: {
|
|
489
|
+
padding: 0,
|
|
490
|
+
},
|
|
491
|
+
},
|
|
492
|
+
},
|
|
493
|
+
MuiFormHelperText: {
|
|
494
|
+
styleOverrides: {
|
|
495
|
+
root: {
|
|
496
|
+
fontSize: 12,
|
|
497
|
+
lineHeight: '16px',
|
|
498
|
+
margin: '4px 0 0 0',
|
|
499
|
+
textTransform: 'none',
|
|
500
|
+
},
|
|
501
|
+
},
|
|
502
|
+
},
|
|
503
|
+
MuiMenu: {
|
|
504
|
+
defaultProps: {
|
|
505
|
+
elevation: 4,
|
|
506
|
+
},
|
|
507
|
+
},
|
|
508
|
+
MuiOutlinedInput: {
|
|
509
|
+
defaultProps: { size: 'small', fullWidth: true },
|
|
510
|
+
styleOverrides: {
|
|
511
|
+
root: {
|
|
512
|
+
padding: 0,
|
|
513
|
+
'&.Mui-focused .MuiOutlinedInput-notchedOutline': {
|
|
514
|
+
borderWidth: 1,
|
|
515
|
+
boxShadow: `${theme.palette.primary.main} 0 0 3px`,
|
|
516
|
+
},
|
|
517
|
+
'&:hover:not(.Mui-disabled) .MuiOutlinedInput-notchedOutline': {
|
|
518
|
+
borderColor: theme.palette.primary.main,
|
|
519
|
+
},
|
|
520
|
+
'&.MuiInputBase-adornedStart': {
|
|
521
|
+
paddingLeft: 12,
|
|
522
|
+
},
|
|
523
|
+
'&.MuiInputBase-adornedEnd': {
|
|
524
|
+
paddingRight: 12,
|
|
525
|
+
},
|
|
526
|
+
},
|
|
527
|
+
inputSizeSmall: {
|
|
528
|
+
padding: `6px 8px`,
|
|
529
|
+
},
|
|
530
|
+
notchedOutline: {
|
|
531
|
+
borderColor: theme.palette.divider,
|
|
532
|
+
},
|
|
533
|
+
},
|
|
534
|
+
},
|
|
535
|
+
MuiListItem: {
|
|
536
|
+
styleOverrides: {
|
|
537
|
+
root: {
|
|
538
|
+
'&:hover': {
|
|
539
|
+
// TODO, check when is needs and make custom variant instead global
|
|
540
|
+
// color: theme.palette.common.white,
|
|
541
|
+
},
|
|
542
|
+
},
|
|
543
|
+
},
|
|
544
|
+
},
|
|
545
|
+
MuiPaper: {
|
|
546
|
+
styleOverrides: {
|
|
547
|
+
outlined: {
|
|
548
|
+
borderColor: '#E9ECEF',
|
|
549
|
+
},
|
|
550
|
+
surface: {
|
|
551
|
+
background: theme.palette.background.default,
|
|
552
|
+
},
|
|
553
|
+
},
|
|
554
|
+
},
|
|
555
|
+
MuiRadio: {
|
|
556
|
+
defaultProps: {
|
|
557
|
+
disableRipple: true,
|
|
558
|
+
icon: _jsx(Icon, { name: "radio" }),
|
|
559
|
+
checkedIcon: _jsx(Icon, { name: "radio-filled" }),
|
|
560
|
+
},
|
|
561
|
+
styleOverrides: {
|
|
562
|
+
root: {
|
|
563
|
+
padding: 4,
|
|
564
|
+
stroke: theme.palette.text.secondary,
|
|
565
|
+
'& .Icon-root': {
|
|
566
|
+
borderRadius: '50%',
|
|
567
|
+
},
|
|
568
|
+
'&:hover': {
|
|
569
|
+
backgroundColor: 'unset',
|
|
570
|
+
'&:not(.Mui-disabled):not(.MuiRadio-colorError)': {
|
|
571
|
+
backgroundColor: 'unset',
|
|
572
|
+
color: theme.palette.primary.main,
|
|
573
|
+
// color: theme.palette.common.black,
|
|
574
|
+
'&.Mui-checked': {
|
|
575
|
+
color: theme.palette.common.black,
|
|
576
|
+
},
|
|
577
|
+
},
|
|
578
|
+
},
|
|
579
|
+
'&.MuiRadio-colorError:not(.Mui-disabled)': {
|
|
580
|
+
stroke: theme.palette.error.main,
|
|
581
|
+
color: theme.palette.error.main,
|
|
582
|
+
'& .Icon-root': {
|
|
583
|
+
backgroundColor: alpha(theme.palette.error.main, 0.1),
|
|
584
|
+
},
|
|
585
|
+
},
|
|
586
|
+
'&.Mui-disabled': {
|
|
587
|
+
color: theme.palette.divider,
|
|
588
|
+
stroke: theme.palette.divider,
|
|
589
|
+
'& .Icon-root': {
|
|
590
|
+
backgroundColor: alpha(theme.palette.divider, 0.1),
|
|
591
|
+
},
|
|
592
|
+
},
|
|
593
|
+
},
|
|
594
|
+
},
|
|
595
|
+
},
|
|
596
|
+
MuiTabs: {
|
|
597
|
+
styleOverrides: {
|
|
598
|
+
root: {
|
|
599
|
+
minHeight: 40,
|
|
600
|
+
},
|
|
601
|
+
},
|
|
602
|
+
},
|
|
603
|
+
MuiTab: {
|
|
604
|
+
defaultProps: {
|
|
605
|
+
// The properties to apply
|
|
606
|
+
disableRipple: true, // No more ripple, on the whole application 💣!
|
|
607
|
+
},
|
|
608
|
+
styleOverrides: {
|
|
609
|
+
root: {
|
|
610
|
+
minWidth: theme.spacing(8),
|
|
611
|
+
minHeight: 40,
|
|
612
|
+
padding: '8px 16px',
|
|
613
|
+
textTransform: 'none',
|
|
614
|
+
color: theme.palette.text.primary,
|
|
615
|
+
fontSize: 16,
|
|
616
|
+
fontWeight: 400,
|
|
617
|
+
lineHeight: '24px',
|
|
618
|
+
'&:hover': {
|
|
619
|
+
color: theme.palette.primary.main,
|
|
620
|
+
},
|
|
621
|
+
'&.Mui-selected': {
|
|
622
|
+
fontWeight: 700,
|
|
623
|
+
},
|
|
624
|
+
},
|
|
625
|
+
},
|
|
626
|
+
},
|
|
627
|
+
MuiTableRow: {
|
|
628
|
+
styleOverrides: {
|
|
629
|
+
root: {
|
|
630
|
+
'&::before': {
|
|
631
|
+
content: '""',
|
|
632
|
+
display: 'table-cell',
|
|
633
|
+
width: 1,
|
|
634
|
+
height: 40,
|
|
635
|
+
padding: 0,
|
|
636
|
+
border: 0,
|
|
637
|
+
verticalAlign: 'middle',
|
|
638
|
+
},
|
|
639
|
+
},
|
|
640
|
+
head: { backgroundColor: theme.palette.grey[100] },
|
|
641
|
+
},
|
|
642
|
+
},
|
|
643
|
+
MuiTableCell: {
|
|
644
|
+
styleOverrides: {
|
|
645
|
+
root: {
|
|
646
|
+
paddingLeft: 8,
|
|
647
|
+
paddingRight: 8,
|
|
648
|
+
border: 0,
|
|
649
|
+
'&:first-of-type': {
|
|
650
|
+
paddingLeft: 16,
|
|
651
|
+
},
|
|
652
|
+
'&:last-of-type': {
|
|
653
|
+
paddingRight: 16,
|
|
654
|
+
},
|
|
655
|
+
},
|
|
656
|
+
head: {
|
|
657
|
+
background: 'inherit',
|
|
658
|
+
paddingTop: 12,
|
|
659
|
+
paddingBottom: 12,
|
|
660
|
+
},
|
|
661
|
+
},
|
|
662
|
+
},
|
|
663
|
+
MuiTablePagination: {
|
|
664
|
+
styleOverrides: {
|
|
665
|
+
select: {
|
|
666
|
+
padding: 0,
|
|
667
|
+
paddingRight: 24,
|
|
668
|
+
},
|
|
669
|
+
toolbar: {
|
|
670
|
+
minHeight: 48,
|
|
671
|
+
[theme.breakpoints.up('sm')]: {
|
|
672
|
+
minHeight: 48,
|
|
673
|
+
},
|
|
674
|
+
},
|
|
675
|
+
},
|
|
676
|
+
},
|
|
677
|
+
MuiTypography: {
|
|
678
|
+
styleOverrides: {
|
|
679
|
+
gutterBottom: {
|
|
680
|
+
marginBottom: '.5rem',
|
|
681
|
+
},
|
|
682
|
+
},
|
|
683
|
+
},
|
|
684
|
+
MuiToggleButtonGroup: {
|
|
685
|
+
styleOverrides: {
|
|
686
|
+
root: {
|
|
687
|
+
height: 34,
|
|
688
|
+
},
|
|
689
|
+
},
|
|
690
|
+
},
|
|
691
|
+
MuiTooltip: {
|
|
692
|
+
styleOverrides: {
|
|
693
|
+
tooltip: {
|
|
694
|
+
fontSize: 14,
|
|
695
|
+
},
|
|
696
|
+
},
|
|
697
|
+
},
|
|
698
|
+
MuiStepper: {
|
|
699
|
+
styleOverrides: {
|
|
700
|
+
root: {
|
|
701
|
+
padding: `${theme.spacing(2)} 0`,
|
|
702
|
+
},
|
|
703
|
+
},
|
|
704
|
+
},
|
|
705
|
+
MuiStepLabel: {
|
|
706
|
+
defaultProps: {
|
|
707
|
+
StepIconComponent,
|
|
708
|
+
},
|
|
709
|
+
styleOverrides: {
|
|
710
|
+
root: {
|
|
711
|
+
position: 'relative',
|
|
712
|
+
zIndex: 1,
|
|
713
|
+
},
|
|
714
|
+
label: {
|
|
715
|
+
color: theme.palette.primary.main,
|
|
716
|
+
fontSize: 14,
|
|
717
|
+
'&.MuiStepLabel-alternativeLabel': {
|
|
718
|
+
marginTop: 8,
|
|
719
|
+
},
|
|
720
|
+
'&.Mui-disabled': {
|
|
721
|
+
color: theme.palette.text.disabled,
|
|
722
|
+
},
|
|
723
|
+
'&.Mui-active': {
|
|
724
|
+
color: theme.palette.primary.main,
|
|
725
|
+
},
|
|
726
|
+
'&.Mui-error': {
|
|
727
|
+
color: theme.palette.error.main,
|
|
728
|
+
},
|
|
729
|
+
},
|
|
730
|
+
},
|
|
731
|
+
},
|
|
732
|
+
MuiStepButton: {
|
|
733
|
+
styleOverrides: {
|
|
734
|
+
root: {
|
|
735
|
+
padding: 0,
|
|
736
|
+
margin: 0,
|
|
737
|
+
},
|
|
738
|
+
},
|
|
739
|
+
},
|
|
740
|
+
MuiStepConnector: {
|
|
741
|
+
styleOverrides: {
|
|
742
|
+
root: {
|
|
743
|
+
left: '-50%',
|
|
744
|
+
right: '50%',
|
|
745
|
+
'&:last-of-type': {
|
|
746
|
+
right: 0,
|
|
747
|
+
},
|
|
748
|
+
},
|
|
749
|
+
line: {
|
|
750
|
+
borderColor: theme.palette.grey[100],
|
|
751
|
+
},
|
|
752
|
+
},
|
|
753
|
+
},
|
|
754
|
+
MuiSwitch: {
|
|
755
|
+
styleOverrides: {
|
|
756
|
+
root: {
|
|
757
|
+
width: 42,
|
|
758
|
+
height: 24,
|
|
759
|
+
padding: 0,
|
|
760
|
+
margin: '8px 0',
|
|
761
|
+
},
|
|
762
|
+
switchBase: {
|
|
763
|
+
margin: 0,
|
|
764
|
+
padding: 4,
|
|
765
|
+
transitionDuration: '300ms',
|
|
766
|
+
'&.Mui-checked': {
|
|
767
|
+
transform: 'translateX(18px)',
|
|
768
|
+
color: '#fff',
|
|
769
|
+
'& + .MuiSwitch-track': {
|
|
770
|
+
opacity: 1,
|
|
771
|
+
border: 0,
|
|
772
|
+
},
|
|
773
|
+
'&.Mui-disabled + .MuiSwitch-track': {
|
|
774
|
+
opacity: 0.5,
|
|
775
|
+
},
|
|
776
|
+
},
|
|
777
|
+
'&.Mui-disabled .MuiSwitch-thumb': {
|
|
778
|
+
color: theme.palette.grey[100],
|
|
779
|
+
},
|
|
780
|
+
'&.Mui-disabled + .MuiSwitch-track': {
|
|
781
|
+
opacity: 1,
|
|
782
|
+
background: theme.palette.action.disabled,
|
|
783
|
+
cursor: 'not-allowed',
|
|
784
|
+
},
|
|
785
|
+
},
|
|
786
|
+
thumb: {
|
|
787
|
+
boxShadow: 'none',
|
|
788
|
+
width: 16,
|
|
789
|
+
height: 16,
|
|
790
|
+
},
|
|
791
|
+
track: {
|
|
792
|
+
borderRadius: 12,
|
|
793
|
+
backgroundColor: theme.palette.secondary.light,
|
|
794
|
+
opacity: 1,
|
|
795
|
+
transition: theme.transitions.create(['background-color'], {
|
|
796
|
+
duration: 500,
|
|
797
|
+
}),
|
|
798
|
+
},
|
|
799
|
+
},
|
|
800
|
+
},
|
|
801
|
+
MuiLink: {
|
|
802
|
+
styleOverrides: {
|
|
803
|
+
root: { textDecoration: 'none', cursor: 'pointer' },
|
|
804
|
+
},
|
|
805
|
+
},
|
|
806
|
+
},
|
|
807
|
+
}, ...(overwriteThemes ?? [])),
|
|
808
|
+
});
|
|
809
|
+
export const theme = createTheme();
|
|
810
|
+
export const listBottomBorder = {
|
|
811
|
+
content: '""',
|
|
812
|
+
position: 'absolute',
|
|
813
|
+
bottom: 0,
|
|
814
|
+
left: 8,
|
|
815
|
+
width: 'calc(100% - 16px)',
|
|
816
|
+
borderBottomColor: `${theme.palette.grey[500]} !important`,
|
|
817
|
+
borderBottomStyle: 'solid',
|
|
818
|
+
borderBottomWidth: 1,
|
|
819
|
+
};
|
|
820
|
+
const accessibilityBaseTheme = merge({}, baseTheme, {
|
|
821
|
+
palette: {
|
|
822
|
+
divider: theme.palette.grey[500],
|
|
823
|
+
text: {
|
|
824
|
+
secondary: '#48587F',
|
|
825
|
+
},
|
|
826
|
+
},
|
|
827
|
+
});
|
|
828
|
+
const accessibilitySwitchOptions = {
|
|
829
|
+
MuiSwitch: {
|
|
830
|
+
styleOverrides: {
|
|
831
|
+
switchBase: {
|
|
832
|
+
'&.Mui-checked': {
|
|
833
|
+
color: theme.palette.common.white,
|
|
834
|
+
'& + .MuiSwitch-track': {
|
|
835
|
+
opacity: 1,
|
|
836
|
+
},
|
|
837
|
+
'&.Mui-disabled + .MuiSwitch-track': {
|
|
838
|
+
opacity: 1,
|
|
839
|
+
},
|
|
840
|
+
},
|
|
841
|
+
'&.Mui-disabled .MuiSwitch-thumb': {
|
|
842
|
+
color: theme.palette.common.white,
|
|
843
|
+
},
|
|
844
|
+
'&.Mui-disabled + .MuiSwitch-track': {
|
|
845
|
+
opacity: 1,
|
|
846
|
+
},
|
|
847
|
+
},
|
|
848
|
+
thumb: { boxShadow: alpha(theme.palette.common.black, 0.1) },
|
|
849
|
+
track: {
|
|
850
|
+
background: '#48587F !important',
|
|
851
|
+
'&:after, &:before': {
|
|
852
|
+
color: theme.palette.common.white,
|
|
853
|
+
fontSize: 12,
|
|
854
|
+
position: 'absolute',
|
|
855
|
+
top: '50%',
|
|
856
|
+
transform: 'translateY(-50%)',
|
|
857
|
+
},
|
|
858
|
+
'&:after': {
|
|
859
|
+
content: '"✓"',
|
|
860
|
+
left: 8,
|
|
861
|
+
},
|
|
862
|
+
'&:before': {
|
|
863
|
+
content: '"✕"',
|
|
864
|
+
right: 8,
|
|
865
|
+
},
|
|
866
|
+
},
|
|
867
|
+
},
|
|
868
|
+
},
|
|
869
|
+
};
|
|
870
|
+
export const accessibilityTheme = createTheme(accessibilityBaseTheme, {
|
|
871
|
+
components: {
|
|
872
|
+
...accessibilitySwitchOptions,
|
|
873
|
+
MuiFilledInput: {
|
|
874
|
+
styleOverrides: {
|
|
875
|
+
root: {
|
|
876
|
+
borderColor: theme.palette.grey[500],
|
|
877
|
+
'&.Mui-focused': {
|
|
878
|
+
boxShadow: `${theme.palette.primary.main} 0 0 4px`,
|
|
879
|
+
},
|
|
880
|
+
'&.Mui-disabled': {
|
|
881
|
+
backgroundColor: theme.palette.grey[200],
|
|
882
|
+
borderColor: theme.palette.grey[400],
|
|
883
|
+
color: theme.palette.grey[900],
|
|
884
|
+
},
|
|
885
|
+
'&.Mui-error': {
|
|
886
|
+
backgroundColor: alpha(theme.palette.error.main, 0.1),
|
|
887
|
+
},
|
|
888
|
+
},
|
|
889
|
+
},
|
|
890
|
+
},
|
|
891
|
+
MuiAutocomplete: {
|
|
892
|
+
styleOverrides: {
|
|
893
|
+
listbox: {
|
|
894
|
+
borderColor: theme.palette.grey[500],
|
|
895
|
+
borderStyle: 'solid',
|
|
896
|
+
borderWidth: 1,
|
|
897
|
+
borderRadius: 3,
|
|
898
|
+
'& .MuiAutocomplete-option:not(:last-child)': {
|
|
899
|
+
position: 'relative',
|
|
900
|
+
'&:before': listBottomBorder,
|
|
901
|
+
},
|
|
902
|
+
"& .MuiAutocomplete-option[aria-disabled='true']": {
|
|
903
|
+
opacity: 1,
|
|
904
|
+
color: theme.palette.grey[800],
|
|
905
|
+
},
|
|
906
|
+
},
|
|
907
|
+
noOptions: {
|
|
908
|
+
borderColor: theme.palette.grey[500],
|
|
909
|
+
borderStyle: 'solid',
|
|
910
|
+
borderWidth: 1,
|
|
911
|
+
borderRadius: 3,
|
|
912
|
+
},
|
|
913
|
+
},
|
|
914
|
+
},
|
|
915
|
+
MuiLink: {
|
|
916
|
+
styleOverrides: {
|
|
917
|
+
root: {
|
|
918
|
+
textDecoration: 'underline',
|
|
919
|
+
},
|
|
920
|
+
},
|
|
921
|
+
},
|
|
922
|
+
MuiTableRow: {
|
|
923
|
+
styleOverrides: {
|
|
924
|
+
root: {
|
|
925
|
+
borderBottom: `1px solid ${theme.palette.common.black}`,
|
|
926
|
+
},
|
|
927
|
+
},
|
|
928
|
+
},
|
|
929
|
+
MuiDrawer: {
|
|
930
|
+
styleOverrides: {
|
|
931
|
+
root: {
|
|
932
|
+
'& .drawer-button': {
|
|
933
|
+
backgroundColor: theme.palette.secondary.main,
|
|
934
|
+
'&:hover': {
|
|
935
|
+
backgroundColor: theme.palette.secondary.main,
|
|
936
|
+
'& .Icon-root': {
|
|
937
|
+
color: theme.palette.common.white,
|
|
938
|
+
},
|
|
939
|
+
},
|
|
940
|
+
'& .Icon-root': {
|
|
941
|
+
color: theme.palette.common.white,
|
|
942
|
+
},
|
|
943
|
+
},
|
|
944
|
+
},
|
|
945
|
+
paper: { border: '1px solid currentColor !important' },
|
|
946
|
+
},
|
|
947
|
+
},
|
|
948
|
+
MuiButton: {
|
|
949
|
+
styleOverrides: {
|
|
950
|
+
text: {
|
|
951
|
+
border: '1px solid currentColor !important',
|
|
952
|
+
paddingLeft: '4px !important',
|
|
953
|
+
paddingRight: '4px !important',
|
|
954
|
+
},
|
|
955
|
+
root: {
|
|
956
|
+
marginLeft: '2px',
|
|
957
|
+
marginRight: '2px',
|
|
958
|
+
'&.MuiButton-outlined:disabled': {
|
|
959
|
+
color: `${theme.palette.grey[800]} !important`,
|
|
960
|
+
},
|
|
961
|
+
},
|
|
962
|
+
},
|
|
963
|
+
},
|
|
964
|
+
MuiTabs: {
|
|
965
|
+
styleOverrides: {
|
|
966
|
+
flexContainer: {
|
|
967
|
+
gap: 4,
|
|
968
|
+
'& .MuiTab-root.Mui-selected': {
|
|
969
|
+
border: `1px solid ${theme.palette.grey[500]}`,
|
|
970
|
+
borderBottom: 'none',
|
|
971
|
+
borderTopLeftRadius: 4,
|
|
972
|
+
borderTopRightRadius: 4,
|
|
973
|
+
},
|
|
974
|
+
},
|
|
975
|
+
flexContainerVertical: {
|
|
976
|
+
'& .MuiTab-root:not(:last-child)': {
|
|
977
|
+
position: 'relative',
|
|
978
|
+
'&:before': listBottomBorder,
|
|
979
|
+
},
|
|
980
|
+
},
|
|
981
|
+
},
|
|
982
|
+
},
|
|
983
|
+
MuiList: {
|
|
984
|
+
styleOverrides: {
|
|
985
|
+
root: {
|
|
986
|
+
'& .MuiListItem-root:not(:last-child)': {
|
|
987
|
+
position: 'relative',
|
|
988
|
+
'&:before': listBottomBorder,
|
|
989
|
+
},
|
|
990
|
+
'& .MuiMenuItem-root:not(:last-child)': {
|
|
991
|
+
position: 'relative',
|
|
992
|
+
'&:before': listBottomBorder,
|
|
993
|
+
},
|
|
994
|
+
},
|
|
995
|
+
},
|
|
996
|
+
},
|
|
997
|
+
MuiCard: {
|
|
998
|
+
styleOverrides: {
|
|
999
|
+
root: { border: `1px solid ${theme.palette.grey[500]}` },
|
|
1000
|
+
},
|
|
1001
|
+
},
|
|
1002
|
+
MuiStepLabel: {
|
|
1003
|
+
styleOverrides: {
|
|
1004
|
+
label: {
|
|
1005
|
+
'&.Mui-disabled': {
|
|
1006
|
+
color: theme.palette.grey[800],
|
|
1007
|
+
},
|
|
1008
|
+
},
|
|
1009
|
+
},
|
|
1010
|
+
},
|
|
1011
|
+
MuiStepConnector: {
|
|
1012
|
+
styleOverrides: { line: { borderColor: theme.palette.grey[500] } },
|
|
1013
|
+
},
|
|
1014
|
+
},
|
|
1015
|
+
});
|
|
1016
|
+
export function prepareTheme(colorMap) {
|
|
1017
|
+
const accessibility = getAccessabilityValue();
|
|
1018
|
+
const colors = generateColorsList(colorMap);
|
|
1019
|
+
const overrideTheme = {
|
|
1020
|
+
palette: {
|
|
1021
|
+
common: { black: '#000', white: '#FFF' },
|
|
1022
|
+
primary: {
|
|
1023
|
+
light: colors['primary-light'],
|
|
1024
|
+
main: colors['primary'],
|
|
1025
|
+
dark: colors['tint'],
|
|
1026
|
+
},
|
|
1027
|
+
secondary: {
|
|
1028
|
+
main: colors['dark'],
|
|
1029
|
+
},
|
|
1030
|
+
error: {
|
|
1031
|
+
main: colors['error-text'],
|
|
1032
|
+
},
|
|
1033
|
+
warning: {
|
|
1034
|
+
main: colors['warning-border'],
|
|
1035
|
+
},
|
|
1036
|
+
background: {
|
|
1037
|
+
default: '#F9F9F9',
|
|
1038
|
+
},
|
|
1039
|
+
grey: {
|
|
1040
|
+
100: '#E9ECF3',
|
|
1041
|
+
400: '#C2C8D6',
|
|
1042
|
+
700: '#838895',
|
|
1043
|
+
800: '#50586D',
|
|
1044
|
+
900: '#2A3246',
|
|
1045
|
+
},
|
|
1046
|
+
yellow: { main: colors['accent'] },
|
|
1047
|
+
divider: accessibility ? theme.palette.grey[500] : '#E9EAEC',
|
|
1048
|
+
success: {
|
|
1049
|
+
main: colors['success-text'],
|
|
1050
|
+
},
|
|
1051
|
+
text: {
|
|
1052
|
+
primary: colors['dark'],
|
|
1053
|
+
secondary: colors['neutral'],
|
|
1054
|
+
disabled: colors['neutral-medium'],
|
|
1055
|
+
warning: colors['warning-border'],
|
|
1056
|
+
},
|
|
1057
|
+
icons: {
|
|
1058
|
+
main: colors['dark'],
|
|
1059
|
+
hover: colors['primary'],
|
|
1060
|
+
},
|
|
1061
|
+
action: {
|
|
1062
|
+
active: colors['accent'],
|
|
1063
|
+
selected: colors['primary-light'],
|
|
1064
|
+
hover: colors['primary-light'],
|
|
1065
|
+
hoverText: colors['tint'],
|
|
1066
|
+
focus: colors['primary'],
|
|
1067
|
+
focusOpacity: 0.2,
|
|
1068
|
+
disabled: colors['neutral-medium'],
|
|
1069
|
+
hoverOpacity: 0.2,
|
|
1070
|
+
},
|
|
1071
|
+
},
|
|
1072
|
+
components: {
|
|
1073
|
+
MuiCssBaseline: {
|
|
1074
|
+
styleOverrides: {
|
|
1075
|
+
html: {
|
|
1076
|
+
':root': mapKeys(colors, (_, name) => `--color-${name}`),
|
|
1077
|
+
},
|
|
1078
|
+
body: {
|
|
1079
|
+
color: colors['dark'],
|
|
1080
|
+
'::-moz-selection': {
|
|
1081
|
+
background: colors['primary-light'],
|
|
1082
|
+
},
|
|
1083
|
+
'::selection': {
|
|
1084
|
+
background: colors['primary-light'],
|
|
1085
|
+
},
|
|
1086
|
+
'.datepicker-wrapper, .react-datepicker__portal,.react-datepicker-popper': {
|
|
1087
|
+
'& .react-datepicker__day': {
|
|
1088
|
+
'&--selected, &--in-range': {
|
|
1089
|
+
backgroundColor: colors['primary-dark'],
|
|
1090
|
+
},
|
|
1091
|
+
'&--keyboard-selected, &--highlighted': {
|
|
1092
|
+
backgroundColor: lighten(colors['primary'], 0.05),
|
|
1093
|
+
},
|
|
1094
|
+
'&--in-selecting-range, &:hover': {
|
|
1095
|
+
backgroundColor: colors['primary'] + '1a',
|
|
1096
|
+
},
|
|
1097
|
+
},
|
|
1098
|
+
},
|
|
1099
|
+
'a:any-link': {
|
|
1100
|
+
color: colors['primary'],
|
|
1101
|
+
'&:hover': {
|
|
1102
|
+
color: colors['primary-dark'],
|
|
1103
|
+
},
|
|
1104
|
+
},
|
|
1105
|
+
},
|
|
1106
|
+
},
|
|
1107
|
+
},
|
|
1108
|
+
...(accessibility
|
|
1109
|
+
? accessibilitySwitchOptions
|
|
1110
|
+
: {
|
|
1111
|
+
MuiSwitch: {
|
|
1112
|
+
styleOverrides: {
|
|
1113
|
+
track: {
|
|
1114
|
+
background: colors['primary-light'],
|
|
1115
|
+
},
|
|
1116
|
+
},
|
|
1117
|
+
},
|
|
1118
|
+
}),
|
|
1119
|
+
MuiInputBase: {
|
|
1120
|
+
styleOverrides: {
|
|
1121
|
+
root: {
|
|
1122
|
+
color: colors['dark'],
|
|
1123
|
+
'&:hover': {
|
|
1124
|
+
borderColor: colors['primary'] + '!important',
|
|
1125
|
+
},
|
|
1126
|
+
'&.Mui-focused': {
|
|
1127
|
+
boxShadow: `${colors['primary-light']} 0 0 3px` + '!important',
|
|
1128
|
+
},
|
|
1129
|
+
},
|
|
1130
|
+
},
|
|
1131
|
+
},
|
|
1132
|
+
MuiRadio: {
|
|
1133
|
+
styleOverrides: {
|
|
1134
|
+
root: {
|
|
1135
|
+
'&:hover': {
|
|
1136
|
+
color: colors['primary'] + '!important',
|
|
1137
|
+
},
|
|
1138
|
+
},
|
|
1139
|
+
},
|
|
1140
|
+
},
|
|
1141
|
+
MuiButtonBase: {
|
|
1142
|
+
styleOverrides: {
|
|
1143
|
+
root: {
|
|
1144
|
+
'&& .MuiCircularProgress-root': {
|
|
1145
|
+
color: colors['primary'],
|
|
1146
|
+
},
|
|
1147
|
+
'&.MuiButton-outlinedPrimary': {
|
|
1148
|
+
'&:hover': {
|
|
1149
|
+
background: colors['primary-light'],
|
|
1150
|
+
},
|
|
1151
|
+
},
|
|
1152
|
+
'&.MuiButton-text': {
|
|
1153
|
+
'&:hover': {
|
|
1154
|
+
color: colors['primary-dark'],
|
|
1155
|
+
},
|
|
1156
|
+
},
|
|
1157
|
+
},
|
|
1158
|
+
},
|
|
1159
|
+
},
|
|
1160
|
+
MuiInputLabel: {
|
|
1161
|
+
styleOverrides: {
|
|
1162
|
+
root: {
|
|
1163
|
+
color: colors['dark'],
|
|
1164
|
+
},
|
|
1165
|
+
},
|
|
1166
|
+
},
|
|
1167
|
+
MuiFormControl: {
|
|
1168
|
+
styleOverrides: {
|
|
1169
|
+
root: {
|
|
1170
|
+
'& p.MuiTypography-root': {
|
|
1171
|
+
color: colors['dark'],
|
|
1172
|
+
},
|
|
1173
|
+
},
|
|
1174
|
+
},
|
|
1175
|
+
},
|
|
1176
|
+
MuiAutocomplete: {
|
|
1177
|
+
styleOverrides: {
|
|
1178
|
+
option: {
|
|
1179
|
+
'&[aria-selected="true"]': {
|
|
1180
|
+
background: colors['primary'] + '!important',
|
|
1181
|
+
},
|
|
1182
|
+
'&:not([aria-selected="true"])': {
|
|
1183
|
+
'&:hover, &.Mui-focused': {
|
|
1184
|
+
background: colors['primary-light'] + '!important',
|
|
1185
|
+
},
|
|
1186
|
+
},
|
|
1187
|
+
},
|
|
1188
|
+
},
|
|
1189
|
+
},
|
|
1190
|
+
MuiTab: {
|
|
1191
|
+
styleOverrides: {
|
|
1192
|
+
root: {
|
|
1193
|
+
color: colors['dark'],
|
|
1194
|
+
'&:hover': {
|
|
1195
|
+
color: colors['tint'],
|
|
1196
|
+
},
|
|
1197
|
+
},
|
|
1198
|
+
},
|
|
1199
|
+
},
|
|
1200
|
+
MuiIconButton: {
|
|
1201
|
+
styleOverrides: {
|
|
1202
|
+
root: {
|
|
1203
|
+
color: colors['neutral'],
|
|
1204
|
+
},
|
|
1205
|
+
},
|
|
1206
|
+
},
|
|
1207
|
+
MuiLink: {
|
|
1208
|
+
styleOverrides: {
|
|
1209
|
+
root: {
|
|
1210
|
+
'&:hover': {
|
|
1211
|
+
color: colors['primary-dark'],
|
|
1212
|
+
},
|
|
1213
|
+
},
|
|
1214
|
+
},
|
|
1215
|
+
},
|
|
1216
|
+
MuiCheckbox: {
|
|
1217
|
+
styleOverrides: {
|
|
1218
|
+
root: {
|
|
1219
|
+
'&:hover svg': {
|
|
1220
|
+
color: colors['primary'],
|
|
1221
|
+
},
|
|
1222
|
+
},
|
|
1223
|
+
},
|
|
1224
|
+
},
|
|
1225
|
+
},
|
|
1226
|
+
};
|
|
1227
|
+
return createTheme(undefined, accessibility ? accessibilityTheme : theme, overrideTheme);
|
|
1228
|
+
}
|