fluent-svelte-extra 1.8.7 → 1.8.8

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.
@@ -79,7 +79,7 @@ function handleEscapeKey({ key }) {
79
79
  bind:this={backdropElement}
80
80
  >
81
81
  <div
82
- class="content-dialog-container"
82
+ class="content-dialog-container {className}"
83
83
  transition:scale|local={{
84
84
  duration: getCSSDuration("--fds-control-fast-duration"),
85
85
  start: 1.05,
@@ -88,7 +88,7 @@ function handleEscapeKey({ key }) {
88
88
  >
89
89
  <div
90
90
  use:forwardEvents
91
- class="content-dialog size-{size} {className}"
91
+ class="content-dialog size-{size}"
92
92
  role="dialog"
93
93
  aria-modal="true"
94
94
  aria-labelledby={title && titleId}
@@ -14,6 +14,7 @@ export let cascadingPlacement = "start";
14
14
  export let hint = undefined;
15
15
  /** Specifies if the item should be styled as selected by the user. */
16
16
  export let selected = false;
17
+ export let cascadingDirection = "right";
17
18
  /** Marks a radio or toggle variant item as checked. */
18
19
  export let checked = false;
19
20
  /** Indents the left padding of the item making it's text inline with the added icons of other items. */
@@ -147,6 +148,8 @@ function handleMouseLeave(e) {
147
148
  style={cascading && cascadingPlacement == "end"
148
149
  ? "bottom: 0px; inset-block-start:unset;"
149
150
  : " --fds-menu-flyout-transition-offset: -50%;"}
151
+ style:left={cascadingDirection == "left" ? "0" : undefined}
152
+ style:transform={cascadingDirection == "left" ? "translateX(-100%)" : undefined}
150
153
  class="menu-flyout-submenu-anchor"
151
154
  >
152
155
  <MenuFlyoutSurface bind:element={subMenuElement} bind:this={menu}>
@@ -7,6 +7,7 @@ declare const __propDef: {
7
7
  cascadingPlacement?: "start" | "end";
8
8
  hint?: string;
9
9
  selected?: boolean;
10
+ cascadingDirection?: "right" | "left";
10
11
  checked?: boolean;
11
12
  indented?: boolean;
12
13
  group?: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fluent-svelte-extra",
3
- "version": "1.8.7",
3
+ "version": "1.8.8",
4
4
  "description": "A faithful implementation of Microsoft's Fluent Design System in Svelte.",
5
5
  "homepage": "https://github.com/OpenAnime/fluent-svelte-extra",
6
6
  "license": "MIT",