fluent-svelte-extra 1.0.7 → 1.0.9

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.
@@ -1,8 +1,11 @@
1
1
  <script>
2
+ import { createEventDispatcher } from "svelte"
3
+
4
+ let dispatch = createEventDispatcher()
2
5
  export let direction;
3
6
  </script>
4
7
 
5
- <div id="flipper">
8
+ <div id="flipper" on:click={() => dispatch("click", null)}>
6
9
  {#if direction === "right"}
7
10
  <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16px" height="16px" viewBox="0 0 16 16" version="1.1">
8
11
  <g id="surface1">
@@ -4,6 +4,8 @@
4
4
  export default class Flipper extends SvelteComponentTyped<{
5
5
  direction: any;
6
6
  }, {
7
+ click: CustomEvent<any>;
8
+ } & {
7
9
  [evt: string]: CustomEvent<any>;
8
10
  }, {}> {
9
11
  }
@@ -16,6 +18,8 @@ declare const __propDef: {
16
18
  direction: any;
17
19
  };
18
20
  events: {
21
+ click: CustomEvent<any>;
22
+ } & {
19
23
  [evt: string]: CustomEvent<any>;
20
24
  };
21
25
  slots: {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fluent-svelte-extra",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
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",
package/theme.css CHANGED
@@ -172,7 +172,7 @@
172
172
  --fds-layer-on-accent-background-default: var(--fds-layer-on-acrylic-background-default);
173
173
 
174
174
  /* Solid Background */
175
- --fds-solid-background-base: #000;
175
+ --fds-solid-background-base: #111;
176
176
  --fds-solid-background-secondary: hsl(0, 0%, 11%);
177
177
  --fds-solid-background-tertiary: hsl(0, 0%, 16%);
178
178
  --fds-solid-background-quarternary: hsl(0, 0%, 17%);
@@ -348,7 +348,7 @@
348
348
  --fds-layer-on-accent-background-default: var(--fds-layer-on-acrylic-background-default);
349
349
 
350
350
  /* Solid Background */
351
- --fds-solid-background-base: #000;
351
+ --fds-solid-background-base: #111;
352
352
  --fds-solid-background-secondary: hsl(0, 0%, 11%);
353
353
  --fds-solid-background-tertiary: hsl(0, 0%, 16%);
354
354
  --fds-solid-background-quarternary: hsl(0, 0%, 17%);