fluid-ui-svelte 0.1.3 → 0.1.5

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.
@@ -4,12 +4,14 @@
4
4
  import type { Snippet } from "svelte";
5
5
  const {
6
6
  class: className,
7
+ triggerClass,
7
8
  contentClass,
8
9
  overrideDefaultStyling = false,
9
10
  dropdownTrigger,
10
11
  children,
11
12
  }: {
12
13
  class?: string;
14
+ triggerClass?: string;
13
15
  contentClass?: string;
14
16
  overrideDefaultStyling?: boolean;
15
17
  dropdownTrigger: Snippet<[isOpen: boolean]>;
@@ -21,6 +23,7 @@
21
23
 
22
24
  <Container class={(overrideDefaultStyling ? "" : "fluid-dropdown") + (className ? ` ${className}` : "")} overrideDefaultStyling={true}>
23
25
  <Button
26
+ class={(overrideDefaultStyling ? "" : "fluid-dropdown-trigger") + (triggerClass ? ` ${triggerClass}` : "")}
24
27
  overrideDefaultStyling
25
28
  onclick={(e: Event) => {
26
29
  isOpen = !isOpen;
@@ -28,7 +31,7 @@
28
31
  >
29
32
  {@render dropdownTrigger(isOpen)}
30
33
  </Button>
31
- <Container class={(overrideDefaultStyling ? "" : "fluid-dropdown-content") + (contentClass ? ` ${contentClass}` : "")}>
34
+ <Container overrideDefaultStyling class={(overrideDefaultStyling ? "" : "fluid-dropdown-content") + (contentClass ? ` ${contentClass}` : "")}>
32
35
  {#if isOpen}
33
36
  {@render children()}
34
37
  {/if}
@@ -1,6 +1,7 @@
1
1
  import type { Snippet } from "svelte";
2
2
  declare const Dropdown: import("svelte").Component<{
3
3
  class?: string;
4
+ triggerClass?: string;
4
5
  contentClass?: string;
5
6
  overrideDefaultStyling?: boolean;
6
7
  dropdownTrigger: Snippet<[isOpen: boolean]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fluid-ui-svelte",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "author": {
5
5
  "name": "Emre Ayaz",
6
6
  "email": "emreayaz@frostium.io",