superdesk-ui-framework 2.4.20 → 3.0.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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/modals.js +1 -0
- package/app/styles/_accessibility.scss +305 -3
- 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 +2 -1
- package/app/styles/_boxed-list.scss +41 -20
- package/app/styles/_buttons.scss +544 -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 +650 -308
- package/app/styles/_icon-font.scss +5 -5
- package/app/styles/_icon-labels.scss +6 -7
- 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/_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 +16 -1
- package/app/styles/components/_card-item.scss +41 -28
- package/app/styles/components/_list-item.scss +24 -94
- 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 +78 -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 +111 -117
- 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 +77 -0
- package/app/styles/design-tokens/_new-colors.scss +700 -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 +96 -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 +93 -58
- 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 +32 -0
- package/app/styles/layout/_editor.scss +306 -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 +117 -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 +99 -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/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/IconButton.tsx +26 -12
- package/app-typescript/components/Input.tsx +38 -20
- package/app-typescript/components/Layouts/AuthorinInnerSideBar.tsx +15 -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 +38 -0
- package/app-typescript/components/Layouts/AuthoringMain.tsx +46 -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 +15 -0
- package/app-typescript/components/Layouts/Container.tsx +30 -0
- package/app-typescript/components/Layouts/HeaderPanel.tsx +15 -0
- package/app-typescript/components/Layouts/LayoutContainer.tsx +18 -0
- package/app-typescript/components/Layouts/LeftPanel.tsx +24 -0
- package/app-typescript/components/Layouts/MainPanel.tsx +22 -0
- package/app-typescript/components/Layouts/PageLayout.tsx +51 -0
- package/app-typescript/components/Layouts/Panel.tsx +207 -0
- package/app-typescript/components/Layouts/RightPanel.tsx +16 -0
- package/app-typescript/components/Layouts/index.tsx +25 -0
- package/app-typescript/components/LeftMenu.tsx +123 -49
- package/app-typescript/components/Lists/BoxedList.tsx +133 -0
- package/app-typescript/components/Lists/SimpleList.tsx +54 -0
- package/app-typescript/components/Lists/index.tsx +2 -0
- package/app-typescript/components/Modal.tsx +7 -2
- 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 +77 -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/Select.tsx +7 -9
- package/app-typescript/components/SelectGrid.tsx +3 -3
- package/app-typescript/components/SlidingToolbar.tsx +8 -2
- package/app-typescript/components/Spinner.tsx +0 -1
- package/app-typescript/components/SubNav.tsx +25 -4
- package/app-typescript/components/Switch.tsx +34 -12
- package/app-typescript/components/TabCustom.tsx +40 -89
- package/app-typescript/components/TabList.tsx +18 -43
- package/app-typescript/components/Tag.tsx +31 -8
- 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 +16 -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/examples.bundle.css +1933 -2393
- package/dist/examples.bundle.js +23583 -15736
- 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 +454 -0
- package/dist/playgrounds/react-playgrounds/FirstPlayground.tsx +4 -4
- package/dist/playgrounds/react-playgrounds/Index.tsx +5 -1
- package/dist/playgrounds/react-playgrounds/PageLayoutTest.tsx +161 -0
- package/dist/playgrounds/react-playgrounds/PersonalProfile.tsx +622 -0
- package/dist/playgrounds/react-playgrounds/SamsPlayground.tsx +30 -39
- package/dist/playgrounds/react-playgrounds/TestGround.tsx +232 -23
- package/dist/playgrounds/react-playgrounds/UiPlayground.tsx +300 -0
- package/dist/playgrounds/react-playgrounds/components/Layout.tsx +1 -1
- 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/DropZone.tsx +103 -0
- package/dist/react/Heading.tsx +106 -0
- package/dist/react/IconButtons.tsx +49 -42
- package/dist/react/Index.tsx +118 -11
- package/dist/react/Inputs.tsx +9 -24
- package/dist/react/LeftNavigations.tsx +161 -9
- package/dist/react/ListItems.tsx +3 -3
- package/dist/react/Modal.tsx +173 -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/Tabs.tsx +72 -248
- package/dist/react/Tags.tsx +45 -4
- 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/superdesk-ui.bundle.css +28522 -23998
- package/dist/superdesk-ui.bundle.js +7546 -3667
- package/dist/vendor.bundle.js +64 -68
- package/examples/css/docs-page.css +205 -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 +20 -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 +454 -0
- package/examples/pages/playgrounds/react-playgrounds/FirstPlayground.tsx +4 -4
- package/examples/pages/playgrounds/react-playgrounds/Index.tsx +5 -1
- package/examples/pages/playgrounds/react-playgrounds/PageLayoutTest.tsx +161 -0
- package/examples/pages/playgrounds/react-playgrounds/PersonalProfile.tsx +622 -0
- package/examples/pages/playgrounds/react-playgrounds/SamsPlayground.tsx +30 -39
- package/examples/pages/playgrounds/react-playgrounds/TestGround.tsx +232 -23
- package/examples/pages/playgrounds/react-playgrounds/UiPlayground.tsx +300 -0
- package/examples/pages/playgrounds/react-playgrounds/components/Layout.tsx +1 -1
- 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/DropZone.tsx +103 -0
- package/examples/pages/react/Heading.tsx +106 -0
- package/examples/pages/react/IconButtons.tsx +49 -42
- package/examples/pages/react/Index.tsx +118 -11
- package/examples/pages/react/Inputs.tsx +9 -24
- package/examples/pages/react/LeftNavigations.tsx +161 -9
- package/examples/pages/react/ListItems.tsx +3 -3
- package/examples/pages/react/Modal.tsx +173 -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/Tabs.tsx +72 -248
- package/examples/pages/react/Tags.tsx +45 -4
- 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 +10 -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/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/IconButton.d.ts +9 -2
- package/react/components/IconButton.js +13 -5
- package/react/components/Input.d.ts +20 -6
- 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/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 +13 -0
- package/react/components/{RadioButton.js → Layouts/AuthoringInnerHeader.js} +20 -22
- package/react/components/Layouts/AuthoringMain.d.ts +12 -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 +8 -0
- package/react/components/Layouts/AuthoringMainToolBar.js +47 -0
- package/react/components/Layouts/Container.d.ts +14 -0
- package/react/components/Layouts/Container.js +60 -0
- package/react/components/Layouts/HeaderPanel.d.ts +8 -0
- package/react/components/Layouts/HeaderPanel.js +47 -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 +10 -0
- package/react/components/Layouts/MainPanel.js +50 -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 +65 -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 +24 -0
- package/react/components/Layouts/index.js +55 -0
- package/react/components/LeftMenu.d.ts +8 -3
- package/react/components/LeftMenu.js +55 -16
- package/react/components/Lists/BoxedList.d.ts +36 -0
- package/react/components/Lists/BoxedList.js +137 -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 +3 -1
- package/react/components/Modal.js +3 -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 +22 -0
- package/react/components/Navigation/SideBarTabs.js +82 -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/Select.d.ts +1 -1
- package/react/components/Select.js +2 -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 +0 -1
- 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/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 +3 -3
- 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 +15 -4
- package/react/index.js +36 -6
- 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
@@ -58,9 +58,16 @@ var ToggleBox = /** @class */ (function (_super) {
|
|
58
58
|
return _this;
|
59
59
|
}
|
60
60
|
ToggleBox.prototype.render = function () {
|
61
|
-
var _a
|
61
|
+
var _a;
|
62
|
+
var classes = classnames_1.default('toggle-box', (_a = {
|
63
|
+
'toggle-box--margin-normal': this.props.margin === undefined
|
64
|
+
},
|
65
|
+
_a["toggle-box--margin-" + this.props.margin] = this.props.margin,
|
66
|
+
_a['hidden'] = !this.state.isOpen,
|
67
|
+
_a), this.props.className);
|
68
|
+
var _b = this.props, title = _b.title, hideUsingCSS = _b.hideUsingCSS, children = _b.children, badge = _b.badge;
|
62
69
|
var isOpen = this.state.isOpen;
|
63
|
-
return (react_1.default.createElement("div", { className:
|
70
|
+
return (react_1.default.createElement("div", { className: classes },
|
64
71
|
react_1.default.createElement("a", { className: "toggle-box__header", onClick: this.toggle, role: "button", tabIndex: 0, onKeyDown: this.handleKeyDown, id: "togglebox-" + this.htmlId },
|
65
72
|
react_1.default.createElement("div", { className: "toggle-box__chevron" },
|
66
73
|
react_1.default.createElement("i", { className: "icon-chevron-right-thin" })),
|
package/react/index.d.ts
CHANGED
@@ -10,6 +10,7 @@ export { Alert } from './components/Alert';
|
|
10
10
|
export { AvatarWrapper } from './components/Avatar';
|
11
11
|
export { AvatarContentText } from './components/Avatar';
|
12
12
|
export { AvatarContentImage } from './components/Avatar';
|
13
|
+
export { AvatarGroup } from './components/Avatar';
|
13
14
|
export { IconButton } from './components/IconButton';
|
14
15
|
export { IconLabel } from './components/IconLabel';
|
15
16
|
export { Tooltip } from './components/Tooltip';
|
@@ -22,21 +23,22 @@ export { Switch } from './components/Switch';
|
|
22
23
|
export { SwitchGroup } from './components/SwitchGroup';
|
23
24
|
export { ButtonGroup } from './components/ButtonGroup';
|
24
25
|
export { Loader } from './components/Loader';
|
25
|
-
export {
|
26
|
+
export { RadioGroup } from './components/RadioGroup';
|
26
27
|
export { Checkbox } from './components/Checkbox';
|
27
|
-
export {
|
28
|
+
export { RadioButtonGroup } from './components/RadioButtonGroup';
|
28
29
|
export { CheckboxButton } from './components/CheckboxButton';
|
29
30
|
export { CheckGroup } from './components/CheckGroup';
|
30
31
|
export { CheckButtonGroup } from './components/CheckButtonGroup';
|
31
32
|
export { NavButton } from './components/NavButton';
|
32
33
|
export { Tab, TabList } from './components/TabList';
|
33
34
|
export { LeftMenu } from './components/LeftMenu';
|
34
|
-
export { SubNav } from './components/SubNav';
|
35
|
+
export { SubNav, SubNavDivider } from './components/SubNav';
|
35
36
|
export { SlidingToolbar } from './components/SlidingToolbar';
|
36
37
|
export { StrechBar } from './components/StrechBar';
|
37
38
|
export { PropsList, Prop } from './components/PropsList';
|
38
39
|
export { Icon } from './components/Icon';
|
39
40
|
export { Divider } from './components/Divider';
|
41
|
+
export { ContentDivider } from './components/ContentDivider';
|
40
42
|
export { HeadingText } from './components/HeadingText';
|
41
43
|
export { DropdownFirst } from './components/DropdownFirst';
|
42
44
|
export { DropdownItem } from './components/DropdownFirst';
|
@@ -44,7 +46,7 @@ export { DropdownLabel } from './components/DropdownFirst';
|
|
44
46
|
export { DropdownDivider } from './components/DropdownFirst';
|
45
47
|
export { Dropdown } from './components/Dropdown';
|
46
48
|
export { Tag } from './components/Tag';
|
47
|
-
export {
|
49
|
+
export { TabLabel, TabPanel, TabContent, Tabs } from './components/TabCustom';
|
48
50
|
export { EmptyState } from './components/EmptyState';
|
49
51
|
export { Autocomplete } from './components/Autocomplete';
|
50
52
|
export { DonutChart } from './components/DonutChart';
|
@@ -59,7 +61,16 @@ export { Menu } from './components/Menu';
|
|
59
61
|
export { ToggleBox } from './components/Togglebox';
|
60
62
|
export { SelectGrid } from './components/SelectGrid';
|
61
63
|
export { IconPicker } from './components/IconPicker';
|
64
|
+
export { ThemeSelector } from './components/ThemeSelector';
|
65
|
+
export { DropZone } from './components/DropZone';
|
66
|
+
export * from './components/Layouts';
|
67
|
+
export * from './components/Form';
|
68
|
+
export * from './components/Navigation';
|
69
|
+
export * from './components/Lists';
|
62
70
|
export { Skeleton } from './components/Skeleton';
|
63
71
|
export { ListItemLoader } from './components/ListItemLoader';
|
72
|
+
export { Spinner, LoadingOverlay } from './components/Spinner';
|
73
|
+
export { Text } from './components/Text/Text';
|
74
|
+
export { Heading } from './components/Text/Heading';
|
64
75
|
export declare const ToggleBoxNext: any;
|
65
76
|
export declare const reactToAngular1: any;
|
package/react/index.js
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
"use strict";
|
2
2
|
// this intermediary file is required in order to be able to generate TypeScript definitions
|
3
3
|
// all exports in this file must also be exported from ../app/index.js
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
5
|
+
if (k2 === undefined) k2 = k;
|
6
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
7
|
+
}) : (function(o, m, k, k2) {
|
8
|
+
if (k2 === undefined) k2 = k;
|
9
|
+
o[k2] = m[k];
|
10
|
+
}));
|
11
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
12
|
+
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
|
13
|
+
};
|
4
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
5
15
|
var HelloWorld_1 = require("./components/HelloWorld");
|
6
16
|
Object.defineProperty(exports, "HelloWorld", { enumerable: true, get: function () { return HelloWorld_1.HelloWorld; } });
|
@@ -27,6 +37,8 @@ var Avatar_2 = require("./components/Avatar");
|
|
27
37
|
Object.defineProperty(exports, "AvatarContentText", { enumerable: true, get: function () { return Avatar_2.AvatarContentText; } });
|
28
38
|
var Avatar_3 = require("./components/Avatar");
|
29
39
|
Object.defineProperty(exports, "AvatarContentImage", { enumerable: true, get: function () { return Avatar_3.AvatarContentImage; } });
|
40
|
+
var Avatar_4 = require("./components/Avatar");
|
41
|
+
Object.defineProperty(exports, "AvatarGroup", { enumerable: true, get: function () { return Avatar_4.AvatarGroup; } });
|
30
42
|
var IconButton_1 = require("./components/IconButton");
|
31
43
|
Object.defineProperty(exports, "IconButton", { enumerable: true, get: function () { return IconButton_1.IconButton; } });
|
32
44
|
var IconLabel_1 = require("./components/IconLabel");
|
@@ -49,12 +61,12 @@ var ButtonGroup_1 = require("./components/ButtonGroup");
|
|
49
61
|
Object.defineProperty(exports, "ButtonGroup", { enumerable: true, get: function () { return ButtonGroup_1.ButtonGroup; } });
|
50
62
|
var Loader_1 = require("./components/Loader");
|
51
63
|
Object.defineProperty(exports, "Loader", { enumerable: true, get: function () { return Loader_1.Loader; } });
|
52
|
-
var
|
53
|
-
Object.defineProperty(exports, "
|
64
|
+
var RadioGroup_1 = require("./components/RadioGroup");
|
65
|
+
Object.defineProperty(exports, "RadioGroup", { enumerable: true, get: function () { return RadioGroup_1.RadioGroup; } });
|
54
66
|
var Checkbox_1 = require("./components/Checkbox");
|
55
67
|
Object.defineProperty(exports, "Checkbox", { enumerable: true, get: function () { return Checkbox_1.Checkbox; } });
|
56
|
-
var
|
57
|
-
Object.defineProperty(exports, "
|
68
|
+
var RadioButtonGroup_1 = require("./components/RadioButtonGroup");
|
69
|
+
Object.defineProperty(exports, "RadioButtonGroup", { enumerable: true, get: function () { return RadioButtonGroup_1.RadioButtonGroup; } });
|
58
70
|
var CheckboxButton_1 = require("./components/CheckboxButton");
|
59
71
|
Object.defineProperty(exports, "CheckboxButton", { enumerable: true, get: function () { return CheckboxButton_1.CheckboxButton; } });
|
60
72
|
var CheckGroup_1 = require("./components/CheckGroup");
|
@@ -70,6 +82,7 @@ var LeftMenu_1 = require("./components/LeftMenu");
|
|
70
82
|
Object.defineProperty(exports, "LeftMenu", { enumerable: true, get: function () { return LeftMenu_1.LeftMenu; } });
|
71
83
|
var SubNav_1 = require("./components/SubNav");
|
72
84
|
Object.defineProperty(exports, "SubNav", { enumerable: true, get: function () { return SubNav_1.SubNav; } });
|
85
|
+
Object.defineProperty(exports, "SubNavDivider", { enumerable: true, get: function () { return SubNav_1.SubNavDivider; } });
|
73
86
|
var SlidingToolbar_1 = require("./components/SlidingToolbar");
|
74
87
|
Object.defineProperty(exports, "SlidingToolbar", { enumerable: true, get: function () { return SlidingToolbar_1.SlidingToolbar; } });
|
75
88
|
var StrechBar_1 = require("./components/StrechBar");
|
@@ -81,6 +94,8 @@ var Icon_1 = require("./components/Icon");
|
|
81
94
|
Object.defineProperty(exports, "Icon", { enumerable: true, get: function () { return Icon_1.Icon; } });
|
82
95
|
var Divider_1 = require("./components/Divider");
|
83
96
|
Object.defineProperty(exports, "Divider", { enumerable: true, get: function () { return Divider_1.Divider; } });
|
97
|
+
var ContentDivider_1 = require("./components/ContentDivider");
|
98
|
+
Object.defineProperty(exports, "ContentDivider", { enumerable: true, get: function () { return ContentDivider_1.ContentDivider; } });
|
84
99
|
var HeadingText_1 = require("./components/HeadingText");
|
85
100
|
Object.defineProperty(exports, "HeadingText", { enumerable: true, get: function () { return HeadingText_1.HeadingText; } });
|
86
101
|
var DropdownFirst_1 = require("./components/DropdownFirst");
|
@@ -96,10 +111,10 @@ Object.defineProperty(exports, "Dropdown", { enumerable: true, get: function ()
|
|
96
111
|
var Tag_1 = require("./components/Tag");
|
97
112
|
Object.defineProperty(exports, "Tag", { enumerable: true, get: function () { return Tag_1.Tag; } });
|
98
113
|
var TabCustom_1 = require("./components/TabCustom");
|
99
|
-
Object.defineProperty(exports, "
|
114
|
+
Object.defineProperty(exports, "TabLabel", { enumerable: true, get: function () { return TabCustom_1.TabLabel; } });
|
100
115
|
Object.defineProperty(exports, "TabPanel", { enumerable: true, get: function () { return TabCustom_1.TabPanel; } });
|
101
116
|
Object.defineProperty(exports, "TabContent", { enumerable: true, get: function () { return TabCustom_1.TabContent; } });
|
102
|
-
Object.defineProperty(exports, "
|
117
|
+
Object.defineProperty(exports, "Tabs", { enumerable: true, get: function () { return TabCustom_1.Tabs; } });
|
103
118
|
var EmptyState_1 = require("./components/EmptyState");
|
104
119
|
Object.defineProperty(exports, "EmptyState", { enumerable: true, get: function () { return EmptyState_1.EmptyState; } });
|
105
120
|
var Autocomplete_1 = require("./components/Autocomplete");
|
@@ -140,7 +155,22 @@ var SelectGrid_1 = require("./components/SelectGrid");
|
|
140
155
|
Object.defineProperty(exports, "SelectGrid", { enumerable: true, get: function () { return SelectGrid_1.SelectGrid; } });
|
141
156
|
var IconPicker_1 = require("./components/IconPicker");
|
142
157
|
Object.defineProperty(exports, "IconPicker", { enumerable: true, get: function () { return IconPicker_1.IconPicker; } });
|
158
|
+
var ThemeSelector_1 = require("./components/ThemeSelector");
|
159
|
+
Object.defineProperty(exports, "ThemeSelector", { enumerable: true, get: function () { return ThemeSelector_1.ThemeSelector; } });
|
160
|
+
var DropZone_1 = require("./components/DropZone");
|
161
|
+
Object.defineProperty(exports, "DropZone", { enumerable: true, get: function () { return DropZone_1.DropZone; } });
|
162
|
+
__exportStar(require("./components/Layouts"), exports);
|
163
|
+
__exportStar(require("./components/Form"), exports);
|
164
|
+
__exportStar(require("./components/Navigation"), exports);
|
165
|
+
__exportStar(require("./components/Lists"), exports);
|
143
166
|
var Skeleton_1 = require("./components/Skeleton");
|
144
167
|
Object.defineProperty(exports, "Skeleton", { enumerable: true, get: function () { return Skeleton_1.Skeleton; } });
|
145
168
|
var ListItemLoader_1 = require("./components/ListItemLoader");
|
146
169
|
Object.defineProperty(exports, "ListItemLoader", { enumerable: true, get: function () { return ListItemLoader_1.ListItemLoader; } });
|
170
|
+
var Spinner_1 = require("./components/Spinner");
|
171
|
+
Object.defineProperty(exports, "Spinner", { enumerable: true, get: function () { return Spinner_1.Spinner; } });
|
172
|
+
Object.defineProperty(exports, "LoadingOverlay", { enumerable: true, get: function () { return Spinner_1.LoadingOverlay; } });
|
173
|
+
var Text_1 = require("./components/Text/Text");
|
174
|
+
Object.defineProperty(exports, "Text", { enumerable: true, get: function () { return Text_1.Text; } });
|
175
|
+
var Heading_1 = require("./components/Text/Heading");
|
176
|
+
Object.defineProperty(exports, "Heading", { enumerable: true, get: function () { return Heading_1.Heading; } });
|
@@ -1,326 +0,0 @@
|
|
1
|
-
// EDITOR Themes
|
2
|
-
$color-swatch-border-color: scale-color($sd-blue, $alpha: -100%);
|
3
|
-
$color-swatch-border-active-color: $sd-blue;
|
4
|
-
|
5
|
-
$color-swatch-size: 6.8rem;
|
6
|
-
$color-swatch-inner-size: 6rem;
|
7
|
-
|
8
|
-
$theme-background: $white !default;
|
9
|
-
$theme-color: $sd-text !default;
|
10
|
-
|
11
|
-
|
12
|
-
// Theme fonts
|
13
|
-
$font-sans-1: 'Roboto', sans-serif;
|
14
|
-
$font-serif-1: 'Merriweather', serif;
|
15
|
-
$font-monospace-1: 'Roboto Mono', monospace;
|
16
|
-
|
17
|
-
$theme-font-list: (
|
18
|
-
sans: $font-sans-1,
|
19
|
-
serif: $font-serif-1,
|
20
|
-
mono: $font-monospace-1,
|
21
|
-
);
|
22
|
-
|
23
|
-
$themes: (
|
24
|
-
'default': (
|
25
|
-
'bg-color': $white,
|
26
|
-
'text-color': $sd-text
|
27
|
-
),
|
28
|
-
'dark': (
|
29
|
-
'bg-color': $grayDarker,
|
30
|
-
'text-color': #AACCD1
|
31
|
-
),
|
32
|
-
'blue': (
|
33
|
-
'bg-color': #06356A,
|
34
|
-
'text-color': $white
|
35
|
-
),
|
36
|
-
'turquoise': (
|
37
|
-
'bg-color': #5AC7C3,
|
38
|
-
'text-color': #122235
|
39
|
-
),
|
40
|
-
'military': (
|
41
|
-
'bg-color': #949E5F,
|
42
|
-
'text-color': #252818
|
43
|
-
),
|
44
|
-
'natural': (
|
45
|
-
'bg-color': #EFE9C5,
|
46
|
-
'text-color': #1D1414
|
47
|
-
)
|
48
|
-
);
|
49
|
-
|
50
|
-
$headline-font-size: (
|
51
|
-
small: 2.3rem,
|
52
|
-
medium: 2.8rem,
|
53
|
-
large: 3.2rem,
|
54
|
-
);
|
55
|
-
|
56
|
-
$abstract-font-size: (
|
57
|
-
small: 1.4rem,
|
58
|
-
medium: 1.6rem,
|
59
|
-
large: 1.8rem,
|
60
|
-
);
|
61
|
-
|
62
|
-
$body-font-size: (
|
63
|
-
small: 1.4rem,
|
64
|
-
medium: 1.6rem,
|
65
|
-
large: 1.8rem,
|
66
|
-
);
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
@mixin editor-lable-base() {
|
71
|
-
display: inline-block;
|
72
|
-
padding: 0.4rem 0.7rem 0.3rem 0.7rem;
|
73
|
-
vertical-align: middle;
|
74
|
-
border-radius: 2px;
|
75
|
-
text-transform: uppercase;
|
76
|
-
line-height: 1rem;
|
77
|
-
letter-spacing: 0.05em;
|
78
|
-
font-size: 1rem;
|
79
|
-
white-space: nowrap;
|
80
|
-
font-weight: 500;
|
81
|
-
background-color: rgba(0,0,0,0.5);
|
82
|
-
color: $white;
|
83
|
-
font-family: "Roboto";
|
84
|
-
}
|
85
|
-
|
86
|
-
.color-swatch__list {
|
87
|
-
display: grid;
|
88
|
-
grid-template-columns: repeat(auto-fill, minmax(6.8rem, 6.8rem));
|
89
|
-
grid-gap: 0.9rem;
|
90
|
-
margin: 0.4rem 0 2.4rem 0;
|
91
|
-
}
|
92
|
-
@mixin color-swatch-base() {
|
93
|
-
height: $color-swatch-size;
|
94
|
-
width: $color-swatch-size;
|
95
|
-
padding: 0.2rem;
|
96
|
-
border-radius: 50%;
|
97
|
-
border: 2px solid $color-swatch-border-color;
|
98
|
-
}
|
99
|
-
@mixin color-swatch-inner-base() {
|
100
|
-
display: flex;
|
101
|
-
flex-direction: column;
|
102
|
-
align-items: center;
|
103
|
-
height: $color-swatch-inner-size;
|
104
|
-
width: $color-swatch-inner-size;
|
105
|
-
border-radius: 50%;
|
106
|
-
background-color: $white;
|
107
|
-
color: $sd-text;
|
108
|
-
text-align: center;
|
109
|
-
font-size: 2rem;
|
110
|
-
line-height: $color-swatch-inner-size;
|
111
|
-
text-transform: uppercase;
|
112
|
-
box-shadow: 0 1px 3px rgba(0,0,0,.16), 0 0 1px rgba(0,0,0,.1);
|
113
|
-
cursor: pointer;
|
114
|
-
&:hover {
|
115
|
-
box-shadow: 0 1px 3px rgba(0,0,0,.26), 0 0 1px rgba(0,0,0,.2);
|
116
|
-
}
|
117
|
-
}
|
118
|
-
.color-swatch {
|
119
|
-
@include color-swatch-base();
|
120
|
-
&--selected {
|
121
|
-
border-color: $color-swatch-border-active-color;
|
122
|
-
.color-swatch__inner {
|
123
|
-
box-shadow: none !important;
|
124
|
-
}
|
125
|
-
}
|
126
|
-
@each $theme, $colors in $themes {
|
127
|
-
&.sd-editor--theme-#{$theme} {
|
128
|
-
.color-swatch__inner {
|
129
|
-
background-color: map-get($colors, bg-color);
|
130
|
-
color: map-get($colors, text-color);
|
131
|
-
}
|
132
|
-
}
|
133
|
-
}
|
134
|
-
}
|
135
|
-
.color-swatch__inner {
|
136
|
-
@include color-swatch-inner-base();
|
137
|
-
}
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
// ------ THEME PREVIEW ------ //
|
142
|
-
// text fields
|
143
|
-
.text-field__headline {
|
144
|
-
font-weight: 500;
|
145
|
-
min-height: 6rem;
|
146
|
-
}
|
147
|
-
.text-field__abstract {
|
148
|
-
font-weight: 400;
|
149
|
-
font-style: italic;
|
150
|
-
min-height: 9.2rem;
|
151
|
-
}
|
152
|
-
.text-field__body {
|
153
|
-
font-weight: 300;
|
154
|
-
min-height: 9.2rem;
|
155
|
-
}
|
156
|
-
|
157
|
-
|
158
|
-
.theme-preview {
|
159
|
-
margin: 0 -2rem -2rem -2rem;
|
160
|
-
padding: 2rem;
|
161
|
-
box-shadow: inset 0 1px 3px rgba(0,0,0,.2);
|
162
|
-
.theme-preview__label {
|
163
|
-
opacity: 0.7;
|
164
|
-
transition: opacity 0.3s ease-out;
|
165
|
-
}
|
166
|
-
&:hover {
|
167
|
-
.theme-preview__label {
|
168
|
-
opacity: 1;
|
169
|
-
}
|
170
|
-
}
|
171
|
-
@each $name, $font in $theme-font-list {
|
172
|
-
&.sd-editor--font-#{$name} {
|
173
|
-
font-family: $font;
|
174
|
-
}
|
175
|
-
}
|
176
|
-
@each $theme, $colors in $themes {
|
177
|
-
&.sd-editor--theme-#{$theme} {
|
178
|
-
background-color: map-get($colors, bg-color);
|
179
|
-
color: map-get($colors, text-color);
|
180
|
-
}
|
181
|
-
}
|
182
|
-
@each $name, $size in $headline-font-size {
|
183
|
-
&.sd-editor--headline-#{$name} {
|
184
|
-
.text-field__headline {
|
185
|
-
font-size: $size;
|
186
|
-
}
|
187
|
-
}
|
188
|
-
}
|
189
|
-
@each $name, $size in $abstract-font-size {
|
190
|
-
&.sd-editor--abstract-#{$name} {
|
191
|
-
.text-field__abstract {
|
192
|
-
font-size: $size;
|
193
|
-
}
|
194
|
-
}
|
195
|
-
}
|
196
|
-
@each $name, $size in $body-font-size {
|
197
|
-
&.sd-editor--body-#{$name} {
|
198
|
-
.text-field__body {
|
199
|
-
font-size: $size;
|
200
|
-
}
|
201
|
-
}
|
202
|
-
}
|
203
|
-
}
|
204
|
-
|
205
|
-
.theme-preview__block {
|
206
|
-
margin-bottom: 1.2rem;
|
207
|
-
&:last-child {
|
208
|
-
margin-bottom: 0;
|
209
|
-
}
|
210
|
-
}
|
211
|
-
.theme-preview__label {
|
212
|
-
@include editor-lable-base();
|
213
|
-
}
|
214
|
-
.theme-preview__text-field {
|
215
|
-
display: flex;
|
216
|
-
line-height: 140%;
|
217
|
-
color: inherit;
|
218
|
-
font-family: inherit;
|
219
|
-
border-bottom: 1px dotted $neutral-border-color;
|
220
|
-
margin-bottom: 0.8rem;
|
221
|
-
padding: 1rem 0 0.5rem;
|
222
|
-
flex-direction: column;
|
223
|
-
justify-content: flex-end;
|
224
|
-
}
|
225
|
-
.theme-preview__media-field {
|
226
|
-
display: flex;
|
227
|
-
color: inherit;
|
228
|
-
font-family: inherit;
|
229
|
-
margin-bottom: 0.8rem;
|
230
|
-
padding: 1rem 0 0.5rem;
|
231
|
-
flex-direction: column;
|
232
|
-
}
|
233
|
-
.theme-preview__button-bar {
|
234
|
-
text-align: right;
|
235
|
-
.sd-check__wrapper + .sd-check__wrapper {
|
236
|
-
margin-left: 0.2rem;
|
237
|
-
}
|
238
|
-
}
|
239
|
-
|
240
|
-
|
241
|
-
// ------ THEME IN EDITOR ------ //
|
242
|
-
.main-article {
|
243
|
-
@each $theme, $colors in $themes {
|
244
|
-
&.sd-editor--theme-#{$theme} {
|
245
|
-
background-color: map-get($colors, bg-color);
|
246
|
-
color: map-get($colors, text-color);
|
247
|
-
.Editor3-root .DraftEditor-editorContainer blockquote {
|
248
|
-
border-left-color: map-get($colors, text-color);
|
249
|
-
}
|
250
|
-
}
|
251
|
-
}
|
252
|
-
@each $name, $font in $theme-font-list {
|
253
|
-
&.sd-editor--font-#{$name} {
|
254
|
-
font-family: $font;
|
255
|
-
}
|
256
|
-
}
|
257
|
-
@each $name, $size in $headline-font-size {
|
258
|
-
&.sd-editor--headline-#{$name} {
|
259
|
-
.headline .Editor3-root .DraftEditor-editorContainer {
|
260
|
-
font-size: $size;
|
261
|
-
}
|
262
|
-
// Editor 2
|
263
|
-
.headline .text-editor, .headline p .text-editor, .headline div .text-editor {
|
264
|
-
font-size: $size;
|
265
|
-
}
|
266
|
-
}
|
267
|
-
}
|
268
|
-
@each $name, $size in $abstract-font-size {
|
269
|
-
&.sd-editor--abstract-#{$name} {
|
270
|
-
.abstract .Editor3-root .DraftEditor-editorContainer {
|
271
|
-
font-size: $size;
|
272
|
-
}
|
273
|
-
// Editor 2
|
274
|
-
.abstract, .abstract p, .abstract div {
|
275
|
-
font-size: $size;
|
276
|
-
}
|
277
|
-
}
|
278
|
-
}
|
279
|
-
@each $name, $size in $body-font-size {
|
280
|
-
&.sd-editor--body-#{$name} {
|
281
|
-
.Editor3-root .DraftEditor-editorContainer {
|
282
|
-
font-size: $size;
|
283
|
-
h1 {
|
284
|
-
font-size: 2em;
|
285
|
-
}
|
286
|
-
h2 {
|
287
|
-
font-size: 1.5em;
|
288
|
-
line-height: 140%;
|
289
|
-
}
|
290
|
-
h3 {
|
291
|
-
font-size: 1.125em;
|
292
|
-
}
|
293
|
-
h4 {
|
294
|
-
font-size: 0.875em;
|
295
|
-
}
|
296
|
-
h5 {
|
297
|
-
font-size: 0.75em;
|
298
|
-
}
|
299
|
-
h6 {
|
300
|
-
font-size: 0.6875em;
|
301
|
-
color: inherit;
|
302
|
-
opacity: 0.7;
|
303
|
-
letter-spacing: 0.03em;
|
304
|
-
}
|
305
|
-
h1, h2, h3, h4, h5, h6 {
|
306
|
-
line-height: 140%;
|
307
|
-
}
|
308
|
-
blockquote {
|
309
|
-
margin: 0 0 0 4px;
|
310
|
-
box-shadow: -4px 0 0 currentColor;
|
311
|
-
box-shadow: -4px 0 0 rgba(165,157,157,0.5);
|
312
|
-
font-style: italic;
|
313
|
-
font-weight: 400;
|
314
|
-
padding: 0.5em 0 0 1em;
|
315
|
-
}
|
316
|
-
}
|
317
|
-
// Editor 2
|
318
|
-
.body-text .text-editor {
|
319
|
-
font-size: $size;
|
320
|
-
p {
|
321
|
-
font-size: $size;
|
322
|
-
}
|
323
|
-
}
|
324
|
-
}
|
325
|
-
}
|
326
|
-
}
|
@@ -1,76 +0,0 @@
|
|
1
|
-
// DESIGN TOKENS
|
2
|
-
// ====================================================
|
3
|
-
|
4
|
-
$sd-base-increment: 0.8rem;
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
// TYPOGRAPHY
|
9
|
-
// ----------------------------------------------------
|
10
|
-
$font-size__base: 1.3rem;
|
11
|
-
$font-size__base--: 1.3rem;
|
12
|
-
|
13
|
-
$font-size__button--default: 1.2rem;
|
14
|
-
$font-size__button--small: 1rem;
|
15
|
-
$font-size__button--large: 1.4rem;
|
16
|
-
|
17
|
-
$font-size__heading--1: 1.4rem;
|
18
|
-
|
19
|
-
$font-size__editor_base: 1.6rem;
|
20
|
-
$font-size__editor_H1: 2em;
|
21
|
-
$font-size__editor_H2: 1.5em;
|
22
|
-
$font-size__editor_H3: 1.125em;
|
23
|
-
$font-size__editor_H4: 0.875em;
|
24
|
-
$font-size__editor_H5: 0.75em;
|
25
|
-
$font-size__editor_H6: 0.6875em;
|
26
|
-
|
27
|
-
// SHAPES & SIZES
|
28
|
-
// ----------------------------------------------------
|
29
|
-
|
30
|
-
// left and right side-tab navigation width
|
31
|
-
|
32
|
-
$sd-sidebarMenu-width: 4.8rem;
|
33
|
-
$nav-height: 4.8rem;
|
34
|
-
$subnav-height: 4.8rem;
|
35
|
-
|
36
|
-
// Heights
|
37
|
-
$height-input--default: $sd-base-increment * 4;
|
38
|
-
|
39
|
-
$height__button--default: $height-input--default;
|
40
|
-
$height__button--small: $sd-base-increment * 3;
|
41
|
-
$height__button--large: $sd-base-increment * 5;
|
42
|
-
|
43
|
-
$height__icon-button--default: $height-input--default;
|
44
|
-
$height__icon-button--small: $sd-base-increment * 3;
|
45
|
-
|
46
|
-
// Spaces
|
47
|
-
$padding__button--default: 0 1.2rem !default;
|
48
|
-
$padding__button--small: 0 0.8rem;
|
49
|
-
$padding__button--large: 0 1.6rem;
|
50
|
-
|
51
|
-
// Border Radius
|
52
|
-
$border-radius__base--x-small: 2px;
|
53
|
-
$border-radius__base--small: 3px;
|
54
|
-
$border-radius__base--medium: 4px;
|
55
|
-
$border-radius__base--large: 6px;
|
56
|
-
$border-radius__base--x-large: 8px;
|
57
|
-
$border-radius__base--full: 9999px;
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
// ELEVATIONS
|
62
|
-
// ----------------------------------------------------
|
63
|
-
|
64
|
-
$shadow__base--z1: 0 1px 3px rgba(0,0,0,.16), 0 0 1px rgba(0,0,0,.1);
|
65
|
-
$shadow__base--z2: 0 1px 4px rgba(0,0,0,.16), 0 2px 6px rgba(0,0,0,.12), 0 0 1px rgba(0,0,0,.1);
|
66
|
-
$shadow__base--z3: 0 1px 6px rgba(0,0,0,.16), 0 3px 8px rgba(0,0,0,.24), 0 0 1px rgba(0,0,0,.1);
|
67
|
-
$shadow__base--z4: 0 2px 10px rgba(0,0,0,.2), 0 6px 16px rgba(0,0,0,.3), 0 0 1px rgba(0,0,0,.1);
|
68
|
-
|
69
|
-
$shadow__dropdown--default: 0 2px 10px rgba(0, 0, 0, 0.4), 0 3px 1px -2px rgba(0, 0, 0, 0.1);
|
70
|
-
$shadow__modal--default: 0 0 8px 2px rgba(0, 0, 0, 0.3);
|
71
|
-
|
72
|
-
|
73
|
-
// TRANSITIONS
|
74
|
-
// ----------------------------------------------------
|
75
|
-
|
76
|
-
$sd-transition__menu-item: background-color ease 0.1s;
|
@@ -1,57 +0,0 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
import nextId from 'react-id-generator';
|
3
|
-
|
4
|
-
interface IOption {
|
5
|
-
label: string;
|
6
|
-
value: string;
|
7
|
-
disabled?: boolean;
|
8
|
-
}
|
9
|
-
|
10
|
-
interface IProps {
|
11
|
-
value?: IOption['value'];
|
12
|
-
options: Array<IOption>;
|
13
|
-
labelSide?: 'left' | 'right'; // defaults to 'right'
|
14
|
-
required?: boolean;
|
15
|
-
onChange(nextValue: IOption['value']): void;
|
16
|
-
}
|
17
|
-
export class Radio extends React.Component<IProps> {
|
18
|
-
htmlId = nextId();
|
19
|
-
|
20
|
-
constructor(props: IProps) {
|
21
|
-
super(props);
|
22
|
-
this.handleChange = this.handleChange.bind(this);
|
23
|
-
}
|
24
|
-
|
25
|
-
handleChange(item: any) {
|
26
|
-
if (!item.disabled) {
|
27
|
-
this.props.onChange(item.value);
|
28
|
-
}
|
29
|
-
}
|
30
|
-
|
31
|
-
render() {
|
32
|
-
return (
|
33
|
-
this.props.options.map((item: any, index: number) => (
|
34
|
-
<span className="sd-check-new__wrapper"
|
35
|
-
key={index}
|
36
|
-
label-position={this.props.labelSide || null}
|
37
|
-
tabIndex={-1}>
|
38
|
-
|
39
|
-
<input
|
40
|
-
type="radio"
|
41
|
-
className="sd-check-new__input"
|
42
|
-
id={this.htmlId + index}
|
43
|
-
tabIndex={0}
|
44
|
-
name={this.htmlId}
|
45
|
-
onChange={() => this.handleChange(item)}
|
46
|
-
disabled={item.disabled}
|
47
|
-
required={this.props.required}
|
48
|
-
checked={item.value === this.props.value}
|
49
|
-
/>
|
50
|
-
|
51
|
-
<span className="sd-radio-new"></span>
|
52
|
-
<label htmlFor={this.htmlId + index} >{item.label}</label>
|
53
|
-
</span>
|
54
|
-
))
|
55
|
-
);
|
56
|
-
}
|
57
|
-
}
|