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
@@ -5,10 +5,10 @@
|
|
5
5
|
.subnav {
|
6
6
|
position: relative;
|
7
7
|
display: flex;
|
8
|
-
height
|
8
|
+
height: $subnav-height;
|
9
9
|
background: $subnav-background;
|
10
10
|
border-bottom: 0px;
|
11
|
-
|
11
|
+
box-shadow: var(--sd-shadow__subnav);
|
12
12
|
@include transition(all, 0.3s, ease);
|
13
13
|
z-index: 3;
|
14
14
|
align-items: center;
|
@@ -31,11 +31,6 @@
|
|
31
31
|
background: $subnav-background-blue-grey !important;
|
32
32
|
color: $white;
|
33
33
|
}
|
34
|
-
&--dark-ui, &--darkUi {
|
35
|
-
background: $subnav-background-darkUi !important;
|
36
|
-
@include box-shadow-both(0 1px 3px rgba(0,0,0,0.12), 0 1px 0 0 rgba(0,0,0,0.1));
|
37
|
-
color: $white;
|
38
|
-
}
|
39
34
|
&--absolute {
|
40
35
|
position: absolute;
|
41
36
|
top:48px;
|
@@ -44,7 +39,7 @@
|
|
44
39
|
}
|
45
40
|
+ .subnav,
|
46
41
|
&--lower-z-index {
|
47
|
-
z-index: 2
|
42
|
+
z-index: 2;
|
48
43
|
}
|
49
44
|
.sd-check__group {
|
50
45
|
padding: 0;
|
@@ -57,7 +52,7 @@
|
|
57
52
|
flex-grow: 1;
|
58
53
|
}
|
59
54
|
.subnav__page-title {
|
60
|
-
padding:
|
55
|
+
padding: 0 1.6rem;
|
61
56
|
color: inherit;
|
62
57
|
font-size: 1.8rem;
|
63
58
|
line-height: 2.8rem;
|
@@ -72,6 +67,23 @@
|
|
72
67
|
flex-grow: 1;
|
73
68
|
}
|
74
69
|
|
70
|
+
.subnav__divider {
|
71
|
+
display: inline-flex;
|
72
|
+
height: 100%;
|
73
|
+
&--small {
|
74
|
+
width: $sd-base-increment * 1.5;
|
75
|
+
}
|
76
|
+
&--medium {
|
77
|
+
width: $sd-base-increment * 2;
|
78
|
+
}
|
79
|
+
&--large {
|
80
|
+
width: $sd-base-increment * 3;
|
81
|
+
}
|
82
|
+
&--x-large {
|
83
|
+
width: $sd-base-increment * 4;
|
84
|
+
}
|
85
|
+
}
|
86
|
+
|
75
87
|
|
76
88
|
.subnav {
|
77
89
|
&.subnav--level2 {
|
@@ -81,6 +93,9 @@
|
|
81
93
|
z-index: 2;
|
82
94
|
box-shadow: none;
|
83
95
|
}
|
96
|
+
.sd-nav-tabs {
|
97
|
+
box-shadow: none;
|
98
|
+
}
|
84
99
|
}
|
85
100
|
|
86
101
|
.subnav__sliding-toolbar {
|
@@ -90,30 +105,8 @@
|
|
90
105
|
// ============================================================================
|
91
106
|
// NEW NAVBUTTONS
|
92
107
|
// ============================================================================
|
93
|
-
|
94
|
-
:root {
|
95
|
-
--color-navbutton-border: rgba(0,0,0,.1);
|
96
|
-
--color-navbutton-bg-hover: rgba(0,0,0, 0.05);
|
97
|
-
--color-navbutton-bg-active: rgba(255,255,255,1);
|
98
|
-
--color-navbutton-dropdown-open-bg: rgba(255, 255, 255, 1);
|
99
|
-
--color-navbutton-bg-100: rgba(0,0,0,.06);
|
100
|
-
--color-navbutton-bg-100-hover: rgba(0,0,0,.12);
|
101
|
-
}
|
102
|
-
|
103
|
-
.sd-top-menu {
|
104
|
-
--color-navbutton-border: rgba(255,255,255,0.06);
|
105
|
-
}
|
106
|
-
|
107
|
-
.subnav--dark-ui,
|
108
|
-
[data-theme="dark-ui"] {
|
109
|
-
--color-navbutton-border: rgba(0,0,0,.15);
|
110
|
-
--color-navbutton-bg-hover: rgba(0,0,0,.1);
|
111
|
-
--color-navbutton-bg-active: rgba(255,255,255,.08);
|
112
|
-
--color-navbutton-bg-100: rgba(0,0,0,.1);
|
113
|
-
--color-navbutton-bg-100-hover: rgba(0,0,0,.2);
|
114
|
-
}
|
115
108
|
|
116
|
-
$navbutton-border-color: var(--
|
109
|
+
$navbutton-border-color: var(--sd-colour-line--x-light);
|
117
110
|
$navbutton-bg-color: transparent;
|
118
111
|
$navbutton-transition: all 0.2s ease-out, color 0.1s ease-out;
|
119
112
|
$navbutton-bg-color-hover: var(--color-navbutton-bg-hover);
|
@@ -121,56 +114,56 @@ $navbutton-bg-color-active: var(--color-navbutton-bg-active);
|
|
121
114
|
$navbutton-bg-color-darker: var(--color-navbutton-bg-100);
|
122
115
|
$navbutton-bg-color-darker-hover: var(--color-navbutton-bg-100-hover);
|
123
116
|
|
124
|
-
$navbutton-focus-box-shadow: inset 0 0 0 1px
|
117
|
+
$navbutton-focus-box-shadow: inset 0 0 0 1px var(--sd-colour-interactive--alpha-70), 0 0 0 2px $sd-colour--focus-shadow;
|
125
118
|
|
126
119
|
@mixin navbutton-base {
|
127
|
-
|
128
|
-
|
129
|
-
|
120
|
+
position: relative;
|
121
|
+
height: $subnav-height;
|
122
|
+
width: 4.8rem;
|
130
123
|
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
background: $navbutton-bg-color;
|
137
|
-
color: inherit;
|
138
|
-
text-align: center;
|
124
|
+
display: inline-flex;
|
125
|
+
flex-direction: row;
|
126
|
+
align-items: center;
|
127
|
+
justify-content: center;
|
139
128
|
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
border-width: 0 0 0 1px;
|
144
|
-
cursor: pointer;
|
145
|
-
transition: $navbutton-transition;
|
129
|
+
background: $navbutton-bg-color;
|
130
|
+
color: inherit;
|
131
|
+
text-align: center;
|
146
132
|
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
133
|
+
text-decoration: none;
|
134
|
+
border: 0;
|
135
|
+
border: 0px solid $navbutton-border-color;
|
136
|
+
border-inline-width: 1px 0;
|
137
|
+
cursor: pointer;
|
138
|
+
transition: $navbutton-transition;
|
139
|
+
|
140
|
+
i {
|
141
|
+
opacity: 0.75;
|
142
|
+
vertical-align: baseline !important;
|
143
|
+
transition: opacity 0.2s ease-out;
|
144
|
+
}
|
145
|
+
[class^="big-icon--"], [class*=" big-icon--"],
|
146
|
+
[class^="icon-"], [class*=" icon-"] {
|
147
|
+
color: currentColor;
|
148
|
+
}
|
149
|
+
&:hover {
|
150
|
+
background: $navbutton-bg-color-hover;
|
151
|
+
> i {
|
152
|
+
opacity: 1;
|
153
|
+
}
|
154
|
+
}
|
155
|
+
&:active {
|
156
|
+
background: $navbutton-bg-color-active;
|
157
|
+
> i {
|
158
|
+
opacity: 1;
|
159
|
+
}
|
160
|
+
}
|
161
|
+
&:focus-visible {
|
162
|
+
box-shadow: $navbutton-focus-box-shadow;
|
163
|
+
> i {
|
164
|
+
opacity: 1;
|
165
|
+
}
|
166
|
+
}
|
174
167
|
}
|
175
168
|
|
176
169
|
.sd-navbtn {
|
@@ -198,16 +191,16 @@ $navbutton-focus-box-shadow: inset 0 0 0 1px rgba(94, 169, 200, 0.7), 0 0 0 2px
|
|
198
191
|
}
|
199
192
|
}
|
200
193
|
&.sd-navbtn--primary, &.sd-navbtn--active {
|
201
|
-
background: $sd-
|
202
|
-
border-color:
|
194
|
+
background: $sd-colour-interactive;
|
195
|
+
border-color: var(--sd-colour-interactive--darken-10);
|
203
196
|
color: $white;
|
204
197
|
&:hover {
|
205
|
-
background-color:
|
206
|
-
border-color:
|
198
|
+
background-color: var(--sd-colour-interactive--darken-10);
|
199
|
+
border-color: var(--sd-colour-interactive--darken-20);
|
207
200
|
}
|
208
201
|
&:active{
|
209
|
-
background-color:
|
210
|
-
border-color:
|
202
|
+
background-color: var(--sd-colour-interactive--lighten-10);
|
203
|
+
border-color: var(--sd-colour-interactive--darken-10);
|
211
204
|
}
|
212
205
|
|
213
206
|
}
|
@@ -266,122 +259,130 @@ $navbutton-focus-box-shadow: inset 0 0 0 1px rgba(94, 169, 200, 0.7), 0 0 0 2px
|
|
266
259
|
|
267
260
|
.dropdown.open {
|
268
261
|
.sd-navbtn {
|
269
|
-
background-color: var(--color-
|
262
|
+
background-color: var(--color-dropdown-menu-Bg);
|
270
263
|
position: relative;
|
271
|
-
box-shadow: 0 8px 0 0px var(--color-
|
264
|
+
box-shadow: 0 8px 0 0px var(--color-dropdown-menu-Bg), -2px -1px 8px -2px rgba(0, 0, 0, 0.24), 3px -1px 8px -2px rgba(0, 0, 0, 0.24);
|
272
265
|
border-color: transparent !important;
|
273
266
|
z-index: 1001;
|
274
267
|
i {
|
275
268
|
opacity: 1;
|
276
|
-
color: $sd-
|
269
|
+
color: $sd-colour-interactive;
|
277
270
|
}
|
278
271
|
&.sd-navbtn--textual {
|
279
272
|
.sd-navbtn__text {
|
273
|
+
color: $sd-colour-interactive;
|
280
274
|
&::after {
|
281
275
|
opacity: 1;
|
282
276
|
}
|
283
277
|
}
|
284
278
|
}
|
285
279
|
}
|
280
|
+
.sd-create-btn {
|
281
|
+
background-color: var(--color-dropdown-menu-Bg);
|
282
|
+
position: relative;
|
283
|
+
box-shadow: 0 8px 0 0px var(--color-dropdown-menu-Bg), -2px -1px 8px -2px rgba(0, 0, 0, 0.24), 3px -1px 8px -2px rgba(0, 0, 0, 0.24);
|
284
|
+
border-color: transparent !important;
|
285
|
+
z-index: 1001;
|
286
|
+
}
|
286
287
|
}
|
287
288
|
|
288
289
|
.navbtn {
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
290
|
+
position: relative;
|
291
|
+
display: inline-flex;
|
292
|
+
flex-direction: row;
|
293
|
+
align-items: center;
|
294
|
+
justify-content: center;
|
295
|
+
height: $subnav-height;
|
296
|
+
width: 4.8rem;
|
297
|
+
padding: 0;
|
298
|
+
background: transparent;
|
299
|
+
color: $sd-text;
|
300
|
+
text-align: center;
|
301
|
+
text-decoration: none;
|
302
|
+
border: 0px solid transparent;
|
303
|
+
border-color: $navbutton-border-color;
|
304
|
+
border-inline-width: 1px 0;
|
305
|
+
cursor:pointer;
|
306
|
+
background: transparent;
|
307
|
+
transition: background-color 0.2s ease-out, color 0.1s ease-out;
|
308
|
+
i {
|
309
|
+
opacity: 0.75;
|
310
|
+
vertical-align: baseline !important;
|
311
|
+
transition: opacity 0.2s ease-out;
|
312
|
+
}
|
313
|
+
[class^="big-icon--"],
|
314
|
+
[class*=" big-icon--"] {
|
310
315
|
line-height: 1;
|
311
|
-
color:
|
316
|
+
color: $sd-text;
|
312
317
|
display: block;
|
313
|
-
|
314
|
-
|
318
|
+
}
|
319
|
+
.big-icon--send-to {
|
315
320
|
margin-left: 0.3rem;
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
color:
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
opacity: 1;
|
325
|
-
}
|
326
|
-
}
|
327
|
-
&.navbtn--left {
|
328
|
-
border-left: none;
|
329
|
-
border-right: 1px solid rgba(0,0,0,.1);
|
330
|
-
}
|
331
|
-
&.navbtn--blue {
|
332
|
-
background: $sd-blue;
|
333
|
-
border-left: 1px solid lighten($sd-blue, 10%);
|
334
|
-
color: $white;
|
335
|
-
&.disabled {
|
336
|
-
background: #898989;
|
337
|
-
}
|
338
|
-
}
|
339
|
-
&.navbtn--text-only {
|
340
|
-
width: auto;
|
341
|
-
line-height: $subnav-height;
|
342
|
-
padding: 0 20px;
|
343
|
-
border-left: none;
|
344
|
-
font-size: 1.5rem;
|
345
|
-
}
|
346
|
-
&.navbtn--border-r {
|
347
|
-
border-right: 1px solid rgba(0,0,0,.1) !important;
|
348
|
-
}
|
349
|
-
&.navbtn--highlighted {
|
350
|
-
background-color: $purple !important;
|
351
|
-
transition: all 0.3s;
|
352
|
-
padding: 0 0 0 9px;
|
353
|
-
color: $white;
|
354
|
-
&:hover {
|
355
|
-
background-color: darken($purple, 10%);
|
356
|
-
}
|
357
|
-
}
|
358
|
-
&.navbtn--darker {
|
359
|
-
background-color: rgba(0, 0, 0, 0.05);
|
360
|
-
}
|
361
|
-
&.navbtn--active {
|
362
|
-
background-color: $sd-blue;
|
363
|
-
> i {
|
321
|
+
}
|
322
|
+
[class^="icon-"],
|
323
|
+
[class*=" icon-"] {
|
324
|
+
color: $sd-text;
|
325
|
+
}
|
326
|
+
&:hover {
|
327
|
+
background: var(--color-navbutton-bg-hover);
|
328
|
+
> i {
|
364
329
|
opacity: 1;
|
365
|
-
color: $white;
|
366
330
|
}
|
331
|
+
}
|
332
|
+
&.navbtn--left {
|
333
|
+
border-inline-width: 0 1px;
|
334
|
+
}
|
335
|
+
&.navbtn--blue {
|
336
|
+
background: $sd-colour-interactive;
|
337
|
+
border-color: var(--sd-colour-interactive--lighten-10);
|
338
|
+
color: $white;
|
339
|
+
&.disabled {
|
340
|
+
background: var(--sd-colour-interactive--lighten-30);
|
341
|
+
}
|
342
|
+
}
|
343
|
+
&.navbtn--text-only {
|
344
|
+
width: auto;
|
345
|
+
line-height: $subnav-height;
|
346
|
+
padding: 0 20px;
|
347
|
+
border-inline-width: 0 1px;
|
348
|
+
font-size: 1.5rem;
|
349
|
+
}
|
350
|
+
&.navbtn--border-r {
|
351
|
+
border-inline-end: 1px !important;
|
352
|
+
}
|
353
|
+
&.navbtn--highlighted {
|
354
|
+
background-color: $purple !important;
|
355
|
+
transition: all 0.3s;
|
356
|
+
padding: 0 0 0 9px;
|
357
|
+
color: $white;
|
358
|
+
&:hover {
|
359
|
+
background-color: darken($purple, 10%);
|
367
360
|
}
|
368
|
-
|
369
|
-
|
361
|
+
}
|
362
|
+
&.navbtn--darker {
|
363
|
+
background-color: rgba(0, 0, 0, 0.05);
|
364
|
+
}
|
365
|
+
&.navbtn--active {
|
366
|
+
background-color: $sd-colour-interactive;
|
367
|
+
> i {
|
368
|
+
opacity: 1;
|
369
|
+
color: $white;
|
370
370
|
}
|
371
|
-
}
|
372
|
-
|
373
|
-
|
374
|
-
background-color: rgba(255, 255, 255, 0.06);
|
371
|
+
}
|
372
|
+
&.navbtn--publish {
|
373
|
+
background-color: rgba(0, 0, 0, 0.05);
|
375
374
|
}
|
376
375
|
}
|
376
|
+
|
377
377
|
.dropdown.open {
|
378
378
|
.navbtn {
|
379
|
-
background:
|
379
|
+
background: var(--color-dropdown-menu-Bg);
|
380
|
+
color: $sd-colour-interactive;
|
380
381
|
box-shadow: -2px -1px 5px -2px rgba(0, 0, 0, 0.2), 3px -1px 5px -2px rgba(0, 0, 0, 0.2);
|
381
382
|
z-index: $zindexDropdown + 1;
|
382
383
|
> i {
|
383
384
|
opacity: 1;
|
384
|
-
color: $sd-
|
385
|
+
color: $sd-colour-interactive;
|
385
386
|
}
|
386
387
|
}
|
387
388
|
.sd-create-btn {
|
@@ -398,7 +399,7 @@ $navbutton-focus-box-shadow: inset 0 0 0 1px rgba(94, 169, 200, 0.7), 0 0 0 2px
|
|
398
399
|
@include sd-margin('1-5', 'x');
|
399
400
|
align-items: center;
|
400
401
|
&.subnav__stretch-bar--right {
|
401
|
-
text-align:
|
402
|
+
text-align: end;
|
402
403
|
justify-content: flex-end;
|
403
404
|
}
|
404
405
|
}
|
@@ -410,7 +411,7 @@ $navbutton-focus-box-shadow: inset 0 0 0 1px rgba(94, 169, 200, 0.7), 0 0 0 2px
|
|
410
411
|
@include sd-margin('1-5', 'x');
|
411
412
|
align-items: center;
|
412
413
|
&.subnav__content-bar--right {
|
413
|
-
text-align:
|
414
|
+
text-align: end;
|
414
415
|
justify-content: flex-end;
|
415
416
|
}
|
416
417
|
}
|
@@ -471,7 +472,7 @@ $navbutton-focus-box-shadow: inset 0 0 0 1px rgba(94, 169, 200, 0.7), 0 0 0 2px
|
|
471
472
|
}
|
472
473
|
}
|
473
474
|
&--right {
|
474
|
-
text-align:
|
475
|
+
text-align: end;
|
475
476
|
padding-right: 2rem;
|
476
477
|
}
|
477
478
|
&--padded {
|
@@ -564,7 +565,7 @@ $navbutton-focus-box-shadow: inset 0 0 0 1px rgba(94, 169, 200, 0.7), 0 0 0 2px
|
|
564
565
|
.dropdown__caret {
|
565
566
|
position: absolute;
|
566
567
|
top: 50%;
|
567
|
-
|
568
|
+
inset-inline-end: 1rem;
|
568
569
|
}
|
569
570
|
}
|
570
571
|
.navbtn {
|
@@ -0,0 +1,189 @@
|
|
1
|
+
.sd-theme-selector__list {
|
2
|
+
display: grid;
|
3
|
+
grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
|
4
|
+
gap: $sd-base-increment * 2;
|
5
|
+
flex-grow: 1;
|
6
|
+
align-self: stretch;
|
7
|
+
&--small {
|
8
|
+
grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
|
9
|
+
}
|
10
|
+
&--medium {
|
11
|
+
grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
|
12
|
+
}
|
13
|
+
&--large {
|
14
|
+
grid-template-columns: repeat(auto-fill, minmax(24rem, 1fr));
|
15
|
+
gap: $sd-base-increment * 3;
|
16
|
+
}
|
17
|
+
}
|
18
|
+
|
19
|
+
.sd-theme-selector__item {
|
20
|
+
display: flex;
|
21
|
+
flex-direction: column;
|
22
|
+
border-radius: var(--b-radius--medium);
|
23
|
+
background-color: var(--sd-item__main-Bg);
|
24
|
+
position: relative;
|
25
|
+
overflow: visible;
|
26
|
+
&:disabled {
|
27
|
+
opacity: 0.75;
|
28
|
+
cursor: not-allowed;
|
29
|
+
}
|
30
|
+
transition: all 0.3s ease;
|
31
|
+
}
|
32
|
+
.sd-theme-selector__item-thumb {
|
33
|
+
display: flex;
|
34
|
+
aspect-ratio: 1.66;
|
35
|
+
border-radius: var(--b-radius--medium) var(--b-radius--medium) 0 0;
|
36
|
+
overflow: hidden;
|
37
|
+
svg {
|
38
|
+
width: 100%;
|
39
|
+
height: auto;
|
40
|
+
}
|
41
|
+
}
|
42
|
+
.sd-theme-selector__item-action {
|
43
|
+
display: flex;
|
44
|
+
flex-direction: row;
|
45
|
+
align-items: center;
|
46
|
+
gap: $sd-base-increment;
|
47
|
+
height: $sd-base-increment * 5;
|
48
|
+
border-radius: 0 0 var(--b-radius--medium) var(--b-radius--medium);
|
49
|
+
overflow: hidden;
|
50
|
+
color: var(--color-text);
|
51
|
+
padding: 0 $sd-base-increment * 1.5;
|
52
|
+
box-shadow: 0 -3px 6px -2px hsla(0, 0%, 0%, 0.12);
|
53
|
+
}
|
54
|
+
.sd-theme-selector__input {
|
55
|
+
position: absolute;
|
56
|
+
inset-block-start: 0px;
|
57
|
+
inset-inline-start: 0px;
|
58
|
+
opacity: 0;
|
59
|
+
height: 100%;
|
60
|
+
width: 100%;
|
61
|
+
z-index: 2;
|
62
|
+
padding: 0px;
|
63
|
+
border-width: 0px;
|
64
|
+
overflow: hidden;
|
65
|
+
outline: none !important;
|
66
|
+
&:hover {
|
67
|
+
cursor: pointer;
|
68
|
+
}
|
69
|
+
}
|
70
|
+
.sd-theme-selector__label {
|
71
|
+
position: absolute;
|
72
|
+
inset-block-start: 0px;
|
73
|
+
inset-inline-start: 0px;
|
74
|
+
height: 100%;
|
75
|
+
width: 100%;
|
76
|
+
z-index: 1;
|
77
|
+
border-radius: var(--b-radius--medium);
|
78
|
+
border: 1px solid var(--sd-colour-line--medium);
|
79
|
+
transition: all 0.3s ease;
|
80
|
+
font-size: 1px;
|
81
|
+
color: transparent;
|
82
|
+
user-select: none;
|
83
|
+
}
|
84
|
+
.sd-theme-selector__label-text {
|
85
|
+
font-size: 1.4rem;
|
86
|
+
color: var(--color-text);
|
87
|
+
}
|
88
|
+
.sd-theme-selector__item {
|
89
|
+
input:hover {
|
90
|
+
& ~ .sd-check-new,
|
91
|
+
& ~ .sd-radio-new {
|
92
|
+
border-color: var(--color-checkbox-border-hover);
|
93
|
+
}
|
94
|
+
&:not(:checked) {
|
95
|
+
& ~ label {
|
96
|
+
box-shadow: var(--sd-shadow--z1);
|
97
|
+
border-color: var(--sd-colour-line--strong);
|
98
|
+
}
|
99
|
+
|
100
|
+
}
|
101
|
+
}
|
102
|
+
input:checked {
|
103
|
+
& ~ .sd-radio-new {
|
104
|
+
border-color: $sd-colour-interactive;
|
105
|
+
background: $sd-colour-interactive;
|
106
|
+
&::after {
|
107
|
+
opacity: 1;
|
108
|
+
transform: scale(1, 1);
|
109
|
+
}
|
110
|
+
}
|
111
|
+
& ~ .sd-radio-new {
|
112
|
+
background: transparent;
|
113
|
+
}
|
114
|
+
& ~ label {
|
115
|
+
box-shadow: 0 0 0 1px var(--sd-colour-interactive), inset 0 0 0 2px var(--sd-colour-interactive--alpha-30);
|
116
|
+
}
|
117
|
+
& ~ .sd-theme-selector__label-text {
|
118
|
+
color: $sd-colour-interactive;
|
119
|
+
}
|
120
|
+
}
|
121
|
+
input:focus-visible {
|
122
|
+
& ~ label {
|
123
|
+
box-shadow: 0 0 0 2px var(--sd-colour-interactive--alpha-30);
|
124
|
+
}
|
125
|
+
}
|
126
|
+
input:disabled {
|
127
|
+
z-index: 1;
|
128
|
+
cursor: not-allowed;
|
129
|
+
pointer-events: none;
|
130
|
+
|
131
|
+
& ~ label {
|
132
|
+
z-index: 2;
|
133
|
+
cursor: not-allowed;
|
134
|
+
box-shadow: none !important;
|
135
|
+
border-color: var(--sd-colour-line--light) !important;
|
136
|
+
}
|
137
|
+
& ~ .sd-theme-selector__label-text {
|
138
|
+
opacity: 0.4;
|
139
|
+
}
|
140
|
+
& ~ .sd-radio-new {
|
141
|
+
opacity: 0.4;
|
142
|
+
border-color: var(--color-checkbox-border) !important;
|
143
|
+
}
|
144
|
+
}
|
145
|
+
}
|
146
|
+
|
147
|
+
[data-theme="dark-ui"] {
|
148
|
+
figure[data-theme="dark-ui"] {
|
149
|
+
--color-text: hsla(0, 0%, 96%, 1);
|
150
|
+
--color-text-light: hsla(214, 13%, 96%, 0.75);
|
151
|
+
--color-text-lighter: hsla(214, 13%, 96%, 0.55);
|
152
|
+
--color-icon-default: hsla(214, 13%, 96%, 0.65);
|
153
|
+
|
154
|
+
--sd-colour-panel-bg--100: hsla(214, 13%, 16%, 1);
|
155
|
+
--sd-colour-interactive: hsla(160, 50%, 50%, 1);
|
156
|
+
--sd-colour-btn-bg-neutral: hsla(214, 13%, 50%, 0.4);
|
157
|
+
--sd-colour-sidebar-menu--00: hsla(214, 13%, 25%, 1);
|
158
|
+
--color-icon-default: hsla(214, 13%, 96%, 0.65);
|
159
|
+
--sd-colour--shadow-line: hsla(214, 13%, 74%, 0.2);
|
160
|
+
--sd-colour-line--medium: hsla(214, 13%, 70%, 0.2);
|
161
|
+
|
162
|
+
}
|
163
|
+
figure[data-theme="light-ui"] {
|
164
|
+
--color-text: hsla(0, 0%, 20%, 1);
|
165
|
+
--color-text-light: hsla(214, 13%, 20%, 0.75);
|
166
|
+
--color-text-lighter: hsla(214, 13%, 20%, 0.55);
|
167
|
+
--color-icon-default: hsla(214, 13%, 30%, 1);
|
168
|
+
|
169
|
+
--sd-colour-panel-bg--100: hsla(214, 13%, 96%, 1);
|
170
|
+
--sd-colour-interactive: hsla(198, 50%, 50%, 1);
|
171
|
+
--sd-colour-btn-bg-neutral: hsla(214, 13%, 50%, 0.4);
|
172
|
+
--sd-colour-sidebar-menu--00: hsla(214, 13%, 85%, 1);
|
173
|
+
--sd-colour--shadow-line: hsla(214, 13%, 70%, 0);
|
174
|
+
--sd-colour-line--medium: hsla(214, 13%, 20%, 0.2);
|
175
|
+
|
176
|
+
|
177
|
+
}
|
178
|
+
figure[data-theme="contrast-light-ui"] {
|
179
|
+
--color-text: hsla(0, 0%, 0%, 1);
|
180
|
+
--color-text-light: hsla(214, 13%, 10%, 0.85);
|
181
|
+
--color-text-lighter: hsla(214, 13%, 10%, 0.65);
|
182
|
+
--color-icon-default: hsla(214, 13%, 20%, 1);
|
183
|
+
|
184
|
+
--sd-colour-panel-bg--100: hsla(214, 13%, 96%, 1);
|
185
|
+
--sd-colour-sidebar-menu--00: hsla(214, 13%, 90%, 1);
|
186
|
+
--sd-colour--shadow-line: hsla(214, 13%, 60%, 0);
|
187
|
+
--sd-colour-line--medium: hsla(214, 13%, 20%, 0.4);
|
188
|
+
}
|
189
|
+
}
|