superdesk-ui-framework 2.4.21 → 3.0.1-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/fonts/sd_big-icons.eot +0 -0
- package/app/fonts/sd_big-icons.svg +55 -53
- package/app/fonts/sd_big-icons.ttf +0 -0
- package/app/fonts/sd_big-icons.woff +0 -0
- package/app/fonts/sd_icons.eot +0 -0
- package/app/fonts/sd_icons.svg +1 -0
- package/app/fonts/sd_icons.ttf +0 -0
- package/app/fonts/sd_icons.woff +0 -0
- package/app/img/dots.svg +3 -0
- package/app/img/spinner.svg +3 -0
- package/app/img/themes/theme-base.svg +1 -0
- package/app/img/themes/theme-contrast.svg +45 -0
- package/app/img/themes/theme-dark.svg +1 -0
- package/app/img/themes/theme-light.svg +1 -0
- package/app/index.js +2 -1
- package/app/scripts/check.js +1 -1
- package/app/scripts/modals.js +1 -0
- package/app/styles/_accessibility.scss +308 -6
- package/app/styles/_alerts.scss +227 -97
- package/app/styles/_avatar.scss +60 -33
- package/app/styles/_badge.scss +55 -26
- package/app/styles/_big-icon-font.scss +61 -23
- package/app/styles/_boxed-list.scss +67 -23
- package/app/styles/_buttons.scss +548 -1026
- package/app/styles/_carousel.scss +19 -13
- package/app/styles/_content-divider.scss +125 -0
- package/app/styles/_design-tokens.scss +2 -0
- package/app/styles/_drag-drop.scss +1 -1
- package/app/styles/_empty-states.scss +9 -1
- package/app/styles/_helpers.scss +654 -311
- package/app/styles/_icon-font.scss +343 -309
- package/app/styles/_icon-labels.scss +69 -14
- package/app/styles/_labels.scss +65 -52
- package/app/styles/_loaders.scss +28 -0
- package/app/styles/_master-desk.scss +11 -11
- package/app/styles/_mixins.scss +21 -13
- package/app/styles/_modals.scss +103 -116
- package/app/styles/_normalize.scss +1 -0
- package/app/styles/_panel-info.scss +21 -16
- package/app/styles/_popover.scss +2 -2
- package/app/styles/_pr-superdesk-theme.scss +4 -0
- package/app/styles/_publisher-styles.scss +182 -0
- package/app/styles/_reboot.scss +1 -0
- package/app/styles/_sd-tag-input.scss +184 -97
- package/app/styles/_simple-list.scss +41 -19
- package/app/styles/_table-list.scss +244 -0
- package/app/styles/_tables.scss +5 -4
- package/app/styles/_tabs.scss +24 -75
- package/app/styles/_tag-labels.scss +47 -47
- package/app/styles/_thumb-carousel.scss +11 -10
- package/app/styles/_toggle-box.scss +52 -46
- package/app/styles/_toggle-button.scss +42 -0
- package/app/styles/_tooltips.scss +55 -98
- package/app/styles/_variables.scss +0 -1
- package/app/styles/app.scss +17 -1
- package/app/styles/components/_card-item.scss +41 -28
- package/app/styles/components/_list-item.scss +47 -113
- package/app/styles/components/_sd-circular-progress.scss +1 -1
- package/app/styles/components/_sd-collapse-box.scss +6 -33
- package/app/styles/components/_sd-comment-box.scss +1 -1
- package/app/styles/components/_sd-dropzone.scss +114 -0
- package/app/styles/components/_sd-grid-item.scss +78 -180
- package/app/styles/components/_sd-loader.scss +1 -16
- package/app/styles/components/_sd-media-carousel.scss +10 -12
- package/app/styles/components/_sd-photo-preview.scss +13 -13
- package/app/styles/components/_sd-searchbar.scss +43 -127
- package/app/styles/components/_sd-toaster.scss +13 -6
- package/app/styles/components/_subnav.scss +172 -171
- package/app/styles/components/_theme-selector.scss +189 -0
- package/app/styles/components/sd-slider.scss +11 -11
- package/app/styles/design-tokens/_design-tokens-general.scss +84 -0
- package/app/styles/design-tokens/_new-colors.scss +702 -0
- package/app/styles/dropdowns/_basic-dropdown.scss +119 -76
- package/app/styles/dropdowns/_navigation_dropdown.scss +7 -8
- package/app/styles/dropdowns/_nested-dropdown.scss +30 -16
- package/app/styles/dropdowns/_other_dropdown.scss +1 -1
- package/app/styles/editor/_editor-buttons.scss +54 -0
- package/app/styles/editor/_editor-themes.scss +437 -0
- package/app/styles/form-elements/_autocomplete.scss +12 -41
- package/app/styles/form-elements/_checkbox.scss +180 -245
- package/app/styles/form-elements/_forms-general.scss +92 -20
- package/app/styles/form-elements/_inputs.scss +100 -350
- package/app/styles/form-elements/_radio.scss +6 -6
- package/app/styles/form-elements/_select-grid.scss +16 -14
- package/app/styles/form-elements/_switch.scss +26 -47
- package/app/styles/grids/_basic-grid.scss +52 -26
- package/app/styles/grids/_grid-layout.scss +114 -65
- package/app/styles/grids/_layout-grid.scss +6 -6
- package/app/styles/grids/_sd-kanban-list.scss +2 -2
- package/app/styles/interface-elements/_side-panel.scss +115 -83
- package/app/styles/layout/_basic-layout.scss +11 -19
- package/app/styles/layout/_container.scss +35 -0
- package/app/styles/layout/_editor.scss +398 -0
- package/app/styles/layout/_general.scss +4 -5
- package/app/styles/menus/_sd-content-navigation.scss +1 -1
- package/app/styles/menus/_sd-left-navigation.scss +34 -18
- package/app/styles/menus/_sd-sidebar-menu.scss +123 -25
- package/app/styles/menus/_sd-top-menu.scss +3 -3
- package/app/styles/primereact/_pr-datepicker.scss +60 -9
- package/app/styles/primereact/_pr-dialog.scss +131 -30
- package/app/styles/primereact/_pr-dropdown.scss +177 -19
- package/app/styles/primereact/_pr-general.scss +14 -7
- package/app/styles/primereact/_pr-menu.scss +9 -12
- package/app/styles/variables/_colors.scss +124 -516
- package/app/styles/variables/_dimensions.scss +82 -4
- package/app/styles/variables/_form-elements.scss +0 -2
- package/app/styles/variables/_typography.scss +2 -0
- package/app-typescript/components/Alert.tsx +16 -1
- package/app-typescript/components/Avatar.tsx +21 -0
- package/app-typescript/components/ButtonGroup.tsx +9 -5
- package/app-typescript/components/Carousel.tsx +1 -1
- package/app-typescript/components/CheckButtonGroup.tsx +19 -5
- package/app-typescript/components/CheckGroup.tsx +2 -1
- package/app-typescript/components/Checkbox.tsx +7 -3
- package/app-typescript/components/CheckboxButton.tsx +9 -2
- package/app-typescript/components/ContentDivider.tsx +34 -0
- package/app-typescript/components/CreateButton.tsx +38 -0
- package/app-typescript/components/DatePicker.tsx +6 -2
- package/app-typescript/components/DropZone.tsx +89 -0
- package/app-typescript/components/Dropdown.tsx +30 -11
- package/app-typescript/components/DropdownFirst.tsx +1 -1
- package/app-typescript/components/Editor/EditorButton.tsx +34 -0
- package/app-typescript/components/Form/FormGroup.tsx +33 -0
- package/app-typescript/components/Form/FormItem.tsx +20 -0
- package/app-typescript/components/Form/FormLabel.tsx +22 -0
- package/app-typescript/components/Form/FormRow.tsx +40 -0
- package/app-typescript/components/Form/FormText.tsx +15 -0
- package/app-typescript/components/Form/index.tsx +5 -0
- package/app-typescript/components/Icon.tsx +3 -1
- package/app-typescript/components/IconButton.tsx +26 -12
- package/app-typescript/components/IconLabel.tsx +8 -1
- package/app-typescript/components/Input.tsx +39 -20
- package/app-typescript/components/Layouts/AuthorinInnerSideBar.tsx +15 -0
- package/app-typescript/components/Layouts/AuthoringContainer.tsx +27 -0
- package/app-typescript/components/Layouts/AuthoringFrame.tsx +72 -0
- package/app-typescript/components/Layouts/AuthoringFrameContainer.tsx +15 -0
- package/app-typescript/components/Layouts/AuthoringFrameLeftBar.tsx +15 -0
- package/app-typescript/components/Layouts/AuthoringFrameMain.tsx +15 -0
- package/app-typescript/components/Layouts/AuthoringFrameNavBar.tsx +15 -0
- package/app-typescript/components/Layouts/AuthoringFrameOverlay.tsx +15 -0
- package/app-typescript/components/Layouts/AuthoringFrameRightBar.tsx +15 -0
- package/app-typescript/components/Layouts/AuthoringFrameSidePanel.tsx +22 -0
- package/app-typescript/components/Layouts/AuthoringFrameSidePanelOverlay.tsx +22 -0
- package/app-typescript/components/Layouts/AuthoringInnerBody.tsx +15 -0
- package/app-typescript/components/Layouts/AuthoringInnerHeader.tsx +40 -0
- package/app-typescript/components/Layouts/AuthoringMain.tsx +50 -0
- package/app-typescript/components/Layouts/AuthoringMainContainer.tsx +15 -0
- package/app-typescript/components/Layouts/AuthoringMainContent.tsx +15 -0
- package/app-typescript/components/Layouts/AuthoringMainToolBar.tsx +21 -0
- package/app-typescript/components/Layouts/Container.tsx +30 -0
- package/app-typescript/components/Layouts/ContentSplitter.tsx +23 -0
- package/app-typescript/components/Layouts/HeaderPanel.tsx +15 -0
- package/app-typescript/components/Layouts/Layout.tsx +33 -0
- package/app-typescript/components/Layouts/LayoutContainer.tsx +15 -0
- package/app-typescript/components/Layouts/LeftPanel.tsx +24 -0
- package/app-typescript/components/Layouts/MainPanel.tsx +27 -0
- package/app-typescript/components/Layouts/OverlayPanel.tsx +19 -0
- package/app-typescript/components/Layouts/PageLayout.tsx +51 -0
- package/app-typescript/components/Layouts/Panel.tsx +208 -0
- package/app-typescript/components/Layouts/RightPanel.tsx +16 -0
- package/app-typescript/components/Layouts/index.tsx +31 -0
- package/app-typescript/components/LeftMenu.tsx +123 -49
- package/app-typescript/components/Lists/BoxedList.tsx +137 -0
- package/app-typescript/components/Lists/ContentList.tsx +100 -0
- package/app-typescript/components/Lists/SimpleList.tsx +54 -0
- package/app-typescript/components/Lists/TableList.tsx +208 -0
- package/app-typescript/components/Lists/index.tsx +2 -0
- package/app-typescript/components/Modal.tsx +30 -15
- package/app-typescript/components/MultiSelect.tsx +69 -0
- package/app-typescript/components/Navigation/QuickNavBar.tsx +114 -0
- package/app-typescript/components/Navigation/SideBarMenu.tsx +68 -0
- package/app-typescript/components/Navigation/SideBarTabs.tsx +87 -0
- package/app-typescript/components/Navigation/index.tsx +3 -0
- package/app-typescript/components/RadioButtonGroup.tsx +113 -0
- package/app-typescript/components/RadioGroup.tsx +69 -0
- package/app-typescript/components/SearchBar.tsx +79 -0
- package/app-typescript/components/Select.tsx +9 -9
- package/app-typescript/components/SelectGrid.tsx +3 -3
- package/app-typescript/components/SidebarMenu.tsx +68 -0
- package/app-typescript/components/SlidingToolbar.tsx +8 -2
- package/app-typescript/components/Spinner.tsx +1 -2
- package/app-typescript/components/SubNav.tsx +25 -4
- package/app-typescript/components/Switch.tsx +34 -12
- package/app-typescript/components/SwitchGroup.tsx +2 -1
- package/app-typescript/components/TabCustom.tsx +40 -89
- package/app-typescript/components/TabList.tsx +18 -43
- package/app-typescript/components/Tag.tsx +32 -9
- package/app-typescript/components/Text/Heading.tsx +67 -0
- package/app-typescript/components/Text/Text.tsx +36 -0
- package/app-typescript/components/ThemeSelector.tsx +113 -0
- package/app-typescript/components/TimePicker.tsx +3 -3
- package/app-typescript/components/Togglebox.tsx +8 -6
- package/app-typescript/components/TreeSelect.tsx +330 -0
- package/app-typescript/index.ts +19 -4
- package/dist/avatar-2.jpg +0 -0
- package/dist/avatar-3.jpg +0 -0
- package/dist/avatar-4.jpg +0 -0
- package/dist/avatar-5.jpg +0 -0
- package/dist/avatar-6.jpg +0 -0
- package/dist/avatar_64.png +0 -0
- package/dist/components/basic-grid.html +1 -1
- package/dist/components/checkbox.html +1 -1
- package/dist/dots.svg +3 -0
- package/dist/examples.bundle.css +9800 -2768
- package/dist/examples.bundle.js +39221 -17840
- package/dist/index.html +9 -12
- package/dist/playgrounds/boxed-list.html +1 -1
- package/dist/playgrounds/cards.html +9 -4
- package/dist/playgrounds/editor-3-test.html +15 -0
- package/dist/playgrounds/form-layout.html +9 -7
- package/dist/playgrounds/layout-test-2.html +40 -36
- package/dist/playgrounds/list-item-test.html +1 -1
- package/dist/playgrounds/master-desk.html +1 -3
- package/dist/playgrounds/photo-desk.html +33 -33
- package/dist/playgrounds/react-playgrounds/EditorTest.tsx +459 -0
- package/dist/playgrounds/react-playgrounds/FirstPlayground.tsx +4 -4
- package/dist/playgrounds/react-playgrounds/Index.tsx +7 -1
- package/dist/playgrounds/react-playgrounds/PageLayoutTest.tsx +161 -0
- package/dist/playgrounds/react-playgrounds/PersonalProfile.tsx +635 -0
- package/dist/playgrounds/react-playgrounds/RundownEditor.tsx +466 -0
- package/dist/playgrounds/react-playgrounds/Rundowns.tsx +1002 -0
- package/dist/playgrounds/react-playgrounds/SamsPlayground.tsx +30 -39
- package/dist/playgrounds/react-playgrounds/TestGround.tsx +240 -23
- package/dist/playgrounds/react-playgrounds/UiPlayground.tsx +304 -0
- package/dist/playgrounds/react-playgrounds/components/AuthoringContainer.tsx +26 -0
- package/dist/playgrounds/react-playgrounds/components/ContentSplitter.tsx +22 -0
- package/dist/playgrounds/react-playgrounds/components/Index.tsx +6 -1
- package/dist/playgrounds/react-playgrounds/components/Layout.tsx +1 -1
- package/dist/playgrounds/react-playgrounds/components/MainPanel.tsx +11 -1
- package/dist/playgrounds/react-playgrounds/components/SearchBar.tsx +51 -9
- package/dist/playgrounds/tags-input.html +1 -1
- package/dist/react/Alerts.tsx +123 -23
- package/dist/react/Avatar.tsx +314 -127
- package/dist/react/BoxedList.tsx +362 -0
- package/dist/react/ButtonGroups.tsx +66 -65
- package/dist/react/Buttons.tsx +62 -247
- package/dist/react/Carousel.tsx +2 -3
- package/dist/react/Checkboxs.tsx +66 -25
- package/dist/react/Container.tsx +143 -0
- package/dist/react/ContentDivider.tsx +178 -0
- package/dist/react/ContentList.tsx +280 -0
- package/dist/react/CreateButton.tsx +71 -0
- package/dist/react/DropZone.tsx +111 -0
- package/dist/react/Heading.tsx +106 -0
- package/dist/react/IconButtons.tsx +49 -42
- package/dist/react/IconLabels.tsx +24 -2
- package/dist/react/Index.tsx +133 -11
- package/dist/react/Inputs.tsx +33 -20
- package/dist/react/LeftNavigations.tsx +161 -9
- package/dist/react/ListItems.tsx +3 -3
- package/dist/react/Modal.tsx +174 -19
- package/dist/react/MultiSelect.tsx +193 -0
- package/dist/react/NavButtons.tsx +4 -4
- package/dist/react/Panel.tsx +366 -0
- package/dist/react/QuickNavigationBar.tsx +142 -0
- package/dist/react/RadioGroup.tsx +351 -0
- package/dist/react/SelectWithTemplate.tsx +1 -1
- package/dist/react/Selects.tsx +3 -23
- package/dist/react/SimpleList.tsx +148 -0
- package/dist/react/SubNav.tsx +69 -20
- package/dist/react/TableList.tsx +268 -0
- package/dist/react/Tabs.tsx +72 -248
- package/dist/react/Tags.tsx +52 -13
- package/dist/react/Text.tsx +134 -0
- package/dist/react/Tooltips.tsx +1 -1
- package/dist/react/TreeSelect.tsx +178 -0
- package/dist/react.html +4 -0
- package/dist/sd_big-icons.eot +0 -0
- package/dist/sd_big-icons.svg +55 -53
- package/dist/sd_big-icons.ttf +0 -0
- package/dist/sd_big-icons.woff +0 -0
- package/dist/sd_icons.eot +0 -0
- package/dist/sd_icons.svg +1 -0
- package/dist/sd_icons.ttf +0 -0
- package/dist/sd_icons.woff +0 -0
- package/dist/superdesk-ui.bundle.css +51124 -26537
- package/dist/superdesk-ui.bundle.js +7849 -3639
- package/dist/vendor.bundle.js +71 -75
- package/examples/css/docs-page.css +204 -46
- package/examples/img/avatar-2.jpg +0 -0
- package/examples/img/avatar-3.jpg +0 -0
- package/examples/img/avatar-4.jpg +0 -0
- package/examples/img/avatar-5.jpg +0 -0
- package/examples/img/avatar-6.jpg +0 -0
- package/examples/index.html +9 -12
- package/examples/index.js +28 -0
- package/examples/pages/components/basic-grid.html +1 -1
- package/examples/pages/components/checkbox.html +1 -1
- package/examples/pages/playgrounds/boxed-list.html +1 -1
- package/examples/pages/playgrounds/cards.html +9 -4
- package/examples/pages/playgrounds/editor-3-test.html +15 -0
- package/examples/pages/playgrounds/form-layout.html +9 -7
- package/examples/pages/playgrounds/layout-test-2.html +40 -36
- package/examples/pages/playgrounds/list-item-test.html +1 -1
- package/examples/pages/playgrounds/master-desk.html +1 -3
- package/examples/pages/playgrounds/photo-desk.html +33 -33
- package/examples/pages/playgrounds/react-playgrounds/EditorTest.tsx +459 -0
- package/examples/pages/playgrounds/react-playgrounds/FirstPlayground.tsx +4 -4
- package/examples/pages/playgrounds/react-playgrounds/Index.tsx +7 -1
- package/examples/pages/playgrounds/react-playgrounds/PageLayoutTest.tsx +161 -0
- package/examples/pages/playgrounds/react-playgrounds/PersonalProfile.tsx +635 -0
- package/examples/pages/playgrounds/react-playgrounds/RundownEditor.tsx +466 -0
- package/examples/pages/playgrounds/react-playgrounds/Rundowns.tsx +1002 -0
- package/examples/pages/playgrounds/react-playgrounds/SamsPlayground.tsx +30 -39
- package/examples/pages/playgrounds/react-playgrounds/TestGround.tsx +240 -23
- package/examples/pages/playgrounds/react-playgrounds/UiPlayground.tsx +304 -0
- package/examples/pages/playgrounds/react-playgrounds/components/AuthoringContainer.tsx +26 -0
- package/examples/pages/playgrounds/react-playgrounds/components/ContentSplitter.tsx +22 -0
- package/examples/pages/playgrounds/react-playgrounds/components/Index.tsx +6 -1
- package/examples/pages/playgrounds/react-playgrounds/components/Layout.tsx +1 -1
- package/examples/pages/playgrounds/react-playgrounds/components/MainPanel.tsx +11 -1
- package/examples/pages/playgrounds/react-playgrounds/components/SearchBar.tsx +51 -9
- package/examples/pages/playgrounds/tags-input.html +1 -1
- package/examples/pages/react/Alerts.tsx +123 -23
- package/examples/pages/react/Avatar.tsx +314 -127
- package/examples/pages/react/BoxedList.tsx +362 -0
- package/examples/pages/react/ButtonGroups.tsx +66 -65
- package/examples/pages/react/Buttons.tsx +62 -247
- package/examples/pages/react/Carousel.tsx +2 -3
- package/examples/pages/react/Checkboxs.tsx +66 -25
- package/examples/pages/react/Container.tsx +143 -0
- package/examples/pages/react/ContentDivider.tsx +178 -0
- package/examples/pages/react/ContentList.tsx +280 -0
- package/examples/pages/react/CreateButton.tsx +71 -0
- package/examples/pages/react/DropZone.tsx +111 -0
- package/examples/pages/react/Heading.tsx +106 -0
- package/examples/pages/react/IconButtons.tsx +49 -42
- package/examples/pages/react/IconLabels.tsx +24 -2
- package/examples/pages/react/Index.tsx +133 -11
- package/examples/pages/react/Inputs.tsx +33 -20
- package/examples/pages/react/LeftNavigations.tsx +161 -9
- package/examples/pages/react/ListItems.tsx +3 -3
- package/examples/pages/react/Modal.tsx +174 -19
- package/examples/pages/react/MultiSelect.tsx +193 -0
- package/examples/pages/react/NavButtons.tsx +4 -4
- package/examples/pages/react/Panel.tsx +366 -0
- package/examples/pages/react/QuickNavigationBar.tsx +142 -0
- package/examples/pages/react/RadioGroup.tsx +351 -0
- package/examples/pages/react/SelectWithTemplate.tsx +1 -1
- package/examples/pages/react/Selects.tsx +3 -23
- package/examples/pages/react/SimpleList.tsx +148 -0
- package/examples/pages/react/SubNav.tsx +69 -20
- package/examples/pages/react/TableList.tsx +268 -0
- package/examples/pages/react/Tabs.tsx +72 -248
- package/examples/pages/react/Tags.tsx +52 -13
- package/examples/pages/react/Text.tsx +134 -0
- package/examples/pages/react/Tooltips.tsx +1 -1
- package/examples/pages/react/TreeSelect.tsx +178 -0
- package/examples/pages/react.html +4 -0
- package/images/avatar_64.png +0 -0
- package/package.json +11 -6
- package/react/components/Alert.d.ts +3 -0
- package/react/components/Alert.js +9 -1
- package/react/components/Avatar.d.ts +9 -0
- package/react/components/Avatar.js +19 -1
- package/react/components/ButtonGroup.d.ts +4 -2
- package/react/components/ButtonGroup.js +5 -3
- package/react/components/Carousel.js +1 -1
- package/react/components/CheckButtonGroup.d.ts +3 -1
- package/react/components/CheckButtonGroup.js +8 -2
- package/react/components/CheckGroup.d.ts +1 -0
- package/react/components/CheckGroup.js +1 -1
- package/react/components/Checkbox.d.ts +2 -1
- package/react/components/Checkbox.js +2 -2
- package/react/components/CheckboxButton.d.ts +1 -0
- package/react/components/CheckboxButton.js +2 -2
- package/react/components/ContentDivider.d.ts +12 -0
- package/react/components/ContentDivider.js +66 -0
- package/react/components/CreateButton.d.ts +17 -0
- package/react/components/CreateButton.js +66 -0
- package/react/components/DatePicker.js +7 -2
- package/react/components/DropZone.d.ts +25 -0
- package/react/components/DropZone.js +93 -0
- package/react/components/Dropdown.d.ts +1 -0
- package/react/components/Dropdown.js +28 -23
- package/react/components/DropdownFirst.js +1 -1
- package/react/components/Form/FormGroup.d.ts +13 -0
- package/react/components/Form/FormGroup.js +61 -0
- package/react/components/Form/FormItem.d.ts +9 -0
- package/react/components/Form/FormItem.js +54 -0
- package/react/components/Form/FormLabel.d.ts +10 -0
- package/react/components/Form/FormLabel.js +54 -0
- package/react/components/Form/FormRow.d.ts +17 -0
- package/react/components/Form/FormRow.js +62 -0
- package/react/components/Form/FormText.d.ts +8 -0
- package/react/components/Form/FormText.js +47 -0
- package/react/components/Form/index.d.ts +5 -0
- package/react/components/Form/index.js +12 -0
- package/react/components/Icon.d.ts +1 -0
- package/react/components/Icon.js +2 -1
- package/react/components/IconButton.d.ts +9 -2
- package/react/components/IconButton.js +13 -5
- package/react/components/IconLabel.d.ts +2 -0
- package/react/components/IconLabel.js +6 -3
- package/react/components/Input.d.ts +21 -7
- package/react/components/Input.js +10 -13
- package/react/components/Layouts/AuthorinInnerSideBar.d.ts +8 -0
- package/react/components/Layouts/AuthorinInnerSideBar.js +47 -0
- package/react/components/Layouts/AuthoringContainer.d.ts +11 -0
- package/react/components/Layouts/AuthoringContainer.js +58 -0
- package/react/components/Layouts/AuthoringFrame.d.ts +18 -0
- package/react/components/Layouts/AuthoringFrame.js +56 -0
- package/react/components/Layouts/AuthoringFrameContainer.d.ts +8 -0
- package/react/components/Layouts/AuthoringFrameContainer.js +47 -0
- package/react/components/Layouts/AuthoringFrameLeftBar.d.ts +8 -0
- package/react/components/Layouts/AuthoringFrameLeftBar.js +47 -0
- package/react/components/Layouts/AuthoringFrameMain.d.ts +8 -0
- package/react/components/Layouts/AuthoringFrameMain.js +47 -0
- package/react/components/Layouts/AuthoringFrameNavBar.d.ts +8 -0
- package/react/components/Layouts/AuthoringFrameNavBar.js +47 -0
- package/react/components/Layouts/AuthoringFrameOverlay.d.ts +8 -0
- package/react/components/Layouts/AuthoringFrameOverlay.js +47 -0
- package/react/components/Layouts/AuthoringFrameRightBar.d.ts +8 -0
- package/react/components/Layouts/AuthoringFrameRightBar.js +47 -0
- package/react/components/Layouts/AuthoringFrameSidePanel.d.ts +10 -0
- package/react/components/Layouts/AuthoringFrameSidePanel.js +56 -0
- package/react/components/Layouts/AuthoringFrameSidePanelOverlay.d.ts +9 -0
- package/react/components/Layouts/AuthoringFrameSidePanelOverlay.js +56 -0
- package/react/components/Layouts/AuthoringInnerBody.d.ts +8 -0
- package/react/components/Layouts/AuthoringInnerBody.js +47 -0
- package/react/components/Layouts/AuthoringInnerHeader.d.ts +14 -0
- package/react/components/{RadioButton.js → Layouts/AuthoringInnerHeader.js} +23 -22
- package/react/components/Layouts/AuthoringMain.d.ts +14 -0
- package/react/components/Layouts/AuthoringMain.js +53 -0
- package/react/components/Layouts/AuthoringMainContainer.d.ts +8 -0
- package/react/components/Layouts/AuthoringMainContainer.js +47 -0
- package/react/components/Layouts/AuthoringMainContent.d.ts +8 -0
- package/react/components/Layouts/AuthoringMainContent.js +47 -0
- package/react/components/Layouts/AuthoringMainToolBar.d.ts +9 -0
- package/react/components/Layouts/AuthoringMainToolBar.js +54 -0
- package/react/components/Layouts/Container.d.ts +14 -0
- package/react/components/Layouts/Container.js +60 -0
- package/react/components/Layouts/ContentSplitter.d.ts +10 -0
- package/react/components/Layouts/ContentSplitter.js +56 -0
- package/react/components/Layouts/HeaderPanel.d.ts +8 -0
- package/react/components/Layouts/HeaderPanel.js +47 -0
- package/react/components/Layouts/Layout.d.ts +8 -0
- package/react/components/Layouts/Layout.js +35 -0
- package/react/components/Layouts/LayoutContainer.d.ts +8 -0
- package/react/components/Layouts/LayoutContainer.js +47 -0
- package/react/components/Layouts/LeftPanel.d.ts +9 -0
- package/react/components/Layouts/LeftPanel.js +54 -0
- package/react/components/Layouts/MainPanel.d.ts +11 -0
- package/react/components/Layouts/MainPanel.js +57 -0
- package/react/components/Layouts/OverlayPanel.d.ts +8 -0
- package/react/components/Layouts/OverlayPanel.js +49 -0
- package/react/components/Layouts/PageLayout.d.ts +16 -0
- package/react/components/Layouts/PageLayout.js +64 -0
- package/react/components/Layouts/Panel.d.ts +66 -0
- package/react/components/Layouts/Panel.js +166 -0
- package/react/components/Layouts/RightPanel.d.ts +9 -0
- package/react/components/Layouts/RightPanel.js +47 -0
- package/react/components/Layouts/index.d.ts +28 -0
- package/react/components/Layouts/index.js +63 -0
- package/react/components/LeftMenu.d.ts +8 -3
- package/react/components/LeftMenu.js +55 -16
- package/react/components/Lists/BoxedList.d.ts +38 -0
- package/react/components/Lists/BoxedList.js +139 -0
- package/react/components/Lists/SimpleList.d.ts +21 -0
- package/react/components/Lists/SimpleList.js +78 -0
- package/react/components/Lists/index.d.ts +2 -0
- package/react/components/Lists/index.js +9 -0
- package/react/components/Modal.d.ts +5 -1
- package/react/components/Modal.js +11 -2
- package/react/components/Navigation/QuickNavBar.d.ts +24 -0
- package/react/components/Navigation/QuickNavBar.js +113 -0
- package/react/components/Navigation/SideBarMenu.d.ts +21 -0
- package/react/components/Navigation/SideBarMenu.js +77 -0
- package/react/components/Navigation/SideBarTabs.d.ts +23 -0
- package/react/components/Navigation/SideBarTabs.js +86 -0
- package/react/components/Navigation/index.d.ts +3 -0
- package/react/components/Navigation/index.js +8 -0
- package/react/components/RadioButtonGroup.d.ts +29 -0
- package/react/components/RadioButtonGroup.js +89 -0
- package/react/components/{Radio.d.ts → RadioGroup.d.ts} +7 -3
- package/react/components/{Radio.js → RadioGroup.js} +15 -11
- package/react/components/SearchBar.d.ts +23 -0
- package/react/components/SearchBar.js +87 -0
- package/react/components/Select.d.ts +2 -1
- package/react/components/Select.js +3 -9
- package/react/components/SelectGrid.js +3 -3
- package/react/components/SlidingToolbar.d.ts +1 -1
- package/react/components/SlidingToolbar.js +11 -1
- package/react/components/Spinner.d.ts +0 -1
- package/react/components/Spinner.js +1 -2
- package/react/components/SubNav.d.ts +8 -1
- package/react/components/SubNav.js +22 -4
- package/react/components/Switch.d.ts +4 -1
- package/react/components/Switch.js +19 -7
- package/react/components/SwitchGroup.d.ts +1 -0
- package/react/components/SwitchGroup.js +1 -1
- package/react/components/TabCustom.d.ts +11 -22
- package/react/components/TabCustom.js +23 -52
- package/react/components/TabList.d.ts +2 -11
- package/react/components/TabList.js +11 -32
- package/react/components/Tag.d.ts +4 -4
- package/react/components/Tag.js +16 -5
- package/react/components/TagInput.d.ts +0 -1
- package/react/components/Text/Heading.d.ts +15 -0
- package/react/components/Text/Heading.js +77 -0
- package/react/components/Text/Text.d.ts +15 -0
- package/react/components/Text/Text.js +65 -0
- package/react/components/{RadioButton.d.ts → ThemeSelector.d.ts} +4 -3
- package/react/components/ThemeSelector.js +112 -0
- package/react/components/TimePicker.js +2 -2
- package/react/components/Togglebox.d.ts +1 -0
- package/react/components/Togglebox.js +9 -2
- package/react/index.d.ts +17 -4
- package/react/index.js +41 -6
- package/sd_icons.eot +0 -0
- package/sd_icons.svg +189 -0
- package/sd_icons.ttf +0 -0
- package/sd_icons.woff +0 -0
- package/app/styles/_editor-themes.scss +0 -326
- package/app/styles/variables/_design-tokens-general.scss +0 -76
- package/app-typescript/components/Radio.tsx +0 -57
- package/app-typescript/components/RadioButton.tsx +0 -57
- package/dist/react/Radios.tsx +0 -391
- package/examples/pages/react/Radios.tsx +0 -391
package/app/styles/_alerts.scss
CHANGED
@@ -1,49 +1,33 @@
|
|
1
1
|
/// @group sd-alert
|
2
2
|
|
3
|
-
/// Default background color for labels.
|
4
|
-
$sd-alert-background: scale-color($grayLight, $alpha: -80%) !default;
|
5
|
-
|
6
|
-
/// Default text color for sd-alerts.
|
7
|
-
$sd-alert-color: inherit !default;
|
8
|
-
|
9
|
-
/// Alternate text color for sd-alerts.
|
10
|
-
$sd-alert-color-alt: $grayNeutral !default;
|
11
|
-
|
12
|
-
/// Coloring classes. A map of classes to output in the CSS.
|
13
|
-
$sd-alert-palette: $sd-extended-palette;
|
14
|
-
|
15
3
|
/// Default padding inside sd-alerts.
|
16
|
-
$sd-alert-padding: 1.8rem 3rem 1.8rem 2rem !default;
|
17
|
-
|
18
|
-
$sd-alert-padding-small: 0.8rem 2.4rem 0.8rem 1.2rem;
|
19
|
-
|
20
4
|
$sd-alert-lineheight-large: 1;
|
21
5
|
|
6
|
+
$sd-alert-padding-x: 2rem 3rem !default;
|
7
|
+
$sd-alert-padding-y: 1.8rem !default;
|
8
|
+
$sd-alert-padding-x-small: 1.2rem 2.4rem;
|
9
|
+
$sd-alert-padding-y-small: 0.7rem;
|
10
|
+
|
22
11
|
/// Default radius of sd-alerts.
|
23
|
-
$sd-alert-radius:
|
12
|
+
$sd-alert-radius: var(--b-radius--medium) !default;
|
24
13
|
|
25
14
|
/// Default shadow for sd-alerts.
|
26
15
|
$sd-alert-shadow: 0 1px 4px rgba(0,0,0,.2), 0 0 1px rgba(0,0,0,.1);
|
27
16
|
$sd-alert-shadow-small: 0 1px 2px rgba(0,0,0,.12), 0 0 1px rgba(0,0,0,.08);
|
28
17
|
|
29
|
-
|
30
|
-
/// Removes background fill for hollow buttons.
|
31
|
-
@mixin sd-alert-hollow-style($color: $sd-alert-color-alt) {
|
32
|
-
border: 1px solid $color;
|
33
|
-
// background-color: scale-color($color, $lightness: 95%);
|
34
|
-
background-color: scale-color($color, $alpha: -95%);
|
35
|
-
color: $color;
|
36
|
-
}
|
37
|
-
|
38
18
|
/// Transition between normal and hidden state
|
39
19
|
$sd-alert-transition: font-size ease-out 300ms, padding ease-out 300ms, max-width ease-out 200ms, max-height ease-out 300ms, opacity ease-out 200ms;
|
40
20
|
$sd-alert-transition-small: font-size ease-out 20ms, padding ease-out 200ms, max-width ease-out 100ms, max-height ease-out 80ms, opacity ease-out 160ms;
|
41
21
|
|
42
|
-
//$sd-info-btn-hover: scale-color($button-background, $lightness: -85%) !default;
|
43
|
-
|
44
|
-
/// Generates base styles for a sd-alert.
|
45
22
|
@mixin sd-alert {
|
46
|
-
|
23
|
+
max-height: 20rem;
|
24
|
+
max-width: 100%;
|
25
|
+
height:auto;
|
26
|
+
transition: all linear 100ms;
|
27
|
+
display: flex;
|
28
|
+
padding-block-start: $sd-alert-padding-y;
|
29
|
+
padding-block-end: $sd-alert-padding-y;
|
30
|
+
padding-inline: $sd-alert-padding-x;
|
47
31
|
vertical-align: middle;
|
48
32
|
border-radius: $sd-alert-radius;
|
49
33
|
line-height: 1.4em;
|
@@ -52,47 +36,14 @@ $sd-alert-transition-small: font-size ease-out 20ms, padding ease-out 200ms, max
|
|
52
36
|
font-weight: 400;
|
53
37
|
position: relative;
|
54
38
|
box-shadow: $sd-alert-shadow;
|
39
|
+
background-color: var(--sd-alert-bg);
|
40
|
+
display: flex;
|
41
|
+
gap: $sd-base-increment * 2;
|
55
42
|
& strong {
|
56
43
|
font-weight: 500;
|
57
44
|
}
|
58
|
-
}
|
59
|
-
|
60
|
-
|
61
|
-
.sd-alert {
|
62
|
-
@include sd-alert;
|
63
|
-
margin-bottom: 2rem;
|
64
|
-
background: $sd-alert-background;
|
65
|
-
color: $sd-alert-color;
|
66
|
-
max-height: 20rem;
|
67
|
-
max-width: 100%;
|
68
|
-
height:auto;
|
69
|
-
transition: all linear 100ms;
|
70
|
-
display: flex;
|
71
|
-
@each $name, $color in $sd-alert-palette {
|
72
|
-
&.sd-alert--#{$name} {
|
73
|
-
background: $color;
|
74
|
-
color: white;
|
75
|
-
}
|
76
|
-
}
|
77
|
-
&.sd-alert--hollow {
|
78
|
-
@include sd-alert-hollow-style;
|
79
|
-
@each $name, $color in $sd-alert-palette {
|
80
|
-
&.sd-alert--#{$name} {
|
81
|
-
@include sd-alert-hollow-style($color);
|
82
|
-
}
|
83
|
-
}
|
84
|
-
}
|
85
|
-
p {
|
86
|
-
font-size: 1.4rem;
|
87
|
-
color: inherit;
|
88
|
-
margin-bottom: 1em;
|
89
|
-
}
|
90
|
-
& p:last-child,
|
91
|
-
& p:only-child {
|
92
|
-
margin-bottom: 0;
|
93
|
-
}
|
94
45
|
&--hidden {
|
95
|
-
opacity:0;
|
46
|
+
opacity: 0;
|
96
47
|
max-height: 0.1rem;
|
97
48
|
max-width: 10%;
|
98
49
|
padding:0;
|
@@ -102,9 +53,12 @@ $sd-alert-transition-small: font-size ease-out 20ms, padding ease-out 200ms, max
|
|
102
53
|
}
|
103
54
|
&--small {
|
104
55
|
font-size: 1.3rem;
|
105
|
-
padding: $sd-alert-padding-small;
|
56
|
+
padding-block-start: $sd-alert-padding-y-small;
|
57
|
+
padding-block-end: $sd-alert-padding-y-small;
|
58
|
+
padding-inline: $sd-alert-padding-x-small;
|
106
59
|
box-shadow: $sd-alert-shadow-small;
|
107
60
|
transition: $sd-alert-transition-small;
|
61
|
+
gap: $sd-base-increment * 1;
|
108
62
|
}
|
109
63
|
&--marg-b12 {
|
110
64
|
margin-bottom: 1.2rem;
|
@@ -112,12 +66,158 @@ $sd-alert-transition-small: font-size ease-out 20ms, padding ease-out 200ms, max
|
|
112
66
|
&--no-margin {
|
113
67
|
margin-bottom: 0;
|
114
68
|
}
|
69
|
+
&--margin-none {
|
70
|
+
margin-block-end: 0;
|
71
|
+
}
|
72
|
+
&--margin-small {
|
73
|
+
margin-block-end: 1.6rem;
|
74
|
+
}
|
75
|
+
&--margin-normal {
|
76
|
+
margin-block-end: 2.4rem;
|
77
|
+
}
|
78
|
+
&--margin-large {
|
79
|
+
margin-block-end: 3.2rem;
|
80
|
+
}
|
81
|
+
&--banner-style {
|
82
|
+
margin: 0;
|
83
|
+
box-shadow: none !important;
|
84
|
+
border-radius: 0 !important;
|
85
|
+
}
|
86
|
+
}
|
87
|
+
@mixin sd-alert-hollow {
|
88
|
+
border: 1px solid var(--sd-alert-border);
|
89
|
+
background-color: var(--sd-alert-bg);
|
90
|
+
--sd-alert-hs: 214, 13%;
|
91
|
+
--sd-alert-l: var(--sd-alert-hs), 50%;
|
92
|
+
--sd-alert-txt: hsla(var(--sd-alert-l), 1);
|
93
|
+
--sd-alert-bg: hsla(var(--sd-alert-l), 0.05);
|
94
|
+
[class^="icon-"], [class*=" icon-"] {
|
95
|
+
color: var(--sd-alert-color);
|
96
|
+
}
|
97
|
+
}
|
98
|
+
|
99
|
+
|
100
|
+
.sd-alert {
|
101
|
+
@include sd-alert;
|
102
|
+
color: var(--color-text-light);
|
103
|
+
--sd-alert-bg: var(--sd-colour-alert-bg-neutral);
|
104
|
+
p {
|
105
|
+
font-size: 1.4rem;
|
106
|
+
color: inherit;
|
107
|
+
margin-block-end: 1em;
|
108
|
+
&:last-child, &:only-child {
|
109
|
+
margin-block-end: 0;
|
110
|
+
}
|
111
|
+
}
|
112
|
+
&--primary, &--info, &--success, &--warning, &--alert, &--highlight, &--sd-green {
|
113
|
+
color: $white;
|
114
|
+
}
|
115
|
+
&--primary, &--info {
|
116
|
+
--sd-alert-bg: var(--sd-colour-info);
|
117
|
+
}
|
118
|
+
|
119
|
+
&--success {
|
120
|
+
--sd-alert-bg: var(--sd-colour-success);
|
121
|
+
}
|
122
|
+
|
123
|
+
&--warning {
|
124
|
+
--sd-alert-bg: var(--sd-colour-warning);
|
125
|
+
}
|
126
|
+
|
127
|
+
&--alert {
|
128
|
+
--sd-alert-bg: var(--sd-colour-alert);
|
129
|
+
}
|
130
|
+
|
131
|
+
&--highlight {
|
132
|
+
--sd-alert-bg: var(--sd-colour-highlight);
|
133
|
+
}
|
134
|
+
|
135
|
+
&--sd-green {
|
136
|
+
--sd-alert-bg: var(--sd-colour-superdesk);
|
137
|
+
}
|
138
|
+
&.sd-alert--hollow {
|
139
|
+
--sd-alert-hs: 214, 13%;
|
140
|
+
--sd-alert-border: var(--sd-colour-line--strong);
|
141
|
+
--sd-alert-color: var(--color-text-light);
|
142
|
+
@include sd-alert-hollow;
|
143
|
+
&.sd-alert--primary {
|
144
|
+
--sd-alert-hs: var(--sd-colour-info-hs);
|
145
|
+
--sd-alert-border: var(--sd-colour-info);
|
146
|
+
--sd-alert-color: var(--sd-colour-info);
|
147
|
+
color: var(--sd-alert-color);
|
148
|
+
}
|
149
|
+
|
150
|
+
&.sd-alert--success {
|
151
|
+
--sd-alert-hs: var(--sd-colour-success-hs);
|
152
|
+
--sd-alert-border: var(--sd-colour-success);
|
153
|
+
--sd-alert-color: var(--sd-colour-success);
|
154
|
+
color: var(--sd-alert-color);
|
155
|
+
}
|
156
|
+
|
157
|
+
&.sd-alert--warning {
|
158
|
+
--sd-alert-hs: var(--sd-colour-warning-hs);
|
159
|
+
--sd-alert-border: var(--sd-colour-warning);
|
160
|
+
--sd-alert-color: var(--sd-colour-warning);
|
161
|
+
color: var(--sd-alert-color);
|
162
|
+
}
|
163
|
+
|
164
|
+
&.sd-alert--alert {
|
165
|
+
--sd-alert-hs: var(--sd-colour-alert-hs);
|
166
|
+
--sd-alert-border: var(--sd-colour-alert);
|
167
|
+
--sd-alert-color: var(--sd-colour-alert);
|
168
|
+
color: var(--sd-alert-color);
|
169
|
+
}
|
170
|
+
|
171
|
+
&.sd-alert--highlight {
|
172
|
+
--sd-alert-hs: var(--sd-colour-highlight-hs);
|
173
|
+
--sd-alert-border: var(--sd-colour-highlight);
|
174
|
+
--sd-alert-color: var(--sd-colour-highlight);
|
175
|
+
color: var(--sd-alert-color);
|
176
|
+
}
|
177
|
+
|
178
|
+
&.sd-alert--sd-green {
|
179
|
+
--sd-alert-hs: var(--sd-colour-superdesk-hs);
|
180
|
+
--sd-alert-border: var(--sd-colour-superdesk);
|
181
|
+
--sd-alert-color: var(--sd-colour-superdesk);
|
182
|
+
color: var(--sd-alert-color);
|
183
|
+
}
|
184
|
+
|
185
|
+
}
|
186
|
+
.sd-alert__icon {
|
187
|
+
display: flex;
|
188
|
+
align-items: center;
|
189
|
+
justify-content: center;
|
190
|
+
width: 3.2rem;
|
191
|
+
height: 3.2rem;
|
192
|
+
[class^="icon-"], [class*=" icon-"] {
|
193
|
+
width: 3.2rem;
|
194
|
+
height: 3.2rem;
|
195
|
+
font-size: 3.2rem;
|
196
|
+
line-height: 1;
|
197
|
+
color: currentColor;
|
198
|
+
}
|
199
|
+
}
|
200
|
+
&.sd-alert--small {
|
201
|
+
.sd-alert__icon {
|
202
|
+
margin-block-start: 0px;
|
203
|
+
[class^="icon-"], [class*=" icon-"] {
|
204
|
+
width: 2.4rem;
|
205
|
+
height: 2.4rem;
|
206
|
+
font-size: 2.4rem;
|
207
|
+
}
|
208
|
+
}
|
209
|
+
}
|
210
|
+
}
|
211
|
+
|
212
|
+
.sd-alert__content {
|
213
|
+
display: flex;
|
214
|
+
align-items: center;
|
115
215
|
}
|
116
216
|
|
117
217
|
.sd-alert__close {
|
118
218
|
position: absolute;
|
119
|
-
|
120
|
-
|
219
|
+
inset-block-start: 0.3rem;
|
220
|
+
inset-inline: auto 0.3rem;
|
121
221
|
width: 2.1rem;
|
122
222
|
height: 2.1rem;
|
123
223
|
padding: 0;
|
@@ -125,7 +225,7 @@ $sd-alert-transition-small: font-size ease-out 20ms, padding ease-out 200ms, max
|
|
125
225
|
opacity: .2;
|
126
226
|
line-height: 2.1rem;
|
127
227
|
color: inherit;
|
128
|
-
border-radius:
|
228
|
+
border-radius: $border-radius__base--full;
|
129
229
|
&::after {
|
130
230
|
font-family: sd_icons;
|
131
231
|
font-size: 16px;
|
@@ -145,16 +245,17 @@ $sd-alert-transition-small: font-size ease-out 20ms, padding ease-out 200ms, max
|
|
145
245
|
}
|
146
246
|
&:hover {
|
147
247
|
opacity: .8;
|
148
|
-
background-color:
|
248
|
+
background-color: hsla(0, 0%, 100%, 0.3);
|
149
249
|
}
|
150
250
|
&:active {
|
151
251
|
opacity: 1;
|
152
|
-
background-color:
|
252
|
+
background-color: hsla(0, 0%, 100%, 0.5);
|
153
253
|
}
|
154
254
|
}
|
255
|
+
|
155
256
|
.sd-alert--small {
|
156
257
|
.sd-alert__close {
|
157
|
-
|
258
|
+
inset-block-start: 0.4rem;
|
158
259
|
}
|
159
260
|
}
|
160
261
|
|
@@ -166,15 +267,6 @@ $sd-alert-transition-small: font-size ease-out 20ms, padding ease-out 200ms, max
|
|
166
267
|
justify-content: flex-end;
|
167
268
|
}
|
168
269
|
|
169
|
-
.sd-alert__icon {
|
170
|
-
margin: 0.1rem 1.2rem 0 -0.5rem;
|
171
|
-
flex-shrink: 0;
|
172
|
-
}
|
173
|
-
.sd-alert--small {
|
174
|
-
.sd-alert__icon {
|
175
|
-
margin-left: 0;
|
176
|
-
}
|
177
|
-
}
|
178
270
|
.sd-alert__info-btn {
|
179
271
|
cursor: pointer;
|
180
272
|
height: 2.2rem;
|
@@ -188,26 +280,17 @@ $sd-alert-transition-small: font-size ease-out 20ms, padding ease-out 200ms, max
|
|
188
280
|
color:white;
|
189
281
|
text-align: center;
|
190
282
|
display: inline-block;
|
191
|
-
border-radius:
|
283
|
+
border-radius: $border-radius__base--full;
|
192
284
|
flex-grow: 0;
|
193
285
|
flex-shrink: 1;
|
194
|
-
transition: all linear 100ms 0.2s, background ease-in 200ms;
|
195
|
-
background:
|
286
|
+
transition: all linear 100ms 0.2s, background-color ease-in 200ms;
|
287
|
+
background-color: var(--sd-colour-neutral);
|
196
288
|
& [class^="icon-"], & [class*=" icon-"] {
|
197
289
|
color:inherit;
|
198
290
|
margin-top: 0.3rem;
|
199
291
|
}
|
200
292
|
&:hover {
|
201
|
-
background:
|
202
|
-
}
|
203
|
-
@each $name, $color in $sd-alert-palette {
|
204
|
-
&.sd-alert__info-btn--#{$name} {
|
205
|
-
background: $color;
|
206
|
-
color: white;
|
207
|
-
&:hover {
|
208
|
-
background: scale-color($color, $lightness: -20%);
|
209
|
-
}
|
210
|
-
}
|
293
|
+
background-color: var(--sd-colour-neutral--hover);
|
211
294
|
}
|
212
295
|
&--hidden {
|
213
296
|
opacity: 0;
|
@@ -216,6 +299,47 @@ $sd-alert-transition-small: font-size ease-out 20ms, padding ease-out 200ms, max
|
|
216
299
|
flex-shrink: 1;
|
217
300
|
transition: all linear 100ms;
|
218
301
|
}
|
302
|
+
&--primary, &--info {
|
303
|
+
background-color: var(--sd-colour-info);
|
304
|
+
&:hover {
|
305
|
+
background-color: var(--sd-colour-info--hover);
|
306
|
+
}
|
307
|
+
}
|
308
|
+
|
309
|
+
&--success {
|
310
|
+
background-color: var(--sd-colour-success);
|
311
|
+
&:hover {
|
312
|
+
background-color: var(--sd-colour-success--hover);
|
313
|
+
}
|
314
|
+
}
|
315
|
+
|
316
|
+
&--warning {
|
317
|
+
background-color: var(--sd-colour-warning);
|
318
|
+
&:hover {
|
319
|
+
background-color: var(--sd-colour-warning--hover);
|
320
|
+
}
|
321
|
+
}
|
322
|
+
|
323
|
+
&--alert {
|
324
|
+
background-color: var(--sd-colour-alert);
|
325
|
+
&:hover {
|
326
|
+
background-color: var(--sd-colour-alert--hover);
|
327
|
+
}
|
328
|
+
}
|
329
|
+
|
330
|
+
&--highlight {
|
331
|
+
background-color: var(--sd-colour-highlight);
|
332
|
+
&:hover {
|
333
|
+
background-color: var(--sd-colour-highlight--hover);
|
334
|
+
}
|
335
|
+
}
|
336
|
+
|
337
|
+
&--sd-green {
|
338
|
+
background-color: var(--sd-colour-superdesk);
|
339
|
+
&:hover {
|
340
|
+
background-color: var(--sd-colour-superdesk--hover);
|
341
|
+
}
|
342
|
+
}
|
219
343
|
|
220
344
|
}
|
221
345
|
|
@@ -225,4 +349,10 @@ $sd-alert-transition-small: font-size ease-out 20ms, padding ease-out 200ms, max
|
|
225
349
|
}
|
226
350
|
}
|
227
351
|
|
228
|
-
|
352
|
+
.side-panel__header {
|
353
|
+
.sd-alert {
|
354
|
+
box-shadow: none !important;
|
355
|
+
border-radius: unset !important;
|
356
|
+
margin-bottom: 0;
|
357
|
+
}
|
358
|
+
}
|
package/app/styles/_avatar.scss
CHANGED
@@ -1,33 +1,34 @@
|
|
1
1
|
.sd-avatar {
|
2
|
-
display: block;
|
2
|
+
display: inline-block;
|
3
3
|
position: relative; // required for absolutely positioned indicators
|
4
4
|
|
5
5
|
&--indicator-status--offline {
|
6
6
|
display: block;
|
7
|
-
background-color:
|
7
|
+
background-color: var(--sd-item__main-Bg);
|
8
8
|
height: 8px;
|
9
9
|
width: 8px;
|
10
|
-
border-radius:
|
10
|
+
border-radius: $border-radius__base--full;
|
11
11
|
position: absolute;
|
12
|
-
|
13
|
-
|
14
|
-
|
12
|
+
inset-block-end: -1px;
|
13
|
+
inset-inline-start: auto;
|
14
|
+
inset-inline-end: -4px;
|
15
|
+
box-shadow: 0px 0 0 2px var(--sd-item__main-Bg);
|
15
16
|
border: 1px solid #a2c59e;
|
16
17
|
box-sizing: border-box;
|
17
18
|
}
|
18
19
|
|
19
20
|
&--indicator-status--online {
|
20
21
|
@extend .sd-avatar--indicator-status--offline;
|
21
|
-
|
22
22
|
background-color: #67b461;
|
23
23
|
border: 1px solid #67b461;
|
24
24
|
}
|
25
25
|
|
26
26
|
&--indicator-admin {
|
27
|
-
|
27
|
+
border-radius: $border-radius__base--full;
|
28
28
|
position: absolute;
|
29
|
-
|
30
|
-
|
29
|
+
inset-block-start: -4px;
|
30
|
+
inset-inline-start: -4px;
|
31
|
+
inset-inline-end: auto;
|
31
32
|
z-index: 1;
|
32
33
|
color: #FF5722 !important;
|
33
34
|
|
@@ -35,14 +36,13 @@
|
|
35
36
|
content: '';
|
36
37
|
display: block;
|
37
38
|
position: absolute;
|
38
|
-
|
39
|
+
inset-block-start: 4px;
|
39
40
|
left: 4px;
|
40
|
-
background:
|
41
|
+
background: var(--sd-colour-background__base--00);
|
41
42
|
width: 8px;
|
42
43
|
height: 8px;
|
43
44
|
z-index: -1;
|
44
|
-
border-radius:
|
45
|
-
|
45
|
+
border-radius: $border-radius__base--full;
|
46
46
|
}
|
47
47
|
}
|
48
48
|
|
@@ -52,7 +52,7 @@
|
|
52
52
|
font-size: 1rem;
|
53
53
|
|
54
54
|
.sd-avatar--indicator-admin {
|
55
|
-
|
55
|
+
inset-block-start: -4px;
|
56
56
|
left: -6px;
|
57
57
|
}
|
58
58
|
}
|
@@ -72,12 +72,14 @@
|
|
72
72
|
.sd-avatar--indicator-status--online {
|
73
73
|
height: 12px;
|
74
74
|
width: 12px;
|
75
|
-
|
76
|
-
|
75
|
+
inset-block-end: -1px;
|
76
|
+
inset-inline-end: -4px;
|
77
|
+
inset-inline-start: auto;
|
77
78
|
}
|
78
79
|
.sd-avatar--indicator-admin {
|
79
|
-
|
80
|
-
|
80
|
+
inset-block-start: -2px;
|
81
|
+
inset-inline-start: -4px;
|
82
|
+
inset-inline-end: auto;
|
81
83
|
}
|
82
84
|
}
|
83
85
|
&--x-large {
|
@@ -89,19 +91,19 @@
|
|
89
91
|
.sd-avatar--indicator-status--online {
|
90
92
|
height: 16px;
|
91
93
|
width: 16px;
|
92
|
-
|
93
|
-
|
94
|
+
inset-block-end: -2px;
|
95
|
+
inset-inline-end: 4px;
|
94
96
|
}
|
95
97
|
.sd-avatar--indicator-admin {
|
96
|
-
|
97
|
-
|
98
|
+
inset-block-start: 2px;
|
99
|
+
inset-inline-start: 0;
|
98
100
|
width: 24px;
|
99
101
|
height: 24px;
|
100
102
|
font-size: 24px;
|
101
103
|
&:after {
|
102
104
|
height: 14px;
|
103
105
|
width: 14px;
|
104
|
-
|
106
|
+
inset-block-start: 1px;
|
105
107
|
left: 5px;
|
106
108
|
}
|
107
109
|
}
|
@@ -115,20 +117,21 @@
|
|
115
117
|
.sd-avatar--indicator-status--online {
|
116
118
|
height: 18px;
|
117
119
|
width: 18px;
|
118
|
-
|
119
|
-
|
120
|
+
inset-block-end: -2px;
|
121
|
+
inset-inline-end: 8px;
|
120
122
|
}
|
121
123
|
.sd-avatar--indicator-admin {
|
122
|
-
|
123
|
-
|
124
|
+
inset-block-start: 4px;
|
125
|
+
inset-inline-start: 4px;
|
126
|
+
inset-inline-end: auto;
|
124
127
|
width: 24px;
|
125
128
|
height: 24px;
|
126
129
|
font-size: 24px;
|
127
130
|
&:after {
|
128
131
|
height: 14px;
|
129
132
|
width: 14px;
|
130
|
-
|
131
|
-
|
133
|
+
inset-block-start: 1px;
|
134
|
+
inset-inline-start: 5px;
|
132
135
|
}
|
133
136
|
}
|
134
137
|
}
|
@@ -139,12 +142,11 @@
|
|
139
142
|
height: 100%;
|
140
143
|
align-items: center;
|
141
144
|
justify-content: center;
|
142
|
-
border-radius:
|
145
|
+
border-radius: $border-radius__base--full;
|
143
146
|
color: $white;
|
144
147
|
text-transform: uppercase;
|
145
148
|
letter-spacing: -0.03em;
|
146
149
|
overflow: hidden;
|
147
|
-
border-radius: 50%;
|
148
150
|
|
149
151
|
> img {
|
150
152
|
width: 100%;
|
@@ -159,6 +161,31 @@
|
|
159
161
|
background-image: url('~../../images/avatar_64.png');
|
160
162
|
background-repeat: no-repeat;
|
161
163
|
background-size: cover;
|
164
|
+
box-shadow: inset 0 0 0 1px #005b7f;
|
162
165
|
}
|
163
166
|
}
|
164
|
-
}
|
167
|
+
}
|
168
|
+
|
169
|
+
.sd-avatar-group {
|
170
|
+
display: flex;
|
171
|
+
&.sd-avatar-group--stacked {
|
172
|
+
flex-wrap: nowrap;
|
173
|
+
gap: 0;
|
174
|
+
> .sd-avatar {
|
175
|
+
margin: 0 -0.8rem 0 0;
|
176
|
+
.sd-avatar-content {
|
177
|
+
--avatar-shadow: var(--sd-item__main-Bg);
|
178
|
+
box-shadow: 0 0 0 2px var(--avatar-shadow);
|
179
|
+
}
|
180
|
+
&--large {
|
181
|
+
margin: 0 -1.2rem 0 0;
|
182
|
+
}
|
183
|
+
}
|
184
|
+
margin-inline-end: 8px;
|
185
|
+
}
|
186
|
+
&.sd-avatar-group--grid {
|
187
|
+
flex-wrap: wrap;
|
188
|
+
justify-content: flex-start;
|
189
|
+
gap: $sd-base-increment * 1.5;
|
190
|
+
}
|
191
|
+
}
|