@eccenca/gui-elements 23.8.0 → 24.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/README.md +18 -0
- package/dist/cjs/cmem/ActivityControl/ActivityControlWidget.js +1 -2
- package/dist/cjs/cmem/ActivityControl/ActivityControlWidget.js.map +1 -1
- package/dist/cjs/cmem/ActivityControl/ActivityExecutionErrorReportModal.js +5 -1
- package/dist/cjs/cmem/ActivityControl/ActivityExecutionErrorReportModal.js.map +1 -1
- package/dist/cjs/cmem/ActivityControl/SilkActivityControl.js +8 -4
- package/dist/cjs/cmem/ActivityControl/SilkActivityControl.js.map +1 -1
- package/dist/cjs/cmem/ActivityControl/index.js +5 -1
- package/dist/cjs/cmem/ActivityControl/index.js.map +1 -1
- package/dist/cjs/cmem/ConfidenceValue/ConfidenceValue.js +1 -2
- package/dist/cjs/cmem/ConfidenceValue/ConfidenceValue.js.map +1 -1
- package/dist/cjs/cmem/ConfidenceValue/index.js +5 -1
- package/dist/cjs/cmem/ConfidenceValue/index.js.map +1 -1
- package/dist/cjs/cmem/ContentBlobToggler/ContentBlobToggler.js +6 -3
- package/dist/cjs/cmem/ContentBlobToggler/ContentBlobToggler.js.map +1 -1
- package/dist/cjs/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.js +3 -3
- package/dist/cjs/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.js.map +1 -1
- package/dist/cjs/cmem/ContentBlobToggler/index.js +5 -1
- package/dist/cjs/cmem/ContentBlobToggler/index.js.map +1 -1
- package/dist/cjs/cmem/DateTimeDisplay/ElapsedDateTimeDisplay.js +5 -1
- package/dist/cjs/cmem/DateTimeDisplay/ElapsedDateTimeDisplay.js.map +1 -1
- package/dist/cjs/cmem/index.js +5 -1
- package/dist/cjs/cmem/index.js.map +1 -1
- package/dist/cjs/cmem/markdown/highlightSearchWords.js.map +1 -1
- package/dist/cjs/cmem/react-flow/ReactFlow/ReactFlow.js +5 -1
- package/dist/cjs/cmem/react-flow/ReactFlow/ReactFlow.js.map +1 -1
- package/dist/cjs/cmem/react-flow/StickyNoteModal/StickyNoteModal.js.map +1 -1
- package/dist/cjs/cmem/react-flow/configuration/typing.js +3 -3
- package/dist/cjs/cmem/react-flow/configuration/typing.js.map +1 -1
- package/dist/cjs/cmem/react-flow/extensions/scrollOnDragHook.js +5 -1
- package/dist/cjs/cmem/react-flow/extensions/scrollOnDragHook.js.map +1 -1
- package/dist/cjs/cmem/react-flow/index.js +5 -1
- package/dist/cjs/cmem/react-flow/index.js.map +1 -1
- package/dist/cjs/cmem/react-flow/nodes/StickyNoteNode.js +5 -1
- package/dist/cjs/cmem/react-flow/nodes/StickyNoteNode.js.map +1 -1
- package/dist/cjs/common/Intent/index.js.map +1 -1
- package/dist/cjs/common/utils/CssCustomProperties.js +1 -1
- package/dist/cjs/common/utils/CssCustomProperties.js.map +1 -1
- package/dist/cjs/common/utils/characters.js.map +1 -1
- package/dist/cjs/common/utils/colorDecideContrastvalue.js.map +1 -1
- package/dist/cjs/common/utils/getColorConfiguration.js.map +1 -1
- package/dist/cjs/common/utils/getScrollParent.js.map +1 -1
- package/dist/cjs/common/utils/openInNewTab.js.map +1 -1
- package/dist/cjs/components/Accordion/Accordion.js +2 -2
- package/dist/cjs/components/Accordion/Accordion.js.map +1 -1
- package/dist/cjs/components/Accordion/AccordionItem.js +3 -2
- package/dist/cjs/components/Accordion/AccordionItem.js.map +1 -1
- package/dist/cjs/components/Accordion/index.js +5 -1
- package/dist/cjs/components/Accordion/index.js.map +1 -1
- package/dist/cjs/components/Application/ApplicationContent.js +2 -2
- package/dist/cjs/components/Application/ApplicationContent.js.map +1 -1
- package/dist/cjs/components/Application/ApplicationHeader.js +3 -2
- package/dist/cjs/components/Application/ApplicationHeader.js.map +1 -1
- package/dist/cjs/components/Application/ApplicationSidebarNavigation.js +2 -2
- package/dist/cjs/components/Application/ApplicationSidebarNavigation.js.map +1 -1
- package/dist/cjs/components/Application/ApplicationSidebarToggler.js +2 -2
- package/dist/cjs/components/Application/ApplicationSidebarToggler.js.map +1 -1
- package/dist/cjs/components/Application/ApplicationTitle.js +2 -2
- package/dist/cjs/components/Application/ApplicationTitle.js.map +1 -1
- package/dist/cjs/components/Application/ApplicationToolbar.js +3 -2
- package/dist/cjs/components/Application/ApplicationToolbar.js.map +1 -1
- package/dist/cjs/components/Application/ApplicationToolbarAction.js +3 -2
- package/dist/cjs/components/Application/ApplicationToolbarAction.js.map +1 -1
- package/dist/cjs/components/Application/ApplicationToolbarPanel.js +3 -2
- package/dist/cjs/components/Application/ApplicationToolbarPanel.js.map +1 -1
- package/dist/cjs/components/Application/helper.js.map +1 -1
- package/dist/cjs/components/Application/index.js +5 -1
- package/dist/cjs/components/Application/index.js.map +1 -1
- package/dist/cjs/components/AutoSuggestion/AutoSuggestion.js +8 -4
- package/dist/cjs/components/AutoSuggestion/AutoSuggestion.js.map +1 -1
- package/dist/cjs/components/AutoSuggestion/AutoSuggestionList.js +2 -2
- package/dist/cjs/components/AutoSuggestion/AutoSuggestionList.js.map +1 -1
- package/dist/cjs/components/AutoSuggestion/ExtendedCodeEditor.js.map +1 -1
- package/dist/cjs/components/AutocompleteField/AutoCompleteField.js +9 -6
- package/dist/cjs/components/AutocompleteField/AutoCompleteField.js.map +1 -1
- package/dist/cjs/components/AutocompleteField/autoCompleteFieldUtils.js.map +1 -1
- package/dist/cjs/components/AutocompleteField/index.js +5 -1
- package/dist/cjs/components/AutocompleteField/index.js.map +1 -1
- package/dist/cjs/components/Badge/Badge.js +1 -2
- package/dist/cjs/components/Badge/Badge.js.map +1 -1
- package/dist/cjs/components/Breadcrumb/BreadcrumbList.js +5 -1
- package/dist/cjs/components/Breadcrumb/BreadcrumbList.js.map +1 -1
- package/dist/cjs/components/Breadcrumb/index.js +5 -1
- package/dist/cjs/components/Breadcrumb/index.js.map +1 -1
- package/dist/cjs/components/Button/Button.js.map +1 -1
- package/dist/cjs/components/Card/CardHeader.js.map +1 -1
- package/dist/cjs/components/Card/index.js +5 -1
- package/dist/cjs/components/Card/index.js.map +1 -1
- package/dist/cjs/components/CodeAutocompleteField/CodeAutocompleteField.js +1 -2
- package/dist/cjs/components/CodeAutocompleteField/CodeAutocompleteField.js.map +1 -1
- package/dist/cjs/components/CodeAutocompleteField/index.js +5 -1
- package/dist/cjs/components/CodeAutocompleteField/index.js.map +1 -1
- package/dist/cjs/components/ContextOverlay/index.js +5 -1
- package/dist/cjs/components/ContextOverlay/index.js.map +1 -1
- package/dist/cjs/components/Depiction/Depiction.js +6 -3
- package/dist/cjs/components/Depiction/Depiction.js.map +1 -1
- package/dist/cjs/components/Dialog/AlertDialog.js.map +1 -1
- package/dist/cjs/components/Dialog/Modal.js +1 -1
- package/dist/cjs/components/Dialog/Modal.js.map +1 -1
- package/dist/cjs/components/Dialog/index.js +5 -1
- package/dist/cjs/components/Dialog/index.js.map +1 -1
- package/dist/cjs/components/Form/FieldItem.js.map +1 -1
- package/dist/cjs/components/Form/FieldSet.js.map +1 -1
- package/dist/cjs/components/Form/index.js +5 -1
- package/dist/cjs/components/Form/index.js.map +1 -1
- package/dist/cjs/components/Grid/Grid.js +2 -3
- package/dist/cjs/components/Grid/Grid.js.map +1 -1
- package/dist/cjs/components/Grid/GridColumn.js +2 -3
- package/dist/cjs/components/Grid/GridColumn.js.map +1 -1
- package/dist/cjs/components/Grid/GridRow.js +2 -2
- package/dist/cjs/components/Grid/GridRow.js.map +1 -1
- package/dist/cjs/components/Grid/index.js +5 -1
- package/dist/cjs/components/Grid/index.js.map +1 -1
- package/dist/cjs/components/Icon/BaseIcon.js +2 -3
- package/dist/cjs/components/Icon/BaseIcon.js.map +1 -1
- package/dist/cjs/components/Icon/Icon.js.map +1 -1
- package/dist/cjs/components/Icon/canonicalIconNames.js +9 -4
- package/dist/cjs/components/Icon/canonicalIconNames.js.map +1 -1
- package/dist/cjs/components/Icon/index.js +5 -1
- package/dist/cjs/components/Icon/index.js.map +1 -1
- package/dist/cjs/components/Iframe/Iframe.js +5 -1
- package/dist/cjs/components/Iframe/Iframe.js.map +1 -1
- package/dist/cjs/components/Iframe/index.js +5 -1
- package/dist/cjs/components/Iframe/index.js.map +1 -1
- package/dist/cjs/components/InteractionGate/InteractionGate.js +5 -1
- package/dist/cjs/components/InteractionGate/InteractionGate.js.map +1 -1
- package/dist/cjs/components/Link/Link.js +2 -2
- package/dist/cjs/components/Link/Link.js.map +1 -1
- package/dist/cjs/components/List/List.js +6 -3
- package/dist/cjs/components/List/List.js.map +1 -1
- package/dist/cjs/components/Menu/index.js +5 -1
- package/dist/cjs/components/Menu/index.js.map +1 -1
- package/dist/cjs/components/MultiSelect/MultiSelect.js +12 -5
- package/dist/cjs/components/MultiSelect/MultiSelect.js.map +1 -1
- package/dist/cjs/components/MultiSuggestField/MultiSuggestField.js +1 -2
- package/dist/cjs/components/MultiSuggestField/MultiSuggestField.js.map +1 -1
- package/dist/cjs/components/Notification/Notification.js.map +1 -1
- package/dist/cjs/components/Notification/index.js +5 -1
- package/dist/cjs/components/Notification/index.js.map +1 -1
- package/dist/cjs/components/OverviewItem/OverviewItem.js.map +1 -1
- package/dist/cjs/components/OverviewItem/OverviewItemDepiction.js.map +1 -1
- package/dist/cjs/components/OverviewItem/index.js +5 -1
- package/dist/cjs/components/OverviewItem/index.js.map +1 -1
- package/dist/cjs/components/Pagination/Pagination.js +7 -3
- package/dist/cjs/components/Pagination/Pagination.js.map +1 -1
- package/dist/cjs/components/ProgressBar/index.js +5 -1
- package/dist/cjs/components/ProgressBar/index.js.map +1 -1
- package/dist/cjs/components/PropertyValuePair/PropertyValuePair.js.map +1 -1
- package/dist/cjs/components/PropertyValuePair/index.js +5 -1
- package/dist/cjs/components/PropertyValuePair/index.js.map +1 -1
- package/dist/cjs/components/Select/Select.js +1 -2
- package/dist/cjs/components/Select/Select.js.map +1 -1
- package/dist/cjs/components/Separation/Divider.js +1 -2
- package/dist/cjs/components/Separation/Divider.js.map +1 -1
- package/dist/cjs/components/Skeleton/Skeleton.js +1 -2
- package/dist/cjs/components/Skeleton/Skeleton.js.map +1 -1
- package/dist/cjs/components/Spinner/Spinner.js +5 -1
- package/dist/cjs/components/Spinner/Spinner.js.map +1 -1
- package/dist/cjs/components/Sticky/StickyTarget.js.map +1 -1
- package/dist/cjs/components/Sticky/index.js +5 -1
- package/dist/cjs/components/Sticky/index.js.map +1 -1
- package/dist/cjs/components/Structure/TitleMainsection.js.map +1 -1
- package/dist/cjs/components/Structure/TitlePage.js.map +1 -1
- package/dist/cjs/components/Structure/index.js +5 -1
- package/dist/cjs/components/Structure/index.js.map +1 -1
- package/dist/cjs/components/SuggestField/SuggestField.js +1 -2
- package/dist/cjs/components/SuggestField/SuggestField.js.map +1 -1
- package/dist/cjs/components/SuggestField/index.js +5 -1
- package/dist/cjs/components/SuggestField/index.js.map +1 -1
- package/dist/cjs/components/Switch/Switch.js +5 -1
- package/dist/cjs/components/Switch/Switch.js.map +1 -1
- package/dist/cjs/components/Table/Table.js +5 -4
- package/dist/cjs/components/Table/Table.js.map +1 -1
- package/dist/cjs/components/Table/TableCell.js +4 -4
- package/dist/cjs/components/Table/TableCell.js.map +1 -1
- package/dist/cjs/components/Table/TableContainer.js +5 -6
- package/dist/cjs/components/Table/TableContainer.js.map +1 -1
- package/dist/cjs/components/Table/TableExpandHeader.js +4 -4
- package/dist/cjs/components/Table/TableExpandHeader.js.map +1 -1
- package/dist/cjs/components/Table/TableExpandRow.js +6 -6
- package/dist/cjs/components/Table/TableExpandRow.js.map +1 -1
- package/dist/cjs/components/Table/TableRow.js +3 -4
- package/dist/cjs/components/Table/TableRow.js.map +1 -1
- package/dist/cjs/components/Table/index.js +10 -6
- package/dist/cjs/components/Table/index.js.map +1 -1
- package/dist/cjs/components/Tabs/Tab.js.map +1 -1
- package/dist/cjs/components/Tabs/Tabs.js +5 -1
- package/dist/cjs/components/Tabs/Tabs.js.map +1 -1
- package/dist/cjs/components/Tabs/index.js +5 -1
- package/dist/cjs/components/Tabs/index.js.map +1 -1
- package/dist/cjs/components/Tag/Tag.js.map +1 -1
- package/dist/cjs/components/Tag/TagList.js.map +1 -1
- package/dist/cjs/components/TextField/TextArea.js.map +1 -1
- package/dist/cjs/components/TextField/TextField.js.map +1 -1
- package/dist/cjs/components/TextField/index.js +5 -1
- package/dist/cjs/components/TextField/index.js.map +1 -1
- package/dist/cjs/components/TextField/useTextValidation.js.map +1 -1
- package/dist/cjs/components/Toolbar/index.js +5 -1
- package/dist/cjs/components/Toolbar/index.js.map +1 -1
- package/dist/cjs/components/Tooltip/Tooltip.js.map +1 -1
- package/dist/cjs/components/Tree/Tree.js +5 -1
- package/dist/cjs/components/Tree/Tree.js.map +1 -1
- package/dist/cjs/components/Typography/Highlighter.js +5 -5
- package/dist/cjs/components/Typography/Highlighter.js.map +1 -1
- package/dist/cjs/components/Typography/HtmlContentBlock.js +5 -1
- package/dist/cjs/components/Typography/HtmlContentBlock.js.map +1 -1
- package/dist/cjs/components/Typography/WhiteSpaceContainer.js +5 -1
- package/dist/cjs/components/Typography/WhiteSpaceContainer.js.map +1 -1
- package/dist/cjs/components/Typography/index.js +5 -1
- package/dist/cjs/components/Typography/index.js.map +1 -1
- package/dist/cjs/components/Workspace/index.js +5 -1
- package/dist/cjs/components/Workspace/index.js.map +1 -1
- package/dist/cjs/components/index.js +5 -1
- package/dist/cjs/components/index.js.map +1 -1
- package/dist/cjs/extensions/codemirror/CodeMirror.js +5 -1
- package/dist/cjs/extensions/codemirror/CodeMirror.js.map +1 -1
- package/dist/cjs/extensions/index.js +5 -1
- package/dist/cjs/extensions/index.js.map +1 -1
- package/dist/cjs/extensions/react-flow/edges/EdgeDefault.js +5 -1
- package/dist/cjs/extensions/react-flow/edges/EdgeDefault.js.map +1 -1
- package/dist/cjs/extensions/react-flow/edges/EdgeLabel.js +5 -1
- package/dist/cjs/extensions/react-flow/edges/EdgeLabel.js.map +1 -1
- package/dist/cjs/extensions/react-flow/edges/EdgeStep.js +5 -1
- package/dist/cjs/extensions/react-flow/edges/EdgeStep.js.map +1 -1
- package/dist/cjs/extensions/react-flow/edges/EdgeTools.js +5 -1
- package/dist/cjs/extensions/react-flow/edges/EdgeTools.js.map +1 -1
- package/dist/cjs/extensions/react-flow/edges/getSmoothStepPath.js +1 -2
- package/dist/cjs/extensions/react-flow/edges/getSmoothStepPath.js.map +1 -1
- package/dist/cjs/extensions/react-flow/edges/utils.js.map +1 -1
- package/dist/cjs/extensions/react-flow/handles/HandleContent.js +5 -1
- package/dist/cjs/extensions/react-flow/handles/HandleContent.js.map +1 -1
- package/dist/cjs/extensions/react-flow/handles/HandleDefault.js +5 -1
- package/dist/cjs/extensions/react-flow/handles/HandleDefault.js.map +1 -1
- package/dist/cjs/extensions/react-flow/index.js +5 -1
- package/dist/cjs/extensions/react-flow/index.js.map +1 -1
- package/dist/cjs/extensions/react-flow/minimap/MiniMap.js +5 -1
- package/dist/cjs/extensions/react-flow/minimap/MiniMap.js.map +1 -1
- package/dist/cjs/extensions/react-flow/nodes/NodeContent.js +2 -2
- package/dist/cjs/extensions/react-flow/nodes/NodeContent.js.map +1 -1
- package/dist/cjs/extensions/react-flow/nodes/NodeDefault.js +6 -2
- package/dist/cjs/extensions/react-flow/nodes/NodeDefault.js.map +1 -1
- package/dist/cjs/extensions/react-flow/nodes/NodeTools.js +5 -1
- package/dist/cjs/extensions/react-flow/nodes/NodeTools.js.map +1 -1
- package/dist/cjs/extensions/react-flow/nodes/nodeUtils.js.map +1 -1
- package/dist/cjs/extensions/react-flow/versionsupport.js.map +1 -1
- package/dist/cjs/index.js +5 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/legacy-replacements/Button/AffirmativeButton.js +1 -2
- package/dist/cjs/legacy-replacements/Button/AffirmativeButton.js.map +1 -1
- package/dist/cjs/legacy-replacements/Button/Button.js +2 -2
- package/dist/cjs/legacy-replacements/Button/Button.js.map +1 -1
- package/dist/cjs/legacy-replacements/Button/DismissiveButton.js +1 -2
- package/dist/cjs/legacy-replacements/Button/DismissiveButton.js.map +1 -1
- package/dist/cjs/legacy-replacements/Button/DisruptiveButton.js +1 -2
- package/dist/cjs/legacy-replacements/Button/DisruptiveButton.js.map +1 -1
- package/dist/cjs/legacy-replacements/Checkbox/Checkbox.js +1 -2
- package/dist/cjs/legacy-replacements/Checkbox/Checkbox.js.map +1 -1
- package/dist/cjs/legacy-replacements/Radio/RadioButton.js +1 -2
- package/dist/cjs/legacy-replacements/Radio/RadioButton.js.map +1 -1
- package/dist/cjs/legacy-replacements/Tabs/Tabs.js +1 -2
- package/dist/cjs/legacy-replacements/Tabs/Tabs.js.map +1 -1
- package/dist/cjs/legacy-replacements/TextField/TextField.js +1 -2
- package/dist/cjs/legacy-replacements/TextField/TextField.js.map +1 -1
- package/dist/esm/cmem/ActivityControl/ActivityExecutionErrorReportModal.js +1 -1
- package/dist/esm/cmem/ActivityControl/ActivityExecutionErrorReportModal.js.map +1 -1
- package/dist/esm/cmem/ActivityControl/SilkActivityControl.js +1 -1
- package/dist/esm/cmem/ActivityControl/SilkActivityControl.js.map +1 -1
- package/dist/esm/cmem/ConfidenceValue/ConfidenceValue.js.map +1 -1
- package/dist/esm/cmem/DateTimeDisplay/ElapsedDateTimeDisplay.js.map +1 -1
- package/dist/esm/cmem/markdown/Markdown.js.map +1 -1
- package/dist/esm/cmem/markdown/highlightSearchWords.js.map +1 -1
- package/dist/esm/cmem/react-flow/ReactFlow/ReactFlow.js.map +1 -1
- package/dist/esm/cmem/react-flow/StickyNoteModal/StickyNoteModal.js.map +1 -1
- package/dist/esm/cmem/react-flow/extensions/scrollOnDragHook.js.map +1 -1
- package/dist/esm/common/Intent/index.js.map +1 -1
- package/dist/esm/common/utils/CssCustomProperties.js +1 -1
- package/dist/esm/common/utils/CssCustomProperties.js.map +1 -1
- package/dist/esm/common/utils/characters.js.map +1 -1
- package/dist/esm/common/utils/colorDecideContrastvalue.js.map +1 -1
- package/dist/esm/common/utils/getColorConfiguration.js.map +1 -1
- package/dist/esm/common/utils/getScrollParent.js.map +1 -1
- package/dist/esm/common/utils/openInNewTab.js.map +1 -1
- package/dist/esm/components/Accordion/Accordion.js +1 -1
- package/dist/esm/components/Accordion/Accordion.js.map +1 -1
- package/dist/esm/components/Accordion/AccordionItem.js +2 -1
- package/dist/esm/components/Accordion/AccordionItem.js.map +1 -1
- package/dist/esm/components/Application/ApplicationContent.js +1 -1
- package/dist/esm/components/Application/ApplicationContent.js.map +1 -1
- package/dist/esm/components/Application/ApplicationHeader.js +2 -1
- package/dist/esm/components/Application/ApplicationHeader.js.map +1 -1
- package/dist/esm/components/Application/ApplicationSidebarNavigation.js +1 -1
- package/dist/esm/components/Application/ApplicationSidebarNavigation.js.map +1 -1
- package/dist/esm/components/Application/ApplicationSidebarToggler.js +1 -1
- package/dist/esm/components/Application/ApplicationSidebarToggler.js.map +1 -1
- package/dist/esm/components/Application/ApplicationTitle.js +1 -1
- package/dist/esm/components/Application/ApplicationTitle.js.map +1 -1
- package/dist/esm/components/Application/ApplicationToolbar.js +2 -1
- package/dist/esm/components/Application/ApplicationToolbar.js.map +1 -1
- package/dist/esm/components/Application/ApplicationToolbarAction.js +2 -1
- package/dist/esm/components/Application/ApplicationToolbarAction.js.map +1 -1
- package/dist/esm/components/Application/ApplicationToolbarPanel.js +2 -1
- package/dist/esm/components/Application/ApplicationToolbarPanel.js.map +1 -1
- package/dist/esm/components/Application/helper.js.map +1 -1
- package/dist/esm/components/AutoSuggestion/AutoSuggestion.js +1 -1
- package/dist/esm/components/AutoSuggestion/AutoSuggestion.js.map +1 -1
- package/dist/esm/components/AutoSuggestion/AutoSuggestionList.js +2 -2
- package/dist/esm/components/AutoSuggestion/AutoSuggestionList.js.map +1 -1
- package/dist/esm/components/AutoSuggestion/ExtendedCodeEditor.js.map +1 -1
- package/dist/esm/components/AutocompleteField/AutoCompleteField.js +2 -2
- package/dist/esm/components/AutocompleteField/AutoCompleteField.js.map +1 -1
- package/dist/esm/components/AutocompleteField/autoCompleteFieldUtils.js.map +1 -1
- package/dist/esm/components/Badge/Badge.js.map +1 -1
- package/dist/esm/components/Breadcrumb/BreadcrumbList.js.map +1 -1
- package/dist/esm/components/Button/Button.js.map +1 -1
- package/dist/esm/components/Card/CardHeader.js.map +1 -1
- package/dist/esm/components/Depiction/Depiction.js.map +1 -1
- package/dist/esm/components/Dialog/AlertDialog.js.map +1 -1
- package/dist/esm/components/Dialog/Modal.js +1 -1
- package/dist/esm/components/Dialog/Modal.js.map +1 -1
- package/dist/esm/components/Form/FieldItem.js.map +1 -1
- package/dist/esm/components/Form/FieldSet.js.map +1 -1
- package/dist/esm/components/Grid/Grid.js +1 -2
- package/dist/esm/components/Grid/Grid.js.map +1 -1
- package/dist/esm/components/Grid/GridColumn.js +1 -2
- package/dist/esm/components/Grid/GridColumn.js.map +1 -1
- package/dist/esm/components/Grid/GridRow.js +1 -1
- package/dist/esm/components/Grid/GridRow.js.map +1 -1
- package/dist/esm/components/Icon/BaseIcon.js +2 -3
- package/dist/esm/components/Icon/BaseIcon.js.map +1 -1
- package/dist/esm/components/Icon/Icon.js.map +1 -1
- package/dist/esm/components/Icon/canonicalIconNames.js +4 -3
- package/dist/esm/components/Icon/canonicalIconNames.js.map +1 -1
- package/dist/esm/components/Iframe/Iframe.js.map +1 -1
- package/dist/esm/components/InteractionGate/InteractionGate.js.map +1 -1
- package/dist/esm/components/Link/Link.js +1 -1
- package/dist/esm/components/Link/Link.js.map +1 -1
- package/dist/esm/components/List/List.js.map +1 -1
- package/dist/esm/components/MultiSelect/MultiSelect.js +8 -6
- package/dist/esm/components/MultiSelect/MultiSelect.js.map +1 -1
- package/dist/esm/components/Notification/Notification.js.map +1 -1
- package/dist/esm/components/OverviewItem/OverviewItem.js.map +1 -1
- package/dist/esm/components/OverviewItem/OverviewItemDepiction.js.map +1 -1
- package/dist/esm/components/Pagination/Pagination.js +1 -1
- package/dist/esm/components/Pagination/Pagination.js.map +1 -1
- package/dist/esm/components/PropertyValuePair/PropertyValuePair.js.map +1 -1
- package/dist/esm/components/Select/Select.js.map +1 -1
- package/dist/esm/components/Skeleton/Skeleton.js.map +1 -1
- package/dist/esm/components/Spinner/Spinner.js.map +1 -1
- package/dist/esm/components/Sticky/StickyTarget.js.map +1 -1
- package/dist/esm/components/Structure/TitleMainsection.js.map +1 -1
- package/dist/esm/components/Structure/TitlePage.js.map +1 -1
- package/dist/esm/components/Table/Table.js +2 -1
- package/dist/esm/components/Table/Table.js.map +1 -1
- package/dist/esm/components/Table/TableCell.js +2 -1
- package/dist/esm/components/Table/TableCell.js.map +1 -1
- package/dist/esm/components/Table/TableContainer.js +1 -1
- package/dist/esm/components/Table/TableContainer.js.map +1 -1
- package/dist/esm/components/Table/TableExpandHeader.js +3 -2
- package/dist/esm/components/Table/TableExpandHeader.js.map +1 -1
- package/dist/esm/components/Table/TableExpandRow.js +2 -1
- package/dist/esm/components/Table/TableExpandRow.js.map +1 -1
- package/dist/esm/components/Table/TableRow.js +1 -1
- package/dist/esm/components/Table/TableRow.js.map +1 -1
- package/dist/esm/components/Table/index.js +1 -1
- package/dist/esm/components/Table/index.js.map +1 -1
- package/dist/esm/components/Tabs/Tab.js.map +1 -1
- package/dist/esm/components/Tabs/Tabs.js.map +1 -1
- package/dist/esm/components/Tag/Tag.js.map +1 -1
- package/dist/esm/components/Tag/TagList.js.map +1 -1
- package/dist/esm/components/TextField/TextArea.js.map +1 -1
- package/dist/esm/components/TextField/TextField.js.map +1 -1
- package/dist/esm/components/TextField/useTextValidation.js.map +1 -1
- package/dist/esm/components/Tooltip/Tooltip.js.map +1 -1
- package/dist/esm/components/Typography/Highlighter.js.map +1 -1
- package/dist/esm/extensions/codemirror/CodeMirror.js.map +1 -1
- package/dist/esm/extensions/react-flow/edges/EdgeDefault.js.map +1 -1
- package/dist/esm/extensions/react-flow/edges/EdgeLabel.js.map +1 -1
- package/dist/esm/extensions/react-flow/edges/getSmoothStepPath.js.map +1 -1
- package/dist/esm/extensions/react-flow/edges/utils.js.map +1 -1
- package/dist/esm/extensions/react-flow/handles/HandleContent.js.map +1 -1
- package/dist/esm/extensions/react-flow/handles/HandleDefault.js.map +1 -1
- package/dist/esm/extensions/react-flow/minimap/MiniMap.js.map +1 -1
- package/dist/esm/extensions/react-flow/nodes/NodeContent.js.map +1 -1
- package/dist/esm/extensions/react-flow/nodes/NodeDefault.js +1 -1
- package/dist/esm/extensions/react-flow/nodes/NodeDefault.js.map +1 -1
- package/dist/esm/extensions/react-flow/nodes/NodeTools.js.map +1 -1
- package/dist/esm/extensions/react-flow/nodes/nodeUtils.js.map +1 -1
- package/dist/esm/extensions/react-flow/versionsupport.js.map +1 -1
- package/dist/esm/legacy-replacements/Button/Button.js.map +1 -1
- package/dist/esm/legacy-replacements/Checkbox/Checkbox.js.map +1 -1
- package/dist/esm/legacy-replacements/Radio/RadioButton.js.map +1 -1
- package/dist/esm/legacy-replacements/TextField/TextField.js.map +1 -1
- package/dist/types/cmem/ActivityControl/ActivityControlTypes.d.ts +3 -3
- package/dist/types/cmem/ActivityControl/ActivityControlWidget.d.ts +2 -2
- package/dist/types/cmem/ActivityControl/SilkActivityControl.d.ts +6 -6
- package/dist/types/cmem/DateTimeDisplay/ElapsedDateTimeDisplay.d.ts +2 -2
- package/dist/types/cmem/markdown/Markdown.d.ts +1 -1
- package/dist/types/cmem/react-flow/StickyNoteModal/StickyNoteModal.d.ts +2 -2
- package/dist/types/cmem/react-flow/configuration/graph.d.ts +0 -1
- package/dist/types/cmem/react-flow/configuration/linking.d.ts +0 -1
- package/dist/types/cmem/react-flow/configuration/unspecified.d.ts +1 -2
- package/dist/types/cmem/react-flow/configuration/workflow.d.ts +0 -1
- package/dist/types/cmem/react-flow/extensions/scrollOnDragHook.d.ts +1 -1
- package/dist/types/common/Intent/index.d.ts +1 -1
- package/dist/types/common/index.d.ts +4 -5
- package/dist/types/common/utils/CssCustomProperties.d.ts +1 -1
- package/dist/types/common/utils/characters.d.ts +1 -1
- package/dist/types/common/utils/colorDecideContrastvalue.d.ts +1 -1
- package/dist/types/common/utils/getColorConfiguration.d.ts +1 -1
- package/dist/types/common/utils/openInNewTab.d.ts +1 -1
- package/dist/types/components/Accordion/Accordion.d.ts +4 -3
- package/dist/types/components/Accordion/AccordionItem.d.ts +4 -3
- package/dist/types/components/Application/ApplicationHeader.d.ts +4 -2
- package/dist/types/components/Application/ApplicationSidebarNavigation.d.ts +2 -2
- package/dist/types/components/Application/ApplicationSidebarToggler.d.ts +2 -2
- package/dist/types/components/Application/ApplicationTitle.d.ts +5 -17
- package/dist/types/components/Application/ApplicationToolbar.d.ts +3 -2
- package/dist/types/components/Application/ApplicationToolbarAction.d.ts +4 -2
- package/dist/types/components/Application/ApplicationToolbarPanel.d.ts +3 -2
- package/dist/types/components/Application/ApplicationToolbarSection.d.ts +1 -1
- package/dist/types/components/AutoSuggestion/AutoSuggestion.d.ts +2 -2
- package/dist/types/components/AutoSuggestion/AutoSuggestionList.d.ts +1 -1
- package/dist/types/components/AutoSuggestion/ExtendedCodeEditor.d.ts +1 -1
- package/dist/types/components/AutocompleteField/AutoCompleteField.d.ts +5 -5
- package/dist/types/components/AutocompleteField/autoCompleteFieldUtils.d.ts +1 -1
- package/dist/types/components/AutocompleteField/index.d.ts +1 -2
- package/dist/types/components/Breadcrumb/BreadcrumbItem.d.ts +1 -1
- package/dist/types/components/Button/Button.d.ts +2 -2
- package/dist/types/components/Card/CardActionsAux.d.ts +1 -1
- package/dist/types/components/Card/CardOptions.d.ts +1 -1
- package/dist/types/components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/types/components/CodeAutocompleteField/CodeAutocompleteField.d.ts +1 -1
- package/dist/types/components/Dialog/AlertDialog.d.ts +1 -1
- package/dist/types/components/Grid/Grid.d.ts +2 -2
- package/dist/types/components/Grid/GridColumn.d.ts +3 -3
- package/dist/types/components/Grid/GridRow.d.ts +2 -2
- package/dist/types/components/Icon/BaseIcon.d.ts +7 -3
- package/dist/types/components/Icon/IconButton.d.ts +1 -1
- package/dist/types/components/Icon/canonicalIconNames.d.ts +163 -6
- package/dist/types/components/Link/Link.d.ts +3 -3
- package/dist/types/components/Menu/Menu.d.ts +1 -1
- package/dist/types/components/Menu/MenuDivider.d.ts +1 -1
- package/dist/types/components/MultiSelect/MultiSelect.d.ts +8 -3
- package/dist/types/components/MultiSuggestField/MultiSuggestField.d.ts +1 -1
- package/dist/types/components/Notification/Toast.d.ts +1 -1
- package/dist/types/components/NumericInput/NumericInput.d.ts +0 -1
- package/dist/types/components/OverviewItem/OverviewItemDescription.d.ts +1 -1
- package/dist/types/components/Pagination/Pagination.d.ts +1 -1
- package/dist/types/components/ProgressBar/ProgressBar.d.ts +1 -1
- package/dist/types/components/PropertyValuePair/PropertyValueList.d.ts +1 -1
- package/dist/types/components/RadioButton/RadioButton.d.ts +1 -1
- package/dist/types/components/Spinner/Spinner.d.ts +4 -4
- package/dist/types/components/Structure/Section.d.ts +1 -1
- package/dist/types/components/Structure/SectionHeader.d.ts +1 -1
- package/dist/types/components/Structure/TitleMainsection.d.ts +1 -1
- package/dist/types/components/Structure/TitlePage.d.ts +1 -1
- package/dist/types/components/Structure/TitleSubsection.d.ts +9 -9
- package/dist/types/components/SuggestField/SuggestField.d.ts +1 -1
- package/dist/types/components/SuggestField/index.d.ts +1 -2
- package/dist/types/components/Table/Table.d.ts +4 -3
- package/dist/types/components/Table/TableCell.d.ts +2 -1
- package/dist/types/components/Table/TableContainer.d.ts +4 -3
- package/dist/types/components/Table/TableExpandHeader.d.ts +2 -2
- package/dist/types/components/Table/TableExpandRow.d.ts +3 -2
- package/dist/types/components/Table/TableRow.d.ts +1 -1
- package/dist/types/components/Table/index.d.ts +1 -1
- package/dist/types/components/Tabs/Tab.d.ts +32 -38
- package/dist/types/components/Typography/WhiteSpaceContainer.d.ts +1 -1
- package/dist/types/components/Workspace/WorkspaceContent.d.ts +1 -1
- package/dist/types/components/Workspace/WorkspaceHeader.d.ts +1 -1
- package/dist/types/components/Workspace/WorkspaceMain.d.ts +1 -1
- package/dist/types/components/Workspace/WorkspaceSide.d.ts +1 -1
- package/dist/types/extensions/codemirror/CodeMirror.d.ts +2 -2
- package/dist/types/extensions/react-flow/edges/edgeTypes.d.ts +0 -1
- package/dist/types/extensions/react-flow/handles/HandleDefault.d.ts +2 -2
- package/dist/types/extensions/react-flow/index.d.ts +0 -1
- package/dist/types/extensions/react-flow/nodes/NodeContent.d.ts +7 -7
- package/dist/types/extensions/react-flow/nodes/NodeDefault.d.ts +1 -1
- package/dist/types/extensions/react-flow/nodes/nodeTypes.d.ts +10 -11
- package/dist/types/extensions/react-flow/nodes/nodeUtils.d.ts +1 -1
- package/dist/types/extensions/react-flow/nodes/sharedTypes.d.ts +2 -2
- package/package.json +40 -51
- package/src/cmem/ActivityControl/ActivityControlWidget.stories.tsx +4 -22
- package/src/cmem/ConfidenceValue/ConfidenceValue.stories.tsx +3 -3
- package/src/cmem/markdown/Markdown.stories.tsx +3 -3
- package/src/components/Accordion/Accordion.tsx +4 -3
- package/src/components/Accordion/AccordionItem.tsx +6 -5
- package/src/components/Accordion/accordion.scss +12 -1
- package/src/components/Application/ApplicationContent.tsx +1 -1
- package/src/components/Application/ApplicationHeader.tsx +5 -2
- package/src/components/Application/ApplicationSidebarNavigation.tsx +2 -2
- package/src/components/Application/ApplicationSidebarToggler.tsx +1 -1
- package/src/components/Application/ApplicationTitle.tsx +3 -18
- package/src/components/Application/ApplicationToolbar.tsx +4 -4
- package/src/components/Application/ApplicationToolbarAction.tsx +7 -5
- package/src/components/Application/ApplicationToolbarPanel.tsx +5 -2
- package/src/components/Application/_config.scss +1 -1
- package/src/components/Application/_content.scss +1 -1
- package/src/components/Application/_header.scss +28 -11
- package/src/components/Application/_sidebar.scss +1 -1
- package/src/components/Application/_toolbar.scss +1 -1
- package/src/components/Application/application.scss +3 -3
- package/src/components/Application/stories/Application.stories.tsx +139 -0
- package/src/components/AutoSuggestion/AutoSuggestionList.tsx +2 -2
- package/src/components/Badge/Badge.stories.tsx +3 -3
- package/src/components/Breadcrumb/stories/BreadcrumbItem.stories.tsx +3 -3
- package/src/components/Card/stories/Card.stories.tsx +4 -4
- package/src/components/Card/stories/CardActions.stories.tsx +3 -3
- package/src/components/Card/stories/CardContent.stories.tsx +3 -3
- package/src/components/Card/stories/CardHeader.stories.tsx +3 -3
- package/src/components/Card/stories/CardOptions.stories.tsx +3 -3
- package/src/components/Card/stories/CardTitle.stories.tsx +3 -3
- package/src/components/Checkbox/Stories/Checkbox.stories.tsx +3 -3
- package/src/components/CodeAutocompleteField/CodeAutocompleteField.stories.tsx +4 -0
- package/src/components/Form/Stories/FieldItem.stories.tsx +3 -3
- package/src/components/Form/Stories/FieldItemRow.stories.tsx +3 -3
- package/src/components/Grid/Grid.tsx +4 -3
- package/src/components/Grid/GridColumn.tsx +4 -4
- package/src/components/Grid/GridRow.tsx +3 -2
- package/src/components/Grid/grid.scss +1 -1
- package/src/components/Grid/stories/Grid.stories.tsx +3 -3
- package/src/components/Grid/stories/GridColumn.stories.tsx +4 -4
- package/src/components/Grid/stories/GridRow.stories.tsx +4 -4
- package/src/components/HoverToggler/HoverToggler.stories.tsx +3 -3
- package/src/components/Icon/BaseIcon.tsx +10 -3
- package/src/components/Icon/canonicalIconNames.tsx +6 -163
- package/src/components/Icon/stories/Icon.stories.tsx +3 -0
- package/src/components/InteractionGate/InteractionGate.stories.tsx +3 -3
- package/src/components/Label/Label.stories.tsx +3 -3
- package/src/components/Link/Link.tsx +3 -3
- package/src/components/Link/link.scss +1 -1
- package/src/components/MultiSelect/MultiSelect.tsx +13 -3
- package/src/components/MultiSuggestField/MultiSuggestField.stories.tsx +16 -0
- package/src/components/MultiSuggestField/tests/MultiSuggestField.test.tsx +63 -1
- package/src/components/Notification/Notification.stories.tsx +3 -3
- package/src/components/Pagination/Pagination.tsx +2 -1
- package/src/components/Pagination/Stories/Pagination.stories.tsx +4 -4
- package/src/components/Pagination/pagination.scss +70 -1
- package/src/components/ProgressBar/Stories/ProgressBar.stories.tsx +3 -3
- package/src/components/RadioButton/Stories/RadioButton.stories.tsx +3 -3
- package/src/components/Separation/Stories/Divider.stories.tsx +3 -3
- package/src/components/Separation/Stories/Spacing.stories.tsx +3 -3
- package/src/components/Spinner/Stories/spinner.stories.tsx +3 -3
- package/src/components/Switch/Stories/Switch.stories.tsx +3 -3
- package/src/components/Table/Table.tsx +4 -5
- package/src/components/Table/TableCell.tsx +4 -1
- package/src/components/Table/TableContainer.tsx +11 -3
- package/src/components/Table/TableExpandHeader.tsx +7 -5
- package/src/components/Table/TableExpandRow.tsx +6 -3
- package/src/components/Table/TableRow.tsx +2 -1
- package/src/components/Table/index.tsx +1 -1
- package/src/components/Table/table.scss +5 -5
- package/src/components/Tabs/stories/Tab.stories.tsx +3 -3
- package/src/components/Tabs/stories/TabPanel.stories.tsx +3 -3
- package/src/components/Tabs/stories/TabTitle.stories.tsx +3 -3
- package/src/components/Tabs/stories/Tabs.stories.tsx +3 -3
- package/src/components/Tag/stories/Tag.stories.tsx +3 -3
- package/src/components/Tag/stories/TagList.stories.tsx +3 -3
- package/src/components/TextField/stories/SearchField.stories.tsx +4 -4
- package/src/components/TextField/stories/TextField.stories.tsx +3 -3
- package/src/components/Toolbar/Toolbar.stories.tsx +3 -3
- package/src/components/Tree/Tree.stories.tsx +3 -3
- package/src/components/Typography/stories/WhiteSpaceContainer.stories.tsx +3 -3
- package/src/extensions/codemirror/CodeMirror.stories.tsx +3 -3
- package/src/extensions/react-flow/edges/stories/EdgeLabel.stories.tsx +3 -3
- package/src/extensions/react-flow/nodes/stories/NodeContentExtension.stories.tsx +3 -3
- package/src/includes/carbon-components/_components.scss +4 -4
- package/src/includes/carbon-components/_requisits.scss +12 -8
- package/src/includes/carbon-components/_variables.scss +1 -1
- package/src/legacy-replacements/Tabs/Tabs.stories.tsx +3 -11
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
AccordionItem as CarbonAccordionItem,
|
|
4
|
-
AccordionItemProps as CarbonAccordionItemProps,
|
|
5
|
-
} from "carbon-components-react";
|
|
2
|
+
import { AccordionItem as CarbonAccordionItem } from "@carbon/react";
|
|
6
3
|
|
|
4
|
+
// import { AccordionItemProps as CarbonAccordionItemProps } from "@carbon/react/es/components/Accordion/AccordionItem"; // TODO: check later again, currently interface is not exported
|
|
7
5
|
import { CLASSPREFIX as eccgui } from "../../configuration/constants";
|
|
8
6
|
|
|
9
7
|
type sizeOptions = "none" | "small" | "medium" | "large";
|
|
10
8
|
|
|
9
|
+
// workaround to get type/interface
|
|
10
|
+
type CarbonAccordionItemProps = React.ComponentProps<typeof CarbonAccordionItem>;
|
|
11
11
|
export interface AccordionItemProps
|
|
12
|
-
extends Omit<CarbonAccordionItemProps, "title" | "iconDescription" | "renderExpando"
|
|
12
|
+
extends Omit<CarbonAccordionItemProps, "title" | "iconDescription" | "renderExpando">,
|
|
13
|
+
Omit<React.LiHTMLAttributes<HTMLLIElement>, "title"> {
|
|
13
14
|
/**
|
|
14
15
|
* additional user class name
|
|
15
16
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// lib import
|
|
2
2
|
@use "sass:color";
|
|
3
|
-
@use "~@carbon/
|
|
3
|
+
@use "~@carbon/react/scss/components/accordion/accordion";
|
|
4
4
|
@include accordion.accordion;
|
|
5
5
|
|
|
6
6
|
// own vars
|
|
@@ -77,11 +77,21 @@ $eccgui-size-accordion-separation: $eccgui-size-block-whitespace * 0.5 !default;
|
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
+
.#{$prefix}--accordion__wrapper {
|
|
81
|
+
.#{$prefix}--accordion__item--active > & {
|
|
82
|
+
padding-block: 0;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
80
86
|
.#{$prefix}--accordion__heading {
|
|
81
87
|
align-items: center;
|
|
82
88
|
min-height: var(--#{$eccgui}-accordion-header-height, mini-units(5));
|
|
83
89
|
color: inherit;
|
|
84
90
|
|
|
91
|
+
.#{$prefix}--accordion--end & {
|
|
92
|
+
padding-right: 0;
|
|
93
|
+
}
|
|
94
|
+
|
|
85
95
|
.#{$prefix}--accordion__arrow {
|
|
86
96
|
margin: 0 $eccgui-size-block-whitespace * 0.5 0 0;
|
|
87
97
|
|
|
@@ -110,6 +120,7 @@ $eccgui-size-accordion-separation: $eccgui-size-block-whitespace * 0.5 !default;
|
|
|
110
120
|
|
|
111
121
|
.#{$prefix}--accordion__title {
|
|
112
122
|
min-width: 0; // flex layout fix
|
|
123
|
+
padding-left: 0;
|
|
113
124
|
margin: 0 0 0 $eccgui-size-block-whitespace;
|
|
114
125
|
font-size: inherit;
|
|
115
126
|
line-height: inherit;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { Header as CarbonHeader
|
|
2
|
+
import { Header as CarbonHeader } from "@carbon/react";
|
|
3
3
|
|
|
4
|
+
// import { HeaderProps as CarbonHeaderProps } from "@carbon/react/es/components/UIShell/Header"; // TODO: check later again, currently interface is not exported
|
|
4
5
|
import { CLASSPREFIX as eccgui } from "../../configuration/constants";
|
|
5
6
|
|
|
6
|
-
|
|
7
|
+
// workaround to get type/interface
|
|
8
|
+
type CarbonHeaderProps = React.ComponentProps<typeof CarbonHeader>;
|
|
9
|
+
export interface ApplicationHeaderProps extends CarbonHeaderProps, React.HTMLAttributes<HTMLElement> {}
|
|
7
10
|
|
|
8
11
|
export const ApplicationHeader = ({
|
|
9
12
|
children = "",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { SideNav as CarbonSideNav, SideNavProps as CarbonSideNavProps } from "carbon
|
|
2
|
+
import { SideNav as CarbonSideNav, SideNavProps as CarbonSideNavProps } from "@carbon/react";
|
|
3
3
|
|
|
4
4
|
import { CLASSPREFIX as eccgui } from "../../configuration/constants";
|
|
5
5
|
|
|
6
6
|
export interface ApplicationSidebarNavigationProps
|
|
7
|
-
extends Omit<CarbonSideNavProps, "defaultExpanded" | "isPersistent" | "isFixedNav" | "isChildOfHeader">,
|
|
7
|
+
extends Omit<CarbonSideNavProps, "ref" | "defaultExpanded" | "isPersistent" | "isFixedNav" | "isChildOfHeader">,
|
|
8
8
|
React.HTMLAttributes<HTMLElement> {}
|
|
9
9
|
|
|
10
10
|
export const ApplicationSidebarNavigation = ({
|
|
@@ -2,7 +2,7 @@ import React from "react";
|
|
|
2
2
|
import {
|
|
3
3
|
HeaderMenuButton as CarbonHeaderMenuButton,
|
|
4
4
|
HeaderMenuButtonProps as CarbonHeaderMenuButtonProps,
|
|
5
|
-
} from "carbon
|
|
5
|
+
} from "@carbon/react";
|
|
6
6
|
|
|
7
7
|
import { CLASSPREFIX as eccgui } from "../../configuration/constants";
|
|
8
8
|
|
|
@@ -1,27 +1,12 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { HeaderName as CarbonHeaderName, HeaderNameProps as CarbonHeaderNameProps } from "carbon
|
|
2
|
+
import { HeaderName as CarbonHeaderName, HeaderNameProps as CarbonHeaderNameProps } from "@carbon/react";
|
|
3
3
|
|
|
4
4
|
import { CLASSPREFIX as eccgui } from "../../configuration/constants";
|
|
5
5
|
|
|
6
6
|
type SvgDepiction = HTMLElement & SVGElement;
|
|
7
7
|
type ImgDepiction = HTMLElement & HTMLImageElement;
|
|
8
8
|
|
|
9
|
-
export
|
|
10
|
-
// from CarbonHeaderNameProps
|
|
11
|
-
/**
|
|
12
|
-
addional class name
|
|
13
|
-
*/
|
|
14
|
-
className?: string;
|
|
15
|
-
/**
|
|
16
|
-
prefix the application name by extra string, e.g. company name
|
|
17
|
-
*/
|
|
18
|
-
prefix?: string;
|
|
19
|
-
/**
|
|
20
|
-
home link
|
|
21
|
-
*/
|
|
22
|
-
href?: string;
|
|
23
|
-
|
|
24
|
-
// our extensions
|
|
9
|
+
export type ApplicationTitleProps = CarbonHeaderNameProps<"a"> & {
|
|
25
10
|
/**
|
|
26
11
|
application logo, <img>, <svg> or react element
|
|
27
12
|
*/
|
|
@@ -42,7 +27,7 @@ export interface ApplicationTitleProps extends CarbonHeaderNameProps {
|
|
|
42
27
|
native attributes for the anchor HTML element (<a>)
|
|
43
28
|
*/
|
|
44
29
|
htmlAProps?: React.AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
45
|
-
}
|
|
30
|
+
};
|
|
46
31
|
|
|
47
32
|
export const ApplicationTitle = ({
|
|
48
33
|
children,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
HeaderGlobalBar as CarbonHeaderGlobalBar,
|
|
4
|
-
HeaderGlobalBarProps as CarbonHeaderGlobalBarProps,
|
|
5
|
-
} from "carbon-components-react";
|
|
2
|
+
import { HeaderGlobalBar as CarbonHeaderGlobalBar } from "@carbon/react";
|
|
6
3
|
|
|
4
|
+
// import { HeaderGlobalBarProps as CarbonHeaderGlobalBarProps } from "@carbon/react/es/components/UIShell/HeaderGlobalBar"; // TODO: check later again, currently interface is not exported
|
|
7
5
|
import { CLASSPREFIX as eccgui } from "../../configuration/constants";
|
|
8
6
|
|
|
7
|
+
// workaround to get type/inteface
|
|
8
|
+
type CarbonHeaderGlobalBarProps = React.ComponentProps<typeof CarbonHeaderGlobalBar>;
|
|
9
9
|
export type ApplicationToolbarProps = CarbonHeaderGlobalBarProps;
|
|
10
10
|
|
|
11
11
|
export const ApplicationToolbar = ({
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
HeaderGlobalAction as CarbonHeaderGlobalAction,
|
|
4
|
-
HeaderGlobalActionProps as CarbonHeaderGlobalActionProps,
|
|
5
|
-
} from "carbon-components-react";
|
|
2
|
+
import { HeaderGlobalAction as CarbonHeaderGlobalAction } from "@carbon/react";
|
|
6
3
|
|
|
4
|
+
// import { HeaderGlobalActionProps as CarbonHeaderGlobalActionProps } from "@carbon/react/es/components/UIShell/HeaderGlobalAction"; // TODO: check later again, currently interface is not exported
|
|
7
5
|
import { CLASSPREFIX as eccgui } from "../../configuration/constants";
|
|
8
6
|
|
|
9
|
-
|
|
7
|
+
// workaround to get type/interface
|
|
8
|
+
type CarbonHeaderGlobalActionProps = React.ComponentProps<typeof CarbonHeaderGlobalAction>;
|
|
9
|
+
export interface ApplicationToolbarActionProps
|
|
10
|
+
extends CarbonHeaderGlobalActionProps,
|
|
11
|
+
Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "children" | "onClick"> {}
|
|
10
12
|
|
|
11
13
|
export const ApplicationToolbarAction = ({
|
|
12
14
|
children,
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { HeaderPanel as CarbonHeaderPanel
|
|
2
|
+
import { HeaderPanel as CarbonHeaderPanel } from "@carbon/react";
|
|
3
3
|
|
|
4
|
+
// import { HeaderPanelProps as CarbonHeaderPanelProps } from "@carbon/react/es/components/UIShell/HeaderPanel"; // TODO: check later again, currently interface is not exported
|
|
4
5
|
import { CLASSPREFIX as eccgui } from "../../configuration/constants";
|
|
5
6
|
|
|
6
|
-
|
|
7
|
+
// workaround to get type/inteface
|
|
8
|
+
type CarbonHeaderPanelProps = React.ComponentProps<typeof CarbonHeaderPanel>;
|
|
9
|
+
export interface ApplicationToolbarPanelProps extends CarbonHeaderPanelProps, React.HTMLAttributes<HTMLDivElement> {
|
|
7
10
|
/**
|
|
8
11
|
* Event handler getting called when the pointer device leaves the area of the panel menu.
|
|
9
12
|
* Could be used to close it automatically.
|
|
@@ -53,17 +53,25 @@ $shell-header-icon-03: $eccgui-color-applicationheader-text !default;
|
|
|
53
53
|
$shell-header-link: $blue-60 !default;
|
|
54
54
|
|
|
55
55
|
// load library sub component
|
|
56
|
-
@import "~@carbon/
|
|
56
|
+
@import "~@carbon/react/scss/components/ui-shell/header/index";
|
|
57
57
|
|
|
58
|
-
//
|
|
58
|
+
// tweak original layout
|
|
59
59
|
|
|
60
60
|
.#{$prefix}--header {
|
|
61
61
|
height: mini-units(8);
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
.#{$prefix}--header__action
|
|
64
|
+
.#{$prefix}--header__action,
|
|
65
|
+
.#{$prefix}--header__action.#{$prefix}--btn--icon-only {
|
|
65
66
|
width: mini-units(8);
|
|
66
67
|
height: mini-units(8);
|
|
68
|
+
padding-block-start: 0;
|
|
69
|
+
background-color: transparent;
|
|
70
|
+
|
|
71
|
+
// $shell-header-icon-02
|
|
72
|
+
& > svg {
|
|
73
|
+
fill: $eccgui-color-applicationheader-text;
|
|
74
|
+
}
|
|
67
75
|
}
|
|
68
76
|
|
|
69
77
|
.#{$prefix}--header__menu-trigger {
|
|
@@ -141,6 +149,7 @@ a.#{$prefix}--header__menu-item:hover {
|
|
|
141
149
|
|
|
142
150
|
// $shell-header-bg-03
|
|
143
151
|
.#{$prefix}--header__action:active,
|
|
152
|
+
.#{$prefix}--header__action.#{$prefix}--btn--icon-only:active,
|
|
144
153
|
.#{$prefix}--header__menu-title[aria-expanded="true"] + .#{$prefix}--header__menu .#{$prefix}--header__menu-item:active,
|
|
145
154
|
a.#{$prefix}--header__menu-item:active {
|
|
146
155
|
background-color: $shell-header-bg-03;
|
|
@@ -148,12 +157,14 @@ a.#{$prefix}--header__menu-item:active {
|
|
|
148
157
|
|
|
149
158
|
// $shell-header-bg-04
|
|
150
159
|
.#{$prefix}--header__action:hover,
|
|
160
|
+
.#{$prefix}--header__action.#{$prefix}--btn--icon-only:hover,
|
|
151
161
|
.#{$prefix}--header__menu-title[aria-expanded="true"] + .#{$prefix}--header__menu .#{$prefix}--header__menu-item:hover {
|
|
152
162
|
background-color: $shell-header-bg-04;
|
|
153
163
|
}
|
|
154
164
|
|
|
155
165
|
// $shell-header-bg-05
|
|
156
|
-
.#{$prefix}--header__action--active
|
|
166
|
+
.#{$prefix}--header__action--active,
|
|
167
|
+
.#{$prefix}--header__action--active.#{$prefix}--btn--icon-only {
|
|
157
168
|
background-color: $shell-header-bg-05;
|
|
158
169
|
border-right-color: transparent;
|
|
159
170
|
border-bottom-color: $shell-header-bg-05;
|
|
@@ -168,7 +179,8 @@ a.#{$prefix}--header__menu-item:active {
|
|
|
168
179
|
|
|
169
180
|
// $shell-header-border-01
|
|
170
181
|
.#{$prefix}--header,
|
|
171
|
-
.#{$prefix}--header__action
|
|
182
|
+
.#{$prefix}--header__action,
|
|
183
|
+
.#{$prefix}--header__action.#{$prefix}--btn--icon-only {
|
|
172
184
|
border-bottom: none;
|
|
173
185
|
}
|
|
174
186
|
.#{$prefix}--header__nav {
|
|
@@ -179,9 +191,14 @@ a.#{$prefix}--header__menu-item:active {
|
|
|
179
191
|
|
|
180
192
|
// $shell-header-focus
|
|
181
193
|
.#{$prefix}--header__action:focus,
|
|
194
|
+
.#{$prefix}--header__action.#{$prefix}--btn--icon-only:focus,
|
|
195
|
+
.#{$prefix}--header__action.#{$prefix}--btn--primary:focus,
|
|
182
196
|
a.#{$prefix}--header__name:focus,
|
|
183
197
|
a.#{$prefix}--header__menu-item:focus {
|
|
184
|
-
border
|
|
198
|
+
border: none;
|
|
199
|
+
outline: 1px dotted color.adjust($eccgui-color-applicationheader-text, $lightness: 39%);
|
|
200
|
+
outline-offset: -1px;
|
|
201
|
+
box-shadow: none;
|
|
185
202
|
}
|
|
186
203
|
.#{$prefix}--header__menu-title[aria-expanded="true"] {
|
|
187
204
|
color: color.adjust($eccgui-color-applicationheader-text, $lightness: 39%);
|
|
@@ -192,6 +209,7 @@ a.#{$prefix}--header__name,
|
|
|
192
209
|
a.#{$prefix}--header__name:hover,
|
|
193
210
|
a.#{$prefix}--header__menu-item:hover,
|
|
194
211
|
.#{$prefix}--header__action:active,
|
|
212
|
+
.#{$prefix}--header__action.#{$prefix}--btn--icon-only:active,
|
|
195
213
|
a.#{$prefix}--header__menu-item:active,
|
|
196
214
|
a.#{$prefix}--header__menu-item:focus,
|
|
197
215
|
.#{$prefix}--header__menu .#{$prefix}--header__menu-item:hover,
|
|
@@ -210,6 +228,10 @@ a.#{$prefix}--header__menu-item {
|
|
|
210
228
|
.#{$prefix}--header__action:active,
|
|
211
229
|
.#{$prefix}--header__action:focus {
|
|
212
230
|
color: $eccgui-color-applicationheader-text;
|
|
231
|
+
|
|
232
|
+
&.#{$prefix}--btn--icon-only {
|
|
233
|
+
color: $eccgui-color-applicationheader-text;
|
|
234
|
+
}
|
|
213
235
|
}
|
|
214
236
|
.#{$prefix}--header__menu-trigger > svg,
|
|
215
237
|
a.#{$prefix}--header__menu-item:hover > svg,
|
|
@@ -218,11 +240,6 @@ a.#{$prefix}--header__menu-item:focus > svg {
|
|
|
218
240
|
fill: $eccgui-color-applicationheader-text;
|
|
219
241
|
}
|
|
220
242
|
|
|
221
|
-
// $shell-header-icon-02
|
|
222
|
-
.#{$prefix}--header__action > svg {
|
|
223
|
-
fill: $eccgui-color-applicationheader-text;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
243
|
// $shell-header-icon-03
|
|
227
244
|
.#{$prefix}--header__menu-arrow {
|
|
228
245
|
fill: $eccgui-color-applicationheader-text;
|
|
@@ -32,7 +32,7 @@ $shell-panel-text-02: $eccgui-color-applicationheader-text !default;
|
|
|
32
32
|
/// Header panel focus border
|
|
33
33
|
$shell-panel-focus: color.adjust($eccgui-color-applicationheader-text, $lightness: 39%) !default;
|
|
34
34
|
|
|
35
|
-
@import "~@carbon/
|
|
35
|
+
@import "~@carbon/react/scss/components/ui-shell/header-panel/index";
|
|
36
36
|
|
|
37
37
|
// tweack original layout
|
|
38
38
|
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
@import "header";
|
|
3
3
|
@import "toolbar";
|
|
4
4
|
|
|
5
|
-
// @import '~@carbon/
|
|
6
|
-
// @import '~@carbon/
|
|
5
|
+
// @import '~@carbon/react/scss/components/ui-shell/product-switcher';
|
|
6
|
+
// @import '~@carbon/react/scss/components/ui-shell/switcher';
|
|
7
7
|
@import "sidebar";
|
|
8
8
|
|
|
9
|
-
// @import '~@carbon/
|
|
9
|
+
// @import '~@carbon/react/scss/components/ui-shell/navigation-menu';
|
|
10
10
|
@import "content";
|
|
11
11
|
@import "dropzone";
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import React, { CSSProperties } from "react";
|
|
2
|
+
import { LoremIpsum } from "react-lorem-ipsum";
|
|
3
|
+
import { Meta, StoryFn } from "@storybook/react";
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
ApplicationContainer,
|
|
7
|
+
ApplicationContent,
|
|
8
|
+
ApplicationHeader,
|
|
9
|
+
ApplicationSidebarNavigation,
|
|
10
|
+
ApplicationSidebarToggler,
|
|
11
|
+
ApplicationTitle,
|
|
12
|
+
ApplicationToolbar,
|
|
13
|
+
ApplicationToolbarAction,
|
|
14
|
+
ApplicationToolbarPanel,
|
|
15
|
+
ApplicationToolbarSection,
|
|
16
|
+
Badge,
|
|
17
|
+
Button,
|
|
18
|
+
Depiction,
|
|
19
|
+
Icon,
|
|
20
|
+
WorkspaceHeader,
|
|
21
|
+
} from "../../../index";
|
|
22
|
+
|
|
23
|
+
interface ApplicationBasicExampleProps {
|
|
24
|
+
openMainNavigation: boolean;
|
|
25
|
+
openUserMenu: boolean;
|
|
26
|
+
countNotifications: number;
|
|
27
|
+
colorBackgroundHeader?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
function ApplicationBasicExample(args: ApplicationBasicExampleProps) {
|
|
31
|
+
return <></>;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export default {
|
|
35
|
+
title: "Components/Application",
|
|
36
|
+
component: ApplicationBasicExample,
|
|
37
|
+
subcomponents: {
|
|
38
|
+
ApplicationContainer,
|
|
39
|
+
ApplicationContent,
|
|
40
|
+
ApplicationHeader,
|
|
41
|
+
ApplicationTitle,
|
|
42
|
+
ApplicationSidebarToggler,
|
|
43
|
+
ApplicationSidebarNavigation,
|
|
44
|
+
ApplicationToolbar,
|
|
45
|
+
ApplicationToolbarSection,
|
|
46
|
+
ApplicationToolbarAction,
|
|
47
|
+
},
|
|
48
|
+
argTypes: {
|
|
49
|
+
colorBackgroundHeader: {
|
|
50
|
+
control: { type: "color" },
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
} as Meta<typeof ApplicationBasicExample>;
|
|
54
|
+
|
|
55
|
+
const TemplateBasicExample: StoryFn<typeof ApplicationBasicExample> = (args) => (
|
|
56
|
+
<ApplicationContainer>
|
|
57
|
+
<ApplicationHeader
|
|
58
|
+
aria-label={"Application"}
|
|
59
|
+
style={
|
|
60
|
+
args.colorBackgroundHeader
|
|
61
|
+
? ({ "--eccgui-appheader-color-background": args.colorBackgroundHeader } as CSSProperties)
|
|
62
|
+
: undefined
|
|
63
|
+
}
|
|
64
|
+
>
|
|
65
|
+
<ApplicationTitle
|
|
66
|
+
isNotDisplayed={!args.openMainNavigation}
|
|
67
|
+
isApplicationSidebarExpanded={args.openMainNavigation}
|
|
68
|
+
>
|
|
69
|
+
ApplicationName
|
|
70
|
+
</ApplicationTitle>
|
|
71
|
+
<ApplicationSidebarToggler
|
|
72
|
+
aria-label={args.openMainNavigation ? "Close navigation" : "Open navigation"}
|
|
73
|
+
isActive={args.openMainNavigation}
|
|
74
|
+
/>
|
|
75
|
+
<ApplicationSidebarNavigation isRail={!args.openMainNavigation} expanded={args.openMainNavigation}>
|
|
76
|
+
<code>Menu</code> with <code>MenuItem</code>s.
|
|
77
|
+
</ApplicationSidebarNavigation>
|
|
78
|
+
|
|
79
|
+
<WorkspaceHeader id={"ApplicationBasicExample"} />
|
|
80
|
+
|
|
81
|
+
<ApplicationToolbar>
|
|
82
|
+
<ApplicationToolbarSection>
|
|
83
|
+
<Button>Action</Button>
|
|
84
|
+
</ApplicationToolbarSection>
|
|
85
|
+
{args.countNotifications && (
|
|
86
|
+
<ApplicationToolbarAction aria-label="Open notifications menu" isActive={false}>
|
|
87
|
+
<Depiction
|
|
88
|
+
padding="medium"
|
|
89
|
+
size="small"
|
|
90
|
+
ratio="1:1"
|
|
91
|
+
resizing="contain"
|
|
92
|
+
image={<Icon name="application-notification" title="Notification menu icon" large />}
|
|
93
|
+
badge={
|
|
94
|
+
<Badge
|
|
95
|
+
position={"top-right"}
|
|
96
|
+
intent="warning"
|
|
97
|
+
maxLength={2}
|
|
98
|
+
children={args.countNotifications}
|
|
99
|
+
/>
|
|
100
|
+
}
|
|
101
|
+
/>
|
|
102
|
+
</ApplicationToolbarAction>
|
|
103
|
+
)}
|
|
104
|
+
{args.openUserMenu ? (
|
|
105
|
+
<>
|
|
106
|
+
<ApplicationToolbarAction aria-label={"Close user menu"} tooltipAlignment="end" isActive={true}>
|
|
107
|
+
<Icon name="navigation-close" title="Close icon" large />
|
|
108
|
+
</ApplicationToolbarAction>
|
|
109
|
+
<ApplicationToolbarPanel aria-label="User menu" expanded={true}>
|
|
110
|
+
<code>Menu</code> with <code>MenuItem</code>s.
|
|
111
|
+
</ApplicationToolbarPanel>
|
|
112
|
+
</>
|
|
113
|
+
) : (
|
|
114
|
+
<ApplicationToolbarAction
|
|
115
|
+
id={"headerUserMenu"}
|
|
116
|
+
aria-label={"Open user menu"}
|
|
117
|
+
tooltipAlignment="end"
|
|
118
|
+
isActive={false}
|
|
119
|
+
>
|
|
120
|
+
<Icon name="application-useraccount" title="User menu icon" large />
|
|
121
|
+
</ApplicationToolbarAction>
|
|
122
|
+
)}
|
|
123
|
+
</ApplicationToolbar>
|
|
124
|
+
</ApplicationHeader>
|
|
125
|
+
<ApplicationContent
|
|
126
|
+
isApplicationSidebarExpanded={args.openMainNavigation}
|
|
127
|
+
isApplicationSidebarRail={!args.openMainNavigation}
|
|
128
|
+
>
|
|
129
|
+
<LoremIpsum p={2} avgSentencesPerParagraph={4} random={false} />
|
|
130
|
+
</ApplicationContent>
|
|
131
|
+
</ApplicationContainer>
|
|
132
|
+
);
|
|
133
|
+
|
|
134
|
+
export const BasicExample = TemplateBasicExample.bind({});
|
|
135
|
+
BasicExample.args = {
|
|
136
|
+
openMainNavigation: false,
|
|
137
|
+
openUserMenu: false,
|
|
138
|
+
countNotifications: 234,
|
|
139
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import
|
|
2
|
+
import { compute } from "compute-scroll-into-view";
|
|
3
3
|
|
|
4
4
|
import { CLASSPREFIX as eccgui } from "../../configuration/constants";
|
|
5
5
|
|
|
@@ -96,7 +96,7 @@ export const AutoSuggestionList = ({
|
|
|
96
96
|
React.useEffect(() => {
|
|
97
97
|
const listIndexNode = refs[currentlyFocusedIndex];
|
|
98
98
|
if (dropdownRef?.current && listIndexNode?.current) {
|
|
99
|
-
const actions =
|
|
99
|
+
const actions = compute(listIndexNode.current, {
|
|
100
100
|
boundary: dropdownRef.current,
|
|
101
101
|
block: "nearest",
|
|
102
102
|
scrollMode: "if-needed",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { LogoReact } from "@carbon/icons-react";
|
|
3
|
-
import {
|
|
3
|
+
import { Meta, StoryFn } from "@storybook/react";
|
|
4
4
|
|
|
5
5
|
import { helpersArgTypes } from "../../../.storybook/helpers";
|
|
6
6
|
import { Badge, Icon, TestIcon } from "../../../index";
|
|
@@ -23,9 +23,9 @@ export default {
|
|
|
23
23
|
...helpersArgTypes.exampleIntent,
|
|
24
24
|
},
|
|
25
25
|
},
|
|
26
|
-
} as
|
|
26
|
+
} as Meta<typeof Badge>;
|
|
27
27
|
|
|
28
|
-
const TemplateFull:
|
|
28
|
+
const TemplateFull: StoryFn<typeof Badge> = (args) => (
|
|
29
29
|
<div style={{ position: "relative", border: "solid 1px", width: "10rem" }}>
|
|
30
30
|
Element area <Badge {...args} />
|
|
31
31
|
</div>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { Meta, StoryFn } from "@storybook/react";
|
|
3
3
|
|
|
4
4
|
import { BreadcrumbItem } from "./../../../index";
|
|
5
5
|
|
|
@@ -7,9 +7,9 @@ export default {
|
|
|
7
7
|
title: "Components/Breadcrumbs/Item",
|
|
8
8
|
component: BreadcrumbItem,
|
|
9
9
|
argTypes: {},
|
|
10
|
-
} as
|
|
10
|
+
} as Meta<typeof BreadcrumbItem>;
|
|
11
11
|
|
|
12
|
-
const Template:
|
|
12
|
+
const Template: StoryFn<typeof BreadcrumbItem> = (args) => <BreadcrumbItem {...args} />;
|
|
13
13
|
|
|
14
14
|
export const Default = Template.bind({});
|
|
15
15
|
Default.args = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { Meta, StoryFn } from "@storybook/react";
|
|
3
3
|
|
|
4
4
|
import { helpersArgTypes } from "../../../../.storybook/helpers";
|
|
5
5
|
import { Card, CardActions, CardContent, CardHeader, CardOptions, CardTitle, Divider } from "../../../../index";
|
|
@@ -30,9 +30,9 @@ export default {
|
|
|
30
30
|
description: "Elements to include into the card container.",
|
|
31
31
|
},
|
|
32
32
|
},
|
|
33
|
-
} as
|
|
33
|
+
} as Meta<typeof Card>;
|
|
34
34
|
|
|
35
|
-
const TemplateFull:
|
|
35
|
+
const TemplateFull: StoryFn<typeof Card> = (args) => (
|
|
36
36
|
<Card {...args}>
|
|
37
37
|
<CardHeader {...CardHeaderExample.args} />
|
|
38
38
|
<Divider />
|
|
@@ -43,7 +43,7 @@ const TemplateFull: ComponentStory<typeof Card> = (args) => (
|
|
|
43
43
|
);
|
|
44
44
|
export const FullExample = TemplateFull.bind({});
|
|
45
45
|
|
|
46
|
-
const TemplateSimple:
|
|
46
|
+
const TemplateSimple: StoryFn<typeof Card> = (args) => <Card {...args} />;
|
|
47
47
|
export const SimpleCard = TemplateSimple.bind({});
|
|
48
48
|
SimpleCard.args = {
|
|
49
49
|
children: [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { Meta, StoryFn } from "@storybook/react";
|
|
3
3
|
|
|
4
4
|
import Button from "../../Button/Button";
|
|
5
5
|
import { CardActions, CardActionsAux } from "../index";
|
|
@@ -19,9 +19,9 @@ export default {
|
|
|
19
19
|
description: "Elements to include into the actions container.",
|
|
20
20
|
},
|
|
21
21
|
},
|
|
22
|
-
} as
|
|
22
|
+
} as Meta<typeof CardActions>;
|
|
23
23
|
|
|
24
|
-
const Template:
|
|
24
|
+
const Template: StoryFn<typeof CardActions> = (args) => <CardActions {...args} />;
|
|
25
25
|
|
|
26
26
|
export const Default = Template.bind({});
|
|
27
27
|
Default.args = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { LoremIpsum } from "react-lorem-ipsum";
|
|
3
|
-
import {
|
|
3
|
+
import { Meta, StoryFn } from "@storybook/react";
|
|
4
4
|
|
|
5
5
|
import HtmlContentBlock from "../../../components/Typography/HtmlContentBlock";
|
|
6
6
|
import { CardContent } from "../index";
|
|
@@ -14,9 +14,9 @@ export default {
|
|
|
14
14
|
description: "Elements for card content.",
|
|
15
15
|
},
|
|
16
16
|
},
|
|
17
|
-
} as
|
|
17
|
+
} as Meta<typeof CardContent>;
|
|
18
18
|
|
|
19
|
-
const Template:
|
|
19
|
+
const Template: StoryFn<typeof CardContent> = (args) => <CardContent {...args} />;
|
|
20
20
|
|
|
21
21
|
export const Default = Template.bind({});
|
|
22
22
|
Default.args = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { Meta, StoryFn } from "@storybook/react";
|
|
3
3
|
|
|
4
4
|
import { CardHeader, CardOptions, CardTitle } from "../index";
|
|
5
5
|
|
|
@@ -19,9 +19,9 @@ export default {
|
|
|
19
19
|
description: "Elements to include into the header.",
|
|
20
20
|
},
|
|
21
21
|
},
|
|
22
|
-
} as
|
|
22
|
+
} as Meta<typeof CardHeader>;
|
|
23
23
|
|
|
24
|
-
const Template:
|
|
24
|
+
const Template: StoryFn<typeof CardHeader> = (args) => <CardHeader {...args} />;
|
|
25
25
|
|
|
26
26
|
export const Default = Template.bind({});
|
|
27
27
|
Default.args = {
|