@ims360/svelte-ivory 0.4.0 → 0.4.1

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 +1 @@
1
- {"version":3,"file":"colorTheme.svelte.d.ts","sourceRoot":"","sources":["../src/lib/colorTheme.svelte.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAI5C,MAAM,MAAM,oBAAoB,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;AAE/D,cAAM,eAAe;IACjB,OAAO,CAAC,YAAY,CAA0C;;IAY9D,IAAI,KAAK,IAQQ,oBAAoB,CANpC;IAED,IAAI,UAAU,yBAEb;IAED,IAAI,KAAK,CAAC,KAAK,EAAE,oBAAoB,EAepC;IAED,uEAAuE;IACvE,MAAM,EAAE,MAAM,CAcZ;CACL;AAED,eAAO,MAAM,UAAU,iBAAwB,CAAC"}
1
+ {"version":3,"file":"colorTheme.svelte.d.ts","sourceRoot":"","sources":["../src/lib/colorTheme.svelte.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAK5C,MAAM,MAAM,oBAAoB,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;AAE/D,cAAM,eAAe;IACjB,OAAO,CAAC,YAAY,CAA0C;;IAY9D,IAAI,KAAK,IAQQ,oBAAoB,CANpC;IAED,IAAI,UAAU,yBAEb;IAED,IAAI,KAAK,CAAC,KAAK,EAAE,oBAAoB,EAepC;IAED,uEAAuE;IACvE,MAAM,EAAE,MAAM,CAcZ;CACL;AAED,eAAO,MAAM,UAAU,iBAAwB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { browser } from '$app/environment';
2
- import { cookie } from '@ims360/svelte-ivory/utils/functions';
2
+ import { cookie } from './utils/functions';
3
3
  const COOKIE_THEME_KEY = 'theme';
4
4
  class ThemeController {
5
5
  currentTheme = $state('system');
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import { ColorTheme, type ColorThemePreference } from '../../colorTheme.svelte';
3
- import { merge } from '@ims360/svelte-ivory/utils/functions';
3
+ import { merge } from '../../utils/functions';
4
4
  import { Icon, Monitor, Moon, Sun } from '@lucide/svelte';
5
5
  import type { ClassValue } from 'svelte/elements';
6
6
 
@@ -0,0 +1,8 @@
1
+ import type { ClassValue } from 'svelte/elements';
2
+ type Props = {
3
+ class: ClassValue;
4
+ };
5
+ declare const ThemeSelect: import("svelte").Component<Props, {}, "">;
6
+ type ThemeSelect = ReturnType<typeof ThemeSelect>;
7
+ export default ThemeSelect;
8
+ //# sourceMappingURL=ThemeSelect.svelte.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThemeSelect.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/components/basic/ThemeSelect.svelte.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAG9C,KAAK,KAAK,GAAG;IACT,KAAK,EAAE,UAAU,CAAC;CACrB,CAAC;AA6CN,QAAA,MAAM,WAAW,2CAAwC,CAAC;AAC1D,KAAK,WAAW,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AAClD,eAAe,WAAW,CAAC"}
@@ -2,5 +2,6 @@ export { default as Checkbox, type CheckboxProps } from './checkbox/Checkbox.sve
2
2
  export { default as Element, type AnchorAttributes, type ButtonAttributes, type ElementProps } from './Element.svelte';
3
3
  export { default as MarkedText, type MarkedTextProps } from './MarkedText.svelte';
4
4
  export { default as Textarea } from './Textarea.svelte';
5
+ export { default as ThemeSelect } from './ThemeSelect.svelte';
5
6
  export { default as Toggle, type ToggleProps } from './toggle/Toggle.svelte';
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/components/basic/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAC;AACrF,OAAO,EACH,OAAO,IAAI,OAAO,EAClB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAClF,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/components/basic/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAC;AACrF,OAAO,EACH,OAAO,IAAI,OAAO,EAClB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAClF,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAC"}
@@ -2,4 +2,5 @@ export { default as Checkbox } from './checkbox/Checkbox.svelte';
2
2
  export { default as Element } from './Element.svelte';
3
3
  export { default as MarkedText } from './MarkedText.svelte';
4
4
  export { default as Textarea } from './Textarea.svelte';
5
+ export { default as ThemeSelect } from './ThemeSelect.svelte';
5
6
  export { default as Toggle } from './toggle/Toggle.svelte';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ims360/svelte-ivory",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "keywords": [
5
5
  "svelte"
6
6
  ],
@@ -124,4 +124,4 @@
124
124
  "@sveltejs/kit": "^2.49.5",
125
125
  "svelte": "^5.46.4"
126
126
  }
127
- }
127
+ }
@@ -1,6 +1,6 @@
1
1
  import { browser } from '$app/environment';
2
- import { cookie } from '@ims360/svelte-ivory/utils/functions';
3
2
  import type { Handle } from '@sveltejs/kit';
3
+ import { cookie } from './utils/functions';
4
4
 
5
5
  const COOKIE_THEME_KEY = 'theme';
6
6
 
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import { ColorTheme, type ColorThemePreference } from '$lib/colorTheme.svelte';
3
- import { merge } from '@ims360/svelte-ivory/utils/functions';
3
+ import { merge } from '$lib/utils/functions';
4
4
  import { Icon, Monitor, Moon, Sun } from '@lucide/svelte';
5
5
  import type { ClassValue } from 'svelte/elements';
6
6
 
@@ -7,4 +7,5 @@ export {
7
7
  } from './Element.svelte';
8
8
  export { default as MarkedText, type MarkedTextProps } from './MarkedText.svelte';
9
9
  export { default as Textarea } from './Textarea.svelte';
10
+ export { default as ThemeSelect } from './ThemeSelect.svelte';
10
11
  export { default as Toggle, type ToggleProps } from './toggle/Toggle.svelte';
@@ -1,8 +0,0 @@
1
- import type { ClassValue } from 'svelte/elements';
2
- type Props = {
3
- class: ClassValue;
4
- };
5
- declare const ThemeController: import("svelte").Component<Props, {}, "">;
6
- type ThemeController = ReturnType<typeof ThemeController>;
7
- export default ThemeController;
8
- //# sourceMappingURL=ThemeController.svelte.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ThemeController.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/components/basic/ThemeController.svelte.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAG9C,KAAK,KAAK,GAAG;IACT,KAAK,EAAE,UAAU,CAAC;CACrB,CAAC;AA6CN,QAAA,MAAM,eAAe,2CAAwC,CAAC;AAC9D,KAAK,eAAe,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;AAC1D,eAAe,eAAe,CAAC"}