@laerdal/life-react-components 3.5.1-dev.12 → 3.5.1-dev.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Accordion/AccordionItem.js +69 -47
- package/dist/Accordion/AccordionMenu.js +91 -64
- package/dist/Accordion/ContentAccordion.js +154 -105
- package/dist/Accordion/index.js +8 -7
- package/dist/Accordion/styles.js +16 -12
- package/dist/AuthPage/AuthPage.d.ts +1 -1
- package/dist/AuthPage/AuthPage.js +36 -29
- package/dist/AuthPage/ScreenSetsContainer.js +9 -9
- package/dist/AuthPage/index.js +5 -4
- package/dist/Banners/Banner.d.ts +2 -2
- package/dist/Banners/Banner.js +182 -112
- package/dist/Banners/OverviewBanner.d.ts +1 -1
- package/dist/Banners/OverviewBanner.js +32 -39
- package/dist/Banners/index.js +5 -4
- package/dist/Banners/styles.js +53 -55
- package/dist/Breadcrumb/Breadcrumb.d.ts +1 -1
- package/dist/Breadcrumb/Breadcrumb.js +126 -67
- package/dist/Breadcrumb/BreadcrumbItem.js +2 -1
- package/dist/Breadcrumb/index.js +5 -4
- package/dist/Breadcrumb/styles.js +32 -24
- package/dist/Button/BackButton.js +48 -45
- package/dist/Button/Button.js +195 -85
- package/dist/Button/DualFunctionButton.js +160 -71
- package/dist/Button/Iconbutton.js +127 -70
- package/dist/Button/index.js +9 -8
- package/dist/Card/HorizontalCard/HorizontalCard.js +78 -55
- package/dist/Card/HorizontalCard/HorizontalCardActions.d.ts +1 -1
- package/dist/Card/HorizontalCard/HorizontalCardActions.js +92 -39
- package/dist/Card/HorizontalCard/HorizontalCardBody.d.ts +1 -1
- package/dist/Card/HorizontalCard/HorizontalCardBody.js +38 -23
- package/dist/Card/HorizontalCard/HorizontalCardThumbnail.d.ts +1 -1
- package/dist/Card/HorizontalCard/HorizontalCardThumbnail.js +34 -21
- package/dist/Card/HorizontalCard/index.js +5 -4
- package/dist/Card/HorizontalCard/types.d.ts +5 -5
- package/dist/Card/HorizontalCard/types.js +2 -1
- package/dist/Card/VerticalCard/Card.js +81 -61
- package/dist/Card/VerticalCard/CardBottomSection.js +110 -45
- package/dist/Card/VerticalCard/CardMiddleSection.js +66 -32
- package/dist/Card/VerticalCard/CardTopSection.js +101 -33
- package/dist/Card/VerticalCard/index.js +8 -7
- package/dist/Card/index.js +3 -2
- package/dist/Chips/ActionChip.js +63 -41
- package/dist/Chips/ChipStyles.js +11 -12
- package/dist/Chips/ChipTypes.d.ts +1 -1
- package/dist/Chips/ChipTypes.js +2 -1
- package/dist/Chips/ChoiceChips.js +93 -66
- package/dist/Chips/FilterChip.js +64 -43
- package/dist/Chips/InputChip.js +106 -65
- package/dist/Chips/index.js +7 -6
- package/dist/ChipsInput/ChipDropdownInput.js +361 -224
- package/dist/ChipsInput/ChipInput.js +124 -95
- package/dist/ChipsInput/ChipInputField.js +195 -114
- package/dist/ChipsInput/ChipInputTypes.js +2 -1
- package/dist/ChipsInput/index.js +3 -2
- package/dist/Dropdown/BasicDropdown.d.ts +3 -3
- package/dist/Dropdown/BasicDropdown.js +305 -153
- package/dist/Dropdown/CommonStyling.js +44 -24
- package/dist/Dropdown/DropdownButton.js +206 -103
- package/dist/Dropdown/DropdownButtonTypes.d.ts +3 -3
- package/dist/Dropdown/DropdownButtonTypes.js +2 -1
- package/dist/Dropdown/DropdownContent.js +605 -339
- package/dist/Dropdown/DropdownFilter.js +318 -161
- package/dist/Dropdown/index.js +9 -8
- package/dist/Footer/Components/FooterBottomLinks.js +41 -20
- package/dist/Footer/Components/FooterDropdownLinks.js +61 -25
- package/dist/Footer/Components/FooterNavSection.js +62 -32
- package/dist/Footer/Components/FooterNewsletterAndSocialSection.js +95 -42
- package/dist/Footer/Components/FooterTop.js +60 -34
- package/dist/Footer/Footer.js +20 -17
- package/dist/Footer/SiteFooter.js +89 -51
- package/dist/Footer/index.js +3 -2
- package/dist/GlobalNavigationBar/GlobalNavigationBar.d.ts +1 -1
- package/dist/GlobalNavigationBar/GlobalNavigationBar.js +192 -89
- package/dist/GlobalNavigationBar/Logo.d.ts +1 -1
- package/dist/GlobalNavigationBar/Logo.js +74 -33
- package/dist/GlobalNavigationBar/desktop/DesktopActions.js +146 -88
- package/dist/GlobalNavigationBar/desktop/ExtendedMainMenu.d.ts +1 -1
- package/dist/GlobalNavigationBar/desktop/ExtendedMainMenu.js +66 -42
- package/dist/GlobalNavigationBar/desktop/MainMenu.d.ts +1 -1
- package/dist/GlobalNavigationBar/desktop/MainMenu.js +282 -175
- package/dist/GlobalNavigationBar/desktop/RightSideNav.d.ts +1 -1
- package/dist/GlobalNavigationBar/desktop/RightSideNav.js +64 -46
- package/dist/GlobalNavigationBar/desktop/SubMenu.d.ts +1 -1
- package/dist/GlobalNavigationBar/desktop/SubMenu.js +248 -131
- package/dist/GlobalNavigationBar/desktop/UserMenu.js +155 -90
- package/dist/GlobalNavigationBar/index.js +4 -3
- package/dist/GlobalNavigationBar/mobile/CommonStyles.js +26 -28
- package/dist/GlobalNavigationBar/mobile/MobileActionContainer.js +32 -18
- package/dist/GlobalNavigationBar/mobile/MobileMenu.d.ts +1 -1
- package/dist/GlobalNavigationBar/mobile/MobileMenu.js +146 -94
- package/dist/GlobalNavigationBar/mobile/MobileMenuContent.js +145 -89
- package/dist/GlobalNavigationBar/mobile/MobileMenuHeader.js +152 -108
- package/dist/GlobalNavigationBar/types.d.ts +8 -8
- package/dist/GlobalNavigationBar/types.js +2 -1
- package/dist/GlobalNavigationBar/utils.js +10 -7
- package/dist/HyperLink/HyperLink.js +42 -36
- package/dist/HyperLink/index.js +4 -3
- package/dist/HyperLink/styling.js +7 -9
- package/dist/Image/ImageWithFallbacks.d.ts +1 -1
- package/dist/Image/ImageWithFallbacks.js +106 -87
- package/dist/Image/index.js +3 -2
- package/dist/InputFields/Checkbox.js +95 -65
- package/dist/InputFields/DatepickerField.d.ts +1 -1
- package/dist/InputFields/DatepickerField.js +335 -227
- package/dist/InputFields/DatepickerFieldHeader.js +80 -43
- package/dist/InputFields/Label.d.ts +1 -1
- package/dist/InputFields/Label.js +116 -77
- package/dist/InputFields/NumberField.js +304 -194
- package/dist/InputFields/PasswordField.d.ts +1 -1
- package/dist/InputFields/PasswordField.js +129 -60
- package/dist/InputFields/QuickSearch.d.ts +1 -1
- package/dist/InputFields/QuickSearch.js +189 -92
- package/dist/InputFields/RadioButton.d.ts +1 -1
- package/dist/InputFields/RadioButton.js +96 -54
- package/dist/InputFields/ResponsiveComponentWrapper.d.ts +1 -1
- package/dist/InputFields/ResponsiveComponentWrapper.js +44 -20
- package/dist/InputFields/RichTextField.js +111 -83
- package/dist/InputFields/SearchBar.d.ts +1 -1
- package/dist/InputFields/SearchBar.js +187 -63
- package/dist/InputFields/TextField.d.ts +1 -1
- package/dist/InputFields/TextField.js +121 -51
- package/dist/InputFields/Textarea.js +88 -57
- package/dist/InputFields/components/SearchBarInput.d.ts +1 -1
- package/dist/InputFields/components/SearchBarInput.js +73 -26
- package/dist/InputFields/components/SearchField.js +45 -44
- package/dist/InputFields/index.js +14 -13
- package/dist/InputFields/styling.js +38 -33
- package/dist/InputFields/types.d.ts +2 -2
- package/dist/InputFields/types.js +3 -2
- package/dist/Layouts/index.js +41 -25
- package/dist/LinearProgress/LinearProgress.js +105 -78
- package/dist/LinearProgress/index.js +4 -3
- package/dist/List/ListRow.js +140 -83
- package/dist/List/index.js +3 -2
- package/dist/LoadingIndicator/LoadingIndicator.d.ts +1 -1
- package/dist/LoadingIndicator/LoadingIndicator.js +46 -26
- package/dist/LoadingIndicator/index.js +2 -1
- package/dist/LoadingPage/GlobalLoadingPage.js +36 -26
- package/dist/LoadingPage/index.js +2 -1
- package/dist/MenuItem/MenuItem.d.ts +1 -1
- package/dist/MenuItem/MenuItem.js +101 -60
- package/dist/MenuItem/index.js +2 -1
- package/dist/MiniProductCard/MiniProductCard.d.ts +1 -1
- package/dist/MiniProductCard/MiniProductCard.js +47 -30
- package/dist/MiniProductCard/index.js +2 -1
- package/dist/Modals/Modal.d.ts +1 -1
- package/dist/Modals/Modal.js +55 -36
- package/dist/Modals/ModalContainer.d.ts +2 -2
- package/dist/Modals/ModalContainer.js +185 -130
- package/dist/Modals/ModalContent.js +246 -159
- package/dist/Modals/ModalDialog.js +339 -166
- package/dist/Modals/ModalNote.js +66 -27
- package/dist/Modals/ModalStyles.js +94 -53
- package/dist/Modals/ModalTypes.d.ts +2 -2
- package/dist/Modals/ModalTypes.js +2 -1
- package/dist/Modals/index.js +7 -6
- package/dist/NavItem/NavItem.d.ts +1 -1
- package/dist/NavItem/NavItem.js +18 -26
- package/dist/NavItem/NestedNavItem.js +28 -18
- package/dist/NavItem/index.js +2 -1
- package/dist/NotificationDot/NotificationDot.js +47 -17
- package/dist/NotificationDot/index.js +2 -1
- package/dist/Paginator/Paginator.js +147 -77
- package/dist/Paginator/index.js +3 -2
- package/dist/Panel/Panel.d.ts +1 -1
- package/dist/Panel/Panel.js +131 -82
- package/dist/Panel/index.js +2 -1
- package/dist/Popover/Popover.js +226 -101
- package/dist/Popover/index.js +2 -1
- package/dist/ProfileButton/ProfileButton.d.ts +2 -2
- package/dist/ProfileButton/ProfileButton.js +75 -52
- package/dist/ProfileButton/index.js +2 -1
- package/dist/QuizButton/QuizButton.d.ts +1 -1
- package/dist/QuizButton/QuizButton.js +121 -53
- package/dist/QuizButton/index.js +2 -1
- package/dist/SegmentControl/SegmentControl.js +78 -57
- package/dist/SegmentControl/index.js +3 -2
- package/dist/Services/functions.js +12 -11
- package/dist/SideMenu/SideMenu.js +30 -43
- package/dist/SideMenu/SideMenuBody.js +38 -24
- package/dist/SideMenu/SideMenuFooter.js +46 -43
- package/dist/SideMenu/SideMenuHeader.js +42 -46
- package/dist/SideMenu/index.js +3 -2
- package/dist/SideMenu/types.d.ts +3 -3
- package/dist/SideMenu/types.js +2 -1
- package/dist/SkipToContent/SkipToContent.d.ts +1 -1
- package/dist/SkipToContent/SkipToContent.js +24 -17
- package/dist/SkipToContent/index.js +2 -1
- package/dist/Switcher/MobileCustomMenuContent.js +37 -26
- package/dist/Switcher/MobileSwitcherMenu.js +55 -21
- package/dist/Switcher/SwitcherMenuItem.js +44 -18
- package/dist/Switcher/index.js +4 -3
- package/dist/Table/Table.js +391 -286
- package/dist/Table/TableBody.js +244 -116
- package/dist/Table/TableFooter.js +94 -41
- package/dist/Table/TableHeaders.js +31 -26
- package/dist/Table/TableStyles.js +48 -40
- package/dist/Table/TableTypes.d.ts +4 -4
- package/dist/Table/TableTypes.js +2 -2
- package/dist/Table/index.js +4 -3
- package/dist/Tabs/HorizontalTabs.js +161 -116
- package/dist/Tabs/TabLink.js +117 -76
- package/dist/Tabs/Tabs.d.ts +1 -1
- package/dist/Tabs/Tabs.js +80 -62
- package/dist/Tabs/VerticalTabs.js +46 -13
- package/dist/Tabs/index.js +4 -3
- package/dist/Tag/Tag.d.ts +2 -2
- package/dist/Tag/Tag.js +49 -41
- package/dist/Tag/index.js +2 -1
- package/dist/Tile/Tile.js +42 -43
- package/dist/Tile/TileBody.js +18 -15
- package/dist/Tile/TileCommonItems.js +117 -75
- package/dist/Tile/TileFooter.js +28 -19
- package/dist/Tile/TileHeader.js +81 -57
- package/dist/Tile/TileTypes.d.ts +8 -8
- package/dist/Tile/TileTypes.js +2 -1
- package/dist/Tile/index.js +4 -3
- package/dist/Toasters/Toast.d.ts +2 -2
- package/dist/Toasters/Toast.js +241 -166
- package/dist/Toasters/ToastContext.d.ts +2 -2
- package/dist/Toasters/ToastContext.js +145 -69
- package/dist/Toasters/index.js +5 -4
- package/dist/Toggles/ToggleButton.js +71 -48
- package/dist/Toggles/ToggleSwitch.js +83 -61
- package/dist/Toggles/TogglerStyles.js +12 -13
- package/dist/Toggles/TogglerTypes.js +2 -1
- package/dist/Toggles/index.js +4 -3
- package/dist/Tooltips/TooltipOverflow.js +102 -71
- package/dist/Tooltips/TooltipStyles.d.ts +1 -1
- package/dist/Tooltips/TooltipStyles.js +70 -41
- package/dist/Tooltips/TooltipTypes.js +2 -1
- package/dist/Tooltips/TooltipWrapper.js +93 -65
- package/dist/Tooltips/index.js +4 -3
- package/dist/assets/index.d.ts +1 -1
- package/dist/assets/index.js +154 -41
- package/dist/common/ActionWithin.js +45 -25
- package/dist/common/ClickOutside.js +23 -20
- package/dist/common/EventHandlers.js +9 -8
- package/dist/common/FocusOutside.js +23 -20
- package/dist/common/FocusVisible.d.ts +1 -1
- package/dist/common/FocusVisible.js +89 -75
- package/dist/common/InputStyling.js +6 -8
- package/dist/common/NavigationHelper.js +24 -18
- package/dist/common/ScrollableContainer.js +25 -22
- package/dist/common/StackState.js +29 -10
- package/dist/common/index.js +7 -6
- package/dist/icons/contenticons/Adaptive.js +37 -31
- package/dist/icons/contenticons/Add.js +37 -31
- package/dist/icons/contenticons/Adult.js +37 -31
- package/dist/icons/contenticons/AedNoShockAdvised.js +37 -31
- package/dist/icons/contenticons/AedPads.js +37 -31
- package/dist/icons/contenticons/AedPadsCorrect.js +37 -31
- package/dist/icons/contenticons/AedPadsError.js +37 -31
- package/dist/icons/contenticons/AedShockAdvised.js +37 -31
- package/dist/icons/contenticons/Ambulance.js +37 -31
- package/dist/icons/contenticons/Assignments.js +37 -31
- package/dist/icons/contenticons/Attention.js +37 -31
- package/dist/icons/contenticons/AutomaticMode.js +37 -31
- package/dist/icons/contenticons/AwardWinningPerson.js +37 -31
- package/dist/icons/contenticons/Biohazard.js +37 -31
- package/dist/icons/contenticons/Bleeding.js +37 -31
- package/dist/icons/contenticons/Book.js +37 -31
- package/dist/icons/contenticons/Buildings.js +37 -31
- package/dist/icons/contenticons/CPRCall.js +37 -31
- package/dist/icons/contenticons/CPRCycles.js +37 -31
- package/dist/icons/contenticons/CPRTraining.js +37 -31
- package/dist/icons/contenticons/Calendar.js +37 -31
- package/dist/icons/contenticons/Call.js +37 -31
- package/dist/icons/contenticons/Certificate.js +37 -31
- package/dist/icons/contenticons/ChestCompressionFraction.js +37 -31
- package/dist/icons/contenticons/Child.js +37 -31
- package/dist/icons/contenticons/Cleaning.js +37 -31
- package/dist/icons/contenticons/ClinicalFindings.js +37 -31
- package/dist/icons/contenticons/Cloud.js +37 -31
- package/dist/icons/contenticons/CloudAttension.js +37 -31
- package/dist/icons/contenticons/CloudChecked.js +37 -31
- package/dist/icons/contenticons/CloudDownload.js +37 -31
- package/dist/icons/contenticons/CloudLocked.js +37 -31
- package/dist/icons/contenticons/CloudNoConnection.js +37 -31
- package/dist/icons/contenticons/CloudSyncing.js +37 -31
- package/dist/icons/contenticons/CloudUpload.js +37 -31
- package/dist/icons/contenticons/Code.js +37 -31
- package/dist/icons/contenticons/CoffeeBreak.js +37 -31
- package/dist/icons/contenticons/Contact.js +37 -31
- package/dist/icons/contenticons/ContactInfo.js +37 -31
- package/dist/icons/contenticons/Cookie.js +37 -31
- package/dist/icons/contenticons/CountAloud.js +37 -31
- package/dist/icons/contenticons/Dashboard.js +37 -31
- package/dist/icons/contenticons/Data.js +37 -31
- package/dist/icons/contenticons/DecisionFlow.js +37 -31
- package/dist/icons/contenticons/Defribilator.js +37 -31
- package/dist/icons/contenticons/DefribilatorMonitor.js +37 -31
- package/dist/icons/contenticons/Depth.js +37 -31
- package/dist/icons/contenticons/Desktop.js +37 -31
- package/dist/icons/contenticons/DeviceChecked.js +37 -31
- package/dist/icons/contenticons/Dispatcher.js +37 -31
- package/dist/icons/contenticons/Doctor.js +37 -31
- package/dist/icons/contenticons/DocumentChecked.js +37 -31
- package/dist/icons/contenticons/Download.js +37 -31
- package/dist/icons/contenticons/ELearning.js +37 -31
- package/dist/icons/contenticons/EMSRescuer.js +37 -31
- package/dist/icons/contenticons/ESimulation.js +37 -31
- package/dist/icons/contenticons/Edit.js +37 -31
- package/dist/icons/contenticons/Educator.js +37 -31
- package/dist/icons/contenticons/Elderly.js +37 -31
- package/dist/icons/contenticons/Embryo.js +37 -31
- package/dist/icons/contenticons/EventLog.js +37 -31
- package/dist/icons/contenticons/Faq.js +37 -31
- package/dist/icons/contenticons/Female.js +37 -31
- package/dist/icons/contenticons/FirstAid.js +37 -31
- package/dist/icons/contenticons/Geriatric.js +37 -31
- package/dist/icons/contenticons/GiftCard.js +37 -31
- package/dist/icons/contenticons/Goals.js +37 -31
- package/dist/icons/contenticons/Grid.js +37 -31
- package/dist/icons/contenticons/GuidedTour.js +37 -31
- package/dist/icons/contenticons/HandPlacement.js +37 -31
- package/dist/icons/contenticons/HandPlacementCorrect.js +37 -31
- package/dist/icons/contenticons/HandPlacementIncorrect.js +37 -31
- package/dist/icons/contenticons/HeadTilt.js +37 -31
- package/dist/icons/contenticons/Heart.js +37 -31
- package/dist/icons/contenticons/HeartPulse.js +37 -31
- package/dist/icons/contenticons/HeartShock.js +37 -31
- package/dist/icons/contenticons/Help.js +37 -31
- package/dist/icons/contenticons/Hierarchy.js +37 -31
- package/dist/icons/contenticons/Hospital.js +37 -31
- package/dist/icons/contenticons/Hospitalized.js +37 -31
- package/dist/icons/contenticons/House.js +37 -31
- package/dist/icons/contenticons/Infant.js +37 -31
- package/dist/icons/contenticons/Information.js +37 -31
- package/dist/icons/contenticons/Injustice.js +37 -31
- package/dist/icons/contenticons/Institute.js +37 -31
- package/dist/icons/contenticons/Justice.js +37 -31
- package/dist/icons/contenticons/Laptop.js +37 -31
- package/dist/icons/contenticons/Leaflet.js +37 -31
- package/dist/icons/contenticons/Learner.js +37 -31
- package/dist/icons/contenticons/Levels.js +37 -31
- package/dist/icons/contenticons/LevelsDecreasing.js +37 -31
- package/dist/icons/contenticons/LevelsIncreasing.js +37 -31
- package/dist/icons/contenticons/LevelsStarred.js +37 -31
- package/dist/icons/contenticons/Maintenance.js +37 -31
- package/dist/icons/contenticons/Male.js +37 -31
- package/dist/icons/contenticons/Manikin.js +37 -31
- package/dist/icons/contenticons/ManikinCorrect.js +37 -31
- package/dist/icons/contenticons/ManikinError.js +37 -31
- package/dist/icons/contenticons/ManualMode.js +37 -31
- package/dist/icons/contenticons/MapPoint.js +37 -31
- package/dist/icons/contenticons/MaskLeak.js +37 -31
- package/dist/icons/contenticons/MedicalHistory.js +37 -31
- package/dist/icons/contenticons/MedicalRecord.js +37 -31
- package/dist/icons/contenticons/Medication.js +37 -31
- package/dist/icons/contenticons/Metronome.js +37 -31
- package/dist/icons/contenticons/MoodHappy.js +37 -31
- package/dist/icons/contenticons/MoodIndifferent.js +37 -31
- package/dist/icons/contenticons/MoodSad.js +37 -31
- package/dist/icons/contenticons/MoodVeryHappy.js +37 -31
- package/dist/icons/contenticons/MoodVerySad.js +37 -31
- package/dist/icons/contenticons/Newborn.js +37 -31
- package/dist/icons/contenticons/NoInterruption.js +37 -31
- package/dist/icons/contenticons/Note.js +37 -31
- package/dist/icons/contenticons/Pain.js +37 -31
- package/dist/icons/contenticons/Patient.js +37 -31
- package/dist/icons/contenticons/PatientAssignment.js +37 -31
- package/dist/icons/contenticons/PatientMonitor.js +37 -31
- package/dist/icons/contenticons/PatientStretcher.js +37 -31
- package/dist/icons/contenticons/PatientTransfer.js +37 -31
- package/dist/icons/contenticons/PatientTreatment.js +37 -31
- package/dist/icons/contenticons/Person.js +37 -31
- package/dist/icons/contenticons/PhysiologicalModel.js +37 -31
- package/dist/icons/contenticons/PieChart.js +37 -31
- package/dist/icons/contenticons/Pill.js +37 -31
- package/dist/icons/contenticons/Pregnant.js +37 -31
- package/dist/icons/contenticons/Print.js +37 -31
- package/dist/icons/contenticons/ProvidersOrders.js +37 -31
- package/dist/icons/contenticons/Pulse.js +37 -31
- package/dist/icons/contenticons/RQICart.js +37 -31
- package/dist/icons/contenticons/Rate.js +37 -31
- package/dist/icons/contenticons/RateTooFast.js +37 -31
- package/dist/icons/contenticons/RateTooSlow.js +37 -31
- package/dist/icons/contenticons/Recoil.js +37 -31
- package/dist/icons/contenticons/Ruler.js +37 -31
- package/dist/icons/contenticons/Screens.js +37 -31
- package/dist/icons/contenticons/Search.js +37 -31
- package/dist/icons/contenticons/Sepsis.js +37 -31
- package/dist/icons/contenticons/Settings.js +37 -31
- package/dist/icons/contenticons/Shock.js +37 -31
- package/dist/icons/contenticons/ShockAdvised.js +37 -31
- package/dist/icons/contenticons/ShockAutomated.js +37 -31
- package/dist/icons/contenticons/ShockNotAdvised.js +37 -31
- package/dist/icons/contenticons/Sleep.js +37 -31
- package/dist/icons/contenticons/Smartphone.js +37 -31
- package/dist/icons/contenticons/Speech.js +37 -31
- package/dist/icons/contenticons/SpeechBubble.js +37 -31
- package/dist/icons/contenticons/SpeechBubbles.js +37 -31
- package/dist/icons/contenticons/Star.js +37 -31
- package/dist/icons/contenticons/Stethoscope.js +37 -31
- package/dist/icons/contenticons/Stock.js +37 -31
- package/dist/icons/contenticons/Stopwatch.js +37 -31
- package/dist/icons/contenticons/Suitcase.js +37 -31
- package/dist/icons/contenticons/SwitchCamera.js +37 -31
- package/dist/icons/contenticons/SwitchRoles.js +37 -31
- package/dist/icons/contenticons/Tablet.js +37 -31
- package/dist/icons/contenticons/Talking.js +37 -31
- package/dist/icons/contenticons/TargetGroup.js +37 -31
- package/dist/icons/contenticons/TaskTrainer.js +37 -31
- package/dist/icons/contenticons/TeamLead.js +37 -31
- package/dist/icons/contenticons/TeamWork.js +37 -31
- package/dist/icons/contenticons/Terms.js +37 -31
- package/dist/icons/contenticons/TimelineReview.js +37 -31
- package/dist/icons/contenticons/Translation.js +37 -31
- package/dist/icons/contenticons/Trophy.js +37 -31
- package/dist/icons/contenticons/Trophy1st.js +37 -31
- package/dist/icons/contenticons/Trophy2nd.js +37 -31
- package/dist/icons/contenticons/Trophy3rd.js +37 -31
- package/dist/icons/contenticons/TrophyStar.js +37 -31
- package/dist/icons/contenticons/Truck.js +37 -31
- package/dist/icons/contenticons/TwoRescuerCPR.js +37 -31
- package/dist/icons/contenticons/USB.js +37 -31
- package/dist/icons/contenticons/Ultrasound.js +37 -31
- package/dist/icons/contenticons/VentilationLungs.js +37 -31
- package/dist/icons/contenticons/VentilationPressure.js +37 -31
- package/dist/icons/contenticons/VentilationVolume.js +37 -31
- package/dist/icons/contenticons/Video.js +37 -31
- package/dist/icons/contenticons/VideoRecording.js +37 -31
- package/dist/icons/contenticons/Visibility.js +37 -31
- package/dist/icons/contenticons/VitalSigns.js +37 -31
- package/dist/icons/contenticons/index.js +180 -179
- package/dist/icons/index.d.ts +1 -1
- package/dist/icons/index.js +67 -41
- package/dist/icons/systemicons/Accessibility.js +37 -31
- package/dist/icons/systemicons/Add.js +37 -31
- package/dist/icons/systemicons/AddUser.js +37 -31
- package/dist/icons/systemicons/Adult.js +37 -31
- package/dist/icons/systemicons/AedPads.js +37 -31
- package/dist/icons/systemicons/AedPadsCorrect.js +37 -31
- package/dist/icons/systemicons/AedPadsError.js +37 -31
- package/dist/icons/systemicons/Archive.js +37 -31
- package/dist/icons/systemicons/ArrowCollapse.js +37 -31
- package/dist/icons/systemicons/ArrowDropDown.js +37 -31
- package/dist/icons/systemicons/ArrowDropLeft.js +37 -31
- package/dist/icons/systemicons/ArrowDropRight.js +37 -31
- package/dist/icons/systemicons/ArrowDropUp.js +37 -31
- package/dist/icons/systemicons/ArrowExpand.js +37 -31
- package/dist/icons/systemicons/ArrowLineDown.js +37 -31
- package/dist/icons/systemicons/ArrowLineLeft.js +37 -31
- package/dist/icons/systemicons/ArrowLineRight.js +37 -31
- package/dist/icons/systemicons/ArrowLineUp.js +37 -31
- package/dist/icons/systemicons/ArrowStopLeft.js +37 -31
- package/dist/icons/systemicons/ArrowStopRight.js +37 -31
- package/dist/icons/systemicons/Assignments.js +37 -31
- package/dist/icons/systemicons/Asterisk.js +37 -31
- package/dist/icons/systemicons/Attachment.js +37 -31
- package/dist/icons/systemicons/Attention.js +37 -31
- package/dist/icons/systemicons/AudioDescriptionOn.js +37 -31
- package/dist/icons/systemicons/BackwardsFiveSec.js +37 -31
- package/dist/icons/systemicons/Battery0.js +37 -31
- package/dist/icons/systemicons/Battery1.js +37 -31
- package/dist/icons/systemicons/Battery2.js +37 -31
- package/dist/icons/systemicons/Battery3.js +37 -31
- package/dist/icons/systemicons/Battery4.js +37 -31
- package/dist/icons/systemicons/Battery5.js +37 -31
- package/dist/icons/systemicons/Battery6.js +37 -31
- package/dist/icons/systemicons/BatteryFull.js +37 -31
- package/dist/icons/systemicons/Bluetooth.js +37 -31
- package/dist/icons/systemicons/Book.js +37 -31
- package/dist/icons/systemicons/BookmarkAdd.js +37 -31
- package/dist/icons/systemicons/BookmarkCollection.js +37 -31
- package/dist/icons/systemicons/BookmarkOff.js +37 -31
- package/dist/icons/systemicons/BookmarkOn.js +37 -31
- package/dist/icons/systemicons/Bullet.js +37 -31
- package/dist/icons/systemicons/Calendar.js +37 -31
- package/dist/icons/systemicons/CheckMark.js +37 -31
- package/dist/icons/systemicons/CheckboxOff.js +37 -31
- package/dist/icons/systemicons/CheckboxOn.js +37 -31
- package/dist/icons/systemicons/CheckboxSemi.js +37 -31
- package/dist/icons/systemicons/ChevronDown.js +37 -31
- package/dist/icons/systemicons/ChevronLeft.js +37 -31
- package/dist/icons/systemicons/ChevronRight.js +37 -31
- package/dist/icons/systemicons/ChevronUp.js +37 -31
- package/dist/icons/systemicons/Child.js +37 -31
- package/dist/icons/systemicons/Clear.js +37 -31
- package/dist/icons/systemicons/Close.js +37 -31
- package/dist/icons/systemicons/ClosedCaptionOn.js +37 -31
- package/dist/icons/systemicons/Cloud.js +37 -31
- package/dist/icons/systemicons/CloudAttention.js +37 -31
- package/dist/icons/systemicons/CloudCheck.js +37 -31
- package/dist/icons/systemicons/CloudDownload.js +37 -31
- package/dist/icons/systemicons/CloudLocked.js +37 -31
- package/dist/icons/systemicons/CloudNoConnection.js +37 -31
- package/dist/icons/systemicons/CloudSyncing.js +37 -31
- package/dist/icons/systemicons/CloudUpload.js +37 -31
- package/dist/icons/systemicons/CoffeeBreak.js +37 -31
- package/dist/icons/systemicons/Copy.js +37 -31
- package/dist/icons/systemicons/Dashboard.js +37 -31
- package/dist/icons/systemicons/DecisionFlow.js +37 -31
- package/dist/icons/systemicons/Delete.js +37 -31
- package/dist/icons/systemicons/Document.js +39 -31
- package/dist/icons/systemicons/Download.js +37 -31
- package/dist/icons/systemicons/DragHandle.js +37 -31
- package/dist/icons/systemicons/DragIndicator.js +37 -31
- package/dist/icons/systemicons/Edit.js +37 -31
- package/dist/icons/systemicons/Educator.js +37 -31
- package/dist/icons/systemicons/Equals.js +37 -31
- package/dist/icons/systemicons/EventLog.js +37 -31
- package/dist/icons/systemicons/Export.js +37 -31
- package/dist/icons/systemicons/ExportCVS.js +37 -31
- package/dist/icons/systemicons/ExportDoc.js +37 -31
- package/dist/icons/systemicons/ExportEXL.js +37 -31
- package/dist/icons/systemicons/ExportJpg.js +37 -31
- package/dist/icons/systemicons/ExportPDF.js +37 -31
- package/dist/icons/systemicons/ExportPNG.js +37 -31
- package/dist/icons/systemicons/ExtendTextArea.js +37 -31
- package/dist/icons/systemicons/Facebook.js +37 -31
- package/dist/icons/systemicons/Filter.js +37 -31
- package/dist/icons/systemicons/Flickr.js +37 -31
- package/dist/icons/systemicons/Forward.js +37 -31
- package/dist/icons/systemicons/ForwardFiveSec.js +37 -31
- package/dist/icons/systemicons/ForwardSlash.js +37 -31
- package/dist/icons/systemicons/Fullscreen.js +37 -31
- package/dist/icons/systemicons/FullscreenExit.js +37 -31
- package/dist/icons/systemicons/GearSettings.js +37 -31
- package/dist/icons/systemicons/GridView.js +37 -31
- package/dist/icons/systemicons/Group.js +37 -31
- package/dist/icons/systemicons/GuidedTour.js +37 -31
- package/dist/icons/systemicons/HeartShock.js +37 -31
- package/dist/icons/systemicons/Help.js +37 -31
- package/dist/icons/systemicons/Hierarchy.js +37 -31
- package/dist/icons/systemicons/History.js +37 -31
- package/dist/icons/systemicons/Home.js +37 -31
- package/dist/icons/systemicons/Image.js +37 -31
- package/dist/icons/systemicons/Infant.js +37 -31
- package/dist/icons/systemicons/Information.js +37 -31
- package/dist/icons/systemicons/Institute.js +37 -31
- package/dist/icons/systemicons/Keyboard.js +37 -31
- package/dist/icons/systemicons/Language.js +37 -31
- package/dist/icons/systemicons/Learner.js +37 -31
- package/dist/icons/systemicons/Legend.js +37 -31
- package/dist/icons/systemicons/Legend1Circle.js +37 -31
- package/dist/icons/systemicons/Legend2Triangle.js +37 -31
- package/dist/icons/systemicons/Legend3Star.js +37 -31
- package/dist/icons/systemicons/Legend4Square.js +37 -31
- package/dist/icons/systemicons/Legend5Diamond.js +37 -31
- package/dist/icons/systemicons/Legend6Nabla.js +37 -31
- package/dist/icons/systemicons/Legend7Pentagon.js +37 -31
- package/dist/icons/systemicons/Legend8Rectangle.js +37 -31
- package/dist/icons/systemicons/LegendStrokeDashed.js +37 -31
- package/dist/icons/systemicons/LegendStrokeSolid.js +37 -31
- package/dist/icons/systemicons/LikeOff.js +37 -31
- package/dist/icons/systemicons/LikeOn.js +37 -31
- package/dist/icons/systemicons/Link.js +37 -31
- package/dist/icons/systemicons/LinkedIn.js +37 -31
- package/dist/icons/systemicons/ListView.js +37 -31
- package/dist/icons/systemicons/LoadingMedium.js +30 -8
- package/dist/icons/systemicons/LoadingSmall.js +30 -8
- package/dist/icons/systemicons/LockedOff.js +37 -31
- package/dist/icons/systemicons/LockedOn.js +37 -31
- package/dist/icons/systemicons/Login.js +37 -31
- package/dist/icons/systemicons/Logout.js +37 -31
- package/dist/icons/systemicons/Loop.js +37 -31
- package/dist/icons/systemicons/Mail.js +37 -31
- package/dist/icons/systemicons/Manikin.js +37 -31
- package/dist/icons/systemicons/MapPoint.js +37 -31
- package/dist/icons/systemicons/Menu.js +37 -31
- package/dist/icons/systemicons/Metronome.js +37 -31
- package/dist/icons/systemicons/Microphone.js +37 -31
- package/dist/icons/systemicons/Minus.js +37 -31
- package/dist/icons/systemicons/MoreHorizontal.js +37 -31
- package/dist/icons/systemicons/MoreVertical.js +37 -31
- package/dist/icons/systemicons/Notification.js +37 -31
- package/dist/icons/systemicons/NotificationNew.js +37 -31
- package/dist/icons/systemicons/OpenFolder.js +37 -31
- package/dist/icons/systemicons/OpenNewWindow.js +37 -31
- package/dist/icons/systemicons/OverView.js +37 -31
- package/dist/icons/systemicons/Pause.js +37 -31
- package/dist/icons/systemicons/PieChart.js +37 -31
- package/dist/icons/systemicons/Pin.js +37 -31
- package/dist/icons/systemicons/Play.js +37 -31
- package/dist/icons/systemicons/PlayList.js +37 -31
- package/dist/icons/systemicons/PlayOutline.js +37 -31
- package/dist/icons/systemicons/PlaybackSpeed.js +37 -31
- package/dist/icons/systemicons/Plus.js +37 -31
- package/dist/icons/systemicons/PointDown.js +37 -31
- package/dist/icons/systemicons/PointLeft.js +37 -31
- package/dist/icons/systemicons/PointRight.js +37 -31
- package/dist/icons/systemicons/PointUp.js +37 -31
- package/dist/icons/systemicons/Print.js +37 -31
- package/dist/icons/systemicons/RadioButtonOff.js +37 -31
- package/dist/icons/systemicons/RadioButtonOn.js +37 -31
- package/dist/icons/systemicons/Record.js +37 -31
- package/dist/icons/systemicons/Refresh.js +37 -31
- package/dist/icons/systemicons/Replay.js +37 -31
- package/dist/icons/systemicons/Rewind.js +37 -31
- package/dist/icons/systemicons/SUN.js +37 -31
- package/dist/icons/systemicons/Save.js +37 -31
- package/dist/icons/systemicons/Search.js +37 -31
- package/dist/icons/systemicons/SendTo.js +37 -31
- package/dist/icons/systemicons/Share.js +37 -31
- package/dist/icons/systemicons/Shock.js +37 -31
- package/dist/icons/systemicons/ShockAdvised.js +37 -31
- package/dist/icons/systemicons/ShockAutomated.js +37 -31
- package/dist/icons/systemicons/ShockNotAdvised.js +37 -31
- package/dist/icons/systemicons/ShoppingCart.js +37 -31
- package/dist/icons/systemicons/SkipForward.js +37 -31
- package/dist/icons/systemicons/Sort.js +37 -31
- package/dist/icons/systemicons/SpeechBuble.js +37 -31
- package/dist/icons/systemicons/StarFilled.js +37 -31
- package/dist/icons/systemicons/StarOutlined.js +37 -31
- package/dist/icons/systemicons/Stop.js +37 -31
- package/dist/icons/systemicons/Support.js +37 -31
- package/dist/icons/systemicons/SwitchApp.js +37 -31
- package/dist/icons/systemicons/Team.js +37 -31
- package/dist/icons/systemicons/TechnicalWarning.js +37 -31
- package/dist/icons/systemicons/ThumbsDown.js +37 -31
- package/dist/icons/systemicons/ThumbsUp.js +37 -31
- package/dist/icons/systemicons/Time.js +37 -31
- package/dist/icons/systemicons/TimeLimited.js +37 -31
- package/dist/icons/systemicons/Timeline.js +37 -31
- package/dist/icons/systemicons/Tip.js +37 -31
- package/dist/icons/systemicons/Transcript.js +37 -31
- package/dist/icons/systemicons/Translation.js +37 -31
- package/dist/icons/systemicons/Twitter.js +37 -31
- package/dist/icons/systemicons/Upload.js +37 -31
- package/dist/icons/systemicons/Usb.js +37 -31
- package/dist/icons/systemicons/User.js +37 -31
- package/dist/icons/systemicons/Video.js +37 -31
- package/dist/icons/systemicons/VisibleOff.js +37 -31
- package/dist/icons/systemicons/VisibleOn.js +37 -31
- package/dist/icons/systemicons/VolumeDown.js +37 -31
- package/dist/icons/systemicons/VolumeOff.js +37 -31
- package/dist/icons/systemicons/VolumeUp.js +37 -31
- package/dist/icons/systemicons/Youtube.js +37 -31
- package/dist/icons/systemicons/Zoom.js +37 -31
- package/dist/icons/systemicons/ZoomOut.js +37 -31
- package/dist/icons/systemicons/index.js +205 -204
- package/dist/index.js +46 -45
- package/dist/styles/WriteThemedColors.cjs +20 -0
- package/dist/styles/WriteThemedColors.cjs.map +1 -0
- package/dist/styles/WriteThemedColors.d.ts +3 -0
- package/dist/styles/WriteThemedColors.js +12 -0
- package/dist/styles/WriteThemedColors.js.map +1 -0
- package/dist/styles/breakpoints.js +7 -6
- package/dist/styles/colors.js +110 -89
- package/dist/styles/focus-styles.js +7 -9
- package/dist/styles/global.js +25 -13
- package/dist/styles/index.cjs +4 -4
- package/dist/styles/index.cjs.map +1 -1
- package/dist/styles/index.d.ts +2 -2
- package/dist/styles/index.js +18 -20
- package/dist/styles/index.js.map +1 -1
- package/dist/styles/overwritecolors.cjs +2 -2
- package/dist/styles/overwritecolors.cjs.map +1 -1
- package/dist/styles/overwritecolors.d.ts +2 -1
- package/dist/styles/overwritecolors.js +12 -12
- package/dist/styles/overwritecolors.js.map +1 -1
- package/dist/styles/shadowstyles.js +8 -7
- package/dist/styles/typography.d.ts +1 -1
- package/dist/styles/typography.js +279 -130
- package/dist/styles/z-indexes.js +17 -16
- package/dist/types.js +52 -51
- package/dist/utils/utils.js +4 -3
- package/package.json +1 -1
|
@@ -1,78 +1,105 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
};
|
|
16
|
-
var
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
var
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
(
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
return
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
|
|
4
|
+
import _pt from "prop-types";
|
|
5
|
+
var _excluded = ["size", "type", "variant", "label", "value", "max", "className"];
|
|
6
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
|
|
7
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import { Size } from '../types';
|
|
11
|
+
import styled from 'styled-components';
|
|
12
|
+
import { COLORS, ComponentLStyling, ComponentMStyling, ComponentSStyling, ComponentTextStyle } from '../styles';
|
|
13
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
15
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
|
+
export var Bar = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n flex: 1;\n height: 6px;\n\n &.small {\n height: 6px;\n }\n\n &.medium {\n height: 8px;\n }\n\n &.large {\n height: 12px;\n }\n\n background-color: ", ";\n\n &.active {\n background-color: ", ";\n }\n\n &.current {\n background-color: ", ";\n }\n\n &.inverted {\n background-color: ", ";\n }\n\n &.inverted.active {\n background-color: ", ";\n }\n\n &.inverted.current {\n background-color: ", ";\n }\n\n"])), COLORS.neutral_100, COLORS.accent1_400, COLORS.accent1_800, COLORS.neutral_600, COLORS.accent1_400, COLORS.white);
|
|
17
|
+
export var Dot = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 16px;\n height: 16px;\n\n\n &:after {\n content: '';\n display: block;\n width: 6px;\n height: 6px;\n border-radius: 50%;\n background-color: ", ";\n }\n\n &.small {\n &:after {\n width: 6px;\n height: 6px;\n }\n\n &.current:after {\n width: 10px;\n height: 10px;\n }\n }\n\n &.medium {\n &:after {\n width: 8px;\n height: 8px;\n }\n\n &.current:after {\n width: 12px;\n height: 12px;\n }\n }\n\n &.large {\n &:after {\n width: 12px;\n height: 12px;\n }\n\n &.current:after {\n width: 16px;\n height: 16px;\n }\n }\n\n\n &.active:after {\n background-color: ", ";\n }\n\n &.current:after {\n background-color: ", ";\n }\n\n &.inverted:after {\n background-color: ", ";\n }\n\n &.inverted.active:after {\n background-color: ", ";\n }\n\n &.inverted.current:after {\n background-color: ", ";\n }\n"])), COLORS.neutral_400, COLORS.accent1_600, COLORS.accent1_800, COLORS.neutral_400, COLORS.accent1_400, COLORS.white);
|
|
18
|
+
export var LineFill = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n height: 100%;\n max-width: 100%;\n position: absolute;\n z-index: 1;\n"])));
|
|
19
|
+
export var Line = styled.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n flex: 1;\n display: flex;\n align-items: center;\n justify-content: flex-start;\n position: relative;\n\n &:after {\n content: '';\n display: block;\n height: 100%;\n background-color: ", ";\n position: absolute;\n right: 0;\n }\n\n &:before {\n content: '';\n display: block;\n height: 100%;\n background-color: ", ";\n position: absolute;\n left: 0;\n }\n\n &.small {\n height: 6px;\n border-radius: 4px;\n\n ", " {\n border-radius: 4px;\n }\n\n &:after {\n width: 3px;\n border-top-right-radius: 6px;\n border-bottom-right-radius: 6px;\n }\n\n &:before {\n width: 3px;\n border-top-left-radius: 6px;\n border-bottom-left-radius: 6px;\n }\n }\n\n &.medium {\n height: 8px;\n border-radius: 4px;\n\n ", " {\n border-radius: 4px;\n }\n\n &:after {\n width: 4px;\n border-top-right-radius: 8px;\n border-bottom-right-radius: 8px;\n }\n\n &:before {\n width: 4px;\n border-top-left-radius: 8px;\n border-bottom-left-radius: 8px;\n }\n }\n\n &.large {\n height: 12px;\n border-radius: 6px;\n\n ", " {\n border-radius: 6px;\n }\n\n &:after {\n width: 6px;\n border-top-right-radius: 12px;\n border-bottom-right-radius: 12px;\n }\n\n &:before {\n width: 6px;\n border-top-left-radius: 12px;\n border-bottom-left-radius: 12px;\n }\n }\n\n background-color: ", ";\n\n ", " {\n background-color: ", ";\n }\n\n &.inverted {\n background-color: ", ";\n\n &:after,\n &:before {\n background-color: ", ";\n }\n\n ", " {\n background-color: ", ";\n }\n }\n"])), COLORS.neutral_500, COLORS.neutral_500, LineFill, LineFill, LineFill, COLORS.neutral_100, LineFill, COLORS.accent1_500, COLORS.neutral_700, COLORS.neutral_400, LineFill, COLORS.accent1_400);
|
|
20
|
+
var Label = styled.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n color: ", ";\n"])), COLORS.black);
|
|
21
|
+
var Content = styled.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n flex-direction: row;\n height: 16px;\n"])));
|
|
22
|
+
var Wrapper = styled.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n width: 100%;\n display: flex;\n flex-direction: column;\n gap: 8px;\n\n &.inverted {\n ", " {\n color: ", ";\n }\n }\n\n &.small {\n gap: 4px;\n\n ", " {\n ", "\n }\n\n ", " {\n gap: 4px;\n\n ", ":first-of-type {\n border-top-left-radius: 6px;\n border-bottom-left-radius: 6px;\n }\n\n ", ":last-of-type {\n border-top-right-radius: 6px;\n border-bottom-right-radius: 6px;\n }\n }\n }\n\n &.medium {\n ", " {\n ", "\n }\n\n ", " {\n gap: 6px;\n\n ", ":first-of-type {\n border-top-left-radius: 8px;\n border-bottom-left-radius: 8px;\n }\n\n ", ":last-of-type {\n border-top-right-radius: 8px;\n border-bottom-right-radius: 8px;\n }\n }\n }\n\n &.large {\n ", " {\n ", "\n }\n\n ", " {\n gap: 8px;\n\n ", ":first-of-type {\n border-top-left-radius: 12px;\n border-bottom-left-radius: 12px;\n }\n\n ", ":last-of-type {\n border-top-right-radius: 12px;\n border-bottom-right-radius: 12px;\n }\n }\n }\n\n &.dots.small,\n &.dots.medium {\n ", " {\n padding: 0 2px;\n }\n }\n\n &.dots.large {\n ", " {\n padding: 0 3px;\n }\n }\n"])), Label, COLORS.white, Label, ComponentSStyling(ComponentTextStyle.Regular, null), Content, Bar, Bar, Label, ComponentMStyling(ComponentTextStyle.Regular, null), Content, Bar, Bar, Label, ComponentLStyling(ComponentTextStyle.Regular, null), Content, Bar, Bar, Content, Content);
|
|
23
|
+
export var LinearProgressType;
|
|
24
|
+
(function (LinearProgressType) {
|
|
25
|
+
LinearProgressType["Dots"] = "dots";
|
|
26
|
+
LinearProgressType["Line"] = "line";
|
|
27
|
+
LinearProgressType["Bars"] = "bars";
|
|
28
|
+
})(LinearProgressType || (LinearProgressType = {}));
|
|
29
|
+
export var LinearProgressVariant;
|
|
30
|
+
(function (LinearProgressVariant) {
|
|
31
|
+
LinearProgressVariant["Normal"] = "normal";
|
|
32
|
+
LinearProgressVariant["Inverted"] = "inverted";
|
|
33
|
+
})(LinearProgressVariant || (LinearProgressVariant = {}));
|
|
34
|
+
var LinearProgress = function LinearProgress(_ref) {
|
|
35
|
+
var _ref$size = _ref.size,
|
|
36
|
+
size = _ref$size === void 0 ? Size.Medium : _ref$size,
|
|
37
|
+
_ref$type = _ref.type,
|
|
38
|
+
type = _ref$type === void 0 ? LinearProgressType.Line : _ref$type,
|
|
39
|
+
_ref$variant = _ref.variant,
|
|
40
|
+
variant = _ref$variant === void 0 ? LinearProgressVariant.Normal : _ref$variant,
|
|
41
|
+
label = _ref.label,
|
|
42
|
+
value = _ref.value,
|
|
43
|
+
max = _ref.max,
|
|
44
|
+
className = _ref.className,
|
|
45
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
46
|
+
var renderBars = function renderBars() {
|
|
47
|
+
return /*#__PURE__*/_jsx(_Fragment, {
|
|
48
|
+
children: Array.from(Array(max).keys()).map(function (i) {
|
|
49
|
+
return /*#__PURE__*/_jsx(Bar, {
|
|
50
|
+
className: "".concat(Math.ceil(value) >= i + 1 ? 'active' : '', " ").concat(Math.ceil(value) === i + 1 ? 'current' : '', " ").concat(variant, " ").concat(size)
|
|
51
|
+
}, i);
|
|
52
|
+
})
|
|
53
|
+
});
|
|
54
|
+
};
|
|
55
|
+
var renderDots = function renderDots() {
|
|
56
|
+
return /*#__PURE__*/_jsx(_Fragment, {
|
|
57
|
+
children: Array.from(Array(max).keys()).map(function (i) {
|
|
58
|
+
return /*#__PURE__*/_jsx(Dot, {
|
|
59
|
+
className: "".concat(Math.ceil(value) >= i + 1 ? 'active' : '', " ").concat(Math.ceil(value) === i + 1 ? 'current' : '', " ").concat(variant, " ").concat(size)
|
|
60
|
+
}, i);
|
|
61
|
+
})
|
|
62
|
+
});
|
|
63
|
+
};
|
|
64
|
+
var renderLine = function renderLine() {
|
|
65
|
+
return /*#__PURE__*/_jsx(_Fragment, {
|
|
66
|
+
children: /*#__PURE__*/_jsx(Line, {
|
|
67
|
+
className: "".concat(variant, " ").concat(size),
|
|
68
|
+
children: /*#__PURE__*/_jsx(LineFill, {
|
|
69
|
+
style: {
|
|
70
|
+
width: "".concat(value / max * 100, "%")
|
|
71
|
+
}
|
|
72
|
+
})
|
|
73
|
+
})
|
|
74
|
+
});
|
|
75
|
+
};
|
|
76
|
+
var render = function render() {
|
|
77
|
+
switch (type) {
|
|
78
|
+
case LinearProgressType.Bars:
|
|
79
|
+
return renderBars();
|
|
80
|
+
case LinearProgressType.Dots:
|
|
81
|
+
return renderDots();
|
|
82
|
+
case LinearProgressType.Line:
|
|
83
|
+
default:
|
|
84
|
+
return renderLine();
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
return /*#__PURE__*/_jsxs(Wrapper, _objectSpread(_objectSpread({
|
|
88
|
+
className: "".concat(size, " ").concat(type, " ").concat(variant, " ").concat(className || '')
|
|
89
|
+
}, rest), {}, {
|
|
90
|
+
children: [label && /*#__PURE__*/_jsx(Label, {
|
|
91
|
+
children: label
|
|
92
|
+
}), /*#__PURE__*/_jsx(Content, {
|
|
93
|
+
children: render()
|
|
94
|
+
})]
|
|
95
|
+
}));
|
|
96
|
+
};
|
|
97
|
+
LinearProgress.propTypes = {
|
|
98
|
+
type: _pt.oneOf(["dots", "line", "bars"]),
|
|
99
|
+
variant: _pt.oneOf(["normal", "inverted"]),
|
|
100
|
+
label: _pt.string,
|
|
101
|
+
value: _pt.number.isRequired,
|
|
102
|
+
max: _pt.number.isRequired
|
|
103
|
+
};
|
|
104
|
+
export default LinearProgress;
|
|
105
|
+
//# sourceMappingURL=LinearProgress.js.map
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import LinearProgress, { LinearProgressType, LinearProgressVariant } from './LinearProgress';
|
|
2
|
-
export { LinearProgressType, LinearProgressVariant };
|
|
3
|
-
export { LinearProgress };
|
|
1
|
+
import LinearProgress, { LinearProgressType, LinearProgressVariant } from './LinearProgress';
|
|
2
|
+
export { LinearProgressType, LinearProgressVariant };
|
|
3
|
+
export { LinearProgress };
|
|
4
|
+
//# sourceMappingURL=index.js.map
|
package/dist/List/ListRow.js
CHANGED
|
@@ -1,83 +1,140 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
3
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
4
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
|
|
5
|
+
import _pt from "prop-types";
|
|
6
|
+
var _excluded = ["size", "variant", "icon", "mainText", "secondaryText", "dropdown", "note", "noteTooltip", "disabled", "action", "rightSideIcon", "rightSideAction", "rightSideIconDisabled", "className"];
|
|
7
|
+
var _templateObject, _templateObject2;
|
|
8
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
9
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10
|
+
import * as React from 'react';
|
|
11
|
+
import styled from 'styled-components';
|
|
12
|
+
import { COLORS, ComponentTextStyle, focusStyles } from '../styles';
|
|
13
|
+
import { ComponentLStyling, ComponentMStyling, ComponentSStyling, ComponentXSStyling, ComponentXXSStyling } from '../styles';
|
|
14
|
+
import { TooltipWrapper } from '../Tooltips';
|
|
15
|
+
import { DropdownButton } from '../Dropdown';
|
|
16
|
+
import { SystemIcons } from '../icons';
|
|
17
|
+
import { Size } from '../types';
|
|
18
|
+
import { Z_INDEXES } from '../styles';
|
|
19
|
+
import { defaultOnMouseDownHandler } from '../common';
|
|
20
|
+
import { IconButton } from '../Button';
|
|
21
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
22
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
23
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
24
|
+
var Row = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n border-bottom: 1px solid ", ";\n box-sizing: border-box;\n\n color: ", ";\n background-color: ", ";\n\n\n cursor: default;\n\n &.interactive {\n cursor: pointer;\n }\n\n &.interactive.disabled {\n cursor: not-allowed;\n }\n\n &.interactive:hover:not(.in-action):not(.disabled) {\n background-color: ", ";\n color: ", ";\n z-index: ", ";\n }\n\n &.interactive:active:not(.in-action):not(.disabled) {\n background-color: ", ";\n color: ", ";\n z-index: ", ";\n }\n\n &.interactive:focus {\n ", "\n }\n\n &.disabled {\n .list-item-icon, .list-item-content, .list-item-note, .list-item-actions {\n color: ", ";\n }\n }\n\n\n &.small {\n min-height: 48px;\n padding: 0 8px;\n\n .list-item-icon {\n margin-right: 8px;\n }\n\n .list-item-main-text {\n ", "\n }\n\n .list-item-actions {\n margin-right: -8px;\n }\n }\n\n &.medium {\n min-height: 56px;\n padding: 0 12px;\n\n .list-item-icon {\n margin-right: 12px;\n }\n\n .list-item-main-text {\n ", "\n }\n\n .list-item-actions {\n margin-right: -12px;\n }\n }\n\n &.large {\n min-height: 64px;\n padding: 0 16px;\n\n .list-item-icon {\n margin-right: 16px;\n }\n\n .list-item-main-text {\n ", "\n }\n\n .list-item-actions {\n margin-right: -16px;\n }\n }\n\n &.overlay {\n padding: 0 4px;\n\n .list-item-actions {\n margin-right: -4px;\n }\n }\n\n .list-item-icon {\n width: 24px;\n height: 24px;\n\n svg {\n width: 24px;\n height: 24px;\n }\n }\n\n .list-item-content {\n flex-grow: 1;\n display: flex;\n flex-direction: column;\n }\n\n .list-item-main-text {\n }\n\n .list-item-secondary-text {\n ", "\n }\n\n .list-item-note {\n color: ", ";\n word-break: initial;\n ", "\n }\n\n .list-item-note.with-tooltip {\n cursor: pointer;\n\n > div {\n text-decoration-line: underline;\n text-decoration-style: dashed;\n text-underline-offset: 1px;\n text-decoration-thickness: 1px;\n }\n }\n\n .list-item-actions {\n display: flex;\n align-items: center;\n\n button div {\n background-color: transparent;\n }\n }\n"])), COLORS.neutral_100, COLORS.neutral_600, COLORS.white, COLORS.primary_20, COLORS.primary_700, Z_INDEXES.hover, COLORS.primary_100, COLORS.primary_800, Z_INDEXES.active, focusStyles, COLORS.neutral_300, ComponentSStyling(ComponentTextStyle.Regular, null), ComponentMStyling(ComponentTextStyle.Regular, null), ComponentLStyling(ComponentTextStyle.Regular, null), ComponentXXSStyling(ComponentTextStyle.Regular, null), COLORS.neutral_600, ComponentXSStyling(ComponentTextStyle.Regular, null));
|
|
25
|
+
var RightIcon = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n justify-content: center;\n min-height: 48px;\n min-width: 48px;\n"])));
|
|
26
|
+
;
|
|
27
|
+
var ListRow = function ListRow(_ref) {
|
|
28
|
+
var _ref$size = _ref.size,
|
|
29
|
+
size = _ref$size === void 0 ? Size.Medium : _ref$size,
|
|
30
|
+
_ref$variant = _ref.variant,
|
|
31
|
+
variant = _ref$variant === void 0 ? 'normal' : _ref$variant,
|
|
32
|
+
icon = _ref.icon,
|
|
33
|
+
mainText = _ref.mainText,
|
|
34
|
+
secondaryText = _ref.secondaryText,
|
|
35
|
+
dropdown = _ref.dropdown,
|
|
36
|
+
note = _ref.note,
|
|
37
|
+
noteTooltip = _ref.noteTooltip,
|
|
38
|
+
_ref$disabled = _ref.disabled,
|
|
39
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
40
|
+
action = _ref.action,
|
|
41
|
+
rightSideIcon = _ref.rightSideIcon,
|
|
42
|
+
rightSideAction = _ref.rightSideAction,
|
|
43
|
+
rightSideIconDisabled = _ref.rightSideIconDisabled,
|
|
44
|
+
className = _ref.className,
|
|
45
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
46
|
+
var _React$useState = React.useState(false),
|
|
47
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
48
|
+
inAction = _React$useState2[0],
|
|
49
|
+
setInAction = _React$useState2[1];
|
|
50
|
+
var handleKeyDown = function handleKeyDown(e) {
|
|
51
|
+
if (e.key === 'Enter') {
|
|
52
|
+
action && action();
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
var rowClassName = (inAction ? 'in-action ' : '').concat(disabled ? 'disabled ' : '').concat(!!action ? 'interactive ' : '').concat('list-item-row ').concat("".concat(variant, " ")).concat("".concat(size)).concat(className ? " ".concat(className) : '');
|
|
56
|
+
return /*#__PURE__*/_jsxs(Row, _objectSpread(_objectSpread({
|
|
57
|
+
tabIndex: !action || disabled ? -1 : 0,
|
|
58
|
+
className: rowClassName,
|
|
59
|
+
onMouseDown: defaultOnMouseDownHandler,
|
|
60
|
+
onKeyDown: function onKeyDown(e) {
|
|
61
|
+
return !disabled && handleKeyDown(e);
|
|
62
|
+
},
|
|
63
|
+
onClick: function onClick(e) {
|
|
64
|
+
!disabled && action && action();
|
|
65
|
+
},
|
|
66
|
+
"data-hj-suppress": true
|
|
67
|
+
}, rest), {}, {
|
|
68
|
+
children: [!!icon && /*#__PURE__*/_jsx("div", {
|
|
69
|
+
className: 'list-item-icon',
|
|
70
|
+
children: icon
|
|
71
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
72
|
+
className: 'list-item-content',
|
|
73
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
74
|
+
className: 'list-item-main-text',
|
|
75
|
+
children: mainText
|
|
76
|
+
}), !!secondaryText && /*#__PURE__*/_jsx("div", {
|
|
77
|
+
className: 'list-item-secondary-text',
|
|
78
|
+
children: secondaryText
|
|
79
|
+
})]
|
|
80
|
+
}), !!note && /*#__PURE__*/_jsxs(_Fragment, {
|
|
81
|
+
children: [!!noteTooltip && /*#__PURE__*/_jsx("div", {
|
|
82
|
+
className: 'list-item-note with-tooltip',
|
|
83
|
+
children: /*#__PURE__*/_jsx(TooltipWrapper, {
|
|
84
|
+
label: noteTooltip,
|
|
85
|
+
size: size === Size.Large ? Size.Medium : size === Size.Small ? Size.XSmall : Size.Small,
|
|
86
|
+
position: 'top',
|
|
87
|
+
tabIndex: disabled ? -1 : 0,
|
|
88
|
+
withArrow: true,
|
|
89
|
+
children: note
|
|
90
|
+
})
|
|
91
|
+
}), !noteTooltip && /*#__PURE__*/_jsx("div", {
|
|
92
|
+
className: 'list-item-note',
|
|
93
|
+
children: note
|
|
94
|
+
})]
|
|
95
|
+
}), !!dropdown && /*#__PURE__*/_jsx("div", {
|
|
96
|
+
className: 'list-item-actions',
|
|
97
|
+
onMouseEnter: function onMouseEnter() {
|
|
98
|
+
return setInAction(!(dropdown !== null && dropdown !== void 0 && dropdown.disabled));
|
|
99
|
+
},
|
|
100
|
+
onMouseLeave: function onMouseLeave() {
|
|
101
|
+
return setInAction(false);
|
|
102
|
+
},
|
|
103
|
+
children: /*#__PURE__*/_jsx(DropdownButton, _objectSpread(_objectSpread({}, dropdown), {}, {
|
|
104
|
+
type: 'icon',
|
|
105
|
+
disabled: disabled || dropdown.disabled,
|
|
106
|
+
icon: variant === 'overlay' ? /*#__PURE__*/_jsx(SystemIcons.ArrowDropDown, {}) : /*#__PURE__*/_jsx(SystemIcons.MoreVertical, {})
|
|
107
|
+
}))
|
|
108
|
+
}), !!rightSideIcon && /*#__PURE__*/_jsxs(RightIcon, {
|
|
109
|
+
className: 'list-item-actions',
|
|
110
|
+
onMouseEnter: function onMouseEnter() {
|
|
111
|
+
return rightSideAction && setInAction(!(dropdown !== null && dropdown !== void 0 && dropdown.disabled));
|
|
112
|
+
},
|
|
113
|
+
onMouseLeave: function onMouseLeave() {
|
|
114
|
+
return rightSideAction && setInAction(false);
|
|
115
|
+
},
|
|
116
|
+
children: [rightSideAction && /*#__PURE__*/_jsx(IconButton, {
|
|
117
|
+
action: rightSideAction,
|
|
118
|
+
variant: "secondary",
|
|
119
|
+
shape: "circular",
|
|
120
|
+
disabled: disabled || rightSideIconDisabled,
|
|
121
|
+
children: rightSideIcon
|
|
122
|
+
}), !rightSideAction && rightSideIcon]
|
|
123
|
+
})]
|
|
124
|
+
}));
|
|
125
|
+
};
|
|
126
|
+
ListRow.propTypes = {
|
|
127
|
+
variant: _pt.oneOf(['normal', 'overlay']),
|
|
128
|
+
icon: _pt.node,
|
|
129
|
+
mainText: _pt.string.isRequired,
|
|
130
|
+
secondaryText: _pt.string,
|
|
131
|
+
note: _pt.string,
|
|
132
|
+
noteTooltip: _pt.string,
|
|
133
|
+
disabled: _pt.bool,
|
|
134
|
+
action: _pt.func,
|
|
135
|
+
rightSideIcon: _pt.node,
|
|
136
|
+
rightSideAction: _pt.func,
|
|
137
|
+
rightSideIconDisabled: _pt.bool
|
|
138
|
+
};
|
|
139
|
+
export default ListRow;
|
|
140
|
+
//# sourceMappingURL=ListRow.js.map
|
package/dist/List/index.js
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import ListRow from './ListRow';
|
|
2
|
-
export { ListRow };
|
|
1
|
+
import ListRow from './ListRow';
|
|
2
|
+
export { ListRow };
|
|
3
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Size } from '../types';
|
|
3
|
-
export
|
|
3
|
+
export type LoadingIndicatorProps = {
|
|
4
4
|
/** Optional. Id of the loading indicator. */
|
|
5
5
|
id?: string;
|
|
6
6
|
/** Optional. Size of the loading indicator. Defaults to 'Medium'. */
|
|
@@ -1,26 +1,46 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
var LoadingWrapper = styled.div(
|
|
11
|
-
var LoadingIndicator = function (
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
|
|
1
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
|
|
2
|
+
import _pt from "prop-types";
|
|
3
|
+
var _templateObject;
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import styled from 'styled-components';
|
|
6
|
+
import { COLORS } from '../styles';
|
|
7
|
+
import { Size } from '../types';
|
|
8
|
+
import { SystemIcons } from '../icons';
|
|
9
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
+
var LoadingWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n\n svg {\n animation-name: spin;\n animation-duration: 1s;\n animation-iteration-count: infinite;\n animation-timing-function: cubic-bezier(.43,.08,.57,.9);\n transform-origin: 50% 50%;\n \n @keyframes spin {\n from {\n transform: rotate(45deg);\n }\n to {\n transform: rotate(405deg);\n }\n }\n }\n"])));
|
|
11
|
+
var LoadingIndicator = function LoadingIndicator(_ref) {
|
|
12
|
+
var _ref$size = _ref.size,
|
|
13
|
+
size = _ref$size === void 0 ? Size.Medium : _ref$size,
|
|
14
|
+
_ref$color = _ref.color,
|
|
15
|
+
color = _ref$color === void 0 ? COLORS.primary : _ref$color,
|
|
16
|
+
id = _ref.id;
|
|
17
|
+
switch (size) {
|
|
18
|
+
case Size.Medium:
|
|
19
|
+
return /*#__PURE__*/_jsx(LoadingWrapper, {
|
|
20
|
+
id: id,
|
|
21
|
+
children: /*#__PURE__*/_jsx(SystemIcons.LoadingMedium, {
|
|
22
|
+
color: color
|
|
23
|
+
})
|
|
24
|
+
});
|
|
25
|
+
case Size.Small:
|
|
26
|
+
return /*#__PURE__*/_jsx(LoadingWrapper, {
|
|
27
|
+
id: id,
|
|
28
|
+
children: /*#__PURE__*/_jsx(SystemIcons.LoadingSmall, {
|
|
29
|
+
color: color
|
|
30
|
+
})
|
|
31
|
+
});
|
|
32
|
+
default:
|
|
33
|
+
return /*#__PURE__*/_jsx(LoadingWrapper, {
|
|
34
|
+
id: id,
|
|
35
|
+
children: /*#__PURE__*/_jsx(SystemIcons.LoadingMedium, {
|
|
36
|
+
color: color
|
|
37
|
+
})
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
LoadingIndicator.propTypes = {
|
|
42
|
+
id: _pt.string,
|
|
43
|
+
color: _pt.string
|
|
44
|
+
};
|
|
45
|
+
export default LoadingIndicator;
|
|
46
|
+
//# sourceMappingURL=LoadingIndicator.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { default as LoadingIndicator } from './LoadingIndicator';
|
|
1
|
+
export { default as LoadingIndicator } from './LoadingIndicator';
|
|
2
|
+
//# sourceMappingURL=index.js.map
|