Releases: kurrent-io/Design-System
@eventstore-ui/components@1.2.0
Minor Changes
6314c62- Prevent mouse interractions on readonly es-progressions
@eventstore-ui/icon-manager@1.0.1
Patch Changes
fe286ee- Fixed icon-manager not working due to incorrect es-modules.
@eventstore-ui/router@1.0.2
Patch Changes
03c2446- Fix inconsistent scroll behaviour when setting / deleting searchParams
@eventstore-ui/layout@1.1.1
Patch Changes
af6da01- Prevent grid blowout on layout grid.
@eventstore-ui/router@1.0.1
Patch Changes
5cc5604- Fix bug where actions sometimes wouldn't trigger in some contexts
@eventstore-ui/layout@1.1.0
Minor Changes
-
de39237- New componentes-sized-panelhas been added that can be placed in any layout area, with a custom start and end position. It will set the size of the corresponding area to its own size, much like howes-sidebarworks.The following props are available:
Property Attribute Description Type Default areaareaWhere to place the panel. "banner" | "cookie" | "panel" | "sidebar" | "toolbar"'panel'endendWhere to end the panel, inclusive. Must be the opposite axis to the area. "banner" | "body" | "cookie" | "edge" | "panel" | "sidebar" | "toolbar" | undefinedundefinedstartstartWhere to start the panel, inclusive. Must be the opposite axis to the area. "banner" | "body" | "cookie" | "edge" | "panel" | "sidebar" | "toolbar" | undefinedundefined -
e93f6bd-es-panelcan now be placed in any layout area, with a custom start and end position.
You can also set aclosedModeto allow the panel to collapse when dragged past theclosedSize.
It remains backwards compatible with previous usage.The following new props have been added:
Property Attribute Description Type Default areaareaWhere to place the panel. "banner" | "cookie" | "panel" | "sidebar" | "toolbar"'panel'closeAtclose-atWhen to snap the panel closed (if a closed mode is set). number100closedModeclosed-modeHow the panel should respond to being closed. "collapsed" | "none"'none'closedSizeclosed-sizeHow large the panel should be when closed. number34defaultSizedefault-sizeWhat size to default to. number200endendWhere to end the panel, inclusive. Must be the opposite axis to the area. "banner" | "body" | "cookie" | "edge" | "panel" | "sidebar" | "toolbar" | undefinedundefinedminimumSizeminimum-sizeThe minimum possible size to resize to. number100rememberModeremember-modeIf the last mode of the panel should be kept in local storage. boolean | string | undefinedundefinedrememberSizeremember-sizeIf the size of the panel should be kept in local storage. boolean | string | undefinedundefinedstartstartWhere to start the panel, inclusive. Must be the opposite axis to the area. "banner" | "body" | "cookie" | "edge" | "panel" | "sidebar" | "toolbar" | undefinedundefined
@eventstore-ui/utils@1.1.0
Minor Changes
e54766e- New utility function getScrollParent
Traverses the dom tree including shadow doms to find the first element that scrolls.
@eventstore-ui/layout@1.0.1
@eventstore-ui/fields@1.0.1
@eventstore-ui/components@1.1.0
Minor Changes
-
e54766e- New props on es-popoverProperty Attribute Description Type Default closeOnScrollEscapeclose-on-scroll-escapeIf the popover should request to close when the attachment element scrolls out of view booleanfalsehideOnScrollEscapehide-on-scroll-escapeIf the popover should hide itself when the attachment element scrolls out of view booleantrue -
3e6c5b1- Previously, a popover would have zindex of 1000 and modals a zindex of 3100. As popovers and modals appear outside of the document flow, these zindexes are relative to the base of the document.This usually worked out fine, as if you had an open popover and opened a modal, it would appear behind it:
┌────────────────┐ │ Modal │ │ │ │ zindex: 3100 ├─────────┐ │ │ popover │ │ │ │ └───────────┬────┘ │ │ zindex: 1000 │ └──────────────┘However, if you placed a popover inside a modal, it would appear behind it's parent modal:
┌────────────────┐ │ Modal │ │ │ │ zindex: 3100 ├─────────┐ │ │ popover │ ┌────┤ │ │ │ └─────────┬─┬────┘ │ │ popover │ │ zindex: 1000 │ │ in modal │ └──────────────┘ │ │ │ zindex: 4100 │ └──────────────┘In this case, you would have to handle this yourself, and set the zindex manually.
This update causes nested popovers and modals to stack their zindexes:
┌────────────────┐ │ Modal │ │ │ │ zindex: 3100 ├─────────┐ │ │ popover │ ┌────┴─────────┐ │ │ │ ├─┬────┘ │ │ popover │ │ zindex: 1000 │ │ in modal │ └──────────────┘ │ │ │ zindex: 4100 │ └──────────────┘This means that you don't need to keep track of z-indexes yourself, and allow you nest freely.
It is also possible to manually increase the z-index stack by setting the css-var
--zindex-base. This is useful for places where you have a z-index and may want a dropdown to appear, such as a header.
Patch Changes
1f46d53- [bug] Preventes-popoverfrom losing attachment when layout is changed (e.g. resizinges-panel)