Skip to content

Commit 548d860

Browse files
committed
Merge tag 'v23.8.0' into develop
tag final release v23.8.0
2 parents d7c8c79 + 79996c5 commit 548d860

12 files changed

Lines changed: 82 additions & 47 deletions

File tree

CHANGELOG.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,31 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
66

77
## [Unreleased]
88

9+
## [23.8.0] - 2024-08-19
10+
911
### Added
1012

1113
- `<ApplicationContainer />`:
12-
- monitor application wide dropzones for dragged elements via data attributes attached to body element containing the data transfer type of drag over events.
14+
- `monitorDropzonesFor` property can be used to monitor application wide dropzones for dragged elements via data attributes attached to body element containing the data transfer type of drag over events.
1315
- `<ReactFlow />`
1416
- `dropzoneFor` property can be used to mark react flow canvas as matching area to drop dragged elements.
1517
- `<Accordion />`, `<AccordionItem />`
1618
- `whitespaceSize` property to define how much whitespace is used on top and bottom inside the header and content of an accordion item.
1719
- `separationSize` property defines how much space is used for the separation between an accordion item and the next one.
20+
- class name prefixes are now available by variables with more readable names:
21+
- BlueprintJS: `$prefix-blueprintjs` (current value is `bp5`)
22+
- Carbon Design System: `$prefix-carbon` (current value is `cds`)
23+
- eccenca GUI elements: `$prefix-eccgui` (current value is `eccgui`)
1824

1925
### Fixed
2026

21-
- `<TextArea />`
22-
- improve visual alignment to `TextField` regarding whitespace and colors
27+
- `<ElapsedDateTimeDisplay />`
28+
- negative values are not shown (e.g. in case server and browser clocks are apart)
2329

2430
### Changed
2531

32+
- `<TextArea />`
33+
- improve visual alignment to `TextField` regarding whitespace and colors
2634
- basic styles for Uppy widget were improved and moved to its own component folder
2735

2836
### Deprecated

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@eccenca/gui-elements",
33
"description": "GUI elements based on other libraries, usable in React application, written in Typescript.",
4-
"version": "23.7.0",
4+
"version": "23.8.0",
55
"license": "Apache-2.0",
66
"homepage": "https://github.com/eccenca/gui-elements",
77
"bugs": "https://github.com/eccenca/gui-elements/issues",
@@ -166,7 +166,10 @@
166166
"**/word-wrap": "^1.2.4",
167167
"**/webpack-dev-middleware": "^6.1.2",
168168
"**/braces": "^3.0.3",
169-
"**/ws": "^8.17.1"
169+
"**/ws": "^8.17.1",
170+
"**/ejs": "^3.1.10",
171+
"**/tar": "^6.2.1",
172+
"**/express": "^4.19.2"
170173
},
171174
"husky": {
172175
"hooks": {

src/cmem/react-flow/_canvas.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
.eccgui-graphviz__canvas--draghover {
22
body[data-monitor-dropzone~="application/reactflow"] &[data-dropzone-for~="application/reactflow"],
33
body[data-monitor-dropzone~="Files"] &[data-dropzone-for~="Files"] {
4-
background-color: rgba($eccgui-color-accent, $eccgui-opacity-disabled);
4+
background-color: rgba($eccgui-color-accent, $eccgui-opacity-ghostly);
55
box-shadow: 0 0 $eccgui-size-block-whitespace $eccgui-color-accent inset;
66

77
& > * {
8-
opacity: $eccgui-opacity-muted;
8+
opacity: $eccgui-opacity-narrow;
99
}
1010

1111
.react-flow__node {

src/components/Accordion/Stories/Accordion.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const TemplateIcons: StoryFn<typeof Accordion> = (args) => <Accordion {...args}
2828
export const Default = TemplateIcons.bind({});
2929
Default.args = {
3030
children: [
31-
<AccordionItem {...AccordionStoryItem.args} label="Accordion item 1" />,
31+
<AccordionItem {...AccordionStoryItem.args} label="Accordion item 1" fullWidth />,
3232
<AccordionItem {...AccordionStoryItem.args} label="Accordion item 2 (elevated)" elevated />,
3333
<AccordionItem {...AccordionStoryItem.args} label="Accordion item 3 (initially opened)" open />,
3434
<AccordionItem {...AccordionStoryItem.args} label="Accordion item 4 (disabled)" disabled />,

src/components/Accordion/accordion.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,9 @@ $eccgui-size-accordion-separation: $eccgui-size-block-whitespace * 0.5 !default;
152152
}
153153

154154
.#{$eccgui}-accordion__item--condensed:not(.#{$eccgui}-accordion__item--fullwidth) &,
155-
.#{$prefix}--accordion--start.#{$eccgui}-accordion__container--global-contentspace-none &,
155+
.#{$prefix}--accordion--start.#{$eccgui}-accordion__container--global-contentspace-none
156+
:not(.#{$eccgui}-accordion__item--fullwidth)
157+
&,
156158
.#{$prefix}--accordion--start
157159
.#{$eccgui}-accordion__item--contentspace-none:not(.#{$eccgui}-accordion__item--fullwidth)
158160
& {

src/components/Application/ApplicationContainer.tsx

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,22 @@ import { CLASSPREFIX as eccgui } from "../../configuration/constants";
55

66
import { useDropzoneMonitor } from "./helper";
77

8-
export type ApplicationContainerProps = React.HTMLAttributes<HTMLDivElement>;
8+
export interface ApplicationContainerProps extends React.HTMLAttributes<HTMLDivElement> {
9+
/**
10+
* If set then the `element` is extended automatically by a `monitor-dropzone` data attribute.
11+
* This need to match with a `dropzone-for` data attribute on available dropzones for dragged elements.
12+
*/
13+
monitorDropzonesFor?: string[];
14+
}
915

10-
export const ApplicationContainer = ({ children, className = "", ...otherDivProps }: ApplicationContainerProps) => {
16+
export const ApplicationContainer = ({
17+
children,
18+
className = "",
19+
monitorDropzonesFor = [],
20+
...otherDivProps
21+
}: ApplicationContainerProps) => {
1122
const containerRef = React.useRef<any>(null);
12-
useDropzoneMonitor();
23+
useDropzoneMonitor(monitorDropzonesFor);
1324

1425
return (
1526
<OverlaysProvider>

src/components/Application/_dropzone.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ body[data-monitor-dropzone~="Files"] .uppy-DragDrop--isDragDropSupported {
2222

2323
& > * {
2424
pointer-events: all;
25-
opacity: $eccgui-opacity-narrow;
25+
opacity: $eccgui-opacity-regular;
2626
}
2727
}
2828

src/components/Application/helper.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,15 @@ export const useApplicationHeaderOverModals = (elevate: boolean, className: stri
2525
* Sets different data attributes to the body element.
2626
* They can be used to apply styling rules.
2727
*/
28-
export const useDropzoneMonitor = () => {
28+
export const useDropzoneMonitor = (enabledTypes: string[]) => {
2929
React.useEffect(() => {
3030
const monitor = window.document.body;
3131

3232
const addMonitor = (event: DragEvent) => {
3333
const types = event.dataTransfer?.types || [];
34-
if (types.length > 0 && !monitor.dataset.monitorDropzone) {
35-
monitor.dataset.monitorDropzone = types.join(" ");
34+
const monitorTypes = [...new Set(types.filter((type) => enabledTypes.includes(type)))];
35+
if (monitorTypes.length > 0 && !monitor.dataset.monitorDropzone) {
36+
monitor.dataset.monitorDropzone = monitorTypes.join(" ");
3637
}
3738
event.preventDefault();
3839
};

src/configuration/_variables.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ $eccgui-opacity-regular: 1 !default;
7272
$eccgui-opacity-narrow: 0.8 !default;
7373
$eccgui-opacity-muted: 0.61 !default;
7474
$eccgui-opacity-disabled: 0.39 !default;
75+
$eccgui-opacity-ghostly: 0.2 !default;
7576
$eccgui-opacity-invisible: 0 !default;
7677

7778
// -- Configuration stack of z-indexes -----------------------------------------

src/extensions/uppy/_fileupload.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ $eccgui-color-fileupload-text: inherit;
3636
}
3737

3838
.uppy-DragDrop--isDraggingOver.uppy-DragDrop--isDragDropSupported {
39-
background-color: rgba($eccgui-color-accent, $eccgui-opacity-disabled);
39+
background-color: rgba($eccgui-color-accent, $eccgui-opacity-ghostly);
4040
box-shadow: 0 0 $eccgui-size-block-whitespace $eccgui-color-accent inset;
4141

4242
& > * {
4343
color: $eccgui-color-accent-contrast;
44-
opacity: $eccgui-opacity-muted;
44+
opacity: $eccgui-opacity-narrow;
4545
fill: currentcolor;
4646
}
4747
}

0 commit comments

Comments
 (0)