@eccenca/gui-elements 23.0.0 → 23.1.0-rc.2
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 +35 -1
- package/README.md +7 -0
- package/dist/cjs/cmem/ActivityControl/ActivityControlWidget.js.map +1 -1
- package/dist/cjs/cmem/react-flow/ReactFlow/ReactFlow.js +7 -2
- package/dist/cjs/cmem/react-flow/ReactFlow/ReactFlow.js.map +1 -1
- package/dist/cjs/cmem/react-flow/StickyNoteModal/StickyNoteModal.js +3 -7
- package/dist/cjs/cmem/react-flow/StickyNoteModal/StickyNoteModal.js.map +1 -1
- package/dist/cjs/cmem/react-flow/extensions/scrollOnDragHook.js +200 -0
- package/dist/cjs/cmem/react-flow/extensions/scrollOnDragHook.js.map +1 -0
- package/dist/cjs/common/Intent/index.js +7 -3
- package/dist/cjs/common/Intent/index.js.map +1 -1
- package/dist/cjs/common/utils/characters.js +82 -0
- package/dist/cjs/common/utils/characters.js.map +1 -0
- package/dist/cjs/components/Application/ApplicationTitle.js +2 -2
- package/dist/cjs/components/Application/ApplicationTitle.js.map +1 -1
- package/dist/cjs/components/Badge/Badge.js +44 -0
- package/dist/cjs/components/Badge/Badge.js.map +1 -0
- package/dist/cjs/components/Depiction/Depiction.js +111 -0
- package/dist/cjs/components/Depiction/Depiction.js.map +1 -0
- package/dist/cjs/components/Grid/Grid.js +7 -2
- package/dist/cjs/components/Grid/Grid.js.map +1 -1
- package/dist/cjs/components/Grid/GridColumn.js +6 -2
- package/dist/cjs/components/Grid/GridColumn.js.map +1 -1
- package/dist/cjs/components/Grid/GridRow.js +3 -0
- package/dist/cjs/components/Grid/GridRow.js.map +1 -1
- package/dist/cjs/components/Icon/BaseIcon.js +38 -0
- package/dist/cjs/components/Icon/BaseIcon.js.map +1 -0
- package/dist/cjs/components/Icon/Icon.js +9 -24
- package/dist/cjs/components/Icon/Icon.js.map +1 -1
- package/dist/cjs/components/Icon/IconButton.js +8 -1
- package/dist/cjs/components/Icon/IconButton.js.map +1 -1
- package/dist/cjs/components/Icon/TestIcon.js +35 -0
- package/dist/cjs/components/Icon/TestIcon.js.map +1 -0
- package/dist/cjs/components/Icon/canonicalIconNames.js +123 -621
- package/dist/cjs/components/Icon/canonicalIconNames.js.map +1 -1
- package/dist/cjs/components/Icon/index.js +11 -0
- package/dist/cjs/components/Icon/index.js.map +1 -0
- package/dist/cjs/components/Menu/MenuItem.js +1 -1
- package/dist/cjs/components/Menu/MenuItem.js.map +1 -1
- package/dist/cjs/components/MultiSelect/MultiSelect.js +56 -23
- package/dist/cjs/components/MultiSelect/MultiSelect.js.map +1 -1
- package/dist/cjs/components/Notification/Notification.js +10 -2
- package/dist/cjs/components/Notification/Notification.js.map +1 -1
- package/dist/cjs/components/OverviewItem/OverviewItemDepiction.js +24 -0
- package/dist/cjs/components/OverviewItem/OverviewItemDepiction.js.map +1 -1
- package/dist/cjs/components/Tag/Tag.js +6 -2
- package/dist/cjs/components/Tag/Tag.js.map +1 -1
- package/dist/cjs/components/TextField/TextArea.js +4 -2
- package/dist/cjs/components/TextField/TextArea.js.map +1 -1
- package/dist/cjs/components/TextField/TextField.js +4 -2
- package/dist/cjs/components/TextField/TextField.js.map +1 -1
- package/dist/cjs/components/TextField/useTextValidation.js +84 -0
- package/dist/cjs/components/TextField/useTextValidation.js.map +1 -0
- package/dist/cjs/components/Tree/Tree.js.map +1 -1
- package/dist/cjs/components/Typography/Highlighter.js.map +1 -1
- package/dist/cjs/components/Typography/OverflowText.js.map +1 -1
- package/dist/cjs/components/Typography/WhiteSpaceContainer.js +35 -12
- package/dist/cjs/components/Typography/WhiteSpaceContainer.js.map +1 -1
- package/dist/cjs/components/Typography/index.js +21 -0
- package/dist/cjs/components/Typography/index.js.map +1 -0
- package/dist/cjs/components/Workspace/WorkspaceContent.js +1 -1
- package/dist/cjs/components/Workspace/WorkspaceContent.js.map +1 -1
- package/dist/cjs/components/index.js +18 -0
- package/dist/cjs/components/index.js.map +1 -0
- package/dist/cjs/index.js +7 -17
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/cmem/ActivityControl/ActivityControlWidget.js.map +1 -1
- package/dist/esm/cmem/react-flow/ReactFlow/ReactFlow.js +7 -2
- package/dist/esm/cmem/react-flow/ReactFlow/ReactFlow.js.map +1 -1
- package/dist/esm/cmem/react-flow/StickyNoteModal/StickyNoteModal.js +3 -6
- package/dist/esm/cmem/react-flow/StickyNoteModal/StickyNoteModal.js.map +1 -1
- package/dist/esm/cmem/react-flow/extensions/scrollOnDragHook.js +194 -0
- package/dist/esm/cmem/react-flow/extensions/scrollOnDragHook.js.map +1 -0
- package/dist/esm/common/Intent/index.js +5 -13
- package/dist/esm/common/Intent/index.js.map +1 -1
- package/dist/esm/common/utils/characters.js +96 -0
- package/dist/esm/common/utils/characters.js.map +1 -0
- package/dist/esm/components/Application/ApplicationTitle.js +2 -2
- package/dist/esm/components/Application/ApplicationTitle.js.map +1 -1
- package/dist/esm/components/Badge/Badge.js +48 -0
- package/dist/esm/components/Badge/Badge.js.map +1 -0
- package/dist/esm/components/Depiction/Depiction.js +96 -0
- package/dist/esm/components/Depiction/Depiction.js.map +1 -0
- package/dist/esm/components/Grid/Grid.js +7 -2
- package/dist/esm/components/Grid/Grid.js.map +1 -1
- package/dist/esm/components/Grid/GridColumn.js +6 -2
- package/dist/esm/components/Grid/GridColumn.js.map +1 -1
- package/dist/esm/components/Grid/GridRow.js +3 -0
- package/dist/esm/components/Grid/GridRow.js.map +1 -1
- package/dist/esm/components/Icon/BaseIcon.js +44 -0
- package/dist/esm/components/Icon/BaseIcon.js.map +1 -0
- package/dist/esm/components/Icon/Icon.js +9 -24
- package/dist/esm/components/Icon/Icon.js.map +1 -1
- package/dist/esm/components/Icon/IconButton.js +8 -1
- package/dist/esm/components/Icon/IconButton.js.map +1 -1
- package/dist/esm/components/Icon/TestIcon.js +41 -0
- package/dist/esm/components/Icon/TestIcon.js.map +1 -0
- package/dist/esm/components/Icon/canonicalIconNames.js +123 -621
- package/dist/esm/components/Icon/canonicalIconNames.js.map +1 -1
- package/dist/esm/components/Icon/index.js +4 -0
- package/dist/esm/components/Icon/index.js.map +1 -0
- package/dist/esm/components/Menu/MenuItem.js +1 -1
- package/dist/esm/components/Menu/MenuItem.js.map +1 -1
- package/dist/esm/components/MultiSelect/MultiSelect.js +61 -44
- package/dist/esm/components/MultiSelect/MultiSelect.js.map +1 -1
- package/dist/esm/components/Notification/Notification.js +12 -4
- package/dist/esm/components/Notification/Notification.js.map +1 -1
- package/dist/esm/components/OverviewItem/OverviewItemDepiction.js +24 -0
- package/dist/esm/components/OverviewItem/OverviewItemDepiction.js.map +1 -1
- package/dist/esm/components/Tag/Tag.js +6 -2
- package/dist/esm/components/Tag/Tag.js.map +1 -1
- package/dist/esm/components/TextField/TextArea.js +4 -2
- package/dist/esm/components/TextField/TextArea.js.map +1 -1
- package/dist/esm/components/TextField/TextField.js +4 -2
- package/dist/esm/components/TextField/TextField.js.map +1 -1
- package/dist/esm/components/TextField/useTextValidation.js +78 -0
- package/dist/esm/components/TextField/useTextValidation.js.map +1 -0
- package/dist/esm/components/Tree/Tree.js.map +1 -1
- package/dist/esm/components/Typography/Highlighter.js.map +1 -1
- package/dist/esm/components/Typography/OverflowText.js.map +1 -1
- package/dist/esm/components/Typography/WhiteSpaceContainer.js +16 -14
- package/dist/esm/components/Typography/WhiteSpaceContainer.js.map +1 -1
- package/dist/esm/components/Typography/index.js +12 -0
- package/dist/esm/components/Typography/index.js.map +1 -0
- package/dist/esm/components/Workspace/WorkspaceContent.js +1 -1
- package/dist/esm/components/Workspace/WorkspaceContent.js.map +1 -1
- package/dist/esm/components/index.js +6 -0
- package/dist/esm/components/index.js.map +1 -0
- package/dist/esm/index.js +5 -10
- package/dist/esm/index.js.map +1 -1
- package/dist/types/cmem/ActivityControl/ActivityControlWidget.d.ts +2 -1
- package/dist/types/cmem/react-flow/ReactFlow/ReactFlow.d.ts +14 -0
- package/dist/types/cmem/react-flow/extensions/scrollOnDragHook.d.ts +22 -0
- package/dist/types/common/Intent/index.d.ts +4 -3
- package/dist/types/common/utils/characters.d.ts +19 -0
- package/dist/types/components/Badge/Badge.d.ts +42 -0
- package/dist/types/components/Depiction/Depiction.d.ts +71 -0
- package/dist/types/components/Grid/Grid.d.ts +21 -2
- package/dist/types/components/Grid/GridColumn.d.ts +20 -2
- package/dist/types/components/Grid/GridRow.d.ts +17 -1
- package/dist/types/components/Icon/BaseIcon.d.ts +45 -0
- package/dist/types/components/Icon/Icon.d.ts +7 -34
- package/dist/types/components/Icon/IconButton.d.ts +3 -2
- package/dist/types/components/Icon/TestIcon.d.ts +20 -0
- package/dist/types/components/Icon/canonicalIconNames.d.ts +9 -7
- package/dist/types/components/Icon/index.d.ts +4 -0
- package/dist/types/components/Menu/MenuItem.d.ts +2 -1
- package/dist/types/components/MultiSelect/MultiSelect.d.ts +3 -1
- package/dist/types/components/Notification/Notification.d.ts +13 -4
- package/dist/types/components/Tabs/Tab.d.ts +2 -0
- package/dist/types/components/Tag/Tag.d.ts +16 -3
- package/dist/types/components/TextField/TextArea.d.ts +7 -2
- package/dist/types/components/TextField/TextField.d.ts +6 -1
- package/dist/types/components/TextField/useTextValidation.d.ts +28 -0
- package/dist/types/components/Tree/Tree.d.ts +2 -1
- package/dist/types/components/Typography/Highlighter.d.ts +2 -2
- package/dist/types/components/Typography/OverflowText.d.ts +2 -2
- package/dist/types/components/Typography/WhiteSpaceContainer.d.ts +45 -4
- package/dist/types/components/Typography/index.d.ts +12 -0
- package/dist/types/components/index.d.ts +5 -0
- package/dist/types/index.d.ts +6 -11
- package/package.json +13 -16
- package/scripts/compile-sass.ts +9 -1
- package/src/_shame.scss +1 -1
- package/src/cmem/ActivityControl/ActivityControlWidget.stories.tsx +6 -4
- package/src/cmem/ActivityControl/ActivityControlWidget.tsx +3 -2
- package/src/cmem/react-flow/ReactFlow/ReactFlow.tsx +26 -1
- package/src/cmem/react-flow/StickyNoteModal/StickyNoteModal.tsx +10 -6
- package/src/cmem/react-flow/extensions/scrollOnDragHook.ts +247 -0
- package/src/common/Intent/index.ts +16 -12
- package/src/common/utils/characters.ts +111 -0
- package/src/components/Accordion/accordion.scss +4 -3
- package/src/components/Application/ApplicationTitle.tsx +2 -2
- package/src/components/Application/_config.scss +1 -1
- package/src/components/Application/_content.scss +1 -1
- package/src/components/Application/_header.scss +2 -2
- package/src/components/Application/_sidebar.scss +2 -9
- package/src/components/Application/_toolbar.scss +1 -1
- package/src/components/Application/application.scss +4 -4
- package/src/components/AutocompleteField/autoCompleteFieldUtils.tsx +13 -8
- package/src/components/Badge/Badge.stories.tsx +47 -0
- package/src/components/Badge/Badge.tsx +93 -0
- package/src/components/Badge/badge.scss +44 -0
- package/src/components/Depiction/Depiction.tsx +198 -0
- package/src/components/Depiction/depiction.scss +176 -0
- package/src/components/Depiction/stories/Depiction.stories.tsx +69 -0
- package/src/components/Depiction/stories/test-16to9.png +0 -0
- package/src/components/Depiction/stories/test-16to9.svg +41 -0
- package/src/components/Depiction/stories/test-16to9.tobase64.svg +41 -0
- package/src/components/Depiction/stories/test-16to9.tsx +44 -0
- package/src/components/Depiction/stories/test-9to16.png +0 -0
- package/src/components/Depiction/stories/test-9to16.svg +44 -0
- package/src/components/Depiction/stories/test-9to16.tobase64.svg +44 -0
- package/src/components/Depiction/stories/test-9to16.tsx +48 -0
- package/src/components/Grid/Grid.tsx +22 -4
- package/src/components/Grid/GridColumn.tsx +23 -6
- package/src/components/Grid/GridRow.tsx +17 -2
- package/src/components/Grid/grid.scss +14 -13
- package/src/components/Grid/stories/Grid.stories.tsx +27 -0
- package/src/components/Grid/stories/GridColumn.stories.tsx +66 -0
- package/src/components/Grid/stories/GridRow.stories.tsx +47 -0
- package/src/components/Icon/BaseIcon.tsx +84 -0
- package/src/components/Icon/Icon.tsx +23 -82
- package/src/components/Icon/IconButton.tsx +18 -14
- package/src/components/Icon/TestIcon.tsx +39 -0
- package/src/components/Icon/canonicalIconNames.tsx +132 -633
- package/src/components/Icon/index.ts +5 -0
- package/src/components/Icon/stories/Icon.stories.tsx +13 -0
- package/src/components/Icon/stories/IconButton.stories.tsx +14 -7
- package/src/components/Icon/stories/TestIcon.stories.tsx +28 -0
- package/src/components/Link/link.scss +2 -1
- package/src/components/Menu/MenuItem.tsx +14 -4
- package/src/components/Menu/Stories/MenuItem.stories.tsx +16 -2
- package/src/components/MultiSelect/MultiSelect.tsx +58 -27
- package/src/components/Notification/Notification.stories.tsx +4 -0
- package/src/components/Notification/Notification.tsx +26 -6
- package/src/components/OverviewItem/OverviewItemDepiction.tsx +31 -0
- package/src/components/OverviewItem/overviewitem.scss +2 -1
- package/src/components/OverviewItem/stories/OverviewItem.stories.tsx +22 -1
- package/src/components/OverviewItem/stories/OverviewItemDepiction.stories.tsx +8 -3
- package/src/components/Pagination/pagination.scss +3 -2
- package/src/components/SimpleTable/simpletable.scss +11 -12
- package/src/components/Tag/Tag.stories.tsx +7 -2
- package/src/components/Tag/Tag.tsx +24 -4
- package/src/components/Tag/tag.scss +84 -3
- package/src/components/TagInput/taginput.scss +6 -0
- package/src/components/TextField/TextArea.tsx +10 -1
- package/src/components/TextField/TextField.tsx +9 -0
- package/src/components/TextField/stories/SearchField.stories.tsx +1 -1
- package/src/components/TextField/textfield.scss +12 -0
- package/src/components/TextField/useTextValidation.ts +103 -0
- package/src/components/Tooltip/tooltip.scss +1 -1
- package/src/components/Tree/Tree.stories.tsx +7 -1
- package/src/components/Tree/Tree.tsx +2 -1
- package/src/components/Typography/Highlighter.tsx +2 -2
- package/src/components/Typography/OverflowText.tsx +2 -2
- package/src/components/Typography/WhiteSpaceContainer.tsx +69 -21
- package/src/components/Typography/index.ts +25 -0
- package/src/components/Typography/stories/WhiteSpaceContainer.stories.tsx +55 -0
- package/src/components/Typography/typography.scss +3 -2
- package/src/components/Workspace/WorkspaceContent.tsx +1 -1
- package/src/components/index.scss +5 -0
- package/src/components/index.ts +5 -0
- package/src/includes/carbon-components/_components.scss +11 -0
- package/src/includes/carbon-components/_requisits.scss +18 -0
- package/src/includes/carbon-components/_variables.scss +50 -53
- package/src/index.scss +4 -105
- package/src/index.ts +6 -16
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BaseIconProps } from "./BaseIcon";
|
|
3
|
+
import { CarbonIconType } from "./canonicalIconNames";
|
|
4
|
+
export interface TestIconProps extends Omit<BaseIconProps, "iconComponent"> {
|
|
5
|
+
/**
|
|
6
|
+
* Carbon icon that is used instead of the via `name` defined canonical named icon.
|
|
7
|
+
*/
|
|
8
|
+
tryout: CarbonIconType;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* This component is primarily provided to test icons in a third application without defining them via a canonical name before.
|
|
12
|
+
*
|
|
13
|
+
* Example usage:
|
|
14
|
+
* ```
|
|
15
|
+
* import { LogoReact } from "@carbon/icons-react";
|
|
16
|
+
* const testIcon = <TestIcon tryout={LogoReact} />
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
declare function TestIcon({ className, tryout, ...otherBaseIconProps }: TestIconProps): JSX.Element;
|
|
20
|
+
export default TestIcon;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { IconProps as CarbonIconProps } from "carbon-components-react";
|
|
2
3
|
/** Valid icon names. */
|
|
3
|
-
export declare type ValidIconName = "application-activities" | "application-dataintegration" | "application-explore" | "application-homepage" | "application-legacygui" | "application-mapping" | "application-queries" | "application-useraccount" | "application-vocabularies" | "application-warning" | "artefact-commit" | "artefact-customtask" | "artefact-dataset" | "artefact-dataset-csv" | "artefact-dataset-eccencadataplatform" | "artefact-dataset-excel" | "artefact-dataset-file" | "artefact-dataset-jdbc" | "artefact-dataset-json" | "artefact-dataset-multicsv" | "artefact-dataset-neo4j" | "artefact-dataset-sparkview" | "artefact-dataset-sparqlendpoint" | "artefact-dataset-sqlendpoint" | "artefact-dataset-xml" | "artefact-deprecated" | "artefact-embedded" | "artefact-errorlog" | "artefact-file" | "artefact-linking" | "artefact-project" | "artefact-rawdata" | "artefact-remote" | "artefact-report" | "artefact-task" | "artefact-transform" | "artefact-uncategorized" | "artefact-workflow" | "data-sourcepath" | "data-targetpath" | "item-add-artefact" | "item-clone" | "item-comment" | "item-copy" | "item-download" | "item-draggable" | "item-edit" | "item-evaluation" | "item-execution" | "item-info" | "item-launch" | "item-moremenu" | "item-question" | "item-reload" | "item-remove" | "item-reset" | "item-save" | "item-settings" | "item-shuffle" | "item-start" | "item-stop" | "item-upload" | "item-vertmenu" | "item-viewdetails" | "list-sort" | "list-sortasc" | "list-sortdesc" | "module-accesscontrol" | "module-annotation" | "module-dashboard" | "module-gdprsearch" | "module-integrations" | "module-linkedrules" | "module-reports" | "module-search" | "module-thesauri" | "module-timetracker" | "module-visualization" | "navigation-back" | "navigation-close" | "navigation-first" | "navigation-forth" | "navigation-jump" | "navigation-last" | "navigation-next" | "navigation-previous" | "operation-aggregation" | "operation-autolayout" | "operation-clear" | "operation-commit" | "operation-comparison" | "operation-filter" | "operation-filteredit" | "operation-link" | "operation-logout" | "operation-redo" | "operation-search" | "operation-sharelink" | "operation-transform" | "operation-undo" | "operation-unlink" | "state-checked" | "state-checkedsimple" | "state-confirmed" | "state-danger" | "state-declined" | "state-info" | "state-partlychecked" | "state-protected" | "state-success" | "state-unchecked" | "state-warning" | "toggler-caret" | "toggler-maximize" | "toggler-minimize" | "toggler-moveleft" | "toggler-moveright" | "toggler-showless" | "toggler-showmore" | "toggler-star-empty" | "toggler-star-filled" | "toggler-tree" | "undefined"
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
declare
|
|
4
|
+
export declare type ValidIconName = "application-activities" | "application-dataintegration" | "application-explore" | "application-homepage" | "application-legacygui" | "application-mapping" | "application-queries" | "application-useraccount" | "application-vocabularies" | "application-warning" | "artefact-commit" | "artefact-customtask" | "artefact-dataset" | "artefact-dataset-csv" | "artefact-dataset-eccencadataplatform" | "artefact-dataset-excel" | "artefact-dataset-file" | "artefact-dataset-jdbc" | "artefact-dataset-json" | "artefact-dataset-multicsv" | "artefact-dataset-neo4j" | "artefact-dataset-sparkview" | "artefact-dataset-sparqlendpoint" | "artefact-dataset-sqlendpoint" | "artefact-dataset-xml" | "artefact-deprecated" | "artefact-embedded" | "artefact-errorlog" | "artefact-file" | "artefact-linking" | "artefact-project" | "artefact-rawdata" | "artefact-remote" | "artefact-report" | "artefact-task" | "artefact-transform" | "artefact-uncategorized" | "artefact-workflow" | "data-sourcepath" | "data-targetpath" | "item-add-artefact" | "item-clone" | "item-comment" | "item-copy" | "item-download" | "item-draggable" | "item-edit" | "item-evaluation" | "item-execution" | "item-info" | "item-launch" | "item-moremenu" | "item-question" | "item-reload" | "item-remove" | "item-reset" | "item-save" | "item-settings" | "item-shuffle" | "item-start" | "item-stop" | "item-upload" | "item-vertmenu" | "item-viewdetails" | "list-sort" | "list-sortasc" | "list-sortdesc" | "module-accesscontrol" | "module-annotation" | "module-dashboard" | "module-gdprsearch" | "module-integrations" | "module-linkedrules" | "module-reports" | "module-search" | "module-thesauri" | "module-timetracker" | "module-visualization" | "navigation-back" | "navigation-close" | "navigation-first" | "navigation-forth" | "navigation-jump" | "navigation-last" | "navigation-next" | "navigation-previous" | "operation-aggregation" | "operation-autolayout" | "operation-clear" | "operation-commit" | "operation-comparison" | "operation-filter" | "operation-filteredit" | "operation-link" | "operation-logout" | "operation-redo" | "operation-search" | "operation-sharelink" | "operation-transform" | "operation-undo" | "operation-unlink" | "state-checked" | "state-checkedsimple" | "state-confirmed" | "state-danger" | "state-declined" | "state-info" | "state-partlychecked" | "state-protected" | "state-success" | "state-unchecked" | "state-warning" | "toggler-caret" | "toggler-maximize" | "toggler-minimize" | "toggler-moveleft" | "toggler-moveright" | "toggler-showless" | "toggler-showmore" | "toggler-star-empty" | "toggler-star-filled" | "toggler-tree" | "undefined";
|
|
5
|
+
export declare type CarbonIconType = React.ComponentType<CarbonIconProps>;
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated
|
|
8
|
+
* use CarbonIconType instead
|
|
9
|
+
*/
|
|
10
|
+
export declare type IconSized = CarbonIconType;
|
|
11
|
+
declare const canonicalIconNames: Record<ValidIconName, CarbonIconType>;
|
|
10
12
|
export default canonicalIconNames;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { MenuItemProps as BlueprintMenuItemProps } from "@blueprintjs/core";
|
|
3
|
+
import { TestIconProps } from "./../Icon/TestIcon";
|
|
3
4
|
import { ValidIconName } from "../Icon/canonicalIconNames";
|
|
4
5
|
export interface MenuItemProps extends Omit<BlueprintMenuItemProps, "icon" | "children">, Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, "onClick" | "target" | "children"> {
|
|
5
|
-
icon?: ValidIconName | string[]
|
|
6
|
+
icon?: ValidIconName | string[] | React.ReactElement<TestIconProps>;
|
|
6
7
|
children?: React.ReactNode;
|
|
7
8
|
}
|
|
8
9
|
/**
|
|
@@ -82,8 +82,10 @@ interface IProps<T> extends Pick<BlueprintMultiSelectProps<T>, "items" | "placeh
|
|
|
82
82
|
* Disables the input element
|
|
83
83
|
*/
|
|
84
84
|
disabled?: boolean;
|
|
85
|
+
/** Delay in ms how long the request for the given query should be delayed. */
|
|
86
|
+
requestDelay?: number;
|
|
85
87
|
}
|
|
86
|
-
declare function MultiSelect<T>({ items, prePopulateWithItems, itemId, itemLabel, onSelection, contextOverlayProps, tagInputProps, inputProps, runOnQueryChange, fullWidth, noResultText, newItemCreationText, newItemPostfix, hasStatePrimary, hasStateDanger, hasStateSuccess, hasStateWarning, disabled, createNewItemFromQuery, ...otherProps }: IProps<T>): JSX.Element;
|
|
88
|
+
declare function MultiSelect<T>({ items, prePopulateWithItems, itemId, itemLabel, onSelection, contextOverlayProps, tagInputProps, inputProps, runOnQueryChange, fullWidth, noResultText, newItemCreationText, newItemPostfix, hasStatePrimary, hasStateDanger, hasStateSuccess, hasStateWarning, disabled, createNewItemFromQuery, requestDelay, ...otherProps }: IProps<T>): JSX.Element;
|
|
87
89
|
declare namespace MultiSelect {
|
|
88
90
|
var ofType: typeof BlueprintMultiSelect.ofType;
|
|
89
91
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { ToastProps as BlueprintToastProps } from "@blueprintjs/core";
|
|
3
|
+
import { IconProps } from "./../Icon/Icon";
|
|
4
|
+
import { TestIconProps } from "./../Icon/TestIcon";
|
|
3
5
|
import { ValidIconName } from "./../Icon/canonicalIconNames";
|
|
4
6
|
export interface NotificationProps extends Omit<BlueprintToastProps, "message" | "action" | "icon" | "intent">, React.HTMLAttributes<HTMLDivElement> {
|
|
5
7
|
/**
|
|
@@ -30,19 +32,25 @@ export interface NotificationProps extends Omit<BlueprintToastProps, "message" |
|
|
|
30
32
|
*/
|
|
31
33
|
danger?: boolean;
|
|
32
34
|
/**
|
|
35
|
+
* @deprecated
|
|
33
36
|
* Notification uses the the given space more flexible.
|
|
34
|
-
*
|
|
37
|
+
* Deprecation notice: Property name will removed in future versions.
|
|
35
38
|
* Please use `flexWidth`.
|
|
36
|
-
* @depracted
|
|
37
39
|
*/
|
|
38
40
|
fullWidth?: boolean;
|
|
39
41
|
/**
|
|
40
42
|
* Notification uses the the given space more flexible.
|
|
41
|
-
* Default
|
|
43
|
+
* Default notification is displayed in min and max limits.
|
|
42
44
|
* Those limits are removed by setting this property to `true`.
|
|
43
45
|
*/
|
|
44
46
|
flexWidth?: boolean;
|
|
45
47
|
/**
|
|
48
|
+
* Icon displayed with the notification.
|
|
49
|
+
* Set it to false if you need to prevent automatically set icon regarding the notification type.
|
|
50
|
+
*/
|
|
51
|
+
icon?: false | React.ReactElement<IconProps> | React.ReactElement<TestIconProps>;
|
|
52
|
+
/**
|
|
53
|
+
* @deprecated
|
|
46
54
|
* Icon used as depiction that is displayed with the notification.
|
|
47
55
|
*/
|
|
48
56
|
iconName?: ValidIconName | null;
|
|
@@ -52,5 +60,6 @@ export interface NotificationProps extends Omit<BlueprintToastProps, "message" |
|
|
|
52
60
|
* By default it uses colorization of an blueish info alert.
|
|
53
61
|
*/
|
|
54
62
|
declare function Notification({ actions, children, className, message, success, warning, danger, neutral, fullWidth, // deprecated
|
|
55
|
-
flexWidth, iconName,
|
|
63
|
+
flexWidth, iconName, // deprecated
|
|
64
|
+
icon, timeout, ...otherProps }: NotificationProps): JSX.Element;
|
|
56
65
|
export default Notification;
|
|
@@ -40,6 +40,7 @@ export declare const transformTabProperties: ({ title, dontShrink, className, ba
|
|
|
40
40
|
hidden?: boolean | undefined;
|
|
41
41
|
id: import("@blueprintjs/core").TabId;
|
|
42
42
|
lang?: string | undefined;
|
|
43
|
+
nonce?: string | undefined;
|
|
43
44
|
placeholder?: string | undefined;
|
|
44
45
|
slot?: string | undefined;
|
|
45
46
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
@@ -300,6 +301,7 @@ export declare const transformTabProperties: ({ title, dontShrink, className, ba
|
|
|
300
301
|
hidden?: boolean | undefined;
|
|
301
302
|
id: import("@blueprintjs/core").TabId;
|
|
302
303
|
lang?: string | undefined;
|
|
304
|
+
nonce?: string | undefined;
|
|
303
305
|
placeholder?: string | undefined;
|
|
304
306
|
slot?: string | undefined;
|
|
305
307
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { TagProps as BlueprintTagProps } from "@blueprintjs/core";
|
|
3
3
|
import Color from "color";
|
|
4
|
-
|
|
4
|
+
import { IconProps } from "../Icon/Icon";
|
|
5
|
+
import { TestIconProps } from "../Icon/TestIcon";
|
|
6
|
+
import { ValidIconName } from "../Icon/canonicalIconNames";
|
|
7
|
+
import { IntentTypes } from "../../common/Intent";
|
|
8
|
+
export interface TagProps extends Omit<BlueprintTagProps, "active" | "fill" | "icon" | "intent" | "large" | "multiline" | "rightIcon"> {
|
|
5
9
|
/**
|
|
6
10
|
* Sets the background color of a tag, depends on the `Color` object provided by the
|
|
7
11
|
* [npm color module](https://www.npmjs.com/package/color) v3. You can use it with
|
|
@@ -23,9 +27,18 @@ interface TagProps extends Omit<BlueprintTagProps, "active" | "fill" | "large" |
|
|
|
23
27
|
*/
|
|
24
28
|
large?: boolean;
|
|
25
29
|
/**
|
|
30
|
+
* Meaning of the tag.
|
|
31
|
+
*/
|
|
32
|
+
intent?: IntentTypes;
|
|
33
|
+
/**
|
|
34
|
+
* Icon displayed left from the tag label.
|
|
35
|
+
*/
|
|
36
|
+
icon?: ValidIconName | React.ReactElement<IconProps> | React.ReactElement<TestIconProps>;
|
|
37
|
+
/**
|
|
38
|
+
* @deprecated
|
|
26
39
|
* **deprecated**, use `minimal=false` plus `emphasis="stronger"`
|
|
27
40
|
*/
|
|
28
41
|
emphasized?: never;
|
|
29
42
|
}
|
|
30
|
-
declare function Tag({ children, className, emphasis, minimal, small, large, backgroundColor, ...otherProps }: TagProps): JSX.Element;
|
|
43
|
+
declare function Tag({ children, className, intent, icon, emphasis, minimal, small, large, backgroundColor, ...otherProps }: TagProps): JSX.Element;
|
|
31
44
|
export default Tag;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { TextAreaProps as BlueprintTextAreaProps } from "@blueprintjs/core";
|
|
3
|
-
|
|
3
|
+
import { InvisibleCharacterWarningProps } from "./useTextValidation";
|
|
4
|
+
export interface TextAreaProps extends Partial<BlueprintTextAreaProps> {
|
|
4
5
|
/**
|
|
5
6
|
* when set to true the input takes a blue border color
|
|
6
7
|
*/
|
|
@@ -17,6 +18,10 @@ interface TextAreaProps extends Partial<BlueprintTextAreaProps> {
|
|
|
17
18
|
* when set to true the input takes a red border color
|
|
18
19
|
*/
|
|
19
20
|
hasStateDanger?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* If set, allows to be informed of invisible, hard to spot characters in the string value.
|
|
23
|
+
*/
|
|
24
|
+
invisibleCharacterWarning?: InvisibleCharacterWarningProps;
|
|
20
25
|
}
|
|
21
|
-
declare function TextArea({ className, hasStatePrimary, hasStateSuccess, hasStateWarning, hasStateDanger, rows, ...otherProps }: TextAreaProps): JSX.Element;
|
|
26
|
+
declare function TextArea({ className, hasStatePrimary, hasStateSuccess, hasStateWarning, hasStateDanger, rows, invisibleCharacterWarning, ...otherProps }: TextAreaProps): JSX.Element;
|
|
22
27
|
export default TextArea;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { MaybeElement, HTMLInputProps, InputGroupProps } from "@blueprintjs/core";
|
|
3
3
|
import { ValidIconName } from "../Icon/canonicalIconNames";
|
|
4
|
+
import { InvisibleCharacterWarningProps } from "./useTextValidation";
|
|
4
5
|
export interface TextFieldProps extends Partial<Omit<InputGroupProps, "intent" | "leftIcon"> & HTMLInputProps> {
|
|
5
6
|
/**
|
|
6
7
|
* The input element is displayed with primary color scheme.
|
|
@@ -26,9 +27,13 @@ export interface TextFieldProps extends Partial<Omit<InputGroupProps, "intent" |
|
|
|
26
27
|
* Left aligned icon, can be a canonical icon name or an `Icon` element.
|
|
27
28
|
*/
|
|
28
29
|
leftIcon?: ValidIconName | MaybeElement;
|
|
30
|
+
/**
|
|
31
|
+
* If set, allows to be informed of invisible, hard to spot characters in the string value.
|
|
32
|
+
*/
|
|
33
|
+
invisibleCharacterWarning?: InvisibleCharacterWarningProps;
|
|
29
34
|
}
|
|
30
35
|
/**
|
|
31
36
|
* Text input field.
|
|
32
37
|
*/
|
|
33
|
-
declare function TextField({ className, hasStatePrimary, hasStateSuccess, hasStateWarning, hasStateDanger, fullWidth, leftIcon, ...otherProps }: TextFieldProps): JSX.Element;
|
|
38
|
+
declare function TextField({ className, hasStatePrimary, hasStateSuccess, hasStateWarning, hasStateDanger, fullWidth, leftIcon, invisibleCharacterWarning, ...otherProps }: TextFieldProps): JSX.Element;
|
|
34
39
|
export default TextField;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React, { ChangeEventHandler } from "react";
|
|
2
|
+
export interface InvisibleCharacterWarningProps {
|
|
3
|
+
/**
|
|
4
|
+
* If set, the function is called after every value change what invisible characters have been detected.
|
|
5
|
+
*/
|
|
6
|
+
callback: (detectedCodePoints: Set<number>) => any;
|
|
7
|
+
/**
|
|
8
|
+
* The delay in milliseconds after which an input string should be checked. Only the most recent value will be checked.
|
|
9
|
+
* A higher value will reduce the probability that the typing stalls.
|
|
10
|
+
*
|
|
11
|
+
* Default: 500
|
|
12
|
+
*/
|
|
13
|
+
callbackDelay?: number;
|
|
14
|
+
}
|
|
15
|
+
interface Props<T = Element> {
|
|
16
|
+
/** Forwarded TextField props */
|
|
17
|
+
value?: string | ReadonlyArray<string> | number | undefined;
|
|
18
|
+
readOnly?: boolean | undefined;
|
|
19
|
+
disabled?: boolean | undefined;
|
|
20
|
+
onChange?: ChangeEventHandler<T>;
|
|
21
|
+
/**
|
|
22
|
+
* If set, allows to be informed of invisible, hard to spot characters in the string value.
|
|
23
|
+
*/
|
|
24
|
+
invisibleCharacterWarning?: InvisibleCharacterWarningProps;
|
|
25
|
+
}
|
|
26
|
+
/** Validates the string value for invisible characters. */
|
|
27
|
+
export declare const useTextValidation: <T>({ value, onChange, invisibleCharacterWarning }: Props<T>) => React.ChangeEventHandler<T> | undefined;
|
|
28
|
+
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { Tree as BlueprintTree, TreeProps as BlueprintTreeProps, TreeNode as BlueprintTreeNode, TreeNodeInfo as BlueprintTreeNodeInfo } from "@blueprintjs/core";
|
|
3
3
|
import { IconProps } from "./../Icon/Icon";
|
|
4
|
+
import { TestIconProps } from "./../Icon/TestIcon";
|
|
4
5
|
export interface TreeNodeInfo<T = {}> extends Omit<BlueprintTreeNodeInfo<T>, "childNodes" | "icon"> {
|
|
5
6
|
/**
|
|
6
7
|
* Child tree nodes of this node.
|
|
@@ -9,7 +10,7 @@ export interface TreeNodeInfo<T = {}> extends Omit<BlueprintTreeNodeInfo<T>, "ch
|
|
|
9
10
|
/**
|
|
10
11
|
* `<Icon />` element to render next to the node's label.
|
|
11
12
|
*/
|
|
12
|
-
icon?: React.ReactElement<IconProps>;
|
|
13
|
+
icon?: React.ReactElement<IconProps> | React.ReactElement<TestIconProps>;
|
|
13
14
|
}
|
|
14
15
|
export interface TreeNodeProps<T = {}> extends TreeNodeInfo<T> {
|
|
15
16
|
children?: React.ReactNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
interface
|
|
2
|
+
export interface HighlighterProps {
|
|
3
3
|
label?: string;
|
|
4
4
|
searchValue?: string;
|
|
5
5
|
}
|
|
@@ -8,7 +8,7 @@ interface IHighlighterProps {
|
|
|
8
8
|
* @param label The string to highlight.
|
|
9
9
|
* @param searchValue The mutli-word search query from which single words should be highlighted in the label.
|
|
10
10
|
*/
|
|
11
|
-
declare function Highlighter({ label, searchValue }:
|
|
11
|
+
declare function Highlighter({ label, searchValue }: HighlighterProps): JSX.Element;
|
|
12
12
|
/** Extracts search words separated by white space. */
|
|
13
13
|
export declare function extractSearchWords(textQuery: string, toLowerCase?: boolean): string[];
|
|
14
14
|
/** Returns true if all search words are included in the given text */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
interface
|
|
2
|
+
export interface OverflowTextProps {
|
|
3
3
|
ellipsis?: "reverse" | "none";
|
|
4
4
|
inline?: boolean;
|
|
5
5
|
passDown?: boolean;
|
|
@@ -8,5 +8,5 @@ interface IProps {
|
|
|
8
8
|
[key: string]: any;
|
|
9
9
|
}
|
|
10
10
|
/** Prevents text from overflowing. */
|
|
11
|
-
declare function OverflowText({ className, children, ellipsis, inline, passDown, useHtmlElement, ...otherProps }:
|
|
11
|
+
declare function OverflowText({ className, children, ellipsis, inline, passDown, useHtmlElement, ...otherProps }: OverflowTextProps): JSX.Element;
|
|
12
12
|
export default OverflowText;
|
|
@@ -1,5 +1,46 @@
|
|
|
1
|
-
|
|
2
|
-
declare
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare type WhiteSpaceSizes = "tiny" | "small" | "regular" | "large" | "xlarge";
|
|
3
|
+
export interface WhiteSpaceContainerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
/**
|
|
5
|
+
* Insert line breaks within an otherwise unbreakable string to prevent text from overflowing the container.
|
|
6
|
+
*/
|
|
7
|
+
linebreakForced?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Size of top margin around the container.
|
|
10
|
+
*/
|
|
11
|
+
marginTop?: WhiteSpaceSizes;
|
|
12
|
+
/**
|
|
13
|
+
* Size of right margin around the container.
|
|
14
|
+
*/
|
|
15
|
+
marginRight?: WhiteSpaceSizes;
|
|
16
|
+
/**
|
|
17
|
+
* Size of bottom margin around the container.
|
|
18
|
+
*/
|
|
19
|
+
marginBottom?: WhiteSpaceSizes;
|
|
20
|
+
/**
|
|
21
|
+
* Size of left margin around the container.
|
|
22
|
+
*/
|
|
23
|
+
marginLeft?: WhiteSpaceSizes;
|
|
24
|
+
/**
|
|
25
|
+
* Size of top padding inside the container.
|
|
26
|
+
*/
|
|
27
|
+
paddingTop?: WhiteSpaceSizes;
|
|
28
|
+
/**
|
|
29
|
+
* Size of right padding inside the container.
|
|
30
|
+
*/
|
|
31
|
+
paddingRight?: WhiteSpaceSizes;
|
|
32
|
+
/**
|
|
33
|
+
* Size of bottom padding inside the container.
|
|
34
|
+
*/
|
|
35
|
+
paddingBottom?: WhiteSpaceSizes;
|
|
36
|
+
/**
|
|
37
|
+
* Size of left padding inside the container.
|
|
38
|
+
*/
|
|
39
|
+
paddingLeft?: WhiteSpaceSizes;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Simple container to add whitespace inside and around of it without adding style attributes directly.
|
|
43
|
+
* This way the added whitespace keeps visually connected to the other whitespaces used in the application.
|
|
44
|
+
*/
|
|
45
|
+
declare function WhiteSpaceContainer({ className, children, marginTop, marginRight, marginBottom, marginLeft, paddingTop, paddingRight, paddingBottom, paddingLeft, linebreakForced, ...otherDivProps }: WhiteSpaceContainerProps): JSX.Element;
|
|
5
46
|
export default WhiteSpaceContainer;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Highlighter, { HighlighterProps } from "./Highlighter";
|
|
2
|
+
import { extractSearchWords, matchesAllWords, createMultiWordRegex } from "./Highlighter";
|
|
3
|
+
import HtmlContentBlock, { HtmlContentBlockProps } from "./HtmlContentBlock";
|
|
4
|
+
import OverflowText, { OverflowTextProps } from "./OverflowText";
|
|
5
|
+
import WhiteSpaceContainer, { WhiteSpaceContainerProps } from "./WhiteSpaceContainer";
|
|
6
|
+
export type { HighlighterProps, HtmlContentBlockProps, OverflowTextProps, WhiteSpaceContainerProps };
|
|
7
|
+
export { Highlighter, HtmlContentBlock, OverflowText, WhiteSpaceContainer, };
|
|
8
|
+
export declare const HighlighterFunctions: {
|
|
9
|
+
extractSearchWords: typeof extractSearchWords;
|
|
10
|
+
matchesAllWords: typeof matchesAllWords;
|
|
11
|
+
createMultiWordRegex: typeof createMultiWordRegex;
|
|
12
|
+
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -12,10 +12,6 @@ import ApplicationToolbarPanel from "./components/Application/ApplicationToolbar
|
|
|
12
12
|
import AutoSuggestion from "./components/AutoSuggestion/AutoSuggestion";
|
|
13
13
|
import { AutoSuggestionList } from "./components/AutoSuggestion/AutoSuggestionList";
|
|
14
14
|
import SingleLineCodeEditor from "./components/AutoSuggestion/SingleLineCodeEditor";
|
|
15
|
-
import HtmlContentBlock from "./components/Typography/HtmlContentBlock";
|
|
16
|
-
import OverflowText from "./components/Typography/OverflowText";
|
|
17
|
-
import WhiteSpaceContainer from "./components/Typography/WhiteSpaceContainer";
|
|
18
|
-
import Highlighter from "./components/Typography/Highlighter";
|
|
19
15
|
import Grid from "./components/Grid/Grid";
|
|
20
16
|
import GridRow from "./components/Grid/GridRow";
|
|
21
17
|
import GridColumn from "./components/Grid/GridColumn";
|
|
@@ -24,7 +20,6 @@ import WorkspaceContent from "./components/Workspace/WorkspaceContent";
|
|
|
24
20
|
import WorkspaceMain from "./components/Workspace/WorkspaceMain";
|
|
25
21
|
import WorkspaceSide from "./components/Workspace/WorkspaceSide";
|
|
26
22
|
import WorkspaceHeader from "./components/Workspace/WorkspaceHeader";
|
|
27
|
-
import Icon from "./components/Icon/Icon";
|
|
28
23
|
import IconButton from "./components/Icon/IconButton";
|
|
29
24
|
import Label from "./components/Label/Label";
|
|
30
25
|
import Button from "./components/Button/Button";
|
|
@@ -81,22 +76,22 @@ import Link from "./components/Link/Link";
|
|
|
81
76
|
import Spinner from "./components/Spinner/Spinner";
|
|
82
77
|
import InteractionGate from "./components/InteractionGate/InteractionGate";
|
|
83
78
|
import { PropertyName, PropertyValue, PropertyValuePair, PropertyValueList } from "./components/PropertyValuePair";
|
|
84
|
-
import * as TypographyClassNames from "./components/Typography/classnames";
|
|
85
79
|
import { ProgressBar } from "./components/ProgressBar/ProgressBar";
|
|
86
80
|
import List from "./components/List/List";
|
|
87
81
|
import * as LegacyReplacements from "./legacy-replacements";
|
|
82
|
+
import * as TypographyClassNames from "./components/Typography/classnames";
|
|
88
83
|
declare const HelperClasses: {
|
|
89
84
|
Typography: typeof TypographyClassNames;
|
|
90
85
|
Intent: {
|
|
91
|
-
[
|
|
86
|
+
[key: string]: string;
|
|
92
87
|
};
|
|
93
88
|
};
|
|
94
89
|
declare const Utilities: {
|
|
95
90
|
openInNewTab: (event: import("react").MouseEvent<HTMLElement, MouseEvent>, handler?: ((e: import("react").MouseEvent<HTMLElement, MouseEvent>) => void) | undefined, url?: string | undefined) => void;
|
|
96
91
|
decideContrastColorValue: ({ testColor, lightColor, darkColor }: import("./common/utils/colorDecideContrastvalue").decideContrastColorValueProps) => string;
|
|
97
92
|
};
|
|
98
|
-
export { ApplicationContainer, ApplicationHeader, ApplicationContent, ApplicationSidebarNavigation, ApplicationSidebarToggler, ApplicationTitle, ApplicationToolbar, ApplicationToolbarSection, ApplicationToolbarAction, ApplicationToolbarPanel, AutoSuggestion, AutoSuggestionList, SingleLineCodeEditor,
|
|
99
|
-
export * from "./components
|
|
100
|
-
export * from "./cmem";
|
|
101
|
-
export * from "./extensions";
|
|
93
|
+
export { ApplicationContainer, ApplicationHeader, ApplicationContent, ApplicationSidebarNavigation, ApplicationSidebarToggler, ApplicationTitle, ApplicationToolbar, ApplicationToolbarSection, ApplicationToolbarAction, ApplicationToolbarPanel, AutoSuggestion, AutoSuggestionList, SingleLineCodeEditor, Grid, GridRow, GridColumn, List, WorkspaceContent, WorkspaceMain, WorkspaceSide, WorkspaceHeader, Menu, MenuItem, MenuDivider, ContextOverlay, ContextMenu, OverviewItem, OverviewItemDepiction, OverviewItemDescription, OverviewItemLine, OverviewItemActions, OverviewItemList, TableContainer, Table, TableHead, TableRow, TableBody, TableCell, TableHeader, IconButton, Label, Button, Checkbox, RadioButton, Tabs, Tab, TabTitle, TabPanel, TextField, TextArea, SearchField, Switch, NumericInput, FieldItem, FieldItemRow, FieldSet, BreadcrumbList, BreadcrumbItem, Modal, SimpleDialog, AlertDialog, Card, CardHeader, CardTitle, CardOptions, CardContent, CardActions, CardActionsAux, HoverToggler, Spacing, Divider, Tooltip, Section, SectionHeader, TitlePage, TitleMainsection, TitleSubsection, Accordion, AccordionItem, Toolbar, ToolbarSection, Tag, TagList, Pagination, Notification, Link, Spinner, InteractionGate, PropertyName, PropertyValue, PropertyValuePair, PropertyValueList, Toast, HelperClasses, Select, MultiSelect, AutoCompleteField, ProgressBar, Iframe, IframeModal, Utilities, LegacyReplacements, };
|
|
94
|
+
export * from "./components";
|
|
102
95
|
export * from "./components/interfaces";
|
|
96
|
+
export * from "./extensions";
|
|
97
|
+
export * from "./cmem";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eccenca/gui-elements",
|
|
3
3
|
"description": "GUI elements based on other libraries, usable in React application, written in Typescript.",
|
|
4
|
-
"version": "23.0.
|
|
4
|
+
"version": "23.1.0-rc.2",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://github.com/eccenca/gui-elements",
|
|
7
7
|
"bugs": "https://github.com/eccenca/gui-elements/issues",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"build:all": "yarn build:clean && yarn build:esm && yarn build:cjs",
|
|
54
54
|
"compile": "tsc --build tsconfig.json",
|
|
55
55
|
"compile-scss": "ts-node -O \"{ \\\"esModuleInterop\\\": true, \\\"module\\\": \\\"commonjs\\\"}\" ./scripts/compile-sass.ts",
|
|
56
|
-
"storybook": "start-storybook -p 6006",
|
|
56
|
+
"storybook": "start-storybook -p 6006 --no-open",
|
|
57
57
|
"build-storybook": "build-storybook",
|
|
58
58
|
"test": "jest",
|
|
59
59
|
"test:ci": "jest --ci --reporters='default'",
|
|
@@ -66,12 +66,11 @@
|
|
|
66
66
|
"@blueprintjs/core": "^4.9.0",
|
|
67
67
|
"@blueprintjs/popover2": "^1.6.0",
|
|
68
68
|
"@blueprintjs/select": "^4.6.0",
|
|
69
|
-
"@carbon/icons": "
|
|
70
|
-
"@carbon/icons-react": "
|
|
69
|
+
"@carbon/icons": "^11.11.0",
|
|
70
|
+
"@carbon/icons-react": "^11.11.0",
|
|
71
|
+
"@carbon/styles": "^1.17.0",
|
|
71
72
|
"@mavrin/remark-typograf": "^2.2.0",
|
|
72
|
-
"carbon-components": "
|
|
73
|
-
"carbon-components-react": "7.44.1",
|
|
74
|
-
"carbon-icons": "7.0.7",
|
|
73
|
+
"carbon-components-react": "^8.17.0",
|
|
75
74
|
"codemirror": "^5.61.0",
|
|
76
75
|
"color": "3.2.1",
|
|
77
76
|
"lodash": "^4.17.21",
|
|
@@ -81,6 +80,7 @@
|
|
|
81
80
|
"react-codemirror2": "^7.2.1",
|
|
82
81
|
"react-dom": "^16.13.1",
|
|
83
82
|
"react-flow-renderer": "9.7.4",
|
|
83
|
+
"react-inlinesvg": "^3.0.1",
|
|
84
84
|
"react-markdown": "^7.0.1",
|
|
85
85
|
"rehype-raw": "^6.1.0",
|
|
86
86
|
"remark-definition-list": "^1.1.0",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"@storybook/react": "^6.5.10",
|
|
108
108
|
"@testing-library/jest-dom": "^5.16.1",
|
|
109
109
|
"@testing-library/react": "^12.1.2",
|
|
110
|
-
"@types/carbon-components-react": "7.
|
|
110
|
+
"@types/carbon-components-react": "^7.55.2",
|
|
111
111
|
"@types/codemirror": "^5.60.5",
|
|
112
112
|
"@types/color": "^3.0.2",
|
|
113
113
|
"@types/jest": "^24.9.1",
|
|
@@ -132,24 +132,21 @@
|
|
|
132
132
|
"sass-loader": "^10.3.1",
|
|
133
133
|
"ts-node": "^10.9.1",
|
|
134
134
|
"tsc-esm-fix": "^2.13.0",
|
|
135
|
-
"typescript": "4.4.4"
|
|
135
|
+
"typescript": "4.4.4",
|
|
136
|
+
"yargs": "^17.6.2"
|
|
136
137
|
},
|
|
137
138
|
"peerDependencies": {
|
|
139
|
+
"@types/carbon-components-react": ">=7",
|
|
138
140
|
"react": ">=16",
|
|
139
141
|
"react-dom": ">=16"
|
|
140
142
|
},
|
|
141
143
|
"resolutions": {
|
|
142
|
-
"**/@
|
|
143
|
-
"**/@carbon/icons-react": "10.44.0",
|
|
144
|
-
"**/carbon-components": "10.44.0",
|
|
145
|
-
"**/carbon-components-react": "7.44.1",
|
|
146
|
-
"**/carbon-icons": "7.0.7",
|
|
147
|
-
"**/@types/react": "^17.0.0",
|
|
144
|
+
"**/@types/react": "^17.0.52",
|
|
148
145
|
"**/node-gyp": "^7.0.0",
|
|
149
146
|
"**/glob-parent": "^5.1.2",
|
|
150
147
|
"**/trim": "^0.0.3",
|
|
151
148
|
"**/trim-newlines": "^3.0.1",
|
|
152
|
-
"**/minimist": "^1.2.
|
|
149
|
+
"**/minimist": "^1.2.7",
|
|
153
150
|
"**/postcss": "^7.0.36"
|
|
154
151
|
},
|
|
155
152
|
"eslintConfig": {
|
package/scripts/compile-sass.ts
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
import * as sass from "sass";
|
|
2
2
|
import tildeImporter from "node-sass-package-importer";
|
|
3
|
+
import yargs from "yargs";
|
|
3
4
|
import sassRenderSyncConfig from "./sassConfig";
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
const args = yargs(process.argv.slice(2)).argv;
|
|
7
|
+
|
|
8
|
+
const styles = sass.renderSync({
|
|
6
9
|
importer: tildeImporter(),
|
|
7
10
|
...sassRenderSyncConfig,
|
|
8
11
|
file: "src/index.scss",
|
|
12
|
+
includePaths: ["node_modules"], // Carbon does not use tilde import syntax
|
|
9
13
|
});
|
|
14
|
+
|
|
15
|
+
if (args.outputCss) {
|
|
16
|
+
console.log(styles.css.toString());
|
|
17
|
+
}
|
package/src/_shame.scss
CHANGED
|
@@ -14,7 +14,7 @@ html {
|
|
|
14
14
|
.#{$prefix}--assistive-text,
|
|
15
15
|
.#{$prefix}--visually-hidden {
|
|
16
16
|
/*
|
|
17
|
-
TODO: move to better place, originally from
|
|
17
|
+
TODO: move to better place, originally from ~@carbon/styles/scss/css--helpers
|
|
18
18
|
but we cannot use it directly because of other included rules there.
|
|
19
19
|
*/
|
|
20
20
|
position: absolute;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { ComponentStory, ComponentMeta } from "@storybook/react";
|
|
3
|
-
|
|
4
|
-
import { ActivityControlWidget } from "./ActivityControlWidget";
|
|
5
3
|
import { loremIpsum } from "react-lorem-ipsum";
|
|
6
|
-
|
|
7
|
-
import TagList from "
|
|
4
|
+
|
|
5
|
+
import { Tag, TagList, ActivityControlWidget } from "../../../index";
|
|
6
|
+
import { helpersArgTypes } from "../../../.storybook/helpers";
|
|
8
7
|
|
|
9
8
|
export default {
|
|
10
9
|
title: "Cmem/ActivityControlWidget",
|
|
@@ -28,6 +27,9 @@ export default {
|
|
|
28
27
|
type: { summary: "boolean" },
|
|
29
28
|
},
|
|
30
29
|
},
|
|
30
|
+
progressSpinnerFinishedIcon: {
|
|
31
|
+
...helpersArgTypes.exampleIcon,
|
|
32
|
+
},
|
|
31
33
|
},
|
|
32
34
|
} as ComponentMeta<typeof ActivityControlWidget>;
|
|
33
35
|
|
|
@@ -20,6 +20,7 @@ import { ProgressBarProps } from "../../components/ProgressBar/ProgressBar";
|
|
|
20
20
|
import { SpinnerProps } from "../../components/Spinner/Spinner";
|
|
21
21
|
import { ValidIconName } from "../../components/Icon/canonicalIconNames";
|
|
22
22
|
import { IconProps } from "../../components/Icon/Icon";
|
|
23
|
+
import { TestIconProps } from "../../components/Icon/TestIcon";
|
|
23
24
|
|
|
24
25
|
export interface IActivityControlProps extends TestableComponent {
|
|
25
26
|
/**
|
|
@@ -74,7 +75,7 @@ export interface IActivityControlProps extends TestableComponent {
|
|
|
74
75
|
/**
|
|
75
76
|
* if this is set the spinner is replaced when the progress has finished from 0 - 1
|
|
76
77
|
*/
|
|
77
|
-
progressSpinnerFinishedIcon?: React.ReactElement<IconProps>;
|
|
78
|
+
progressSpinnerFinishedIcon?: React.ReactElement<IconProps> | React.ReactElement<TestIconProps>;
|
|
78
79
|
}
|
|
79
80
|
|
|
80
81
|
interface IActivityContextMenu extends TestableComponent {
|
|
@@ -124,7 +125,7 @@ export function ActivityControlWidget(props: IActivityControlProps) {
|
|
|
124
125
|
{(progressSpinner || progressSpinnerFinishedIcon) && (
|
|
125
126
|
<OverviewItemDepiction keepColors>
|
|
126
127
|
{progressSpinnerFinishedIcon ? (
|
|
127
|
-
React.cloneElement(progressSpinnerFinishedIcon, { small, large: !small })
|
|
128
|
+
React.cloneElement(progressSpinnerFinishedIcon as JSX.Element, { small, large: !small })
|
|
128
129
|
) : (
|
|
129
130
|
<Spinner
|
|
130
131
|
position="inline"
|