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
@@ -98,7 +98,8 @@ export default class ContentListDoc extends React.Component {
|
|
98
98
|
fullwidth: true,
|
99
99
|
}
|
100
100
|
],
|
101
|
-
locked: true,
|
101
|
+
//locked: true,
|
102
|
+
selected: true,
|
102
103
|
action: <IconButton icon='dots-vertical' ariaValue='More actions' onClick={()=> false} />,
|
103
104
|
},
|
104
105
|
{
|
@@ -262,18 +263,23 @@ export default class ContentListDoc extends React.Component {
|
|
262
263
|
</Markup.ReactMarkup>
|
263
264
|
|
264
265
|
<h3 className="docs-page__h3">Props</h3>
|
265
|
-
<p className="docs-page__paragraph">
|
266
|
+
<p className="docs-page__paragraph">ContentList</p>
|
266
267
|
<PropsList>
|
267
|
-
<Prop name='
|
268
|
+
<Prop name='items' isRequired={true} type='Array' default='compact' description='An array of object.'/>
|
268
269
|
</PropsList>
|
269
|
-
<p className="docs-page__paragraph">
|
270
|
+
<p className="docs-page__paragraph">Items:</p>
|
270
271
|
<PropsList>
|
271
|
-
<Prop name='
|
272
|
-
<Prop name='
|
273
|
-
<Prop name='
|
274
|
-
<Prop name='
|
272
|
+
<Prop name='itemColum' isRequired={true} type='Array<{itemRow: Array<{content: any}>, border?: boolean, fullwidth?: boolean}>' default='false' description='An array of objects for defining column of individual items.'/>
|
273
|
+
<Prop name='action' isRequired={false} type='React.ReactNode' default='false' description='On hover displays an additional menu.'/>
|
274
|
+
<Prop name='locked' isRequired={false} type='boolean' default='false' description='If is true, the individual item of list change state and change style.'/>
|
275
|
+
<Prop name='activated' isRequired={false} type='boolean' default='false' description='If is true, the individual item of list change state and change style.'/>
|
276
|
+
<Prop name='selected' isRequired={false} type='boolean' default='false' description='If is true, the individual item of list change state and change style.'/>
|
277
|
+
<Prop name='archived' isRequired={false} type='boolean' default='false' description='If is true, the individual item of list change state and change style.'/>
|
278
|
+
<Prop name='loading' isRequired={false} type='boolean' default='false' description='If is true, the individual item of list change state and change style.'/>
|
279
|
+
<Prop name='onClick' isRequired={false} type='function' default='/' description='onClick functionality.'/>
|
280
|
+
<Prop name='onDoubleClick' isRequired={false} type='function' default='/' description='onDoubleClick functionality.'/>
|
275
281
|
</PropsList>
|
276
|
-
|
282
|
+
|
277
283
|
</section>
|
278
284
|
)
|
279
285
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
|
3
3
|
import * as Markup from '../../js/react';
|
4
|
-
import {DatePicker, PropsList, Prop} from '../../../app-typescript';
|
4
|
+
import {DatePicker, PropsList, Prop, DatePickerISO} from '../../../app-typescript';
|
5
5
|
|
6
6
|
class DatePickerExample extends React.PureComponent<{}, {date: Date}> {
|
7
7
|
constructor(props) {
|
@@ -14,11 +14,16 @@ class DatePickerExample extends React.PureComponent<{}, {date: Date}> {
|
|
14
14
|
render() {
|
15
15
|
return (
|
16
16
|
<DatePicker
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
17
|
+
value={this.state.date}
|
18
|
+
dateFormat="YYYY-MM-DD"
|
19
|
+
onChange={(date) => {
|
20
|
+
this.setState({date});
|
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
|
}
|
@@ -43,6 +48,11 @@ export default class DatePickerDoc extends React.Component {
|
|
43
48
|
onChange={(date) => {
|
44
49
|
this.setState({date});
|
45
50
|
}}
|
51
|
+
required
|
52
|
+
tabindex={1}
|
53
|
+
label={'This is Label'}
|
54
|
+
info={'This is info'}
|
55
|
+
error={'This is error'}
|
46
56
|
/>
|
47
57
|
);
|
48
58
|
}
|
@@ -53,6 +63,21 @@ export default class DatePickerDoc extends React.Component {
|
|
53
63
|
<div className='docs-page__content-row'>
|
54
64
|
<DatePickerExample />
|
55
65
|
</div>
|
66
|
+
|
67
|
+
<p className="docs-page__paragraph">// DatePickerISO</p>
|
68
|
+
<div className='docs-page__content-row'>
|
69
|
+
<DatePickerISO
|
70
|
+
value={'2019-01-01'}
|
71
|
+
dateFormat="YYYY-MM-DD"
|
72
|
+
onChange={(date) => {
|
73
|
+
this.setState({date});
|
74
|
+
}}
|
75
|
+
tabindex={1}
|
76
|
+
label={'This is Label'}
|
77
|
+
info={'This is info'}
|
78
|
+
error={'This is error'}
|
79
|
+
/>
|
80
|
+
</div>
|
56
81
|
</Markup.ReactMarkupPreview>
|
57
82
|
<Markup.ReactMarkupCode>{`
|
58
83
|
<DatePicker
|
@@ -0,0 +1,104 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
|
3
|
+
import * as Markup from '../../js/react';
|
4
|
+
|
5
|
+
import { Input, Select, CheckGroup, Checkbox, PropsList, Prop } from '../../../app-typescript';
|
6
|
+
import { DurationInput } from '../../../app-typescript/components/DurationInput';
|
7
|
+
|
8
|
+
interface IState {
|
9
|
+
inlineLabel: boolean;
|
10
|
+
required: boolean;
|
11
|
+
disabled: boolean;
|
12
|
+
invalid: boolean;
|
13
|
+
}
|
14
|
+
|
15
|
+
export default class DurationInputDoc extends React.Component<{}, IState> {
|
16
|
+
constructor(props) {
|
17
|
+
super(props);
|
18
|
+
this.state = {
|
19
|
+
inlineLabel: false,
|
20
|
+
required: true,
|
21
|
+
disabled: false,
|
22
|
+
invalid: false,
|
23
|
+
}
|
24
|
+
}
|
25
|
+
|
26
|
+
render() {
|
27
|
+
return (
|
28
|
+
<section className='docs-page__container'>
|
29
|
+
<h2 className='docs-page__h2'>Duration Input</h2>
|
30
|
+
<Markup.ReactMarkupCodePreview>{`
|
31
|
+
<DurationInput
|
32
|
+
label='Label'
|
33
|
+
info='info message'
|
34
|
+
disabled={this.state.disabled}
|
35
|
+
required={this.state.required}
|
36
|
+
invalid={this.state.invalid}
|
37
|
+
inlineLabel={this.state.inlineLabel}
|
38
|
+
onChange={(e) => {
|
39
|
+
console.log(e)
|
40
|
+
}}
|
41
|
+
/>
|
42
|
+
`}
|
43
|
+
</Markup.ReactMarkupCodePreview>
|
44
|
+
<p className='docs-page__paragraph'></p>
|
45
|
+
<Markup.ReactMarkup>
|
46
|
+
<Markup.ReactMarkupPreview>
|
47
|
+
<div className='docs-page__content-row docs-page__content-row--no-margin'>
|
48
|
+
<div className='form__row'>
|
49
|
+
<CheckGroup>
|
50
|
+
<Checkbox checked={this.state.required} label={{text:'Required input'}} onChange={(value) => {this.setState({required: value})}} />
|
51
|
+
<Checkbox checked={this.state.disabled} label={{text:'Disabled input'}} onChange={(value) => {this.setState({disabled: value})}} />
|
52
|
+
<Checkbox checked={this.state.invalid} label={{text:'Invalid input'}} onChange={(value) => {this.setState({invalid: value})}} />
|
53
|
+
<Checkbox checked={this.state.inlineLabel} label={{text:'Label positioned inline'}} onChange={(value) => {this.setState({inlineLabel: value})}} />
|
54
|
+
</CheckGroup>
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<div className='form__row'>
|
58
|
+
<DurationInput
|
59
|
+
label='Label'
|
60
|
+
info='info message'
|
61
|
+
disabled={this.state.disabled}
|
62
|
+
required={this.state.required}
|
63
|
+
invalid={this.state.invalid}
|
64
|
+
inlineLabel={this.state.inlineLabel}
|
65
|
+
onChange={(e) => {
|
66
|
+
console.log(e)
|
67
|
+
}}
|
68
|
+
/>
|
69
|
+
</div>
|
70
|
+
</div>
|
71
|
+
|
72
|
+
</Markup.ReactMarkupPreview>
|
73
|
+
<Markup.ReactMarkupCode>{`
|
74
|
+
<DurationInput
|
75
|
+
label='Label'
|
76
|
+
info='info message'
|
77
|
+
disabled={this.state.disabled}
|
78
|
+
required={this.state.required}
|
79
|
+
invalid={this.state.invalid}
|
80
|
+
inlineLabel={this.state.inlineLabel}
|
81
|
+
onChange={(e) => {
|
82
|
+
console.log(e)
|
83
|
+
}}
|
84
|
+
/>
|
85
|
+
`}</Markup.ReactMarkupCode>
|
86
|
+
</Markup.ReactMarkup>
|
87
|
+
|
88
|
+
<h3 className='docs-page__h3'>Props</h3>
|
89
|
+
<PropsList>
|
90
|
+
<Prop name='hours' isRequired={false} type='number' default='00' description='Hours value'/>
|
91
|
+
<Prop name='minutes' isRequired={false} type='number' default='00' description='Minutes value'/>
|
92
|
+
<Prop name='seconds' isRequired={false} type='number' default='00' description='Seconds value'/>
|
93
|
+
<Prop name='label' isRequired={false} type='string' default='/' description='Input label'/>
|
94
|
+
<Prop name='info' isRequired={false} type='string' default='/' description='Hint text'/>
|
95
|
+
<Prop name='error' isRequired={false} type='string' default='/' description='Error text'/>
|
96
|
+
<Prop name='inlineLabel' isRequired={false} type='boolean' default='false' description='Position labels as inline'/>
|
97
|
+
<Prop name='required' isRequired={false} type='boolean' default='false' description='Mark field as required'/>
|
98
|
+
<Prop name='disabled' isRequired={false} type='boolean' default='false' description='Mark field as disabled'/>
|
99
|
+
<Prop name='invalid' isRequired={false} type='boolean' default='false' description='Mark field as invalid'/>
|
100
|
+
</PropsList>
|
101
|
+
</section>
|
102
|
+
)
|
103
|
+
}
|
104
|
+
}
|
package/dist/react/Index.tsx
CHANGED
@@ -61,8 +61,10 @@ import * as Playgrounds from '../playgrounds/react-playgrounds/Index';
|
|
61
61
|
import { SelectWithTemplateDocs } from './SelectWithTemplate';
|
62
62
|
import { MultiselectDocs } from './MultiSelect';
|
63
63
|
import { TreeSelectDocs } from './TreeSelect';
|
64
|
+
import DurationInputDoc from './DurationInput';
|
64
65
|
import { PopoverDoc } from './Popover';
|
65
66
|
import { MenuDocs } from './Menu';
|
67
|
+
import {WithSizeObserverDocs} from './WithSizeObserver';
|
66
68
|
|
67
69
|
const pages = {
|
68
70
|
basicComponents: {
|
@@ -221,6 +223,9 @@ const pages = {
|
|
221
223
|
'select-with-template': {
|
222
224
|
name: 'Select with template',
|
223
225
|
},
|
226
|
+
'with-size-observer': {
|
227
|
+
name: 'With size observer',
|
228
|
+
},
|
224
229
|
'multiselect': {
|
225
230
|
name: 'MultiSelect',
|
226
231
|
},
|
@@ -236,6 +241,9 @@ const pages = {
|
|
236
241
|
'icon-picker': {
|
237
242
|
name: 'Icon Picker',
|
238
243
|
},
|
244
|
+
'duration-input': {
|
245
|
+
name: 'Duration Input',
|
246
|
+
},
|
239
247
|
'switch': {
|
240
248
|
name: 'Switch'
|
241
249
|
},
|
@@ -330,8 +338,10 @@ class ReactDoc extends React.Component<IProps, IState> {
|
|
330
338
|
<Route path="/react/autocomplete" component={AutocompleteDoc} />
|
331
339
|
<Route path="/react/select" component={SelectsDoc} />
|
332
340
|
<Route path="/react/select-with-template" component={SelectWithTemplateDocs} />
|
341
|
+
<Route path="/react/with-size-observer" component={WithSizeObserverDocs} />
|
333
342
|
<Route path="/react/multiselect" component={MultiselectDocs} />
|
334
343
|
<Route path="/react/treeselect" component={TreeSelectDocs} />
|
344
|
+
<Route path="/react/duration-input" component={DurationInputDoc} />
|
335
345
|
<Route path="/react/popover" component={PopoverDoc} />
|
336
346
|
<Route path="/react/date-picker" component={DatePickerDoc} />
|
337
347
|
<Route path="/react/time-picker" component={TimePickerDoc} />
|
package/dist/react/Inputs.tsx
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import * as React from 'react';
|
2
|
-
|
3
2
|
import * as Markup from '../../js/react';
|
3
|
+
import { Input, CheckGroup, Checkbox, PropsList, Prop, InputNew } from '../../../app-typescript';
|
4
|
+
import { DurationInput } from '../../../app-typescript/components/DurationInput';
|
4
5
|
|
5
|
-
import { Input, Select, CheckGroup, Checkbox, PropsList, Prop } from '../../../app-typescript';
|
6
6
|
|
7
7
|
interface IState {
|
8
8
|
inlineLabel: boolean;
|
@@ -10,6 +10,7 @@ interface IState {
|
|
10
10
|
disabled: boolean;
|
11
11
|
invalid: boolean;
|
12
12
|
value: any;
|
13
|
+
value2: any;
|
13
14
|
}
|
14
15
|
|
15
16
|
export default class InputsDoc extends React.Component<{}, IState> {
|
@@ -20,7 +21,8 @@ export default class InputsDoc extends React.Component<{}, IState> {
|
|
20
21
|
required: true,
|
21
22
|
disabled: false,
|
22
23
|
invalid: false,
|
23
|
-
value: null
|
24
|
+
value: null,
|
25
|
+
value2: '',
|
24
26
|
}
|
25
27
|
}
|
26
28
|
|
@@ -44,10 +46,27 @@ export default class InputsDoc extends React.Component<{}, IState> {
|
|
44
46
|
<Checkbox checked={this.state.inlineLabel} label={{text:'Label positioned inline'}} onChange={(value) => {this.setState({inlineLabel: value})}} />
|
45
47
|
</CheckGroup>
|
46
48
|
</div>
|
49
|
+
<div className='form__row'>
|
50
|
+
<InputNew
|
51
|
+
label='Label'
|
52
|
+
value=''
|
53
|
+
onChange={(value) => false
|
54
|
+
}
|
55
|
+
|
56
|
+
required={true}
|
57
|
+
info='Nullam Sollicitudin'
|
58
|
+
maxLength={20}
|
59
|
+
//invalid={true}
|
60
|
+
//disabled={true}
|
61
|
+
error='Error message'
|
62
|
+
//inlineLabel={true}
|
63
|
+
//labelHidden={true}
|
64
|
+
type='text' />
|
65
|
+
</div>
|
47
66
|
|
48
67
|
<div className='form__row'>
|
49
68
|
<Input label='Input label'
|
50
|
-
value={
|
69
|
+
value={''}
|
51
70
|
maxLength={30}
|
52
71
|
type='text'
|
53
72
|
error='This is error message'
|
@@ -57,7 +76,7 @@ export default class InputsDoc extends React.Component<{}, IState> {
|
|
57
76
|
disabled={this.state.disabled}
|
58
77
|
invalid={this.state.invalid}
|
59
78
|
tabindex={0}
|
60
|
-
onChange={(value) => this.setState({
|
79
|
+
onChange={(value) => this.setState({value2: value})} />
|
61
80
|
</div>
|
62
81
|
<div className='form__row'>
|
63
82
|
<Input label='Number Input'
|
@@ -75,9 +94,10 @@ export default class InputsDoc extends React.Component<{}, IState> {
|
|
75
94
|
<p className="docs-page__paragraph">// Hidden label</p>
|
76
95
|
<div className='form__row'>
|
77
96
|
<Input label='Input label'
|
78
|
-
value={
|
97
|
+
value={''}
|
79
98
|
maxLength={25}
|
80
99
|
type='text'
|
100
|
+
placeholder='Placeholder'
|
81
101
|
error='This is error message'
|
82
102
|
info='Donec id elit non mi porta gravida at eget metus.'
|
83
103
|
inlineLabel={true}
|
@@ -86,7 +106,114 @@ export default class InputsDoc extends React.Component<{}, IState> {
|
|
86
106
|
disabled={this.state.disabled}
|
87
107
|
invalid={this.state.invalid}
|
88
108
|
tabindex={0}
|
89
|
-
onChange={(value) => this.setState({
|
109
|
+
onChange={(value) => this.setState({value2: value})} />
|
110
|
+
</div>
|
111
|
+
<div className='form__row'>
|
112
|
+
<DurationInput
|
113
|
+
onChange={(e) => {
|
114
|
+
console.log(e)
|
115
|
+
}}
|
116
|
+
/>
|
117
|
+
<p className="docs-page__paragraph">// Boxed with hidden label</p>
|
118
|
+
<div className='form__row'>
|
119
|
+
<Input label='Input label'
|
120
|
+
value={''}
|
121
|
+
boxedStyle={true}
|
122
|
+
maxLength={25}
|
123
|
+
type='text'
|
124
|
+
placeholder='Default boxed input'
|
125
|
+
error='This is error message'
|
126
|
+
inlineLabel={true}
|
127
|
+
labelHidden={true}
|
128
|
+
required={this.state.required}
|
129
|
+
disabled={this.state.disabled}
|
130
|
+
invalid={this.state.invalid}
|
131
|
+
tabindex={0}
|
132
|
+
onChange={(value) => this.setState({value2: value})} />
|
133
|
+
</div>
|
134
|
+
<div className='form__row'>
|
135
|
+
<Input label='Input label'
|
136
|
+
value={''}
|
137
|
+
boxedStyle={true}
|
138
|
+
size='large'
|
139
|
+
maxLength={25}
|
140
|
+
type='text'
|
141
|
+
placeholder='Large boxed input'
|
142
|
+
error='This is error message'
|
143
|
+
inlineLabel={true}
|
144
|
+
labelHidden={true}
|
145
|
+
required={this.state.required}
|
146
|
+
disabled={this.state.disabled}
|
147
|
+
invalid={this.state.invalid}
|
148
|
+
tabindex={0}
|
149
|
+
onChange={(value) => this.setState({value2: value})} />
|
150
|
+
</div>
|
151
|
+
<div className='form__row'>
|
152
|
+
<Input label='Input label'
|
153
|
+
value={''}
|
154
|
+
boxedStyle={true}
|
155
|
+
size='x-large'
|
156
|
+
maxLength={25}
|
157
|
+
type='text'
|
158
|
+
placeholder='Extra large boxed input'
|
159
|
+
error='This is error message'
|
160
|
+
inlineLabel={true}
|
161
|
+
labelHidden={true}
|
162
|
+
required={this.state.required}
|
163
|
+
disabled={this.state.disabled}
|
164
|
+
invalid={this.state.invalid}
|
165
|
+
tabindex={0}
|
166
|
+
onChange={(value) => this.setState({value2: value})} />
|
167
|
+
</div>
|
168
|
+
<p className="docs-page__paragraph">// Boxed with default label</p>
|
169
|
+
<div className='form__row'>
|
170
|
+
<Input label='Input label'
|
171
|
+
value={''}
|
172
|
+
boxedStyle={true}
|
173
|
+
size='large'
|
174
|
+
maxLength={25}
|
175
|
+
placeholder='Placeholder'
|
176
|
+
type='text'
|
177
|
+
error='This is error message'
|
178
|
+
required={this.state.required}
|
179
|
+
disabled={this.state.disabled}
|
180
|
+
invalid={this.state.invalid}
|
181
|
+
tabindex={0}
|
182
|
+
onChange={(value) => this.setState({value2: value})} />
|
183
|
+
</div>
|
184
|
+
<p className="docs-page__paragraph">// Boxed with boxed label</p>
|
185
|
+
<div className='form__row'>
|
186
|
+
<Input label='Input label'
|
187
|
+
value={''}
|
188
|
+
boxedStyle={true}
|
189
|
+
boxedLable={true}
|
190
|
+
size='large'
|
191
|
+
maxLength={25}
|
192
|
+
placeholder='Placeholder'
|
193
|
+
type='text'
|
194
|
+
error='This is error message'
|
195
|
+
required={this.state.required}
|
196
|
+
disabled={this.state.disabled}
|
197
|
+
invalid={this.state.invalid}
|
198
|
+
tabindex={0}
|
199
|
+
onChange={(value) => this.setState({value2: value})} />
|
200
|
+
</div>
|
201
|
+
<div className='form__row'>
|
202
|
+
<Input label='Input label'
|
203
|
+
value={''}
|
204
|
+
boxedStyle={true}
|
205
|
+
boxedLable={true}
|
206
|
+
size='large'
|
207
|
+
placeholder='Hide my label'
|
208
|
+
labelHidden={true}
|
209
|
+
type='text'
|
210
|
+
error='This is error message'
|
211
|
+
required={this.state.required}
|
212
|
+
disabled={this.state.disabled}
|
213
|
+
invalid={this.state.invalid}
|
214
|
+
tabindex={0}
|
215
|
+
onChange={(value) => this.setState({value2: value})} />
|
216
|
+
</div>
|
90
217
|
</div>
|
91
218
|
</div>
|
92
219
|
|
@@ -102,6 +229,128 @@ export default class InputsDoc extends React.Component<{}, IState> {
|
|
102
229
|
disabled={false}
|
103
230
|
invalid={false}
|
104
231
|
onChange={(value) => {}} />
|
232
|
+
|
233
|
+
<Input label='Number Input'
|
234
|
+
value={this.state.value}
|
235
|
+
type='number'
|
236
|
+
error='This is error message'
|
237
|
+
info='Morbi leo risus porta ac consectetur ac.'
|
238
|
+
inlineLabel={this.state.inlineLabel}
|
239
|
+
required={this.state.required}
|
240
|
+
disabled={this.state.disabled}
|
241
|
+
invalid={this.state.invalid}
|
242
|
+
tabindex={0}
|
243
|
+
onChange={(value) => {}} />
|
244
|
+
|
245
|
+
// Hidden label
|
246
|
+
<Input label='Input label'
|
247
|
+
value={''}
|
248
|
+
maxLength={25}
|
249
|
+
type='text'
|
250
|
+
placeholder='Placeholder'
|
251
|
+
error='This is error message'
|
252
|
+
info='Donec id elit non mi porta gravida at eget metus.'
|
253
|
+
inlineLabel={true}
|
254
|
+
labelHidden={true}
|
255
|
+
required={this.state.required}
|
256
|
+
disabled={this.state.disabled}
|
257
|
+
invalid={this.state.invalid}
|
258
|
+
tabindex={0}
|
259
|
+
onChange={(value) => {}} />
|
260
|
+
|
261
|
+
// Boxed with hidden label
|
262
|
+
<Input label='Input label'
|
263
|
+
value={''}
|
264
|
+
boxedStyle={true}
|
265
|
+
maxLength={25}
|
266
|
+
type='text'
|
267
|
+
placeholder='Default boxed input'
|
268
|
+
error='This is error message'
|
269
|
+
inlineLabel={true}
|
270
|
+
labelHidden={true}
|
271
|
+
required={this.state.required}
|
272
|
+
disabled={this.state.disabled}
|
273
|
+
invalid={this.state.invalid}
|
274
|
+
tabindex={0}
|
275
|
+
onChange={(value) => {}} />
|
276
|
+
|
277
|
+
<Input label='Input label'
|
278
|
+
value={''}
|
279
|
+
boxedStyle={true}
|
280
|
+
size='large'
|
281
|
+
maxLength={25}
|
282
|
+
type='text'
|
283
|
+
placeholder='Large boxed input'
|
284
|
+
error='This is error message'
|
285
|
+
inlineLabel={true}
|
286
|
+
labelHidden={true}
|
287
|
+
required={this.state.required}
|
288
|
+
disabled={this.state.disabled}
|
289
|
+
invalid={this.state.invalid}
|
290
|
+
tabindex={0}
|
291
|
+
onChange={(value) => {}} />
|
292
|
+
|
293
|
+
<Input label='Input label'
|
294
|
+
value={''}
|
295
|
+
boxedStyle={true}
|
296
|
+
size='x-large'
|
297
|
+
maxLength={25}
|
298
|
+
type='text'
|
299
|
+
placeholder='Extra large boxed input'
|
300
|
+
error='This is error message'
|
301
|
+
inlineLabel={true}
|
302
|
+
labelHidden={true}
|
303
|
+
required={this.state.required}
|
304
|
+
disabled={this.state.disabled}
|
305
|
+
invalid={this.state.invalid}
|
306
|
+
tabindex={0}
|
307
|
+
onChange={(value) => {}} />
|
308
|
+
|
309
|
+
// Boxed with default label
|
310
|
+
<Input label='Input label'
|
311
|
+
value={''}
|
312
|
+
boxedStyle={true}
|
313
|
+
size='large'
|
314
|
+
maxLength={25}
|
315
|
+
placeholder='Placeholder'
|
316
|
+
type='text'
|
317
|
+
error='This is error message'
|
318
|
+
required={this.state.required}
|
319
|
+
disabled={this.state.disabled}
|
320
|
+
invalid={this.state.invalid}
|
321
|
+
tabindex={0}
|
322
|
+
onChange={(value) => {}} />
|
323
|
+
|
324
|
+
// Boxed with boxed label
|
325
|
+
<Input label='Input label'
|
326
|
+
value={''}
|
327
|
+
boxedStyle={true}
|
328
|
+
boxedLable={true}
|
329
|
+
size='large'
|
330
|
+
maxLength={25}
|
331
|
+
placeholder='Placeholder'
|
332
|
+
type='text'
|
333
|
+
error='This is error message'
|
334
|
+
required={this.state.required}
|
335
|
+
disabled={this.state.disabled}
|
336
|
+
invalid={this.state.invalid}
|
337
|
+
tabindex={0}
|
338
|
+
onChange={(value) => {}} />
|
339
|
+
|
340
|
+
<Input label='Input label'
|
341
|
+
value={''}
|
342
|
+
boxedStyle={true}
|
343
|
+
boxedLable={true}
|
344
|
+
size='large'
|
345
|
+
placeholder='Hide my label'
|
346
|
+
labelHidden={true}
|
347
|
+
type='text'
|
348
|
+
error='This is error message'
|
349
|
+
required={this.state.required}
|
350
|
+
disabled={this.state.disabled}
|
351
|
+
invalid={this.state.invalid}
|
352
|
+
tabindex={0}
|
353
|
+
onChange={(value) => {}} />
|
105
354
|
`}</Markup.ReactMarkupCode>
|
106
355
|
</Markup.ReactMarkup>
|
107
356
|
|
@@ -118,8 +367,13 @@ export default class InputsDoc extends React.Component<{}, IState> {
|
|
118
367
|
<Prop name='disabled' isRequired={false} type='boolean' default='false' description='Mark field as disabled'/>
|
119
368
|
<Prop name='invalid' isRequired={false} type='boolean' default='false' description='Mark field as invalid'/>
|
120
369
|
<Prop name='tabindex' isRequired={false} type='number' default='/' description='Indicates an element can be focused on, and determines how that focus is handled.'/>
|
370
|
+
<Prop name='placeholder' isRequired={false} type='string' default='/' description='Defines the text for the placeholder pseudo-element.'/>
|
371
|
+
<Prop name='fullWidth' isRequired={false} type='boolean' default='false' description='Forces the input to take 100% of the container width.'/>
|
372
|
+
<Prop name='boxedStyle' isRequired={false} type='boolean' default='false' description='Applies a boxed style to the input. This style should be used only in the authoring enviroment and similar.'/>
|
373
|
+
<Prop name='boxedLable' isRequired={false} type='boolean' default='false' description='Applies a boxed style to the input label. This label style should be used only in combination with the boxedStyle input inside the authoring enviroment.'/>
|
374
|
+
<Prop name='size' isRequired={false} type='medium | large | x-large' default='medium' description='Specifies the size of the input. Defaults to medium and should be changed only in special cases (e.g. titles, headlines etc.).'/>
|
121
375
|
</PropsList>
|
122
376
|
</section>
|
123
377
|
)
|
124
378
|
}
|
125
|
-
}
|
379
|
+
}
|