superdesk-ui-framework 3.0.0-beta.0 → 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 +1 -1
- package/app/scripts/modals.js +22 -9
- package/app/styles/_accessibility.scss +311 -4
- package/app/styles/_alerts.scss +57 -19
- package/app/styles/_avatar.scss +25 -1
- package/app/styles/_badge.scss +2 -2
- package/app/styles/_big-icon-font.scss +1 -1
- package/app/styles/_boxed-list.scss +38 -18
- package/app/styles/_buttons.scss +431 -332
- package/app/styles/_carousel.scss +17 -11
- package/app/styles/_design-tokens.scss +2 -0
- package/app/styles/_helpers.scss +186 -30
- package/app/styles/_icon-font.scss +1 -1
- package/app/styles/_labels.scss +12 -6
- package/app/styles/_loaders.scss +13 -0
- package/app/styles/_master-desk.scss +5 -5
- package/app/styles/_mixins.scss +13 -3
- package/app/styles/_modals.scss +4 -28
- package/app/styles/_normalize.scss +1 -0
- package/app/styles/_panel-info.scss +19 -14
- package/app/styles/_sd-tag-input.scss +104 -3
- package/app/styles/_simple-list.scss +39 -17
- package/app/styles/_spinner.scss +46 -0
- package/app/styles/_tabs.scss +6 -8
- package/app/styles/_tag-labels.scss +11 -2
- package/app/styles/_thumb-carousel.scss +11 -10
- package/app/styles/_toggle-box.scss +46 -12
- package/app/styles/_toggle-button.scss +42 -0
- package/app/styles/_tooltips.scss +3 -3
- package/app/styles/_variables.scss +0 -1
- package/app/styles/app.scss +9 -2
- package/app/styles/components/_card-item.scss +33 -21
- package/app/styles/components/_list-item.scss +9 -4
- package/app/styles/components/_sd-dropzone.scss +78 -0
- package/app/styles/components/_sd-grid-item.scss +2 -2
- package/app/styles/components/_sd-searchbar.scss +5 -98
- package/app/styles/components/_subnav.scss +83 -61
- package/app/styles/components/_theme-selector.scss +189 -0
- package/app/styles/design-tokens/_design-tokens-general.scss +77 -0
- package/app/styles/{variables → design-tokens}/_new-colors.scss +34 -20
- package/app/styles/dropdowns/_basic-dropdown.scss +30 -3
- package/app/styles/editor/_editor-buttons.scss +54 -0
- package/app/styles/{_editor-themes.scss → editor/_editor-themes.scss} +0 -0
- package/app/styles/form-elements/_checkbox.scss +85 -58
- package/app/styles/form-elements/_forms-general.scss +90 -14
- package/app/styles/form-elements/_inputs.scss +22 -3
- package/app/styles/form-elements/_select-grid.scss +79 -0
- package/app/styles/grids/_basic-grid.scss +52 -26
- package/app/styles/grids/_grid-layout.scss +35 -21
- package/app/styles/grids/_layout-grid.scss +4 -4
- package/app/styles/grids/_sd-kanban-list.scss +2 -2
- package/app/styles/interface-elements/_side-panel.scss +87 -58
- package/app/styles/layout/_basic-layout.scss +1 -4
- package/app/styles/layout/_container.scss +32 -0
- package/app/styles/layout/_editor.scss +306 -0
- package/app/styles/menus/_sd-left-navigation.scss +14 -2
- package/app/styles/menus/_sd-sidebar-menu.scss +102 -9
- package/app/styles/pr-superdesk-theme.scss +3 -0
- package/app/styles/primereact/_pr-datepicker.scss +58 -7
- package/app/styles/primereact/_pr-dropdown.scss +157 -8
- package/app/styles/primereact/_pr-general.scss +4 -0
- package/app/styles/primereact/_pr-skeleton.scss +35 -0
- package/app/styles/variables/_colors.scss +2 -452
- package/app/styles/variables/_dimensions.scss +85 -1
- package/app/styles/variables/_form-elements.scss +0 -2
- package/app-typescript/components/Alert.tsx +16 -1
- package/app-typescript/components/Avatar.tsx +21 -0
- package/app-typescript/components/Button.tsx +7 -1
- package/app-typescript/components/ButtonGroup.tsx +5 -4
- 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/DatePicker.tsx +6 -2
- package/app-typescript/components/DropZone.tsx +89 -0
- package/app-typescript/components/Dropdown.tsx +9 -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/IconPicker.tsx +277 -0
- package/app-typescript/components/Input.tsx +41 -8
- 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/ListItemLoader.tsx +30 -0
- 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 +1 -1
- 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 +12 -4
- package/app-typescript/components/SelectGrid.tsx +233 -0
- package/app-typescript/components/Skeleton.tsx +48 -0
- package/app-typescript/components/SlidingToolbar.tsx +8 -2
- package/app-typescript/components/Spinner.tsx +32 -0
- package/app-typescript/components/SubNav.tsx +25 -4
- package/app-typescript/components/Switch.tsx +34 -12
- package/app-typescript/components/Tag.tsx +31 -7
- 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/Togglebox.tsx +8 -6
- package/app-typescript/components/TreeSelect.tsx +330 -0
- package/app-typescript/index.ts +19 -3
- 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/components/basic-grid.html +1 -1
- package/dist/components/checkbox.html +1 -1
- package/dist/components/modals.html +1 -0
- package/dist/examples.bundle.css +99 -1225
- package/dist/examples.bundle.js +24704 -15626
- 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/master-desk.html +1 -3
- 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 +4 -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 +10 -10
- package/dist/playgrounds/react-playgrounds/TestGround.tsx +232 -23
- package/dist/playgrounds/react-playgrounds/UiPlayground.tsx +8 -79
- package/dist/react/Alerts.tsx +91 -18
- 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 +65 -113
- package/dist/react/Carousel.tsx +2 -3
- package/dist/react/Checkboxs.tsx +66 -25
- package/dist/react/Container.tsx +143 -0
- package/dist/react/DropZone.tsx +103 -0
- package/dist/react/Heading.tsx +106 -0
- package/dist/react/IconButtons.tsx +51 -21
- package/dist/react/IconFont.tsx +7 -6
- package/dist/react/IconPicker.tsx +65 -0
- package/dist/react/Index.tsx +100 -19
- package/dist/react/Inputs.tsx +9 -3
- package/dist/react/LeftNavigations.tsx +161 -9
- package/dist/react/ListItems.tsx +34 -0
- package/dist/react/Modal.tsx +7 -7
- 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/SelectGrid.tsx +121 -0
- package/dist/react/Selects.tsx +2 -0
- package/dist/react/SimpleList.tsx +148 -0
- package/dist/react/SubNav.tsx +65 -18
- package/dist/react/Tags.tsx +57 -5
- package/dist/react/Text.tsx +134 -0
- package/dist/react/TreeSelect.tsx +178 -0
- package/dist/react.html +4 -0
- package/dist/superdesk-ui.bundle.css +26706 -20044
- package/dist/superdesk-ui.bundle.js +8456 -3426
- package/dist/vendor.bundle.js +13677 -13655
- package/examples/css/docs-page.css +98 -27
- 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.js +16 -0
- package/examples/pages/components/basic-grid.html +1 -1
- package/examples/pages/components/checkbox.html +1 -1
- package/examples/pages/components/modals.html +1 -0
- 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/master-desk.html +1 -3
- 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 +4 -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 +10 -10
- package/examples/pages/playgrounds/react-playgrounds/TestGround.tsx +232 -23
- package/examples/pages/playgrounds/react-playgrounds/UiPlayground.tsx +8 -79
- package/examples/pages/react/Alerts.tsx +91 -18
- 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 +65 -113
- 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/DropZone.tsx +103 -0
- package/examples/pages/react/Heading.tsx +106 -0
- package/examples/pages/react/IconButtons.tsx +51 -21
- package/examples/pages/react/IconFont.tsx +7 -6
- package/examples/pages/react/IconPicker.tsx +65 -0
- package/examples/pages/react/Index.tsx +100 -19
- package/examples/pages/react/Inputs.tsx +9 -3
- package/examples/pages/react/LeftNavigations.tsx +161 -9
- package/examples/pages/react/ListItems.tsx +34 -0
- package/examples/pages/react/Modal.tsx +7 -7
- 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/SelectGrid.tsx +121 -0
- package/examples/pages/react/Selects.tsx +2 -0
- package/examples/pages/react/SimpleList.tsx +148 -0
- package/examples/pages/react/SubNav.tsx +65 -18
- package/examples/pages/react/Tags.tsx +57 -5
- package/examples/pages/react/Text.tsx +134 -0
- package/examples/pages/react/TreeSelect.tsx +178 -0
- package/examples/pages/react.html +4 -0
- package/package.json +9 -5
- 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/Button.d.ts +2 -0
- package/react/components/Button.js +4 -2
- package/react/components/ButtonGroup.d.ts +3 -2
- package/react/components/ButtonGroup.js +2 -2
- 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/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 +3 -3
- 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/IconPicker.d.ts +24 -0
- package/react/components/IconPicker.js +283 -0
- package/react/components/Input.d.ts +20 -3
- package/react/components/Input.js +12 -3
- 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/ListItemLoader.d.ts +4 -0
- package/react/components/ListItemLoader.js +62 -0
- 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.js +1 -1
- 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 +3 -1
- package/react/components/Select.js +5 -3
- package/react/components/SelectGrid.d.ts +45 -0
- package/react/components/SelectGrid.js +179 -0
- package/react/components/Skeleton.d.ts +30 -0
- package/react/components/Skeleton.js +55 -0
- package/react/components/SlidingToolbar.d.ts +1 -1
- package/react/components/SlidingToolbar.js +11 -1
- package/react/components/Spinner.d.ts +11 -0
- package/react/components/Spinner.js +69 -0
- 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 +0 -1
- package/react/components/Tag.d.ts +3 -2
- 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/Togglebox.d.ts +1 -0
- package/react/components/Togglebox.js +9 -2
- package/react/index.d.ts +17 -3
- package/react/index.js +40 -4
- package/app/styles/variables/_design-tokens-general.scss +0 -136
- 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
@@ -2,15 +2,17 @@
|
|
2
2
|
@import url('https://fonts.googleapis.com/css?family=Source+Code+Pro:200,300,400&subset=latin-ext');
|
3
3
|
|
4
4
|
:root {
|
5
|
-
color: hsla(214, 13%,
|
5
|
+
color: hsla(214, 13%, 20%, 1);
|
6
6
|
--docs-page-color-bg-default: hsl(0, 0%, 97%);
|
7
7
|
--docs-page-color-bg-00: hsla(214, 13%, 96%, 1);
|
8
8
|
--docs-page-color-bg-10: hsla(0, 0%, 100%, 1);
|
9
9
|
--docs-page-color-bg__window-bar: hsl(0, 0%, 92%);
|
10
|
+
--docs-page-color-bg__aside: hsla(214, 13%, 92%, 1);
|
11
|
+
--docs-page-color-bg__header: hsl(216, 45%, 24%);
|
10
12
|
|
11
13
|
--docs-page-color-bg__content-row--white: hsla(0, 0%, 100%, 1);
|
12
14
|
--docs-page-color-bg__content-row--grey: hsla(0, 0%, 95%, 1);
|
13
|
-
--docs-page-color-bg__example-box: hsla(
|
15
|
+
--docs-page-color-bg__example-box: hsla(214, 13%, 94%, 1);
|
14
16
|
--docs-page-color-bg__graphic-btn: hsla(0, 0%, 100%, 1);
|
15
17
|
--docs-page-color-bg__graphic-btn-graphic: linear-gradient(180deg, hsla(165, 57%, 95%, 1) 4%, hsla(191, 53%, 86%, 1) 96%);
|
16
18
|
|
@@ -25,12 +27,14 @@
|
|
25
27
|
--docs-page-color-bg-00: hsla(214, 13%, 12%, 1);
|
26
28
|
--docs-page-color-bg-10: hsla(214, 13%, 12%, 1);
|
27
29
|
--docs-page-color-bg__window-bar: hsl(0, 0%, 8%);
|
30
|
+
--docs-page-color-bg__aside: hsla(214, 13%, 16%, 1);
|
31
|
+
--docs-page-color-bg__header: hsl(216, 40%, 18%);
|
28
32
|
|
29
33
|
--docs-page-color-bg__content-row--white: hsla(0, 0%, 8%, 1);
|
30
34
|
--docs-page-color-bg__content-row--grey: hsla(0, 0%, 12%, 1);
|
31
|
-
--docs-page-color-bg__example-box: hsla(
|
32
|
-
--docs-page-color-bg__graphic-btn: hsla(
|
33
|
-
--docs-page-color-bg__graphic-btn-graphic:
|
35
|
+
--docs-page-color-bg__example-box: hsla(214, 13%, 18%, 1);
|
36
|
+
--docs-page-color-bg__graphic-btn: hsla(214, 13%, 8%, 1);
|
37
|
+
--docs-page-color-bg__graphic-btn-graphic: hsla(214, 13%, 14%, 1);
|
34
38
|
|
35
39
|
--docs-page-border__window-bar--top: hsla(0, 0%, 91%, 0.02);
|
36
40
|
--docs-page-border__window-bar--bottom: hsla(0, 0%, 88%, 0.12);
|
@@ -206,10 +210,9 @@ p.docs-page__paragraph b, div.docs-page__paragraph b {
|
|
206
210
|
text-decoration: underline;
|
207
211
|
}
|
208
212
|
.docs-page__header {
|
209
|
-
background:
|
210
|
-
background: #22385a;
|
213
|
+
background: var(--docs-page-color-bg__header);
|
211
214
|
color: white;
|
212
|
-
padding: 0 24px;
|
215
|
+
padding: 0 8px 0 24px;
|
213
216
|
height: 64px;
|
214
217
|
grid-column: 1 / 3;
|
215
218
|
grid-row: 1 / 2;
|
@@ -218,6 +221,32 @@ p.docs-page__paragraph b, div.docs-page__paragraph b {
|
|
218
221
|
box-shadow: 0 1px 6px rgba(0,0,0,0.2), 0 1px 1px rgba(0,0,0,0.12);
|
219
222
|
z-index: 2;
|
220
223
|
}
|
224
|
+
.docs-page__header-button {
|
225
|
+
background: transparent;
|
226
|
+
color: white;
|
227
|
+
padding: 0;
|
228
|
+
height: 40px;
|
229
|
+
width: 40px;
|
230
|
+
border-radius: 999px;
|
231
|
+
margin-inline-start: 0px;
|
232
|
+
margin-inline-end: 8px;
|
233
|
+
display: flex;
|
234
|
+
align-items: center;
|
235
|
+
justify-content: center;
|
236
|
+
opacity: 0.8;
|
237
|
+
transition: all 0.2s ease;
|
238
|
+
}
|
239
|
+
.docs-page__header-button i {
|
240
|
+
color: white !important;
|
241
|
+
}
|
242
|
+
.docs-page__header-button:hover {
|
243
|
+
background: hsla(0, 0%, 0%, 0.2);
|
244
|
+
opacity: 1;
|
245
|
+
}
|
246
|
+
.docs-page__header-button:active {
|
247
|
+
background: var(--sd-colour-interactive);
|
248
|
+
opacity: 1;
|
249
|
+
}
|
221
250
|
.docs-page__header-logo {
|
222
251
|
height: 40px;
|
223
252
|
width: 40px;
|
@@ -226,7 +255,8 @@ p.docs-page__paragraph b, div.docs-page__paragraph b {
|
|
226
255
|
background-size: 100%;
|
227
256
|
}
|
228
257
|
.docs-page__header-nav {
|
229
|
-
margin-
|
258
|
+
margin-inline-start: auto;
|
259
|
+
margin-inline-end: 16px;
|
230
260
|
display: flex;
|
231
261
|
flex-direction: row;
|
232
262
|
align-items: stretch;
|
@@ -283,7 +313,7 @@ p.docs-page__paragraph b, div.docs-page__paragraph b {
|
|
283
313
|
grid-column: 1 / 2;
|
284
314
|
grid-row: 2 / 3;
|
285
315
|
width: 280px;
|
286
|
-
background-color:
|
316
|
+
background-color: var(--docs-page-color-bg__aside);
|
287
317
|
overflow-y: auto;
|
288
318
|
}
|
289
319
|
.docs-page__sidebar.scroll {
|
@@ -340,7 +370,7 @@ p.docs-page__paragraph b, div.docs-page__paragraph b {
|
|
340
370
|
}
|
341
371
|
.docs-page__nav-title {
|
342
372
|
text-transform: uppercase;
|
343
|
-
color:
|
373
|
+
color: var(--color-text);
|
344
374
|
font-size: 12px;
|
345
375
|
font-weight: 500;
|
346
376
|
letter-spacing: 0.1em;
|
@@ -456,7 +486,7 @@ p.docs-page__paragraph b, div.docs-page__paragraph b {
|
|
456
486
|
font-size: 16px;
|
457
487
|
line-height: 24px;
|
458
488
|
font-weight: 300;
|
459
|
-
color:
|
489
|
+
color: var(--color-text);
|
460
490
|
border-inline-start: 4px solid transparent;
|
461
491
|
}
|
462
492
|
.docs-page__nav-item a {
|
@@ -464,29 +494,29 @@ p.docs-page__paragraph b, div.docs-page__paragraph b {
|
|
464
494
|
line-height: 32px;
|
465
495
|
display: block;
|
466
496
|
padding-inline-start: 24px;
|
467
|
-
color:
|
497
|
+
color: var(--color-text-light);
|
468
498
|
background-color: rgba(255, 255, 255, 0);
|
469
499
|
cursor: pointer;
|
470
500
|
text-decoration: none;
|
471
501
|
transition: all ease-in-out 0.2s;
|
472
502
|
}
|
473
503
|
.docs-page__nav-item a:hover {
|
474
|
-
color:
|
475
|
-
background-color:
|
504
|
+
color: var(--color-text);
|
505
|
+
background-color: var(--docs-page-color-bg-00);
|
476
506
|
}
|
477
507
|
.docs-page__nav-item a:active {
|
478
|
-
color:
|
479
|
-
background-color:
|
508
|
+
color: var(--color-text-light);
|
509
|
+
background-color: var(--sd-colour-interactive--alpha-20);
|
480
510
|
}
|
481
511
|
|
482
512
|
.docs-page__nav-item.docs-page__nav-item--active {
|
483
|
-
border-color:
|
484
|
-
background-color:
|
513
|
+
border-color: var(--sd-colour-interactive);
|
514
|
+
background-color: var(--docs-page-color-bg-00);
|
485
515
|
font-weight: 400;
|
486
516
|
}
|
487
517
|
|
488
518
|
.docs-page__nav-item.docs-page__nav-item--active a {
|
489
|
-
color:
|
519
|
+
color: var(--sd-colour-interactive);
|
490
520
|
}
|
491
521
|
|
492
522
|
.docs-page__section {
|
@@ -575,7 +605,7 @@ p.docs-page__paragraph b, div.docs-page__paragraph b {
|
|
575
605
|
}
|
576
606
|
.docs-page__code-markup {
|
577
607
|
display: none;
|
578
|
-
background-color:
|
608
|
+
background-color: hsl(214, 13%, 10%);
|
579
609
|
padding: 16px 16px 16px 36px;
|
580
610
|
overflow-y: scroll;
|
581
611
|
}
|
@@ -593,11 +623,14 @@ pre.prettyprint {
|
|
593
623
|
|
594
624
|
.docs-page__paragraph code {
|
595
625
|
font-size: 85%;
|
596
|
-
padding: 0
|
597
|
-
background-color:
|
626
|
+
padding: 0 0.4em;
|
627
|
+
background-color: var(--sd-colour-interactive--alpha-20);
|
598
628
|
border-radius: 3px;
|
599
629
|
font-family: 'Source Code Pro', monospace;
|
600
630
|
font-weight: 400;
|
631
|
+
line-height: inherit;
|
632
|
+
vertical-align: baseline;
|
633
|
+
color: var(--color-text);
|
601
634
|
}
|
602
635
|
|
603
636
|
.docs-page__unordered-list {
|
@@ -649,6 +682,7 @@ pre.prettyprint {
|
|
649
682
|
max-width: 1200px;
|
650
683
|
display: grid;
|
651
684
|
grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
|
685
|
+
transition: all 0.2s ease;
|
652
686
|
}
|
653
687
|
.docs-page__icon-font-list li {
|
654
688
|
display: flex;
|
@@ -661,7 +695,7 @@ pre.prettyprint {
|
|
661
695
|
transition: all 0.2s ease-in-out;
|
662
696
|
}
|
663
697
|
.docs-page__icon-font-list li:hover {
|
664
|
-
box-shadow: 0 1px
|
698
|
+
box-shadow: 0 0 0 1px var(--sd-shadow-outline), 0 1px 2px hsla(0, 0%, 0%, 0.12), 0 1px 6px hsla(0, 0%, 0%, 0.24);
|
665
699
|
}
|
666
700
|
|
667
701
|
.docs-page__icon-font-list li i {
|
@@ -818,6 +852,13 @@ pre.prettyprint {
|
|
818
852
|
grid-row: 2/3;
|
819
853
|
grid-column: 2/3;
|
820
854
|
}
|
855
|
+
|
856
|
+
#scrollContainer {
|
857
|
+
overflow: scroll;
|
858
|
+
scroll-behavior: smooth;
|
859
|
+
}
|
860
|
+
|
861
|
+
.
|
821
862
|
/* ---------------- COLOR SWATCHES ---------------- */
|
822
863
|
|
823
864
|
.doc-swatches__grid {
|
@@ -883,7 +924,7 @@ pre.prettyprint {
|
|
883
924
|
font-size: 15px;
|
884
925
|
font-weight: 300;
|
885
926
|
line-height: 150%;
|
886
|
-
color:
|
927
|
+
color: var(--color-text-light);
|
887
928
|
}
|
888
929
|
.docs-page__color--primary {
|
889
930
|
color: var(--docs-page-color-primary) !important;
|
@@ -916,19 +957,49 @@ doc-gif-img:hover img {
|
|
916
957
|
.docs-page__container table td {
|
917
958
|
border-color: var(--docs-page-border__table) !important;
|
918
959
|
}
|
919
|
-
/* -------------- END COLOR SWATCHES -------------- */
|
920
960
|
|
961
|
+
|
962
|
+
/* -------------- END COLOR SWATCHES -------------- */
|
921
963
|
/* -------------- PrismJS overrides -------------- */
|
964
|
+
|
922
965
|
code[class*="language-"],
|
923
966
|
pre[class*="language-"] {
|
924
967
|
font-family: 'Source Code Pro', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
|
925
968
|
font-size: 1.1em;
|
926
969
|
border-radius: 0.4rem;
|
927
970
|
}
|
971
|
+
pre[class*="language-"] {
|
972
|
+
background: hsl(214, 13%, 8%);
|
973
|
+
}
|
928
974
|
|
929
975
|
/*// extra large screen media query /100em = 1600px/*/
|
930
976
|
@media only screen and (min-width: 100em) {
|
931
977
|
.docs-page__section {
|
932
978
|
max-width: 80%;
|
933
979
|
}
|
934
|
-
}
|
980
|
+
}
|
981
|
+
|
982
|
+
|
983
|
+
/* -------------- DOC PAGE SPECIFIC OVERRIDES -------------- */
|
984
|
+
|
985
|
+
doc-react-playground {
|
986
|
+
display: contents;
|
987
|
+
}
|
988
|
+
|
989
|
+
.docs-page doc-react-playground .sd-main-content-grid {
|
990
|
+
grid-column: 2 / 3;
|
991
|
+
overflow: auto;
|
992
|
+
}
|
993
|
+
|
994
|
+
.docs-page .sd-editor-grid {
|
995
|
+
grid-row: 2 / 3;
|
996
|
+
grid-column: 2 / 3;
|
997
|
+
overflow-y: auto;
|
998
|
+
}
|
999
|
+
.docs-page doc-react-playground .sd-editor-grid {
|
1000
|
+
grid-row: 2 / 3;
|
1001
|
+
grid-column: 2 / 3;
|
1002
|
+
overflow-y: auto;
|
1003
|
+
}
|
1004
|
+
|
1005
|
+
/* ------------ END DOC PAGE SPECIFIC OVERRIDES ------------ */
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
package/examples/index.js
CHANGED
@@ -336,6 +336,10 @@ export default angular.module('ui-docs', [
|
|
336
336
|
name: 'Master Desk',
|
337
337
|
page: 'master-desk.html'
|
338
338
|
},
|
339
|
+
'editor-3-test': {
|
340
|
+
name: 'Editor grid',
|
341
|
+
page: 'editor-3-test.html'
|
342
|
+
},
|
339
343
|
},
|
340
344
|
// Publisher playgrounds
|
341
345
|
publisher: {
|
@@ -390,6 +394,18 @@ export default angular.module('ui-docs', [
|
|
390
394
|
'ui-playground': {
|
391
395
|
name: 'UI',
|
392
396
|
component: 'UiPlayground'
|
397
|
+
},
|
398
|
+
'pagelayout-test': {
|
399
|
+
name: 'PageLayout Test',
|
400
|
+
component: 'PageLayoutTest'
|
401
|
+
},
|
402
|
+
'editor-test': {
|
403
|
+
name: 'Editor Layout Test',
|
404
|
+
component: 'EditorTest'
|
405
|
+
},
|
406
|
+
'personal-profile': {
|
407
|
+
name: 'Personal Profile',
|
408
|
+
component: 'PersonalProfile'
|
393
409
|
}
|
394
410
|
}
|
395
411
|
}))
|
@@ -93,7 +93,7 @@
|
|
93
93
|
<div class="docs-page__window-content">
|
94
94
|
<div class="docs-page__code-example">
|
95
95
|
<p class="docs-page__paragraph">// Boxed grid example with six columns.</p>
|
96
|
-
<div class="flex-grid flex-grid--boxed flex-grid--wrap-items flex-grid--small-6">
|
96
|
+
<div class="flex-grid flex-grid--boxed flex-grid--wrap-items flex-grid--small-1 flex-grid--medium-3 flex-grid--large-4 flex-grid--xlarge-6">
|
97
97
|
<div class="flex-grid__item">1</div>
|
98
98
|
<div class="flex-grid__item">2</div>
|
99
99
|
<div class="flex-grid__item">3</div>
|
@@ -45,7 +45,7 @@
|
|
45
45
|
<sd-check ng-model="def6" label-position="inside" data-icon="th-list">Button style with icon</sd-check>
|
46
46
|
<sd-check ng-model="def7" label-position="inside" data-icon="th" ng-checked="true">I have an icon!</sd-check>
|
47
47
|
<sd-check ng-model="def8" label-position="inside" data-icon="th-large">Yeah, me too!</sd-check>
|
48
|
-
<sd-check ng-model="def9" data-icon="star">I have an icon :) </sd-check>
|
48
|
+
<sd-check ng-model="def9" data-icon="star" disabled="disabled">I have an icon :) </sd-check>
|
49
49
|
</div>
|
50
50
|
</div>
|
51
51
|
|
@@ -20,6 +20,7 @@
|
|
20
20
|
<div class="modal__body">
|
21
21
|
<p>This is sample message inside modal!</p>
|
22
22
|
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. </p>
|
23
|
+
<button class="btn" ng-click="openModal('modalActive6')">Open modal inside modal</button>
|
23
24
|
</div>
|
24
25
|
<div class="modal__footer">
|
25
26
|
<button class="btn" ng-click="closeModal('modalActive')">Cancel</button>
|
@@ -79,7 +79,7 @@
|
|
79
79
|
</div>
|
80
80
|
</li>
|
81
81
|
|
82
|
-
<li class="boxed-list__item boxed-list__item--
|
82
|
+
<li class="boxed-list__item boxed-list__item--selected boxed-list__item--clickable">
|
83
83
|
<div class="boxed-list__item-media">
|
84
84
|
<figure class="avatar sd-margin--0 pink--600">mm</figure>
|
85
85
|
</div>
|
@@ -2,10 +2,15 @@
|
|
2
2
|
<a class="sd-top-menu__collapse-nav"><i class="icon-collapse icon--white"></i></a>
|
3
3
|
<p class="sd-top-menu__header">Cards</p>
|
4
4
|
</header>
|
5
|
-
<main class="sd-page">
|
5
|
+
<main class="sd-page" ng-init="darkUI = false" data-theme="{{darkUI ? 'dark-ui' : 'light-ui'}}">
|
6
6
|
<section class="sd-page__main-content">
|
7
|
-
<div class="
|
8
|
-
<h2 class="
|
7
|
+
<div class="subnav">
|
8
|
+
<h2 class="subnav__page-title">Card options</h2>
|
9
|
+
<div class="button-group button-group--right">
|
10
|
+
<button class="sd-navbtn" ng-click="darkUI = !darkUI">
|
11
|
+
<i class="icon-adjust"></i>
|
12
|
+
</button>
|
13
|
+
</div>
|
9
14
|
</div>
|
10
15
|
<div class="sd-page__content">
|
11
16
|
|
@@ -35,7 +40,7 @@
|
|
35
40
|
</div>
|
36
41
|
|
37
42
|
<div class="sd-card flex-grid__item">
|
38
|
-
<div class="sd-card__header sd-card__header--
|
43
|
+
<div class="sd-card__header sd-card__header--light">
|
39
44
|
<div class="sd-card__heading">Features Desk</div>
|
40
45
|
<a class="icn-btn sd-card__actions"><i class="icon-pencil"></i></a>
|
41
46
|
</div>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
|
2
|
+
<div class="sd-padding--4">
|
3
|
+
<button class="btn btn--primary btn--loading" tabindex="0" aria-label="">
|
4
|
+
<div class="btn__state--loading">
|
5
|
+
<svg class="sd-spinner sd-spinner--mini" viewBox="0 0 48 48">
|
6
|
+
<circle class="sd-spinner__path" cx="24" cy="24" r="18" fill="none" stroke-width="6"></circle>
|
7
|
+
</svg>
|
8
|
+
</div>
|
9
|
+
primary
|
10
|
+
</button>
|
11
|
+
</div>
|
12
|
+
|
13
|
+
<svg class="sd-spinner sd-spinner sd-spinner--large" viewBox="0 0 48 48">
|
14
|
+
<circle class="sd-spinner__path" cx="24" cy="24" r="18" fill="none" stroke-width="6"></circle>
|
15
|
+
</svg>
|
@@ -16,13 +16,15 @@
|
|
16
16
|
<div style="width: 70%; margin: 100px auto; max-width: 900px;" class="docs-page__code-window">
|
17
17
|
|
18
18
|
<div class="sd-form-element" style="padding: 30px;" data-theme="{{darkTheme ? 'dark-ui' : 'ligh-ui'}}">
|
19
|
-
<div class="
|
20
|
-
<div class="
|
21
|
-
<
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
<div class="sd-
|
19
|
+
<div class="form__group">
|
20
|
+
<div class="form__item">
|
21
|
+
<div class="sd-input">
|
22
|
+
<label class="sd-input__label">input field label 1</label>
|
23
|
+
<input class="sd-input__input" type="text">
|
24
|
+
<div class="sd-input__char-count">00/90</div>
|
25
|
+
<div class="sd-input__message-box">
|
26
|
+
<div class="sd-input__hint">Hendrerit in vulputate.</div>
|
27
|
+
</div>
|
26
28
|
</div>
|
27
29
|
</div>
|
28
30
|
</div>
|