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
@@ -3,16 +3,13 @@
|
|
3
3
|
|
4
4
|
// Custom checkox & Radio buttons
|
5
5
|
|
6
|
-
:root {
|
7
|
-
--color-checkbox-border: rgba(0,0,0,0.2);
|
8
|
-
--color-checkbox-border-hover: rgba(0,0,0,0.4);
|
9
|
-
}
|
10
6
|
|
11
7
|
$checkBoxBorderColor: var(--color-checkbox-border);
|
12
8
|
$checkBoxBorderColorHover: var(--color-checkbox-border-hover);
|
13
|
-
$checkButtonTextColor
|
14
|
-
$
|
15
|
-
$
|
9
|
+
$checkButtonTextColor: var(--color-text-light);
|
10
|
+
$checkButtonBorderColor: var(--sd-colour-line--light);
|
11
|
+
$checkButtonBorderColorHover: var(--sd-colour-line--strong);
|
12
|
+
$checkButtonBorderRadius: $border-radius__base--small;
|
16
13
|
|
17
14
|
|
18
15
|
@mixin check-base {
|
@@ -24,12 +21,12 @@ $checkButtonBorderColor: rgba(140,140,140,0.5);
|
|
24
21
|
border: 2px solid $checkBoxBorderColor;
|
25
22
|
vertical-align: middle;
|
26
23
|
font-family: $baseFontFamily;
|
27
|
-
|
24
|
+
transition: all 0.2s ease-out;
|
28
25
|
}
|
29
26
|
|
30
27
|
.sd-checkbox {
|
31
28
|
@include check-base;
|
32
|
-
|
29
|
+
border-radius: $border-radius__base--x-small;
|
33
30
|
&::after {
|
34
31
|
font-family: 'sd_icons';
|
35
32
|
content:'\e61d';
|
@@ -53,38 +50,38 @@ $checkButtonBorderColor: rgba(140,140,140,0.5);
|
|
53
50
|
cursor: pointer;
|
54
51
|
}
|
55
52
|
&.checked, &[checked="checked"] {
|
56
|
-
border-color: $sd-
|
57
|
-
background: $sd-
|
53
|
+
border-color: $sd-colour-interactive;
|
54
|
+
background: $sd-colour-interactive;
|
58
55
|
&::after {
|
59
|
-
|
56
|
+
opacity: 1;
|
60
57
|
transform: scale(1, 1);
|
61
58
|
}
|
62
59
|
&:hover {
|
63
|
-
border-color:
|
64
|
-
background-color:
|
60
|
+
border-color: var(--sd-colour-interactive--hover);
|
61
|
+
background-color: var(--sd-colour-interactive--hover);
|
65
62
|
}
|
66
63
|
}
|
67
64
|
// Modifier for .sd-checkbox to create a radio button
|
68
65
|
&--radio {
|
69
|
-
|
66
|
+
border-radius: $border-radius__base--full;
|
70
67
|
&::after {
|
71
68
|
height: 0.8rem;
|
72
69
|
width: 0.8rem;
|
73
|
-
|
70
|
+
border-radius: $border-radius__base--full;
|
74
71
|
content:' ';
|
75
72
|
position: absolute;
|
76
|
-
background-color: $sd-
|
73
|
+
background-color: $sd-colour-interactive;
|
77
74
|
top: 0.2rem;
|
78
|
-
|
79
|
-
|
80
|
-
|
75
|
+
inset-inline-start: 0.2rem;
|
76
|
+
opacity: 0;
|
77
|
+
transition: all 0.1s ease-in;
|
81
78
|
transform: scale(0.25, 0.25);
|
82
79
|
}
|
83
80
|
&.checked, &[checked="checked"] {
|
84
|
-
border-color: $sd-
|
81
|
+
border-color: $sd-colour-interactive;
|
85
82
|
background: transparent;
|
86
83
|
&::after {
|
87
|
-
|
84
|
+
opacity: 1;
|
88
85
|
transform: scale(1, 1);
|
89
86
|
}
|
90
87
|
&:hover {
|
@@ -99,7 +96,7 @@ $checkButtonBorderColor: rgba(140,140,140,0.5);
|
|
99
96
|
line-height: 1;
|
100
97
|
color: $checkButtonTextColor;
|
101
98
|
border: 1px solid $checkButtonBorderColor;
|
102
|
-
|
99
|
+
border-radius: $checkButtonBorderRadius;
|
103
100
|
@include transition(all, 0.2s, ease-out);
|
104
101
|
display: inline-flex;
|
105
102
|
align-items: center;
|
@@ -124,7 +121,7 @@ $checkButtonBorderColor: rgba(140,140,140,0.5);
|
|
124
121
|
color: currentColor;
|
125
122
|
}
|
126
123
|
i + label {
|
127
|
-
margin-
|
124
|
+
margin-inline-start: 8px;
|
128
125
|
}
|
129
126
|
|
130
127
|
&::after {
|
@@ -132,21 +129,21 @@ $checkButtonBorderColor: rgba(140,140,140,0.5);
|
|
132
129
|
display: none;
|
133
130
|
}
|
134
131
|
&:hover {
|
135
|
-
color:
|
136
|
-
border-color:
|
137
|
-
|
132
|
+
color: var(--color-text);
|
133
|
+
border-color: $checkButtonBorderColorHover;
|
134
|
+
box-shadow: 0 1px 4px 0 hsla(0, 0%, 0%, 0.2);
|
138
135
|
}
|
139
136
|
&.checked, &[checked="checked"] {
|
140
|
-
background-color:
|
141
|
-
border-color:
|
142
|
-
border-top-color:
|
143
|
-
|
137
|
+
background-color: var(--sd-colour-interactive--active);
|
138
|
+
border-color: var(--sd-colour-interactive--active);
|
139
|
+
border-top-color: var(--sd-colour-interactive--darken-20);
|
140
|
+
box-shadow: inset 0 2px 0 0 hsla(0, 0%, 0%, 0.2);
|
144
141
|
color: $white;
|
145
142
|
&:hover {
|
146
143
|
color: $white;
|
147
|
-
border-color:
|
148
|
-
background-color:
|
149
|
-
|
144
|
+
border-color: var(--sd-colour-interactive--hover);
|
145
|
+
background-color: var(--sd-colour-interactive--active);
|
146
|
+
box-shadow: inset 0 2px 0 0 hsla(0, 0%, 0%, 0.2);
|
150
147
|
}
|
151
148
|
label {
|
152
149
|
color: $white;
|
@@ -174,23 +171,19 @@ $checkButtonBorderColor: rgba(140,140,140,0.5);
|
|
174
171
|
vertical-align: middle;
|
175
172
|
}
|
176
173
|
|
177
|
-
|
178
|
-
@include sd-margin('0-5', 'left');
|
179
|
-
}
|
180
|
-
.sd-check__wrapper:first-child, .sd-check__wrapper:only-of-type {
|
181
|
-
margin-left: 0;
|
182
|
-
}
|
174
|
+
|
183
175
|
|
184
176
|
.sd-check__wrapper {
|
185
|
-
margin-left: 0.8rem;
|
186
177
|
display: inline-block;
|
187
178
|
.sd-checkbox + label {
|
188
179
|
display: inline-block;
|
189
180
|
vertical-align: middle;
|
190
|
-
margin: 0
|
191
|
-
|
181
|
+
margin: 0;
|
182
|
+
margin-inline-start: 0.6rem;
|
192
183
|
i {
|
193
|
-
margin: 0
|
184
|
+
margin: 0;
|
185
|
+
margin-inline-end: 0.4rem;
|
186
|
+
margin-inline-start: 0.8rem;
|
194
187
|
}
|
195
188
|
}
|
196
189
|
.sd-label--disabled {
|
@@ -199,11 +192,13 @@ $checkButtonBorderColor: rgba(140,140,140,0.5);
|
|
199
192
|
}
|
200
193
|
|
201
194
|
.sd-check__group {
|
202
|
-
padding: 0
|
195
|
+
padding: 0;
|
196
|
+
display: flex;
|
197
|
+
gap: $sd-base-increment;
|
203
198
|
&--grid {
|
204
199
|
display: grid;
|
205
200
|
grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
|
206
|
-
grid-gap:
|
201
|
+
grid-gap: $sd-base-increment;
|
207
202
|
.sd-check__wrapper {
|
208
203
|
display: block;
|
209
204
|
.sd-checkbox.sd-checkbox--button-style {
|
@@ -212,6 +207,17 @@ $checkButtonBorderColor: rgba(140,140,140,0.5);
|
|
212
207
|
justify-content: center;
|
213
208
|
}
|
214
209
|
}
|
210
|
+
.sd-check-button__text-label-inner {
|
211
|
+
white-space: normal;
|
212
|
+
}
|
213
|
+
}
|
214
|
+
}
|
215
|
+
.sd-check-button__group--grid {
|
216
|
+
.sd-check-button--native {
|
217
|
+
.sd-check-button__text-label-inner {
|
218
|
+
white-space: normal;
|
219
|
+
text-align: center;
|
220
|
+
}
|
215
221
|
}
|
216
222
|
}
|
217
223
|
|
@@ -222,7 +228,7 @@ $checkButtonBorderColor: rgba(140,140,140,0.5);
|
|
222
228
|
|
223
229
|
.sd-check-new {
|
224
230
|
@include check-base;
|
225
|
-
|
231
|
+
border-radius: $border-radius__base--x-small;
|
226
232
|
&::after {
|
227
233
|
font-family: 'sd_icons';
|
228
234
|
content:'\e61d';
|
@@ -235,10 +241,10 @@ $checkButtonBorderColor: rgba(140,140,140,0.5);
|
|
235
241
|
-moz-osx-font-smoothing: grayscale;
|
236
242
|
color: #fff;
|
237
243
|
position: absolute;
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
244
|
+
inset-block-start: 0;
|
245
|
+
inset-inline-start: 0;
|
246
|
+
opacity: 0;
|
247
|
+
transition: all 0.2s ease-in;
|
242
248
|
transform: scale(0.25, 0.25);
|
243
249
|
}
|
244
250
|
&:hover {
|
@@ -246,15 +252,15 @@ $checkButtonBorderColor: rgba(140,140,140,0.5);
|
|
246
252
|
cursor: pointer;
|
247
253
|
}
|
248
254
|
&.checked, &[checked="checked"] {
|
249
|
-
border-color: $sd-
|
250
|
-
background: $sd-
|
255
|
+
border-color: $sd-colour-interactive;
|
256
|
+
background: $sd-colour-interactive;
|
251
257
|
&::after {
|
252
|
-
|
258
|
+
opacity: 1;
|
253
259
|
transform: scale(1, 1);
|
254
260
|
}
|
255
261
|
&:hover {
|
256
|
-
border-color:
|
257
|
-
background-color:
|
262
|
+
border-color: var(--sd-colour-interactive--hover);
|
263
|
+
background-color: var(--sd-colour-interactive--hover);
|
258
264
|
}
|
259
265
|
}
|
260
266
|
&--disabled, &[disabled="disabled"] {
|
@@ -270,7 +276,7 @@ $checkButtonBorderColor: rgba(140,140,140,0.5);
|
|
270
276
|
}
|
271
277
|
.sd-radio-new {
|
272
278
|
@include check-base;
|
273
|
-
|
279
|
+
border-radius: $border-radius__base--full;
|
274
280
|
&:hover {
|
275
281
|
border-color: $checkBoxBorderColorHover;
|
276
282
|
cursor: pointer;
|
@@ -278,21 +284,21 @@ $checkButtonBorderColor: rgba(140,140,140,0.5);
|
|
278
284
|
&::after {
|
279
285
|
height: 0.8rem;
|
280
286
|
width: 0.8rem;
|
281
|
-
|
287
|
+
border-radius: $border-radius__base--full;
|
282
288
|
content:' ';
|
283
289
|
position: absolute;
|
284
|
-
background-color: $sd-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
290
|
+
background-color: $sd-colour-interactive;
|
291
|
+
inset-block-start: 0.2rem;
|
292
|
+
inset-inline-start: 0.2rem;
|
293
|
+
opacity: 0;
|
294
|
+
transition: all 0.1s ease-in;
|
289
295
|
transform: scale(0.25, 0.25);
|
290
296
|
}
|
291
297
|
&.checked, &[checked="checked"] {
|
292
|
-
border-color: $sd-
|
298
|
+
border-color: $sd-colour-interactive;
|
293
299
|
background: transparent;
|
294
300
|
&::after {
|
295
|
-
|
301
|
+
opacity: 1;
|
296
302
|
transform: scale(1, 1);
|
297
303
|
}
|
298
304
|
&:hover {
|
@@ -316,51 +322,53 @@ $checkButtonBorderColor: rgba(140,140,140,0.5);
|
|
316
322
|
@include sd-padding('1-5', 'x');
|
317
323
|
line-height: 1;
|
318
324
|
border: 1px solid $checkButtonBorderColor;
|
319
|
-
|
320
|
-
|
321
|
-
display:
|
325
|
+
border-radius: $checkButtonBorderRadius;
|
326
|
+
transition: all 0.2s ease-in-out;
|
327
|
+
display: flex;
|
322
328
|
align-items: center;
|
323
329
|
justify-content: center;
|
324
330
|
height: $sd-base-increment * 4;
|
325
|
-
color:
|
326
|
-
@include text-overflow;
|
331
|
+
color: var(--color-text);
|
327
332
|
cursor: pointer;
|
328
333
|
.sd-check-button__text-label {
|
334
|
+
display: flex;
|
329
335
|
margin:0;
|
330
336
|
text-align: center;
|
331
337
|
cursor: pointer;
|
332
|
-
padding:
|
333
|
-
|
338
|
+
padding: 0;
|
339
|
+
padding-block-start: 2px;
|
340
|
+
padding-block-end: 2px;
|
334
341
|
opacity: 0.8;
|
335
|
-
|
342
|
+
transition: opacity 0.2s ease-in-out;
|
336
343
|
}
|
337
344
|
[class^="icon-"], [class*=" icon-"] {
|
338
345
|
color: currentColor;
|
339
346
|
}
|
340
347
|
i + .sd-check-button__text-label {
|
341
|
-
|
348
|
+
margin-inline-start: $sd-base-increment;
|
342
349
|
}
|
343
350
|
&:hover {
|
344
|
-
border-color: scale-color($checkButtonBorderColor, $alpha: 90%);
|
345
|
-
@include box-shadow(0, 1px, 4px, 0, rgba(0,0,0,0.20));
|
346
351
|
.sd-check-button__text-label {
|
347
352
|
opacity: 1;
|
353
|
+
border-color: $checkButtonBorderColorHover;
|
354
|
+
box-shadow: 0 1px 4px 0 hsla(0, 0%, 0%, 0.16);
|
355
|
+
color: var(--color-text);
|
348
356
|
}
|
349
357
|
}
|
350
358
|
&.checked, &[checked="checked"] {
|
351
|
-
background-color:
|
352
|
-
border-color:
|
353
|
-
border-top-color:
|
354
|
-
|
359
|
+
background-color: var(--sd-colour-interactive--active);
|
360
|
+
border-color: var(--sd-colour-interactive--active);
|
361
|
+
border-top-color: var(--sd-colour-interactive--darken-20);
|
362
|
+
box-shadow: inset 0 2px 0 0 hsla(0, 0%, 0%, 0.2);
|
355
363
|
color: $white;
|
356
364
|
.sd-check-button__text-label {
|
357
365
|
opacity: 1;
|
358
366
|
}
|
359
367
|
&:hover {
|
360
368
|
color: $white;
|
361
|
-
border-color:
|
362
|
-
background-color:
|
363
|
-
|
369
|
+
border-color: var(--sd-colour-interactive--active);
|
370
|
+
background-color: var(--sd-colour-interactive--hover);
|
371
|
+
box-shadow: inset 0 2px 0 0 hsla(0, 0%, 0%, 0.2);
|
364
372
|
}
|
365
373
|
}
|
366
374
|
.sd-label--disabled {
|
@@ -369,126 +377,43 @@ $checkButtonBorderColor: rgba(140,140,140,0.5);
|
|
369
377
|
}
|
370
378
|
}
|
371
379
|
|
372
|
-
.sd-check-button__group {
|
373
|
-
display: flex;
|
374
|
-
flex-direction: row;
|
375
|
-
align-items: center;
|
376
|
-
}
|
377
|
-
|
378
380
|
|
379
381
|
.sd-check-button__group {
|
380
382
|
display: flex;
|
381
383
|
flex-direction: row;
|
382
384
|
align-items: center;
|
385
|
+
gap: $sd-base-increment * 1;
|
383
386
|
flex: 0;
|
384
|
-
|
385
|
-
margin:
|
386
|
-
}
|
387
|
-
&--left {
|
388
|
-
margin-right: auto;
|
389
|
-
.sd-check-button {
|
390
|
-
@include sd-margin('1', 'right');
|
391
|
-
&:last-child {
|
392
|
-
margin-right: 0;
|
393
|
-
}
|
394
|
-
}
|
395
|
-
&.sd-check-button__group--compact {
|
396
|
-
.sd-check-button {
|
397
|
-
@include sd-margin('0-5', 'right');
|
398
|
-
&:last-child {
|
399
|
-
margin-right: 0;
|
400
|
-
}
|
401
|
-
}
|
402
|
-
}
|
403
|
-
&.sd-check-button__group--padded {
|
404
|
-
@include sd-margin('1-5', 'left');
|
405
|
-
}
|
387
|
+
&--left, &--start {
|
388
|
+
margin-inline-end: auto;
|
406
389
|
}
|
407
|
-
&--right {
|
408
|
-
margin-
|
409
|
-
.sd-check-button {
|
410
|
-
@include sd-margin('1', 'left');
|
411
|
-
&:first-child {
|
412
|
-
margin-left: 0;
|
413
|
-
}
|
414
|
-
}
|
415
|
-
&.sd-check-button__group--compact {
|
416
|
-
.sd-check-button {
|
417
|
-
@include sd-margin('0-5', 'left');
|
418
|
-
&:first-child {
|
419
|
-
margin-right: 0;
|
420
|
-
}
|
421
|
-
}
|
422
|
-
}
|
423
|
-
&.sd-check-button__group--padded {
|
424
|
-
@include sd-margin('1-5', 'right');
|
425
|
-
}
|
390
|
+
&--right, &--end {
|
391
|
+
margin-inline-start: auto;
|
426
392
|
}
|
427
393
|
&--center {
|
428
|
-
margin-
|
429
|
-
margin-
|
430
|
-
.sd-check-button {
|
431
|
-
@include sd-margin('0-5', 'x');
|
432
|
-
&:first-child {
|
433
|
-
margin-left: 0;
|
434
|
-
}
|
435
|
-
&:last-child {
|
436
|
-
margin-right: 0;
|
437
|
-
}
|
438
|
-
}
|
439
|
-
&.sd-check-button__group--compact {
|
440
|
-
.sd-check-button {
|
441
|
-
margin: 0 0.2rem;
|
442
|
-
&:first-child {
|
443
|
-
margin-left: 0;
|
444
|
-
}
|
445
|
-
&:last-child {
|
446
|
-
margin-right: 0;
|
447
|
-
}
|
448
|
-
}
|
449
|
-
}
|
394
|
+
margin-inline-start: auto;
|
395
|
+
margin-inline-end: auto;
|
450
396
|
}
|
451
397
|
&--inline {
|
452
|
-
margin-
|
453
|
-
margin-
|
454
|
-
.sd-check-button {
|
455
|
-
@include sd-margin('0-5', 'x');
|
456
|
-
&:first-child {
|
457
|
-
margin-left: 0;
|
458
|
-
}
|
459
|
-
&:last-child {
|
460
|
-
margin-right: 0;
|
461
|
-
}
|
462
|
-
}
|
463
|
-
&.sd-check-button__group--compact {
|
464
|
-
.sd-check-button {
|
465
|
-
margin: 0 0.2rem;
|
466
|
-
&:first-child {
|
467
|
-
margin-left: 0;
|
468
|
-
}
|
469
|
-
&:last-child {
|
470
|
-
margin-right: 0;
|
471
|
-
}
|
472
|
-
}
|
473
|
-
}
|
474
|
-
&.sd-check-button__group--padded {
|
475
|
-
@include sd-margin('1-5', 'x');
|
476
|
-
}
|
398
|
+
margin-inline-start: 0;
|
399
|
+
margin-inline-end: 0;
|
477
400
|
}
|
478
401
|
&--grid {
|
479
402
|
flex: 1 1 0;
|
480
403
|
display: grid;
|
481
404
|
grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
|
482
405
|
grid-gap: $sd-base-increment;
|
483
|
-
|
484
|
-
margin: 0;
|
485
|
-
}
|
406
|
+
align-self: stretch;
|
486
407
|
&.sd-check-button__group--compact {
|
487
408
|
grid-gap: $sd-base-increment / 2;
|
488
409
|
}
|
489
410
|
}
|
490
411
|
&.sd-check-button__group--padded {
|
491
|
-
|
412
|
+
margin-inline-start: $sd-base-increment * 1.5;
|
413
|
+
margin-inline-end: $sd-base-increment * 1.5;
|
414
|
+
}
|
415
|
+
&.sd-check-button__group--compact {
|
416
|
+
gap: $sd-base-increment * 0.5;
|
492
417
|
}
|
493
418
|
}
|
494
419
|
|
@@ -504,7 +429,7 @@ $checkButtonBorderColor: rgba(140,140,140,0.5);
|
|
504
429
|
}
|
505
430
|
.sd-check-new + label,
|
506
431
|
.sd-radio-new + label {
|
507
|
-
|
432
|
+
margin-inline-start: $sd-base-increment;
|
508
433
|
}
|
509
434
|
.sd-check-new + label:empty,
|
510
435
|
.sd-radio-new + label:empty {
|
@@ -513,17 +438,17 @@ $checkButtonBorderColor: rgba(140,140,140,0.5);
|
|
513
438
|
.sd-label--disabled {
|
514
439
|
opacity: 0.40;
|
515
440
|
}
|
516
|
-
&[label-position="left"] {
|
441
|
+
&[label-position="left"], &[label-position="start"] {
|
517
442
|
label {
|
518
|
-
|
519
|
-
margin-
|
443
|
+
margin-inline-end: $sd-base-increment;
|
444
|
+
margin-inline-start: 0;
|
520
445
|
&:empty {
|
521
446
|
margin: 0 !important;
|
522
447
|
}
|
523
448
|
}
|
524
449
|
.sd-check-new__input {
|
525
|
-
|
526
|
-
|
450
|
+
inset-inline-start: auto;
|
451
|
+
inset-inline-end: 0;
|
527
452
|
}
|
528
453
|
.sd-check-new, .sd-radio-new {
|
529
454
|
order: 2;
|
@@ -539,8 +464,8 @@ $checkButtonBorderColor: rgba(140,140,140,0.5);
|
|
539
464
|
input:checked {
|
540
465
|
& ~ .sd-check-new,
|
541
466
|
& ~ .sd-radio-new {
|
542
|
-
border-color:
|
543
|
-
background:
|
467
|
+
border-color: $sd-colour-interactive;
|
468
|
+
background: $sd-colour-interactive;
|
544
469
|
&::after {
|
545
470
|
opacity: 1;
|
546
471
|
transform: scale(1, 1);
|
@@ -550,14 +475,14 @@ $checkButtonBorderColor: rgba(140,140,140,0.5);
|
|
550
475
|
background: transparent;
|
551
476
|
}
|
552
477
|
& ~ label {
|
553
|
-
color:
|
478
|
+
color: $sd-colour-interactive;
|
554
479
|
}
|
555
480
|
}
|
556
481
|
|
557
482
|
input:focus {
|
558
483
|
& ~ .sd-check-new,
|
559
484
|
& ~ .sd-radio-new {
|
560
|
-
box-shadow: 0 0 0 3px
|
485
|
+
box-shadow: 0 0 0 3px $sd-colour--focus-shadow;
|
561
486
|
}
|
562
487
|
}
|
563
488
|
|
@@ -579,8 +504,8 @@ $checkButtonBorderColor: rgba(140,140,140,0.5);
|
|
579
504
|
}
|
580
505
|
|
581
506
|
.sd-check-new__input {
|
582
|
-
|
583
|
-
|
507
|
+
inset-block-start: 0;
|
508
|
+
inset-inline-start: 0;
|
584
509
|
width: 16px;
|
585
510
|
cursor: inherit;
|
586
511
|
height: 16px;
|
@@ -601,18 +526,11 @@ $checkButtonBorderColor: rgba(140,140,140,0.5);
|
|
601
526
|
display: flex;
|
602
527
|
flex-direction: row;
|
603
528
|
align-items: center;
|
604
|
-
|
605
|
-
@include sd-margin('3', 'right');
|
606
|
-
}
|
529
|
+
gap: $sd-base-increment * 3;
|
607
530
|
&--vertical {
|
531
|
+
gap: $sd-base-increment * 2;
|
608
532
|
flex-direction: column;
|
609
533
|
align-items: flex-start;
|
610
|
-
.sd-check-new__wrapper {
|
611
|
-
@include sd-margin('2', 'bottom');
|
612
|
-
&:last-child {
|
613
|
-
margin-bottom: 0;
|
614
|
-
}
|
615
|
-
}
|
616
534
|
}
|
617
535
|
}
|
618
536
|
|
@@ -625,27 +543,26 @@ $checkButtonBorderColor: rgba(140,140,140,0.5);
|
|
625
543
|
background: transparent;
|
626
544
|
overflow: visible;
|
627
545
|
.sd-check-button__text-label {
|
628
|
-
padding-
|
629
|
-
padding-
|
546
|
+
padding-inline-start: 1.2rem;
|
547
|
+
padding-inline-end: 1.2rem;
|
630
548
|
line-height: 1;
|
631
549
|
border: 1px solid rgba(140, 140, 140, 0.5);
|
632
|
-
border-radius:
|
550
|
+
border-radius: $checkButtonBorderRadius;
|
633
551
|
transition: all 0.2s ease-in-out;
|
634
|
-
display:
|
552
|
+
display: flex;
|
635
553
|
align-items: center;
|
636
554
|
justify-content: center;
|
637
555
|
height: 3.2rem;
|
638
556
|
color: inherit;
|
639
|
-
overflow: hidden;
|
640
|
-
white-space: nowrap;
|
641
|
-
text-overflow: ellipsis;
|
642
557
|
cursor: pointer;
|
643
558
|
width: 100%;
|
559
|
+
white-space: nowrap;
|
644
560
|
.sd-check-button__text-label-inner {
|
645
561
|
user-select: none;
|
562
|
+
display: inline-block;
|
646
563
|
}
|
647
564
|
i + .sd-check-button__text-label-inner {
|
648
|
-
margin-
|
565
|
+
margin-inline-start: $sd-base-increment;
|
649
566
|
}
|
650
567
|
}
|
651
568
|
}
|
@@ -653,8 +570,8 @@ $checkButtonBorderColor: rgba(140,140,140,0.5);
|
|
653
570
|
|
654
571
|
.sd-check-button__input {
|
655
572
|
position: absolute;
|
656
|
-
|
657
|
-
|
573
|
+
inset-block-start: 0;
|
574
|
+
inset-inline-start: 0;
|
658
575
|
opacity: 0;
|
659
576
|
pointer-events: none;
|
660
577
|
height:100%;
|
@@ -670,9 +587,9 @@ $checkButtonBorderColor: rgba(140,140,140,0.5);
|
|
670
587
|
& ~ label {
|
671
588
|
opacity: 1;
|
672
589
|
color: $white;
|
673
|
-
background-color:
|
674
|
-
border-color:
|
675
|
-
border-top-color:
|
590
|
+
background-color: var(--sd-colour-interactive--active);
|
591
|
+
border-color: var(--sd-colour-interactive--active);
|
592
|
+
border-top-color: var(--sd-colour-interactive--darken-20);
|
676
593
|
box-shadow: inset 0 2px 0 0 rgba(0, 0, 0, 0.2);
|
677
594
|
}
|
678
595
|
}
|
@@ -685,11 +602,11 @@ $checkButtonBorderColor: rgba(140,140,140,0.5);
|
|
685
602
|
}
|
686
603
|
&:focus-within {
|
687
604
|
.sd-check-button__text-label {
|
688
|
-
box-shadow: 0 0 0 3px
|
605
|
+
box-shadow: 0 0 0 3px $sd-colour--focus-shadow;
|
689
606
|
}
|
690
607
|
.sd-check-button__input:checked {
|
691
608
|
& ~ label {
|
692
|
-
box-shadow: inset 0 2px 0 0 rgba(0, 0, 0, 0.2), 0 0 0 3px
|
609
|
+
box-shadow: inset 0 2px 0 0 rgba(0, 0, 0, 0.2), 0 0 0 3px $sd-colour--focus-shadow;
|
693
610
|
}
|
694
611
|
}
|
695
612
|
|
@@ -700,36 +617,54 @@ $checkButtonBorderColor: rgba(140,140,140,0.5);
|
|
700
617
|
// END NEW CHECKBOX & RADIO
|
701
618
|
// ============================================================================
|
702
619
|
|
703
|
-
|
704
|
-
|
705
|
-
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
|
710
|
-
|
711
|
-
|
712
|
-
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
|
719
|
-
|
620
|
+
|
621
|
+
|
622
|
+
// TOGGLE BUTTON
|
623
|
+
// use of this will be discontinued. It is here just to support older components in
|
624
|
+
// Superdeks untill they are refactored
|
625
|
+
|
626
|
+
|
627
|
+
.toggle-button {
|
628
|
+
@include sd-padding('1-5', 'x');
|
629
|
+
line-height: 1;
|
630
|
+
border: 1px solid $checkButtonBorderColor;
|
631
|
+
border-radius: $checkButtonBorderRadius;
|
632
|
+
transition: all 0.2s ease-in-out;
|
633
|
+
display: inline-flex;
|
634
|
+
align-items: center;
|
635
|
+
justify-content: center;
|
636
|
+
gap: 8px;
|
637
|
+
height: $sd-base-increment * 4;
|
638
|
+
color: var(--color-text);
|
639
|
+
@include text-overflow;
|
640
|
+
cursor: pointer;
|
641
|
+
text-decoration: none;
|
642
|
+
font-size: 1.2rem;
|
643
|
+
background: transparent;
|
644
|
+
transition: all 0.2s ease-out;
|
645
|
+
[class^="icon-"],
|
646
|
+
[class*=" icon-"],
|
647
|
+
.toggle-button__icon {
|
648
|
+
color: currentColor;
|
720
649
|
}
|
721
|
-
|
722
|
-
color: $
|
650
|
+
&:hover {
|
651
|
+
border-color: $checkButtonBorderColorHover;
|
652
|
+
box-shadow: 0 1px 4px 0 hsla(0, 0%, 0%, 0.16);
|
653
|
+
color: var(--color-text);
|
654
|
+
text-decoration: none !important;
|
655
|
+
}
|
656
|
+
&.toggle-button--active {
|
657
|
+
background-color: var(--sd-colour-interactive--active);
|
658
|
+
border-color: var(--sd-colour-interactive--active);
|
659
|
+
border-top-color: var(--sd-colour-interactive--darken-20);
|
660
|
+
box-shadow: inset 0 2px 0 0 hsla(0, 0%, 0%, 0.2);
|
661
|
+
color: $white;
|
723
662
|
&:hover {
|
724
|
-
color:
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
border-top-color: darken($sd-blue, 20%);
|
729
|
-
@include box-shadow(0, 2px, 0, 0, rgba(0,0,0,0.20), true);
|
730
|
-
&:hover {
|
731
|
-
border-color: darken($sd-blue, 25%);
|
732
|
-
}
|
663
|
+
color: $white;
|
664
|
+
border-color: var(--sd-colour-interactive--active);
|
665
|
+
background-color: var(--sd-colour-interactive--hover);
|
666
|
+
box-shadow: inset 0 2px 0 0 hsla(0, 0%, 0%, 0.2);
|
733
667
|
}
|
734
668
|
}
|
735
669
|
}
|
670
|
+
|