@ims360/svelte-ivory 0.2.3 → 0.3.0

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.
Files changed (52) hide show
  1. package/dist/components/ai/AiMessage.svelte +1 -1
  2. package/dist/components/ai/Chat.svelte +1 -1
  3. package/dist/components/ai/Markdown.svelte +1 -1
  4. package/dist/components/ai/UserMessage.svelte +1 -1
  5. package/dist/components/basic/checkbox/Checkbox.svelte +1 -1
  6. package/dist/components/basic/toggle/Toggle.svelte +1 -1
  7. package/dist/components/inputs/ColorInput.svelte +1 -1
  8. package/dist/components/inputs/Input.svelte +1 -2
  9. package/dist/components/inputs/Input.svelte.d.ts.map +1 -1
  10. package/dist/components/inputs/issues/FormIssues.svelte +1 -1
  11. package/dist/components/layout/Heading.svelte +1 -1
  12. package/dist/components/layout/dialog/Dialog.svelte +1 -1
  13. package/dist/components/layout/drawer/Drawer.svelte +1 -1
  14. package/dist/components/layout/modal/Modal.svelte +5 -2
  15. package/dist/components/layout/modal/Modal.svelte.d.ts.map +1 -1
  16. package/dist/components/layout/tabs/Tab.svelte +1 -2
  17. package/dist/components/layout/tabs/Tab.svelte.d.ts.map +1 -1
  18. package/dist/components/layout/tooltip/Tooltip.svelte +1 -1
  19. package/dist/components/table/Column.svelte +1 -1
  20. package/dist/components/table/Table.svelte +1 -1
  21. package/dist/components/table/VirtualList.svelte +1 -1
  22. package/dist/theme.svelte.d.ts +3 -0
  23. package/dist/theme.svelte.d.ts.map +1 -1
  24. package/dist/utils/functions/index.d.ts +1 -0
  25. package/dist/utils/functions/index.d.ts.map +1 -1
  26. package/dist/utils/functions/index.js +1 -0
  27. package/dist/utils/functions/merge.d.ts.map +1 -0
  28. package/package.json +4 -4
  29. package/src/lib/components/ai/AiMessage.svelte +1 -1
  30. package/src/lib/components/ai/Chat.svelte +1 -1
  31. package/src/lib/components/ai/Markdown.svelte +1 -1
  32. package/src/lib/components/ai/UserMessage.svelte +1 -1
  33. package/src/lib/components/basic/checkbox/Checkbox.svelte +1 -1
  34. package/src/lib/components/basic/toggle/Toggle.svelte +1 -1
  35. package/src/lib/components/inputs/ColorInput.svelte +1 -1
  36. package/src/lib/components/inputs/Input.svelte +1 -2
  37. package/src/lib/components/inputs/issues/FormIssues.svelte +1 -1
  38. package/src/lib/components/layout/Heading.svelte +1 -1
  39. package/src/lib/components/layout/dialog/Dialog.svelte +1 -1
  40. package/src/lib/components/layout/drawer/Drawer.svelte +1 -1
  41. package/src/lib/components/layout/modal/Modal.svelte +5 -2
  42. package/src/lib/components/layout/tabs/Tab.svelte +1 -2
  43. package/src/lib/components/layout/tooltip/Tooltip.svelte +1 -1
  44. package/src/lib/components/table/Column.svelte +1 -1
  45. package/src/lib/components/table/Table.svelte +1 -1
  46. package/src/lib/components/table/VirtualList.svelte +1 -1
  47. package/src/lib/theme.svelte.ts +3 -0
  48. package/src/lib/utils/functions/index.ts +1 -0
  49. package/dist/utils/merge.d.ts.map +0 -1
  50. /package/dist/utils/{merge.d.ts → functions/merge.d.ts} +0 -0
  51. /package/dist/utils/{merge.js → functions/merge.js} +0 -0
  52. /package/src/lib/utils/{merge.ts → functions/merge.ts} +0 -0
@@ -5,7 +5,7 @@
5
5
  -->
6
6
 
7
7
  <script lang="ts">
8
- import { merge } from '../../utils/merge';
8
+ import { merge } from '../../utils/functions';
9
9
  import { ThumbsDown, ThumbsUp } from '@lucide/svelte';
10
10
  import type { Snippet } from 'svelte';
11
11
  import type { ClassValue } from 'svelte/elements';
@@ -6,7 +6,7 @@
6
6
  -->
7
7
 
8
8
  <script lang="ts" module>
9
- import { merge } from '../../utils/merge';
9
+ import { merge } from '../../utils/functions';
10
10
  import { tick, type Snippet } from 'svelte';
11
11
  import type { ClassValue } from 'svelte/elements';
12
12
  import AiMessage from './AiMessage.svelte';
@@ -5,7 +5,7 @@
5
5
  -->
6
6
 
7
7
  <script lang="ts">
8
- import { merge } from '../../utils/merge';
8
+ import { merge } from '../../utils/functions';
9
9
  import DomPurify from 'dompurify';
10
10
  import { marked } from 'marked';
11
11
  import type { ClassValue } from 'svelte/elements';
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import { merge } from '../../utils/merge';
2
+ import { merge } from '../../utils/functions';
3
3
  import type { Snippet } from 'svelte';
4
4
  import type { ClassValue } from 'svelte/elements';
5
5
  import AttachedFile from './AttachedFile.svelte';
@@ -1,7 +1,7 @@
1
1
  <script lang="ts" module>
2
2
  import { theme } from '../../../theme.svelte';
3
3
  import type { IvoryComponent } from '../../../types';
4
- import { merge } from '../../../utils/merge';
4
+ import { merge } from '../../../utils/functions';
5
5
  import { Check, type Icon as LucideIcon, Minus } from '@lucide/svelte';
6
6
  import clsx from 'clsx';
7
7
  import type { ClassValue } from 'svelte/elements';
@@ -1,6 +1,6 @@
1
1
  <script lang="ts" module>
2
2
  import type { IvoryComponent } from '../../../types';
3
- import { merge } from '../../../utils/merge';
3
+ import { merge } from '../../../utils/functions';
4
4
  import type { Snippet } from 'svelte';
5
5
  import type { ClassValue } from 'svelte/elements';
6
6
 
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import { merge } from '../../utils/merge';
2
+ import { merge } from '../../utils/functions';
3
3
  import Input, { INPUT_UNSET_OUTLINE, type InputProps } from './Input.svelte';
4
4
 
5
5
  let props: InputProps<string> = $props();
@@ -1,7 +1,6 @@
1
1
  <script lang="ts" module>
2
2
  import { theme } from '../../theme.svelte';
3
- import { pseudoRandomId } from '../../utils/functions';
4
- import { merge } from '../../utils/merge';
3
+ import { merge, pseudoRandomId } from '../../utils/functions';
5
4
  import type { RemoteFormField, RemoteFormFieldValue } from '@sveltejs/kit';
6
5
  import type { Snippet } from 'svelte';
7
6
  import type { ClassValue } from 'svelte/elements';
@@ -1 +1 @@
1
- {"version":3,"file":"Input.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/components/inputs/Input.svelte.ts"],"names":[],"mappings":"AAMI,OAAO,KAAK,EAAE,eAAe,EAAE,oBAAoB,EAAE,M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1
  <script lang="ts">
2
2
  import { theme } from '../../../theme.svelte';
3
- import { merge } from '../../../utils/merge';
3
+ import { merge } from '../../../utils/functions';
4
4
  import { TriangleAlert } from '@lucide/svelte';
5
5
  import type { RemoteFormIssue } from '@sveltejs/kit';
6
6
  import type { ClassValue } from 'svelte/elements';
@@ -1,7 +1,7 @@
1
1
  <script lang="ts" module>
2
2
  import { theme } from '../../theme.svelte';
3
3
  import type { IvoryComponent } from '../../types';
4
- import { merge } from '../../utils/merge';
4
+ import { merge } from '../../utils/functions';
5
5
  import type { ClassValue } from 'svelte/elements';
6
6
 
7
7
  export interface HeadingProps extends IvoryComponent<HTMLHeadingElement> {
@@ -1,7 +1,7 @@
1
1
  <script lang="ts" module>
2
2
  import { theme } from '../../../theme.svelte';
3
3
  import type { IvoryComponent, TransitionProps } from '../../../types';
4
- import { merge } from '../../../utils/merge';
4
+ import { merge } from '../../../utils/functions';
5
5
  import { onMount, tick } from 'svelte';
6
6
  import type { MouseEventHandler } from 'svelte/elements';
7
7
  import { fade } from 'svelte/transition';
@@ -1,6 +1,6 @@
1
1
  <script lang="ts" module>
2
2
  import type { TransitionProps } from '../../../types';
3
- import { merge } from '../../../utils/merge';
3
+ import { merge } from '../../../utils/functions';
4
4
  import { X } from '@lucide/svelte';
5
5
  import type { Snippet } from 'svelte';
6
6
  import { fly } from 'svelte/transition';
@@ -2,7 +2,7 @@
2
2
  import type { Variant } from '../../..';
3
3
  import { theme } from '../../../theme.svelte';
4
4
  import type { TransitionProps } from '../../../types';
5
- import { merge } from '../../../utils/merge';
5
+ import { merge } from '../../../utils/functions';
6
6
  import { X } from '@lucide/svelte';
7
7
  import { type Snippet } from 'svelte';
8
8
  import type { ClassValue, MouseEventHandler } from 'svelte/elements';
@@ -85,7 +85,10 @@
85
85
  onclose={() => {
86
86
  if (closeOnOutsideClick) close();
87
87
  }}
88
- class="flex h-full w-full flex-col items-center justify-start p-8 lg:p-12 xl:p-16"
88
+ class={merge(
89
+ 'flex h-full w-full flex-col items-center justify-center p-8 lg:p-12 xl:p-16',
90
+ theme.current.modal?.dialog?.class
91
+ )}
89
92
  >
90
93
  {#if modal}
91
94
  <div {...rest} {onclick}>
@@ -1 +1 @@
1
- {"version":3,"file":"Modal.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/layout/modal/Modal.svelte.ts"],"names":[],"mappings":"AAGI,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAEpC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAGlD,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAIrE,sFAAsF;AACtF,MAAM,MAAM,UAAU,GAAG,eAAe,GAAG;IACvC,iEAAiE;IACjE,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,6CAA6C;IAC7C,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,2BAA2B;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;SAIK;IACL,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,0DAA0D;IAC1D,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACzB,OAAO,CAAC,EAAE,iBAAiB,CAAC,cAAc,CAAC,CAAC;CAC/C,CAAC;AAEF,UAAU,KAAM,SAAQ,UAAU;IAC9B,sGAAsG;IACtG,KAAK,CAAC,EAAE,OAAO,CAAC;CACnB;AAmGL,oFAAoF;AACpF,QAAA,MAAM,KAAK;;;;;MAAwC,CAAC;AACpD,KAAK,KAAK,GAAG,UAAU,CAAC,OAAO,KAAK,CAAC,CAAC;AACtC,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"Modal.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/layout/modal/Modal.svelte.ts"],"names":[],"mappings":"AAGI,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAEpC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAGlD,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAIrE,sFAAsF;AACtF,MAAM,MAAM,UAAU,GAAG,eAAe,GAAG;IACvC,iEAAiE;IACjE,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,6CAA6C;IAC7C,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,2BAA2B;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;SAIK;IACL,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,0DAA0D;IAC1D,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACzB,OAAO,CAAC,EAAE,iBAAiB,CAAC,cAAc,CAAC,CAAC;CAC/C,CAAC;AAEF,UAAU,KAAM,SAAQ,UAAU;IAC9B,sGAAsG;IACtG,KAAK,CAAC,EAAE,OAAO,CAAC;CACnB;AAsGL,oFAAoF;AACpF,QAAA,MAAM,KAAK;;;;;MAAwC,CAAC;AACpD,KAAK,KAAK,GAAG,UAAU,CAAC,OAAO,KAAK,CAAC,CAAC;AACtC,eAAe,KAAK,CAAC"}
@@ -2,8 +2,7 @@
2
2
  import { page } from '$app/state';
3
3
  import { theme } from '../../../theme.svelte';
4
4
  import type { IvoryComponent } from '../../../types';
5
- import { pseudoRandomId } from '../../../utils/functions/index';
6
- import { merge } from '../../../utils/merge';
5
+ import { merge, pseudoRandomId } from '../../../utils/functions';
7
6
  import { onMount, type Snippet } from 'svelte';
8
7
  import type { ClassValue } from 'svelte/elements';
9
8
  import { getTabContext } from './Tabs.svelte';
@@ -1 +1 @@
1
- {"version":3,"file":"Tab.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/layout/tabs/Tab.svelte.ts"],"names":[],"mappings":"AAKI,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAGjD,OAAO,EAAW,KAAK,OAAO,EAAE,MAAM,QAAQ,CAAC;AAC/C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAGlD,MAAM,WAAW,QAAS,SAAQ,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,UAAU,CAAC;IAC3E,KAAK,CAAC,EAAE,UAAU,GAAG,CAAC,CAAC,QAAQ,EAAE,OAAO,KAAK,UAAU,CAAC,CAAC;IACzD,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,QAAQ,EAAE,OAAO,CAAC,CAAC;QAAE,QAAQ,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC,CAAC;IAC3C,oEAAoE;IACpE,MAAM,CAAC,EAAE,OAAO,CAAC;CACpB;AA8CL,QAAA,MAAM,GAAG,8CAAwC,CAAC;AAClD,KAAK,GAAG,GAAG,UAAU,CAAC,OAAO,GAAG,CAAC,CAAC;AAClC,eAAe,GAAG,CAAC"}
1
+ {"version":3,"file":"Tab.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/layout/tabs/Tab.svelte.ts"],"names":[],"mappings":"AAKI,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD,OAAO,EAAW,KAAK,OAAO,EAAE,MAAM,QAAQ,CAAC;AAC/C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAGlD,MAAM,WAAW,QAAS,SAAQ,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,UAAU,CAAC;IAC3E,KAAK,CAAC,EAAE,UAAU,GAAG,CAAC,CAAC,QAAQ,EAAE,OAAO,KAAK,UAAU,CAAC,CAAC;IACzD,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,QAAQ,EAAE,OAAO,CAAC,CAAC;QAAE,QAAQ,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC,CAAC;IAC3C,oEAAoE;IACpE,MAAM,CAAC,EAAE,OAAO,CAAC;CACpB;AA8CL,QAAA,MAAM,GAAG,8CAAwC,CAAC;AAClD,KAAK,GAAG,GAAG,UAAU,CAAC,OAAO,GAAG,CAAC,CAAC;AAClC,eAAe,GAAG,CAAC"}
@@ -1,5 +1,5 @@
1
1
  <script lang="ts" module>
2
- import { merge } from '../../../utils/merge';
2
+ import { merge } from '../../../utils/functions';
3
3
  import type { Snippet } from 'svelte';
4
4
  import type { ClassValue, MouseEventHandler } from 'svelte/elements';
5
5
  import Popover, { type PopoverPlacement } from '../popover/Popover.svelte';
@@ -1,6 +1,6 @@
1
1
  <script lang="ts" module>
2
2
  import { theme } from '../../theme.svelte';
3
- import { merge } from '../../utils/merge';
3
+ import { merge } from '../../utils/functions';
4
4
  import { type Snippet } from 'svelte';
5
5
  import type { ClassValue } from 'svelte/elements';
6
6
  import type { ColumnConfig } from './columnController.svelte';
@@ -1,5 +1,5 @@
1
1
  <script lang="ts" module>
2
- import { merge } from '../../utils/merge';
2
+ import { merge } from '../../utils/functions';
3
3
  import { ChevronRight } from '@lucide/svelte';
4
4
  import { getContext, setContext, untrack, type Snippet } from 'svelte';
5
5
  import type { ClassValue } from 'svelte/elements';
@@ -1,5 +1,5 @@
1
1
  <script lang="ts" generics="T extends { id: string }">
2
- import { merge } from '../../utils/merge';
2
+ import { merge } from '../../utils/functions';
3
3
  import { onMount, tick, untrack, type Snippet } from 'svelte';
4
4
  import type { ClassValue } from 'svelte/elements';
5
5
 
@@ -26,6 +26,9 @@ export interface Theme {
26
26
  modal?: {
27
27
  class?: ClassValue;
28
28
  innerClass?: ClassValue;
29
+ dialog?: {
30
+ class?: ClassValue;
31
+ };
29
32
  };
30
33
  popover?: {
31
34
  class?: ClassValue;
@@ -1 +1 @@
1
- {"version":3,"file":"theme.svelte.d.ts","sourceRoot":"","sources":["../src/lib/theme.svelte.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,WAAW,KAAK;IAClB,QAAQ,CAAC,EAAE;QACP,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,KAAK,UAAU,CAAC;KAC9D,CAAC;IACF,OAAO,CAAC,EAAE;QACN,KAAK,CAAC,EAAE,UAAU,CAAC;KACtB,CAAC;IACF,gBAAgB,CAAC,EAAE;QACf,KAAK,CAAC,EAAE,UAAU,CAAC;KACtB,CAAC;IACF,MAAM,CAAC,EAAE;QACL,KAAK,CAAC,EAAE,UAAU,CAAC;KACtB,CAAC;IACF,IAAI,CAAC,EAAE;QACH,GAAG,CAAC,EAAE;YACF,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,UAAU,CAAC;SAC3C,CAAC;KACL,CAAC;IACF,KAAK,CAAC,EAAE;QACJ,MAAM,CAAC,EAAE;YACL,KAAK,CAAC,EAAE,UAAU,CAAC;SACtB,CAAC;KACL,CAAC;IACF,KAAK,CAAC,EAAE;QACJ,KAAK,CAAC,EAAE,UAAU,CAAC;QACnB,UAAU,CAAC,EAAE,UAAU,CAAC;KAC3B,CAAC;IACF,OAAO,CAAC,EAAE;QACN,KAAK,CAAC,EAAE,UAAU,CAAC;KACtB,CAAC;IACF,KAAK,CAAC,EAAE;QACJ,UAAU,CAAC,EAAE,UAAU,CAAC;QACxB,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,OAAO,KAAK,UAAU,CAAC;QACzD,KAA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ACJ,KAAK,CAAC,EAAE,UAAU,CAAC;QACnB,UAAU,CAAC,EAAE,UAAU,CAAC;QACxB,MAAM,CAAC,EAAE;YACL,KAAK,CAAC,EAAE,UAAU,CAAC;SACtB,CAAC;KACL,CAAC;IACF,OAAO,CAAC,EAAE;QACN,KAAK,CAAC,EAAE,UAAU,CAAC;KACtB,CAAC;IACF,KAAK,CAAC,EAAE;QACJ,UAAU,CAAC,EAAE,UAAU,CAAC;QACxB,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,OAAO,KAAK,UAAU,CAAC;QACzD,KAAK,CAAC,EAAE;YACJ,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,OAAO,KAAK,UAAU,CAAC;SAC5D,CAAC;QACF,MAAM,CAAC,EAAE;YACL,KAAK,CAAC,EAAE;gBACJ,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,MAAM,CAAC;gBAC3C,KAAK,CAAC,EAAE,UAAU,CAAC;aACtB,CAAC;YACF,KAAK,CAAC,EAAE,UAAU,CAAC;SACtB,CAAC;KACL,CAAC;CACL;AAkBD,eAAO,MAAM,KAAK;uBAZS,KAAK;aAGF,KAAK;CASD,CAAC"}
@@ -1,5 +1,6 @@
1
1
  export { cookie } from './cookie';
2
2
  export { createDebouncedValue } from './debouncedValue.svelte';
3
+ export { merge } from './merge';
3
4
  export { pseudoRandomId } from './pseudoRandomId';
4
5
  export { queryParams } from './queryParams';
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/functions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/functions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC"}
@@ -1,4 +1,5 @@
1
1
  export { cookie } from './cookie';
2
2
  export { createDebouncedValue } from './debouncedValue.svelte';
3
+ export { merge } from './merge';
3
4
  export { pseudoRandomId } from './pseudoRandomId';
4
5
  export { queryParams } from './queryParams';
@@ -0,0 +1 @@
1
+ {"version":3,"file":"merge.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/functions/merge.ts"],"names":[],"mappings":"AAAA,OAAa,EAAE,KAAK,UAAU,EAAE,MAAM,MAAM,CAAC;AAG7C,+BAA+B;AAC/B,eAAO,MAAM,KAAK,GAAI,GAAG,SAAS,UAAU,WAE3C,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ims360/svelte-ivory",
3
- "version": "0.2.3",
3
+ "version": "0.3.0",
4
4
  "keywords": [
5
5
  "svelte"
6
6
  ],
@@ -113,8 +113,8 @@
113
113
  "zod": "^4.1.13"
114
114
  },
115
115
  "peerDependencies": {
116
- "@skeletonlabs/skeleton": "^3.1.1",
117
- "@sveltejs/kit": "^2.48.0",
118
- "svelte": "^5.43.0"
116
+ "@skeletonlabs/skeleton": "^4.0.0",
117
+ "@sveltejs/kit": "^2.49.5",
118
+ "svelte": "^5.46.4"
119
119
  }
120
120
  }
@@ -5,7 +5,7 @@
5
5
  -->
6
6
 
7
7
  <script lang="ts">
8
- import { merge } from '$lib/utils/merge';
8
+ import { merge } from '$lib/utils/functions';
9
9
  import { ThumbsDown, ThumbsUp } from '@lucide/svelte';
10
10
  import type { Snippet } from 'svelte';
11
11
  import type { ClassValue } from 'svelte/elements';
@@ -6,7 +6,7 @@
6
6
  -->
7
7
 
8
8
  <script lang="ts" module>
9
- import { merge } from '$lib/utils/merge';
9
+ import { merge } from '$lib/utils/functions';
10
10
  import { tick, type Snippet } from 'svelte';
11
11
  import type { ClassValue } from 'svelte/elements';
12
12
  import AiMessage from './AiMessage.svelte';
@@ -5,7 +5,7 @@
5
5
  -->
6
6
 
7
7
  <script lang="ts">
8
- import { merge } from '$lib/utils/merge';
8
+ import { merge } from '$lib/utils/functions';
9
9
  import DomPurify from 'dompurify';
10
10
  import { marked } from 'marked';
11
11
  import type { ClassValue } from 'svelte/elements';
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import { merge } from '$lib/utils/merge';
2
+ import { merge } from '$lib/utils/functions';
3
3
  import type { Snippet } from 'svelte';
4
4
  import type { ClassValue } from 'svelte/elements';
5
5
  import AttachedFile from './AttachedFile.svelte';
@@ -1,7 +1,7 @@
1
1
  <script lang="ts" module>
2
2
  import { theme } from '$lib/theme.svelte';
3
3
  import type { IvoryComponent } from '$lib/types';
4
- import { merge } from '$lib/utils/merge';
4
+ import { merge } from '$lib/utils/functions';
5
5
  import { Check, type Icon as LucideIcon, Minus } from '@lucide/svelte';
6
6
  import clsx from 'clsx';
7
7
  import type { ClassValue } from 'svelte/elements';
@@ -1,6 +1,6 @@
1
1
  <script lang="ts" module>
2
2
  import type { IvoryComponent } from '$lib/types';
3
- import { merge } from '$lib/utils/merge';
3
+ import { merge } from '$lib/utils/functions';
4
4
  import type { Snippet } from 'svelte';
5
5
  import type { ClassValue } from 'svelte/elements';
6
6
 
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import { merge } from '$lib/utils/merge';
2
+ import { merge } from '$lib/utils/functions';
3
3
  import Input, { INPUT_UNSET_OUTLINE, type InputProps } from './Input.svelte';
4
4
 
5
5
  let props: InputProps<string> = $props();
@@ -1,7 +1,6 @@
1
1
  <script lang="ts" module>
2
2
  import { theme } from '$lib/theme.svelte';
3
- import { pseudoRandomId } from '$lib/utils/functions';
4
- import { merge } from '$lib/utils/merge';
3
+ import { merge, pseudoRandomId } from '$lib/utils/functions';
5
4
  import type { RemoteFormField, RemoteFormFieldValue } from '@sveltejs/kit';
6
5
  import type { Snippet } from 'svelte';
7
6
  import type { ClassValue } from 'svelte/elements';
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import { theme } from '$lib/theme.svelte';
3
- import { merge } from '$lib/utils/merge';
3
+ import { merge } from '$lib/utils/functions';
4
4
  import { TriangleAlert } from '@lucide/svelte';
5
5
  import type { RemoteFormIssue } from '@sveltejs/kit';
6
6
  import type { ClassValue } from 'svelte/elements';
@@ -1,7 +1,7 @@
1
1
  <script lang="ts" module>
2
2
  import { theme } from '$lib/theme.svelte';
3
3
  import type { IvoryComponent } from '$lib/types';
4
- import { merge } from '$lib/utils/merge';
4
+ import { merge } from '$lib/utils/functions';
5
5
  import type { ClassValue } from 'svelte/elements';
6
6
 
7
7
  export interface HeadingProps extends IvoryComponent<HTMLHeadingElement> {
@@ -1,7 +1,7 @@
1
1
  <script lang="ts" module>
2
2
  import { theme } from '$lib/theme.svelte';
3
3
  import type { IvoryComponent, TransitionProps } from '$lib/types';
4
- import { merge } from '$lib/utils/merge';
4
+ import { merge } from '$lib/utils/functions';
5
5
  import { onMount, tick } from 'svelte';
6
6
  import type { MouseEventHandler } from 'svelte/elements';
7
7
  import { fade } from 'svelte/transition';
@@ -1,6 +1,6 @@
1
1
  <script lang="ts" module>
2
2
  import type { TransitionProps } from '$lib/types';
3
- import { merge } from '$lib/utils/merge';
3
+ import { merge } from '$lib/utils/functions';
4
4
  import { X } from '@lucide/svelte';
5
5
  import type { Snippet } from 'svelte';
6
6
  import { fly } from 'svelte/transition';
@@ -2,7 +2,7 @@
2
2
  import type { Variant } from '$lib';
3
3
  import { theme } from '$lib/theme.svelte';
4
4
  import type { TransitionProps } from '$lib/types';
5
- import { merge } from '$lib/utils/merge';
5
+ import { merge } from '$lib/utils/functions';
6
6
  import { X } from '@lucide/svelte';
7
7
  import { type Snippet } from 'svelte';
8
8
  import type { ClassValue, MouseEventHandler } from 'svelte/elements';
@@ -85,7 +85,10 @@
85
85
  onclose={() => {
86
86
  if (closeOnOutsideClick) close();
87
87
  }}
88
- class="flex h-full w-full flex-col items-center justify-start p-8 lg:p-12 xl:p-16"
88
+ class={merge(
89
+ 'flex h-full w-full flex-col items-center justify-center p-8 lg:p-12 xl:p-16',
90
+ theme.current.modal?.dialog?.class
91
+ )}
89
92
  >
90
93
  {#if modal}
91
94
  <div {...rest} {onclick}>
@@ -2,8 +2,7 @@
2
2
  import { page } from '$app/state';
3
3
  import { theme } from '$lib/theme.svelte';
4
4
  import type { IvoryComponent } from '$lib/types';
5
- import { pseudoRandomId } from '$lib/utils/functions/index';
6
- import { merge } from '$lib/utils/merge';
5
+ import { merge, pseudoRandomId } from '$lib/utils/functions';
7
6
  import { onMount, type Snippet } from 'svelte';
8
7
  import type { ClassValue } from 'svelte/elements';
9
8
  import { getTabContext } from './Tabs.svelte';
@@ -1,5 +1,5 @@
1
1
  <script lang="ts" module>
2
- import { merge } from '$lib/utils/merge';
2
+ import { merge } from '$lib/utils/functions';
3
3
  import type { Snippet } from 'svelte';
4
4
  import type { ClassValue, MouseEventHandler } from 'svelte/elements';
5
5
  import Popover, { type PopoverPlacement } from '../popover/Popover.svelte';
@@ -1,6 +1,6 @@
1
1
  <script lang="ts" module>
2
2
  import { theme } from '$lib/theme.svelte';
3
- import { merge } from '$lib/utils/merge';
3
+ import { merge } from '$lib/utils/functions';
4
4
  import { type Snippet } from 'svelte';
5
5
  import type { ClassValue } from 'svelte/elements';
6
6
  import type { ColumnConfig } from './columnController.svelte';
@@ -1,5 +1,5 @@
1
1
  <script lang="ts" module>
2
- import { merge } from '$lib/utils/merge';
2
+ import { merge } from '$lib/utils/functions';
3
3
  import { ChevronRight } from '@lucide/svelte';
4
4
  import { getContext, setContext, untrack, type Snippet } from 'svelte';
5
5
  import type { ClassValue } from 'svelte/elements';
@@ -1,5 +1,5 @@
1
1
  <script lang="ts" generics="T extends { id: string }">
2
- import { merge } from '$lib/utils/merge';
2
+ import { merge } from '$lib/utils/functions';
3
3
  import { onMount, tick, untrack, type Snippet } from 'svelte';
4
4
  import type { ClassValue } from 'svelte/elements';
5
5
 
@@ -27,6 +27,9 @@ export interface Theme {
27
27
  modal?: {
28
28
  class?: ClassValue;
29
29
  innerClass?: ClassValue;
30
+ dialog?: {
31
+ class?: ClassValue;
32
+ };
30
33
  };
31
34
  popover?: {
32
35
  class?: ClassValue;
@@ -1,4 +1,5 @@
1
1
  export { cookie } from './cookie';
2
2
  export { createDebouncedValue } from './debouncedValue.svelte';
3
+ export { merge } from './merge';
3
4
  export { pseudoRandomId } from './pseudoRandomId';
4
5
  export { queryParams } from './queryParams';
@@ -1 +0,0 @@
1
- {"version":3,"file":"merge.d.ts","sourceRoot":"","sources":["../../src/lib/utils/merge.ts"],"names":[],"mappings":"AAAA,OAAa,EAAE,KAAK,UAAU,EAAE,MAAM,MAAM,CAAC;AAG7C,+BAA+B;AAC/B,eAAO,MAAM,KAAK,GAAI,GAAG,SAAS,UAAU,WAE3C,CAAC"}
File without changes
File without changes
File without changes