@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,25 @@
|
|
|
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
|
+
|
|
7
|
+
export type {
|
|
8
|
+
HighlighterProps,
|
|
9
|
+
HtmlContentBlockProps,
|
|
10
|
+
OverflowTextProps,
|
|
11
|
+
WhiteSpaceContainerProps
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export {
|
|
15
|
+
Highlighter,
|
|
16
|
+
HtmlContentBlock,
|
|
17
|
+
OverflowText,
|
|
18
|
+
WhiteSpaceContainer,
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export const HighlighterFunctions = {
|
|
22
|
+
extractSearchWords,
|
|
23
|
+
matchesAllWords,
|
|
24
|
+
createMultiWordRegex,
|
|
25
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ComponentStory, ComponentMeta } from "@storybook/react";
|
|
3
|
+
import { loremIpsum } from "react-lorem-ipsum";
|
|
4
|
+
import { WhiteSpaceContainer as WhiteSpaceContainerElement } from "../../../index";
|
|
5
|
+
|
|
6
|
+
const whiteSpaceSizeOptions = {
|
|
7
|
+
control: "select",
|
|
8
|
+
options: {
|
|
9
|
+
"not set": undefined,
|
|
10
|
+
"tiny": "tiny",
|
|
11
|
+
"small": "small",
|
|
12
|
+
"regular": "regular",
|
|
13
|
+
"large": "large",
|
|
14
|
+
"xlarge": "xlarge"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export default {
|
|
19
|
+
title: "Components/Typography",
|
|
20
|
+
component: WhiteSpaceContainerElement,
|
|
21
|
+
argTypes: {
|
|
22
|
+
children: { control: "none" },
|
|
23
|
+
marginTop: {...whiteSpaceSizeOptions},
|
|
24
|
+
marginRight: {...whiteSpaceSizeOptions},
|
|
25
|
+
marginBottom: {...whiteSpaceSizeOptions},
|
|
26
|
+
marginLeft: {...whiteSpaceSizeOptions},
|
|
27
|
+
paddingTop: {...whiteSpaceSizeOptions},
|
|
28
|
+
paddingRight: {...whiteSpaceSizeOptions},
|
|
29
|
+
paddingBottom: {...whiteSpaceSizeOptions},
|
|
30
|
+
paddingLeft: {...whiteSpaceSizeOptions},
|
|
31
|
+
},
|
|
32
|
+
} as ComponentMeta<typeof WhiteSpaceContainerElement>;
|
|
33
|
+
|
|
34
|
+
const Template: ComponentStory<typeof WhiteSpaceContainerElement> = (args) => (
|
|
35
|
+
<WhiteSpaceContainerElement {...args} style={{background: "#eee"}}/>
|
|
36
|
+
);
|
|
37
|
+
|
|
38
|
+
const testContent = loremIpsum({
|
|
39
|
+
p: 2,
|
|
40
|
+
avgSentencesPerParagraph: 4,
|
|
41
|
+
random: false
|
|
42
|
+
}).toString()
|
|
43
|
+
|
|
44
|
+
export const WhiteSpaceContainer = Template.bind({});
|
|
45
|
+
WhiteSpaceContainer.args = {
|
|
46
|
+
children: [
|
|
47
|
+
<p>{ testContent }</p>,
|
|
48
|
+
<p><strong>{ testContent.replaceAll(" ", "") }</strong></p>,
|
|
49
|
+
<p>{ testContent }</p>
|
|
50
|
+
],
|
|
51
|
+
paddingTop: "tiny",
|
|
52
|
+
paddingRight: "small",
|
|
53
|
+
paddingBottom: "regular",
|
|
54
|
+
paddingLeft: "large",
|
|
55
|
+
}
|
|
@@ -205,7 +205,7 @@ table {
|
|
|
205
205
|
.#{$eccgui}-typography__overflowtext--passdown * {
|
|
206
206
|
overflow: hidden;
|
|
207
207
|
text-overflow: ellipsis;
|
|
208
|
-
|
|
208
|
+
overflow-wrap: normal;
|
|
209
209
|
white-space: nowrap;
|
|
210
210
|
// display: inherit;
|
|
211
211
|
max-width: 100%;
|
|
@@ -254,7 +254,8 @@ table {
|
|
|
254
254
|
}
|
|
255
255
|
|
|
256
256
|
.#{$eccgui}-typography--forcelinebreak {
|
|
257
|
-
word-break:
|
|
257
|
+
word-break: normal;
|
|
258
|
+
overflow-wrap: anywhere;
|
|
258
259
|
}
|
|
259
260
|
|
|
260
261
|
.#{$eccgui}-typography--preventlinebreak {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*
|
|
2
|
+
FIXME:
|
|
3
|
+
it's probably not necessary to include those elements because they should be included by
|
|
4
|
+
the Carbon components itself when they are necessary as sub components. We may remove this
|
|
5
|
+
file later when we haven't experiences any problems.
|
|
6
|
+
*/
|
|
7
|
+
// @use "~@carbon/styles/scss/components/select/index" as select;
|
|
8
|
+
// @use "~@carbon/styles/scss/components/list-box/index" as list-box;
|
|
9
|
+
// @use "~@carbon/styles/scss/components/dropdown/index" as dropdown;
|
|
10
|
+
|
|
11
|
+
@use "~@carbon/styles/scss/components/popover/index" as popover; // necessary for pagination
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
@use "~@carbon/styles/scss/config" with (
|
|
2
|
+
$css--body: $css--body,
|
|
3
|
+
$css--font-face: $css--font-face,
|
|
4
|
+
$css--reset: $css--reset,
|
|
5
|
+
$css--default-type: $css--default-type,
|
|
6
|
+
$prefix: $prefix,
|
|
7
|
+
$flex-grid-columns: $flex-grid-columns,
|
|
8
|
+
$use-flexbox-grid: $use-flexbox-grid
|
|
9
|
+
);
|
|
10
|
+
@use "~@carbon/styles/scss/utilities/_visually-hidden";
|
|
11
|
+
@import "~@carbon/styles/scss/feature-flags";
|
|
12
|
+
@import "~@carbon/styles/scss/colors";
|
|
13
|
+
@import "~@carbon/styles/scss/theme";
|
|
14
|
+
:root {
|
|
15
|
+
@include theme;
|
|
16
|
+
}
|
|
17
|
+
@import "~@carbon/styles/scss/spacing";
|
|
18
|
+
@import "~@carbon/styles/scss/utilities/z-index";
|
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
// Stack of Carbon variables that are necessary to use their framework
|
|
4
4
|
// TODO: calculate them from own configuration variables, all unchanged variables are commented out
|
|
5
5
|
|
|
6
|
+
$prefix: "cds" !default;
|
|
7
|
+
|
|
8
|
+
$flex-grid-columns: 16 !default;
|
|
9
|
+
$use-flexbox-grid: true !default;
|
|
10
|
+
|
|
6
11
|
/// If true, includes font face mixins in `_css--font-face.scss` depending on the `css--plex` feature flag
|
|
7
12
|
$css--font-face: false !default;
|
|
8
13
|
|
|
@@ -24,86 +29,78 @@ $css--default-type: false !default;
|
|
|
24
29
|
/// Used with `css--font-face` feature flag, if true, uses Plex font families instead of Helvetica
|
|
25
30
|
$css--plex: false !default;
|
|
26
31
|
|
|
27
|
-
$
|
|
28
|
-
|
|
29
|
-
grid-columns-16: true,
|
|
30
|
-
// not necessary, we include 16 columns grid directly
|
|
31
|
-
) !default;
|
|
32
|
-
|
|
33
|
-
// Manage deprecations
|
|
34
|
-
$deprecations--entry: true;
|
|
35
|
-
$deprecations--reasons: ();
|
|
36
|
-
$deprecations--message: "Deprecated code was found, this code will be removed before the next release of Carbon.";
|
|
32
|
+
$base-font-size: $eccgui-size-typo-base !default;
|
|
33
|
+
@import "~@carbon/styles/scss/utilities/convert";
|
|
37
34
|
|
|
38
|
-
$carbon--base-font-size: $eccgui-size-typo-base !default;
|
|
39
|
-
@import "~carbon-components/scss/globals/scss/vendor/@carbon/type/scss/vendor/@carbon/layout/convert";
|
|
40
|
-
|
|
41
|
-
$caption-01: (
|
|
42
|
-
font-size: carbon--rem($eccgui-size-typo-caption),
|
|
43
|
-
line-height: math.div($eccgui-size-typo-text-lineheight, $eccgui-size-type-levelratio),
|
|
44
|
-
) !default;
|
|
45
35
|
$label-01: (
|
|
46
|
-
font-size:
|
|
36
|
+
font-size: rem($eccgui-size-typo-caption),
|
|
47
37
|
line-height: math.div($eccgui-size-typo-text-lineheight, $eccgui-size-type-levelratio),
|
|
48
38
|
) !default;
|
|
49
39
|
$helper-text-01: (
|
|
50
|
-
font-size:
|
|
40
|
+
font-size: rem($eccgui-size-typo-caption),
|
|
51
41
|
line-height: math.div($eccgui-size-typo-text-lineheight, $eccgui-size-type-levelratio),
|
|
52
42
|
) !default;
|
|
53
43
|
$body-short-01: (
|
|
54
|
-
font-size:
|
|
55
|
-
line-height: math.div($eccgui-size-typo-text-lineheight, $eccgui-size-type-levelratio),
|
|
56
|
-
) !default;
|
|
57
|
-
$body-long-01: (
|
|
58
|
-
font-size: carbon--rem($eccgui-size-typo-text),
|
|
59
|
-
line-height: $eccgui-size-typo-text-lineheight,
|
|
60
|
-
) !default;
|
|
61
|
-
$code-01: (
|
|
62
|
-
font-family: $eccgui-font-family-monospace,
|
|
63
|
-
font-size: carbon--rem($eccgui-size-typo-caption),
|
|
44
|
+
font-size: rem($eccgui-size-typo-text),
|
|
64
45
|
line-height: math.div($eccgui-size-typo-text-lineheight, $eccgui-size-type-levelratio),
|
|
65
46
|
) !default;
|
|
66
|
-
$
|
|
67
|
-
font-size:
|
|
68
|
-
font-weight: 600,
|
|
47
|
+
$body-short-02: (
|
|
48
|
+
font-size: rem($eccgui-size-typo-subtitle),
|
|
69
49
|
line-height: $eccgui-size-typo-text-lineheight,
|
|
70
50
|
) !default;
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
font-size: carbon--rem($eccgui-size-typo-subtitle),
|
|
51
|
+
$body-long-01: (
|
|
52
|
+
font-size: rem($eccgui-size-typo-text),
|
|
74
53
|
line-height: $eccgui-size-typo-text-lineheight,
|
|
75
54
|
) !default;
|
|
76
55
|
$body-long-02: (
|
|
77
|
-
font-size:
|
|
56
|
+
font-size: rem($eccgui-size-typo-subtitle),
|
|
78
57
|
line-height: $eccgui-size-typo-text-lineheight * $eccgui-size-type-levelratio,
|
|
79
58
|
) !default;
|
|
59
|
+
$code-01: (
|
|
60
|
+
font-family: $eccgui-font-family-monospace,
|
|
61
|
+
font-size: rem($eccgui-size-typo-caption),
|
|
62
|
+
line-height: math.div($eccgui-size-typo-text-lineheight, $eccgui-size-type-levelratio),
|
|
63
|
+
) !default;
|
|
80
64
|
$code-02: (
|
|
81
65
|
font-family: $eccgui-font-family-monospace,
|
|
82
|
-
font-size:
|
|
66
|
+
font-size: rem($eccgui-size-typo-text),
|
|
67
|
+
line-height: $eccgui-size-typo-text-lineheight,
|
|
68
|
+
) !default;
|
|
69
|
+
$heading-01: (
|
|
70
|
+
font-size: rem($eccgui-size-typo-text),
|
|
71
|
+
font-weight: 600,
|
|
83
72
|
line-height: $eccgui-size-typo-text-lineheight,
|
|
84
73
|
) !default;
|
|
85
74
|
$heading-02: (
|
|
86
|
-
font-size:
|
|
75
|
+
font-size: rem($eccgui-size-typo-subtitle),
|
|
87
76
|
font-weight: 600,
|
|
88
77
|
line-height: $eccgui-size-typo-text-lineheight * $eccgui-size-type-levelratio,
|
|
89
78
|
) !default;
|
|
90
79
|
|
|
91
|
-
$
|
|
92
|
-
$
|
|
80
|
+
$layer-01: transparent !default;
|
|
81
|
+
$layer-02: $eccgui-color-workspace-background !default;
|
|
93
82
|
$ui-03: $pt-divider-black !default;
|
|
94
|
-
$
|
|
95
|
-
$
|
|
96
|
-
$
|
|
97
|
-
$
|
|
98
|
-
$
|
|
99
|
-
$hover
|
|
100
|
-
$visited
|
|
101
|
-
$
|
|
102
|
-
|
|
103
|
-
$
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
$
|
|
83
|
+
$layer-accent-01: $ui-03 !default;
|
|
84
|
+
$border-subtle-01: $ui-03 !default;
|
|
85
|
+
$text-primary: $eccgui-color-applicationheader-text !default;
|
|
86
|
+
$text-secondary: $eccgui-color-workspace-text !default;
|
|
87
|
+
$link-primary: $eccgui-color-accent !default;
|
|
88
|
+
$link-primary-hover: $eccgui-color-info-text !default;
|
|
89
|
+
$link-visited: purple !default;
|
|
90
|
+
$hover-ui: $button-background-color-hover !default;
|
|
91
|
+
$background-hover: $hover-ui !default;
|
|
92
|
+
$layer-hover-01: $hover-ui !default;
|
|
93
|
+
$field-hover-01: $hover-ui !default;
|
|
94
|
+
$field-hover-02: $hover-ui !default;
|
|
95
|
+
$disabled-02: rgba($text-primary, $eccgui-opacity-disabled) !default;
|
|
96
|
+
$text-disabled: $disabled-02 !default;
|
|
97
|
+
$icon-disabled: $disabled-02 !default;
|
|
98
|
+
$button-disabled: $disabled-02 !default;
|
|
99
|
+
$border-disabled: $disabled-02 !default;
|
|
100
|
+
$spacing-05: rem($eccgui-size-inline-whitespace) !default;
|
|
101
|
+
$spacing-09: rem($eccgui-size-block-whitespace * 2 * $eccgui-size-type-levelratio) !default;
|
|
102
|
+
|
|
103
|
+
$data-table-zebra-color: $layer-02 !default;
|
|
107
104
|
|
|
108
105
|
// FIXME: for some unknown reasons it is not possible to set the $layer* vars here, for example they are used to color the tables
|
|
109
106
|
|
package/src/index.scss
CHANGED
|
@@ -22,44 +22,14 @@
|
|
|
22
22
|
@import "~@blueprintjs/core/src/common/react-transition";
|
|
23
23
|
@import "~@blueprintjs/core/src/components/icon/icon-mixins";
|
|
24
24
|
@import "~@blueprintjs/core/src/components/icon/icon"; // currently necessary for $icon-classes var
|
|
25
|
-
// currently not needed @import "~@blueprintjs/core/src/reset";
|
|
26
|
-
// currently not needed @import "~@blueprintjs/core/src/typography";
|
|
27
25
|
@import "~@blueprintjs/core/src/accessibility/focus-states";
|
|
28
26
|
// load blueprintjs components
|
|
29
|
-
// currently not needed @import "~@blueprintjs/core/src/components/alert/alert";
|
|
30
|
-
// used in own component @import "~@blueprintjs/core/src/components/breadcrumbs/breadcrumbs";
|
|
31
|
-
// used in own component @import "~@blueprintjs/core/src/components/button/button";
|
|
32
27
|
@import "~@blueprintjs/core/src/components/button/button-group";
|
|
33
|
-
// currently not needed @import "~@blueprintjs/core/src/components/callout/callout";
|
|
34
|
-
// used in own component @import "~@blueprintjs/core/src/components/card/card";
|
|
35
28
|
@import "~@blueprintjs/core/src/components/collapse/collapse";
|
|
36
29
|
@import "~@blueprintjs/core/src/components/context-menu/context-menu";
|
|
37
|
-
@import "~@blueprintjs/core/src/components/divider/divider";
|
|
38
|
-
// used in own component @import "~@blueprintjs/core/src/components/dialog/dialog";
|
|
39
|
-
// currently not needed @import "~@blueprintjs/core/src/components/drawer/drawer";
|
|
40
|
-
@import "~@blueprintjs/core/src/components/editable-text/editable-text";
|
|
41
|
-
// used in own component @import "~@blueprintjs/core/src/components/forms/index";
|
|
42
|
-
// currently not used @import "~@blueprintjs/core/src/components/html-select/html-select";
|
|
43
|
-
// currently not needed @import "~@blueprintjs/core/src/components/html-table/html-table";
|
|
44
|
-
@import "~@blueprintjs/core/src/components/hotkeys/hotkeys";
|
|
45
|
-
// used in own component @import "~@blueprintjs/core/src/components/menu/menu";
|
|
46
|
-
@import "~@blueprintjs/core/src/components/navbar/navbar";
|
|
47
|
-
@import "~@blueprintjs/core/src/components/non-ideal-state/non-ideal-state";
|
|
48
|
-
// used in breadcrumbs component @import "~@blueprintjs/core/src/components/overflow-list/overflow-list";
|
|
49
30
|
@import "~@blueprintjs/core/src/components/overlay/overlay";
|
|
50
|
-
@import "~@blueprintjs/core/src/components/panel-stack/panel-stack";
|
|
51
|
-
// used in own component @import "~@blueprintjs/core/src/components/popover/popover";
|
|
52
31
|
@import "~@blueprintjs/core/src/components/portal/portal";
|
|
53
32
|
@import "~@blueprintjs/core/src/components/progress-bar/progress-bar";
|
|
54
|
-
@import "~@blueprintjs/core/src/components/skeleton/skeleton";
|
|
55
|
-
@import "~@blueprintjs/core/src/components/slider/slider";
|
|
56
|
-
// used in own component @import "~@blueprintjs/core/src/components/spinner/spinner";
|
|
57
|
-
// used in own component @import @import "~@blueprintjs/core/src/components/tabs/tabs";
|
|
58
|
-
// used in own component @import "~@blueprintjs/core/src/components/tag/tag";
|
|
59
|
-
// used in own component @import "~@blueprintjs/core/src/components/tag-input/tag-input";
|
|
60
|
-
// used in own component @import "~@blueprintjs/core/src/components/toast/toast";
|
|
61
|
-
// used in own component @import "~@blueprintjs/core/src/components/tooltip/tooltip";
|
|
62
|
-
// used in own component @import "~@blueprintjs/core/src/components/tree/tree";
|
|
63
33
|
|
|
64
34
|
// -- Carbon Elements ----------------------------------------------------------
|
|
65
35
|
|
|
@@ -74,72 +44,15 @@
|
|
|
74
44
|
// calculate carbon configuration
|
|
75
45
|
@import "./includes/carbon-components/variables";
|
|
76
46
|
// load carbon requsists
|
|
77
|
-
@import "
|
|
78
|
-
@import "~carbon-components/scss/globals/scss/vars";
|
|
79
|
-
@import "~carbon-components/scss/globals/scss/colors";
|
|
80
|
-
@import "~carbon-components/scss/globals/scss/theme";
|
|
81
|
-
@import "~carbon-components/scss/globals/scss/mixins";
|
|
82
|
-
@import "~carbon-components/scss/globals/scss/layout";
|
|
83
|
-
@import "~carbon-components/scss/globals/scss/spacing";
|
|
84
|
-
// currently not needed @import "~carbon-components/scss/globals/scss/typography";
|
|
85
|
-
@import "~carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/import-once/import-once";
|
|
86
|
-
// currently not needed @import "~carbon-components/scss/globals/scss/css--reset";
|
|
87
|
-
// currently not needed @import "~carbon-components/scss/globals/scss/css--font-face";
|
|
88
|
-
// currently not needed @import "~carbon-components/scss/globals/scss/css--helpers";
|
|
89
|
-
// currently not needed @import "~carbon-components/scss/globals/scss/css--body";
|
|
90
|
-
// used in own component @import '~carbon-components/scss/globals/grid/grid';
|
|
47
|
+
@import "./includes/carbon-components/requisits";
|
|
91
48
|
// load carbon components
|
|
92
|
-
|
|
93
|
-
@import "~carbon-components/scss/components/copy-button/copy-button";
|
|
94
|
-
@import "~carbon-components/scss/components/file-uploader/file-uploader";
|
|
95
|
-
// not used @import '~carbon-components/scss/components/checkbox/checkbox';
|
|
96
|
-
@import "~carbon-components/scss/components/combo-box/combo-box";
|
|
97
|
-
// not used @import '~carbon-components/scss/components/radio-button/radio-button';
|
|
98
|
-
@import "~carbon-components/scss/components/toggle/toggle";
|
|
99
|
-
@import "~carbon-components/scss/components/search/search";
|
|
100
|
-
@import "~carbon-components/scss/components/select/select";
|
|
101
|
-
@import "~carbon-components/scss/components/text-input/text-input";
|
|
102
|
-
@import "~carbon-components/scss/components/text-area/text-area";
|
|
103
|
-
@import "~carbon-components/scss/components/number-input/number-input";
|
|
104
|
-
@import "~carbon-components/scss/components/form/form";
|
|
105
|
-
// used in own component @import "~carbon-components/scss/components/link/link";
|
|
106
|
-
@import "~carbon-components/scss/components/list-box/list-box";
|
|
107
|
-
@import "~carbon-components/scss/components/list/list";
|
|
108
|
-
// used in own component @import "~carbon-components/scss/components/data-table/data-table";
|
|
109
|
-
// not used @import '~carbon-components/scss/components/structured-list/structured-list';
|
|
110
|
-
@import "~carbon-components/scss/components/code-snippet/code-snippet";
|
|
111
|
-
@import "~carbon-components/scss/components/overflow-menu/overflow-menu";
|
|
112
|
-
@import "~carbon-components/scss/components/content-switcher/content-switcher";
|
|
113
|
-
@import "~carbon-components/scss/components/date-picker/date-picker";
|
|
114
|
-
@import "~carbon-components/scss/components/dropdown/dropdown";
|
|
115
|
-
// currently not needed @import "~carbon-components/scss/components/loading/loading";
|
|
116
|
-
@import "~carbon-components/scss/components/modal/modal";
|
|
117
|
-
@import "~carbon-components/scss/components/multi-select/multi-select";
|
|
118
|
-
// currently not needed @import '~carbon-components/scss/components/notification/inline-notification';
|
|
119
|
-
// currently not needed @import '~carbon-components/scss/components/notification/toast-notification';
|
|
120
|
-
// not used @import '~carbon-components/scss/components/tooltip/tooltip';
|
|
121
|
-
// currently not needed @import "~carbon-components/scss/components/tabs/tabs";
|
|
122
|
-
// not used @import '~carbon-components/scss/components/tag/tag';
|
|
123
|
-
// used in own component @import '~carbon-components/scss/components/pagination/pagination';
|
|
124
|
-
// used in own component @import "~carbon-components/scss/components/accordion/accordion";
|
|
125
|
-
@import "~carbon-components/scss/components/progress-indicator/progress-indicator";
|
|
126
|
-
// not used @import '~carbon-components/scss/components/breadcrumb/breadcrumb';
|
|
127
|
-
@import "~carbon-components/scss/components/toolbar/toolbar";
|
|
128
|
-
@import "~carbon-components/scss/components/time-picker/time-picker";
|
|
129
|
-
@import "~carbon-components/scss/components/slider/slider";
|
|
130
|
-
@import "~carbon-components/scss/components/tile/tile";
|
|
131
|
-
@import "~carbon-components/scss/components/skeleton/skeleton";
|
|
132
|
-
@import "~carbon-components/scss/components/inline-loading/inline-loading";
|
|
133
|
-
// currently not needed @import '~carbon-components/scss/components/pagination-nav/pagination-nav';
|
|
134
|
-
// used in own component @import '~carbon-components/scss/components/ui-shell/ui-shell'; // experimental
|
|
49
|
+
@import "./includes/carbon-components/components";
|
|
135
50
|
|
|
136
51
|
// == Load element styles ======================================================
|
|
137
52
|
|
|
138
|
-
@import "./components/Typography/typography";
|
|
139
53
|
@import "./components/Application/application";
|
|
140
54
|
@import "./components/Workspace/workspace";
|
|
141
55
|
@import "./components/Grid/grid";
|
|
142
|
-
@import "./components/Icon/icon";
|
|
143
56
|
@import "./components/Menu/menu";
|
|
144
57
|
@import "./components/ContextOverlay/contextoverlay";
|
|
145
58
|
@import "./components/Button/button";
|
|
@@ -172,24 +85,10 @@
|
|
|
172
85
|
@import "./components/Select/select";
|
|
173
86
|
@import "./components/HoverToggler/hovertoggler";
|
|
174
87
|
@import "./components/SimpleTable/simpletable";
|
|
175
|
-
|
|
88
|
+
|
|
89
|
+
@import "./components";
|
|
176
90
|
@import "./extensions/codemirror/codemirror";
|
|
177
91
|
|
|
178
92
|
// == load tweaks ==============================================================
|
|
179
93
|
|
|
180
94
|
@import "./shame";
|
|
181
|
-
|
|
182
|
-
// == Some aftermath ===========================================================
|
|
183
|
-
|
|
184
|
-
// -- Carbon Elements ----------------------------------------------------------
|
|
185
|
-
|
|
186
|
-
// Cycle through all the deprecation reasons, if any exist, that have been
|
|
187
|
-
// accumulated through the @import process.
|
|
188
|
-
@if (length($deprecations--reasons) > 0) {
|
|
189
|
-
$deprecations--message: "";
|
|
190
|
-
@each $reason in $deprecations--reasons {
|
|
191
|
-
$deprecations--message: "#{$deprecations--message} REASON: #{$reason}";
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
@warn $deprecations--message;
|
|
195
|
-
}
|
package/src/index.ts
CHANGED
|
@@ -12,11 +12,6 @@ import AutoSuggestion from "./components/AutoSuggestion/AutoSuggestion";
|
|
|
12
12
|
import { AutoSuggestionList } from "./components/AutoSuggestion/AutoSuggestionList";
|
|
13
13
|
import SingleLineCodeEditor from "./components/AutoSuggestion/SingleLineCodeEditor";
|
|
14
14
|
|
|
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
|
-
|
|
20
15
|
import Grid from "./components/Grid/Grid";
|
|
21
16
|
import GridRow from "./components/Grid/GridRow";
|
|
22
17
|
import GridColumn from "./components/Grid/GridColumn";
|
|
@@ -28,7 +23,6 @@ import WorkspaceMain from "./components/Workspace/WorkspaceMain";
|
|
|
28
23
|
import WorkspaceSide from "./components/Workspace/WorkspaceSide";
|
|
29
24
|
import WorkspaceHeader from "./components/Workspace/WorkspaceHeader";
|
|
30
25
|
|
|
31
|
-
import Icon from "./components/Icon/Icon";
|
|
32
26
|
import IconButton from "./components/Icon/IconButton";
|
|
33
27
|
|
|
34
28
|
import Label from "./components/Label/Label";
|
|
@@ -130,13 +124,14 @@ import InteractionGate from "./components/InteractionGate/InteractionGate";
|
|
|
130
124
|
|
|
131
125
|
import { PropertyName, PropertyValue, PropertyValuePair, PropertyValueList } from "./components/PropertyValuePair";
|
|
132
126
|
|
|
133
|
-
import * as TypographyClassNames from "./components/Typography/classnames";
|
|
134
127
|
import { ProgressBar } from "./components/ProgressBar/ProgressBar";
|
|
135
128
|
import List from "./components/List/List";
|
|
136
129
|
|
|
137
130
|
import * as LegacyReplacements from "./legacy-replacements";
|
|
138
131
|
|
|
139
|
-
import
|
|
132
|
+
import * as TypographyClassNames from "./components/Typography/classnames";
|
|
133
|
+
import { ClassNames as IntentClassNames } from "./common/Intent";
|
|
134
|
+
|
|
140
135
|
import { openInNewTab } from "./common/utils/openInNewTab";
|
|
141
136
|
import decideContrastColorValue from "./common/utils/colorDecideContrastvalue";
|
|
142
137
|
|
|
@@ -164,10 +159,6 @@ export {
|
|
|
164
159
|
AutoSuggestion,
|
|
165
160
|
AutoSuggestionList,
|
|
166
161
|
SingleLineCodeEditor,
|
|
167
|
-
HtmlContentBlock,
|
|
168
|
-
OverflowText,
|
|
169
|
-
WhiteSpaceContainer,
|
|
170
|
-
Highlighter,
|
|
171
162
|
Grid,
|
|
172
163
|
GridRow,
|
|
173
164
|
GridColumn,
|
|
@@ -194,7 +185,6 @@ export {
|
|
|
194
185
|
TableBody,
|
|
195
186
|
TableCell,
|
|
196
187
|
TableHeader,
|
|
197
|
-
Icon,
|
|
198
188
|
IconButton,
|
|
199
189
|
Label,
|
|
200
190
|
Button,
|
|
@@ -260,7 +250,7 @@ export {
|
|
|
260
250
|
LegacyReplacements,
|
|
261
251
|
};
|
|
262
252
|
|
|
263
|
-
export * from "./components
|
|
264
|
-
export * from "./cmem";
|
|
265
|
-
export * from "./extensions";
|
|
253
|
+
export * from "./components";
|
|
266
254
|
export * from "./components/interfaces";
|
|
255
|
+
export * from "./extensions";
|
|
256
|
+
export * from "./cmem";
|