superdesk-ui-framework 3.0.1-beta.2 → 3.0.1-beta.5
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/img/SD-logo.svg +52 -0
- 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/_hamburger.scss +160 -0
- package/app/styles/_helpers.scss +11 -4
- package/app/styles/_icon-font.scss +3 -0
- package/app/styles/_sd-tag-input.scss +201 -296
- package/app/styles/app.scss +3 -0
- package/app/styles/components/_list-item.scss +13 -1
- package/app/styles/components/_sd-notification-panel.scss +48 -0
- package/app/styles/components/_sd-photo-preview.scss +1 -1
- package/app/styles/design-tokens/_design-tokens-general.scss +2 -5
- package/app/styles/design-tokens/_new-colors.scss +6 -1
- package/app/styles/form-elements/_forms-general.scss +22 -7
- package/app/styles/form-elements/_inputs.scss +356 -62
- package/app/styles/grids/_grid-layout.scss +119 -39
- 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-dropdown.scss +0 -2
- package/app-typescript/components/Badge.tsx +3 -2
- package/app-typescript/components/DatePicker.tsx +71 -36
- package/app-typescript/components/DonutChart.tsx +1 -1
- package/app-typescript/components/DurationInput.tsx +328 -0
- package/app-typescript/components/Form/InputBase.tsx +85 -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 +3 -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/BottomBarAction.tsx +35 -0
- package/app-typescript/components/Layouts/CoreLayout.tsx +62 -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 +16 -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 +6 -0
- package/app-typescript/components/Lists/BoxedList.tsx +36 -4
- package/app-typescript/components/Lists/ContentList.tsx +4 -4
- 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/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/Text/Time.tsx +34 -0
- package/app-typescript/components/TimePicker.tsx +48 -16
- package/app-typescript/components/Togglebox.tsx +1 -1
- package/app-typescript/components/Tooltip.tsx +7 -5
- package/app-typescript/components/TreeSelect.tsx +423 -195
- 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 +6 -1
- package/dist/SD-logo.svg +52 -0
- package/dist/examples.bundle.css +660 -0
- package/dist/examples.bundle.js +44468 -41459
- 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 +155 -0
- package/dist/playgrounds/react-playgrounds/Index.tsx +1 -0
- package/dist/playgrounds/react-playgrounds/RundownEditor.tsx +24 -16
- package/dist/playgrounds/react-playgrounds/TestGround.tsx +112 -1
- 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/ContentList.tsx +15 -9
- package/dist/react/DatePicker.tsx +31 -6
- package/dist/react/DurationInput.tsx +104 -0
- package/dist/react/Index.tsx +10 -0
- package/dist/react/Inputs.tsx +262 -8
- package/dist/react/Labels.tsx +51 -1
- package/dist/react/MultiSelect.tsx +9 -1
- package/dist/react/SelectWithTemplate.tsx +6 -1
- package/dist/react/Selects.tsx +55 -0
- package/dist/react/TableList.tsx +22 -44
- package/dist/react/TimePicker.tsx +16 -8
- package/dist/react/TreeSelect.tsx +301 -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/superdesk-ui.bundle.css +2761 -450
- package/dist/superdesk-ui.bundle.js +42992 -40401
- 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 +155 -0
- package/examples/pages/playgrounds/react-playgrounds/Index.tsx +1 -0
- package/examples/pages/playgrounds/react-playgrounds/RundownEditor.tsx +24 -16
- package/examples/pages/playgrounds/react-playgrounds/TestGround.tsx +112 -1
- 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/ContentList.tsx +15 -9
- package/examples/pages/react/DatePicker.tsx +31 -6
- package/examples/pages/react/DurationInput.tsx +104 -0
- package/examples/pages/react/Index.tsx +10 -0
- package/examples/pages/react/Inputs.tsx +262 -8
- package/examples/pages/react/Labels.tsx +51 -1
- package/examples/pages/react/MultiSelect.tsx +9 -1
- package/examples/pages/react/SelectWithTemplate.tsx +6 -1
- package/examples/pages/react/Selects.tsx +55 -0
- package/examples/pages/react/TableList.tsx +22 -44
- package/examples/pages/react/TimePicker.tsx +16 -8
- package/examples/pages/react/TreeSelect.tsx +301 -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 +5 -4
- package/patches/@superdesk+primereact+5.0.2-4.patch +53 -0
- 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.js +8 -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.js +7 -6
- package/react/components/DropdownFirst.js +18 -11
- package/react/components/DurationInput.d.ts +41 -0
- package/react/components/DurationInput.js +289 -0
- package/react/components/EmptyState.js +7 -5
- package/react/components/Form/FormGroup.js +7 -5
- package/react/components/Form/FormItem.js +5 -3
- package/react/components/Form/FormLabel.js +5 -3
- package/react/components/Form/FormRow.js +5 -3
- package/react/components/Form/FormText.js +4 -2
- package/react/components/Form/InputBase.d.ts +42 -0
- package/react/components/Form/InputBase.js +72 -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 +3 -0
- package/react/components/Form/index.js +7 -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.js +7 -5
- 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 +6 -4
- package/react/components/Layouts/AuthoringMain.js +4 -2
- 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 +19 -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 +9 -0
- package/react/components/Layouts/CoreLayoutMain.js +49 -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 +2 -0
- package/react/components/LeftMenu.js +19 -12
- 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 +45 -0
- package/react/components/Lists/ContentList.js +85 -0
- package/react/components/Lists/SimpleList.js +9 -7
- 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/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.js +6 -4
- 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 +15 -2
- package/react/components/TimePicker.js +19 -6
- 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 +75 -0
- package/react/components/TreeSelect.js +448 -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 +6 -0
- package/react/index.js +15 -2
- package/yarn-error.log +111 -0
- package/sd_icons.eot +0 -0
- package/sd_icons.svg +0 -189
- package/sd_icons.ttf +0 -0
- package/sd_icons.woff +0 -0
@@ -67,6 +67,12 @@ export default class LabelsDoc extends React.Component {
|
|
67
67
|
<Label text='deep-orange--700' color='deep-orange--700'/>
|
68
68
|
<Label text='lime--700' color='lime--700'/>
|
69
69
|
</div>
|
70
|
+
<p className="docs-page__paragraph">// Custom Hex colors</p>
|
71
|
+
<div className='docs-page__content-row'>
|
72
|
+
<Label text='Hex: #008773' hexColor='#008773'/>
|
73
|
+
<Label text='Hex: #000FB5' hexColor='#000FB5'/>
|
74
|
+
<Label text='Hex: #696B00' hexColor='#696B00'/>
|
75
|
+
</div>
|
70
76
|
</Markup.ReactMarkupPreview>
|
71
77
|
<Markup.ReactMarkupCode>{`
|
72
78
|
<Label text='default label'/>
|
@@ -82,7 +88,11 @@ export default class LabelsDoc extends React.Component {
|
|
82
88
|
<Label text='cyan--600' color='cyan--600'/>
|
83
89
|
<Label text='light-green--700' color='light-green--700'/>
|
84
90
|
<Label text='deep-orange--700' color='deep-orange--700'/>
|
85
|
-
<Label text='lime--700' color='lime--700'/>
|
91
|
+
<Label text='lime--700' color='lime--700'/>
|
92
|
+
// Custom Hex colors
|
93
|
+
<Label text='Hex: #008773' hexColor='#008773'/>
|
94
|
+
<Label text='Hex: #000FB5' hexColor='#000FB5'/>
|
95
|
+
<Label text='Hex: #696B00' hexColor='#696B00'/>
|
86
96
|
`}
|
87
97
|
</Markup.ReactMarkupCode>
|
88
98
|
</Markup.ReactMarkup>
|
@@ -113,6 +123,12 @@ export default class LabelsDoc extends React.Component {
|
|
113
123
|
<Label text='light-green--700 label' style='hollow' color='light-green--700'/>
|
114
124
|
<Label text='deep-purple--600 label' style='hollow' color='deep-purple--600'/>
|
115
125
|
</div>
|
126
|
+
<p className="docs-page__paragraph">// Custom Hex colours</p>
|
127
|
+
<div className='docs-page__content-row'>
|
128
|
+
<Label text='Hex: #008773' style='hollow' hexColor='#008773'/>
|
129
|
+
<Label text='Hex: #000FB5' style='hollow' hexColor='#000FB5'/>
|
130
|
+
<Label text='Hex: #696B00' style='hollow' hexColor='#696B00'/>
|
131
|
+
</div>
|
116
132
|
</Markup.ReactMarkupPreview>
|
117
133
|
<Markup.ReactMarkupCode>{`
|
118
134
|
<Label text='default label' style='hollow'/>
|
@@ -133,6 +149,11 @@ export default class LabelsDoc extends React.Component {
|
|
133
149
|
<Label text='blue-grey--600 label' style='hollow' color='blue-grey--600'/>
|
134
150
|
<Label text='light-green--700 label' style='hollow' color='light-green--700'/>
|
135
151
|
<Label text='deep-purple--600 label' style='hollow' color='deep-purple--600'/>
|
152
|
+
|
153
|
+
// Custom Hex colours
|
154
|
+
<Label text='Hex: #008773' style='hollow' hexColor='#008773'/>
|
155
|
+
<Label text='Hex: #000FB5' style='hollow' hexColor='#000FB5'/>
|
156
|
+
<Label text='Hex: #696B00' style='hollow' hexColor='#696B00'/>
|
136
157
|
`}
|
137
158
|
</Markup.ReactMarkupCode>
|
138
159
|
</Markup.ReactMarkup>
|
@@ -156,6 +177,12 @@ export default class LabelsDoc extends React.Component {
|
|
156
177
|
<Label text='Translucent large' size='large' type='primary' style='translucent'/>
|
157
178
|
<Label text='Translucent, large & no text transformation' type='highlight' size='large' style='translucent' noTransform={true}/>
|
158
179
|
</div>
|
180
|
+
<p className="docs-page__paragraph">// Custom Hex colours</p>
|
181
|
+
<div className='docs-page__content-row'>
|
182
|
+
<Label text='Hex: #008773' style='translucent' hexColor='#008773'/>
|
183
|
+
<Label text='Hex: #000FB5' style='translucent' hexColor='#000FB5'/>
|
184
|
+
<Label text='Hex: #696B00' style='translucent' hexColor='#696B00'/>
|
185
|
+
</div>
|
159
186
|
</Markup.ReactMarkupPreview>
|
160
187
|
<Markup.ReactMarkupCode>{`
|
161
188
|
<Label text='default label' style='hollow'/>
|
@@ -169,6 +196,11 @@ export default class LabelsDoc extends React.Component {
|
|
169
196
|
<Label text='Translucent large' size='large' style='translucent'/>
|
170
197
|
<Label text='Translucent large' size='large' type='primary' style='translucent'/>
|
171
198
|
<Label text='Translucent, large & no text transformation' type='highlight' size='large' style='translucent' noTransform={true}/>
|
199
|
+
|
200
|
+
// Custom Hex colours
|
201
|
+
<Label text='Hex: #008773' style='translucent' hexColor='#008773'/>
|
202
|
+
<Label text='Hex: #000FB5' style='translucent' hexColor='#000FB5'/>
|
203
|
+
<Label text='Hex: #696B00' style='translucent' hexColor='#696B00'/>
|
172
204
|
`}
|
173
205
|
</Markup.ReactMarkupCode>
|
174
206
|
</Markup.ReactMarkup>
|
@@ -195,6 +227,15 @@ export default class LabelsDoc extends React.Component {
|
|
195
227
|
<Label text='success label' type='success' style='translucent' onClick={()=> false}/>
|
196
228
|
<Label text='alert label' type='alert' style='translucent' onClick={()=> false}/>
|
197
229
|
</div>
|
230
|
+
<p className="docs-page__paragraph">// Custom Hex colours</p>
|
231
|
+
<div className='docs-page__content-row'>
|
232
|
+
<Label text='Hex: #008773' hexColor='#008773' onClick={()=> false}/>
|
233
|
+
<Label text='Hex: #000FB5' hexColor='#000FB5' onClick={()=> false}/>
|
234
|
+
<Label style='hollow' text='Hex: #008773' hexColor='#008773' onClick={()=> false}/>
|
235
|
+
<Label style='hollow' text='Hex: #000FB5' hexColor='#000FB5' onClick={()=> false}/>
|
236
|
+
<Label style='translucent' text='Hex: #008773' hexColor='#008773' onClick={()=> false}/>
|
237
|
+
<Label style='translucent' text='Hex: #000FB5' hexColor='#000FB5' onClick={()=> false}/>
|
238
|
+
</div>
|
198
239
|
</Markup.ReactMarkupPreview>
|
199
240
|
<Markup.ReactMarkupCode>{`
|
200
241
|
<Label text='default label' onClick={()=> false}/>
|
@@ -211,6 +252,14 @@ export default class LabelsDoc extends React.Component {
|
|
211
252
|
<Label text='primary label' type='primary' style='translucent' onClick={()=> false}/>
|
212
253
|
<Label text='success label' type='success' style='translucent' onClick={()=> false}/>
|
213
254
|
<Label text='alert label' type='alert' style='translucent' onClick={()=> false}/>
|
255
|
+
|
256
|
+
// Custom Hex colours
|
257
|
+
<Label text='Hex: #008773' hexColor='#008773' onClick={()=> false}/>
|
258
|
+
<Label text='Hex: #000FB5' hexColor='#000FB5' onClick={()=> false}/>
|
259
|
+
<Label style='hollow' text='Hex: #008773' hexColor='#008773' onClick={()=> false}/>
|
260
|
+
<Label style='hollow' text='Hex: #000FB5' hexColor='#000FB5' onClick={()=> false}/>
|
261
|
+
<Label style='translucent' text='Hex: #008773' hexColor='#008773' onClick={()=> false}/>
|
262
|
+
<Label style='translucent' text='Hex: #000FB5' hexColor='#000FB5' onClick={()=> false}/>
|
214
263
|
`}
|
215
264
|
</Markup.ReactMarkupCode>
|
216
265
|
</Markup.ReactMarkup>
|
@@ -223,6 +272,7 @@ export default class LabelsDoc extends React.Component {
|
|
223
272
|
<Prop name='size' isRequired={false} type='small | normal | large' default='normal' description='Specifies a small, normal or large label.'/>
|
224
273
|
<Prop name='noTransform' isRequired={false} type='boolean' default='false' description='Transforms text to uppercase.'/>
|
225
274
|
<Prop name='style' isRequired={false} type='filled | hollow | translucent' default='filled' description='Label may have one of these styles - filled (default), hollow or translucent.'/>
|
275
|
+
<Prop name='hexColor' isRequired={false} type='string' default='/' description='Define a custom Hex colour for the label.'/>
|
226
276
|
</PropsList>
|
227
277
|
</section>
|
228
278
|
)
|
@@ -69,6 +69,10 @@ export class MultiselectDocs extends React.Component<{}, IState> {
|
|
69
69
|
showSelectAll
|
70
70
|
placeholder='Select a color'
|
71
71
|
optionLabel='name'
|
72
|
+
required
|
73
|
+
tabindex={1}
|
74
|
+
label={'This is Label'}
|
75
|
+
info={'This is info'}
|
72
76
|
/>
|
73
77
|
</div>
|
74
78
|
</div>
|
@@ -83,6 +87,10 @@ export class MultiselectDocs extends React.Component<{}, IState> {
|
|
83
87
|
showSelectAll
|
84
88
|
placeholder='Select a color'
|
85
89
|
optionLabel='name'
|
90
|
+
required
|
91
|
+
tabindex={1}
|
92
|
+
label={'This is Label'}
|
93
|
+
info={'This is info'}
|
86
94
|
/>
|
87
95
|
`}</Markup.ReactMarkupCode>
|
88
96
|
|
@@ -190,4 +198,4 @@ export class MultiselectDocs extends React.Component<{}, IState> {
|
|
190
198
|
</section>
|
191
199
|
)
|
192
200
|
}
|
193
|
-
}
|
201
|
+
}
|
@@ -80,9 +80,14 @@ export class SelectWithTemplateDocs extends React.Component<{}, IState> {
|
|
80
80
|
}
|
81
81
|
}}
|
82
82
|
getLabel={(option) => option.name}
|
83
|
-
areEqual={(a, b) => a
|
83
|
+
areEqual={(a, b) => a?.colorCode === b?.colorCode}
|
84
84
|
filterPlaceholder="Search..."
|
85
85
|
noResultsFoundMessage="No results found."
|
86
|
+
required
|
87
|
+
tabindex={1}
|
88
|
+
label={'This is Label'}
|
89
|
+
info={'This is info'}
|
90
|
+
error={'This is error'}
|
86
91
|
/>
|
87
92
|
</div>
|
88
93
|
</div>
|
@@ -62,6 +62,61 @@ export default class InputsDoc extends React.Component<{}, IState> {
|
|
62
62
|
<Option>Option 2</Option>
|
63
63
|
</Select>
|
64
64
|
</div>
|
65
|
+
|
66
|
+
<p className="docs-page__paragraph">// Boxed with hidden label</p>
|
67
|
+
<div className='form__row'>
|
68
|
+
<Select label='Select label'
|
69
|
+
value='Option 2'
|
70
|
+
boxedStyle
|
71
|
+
labelHidden
|
72
|
+
error='This is error message'
|
73
|
+
info='This is some hint message'
|
74
|
+
inlineLabel={this.state.inlineLabel}
|
75
|
+
required={this.state.required}
|
76
|
+
disabled={this.state.disabled}
|
77
|
+
invalid={this.state.invalid}
|
78
|
+
tabindex={0}
|
79
|
+
onChange={(value) => { console.log(value) }}>
|
80
|
+
<Option>Option 1</Option>
|
81
|
+
<Option>Option 2</Option>
|
82
|
+
</Select>
|
83
|
+
</div>
|
84
|
+
<div className='form__row'>
|
85
|
+
<Select label='Select label'
|
86
|
+
value='Option 2'
|
87
|
+
boxedStyle
|
88
|
+
labelHidden
|
89
|
+
size='large'
|
90
|
+
error='This is error message'
|
91
|
+
info='This is some hint message'
|
92
|
+
inlineLabel={this.state.inlineLabel}
|
93
|
+
required={this.state.required}
|
94
|
+
disabled={this.state.disabled}
|
95
|
+
invalid={this.state.invalid}
|
96
|
+
tabindex={0}
|
97
|
+
onChange={(value) => { console.log(value) }}>
|
98
|
+
<Option>Option 1</Option>
|
99
|
+
<Option>Option 2</Option>
|
100
|
+
</Select>
|
101
|
+
</div>
|
102
|
+
<div className='form__row'>
|
103
|
+
<Select label='Select label'
|
104
|
+
value='Option 2'
|
105
|
+
boxedStyle
|
106
|
+
labelHidden
|
107
|
+
size='x-large'
|
108
|
+
error='This is error message'
|
109
|
+
info='This is some hint message'
|
110
|
+
inlineLabel={this.state.inlineLabel}
|
111
|
+
required={this.state.required}
|
112
|
+
disabled={this.state.disabled}
|
113
|
+
invalid={this.state.invalid}
|
114
|
+
tabindex={0}
|
115
|
+
onChange={(value) => { console.log(value) }}>
|
116
|
+
<Option>Option 1</Option>
|
117
|
+
<Option>Option 2</Option>
|
118
|
+
</Select>
|
119
|
+
</div>
|
65
120
|
</div>
|
66
121
|
|
67
122
|
</Markup.ReactMarkupPreview>
|
@@ -82,12 +82,6 @@ export default class TableListDoc extends React.Component<IProps, IState> {
|
|
82
82
|
|
83
83
|
<TableList>
|
84
84
|
<TableListItem
|
85
|
-
addItem
|
86
|
-
itemsDropdown={[
|
87
|
-
{ label: <Label style='translucent' text='aacc' />, onSelect: () => 1 },
|
88
|
-
{ label: <Label style='translucent' type='primary' text='prlg' />, onSelect: () => 1 },
|
89
|
-
{ label: <Label style='translucent' type='primary' text='prlg' />, onSelect: () => 1 },
|
90
|
-
]}
|
91
85
|
start={
|
92
86
|
<>
|
93
87
|
<Label style='translucent' text='aacc' />
|
@@ -104,12 +98,6 @@ export default class TableListDoc extends React.Component<IProps, IState> {
|
|
104
98
|
<IconButton icon='dots-vertical' size='small' ariaValue='More actions' onClick={()=> false} />
|
105
99
|
} />
|
106
100
|
<TableListItem
|
107
|
-
addItem
|
108
|
-
itemsDropdown={[
|
109
|
-
{ label: <Label style='translucent' text='aacc' />, onSelect: () => 1 },
|
110
|
-
{ label: <Label style='translucent' type='primary' text='prlg' />, onSelect: () => 1 },
|
111
|
-
{ label: <Label style='translucent' type='primary' text='prlg' />, onSelect: () => 1 },
|
112
|
-
]}
|
113
101
|
start={
|
114
102
|
<>
|
115
103
|
<Label style='hollow' text='aacc' />
|
@@ -123,12 +111,6 @@ export default class TableListDoc extends React.Component<IProps, IState> {
|
|
123
111
|
<IconLabel style='translucent' text='Label success' type='success' icon='time' />
|
124
112
|
} />
|
125
113
|
<TableListItem
|
126
|
-
addItem
|
127
|
-
itemsDropdown={[
|
128
|
-
{ label: <Label style='translucent' text='aacc' />, onSelect: () => 1 },
|
129
|
-
{ label: <Label style='translucent' type='primary' text='prlg' />, onSelect: () => 1 },
|
130
|
-
{ label: <Label style='translucent' type='primary' text='prlg' />, onSelect: () => 1 },
|
131
|
-
]}
|
132
114
|
start={
|
133
115
|
<>
|
134
116
|
<Label style='translucent' text='aacc' />
|
@@ -149,13 +131,7 @@ export default class TableListDoc extends React.Component<IProps, IState> {
|
|
149
131
|
</Markup.ReactMarkupPreview>
|
150
132
|
<Markup.ReactMarkupCode>{`
|
151
133
|
<TableList>
|
152
|
-
<TableListItem
|
153
|
-
addItem
|
154
|
-
itemsDropdown={[
|
155
|
-
{ label: <Label style='translucent' text='aacc' />, onSelect: () => 1 },
|
156
|
-
{ label: <Label style='translucent' type='primary' text='prlg' />, onSelect: () => 1 },
|
157
|
-
{ label: <Label style='translucent' type='primary' text='prlg' />, onSelect: () => 1 },
|
158
|
-
]}
|
134
|
+
<TableListItem
|
159
135
|
start={
|
160
136
|
<>
|
161
137
|
<Label style='translucent' text='aacc' />
|
@@ -172,12 +148,6 @@ export default class TableListDoc extends React.Component<IProps, IState> {
|
|
172
148
|
<IconButton icon='dots-vertical' size='small' ariaValue='More actions' onClick={()=> false} />
|
173
149
|
} />
|
174
150
|
<TableListItem
|
175
|
-
addItem
|
176
|
-
itemsDropdown={[
|
177
|
-
{ label: <Label style='translucent' text='aacc' />, onSelect: () => 1 },
|
178
|
-
{ label: <Label style='translucent' type='primary' text='prlg' />, onSelect: () => 1 },
|
179
|
-
{ label: <Label style='translucent' type='primary' text='prlg' />, onSelect: () => 1 },
|
180
|
-
]}
|
181
151
|
start={
|
182
152
|
<>
|
183
153
|
<Label style='hollow' text='aacc' />
|
@@ -191,12 +161,6 @@ export default class TableListDoc extends React.Component<IProps, IState> {
|
|
191
161
|
<IconLabel style='translucent' text='Label success' type='success' icon='time' />
|
192
162
|
} />
|
193
163
|
<TableListItem
|
194
|
-
addItem
|
195
|
-
itemsDropdown={[
|
196
|
-
{ label: <Label style='translucent' text='aacc' />, onSelect: () => 1 },
|
197
|
-
{ label: <Label style='translucent' type='primary' text='prlg' />, onSelect: () => 1 },
|
198
|
-
{ label: <Label style='translucent' type='primary' text='prlg' />, onSelect: () => 1 },
|
199
|
-
]}
|
200
164
|
start={
|
201
165
|
<>
|
202
166
|
<Label style='translucent' text='aacc' />
|
@@ -250,16 +214,30 @@ export default class TableListDoc extends React.Component<IProps, IState> {
|
|
250
214
|
</Markup.ReactMarkup>
|
251
215
|
|
252
216
|
<h3 className="docs-page__h3">Props</h3>
|
253
|
-
<p className="docs-page__paragraph">
|
217
|
+
<p className="docs-page__paragraph">TableList</p>
|
218
|
+
<PropsList>
|
219
|
+
<Prop name='array' isRequired={false} type='Array' default='false' description='Array of object.'/>
|
220
|
+
<Prop name='children' isRequired={false} type='React.ReactNode' default='false' description='Children of component.'/>
|
221
|
+
<Prop name='addItem' isRequired={false} type='boolean' default='false' description='Functionality to add items to the list.'/>
|
222
|
+
<Prop name='dragAndDrop' isRequired={false} type='boolean' default='false' description='Drag&Drop functionality.'/>
|
223
|
+
<Prop name='itemsDropdown' isRequired={false} type='React.ReactNode | any' default='false' description='Dropdown for functionality to add items to the list.'/>
|
224
|
+
<Prop name='className' isRequired={false} type='string' default='false' description='Add class on TableList container.'/>
|
225
|
+
<Prop name='onClick' isRequired={false} type='function' default='false' description='onClick functionality.'/>
|
226
|
+
</PropsList>
|
227
|
+
<p className="docs-page__paragraph">array:</p>
|
254
228
|
<PropsList>
|
255
|
-
<Prop name='
|
229
|
+
<Prop name='start' isRequired={false} type='React.ReactNode' default='false' description='Column of individual items of list.'/>
|
230
|
+
<Prop name='center' isRequired={false} type='React.ReactNode' default='false' description='Column of individual items of list.'/>
|
231
|
+
<Prop name='end' isRequired={false} type='React.ReactNode' default='false' description='Column of individual items of list.'/>
|
232
|
+
<Prop name='action' isRequired={false} type='React.ReactNode' default='false' description='Column of individual list items that is displayed on hover.'/>
|
256
233
|
</PropsList>
|
257
|
-
<p className="docs-page__paragraph">
|
234
|
+
<p className="docs-page__paragraph">TableListItem</p>
|
258
235
|
<PropsList>
|
259
|
-
<Prop name='
|
260
|
-
<Prop name='
|
261
|
-
<Prop name='
|
262
|
-
<Prop name='
|
236
|
+
<Prop name='start' isRequired={false} type='React.ReactNode' default='false' description='Column of individual items of list.'/>
|
237
|
+
<Prop name='center' isRequired={false} type='React.ReactNode' default='false' description='Column of individual items of list.'/>
|
238
|
+
<Prop name='end' isRequired={false} type='React.ReactNode' default='false' description='Column of individual items of list.'/>
|
239
|
+
<Prop name='action' isRequired={false} type='React.ReactNode' default='false' description='Column of individual list items that is displayed on hover.'/>
|
240
|
+
<Prop name='onClick' isRequired={false} type='function' default='false' description='onClick functionality.'/>
|
263
241
|
</PropsList>
|
264
242
|
|
265
243
|
</section>
|
@@ -15,10 +15,15 @@ class TimePickerExample extends React.PureComponent<{}, {time: string}> {
|
|
15
15
|
render() {
|
16
16
|
return (
|
17
17
|
<TimePicker
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
18
|
+
value={this.state.time}
|
19
|
+
onChange={(time) => {
|
20
|
+
this.setState({time});
|
21
|
+
}}
|
22
|
+
required
|
23
|
+
tabindex={1}
|
24
|
+
label={'This is Label'}
|
25
|
+
info={'This is info'}
|
26
|
+
error={'This is error'}
|
22
27
|
/>
|
23
28
|
);
|
24
29
|
}
|
@@ -38,10 +43,13 @@ export default class TimePickerDoc extends React.Component {
|
|
38
43
|
render() {
|
39
44
|
return (
|
40
45
|
<TimePicker
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
46
|
+
value={this.state.time}
|
47
|
+
onChange={(time) => {
|
48
|
+
this.setState({time});
|
49
|
+
}}
|
50
|
+
label={'This is Label'}
|
51
|
+
info={'This is info'}
|
52
|
+
error={'This is error'}
|
45
53
|
/>
|
46
54
|
);
|
47
55
|
}
|