@joyautomation/salt 0.0.9 → 0.0.10

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.
package/dist/client.js CHANGED
@@ -1,12 +1,12 @@
1
1
  export function setTheme(form) {
2
- if (form?.context === 'setTheme') {
3
- if (form?.theme === 'themeDark') {
4
- document.body.classList.add('themeDark');
5
- document.body.classList.remove('themeLight');
2
+ if (form?.context === "setTheme") {
3
+ if (form?.theme === "themeDark") {
4
+ document.body.classList.add("themeDark");
5
+ document.body.classList.remove("themeLight");
6
6
  }
7
7
  else {
8
- document.body.classList.remove('themeDark');
9
- document.body.classList.add('themeLight');
8
+ document.body.classList.remove("themeDark");
9
+ document.body.classList.add("themeLight");
10
10
  }
11
11
  }
12
12
  }
@@ -0,0 +1,16 @@
1
+ <script>
2
+ export let size = '1.5rem'
3
+ </script>
4
+
5
+ <svg
6
+ style:height={size}
7
+ style:width={size}
8
+ xmlns="http://www.w3.org/2000/svg"
9
+ fill="none"
10
+ viewBox="0 0 24 24"
11
+ stroke-width="1.5"
12
+ stroke="currentColor"
13
+ class="size-6"
14
+ >
15
+ <path stroke-linecap="round" stroke-linejoin="round" d="M5 12h14" />
16
+ </svg>
@@ -0,0 +1,23 @@
1
+ /** @typedef {typeof __propDef.props} MinusProps */
2
+ /** @typedef {typeof __propDef.events} MinusEvents */
3
+ /** @typedef {typeof __propDef.slots} MinusSlots */
4
+ export default class Minus extends SvelteComponent<{
5
+ size?: string | undefined;
6
+ }, {
7
+ [evt: string]: CustomEvent<any>;
8
+ }, {}> {
9
+ }
10
+ export type MinusProps = typeof __propDef.props;
11
+ export type MinusEvents = typeof __propDef.events;
12
+ export type MinusSlots = typeof __propDef.slots;
13
+ import { SvelteComponent } from "svelte";
14
+ declare const __propDef: {
15
+ props: {
16
+ size?: string | undefined;
17
+ };
18
+ events: {
19
+ [evt: string]: CustomEvent<any>;
20
+ };
21
+ slots: {};
22
+ };
23
+ export {};
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
- export * as actions from './actions.js';
2
- export * as client from './client.js';
3
- export { default as ThemeButton } from './components/ThemeButton.svelte';
4
- export { default as Toast } from './components/Toast.svelte';
5
- export * as icons from './components/icons/index.js';
1
+ export * as actions from "./actions.js";
2
+ export * as client from "./client.js";
3
+ export { default as Toggle } from "./components/Toggle.svelte";
4
+ export { default as ThemeButton } from "./components/ThemeButton.svelte";
5
+ export { default as Toast } from "./components/Toast.svelte";
6
+ export * as icons from "./components/icons/index.js";
package/dist/index.js CHANGED
@@ -1,5 +1,6 @@
1
- export * as actions from './actions.js';
2
- export * as client from './client.js';
3
- export { default as ThemeButton } from './components/ThemeButton.svelte';
4
- export { default as Toast } from './components/Toast.svelte';
5
- export * as icons from './components/icons/index.js';
1
+ export * as actions from "./actions.js";
2
+ export * as client from "./client.js";
3
+ export { default as Toggle } from "./components/Toggle.svelte";
4
+ export { default as ThemeButton } from "./components/ThemeButton.svelte";
5
+ export { default as Toast } from "./components/Toast.svelte";
6
+ export * as icons from "./components/icons/index.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joyautomation/salt",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "exports": {
5
5
  ".": [
6
6
  "./dist/index.js",