superdesk-ui-framework 3.0.1-beta.2 → 3.0.1-beta.22
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/.vscode/settings.json +5 -0
- package/app/fonts/sd_icons.eot +0 -0
- package/app/fonts/sd_icons.svg +14 -7
- package/app/fonts/sd_icons.ttf +0 -0
- package/app/fonts/sd_icons.woff +0 -0
- package/app/img/SD-logo.svg +52 -0
- package/app/scripts/toggleBoxNext.js +1 -1
- package/app/styles/_accessibility.scss +1 -0
- package/app/styles/_big-icon-font.scss +3 -0
- package/app/styles/_boxed-list.scss +3 -0
- package/app/styles/_buttons.scss +11 -6
- package/app/styles/_content-divider.scss +63 -8
- package/app/styles/_hamburger.scss +160 -0
- package/app/styles/_helpers.scss +35 -5
- package/app/styles/_icon-font.scss +20 -10
- package/app/styles/_master-desk.scss +3 -2
- package/app/styles/_modals.scss +6 -3
- package/app/styles/_normalize.scss +4 -0
- package/app/styles/_sd-tag-input.scss +221 -296
- package/app/styles/_simple-list.scss +1 -0
- package/app/styles/_table-list.scss +115 -12
- package/app/styles/app.scss +4 -0
- package/app/styles/components/_list-item.scss +36 -17
- package/app/styles/components/_sd-collapse-box.scss +6 -6
- package/app/styles/components/_sd-grid-item.scss +30 -16
- package/app/styles/components/_sd-notification-panel.scss +48 -0
- package/app/styles/components/_sd-photo-preview.scss +3 -3
- package/app/styles/components/_sd-searchbar.scss +7 -0
- package/app/styles/design-tokens/_design-tokens-general.scss +3 -6
- package/app/styles/design-tokens/_new-colors.scss +16 -6
- package/app/styles/dropdowns/_basic-dropdown.scss +6 -0
- package/app/styles/form-elements/_forms-general.scss +81 -7
- package/app/styles/form-elements/_input-wrap.scss +138 -0
- package/app/styles/form-elements/_inputs.scss +577 -102
- package/app/styles/grids/_grid-layout.scss +153 -40
- package/app/styles/interface-elements/_side-panel.scss +1 -1
- package/app/styles/layout/_basic-layout.scss +2 -2
- package/app/styles/layout/_editor.scss +10 -4
- package/app/styles/menus/_sd-bottom-tabs.scss +70 -0
- package/app/styles/menus/_sd-left-navigation.scss +24 -1
- package/app/styles/menus/_sd-sidebar-menu.scss +10 -14
- package/app/styles/menus/_sd-top-menu.scss +19 -5
- package/app/styles/primereact/_pr-dialog.scss +1 -0
- package/app/styles/primereact/_pr-dropdown.scss +17 -3
- package/app/styles/primereact/_pr-menu.scss +6 -5
- package/app-typescript/components/Badge.tsx +3 -2
- package/app-typescript/components/ContentDivider.tsx +3 -0
- package/app-typescript/components/DatePicker.tsx +71 -36
- package/app-typescript/components/DonutChart.tsx +1 -1
- package/app-typescript/components/Dropdown.tsx +127 -82
- package/app-typescript/components/DurationInput.tsx +400 -0
- package/app-typescript/components/EmptyState.tsx +2 -1
- package/app-typescript/components/Form/FormLabel.tsx +8 -1
- package/app-typescript/components/Form/FormRowNew.tsx +41 -0
- package/app-typescript/components/Form/InputBase.tsx +95 -0
- package/app-typescript/components/Form/InputNew.tsx +107 -0
- package/app-typescript/components/Form/InputWrapper.tsx +79 -0
- package/app-typescript/components/Form/index.tsx +4 -0
- package/app-typescript/components/Icon.tsx +1 -1
- package/app-typescript/components/IconButton.tsx +5 -1
- package/app-typescript/components/Input.tsx +39 -42
- package/app-typescript/components/Label.tsx +49 -10
- package/app-typescript/components/Layouts/AuthoringContainer.tsx +2 -1
- package/app-typescript/components/Layouts/AuthoringInnerHeader.tsx +1 -1
- package/app-typescript/components/Layouts/AuthoringMain.tsx +4 -2
- package/app-typescript/components/Layouts/BottomBarAction.tsx +35 -0
- package/app-typescript/components/Layouts/CoreLayout.tsx +63 -0
- package/app-typescript/components/Layouts/CoreLayoutContainer.tsx +16 -0
- package/app-typescript/components/Layouts/CoreLayoutFooter.tsx +15 -0
- package/app-typescript/components/Layouts/CoreLayoutMain.tsx +22 -0
- package/app-typescript/components/Layouts/CoreLayoutOverlay.tsx +15 -0
- package/app-typescript/components/Layouts/CoreLayoutSlideInMenu.tsx +24 -0
- package/app-typescript/components/Layouts/CoreLayoutTopMenu.tsx +35 -0
- package/app-typescript/components/Layouts/HamburgerButton.tsx +41 -0
- package/app-typescript/components/Layouts/Layout.tsx +2 -2
- package/app-typescript/components/Layouts/MainMenu.tsx +101 -0
- package/app-typescript/components/Layouts/NotificationPanel.tsx +109 -0
- package/app-typescript/components/Layouts/index.tsx +12 -0
- package/app-typescript/components/LeftMenu.tsx +127 -116
- package/app-typescript/components/Lists/BoxedList.tsx +36 -4
- package/app-typescript/components/Lists/ContentList.tsx +38 -10
- package/app-typescript/components/Lists/TableList.tsx +283 -151
- package/app-typescript/components/Menu.tsx +31 -7
- package/app-typescript/components/Modal.tsx +5 -2
- package/app-typescript/components/MultiSelect.tsx +35 -5
- package/app-typescript/components/NavButton.tsx +4 -0
- package/app-typescript/components/Navigation/BottomNav.tsx +83 -0
- package/app-typescript/components/SearchBar.tsx +39 -12
- package/app-typescript/components/Select.tsx +27 -37
- package/app-typescript/components/SelectGrid.tsx +1 -1
- package/app-typescript/components/SelectWithTemplate.tsx +32 -7
- package/app-typescript/components/Skeleton.tsx +1 -1
- package/app-typescript/components/Spacer.tsx +87 -0
- package/app-typescript/components/Text/Time.tsx +34 -0
- package/app-typescript/components/TimePicker.tsx +38 -15
- package/app-typescript/components/Togglebox.tsx +1 -1
- package/app-typescript/components/Tooltip.tsx +7 -5
- package/app-typescript/components/TreeSelect.tsx +490 -208
- package/app-typescript/components/WithSizeObserver.tsx +88 -0
- package/app-typescript/dist/components/Alert.d.ts +16 -0
- package/app-typescript/dist/components/Autocomplete.d.ts +48 -0
- package/app-typescript/dist/components/Avatar.d.ts +33 -0
- package/app-typescript/dist/components/Badge.d.ts +13 -0
- package/app-typescript/dist/components/Button.d.ts +23 -0
- package/app-typescript/dist/components/ButtonGroup.d.ts +12 -0
- package/app-typescript/dist/components/CheckButtonGroup.d.ts +11 -0
- package/app-typescript/dist/components/CheckGroup.d.ts +9 -0
- package/app-typescript/dist/components/Checkbox.d.ts +19 -0
- package/app-typescript/dist/components/CheckboxButton.d.ts +19 -0
- package/app-typescript/dist/components/DatePicker.d.ts +37 -0
- package/app-typescript/dist/components/Divider.d.ts +9 -0
- package/app-typescript/dist/components/DonutChart.d.ts +12 -0
- package/app-typescript/dist/components/Dropdown.d.ts +28 -0
- package/app-typescript/dist/components/DropdownFirst.d.ts +42 -0
- package/app-typescript/dist/components/EmptyState.d.ts +11 -0
- package/app-typescript/dist/components/FormLabel.d.ts +9 -0
- package/app-typescript/dist/components/Genie.d.ts +13 -0
- package/app-typescript/dist/components/GridItem.d.ts +69 -0
- package/app-typescript/dist/components/GridList.d.ts +14 -0
- package/app-typescript/dist/components/HeadingText.d.ts +10 -0
- package/app-typescript/dist/components/HelloWorld.d.ts +8 -0
- package/app-typescript/dist/components/Icon.d.ts +12 -0
- package/app-typescript/dist/components/IconButton.d.ts +12 -0
- package/app-typescript/dist/components/IconLabel.d.ts +11 -0
- package/app-typescript/dist/components/Input.d.ts +24 -0
- package/app-typescript/dist/components/Label.d.ts +15 -0
- package/app-typescript/dist/components/LeftMenu.d.ts +26 -0
- package/app-typescript/dist/components/Loader.d.ts +8 -0
- package/app-typescript/dist/components/NavButton.d.ts +15 -0
- package/app-typescript/dist/components/Popover.d.ts +13 -0
- package/app-typescript/dist/components/PropsList.d.ts +15 -0
- package/app-typescript/dist/components/Radio.d.ts +19 -0
- package/app-typescript/dist/components/RadioButton.d.ts +20 -0
- package/app-typescript/dist/components/Select.d.ts +29 -0
- package/app-typescript/dist/components/SelectWithTemplate.d.ts +32 -0
- package/app-typescript/dist/components/SlidingToolbar.d.ts +8 -0
- package/app-typescript/dist/components/StrechBar.d.ts +4 -0
- package/app-typescript/dist/components/SubNav.d.ts +10 -0
- package/app-typescript/dist/components/Switch.d.ts +12 -0
- package/app-typescript/dist/components/TabCustom.d.ts +25 -0
- package/app-typescript/dist/components/TabList.d.ts +22 -0
- package/app-typescript/dist/components/Tag.d.ts +9 -0
- package/app-typescript/dist/components/TagInput.d.ts +7 -0
- package/app-typescript/dist/components/TagInputTest.d.ts +18 -0
- package/app-typescript/dist/components/TimePicker.d.ts +11 -0
- package/app-typescript/dist/components/Tooltip.d.ts +11 -0
- package/app-typescript/dist/components/_Positioner.d.ts +27 -0
- package/app-typescript/dist/index.d.ts +56 -0
- package/app-typescript/helpers.tsx +3 -0
- package/app-typescript/index.ts +9 -1
- package/dist/SD-logo.svg +52 -0
- package/dist/examples.bundle.css +942 -9
- package/dist/examples.bundle.js +92935 -88376
- package/dist/playgrounds/accessible-theme-test.html +1 -1
- package/dist/playgrounds/layout-test-2.html +1 -1
- package/dist/playgrounds/list-item-test.html +1 -1
- package/dist/playgrounds/master-desk.html +1 -1
- package/dist/playgrounds/media-carousel.html +1 -1
- package/dist/playgrounds/photo-desk.html +1 -1
- package/dist/playgrounds/planning.html +1 -1
- package/dist/playgrounds/publish.html +1 -1
- package/dist/playgrounds/publisher-content-analytics.html +1 -1
- package/dist/playgrounds/publisher-content-list-automatic.html +1 -1
- package/dist/playgrounds/publisher-content-list-manual.html +1 -1
- package/dist/playgrounds/publisher-content-lists.html +1 -1
- package/dist/playgrounds/publisher-dashboard.html +1 -1
- package/dist/playgrounds/publisher-output-control.html +1 -1
- package/dist/playgrounds/react-playgrounds/CoreLayout.tsx +156 -0
- package/dist/playgrounds/react-playgrounds/Index.tsx +1 -0
- package/dist/playgrounds/react-playgrounds/RundownEditor.tsx +26 -23
- package/dist/playgrounds/react-playgrounds/Rundowns.tsx +20 -21
- package/dist/playgrounds/react-playgrounds/SamsPlayground.tsx +12 -3
- package/dist/playgrounds/react-playgrounds/TestGround.tsx +415 -25
- package/dist/playgrounds/react-playgrounds/components/Layout.tsx +2 -2
- package/dist/playgrounds/swimlane-view.html +1 -1
- package/dist/playgrounds/toasts.html +1 -1
- package/dist/playgrounds/video-editor.html +1 -1
- package/dist/react/Badges.tsx +18 -0
- package/dist/react/ContentDivider.tsx +22 -18
- package/dist/react/ContentList.tsx +200 -18
- package/dist/react/DatePicker.tsx +31 -6
- package/dist/react/Dropdowns.tsx +580 -48
- package/dist/react/DurationInput.tsx +108 -0
- package/dist/react/Index.tsx +10 -0
- package/dist/react/Inputs.tsx +256 -8
- package/dist/react/Labels.tsx +51 -1
- package/dist/react/LeftNavigations.tsx +71 -44
- package/dist/react/MultiSelect.tsx +10 -2
- package/dist/react/SelectWithTemplate.tsx +6 -1
- package/dist/react/Selects.tsx +55 -0
- package/dist/react/TableList.tsx +77 -186
- package/dist/react/TimePicker.tsx +22 -12
- package/dist/react/Togglebox.tsx +1 -1
- package/dist/react/TreeSelect.tsx +270 -48
- package/dist/react/WithSizeObserver.tsx +44 -0
- package/dist/react/tree-select/TreeSelect.tsx +273 -0
- package/dist/react/tree-select/example-1.tsx +71 -0
- package/dist/react/tree-select/example-2.tsx +59 -0
- package/dist/sd_icons.eot +0 -0
- package/dist/sd_icons.svg +14 -7
- package/dist/sd_icons.ttf +0 -0
- package/dist/sd_icons.woff +0 -0
- package/dist/superdesk-ui.bundle.css +4330 -639
- package/dist/superdesk-ui.bundle.js +75169 -58238
- package/dist/vendor.bundle.js +25027 -25027
- package/examples/index.js +4 -0
- package/examples/pages/playgrounds/accessible-theme-test.html +1 -1
- package/examples/pages/playgrounds/layout-test-2.html +1 -1
- package/examples/pages/playgrounds/list-item-test.html +1 -1
- package/examples/pages/playgrounds/master-desk.html +1 -1
- package/examples/pages/playgrounds/media-carousel.html +1 -1
- package/examples/pages/playgrounds/photo-desk.html +1 -1
- package/examples/pages/playgrounds/planning.html +1 -1
- package/examples/pages/playgrounds/publish.html +1 -1
- package/examples/pages/playgrounds/publisher-content-analytics.html +1 -1
- package/examples/pages/playgrounds/publisher-content-list-automatic.html +1 -1
- package/examples/pages/playgrounds/publisher-content-list-manual.html +1 -1
- package/examples/pages/playgrounds/publisher-content-lists.html +1 -1
- package/examples/pages/playgrounds/publisher-dashboard.html +1 -1
- package/examples/pages/playgrounds/publisher-output-control.html +1 -1
- package/examples/pages/playgrounds/react-playgrounds/CoreLayout.tsx +156 -0
- package/examples/pages/playgrounds/react-playgrounds/Index.tsx +1 -0
- package/examples/pages/playgrounds/react-playgrounds/RundownEditor.tsx +26 -23
- package/examples/pages/playgrounds/react-playgrounds/Rundowns.tsx +20 -21
- package/examples/pages/playgrounds/react-playgrounds/SamsPlayground.tsx +12 -3
- package/examples/pages/playgrounds/react-playgrounds/TestGround.tsx +415 -25
- package/examples/pages/playgrounds/react-playgrounds/components/Layout.tsx +2 -2
- package/examples/pages/playgrounds/swimlane-view.html +1 -1
- package/examples/pages/playgrounds/toasts.html +1 -1
- package/examples/pages/playgrounds/video-editor.html +1 -1
- package/examples/pages/react/Badges.tsx +18 -0
- package/examples/pages/react/ContentDivider.tsx +22 -18
- package/examples/pages/react/ContentList.tsx +200 -18
- package/examples/pages/react/DatePicker.tsx +31 -6
- package/examples/pages/react/Dropdowns.tsx +580 -48
- package/examples/pages/react/DurationInput.tsx +108 -0
- package/examples/pages/react/Index.tsx +10 -0
- package/examples/pages/react/Inputs.tsx +256 -8
- package/examples/pages/react/Labels.tsx +51 -1
- package/examples/pages/react/LeftNavigations.tsx +71 -44
- package/examples/pages/react/MultiSelect.tsx +10 -2
- package/examples/pages/react/SelectWithTemplate.tsx +6 -1
- package/examples/pages/react/Selects.tsx +55 -0
- package/examples/pages/react/TableList.tsx +77 -186
- package/examples/pages/react/TimePicker.tsx +22 -12
- package/examples/pages/react/Togglebox.tsx +1 -1
- package/examples/pages/react/TreeSelect.tsx +270 -48
- package/examples/pages/react/WithSizeObserver.tsx +44 -0
- package/examples/pages/react/tree-select/TreeSelect.tsx +273 -0
- package/examples/pages/react/tree-select/example-1.tsx +71 -0
- package/examples/pages/react/tree-select/example-2.tsx +59 -0
- package/package.json +8 -8
- package/react/components/Alert.js +10 -8
- package/react/components/Autocomplete.js +16 -12
- package/react/components/Avatar.js +8 -6
- package/react/components/Badge.d.ts +1 -0
- package/react/components/Badge.js +9 -7
- package/react/components/Button.js +8 -6
- package/react/components/ButtonGroup.js +7 -5
- package/react/components/Carousel.js +4 -2
- package/react/components/CheckButtonGroup.js +6 -4
- package/react/components/CheckGroup.js +5 -3
- package/react/components/Checkbox.js +5 -3
- package/react/components/CheckboxButton.js +6 -4
- package/react/components/ContentDivider.d.ts +1 -0
- package/react/components/ContentDivider.js +10 -6
- package/react/components/CreateButton.js +6 -4
- package/react/components/DatePicker.d.ts +11 -0
- package/react/components/DatePicker.js +44 -35
- package/react/components/Divider.js +6 -4
- package/react/components/DonutChart.d.ts +1 -1
- package/react/components/DonutChart.js +24 -6
- package/react/components/DropZone.js +6 -4
- package/react/components/Dropdown.d.ts +6 -5
- package/react/components/Dropdown.js +63 -35
- package/react/components/DropdownFirst.js +18 -11
- package/react/components/DurationInput.d.ts +42 -0
- package/react/components/DurationInput.js +364 -0
- package/react/components/EmptyState.d.ts +1 -0
- package/react/components/EmptyState.js +8 -6
- package/react/components/Form/FormGroup.js +7 -5
- package/react/components/Form/FormItem.js +5 -3
- package/react/components/Form/FormLabel.d.ts +4 -1
- package/react/components/Form/FormLabel.js +13 -5
- package/react/components/Form/FormRow.js +5 -3
- package/react/components/Form/FormRowNew.d.ts +12 -0
- package/react/components/Form/FormRowNew.js +67 -0
- package/react/components/Form/FormText.js +4 -2
- package/react/components/Form/InputBase.d.ts +41 -0
- package/react/components/Form/InputBase.js +86 -0
- package/react/components/Form/InputNew.d.ts +45 -0
- package/react/components/Form/InputNew.js +75 -0
- package/react/components/Form/InputWrapper.d.ts +28 -0
- package/react/components/Form/InputWrapper.js +91 -0
- package/react/components/Form/index.d.ts +4 -0
- package/react/components/Form/index.js +9 -0
- package/react/components/FormLabel.js +5 -3
- package/react/components/GridItem.js +9 -7
- package/react/components/GridList.js +8 -6
- package/react/components/HeadingText.js +4 -2
- package/react/components/HelloWorld.js +4 -2
- package/react/components/Icon.d.ts +1 -1
- package/react/components/Icon.js +9 -7
- package/react/components/IconButton.js +8 -6
- package/react/components/IconLabel.js +7 -5
- package/react/components/IconPicker.js +13 -9
- package/react/components/Input.d.ts +6 -2
- package/react/components/Input.js +16 -31
- package/react/components/Label.d.ts +1 -0
- package/react/components/Label.js +28 -10
- package/react/components/Layouts/AuthorinInnerSideBar.js +4 -2
- package/react/components/Layouts/AuthoringContainer.d.ts +1 -0
- package/react/components/Layouts/AuthoringContainer.js +8 -6
- package/react/components/Layouts/AuthoringFrame.js +4 -2
- package/react/components/Layouts/AuthoringFrameContainer.js +4 -2
- package/react/components/Layouts/AuthoringFrameLeftBar.js +4 -2
- package/react/components/Layouts/AuthoringFrameMain.js +4 -2
- package/react/components/Layouts/AuthoringFrameNavBar.js +4 -2
- package/react/components/Layouts/AuthoringFrameOverlay.js +4 -2
- package/react/components/Layouts/AuthoringFrameRightBar.js +4 -2
- package/react/components/Layouts/AuthoringFrameSidePanel.js +5 -3
- package/react/components/Layouts/AuthoringFrameSidePanelOverlay.js +5 -3
- package/react/components/Layouts/AuthoringInnerBody.js +4 -2
- package/react/components/Layouts/AuthoringInnerHeader.js +7 -5
- package/react/components/Layouts/AuthoringMain.js +5 -3
- package/react/components/Layouts/AuthoringMainContainer.js +4 -2
- package/react/components/Layouts/AuthoringMainContent.js +4 -2
- package/react/components/Layouts/AuthoringMainToolBar.js +5 -3
- package/react/components/Layouts/BottomBarAction.d.ts +12 -0
- package/react/components/Layouts/BottomBarAction.js +59 -0
- package/react/components/Layouts/Container.js +9 -7
- package/react/components/Layouts/ContentSplitter.js +6 -4
- package/react/components/Layouts/CoreLayout.d.ts +20 -0
- package/react/components/Layouts/CoreLayout.js +55 -0
- package/react/components/Layouts/CoreLayoutContainer.d.ts +9 -0
- package/react/components/Layouts/CoreLayoutContainer.js +49 -0
- package/react/components/Layouts/CoreLayoutFooter.d.ts +8 -0
- package/react/components/Layouts/CoreLayoutFooter.js +49 -0
- package/react/components/Layouts/CoreLayoutMain.d.ts +10 -0
- package/react/components/Layouts/CoreLayoutMain.js +56 -0
- package/react/components/Layouts/CoreLayoutOverlay.d.ts +8 -0
- package/react/components/Layouts/CoreLayoutOverlay.js +49 -0
- package/react/components/Layouts/CoreLayoutSlideInMenu.d.ts +11 -0
- package/react/components/Layouts/CoreLayoutSlideInMenu.js +58 -0
- package/react/components/Layouts/CoreLayoutTopMenu.d.ts +14 -0
- package/react/components/Layouts/CoreLayoutTopMenu.js +54 -0
- package/react/components/Layouts/HamburgerButton.d.ts +14 -0
- package/react/components/Layouts/HamburgerButton.js +63 -0
- package/react/components/Layouts/HeaderPanel.js +4 -2
- package/react/components/Layouts/Layout.js +4 -3
- package/react/components/Layouts/LayoutContainer.js +4 -2
- package/react/components/Layouts/LeftPanel.js +5 -3
- package/react/components/Layouts/MainMenu.d.ts +41 -0
- package/react/components/Layouts/MainMenu.js +103 -0
- package/react/components/Layouts/MainPanel.js +5 -3
- package/react/components/Layouts/NotificationPanel.d.ts +45 -0
- package/react/components/Layouts/NotificationPanel.js +110 -0
- package/react/components/Layouts/OverlayPanel.js +4 -2
- package/react/components/Layouts/PageLayout.js +4 -2
- package/react/components/Layouts/Panel.js +16 -14
- package/react/components/Layouts/RightPanel.js +4 -2
- package/react/components/Layouts/index.d.ts +11 -0
- package/react/components/Layouts/index.js +23 -0
- package/react/components/LeftMenu.d.ts +5 -1
- package/react/components/LeftMenu.js +27 -13
- package/react/components/ListItemLoader.js +4 -2
- package/react/components/Lists/BoxedList.d.ts +6 -0
- package/react/components/Lists/BoxedList.js +36 -15
- package/react/components/Lists/ContentList.d.ts +50 -0
- package/react/components/Lists/ContentList.js +106 -0
- package/react/components/Lists/SimpleList.js +9 -7
- package/react/components/Lists/TableList.d.ts +62 -0
- package/react/components/Lists/TableList.js +208 -0
- package/react/components/Lists/index.js +1 -0
- package/react/components/Loader.js +4 -2
- package/react/components/Menu.d.ts +2 -1
- package/react/components/Menu.js +48 -12
- package/react/components/Modal.d.ts +2 -1
- package/react/components/Modal.js +30 -9
- package/react/components/MultiSelect.d.ts +40 -0
- package/react/components/MultiSelect.js +70 -0
- package/react/components/NavButton.d.ts +1 -0
- package/react/components/NavButton.js +9 -4
- package/react/components/Navigation/BottomNav.d.ts +24 -0
- package/react/components/Navigation/BottomNav.js +88 -0
- package/react/components/Navigation/QuickNavBar.js +13 -9
- package/react/components/Navigation/SideBarMenu.js +4 -2
- package/react/components/Navigation/SideBarTabs.js +4 -2
- package/react/components/Navigation/index.js +1 -0
- package/react/components/Popover.js +4 -2
- package/react/components/PropsList.js +4 -2
- package/react/components/RadioButtonGroup.js +9 -7
- package/react/components/RadioGroup.js +6 -4
- package/react/components/SearchBar.d.ts +3 -2
- package/react/components/SearchBar.js +34 -8
- package/react/components/Select.d.ts +5 -1
- package/react/components/Select.js +9 -23
- package/react/components/SelectGrid.d.ts +1 -1
- package/react/components/SelectGrid.js +44 -23
- package/react/components/SelectWithTemplate.d.ts +11 -1
- package/react/components/SelectWithTemplate.js +23 -12
- package/react/components/Skeleton.d.ts +1 -1
- package/react/components/Skeleton.js +26 -5
- package/react/components/SlidingToolbar.js +6 -4
- package/react/components/Spinner.js +6 -4
- package/react/components/StrechBar.js +4 -2
- package/react/components/SubNav.js +9 -7
- package/react/components/Switch.js +6 -4
- package/react/components/SwitchGroup.js +5 -3
- package/react/components/TabCustom.js +11 -7
- package/react/components/TabList.js +6 -4
- package/react/components/Tag.js +5 -4
- package/react/components/TagInput.js +7 -6
- package/react/components/TagInputTest.js +13 -9
- package/react/components/Text/Heading.js +10 -8
- package/react/components/Text/Text.js +10 -8
- package/react/components/Text/Time.d.ts +15 -0
- package/react/components/Text/Time.js +65 -0
- package/react/components/ThemeSelector.js +7 -5
- package/react/components/TimePicker.d.ts +11 -1
- package/react/components/TimePicker.js +14 -5
- package/react/components/Toast.js +1 -1
- package/react/components/ToastMessage.js +6 -5
- package/react/components/ToastText.js +1 -1
- package/react/components/ToastWrapper.d.ts +2 -2
- package/react/components/ToastWrapper.js +14 -10
- package/react/components/Togglebox.d.ts +1 -1
- package/react/components/Togglebox.js +36 -15
- package/react/components/Tooltip.d.ts +1 -0
- package/react/components/Tooltip.js +14 -10
- package/react/components/TreeSelect.d.ts +80 -0
- package/react/components/TreeSelect.js +494 -0
- package/react/components/WithSizeObserver.d.ts +25 -0
- package/react/components/WithSizeObserver.js +95 -0
- package/react/components/_Positioner.js +4 -2
- package/react/helpers.d.ts +1 -0
- package/react/helpers.js +7 -0
- package/react/index.d.ts +9 -0
- package/react/index.js +23 -2
- package/yarn-error.log +111 -0
- package/patches/@superdesk+primereact+5.0.2-4.patch +0 -13
- package/sd_icons.eot +0 -0
- package/sd_icons.svg +0 -189
- package/sd_icons.ttf +0 -0
- package/sd_icons.woff +0 -0
@@ -1,6 +1,4 @@
|
|
1
1
|
// FORM ELEMENTS : Input and slect : form-elements/inputs.scss
|
2
|
-
//
|
3
|
-
|
4
2
|
// input, textarea, select {
|
5
3
|
|
6
4
|
@mixin Line-input-base {
|
@@ -16,6 +14,12 @@
|
|
16
14
|
height: $form-input-height;
|
17
15
|
border-radius: $border-radius__base--x-small $border-radius__base--x-small 0 0;
|
18
16
|
display: block;
|
17
|
+
position: relative;
|
18
|
+
&::placeholder {
|
19
|
+
color: var(--color-text-lighter);
|
20
|
+
font-weight: 400;
|
21
|
+
opacity: 0.75;
|
22
|
+
}
|
19
23
|
&:hover {
|
20
24
|
border-color: var(--color-input-border-hover);
|
21
25
|
background-color: var(--color-input-bg--hover);
|
@@ -24,11 +28,16 @@
|
|
24
28
|
box-shadow: 0 1px 0 0 var(--sd-colour-interactive);
|
25
29
|
border-color: var(--sd-colour-interactive);
|
26
30
|
background-color: var(--sd-colour-interactive--alpha-20);
|
31
|
+
&::placeholder {
|
32
|
+
opacity: 0.45;
|
33
|
+
}
|
27
34
|
}
|
28
35
|
}
|
29
36
|
|
30
37
|
@mixin Form-label-base {
|
31
|
-
display: inline-
|
38
|
+
display: inline-flex;
|
39
|
+
align-items: flex-start;
|
40
|
+
justify-content: flex-start;
|
32
41
|
font-size: 1.1rem;
|
33
42
|
margin: 0 0.5rem 0 0;
|
34
43
|
line-height: 1;
|
@@ -37,7 +46,28 @@
|
|
37
46
|
font-weight: 500;
|
38
47
|
letter-spacing: 0.08em;
|
39
48
|
}
|
40
|
-
|
49
|
+
@mixin Boxed-label-base {
|
50
|
+
background-color: hsla(214, 13%, 30%, 0.4);
|
51
|
+
border-radius: var(--b-radius--small);
|
52
|
+
color: hsl(214, 13%, 96%);
|
53
|
+
display: inline-flex;
|
54
|
+
align-items: center;
|
55
|
+
justify-content: center;
|
56
|
+
padding: 2px 8px;
|
57
|
+
font-size: 1.1rem;
|
58
|
+
font-family: $baseFontFamily;
|
59
|
+
font-weight: 400;
|
60
|
+
line-height: 2rem;
|
61
|
+
text-transform: uppercase;
|
62
|
+
font-style: normal;
|
63
|
+
letter-spacing: 0.08em;
|
64
|
+
height: 2rem;
|
65
|
+
transition: opacity ease 0.2s;
|
66
|
+
justify-self: start;
|
67
|
+
position: relative;
|
68
|
+
margin-bottom: $sd-base-increment;
|
69
|
+
transition: background-color ease 0.2s;
|
70
|
+
}
|
41
71
|
|
42
72
|
.form-label {
|
43
73
|
@include Form-label-base;
|
@@ -60,7 +90,50 @@
|
|
60
90
|
content: "*";
|
61
91
|
vertical-align: top;
|
62
92
|
font-size: 1.2rem;
|
63
|
-
padding-
|
93
|
+
padding-inline-start: 0.3rem;
|
94
|
+
margin-top: -2px
|
95
|
+
}
|
96
|
+
}
|
97
|
+
&--invalid {
|
98
|
+
color: $red;
|
99
|
+
}
|
100
|
+
&--focused {
|
101
|
+
color: var(--sd-colour-interactive);
|
102
|
+
&.form-label--invalid {
|
103
|
+
color: $red;
|
104
|
+
}
|
105
|
+
}
|
106
|
+
&--boxed {
|
107
|
+
@include Boxed-label-base;
|
108
|
+
&--light {
|
109
|
+
background-color: hsla(214, 13%, 30%, 0.4);
|
110
|
+
color: hsl(214, 13%, 96%);
|
111
|
+
}
|
112
|
+
&--dark {
|
113
|
+
background-color: hsla(214, 13%, 30%, 0.4);
|
114
|
+
color: hsl(214, 13%, 96%);
|
115
|
+
}
|
116
|
+
&.form-label--required {
|
117
|
+
&::after {
|
118
|
+
margin-inline-start: 0.2rem;
|
119
|
+
color: #e41b21;
|
120
|
+
content: "*";
|
121
|
+
vertical-align: top;
|
122
|
+
font-size: 1.2rem;
|
123
|
+
padding-inline-start: 0.3rem;
|
124
|
+
position: absolute;
|
125
|
+
inset-block-start: -4px;
|
126
|
+
inset-inline-end: -10px;
|
127
|
+
}
|
128
|
+
}
|
129
|
+
&.form-label--invalid,
|
130
|
+
&.form-label--invalid.form-label--focused {
|
131
|
+
background-color: $red;
|
132
|
+
color: hsl(214, 13%, 96%);
|
133
|
+
}
|
134
|
+
&.form-label--focused {
|
135
|
+
background-color: var(--sd-colour-interactive);
|
136
|
+
color: hsl(214, 13%, 96%);
|
64
137
|
}
|
65
138
|
}
|
66
139
|
}
|
@@ -91,7 +164,7 @@
|
|
91
164
|
width: 100%;
|
92
165
|
}
|
93
166
|
&__value {
|
94
|
-
margin-
|
167
|
+
margin-inline-end: 6px;
|
95
168
|
text-transform: uppercase;
|
96
169
|
}
|
97
170
|
input, textarea {
|
@@ -143,30 +216,35 @@
|
|
143
216
|
cursor: pointer;
|
144
217
|
}
|
145
218
|
textarea.sd-line-input__input {
|
146
|
-
|
147
|
-
|
219
|
+
padding-top: 0.6rem;
|
220
|
+
display: block;
|
148
221
|
}
|
149
222
|
.sd-line-input__info-left, .sd-line-input__info-right { // use for 1-2 letter info that appear inside inputs ("W" - for width; "H" - for height; px, mm - for units, etc.)
|
150
223
|
position: absolute;
|
151
|
-
|
224
|
+
inset-block-start: 2.5rem;
|
152
225
|
opacity: 0.3;
|
153
226
|
font-size: 1.5rem;
|
154
227
|
font-weight: 300;
|
155
228
|
}
|
156
229
|
.sd-line-input__info-right {
|
157
|
-
|
230
|
+
inset-inline-end: 0.8rem;
|
158
231
|
}
|
159
232
|
.sd-line-input__info-left {
|
160
|
-
|
233
|
+
inset-inline-start: 0.8rem;
|
161
234
|
}
|
162
235
|
|
163
236
|
.sd-line-input__icon-left, .sd-line-input__icon-right {
|
164
237
|
position: absolute;
|
165
|
-
|
238
|
+
inset-block-start: 1.6rem;
|
166
239
|
cursor: pointer;
|
167
240
|
}
|
168
241
|
.sd-line-input__icon-right {
|
169
|
-
|
242
|
+
inset-inline-end: 0.2rem;
|
243
|
+
}
|
244
|
+
.sd-line-input__icon-right.icn-btn {
|
245
|
+
inset-inline-end: 0.2rem;
|
246
|
+
inset-block-start: 1.8rem;
|
247
|
+
z-index: 1;
|
170
248
|
}
|
171
249
|
.sd-line-input__icon-left {
|
172
250
|
left: 0.2rem;
|
@@ -175,14 +253,14 @@
|
|
175
253
|
&.sd-line-input--indent-l30 {
|
176
254
|
input, textarea {
|
177
255
|
&.sd-line-input__input {
|
178
|
-
padding-
|
256
|
+
padding-inline-start: 3rem;
|
179
257
|
}
|
180
258
|
}
|
181
259
|
}
|
182
260
|
&.sd-line-input--indent-r30 {
|
183
261
|
input, textarea {
|
184
262
|
&.sd-line-input__input {
|
185
|
-
padding-
|
263
|
+
padding-inline-end: 3rem;
|
186
264
|
}
|
187
265
|
}
|
188
266
|
}
|
@@ -192,14 +270,15 @@
|
|
192
270
|
position: absolute;
|
193
271
|
line-height: 100%;
|
194
272
|
margin: 0;
|
195
|
-
|
273
|
+
inset-block-start:0;
|
196
274
|
&--required::after {
|
197
275
|
color:$red;
|
198
276
|
content: "*";
|
199
277
|
vertical-align: top;
|
200
278
|
font-size: 1.2rem;
|
201
|
-
padding-
|
279
|
+
padding-inline-start: 0.3rem;
|
202
280
|
}
|
281
|
+
|
203
282
|
}
|
204
283
|
.sd-line-input__hint,
|
205
284
|
.sd-line-input__message,
|
@@ -213,15 +292,15 @@
|
|
213
292
|
}
|
214
293
|
.sd-line-input__hint {
|
215
294
|
position: absolute;
|
216
|
-
|
217
|
-
|
218
|
-
padding-
|
295
|
+
inset-inline-start: 1px;
|
296
|
+
inset-inline-end: auto;
|
297
|
+
padding-inline-end: 5.5rem;
|
219
298
|
margin-top: 0.4rem;
|
220
299
|
}
|
221
300
|
.sd-line-input__char-count {
|
222
301
|
position: absolute;
|
223
|
-
|
224
|
-
|
302
|
+
inset-inline-end: 1px;
|
303
|
+
inset-inline-start: auto;
|
225
304
|
margin-top: 0.5rem;
|
226
305
|
font-size: 1.1rem;
|
227
306
|
font-weight: 400;
|
@@ -237,14 +316,14 @@
|
|
237
316
|
}
|
238
317
|
input, textarea {
|
239
318
|
&.sd-line-input__input {
|
240
|
-
background-color:
|
319
|
+
background-color: hsla(357, 79%, 50%, 0.075);
|
241
320
|
border-color: $red;
|
242
321
|
&:hover {
|
243
|
-
background-color:
|
322
|
+
background-color: hsla(357, 79%, 50%, 0.12);
|
244
323
|
border-color: $red;
|
245
324
|
}
|
246
325
|
&:focus {
|
247
|
-
background-color:
|
326
|
+
background-color: hsla(357, 79%, 50%, 0.16);
|
248
327
|
border-color: $red;
|
249
328
|
box-shadow: 0 1px 0 0 $red;
|
250
329
|
}
|
@@ -252,14 +331,14 @@
|
|
252
331
|
}
|
253
332
|
select {
|
254
333
|
&.sd-line-input__select {
|
255
|
-
background-color:
|
334
|
+
background-color: hsla(357, 79%, 50%, 0.075);
|
256
335
|
border-color: $red;
|
257
336
|
&:hover {
|
258
|
-
background-color:
|
337
|
+
background-color: hsla(357, 79%, 50%, 0.12);
|
259
338
|
border-color: $red;
|
260
339
|
}
|
261
340
|
&:focus {
|
262
|
-
background-color:
|
341
|
+
background-color: hsla(357, 79%, 50%, 0.16);
|
263
342
|
border-color: $red;
|
264
343
|
box-shadow: 0 1px 0 0 $red;
|
265
344
|
}
|
@@ -319,12 +398,12 @@
|
|
319
398
|
}
|
320
399
|
&.sd-line-input--no-label {
|
321
400
|
&::after {
|
322
|
-
|
401
|
+
inset-block-start: 1.4rem;
|
323
402
|
}
|
324
403
|
}
|
325
404
|
&.sd-line-input--label-left {
|
326
405
|
&::after {
|
327
|
-
|
406
|
+
inset-block-start: 1.2rem;
|
328
407
|
}
|
329
408
|
}
|
330
409
|
}
|
@@ -340,7 +419,7 @@
|
|
340
419
|
content: "*";
|
341
420
|
vertical-align: top;
|
342
421
|
font-size: 1.2rem;
|
343
|
-
padding-
|
422
|
+
padding-inline-start: 0.3rem;
|
344
423
|
}
|
345
424
|
}
|
346
425
|
&.sd-line-input--no-label {
|
@@ -375,14 +454,14 @@
|
|
375
454
|
position: static;
|
376
455
|
grid-row: 2/3;
|
377
456
|
grid-column: 3/4;
|
378
|
-
padding-
|
457
|
+
padding-inline-end: 0;
|
379
458
|
}
|
380
459
|
.sd-line-input__char-count {
|
381
460
|
position: static;
|
382
461
|
grid-row: 2/3;
|
383
462
|
grid-column: 5/4;
|
384
463
|
text-align: end;
|
385
|
-
padding-
|
464
|
+
padding-inline-start: 1.6rem;
|
386
465
|
}
|
387
466
|
}
|
388
467
|
&--label-left-auto {
|
@@ -402,14 +481,14 @@
|
|
402
481
|
&--with-icon-l {
|
403
482
|
input, textarea {
|
404
483
|
&.sd-line-input__input {
|
405
|
-
padding-
|
484
|
+
padding-inline-end: 3rem;
|
406
485
|
}
|
407
486
|
}
|
408
487
|
}
|
409
488
|
.sd-line-input__plus-btn {
|
410
489
|
position: absolute;
|
411
|
-
|
412
|
-
|
490
|
+
inset-block-start: 1.8rem;
|
491
|
+
inset-inline-start: 0;
|
413
492
|
height: 2.2rem;
|
414
493
|
width: 2.2rem;
|
415
494
|
background-color: var(--sd-colour-interactive--alpha-70);
|
@@ -435,6 +514,129 @@
|
|
435
514
|
|
436
515
|
///////////////// -------------------- NEW INPUTS --------------------- /////////////////
|
437
516
|
|
517
|
+
.sd-input__input {
|
518
|
+
@include Line-input-base;
|
519
|
+
&--invalid {
|
520
|
+
border-bottom: 1px solid $red;
|
521
|
+
background-color: hsla(357, 79%, 50%, 0.075);
|
522
|
+
&:hover {
|
523
|
+
background-color: hsla(357, 79%, 50%, 0.12);
|
524
|
+
border-bottom-color: $red;
|
525
|
+
}
|
526
|
+
&:focus {
|
527
|
+
background-color: hsla(357, 79%, 50%, 0.16);
|
528
|
+
border-bottom-color: $red;
|
529
|
+
box-shadow: 0 1px 0 0 $red;
|
530
|
+
}
|
531
|
+
}
|
532
|
+
&--disabled {
|
533
|
+
opacity: 0.5;
|
534
|
+
background-color: var(--color-input-bg);
|
535
|
+
border-bottom: 1px dotted var(--color-input-border);
|
536
|
+
cursor: not-allowed !important;
|
537
|
+
box-shadow: none;
|
538
|
+
&:hover {
|
539
|
+
background-color: var(--color-input-bg);
|
540
|
+
border-bottom-color: var(--color-input-border);
|
541
|
+
}
|
542
|
+
}
|
543
|
+
&--boxed-style {
|
544
|
+
border: 0;
|
545
|
+
border: 2px solid var(--color-input-border);
|
546
|
+
background-color: transparent;
|
547
|
+
transition: all ease 0.3s;
|
548
|
+
border-radius: var(--b-radius--large);
|
549
|
+
display: block;
|
550
|
+
&:hover {
|
551
|
+
border-color: var(--color-input-border-hover);
|
552
|
+
background-color: transparent;
|
553
|
+
}
|
554
|
+
&:focus {
|
555
|
+
outline: none;
|
556
|
+
border-color: var(--sd-colour-interactive--alpha-50);
|
557
|
+
box-shadow: inset 0 0 0 4px var(--sd-colour-interactive--alpha-20);
|
558
|
+
background-color: transparent;
|
559
|
+
}
|
560
|
+
|
561
|
+
&.sd-input__input--disabled {
|
562
|
+
border: 2px solid var(--color-input-border);
|
563
|
+
// cursor: not-allowed !important;
|
564
|
+
box-shadow: none;
|
565
|
+
&:hover {
|
566
|
+
//background-color: var(--color-input-bg);
|
567
|
+
border-color: var(--color-input-border);
|
568
|
+
}
|
569
|
+
}
|
570
|
+
|
571
|
+
&.sd-input__input--invalid {
|
572
|
+
background-color: hsla(357, 79%, 50%, 0.075);
|
573
|
+
border-color: $red;
|
574
|
+
&:hover,
|
575
|
+
&:focus {
|
576
|
+
background-color: hsla(357, 79%, 50%, 0.12);
|
577
|
+
box-shadow: none !important;
|
578
|
+
}
|
579
|
+
}
|
580
|
+
}
|
581
|
+
&--medium {
|
582
|
+
border-radius: var(--b-radius--medium);
|
583
|
+
&:focus {
|
584
|
+
box-shadow: inset 0 0 0 3px var(--sd-colour-interactive--alpha-20);
|
585
|
+
}
|
586
|
+
}
|
587
|
+
&--large {
|
588
|
+
padding: 0 1.6rem;
|
589
|
+
min-height: 4.8rem;
|
590
|
+
font-size: 2.4rem;
|
591
|
+
font-weight: 500;
|
592
|
+
}
|
593
|
+
&--x-large {
|
594
|
+
padding: 0 1.6rem;
|
595
|
+
min-height: 5.6rem;
|
596
|
+
font-size: 3.2rem;
|
597
|
+
font-weight: 500;
|
598
|
+
}
|
599
|
+
}
|
600
|
+
|
601
|
+
.sd-input__select {
|
602
|
+
display: block;
|
603
|
+
position: relative;
|
604
|
+
@include Line-input-base;
|
605
|
+
padding-inline-end: 2rem;
|
606
|
+
min-width: 5rem;
|
607
|
+
cursor: pointer;
|
608
|
+
option {
|
609
|
+
color:inherit;
|
610
|
+
font-size: 1.4rem;
|
611
|
+
line-height: 2rem;
|
612
|
+
background-color: var(--color-dropdown-menu-Bg);
|
613
|
+
color: var(--color-dropdown-menu-text);
|
614
|
+
}
|
615
|
+
}
|
616
|
+
|
617
|
+
.sd-input__hint,
|
618
|
+
.sd-input__message,
|
619
|
+
.sd-input__char-count {
|
620
|
+
font-size: 1.2rem;
|
621
|
+
line-height: 1.4rem;
|
622
|
+
transition: all 0.3s cubic-bezier(0.55, 0, 0.55, 0.2);
|
623
|
+
color: var(--color-text-light);
|
624
|
+
font-weight: 300;
|
625
|
+
letter-spacing: 0.03em;
|
626
|
+
display: block;
|
627
|
+
}
|
628
|
+
.sd-input__char-count {
|
629
|
+
font-size: 1.1rem;
|
630
|
+
font-weight: 400;
|
631
|
+
font-style: italic;
|
632
|
+
&--error {
|
633
|
+
color: $red;
|
634
|
+
}
|
635
|
+
}
|
636
|
+
|
637
|
+
|
638
|
+
//----
|
639
|
+
|
438
640
|
.sd-input {
|
439
641
|
padding-top: 0;
|
440
642
|
margin: 0;
|
@@ -443,26 +645,19 @@
|
|
443
645
|
grid-template-rows: $form-label-height auto auto;
|
444
646
|
grid-gap: 0;
|
445
647
|
position: relative;
|
648
|
+
align-self: stretch;
|
446
649
|
|
447
|
-
input, textarea, select {
|
448
|
-
&.sd-input__input {
|
449
|
-
@include Line-input-base;
|
450
|
-
background-color: var(--color-input-bg);
|
451
|
-
transition: all 0.3s cubic-bezier(0.55, 0, 0.55, 0.2);
|
452
|
-
padding: 0 0.8rem;
|
453
|
-
height: $form-input-height;
|
454
|
-
border-radius: $border-radius__base--x-small $border-radius__base--x-small 0 0;
|
455
|
-
grid-row: 2/3;
|
456
|
-
grid-column: 2/4;
|
457
|
-
&:hover {
|
458
|
-
background-color: var(--color-input-bg--hover);
|
459
|
-
}
|
460
|
-
&:focus {
|
461
|
-
background-color: var(--sd-colour-interactive--alpha-20);
|
462
|
-
}
|
463
|
-
}
|
464
650
|
|
651
|
+
.sd-input__input {
|
652
|
+
//@include Line-input-base;
|
653
|
+
grid-row: 2/3;
|
654
|
+
grid-column: 2/4;
|
465
655
|
}
|
656
|
+
.sd-input__input-container {
|
657
|
+
grid-row: 2/3;
|
658
|
+
grid-column: 2/4;
|
659
|
+
}
|
660
|
+
|
466
661
|
textarea {
|
467
662
|
&.sd-input__input {
|
468
663
|
height: auto;
|
@@ -479,34 +674,22 @@
|
|
479
674
|
}
|
480
675
|
}
|
481
676
|
}
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
&:focus {
|
499
|
-
background-color: var(--sd-colour-interactive--alpha-20);
|
500
|
-
}
|
501
|
-
option {
|
502
|
-
color:inherit;
|
503
|
-
font-size: 1.4rem;
|
504
|
-
line-height: 2rem;
|
505
|
-
background-color: var(--color-dropdown-menu-Bg);
|
506
|
-
color: var(--color-dropdown-menu-text);
|
507
|
-
}
|
508
|
-
}
|
509
|
-
cursor: pointer;
|
677
|
+
.sd-input__select {
|
678
|
+
// display: block;
|
679
|
+
// position: relative;
|
680
|
+
// @include Line-input-base;
|
681
|
+
// padding-inline-end: 2rem;
|
682
|
+
grid-row: 2/3;
|
683
|
+
grid-column: 2/4;
|
684
|
+
// min-width: 5rem;
|
685
|
+
// cursor: pointer;
|
686
|
+
// option {
|
687
|
+
// color:inherit;
|
688
|
+
// font-size: 1.4rem;
|
689
|
+
// line-height: 2rem;
|
690
|
+
// background-color: var(--color-dropdown-menu-Bg);
|
691
|
+
// color: var(--color-dropdown-menu-text);
|
692
|
+
// }
|
510
693
|
}
|
511
694
|
&.sd-input--is-select {
|
512
695
|
&::after {
|
@@ -547,24 +730,24 @@
|
|
547
730
|
.sd-input__hint,
|
548
731
|
.sd-input__message,
|
549
732
|
.sd-input__char-count {
|
550
|
-
font-size: 1.2rem;
|
551
|
-
line-height: 1.4rem;
|
552
|
-
transition: all 0.3s cubic-bezier(0.55, 0, 0.55, 0.2);
|
553
|
-
color: var(--color-text-light);
|
554
|
-
font-weight: 300;
|
733
|
+
// font-size: 1.2rem;
|
734
|
+
// line-height: 1.4rem;
|
735
|
+
// transition: all 0.3s cubic-bezier(0.55, 0, 0.55, 0.2);
|
736
|
+
// color: var(--color-text-light);
|
737
|
+
// font-weight: 300;
|
555
738
|
margin: 0.5rem 0;
|
556
|
-
letter-spacing: 0.03em;
|
557
|
-
display: block;
|
739
|
+
// letter-spacing: 0.03em;
|
740
|
+
// display: block;
|
558
741
|
}
|
559
742
|
.sd-input__char-count {
|
560
|
-
font-size: 1.1rem;
|
561
|
-
font-weight: 400;
|
562
|
-
font-style: italic;
|
743
|
+
// font-size: 1.1rem;
|
744
|
+
// font-weight: 400;
|
745
|
+
// font-style: italic;
|
563
746
|
grid-row: 3/4;
|
564
747
|
grid-column: 3/4;
|
565
|
-
&--error {
|
566
|
-
|
567
|
-
}
|
748
|
+
// &--error {
|
749
|
+
// color: $red;
|
750
|
+
// }
|
568
751
|
}
|
569
752
|
.sd-input__label {
|
570
753
|
@include Form-label-base;
|
@@ -581,6 +764,9 @@
|
|
581
764
|
font-size: 1.2rem;
|
582
765
|
padding-inline-start: 0.3rem;
|
583
766
|
}
|
767
|
+
&--boxed {
|
768
|
+
@include Boxed-label-base;
|
769
|
+
}
|
584
770
|
}
|
585
771
|
&--inline-label {
|
586
772
|
grid-template-columns: auto 1fr auto;
|
@@ -611,14 +797,14 @@
|
|
611
797
|
&--invalid {
|
612
798
|
input, textarea {
|
613
799
|
&.sd-input__input {
|
614
|
-
background-color:
|
800
|
+
background-color: hsla(357, 79%, 50%, 0.075);
|
615
801
|
border-color: $red;
|
616
802
|
&:hover {
|
617
|
-
background-color:
|
803
|
+
background-color: hsla(357, 79%, 50%, 0.12);
|
618
804
|
border-color: $red;
|
619
805
|
}
|
620
806
|
&:focus {
|
621
|
-
background-color:
|
807
|
+
background-color: hsla(357, 79%, 50%, 0.16);
|
622
808
|
border-color: $red;
|
623
809
|
box-shadow: 0 1px 0 0 $red;
|
624
810
|
}
|
@@ -626,14 +812,14 @@
|
|
626
812
|
}
|
627
813
|
select {
|
628
814
|
&.sd-input__select {
|
629
|
-
background-color:
|
815
|
+
background-color: hsla(357, 79%, 50%, 0.075);
|
630
816
|
border-color: $red;
|
631
817
|
&:hover {
|
632
|
-
background-color:
|
818
|
+
background-color: hsla(357, 79%, 50%, 0.12);
|
633
819
|
border-color: $red;
|
634
820
|
}
|
635
821
|
&:focus {
|
636
|
-
background-color:
|
822
|
+
background-color: hsla(357, 79%, 50%, 0.16);
|
637
823
|
border-color: $red;
|
638
824
|
box-shadow: 0 1px 0 0 $red;
|
639
825
|
}
|
@@ -649,7 +835,12 @@
|
|
649
835
|
content: "*";
|
650
836
|
vertical-align: top;
|
651
837
|
font-size: 1.2rem;
|
652
|
-
padding-
|
838
|
+
padding-inline-start: 0.3rem;
|
839
|
+
}
|
840
|
+
.sd-input__label.sd-input__label--boxed::after {
|
841
|
+
position: absolute;
|
842
|
+
inset-block-start: -4px;
|
843
|
+
inset-inline-end: -10px;
|
653
844
|
}
|
654
845
|
}
|
655
846
|
&--disabled {
|
@@ -676,8 +867,27 @@
|
|
676
867
|
}
|
677
868
|
}
|
678
869
|
}
|
870
|
+
div {
|
871
|
+
&.sd-input__duration-input, &.sd-input__duration-input:hover, &.sd-input__duration-input:focus {
|
872
|
+
opacity: 0.5;
|
873
|
+
//background-color: var(--color-input-bg);
|
874
|
+
//border-bottom: 1px dotted var(--color-input-border);
|
875
|
+
cursor: not-allowed !important;
|
876
|
+
box-shadow: none;
|
877
|
+
}
|
878
|
+
input {
|
879
|
+
&.duration-input, &.duration-input:hover, &.duration-input:focus {
|
880
|
+
opacity: 0.5;
|
881
|
+
//background-color: var(--color-input-bg);
|
882
|
+
//border-bottom: 1px dotted var(--color-input-border);
|
883
|
+
cursor: not-allowed !important;
|
884
|
+
box-shadow: none;
|
885
|
+
}
|
886
|
+
}
|
887
|
+
}
|
679
888
|
.sd-input__label, .sd-input__message-box, .sd-input__char-count {
|
680
|
-
opacity: 0.5;
|
889
|
+
opacity: 0.5 !important;
|
890
|
+
pointer-events: none !important;
|
681
891
|
}
|
682
892
|
.sd-input__hint,
|
683
893
|
.sd-input__message,
|
@@ -692,4 +902,269 @@
|
|
692
902
|
flex-grow: 1;
|
693
903
|
width: 100%;
|
694
904
|
}
|
905
|
+
|
906
|
+
&--medium {
|
907
|
+
&.sd-input--boxed-style {
|
908
|
+
.sd-input__input,
|
909
|
+
.sd-input__select {
|
910
|
+
border-radius: var(--b-radius--medium);
|
911
|
+
&:focus {
|
912
|
+
box-shadow: inset 0 0 0 3px var(--sd-colour-interactive--alpha-20);
|
913
|
+
}
|
914
|
+
}
|
915
|
+
}
|
916
|
+
}
|
917
|
+
&--large {
|
918
|
+
.sd-input__input,
|
919
|
+
.sd-input__select {
|
920
|
+
padding: 0 1.6rem;
|
921
|
+
min-height: 4.8rem;
|
922
|
+
font-size: 2.4rem;
|
923
|
+
font-weight: 500;
|
924
|
+
}
|
925
|
+
.sd-input__select {
|
926
|
+
line-height: 2.4rem;
|
927
|
+
option {
|
928
|
+
color: var(--color-text);
|
929
|
+
font-size: 1.4rem !important;
|
930
|
+
line-height: 2rem;
|
931
|
+
background-color: var(--color-dropdown-menu-Bg);
|
932
|
+
}
|
933
|
+
}
|
934
|
+
}
|
935
|
+
&--x-large {
|
936
|
+
.sd-input__input,
|
937
|
+
.sd-input__select {
|
938
|
+
padding: 0 1.6rem;
|
939
|
+
min-height: 5.6rem;
|
940
|
+
font-size: 3.2rem;
|
941
|
+
font-weight: 500;
|
942
|
+
}
|
943
|
+
.sd-input__select {
|
944
|
+
line-height: 3.2rem;
|
945
|
+
option {
|
946
|
+
color: var(--color-text);
|
947
|
+
font-size: 1.4rem !important;
|
948
|
+
line-height: 2rem;
|
949
|
+
background-color: var(--color-dropdown-menu-Bg);
|
950
|
+
}
|
951
|
+
}
|
952
|
+
}
|
953
|
+
&--boxed-style {
|
954
|
+
.sd-input__input,
|
955
|
+
.sd-input__select {
|
956
|
+
border: 0;
|
957
|
+
border: 2px solid var(--color-input-border);
|
958
|
+
background-color: transparent;
|
959
|
+
transition: all ease 0.3s;
|
960
|
+
border-radius: var(--b-radius--large);
|
961
|
+
display: block;
|
962
|
+
&:hover {
|
963
|
+
border-color: var(--color-input-border-hover);
|
964
|
+
background-color: transparent;
|
965
|
+
}
|
966
|
+
&:focus {
|
967
|
+
outline: none;
|
968
|
+
border-color: var(--sd-colour-interactive--alpha-50);
|
969
|
+
box-shadow: inset 0 0 0 4px var(--sd-colour-interactive--alpha-20);
|
970
|
+
background-color: transparent;
|
971
|
+
}
|
972
|
+
}
|
973
|
+
|
974
|
+
&.sd-input--disabled {
|
975
|
+
input,
|
976
|
+
textarea {
|
977
|
+
&.sd-input__input,
|
978
|
+
&.sd-input__input:hover,
|
979
|
+
&.sd-input__input:focus {
|
980
|
+
opacity: 0.5;
|
981
|
+
background-color: transparent;
|
982
|
+
border: 2px solid var(--color-input-border) !important;
|
983
|
+
box-shadow: none;
|
984
|
+
}
|
985
|
+
}
|
986
|
+
select {
|
987
|
+
&.sd-input__select,
|
988
|
+
&.sd-input__select:hover,
|
989
|
+
&.sd-input__select:focus {
|
990
|
+
opacity: 0.5;
|
991
|
+
background-color: transparent;
|
992
|
+
border: 2px solid var(--color-input-border) !important;
|
993
|
+
//ursor: not-allowed !important;
|
994
|
+
box-shadow: none;
|
995
|
+
}
|
996
|
+
}
|
997
|
+
.tags-input__add-button {
|
998
|
+
pointer-events: none;
|
999
|
+
}
|
1000
|
+
.sd-input__label,
|
1001
|
+
.sd-input__message-box,
|
1002
|
+
.sd-input__char-count {
|
1003
|
+
.sd-input__label,
|
1004
|
+
.sd-input__message-box,
|
1005
|
+
.sd-input__char-count {
|
1006
|
+
opacity: 0.5;
|
1007
|
+
}
|
1008
|
+
}
|
1009
|
+
.sd-input__hint,
|
1010
|
+
.sd-input__message,
|
1011
|
+
.sd-input__char-count {
|
1012
|
+
pointer-events: none;
|
1013
|
+
}
|
1014
|
+
}
|
1015
|
+
|
1016
|
+
&.sd-input--invalid {
|
1017
|
+
input, textarea {
|
1018
|
+
&.sd-input__input {
|
1019
|
+
&:focus {
|
1020
|
+
background-color: hsla(357, 79%, 50%, 0.1);
|
1021
|
+
box-shadow: none;
|
1022
|
+
}
|
1023
|
+
}
|
1024
|
+
}
|
1025
|
+
select {
|
1026
|
+
&.sd-input__select {
|
1027
|
+
&:focus {
|
1028
|
+
background-color: hsla(357, 79%, 50%, 0.1);
|
1029
|
+
box-shadow: none;
|
1030
|
+
}
|
1031
|
+
}
|
1032
|
+
}
|
1033
|
+
.sd-input__label, .sd-input__message {
|
1034
|
+
color: $red;
|
1035
|
+
}
|
1036
|
+
}
|
1037
|
+
}
|
1038
|
+
&--boxed-label {
|
1039
|
+
grid-template-columns: auto 1fr auto;
|
1040
|
+
grid-template-rows: auto auto auto;
|
1041
|
+
&:hover {
|
1042
|
+
.sd-input__label {
|
1043
|
+
&.sd-input__label--boxed {
|
1044
|
+
background-color: hsla(214, 13%, 30%, 0.54);
|
1045
|
+
}
|
1046
|
+
}
|
1047
|
+
}
|
1048
|
+
&:focus-within {
|
1049
|
+
.sd-input__label {
|
1050
|
+
&.sd-input__label--boxed {
|
1051
|
+
background-color: var(--sd-colour-interactive--alpha-70);
|
1052
|
+
}
|
1053
|
+
}
|
1054
|
+
}
|
1055
|
+
&.sd-input--invalid {
|
1056
|
+
.sd-input__label--boxed {
|
1057
|
+
background-color: $red !important;
|
1058
|
+
color: hsla(214, 13%, 100%, 1);
|
1059
|
+
}
|
1060
|
+
}
|
1061
|
+
&.sd-input--disabled {
|
1062
|
+
.sd-input__label--boxed {
|
1063
|
+
background-color: hsla(214, 13%, 0%, 0.4) !important;
|
1064
|
+
}
|
1065
|
+
}
|
1066
|
+
}
|
1067
|
+
|
1068
|
+
}
|
1069
|
+
|
1070
|
+
///////////////// -------------------- Duration & Time-Date input --------------------- /////////////////
|
1071
|
+
|
1072
|
+
|
1073
|
+
|
1074
|
+
|
1075
|
+
|
1076
|
+
|
1077
|
+
|
1078
|
+
.sd-input__duration-input,
|
1079
|
+
.sd-input__time-date-input {
|
1080
|
+
@include Line-input-base;
|
1081
|
+
display: flex;
|
1082
|
+
gap: 2px;
|
1083
|
+
grid-row: 2/3;
|
1084
|
+
grid-column: 2/4;
|
1085
|
+
&:focus-within {
|
1086
|
+
box-shadow: 0 1px 0 0 var(--sd-colour-interactive);
|
1087
|
+
border-color: var(--sd-colour-interactive);
|
1088
|
+
background-color: var(--sd-colour-interactive--alpha-20);
|
1089
|
+
}
|
1090
|
+
}
|
1091
|
+
|
1092
|
+
.sd-input__duration-input {
|
1093
|
+
input {
|
1094
|
+
-webkit-appearance: none;
|
1095
|
+
-moz-appearance: none;
|
1096
|
+
appearance: none;
|
1097
|
+
border: 0;
|
1098
|
+
background-color: transparent;
|
1099
|
+
height: 3.2rem;
|
1100
|
+
display: inline-block;
|
1101
|
+
color: var(--color-text);
|
1102
|
+
text-align: end;
|
1103
|
+
width: 2.5ch;
|
1104
|
+
font-size: 1.4rem;
|
1105
|
+
padding: 0 !important;
|
1106
|
+
line-height: 3.2rem;
|
1107
|
+
&::-webkit-outer-spin-button,
|
1108
|
+
&::-webkit-inner-spin-button {
|
1109
|
+
-webkit-appearance: none;
|
1110
|
+
margin: 0;
|
1111
|
+
}
|
1112
|
+
&[type=number] {
|
1113
|
+
-moz-appearance: textfield;
|
1114
|
+
}
|
1115
|
+
}
|
1116
|
+
span {
|
1117
|
+
display: flex;
|
1118
|
+
align-items: center;
|
1119
|
+
}
|
1120
|
+
.sd-input__suffix {
|
1121
|
+
height: 3.2rem;
|
1122
|
+
line-height: 3.2rem;
|
1123
|
+
font-size: 1.4rem;
|
1124
|
+
color: var(--color-text-light);
|
1125
|
+
display: inline-block;
|
1126
|
+
pointer-events: none;
|
1127
|
+
margin-inline-end: 2px;
|
1128
|
+
text-align: center;
|
1129
|
+
}
|
1130
|
+
}
|
1131
|
+
|
1132
|
+
.sd-input {
|
1133
|
+
.p-multiselect,
|
1134
|
+
.p-calendar,
|
1135
|
+
.p-multiselect,
|
1136
|
+
.p-dropdown,
|
1137
|
+
.tags-input {
|
1138
|
+
grid-row: 2/3;
|
1139
|
+
grid-column: 2/4;
|
1140
|
+
width: 100%;
|
1141
|
+
}
|
1142
|
+
&.sd-input--disabled,
|
1143
|
+
&.sd-input--disabled:hover {
|
1144
|
+
.p-multiselect,
|
1145
|
+
.p-calendar,
|
1146
|
+
.p-multiselect,
|
1147
|
+
.p-dropdown,
|
1148
|
+
.tags-input {
|
1149
|
+
opacity: 0.5;
|
1150
|
+
cursor: not-allowed;
|
1151
|
+
}
|
1152
|
+
.p-calendar {
|
1153
|
+
.p-calendar-icon {
|
1154
|
+
pointer-events: none;
|
1155
|
+
}
|
1156
|
+
border-bottom: 1px dotted var(--color-input-border);
|
1157
|
+
background-color: var(--color-input-bg);
|
1158
|
+
}
|
1159
|
+
}
|
1160
|
+
}
|
1161
|
+
|
1162
|
+
.blink_me {
|
1163
|
+
animation: blinker 1s linear infinite;
|
1164
|
+
}
|
1165
|
+
|
1166
|
+
@keyframes blinker {
|
1167
|
+
50% {
|
1168
|
+
opacity: 0;
|
1169
|
+
}
|
695
1170
|
}
|