@ims360/svelte-ivory 0.4.3 → 0.4.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.
Files changed (44) hide show
  1. package/dist/components/basic/Markdown.svelte.d.ts.map +1 -0
  2. package/dist/components/basic/ThemeSelect.svelte +1 -1
  3. package/dist/components/basic/ThemeSelect.svelte.d.ts +1 -1
  4. package/dist/components/basic/ThemeSelect.svelte.d.ts.map +1 -1
  5. package/dist/components/basic/index.d.ts +1 -0
  6. package/dist/components/basic/index.d.ts.map +1 -1
  7. package/dist/components/basic/index.js +1 -0
  8. package/dist/components/inputs/FullscreenDropzone.svelte +3 -3
  9. package/dist/components/inputs/select/Select.svelte +9 -2
  10. package/dist/components/inputs/select/Select.svelte.d.ts +2 -0
  11. package/dist/components/inputs/select/Select.svelte.d.ts.map +1 -1
  12. package/dist/components/layout/dialog/Dialog.svelte +14 -8
  13. package/dist/components/layout/dialog/Dialog.svelte.d.ts +2 -2
  14. package/dist/components/layout/dialog/Dialog.svelte.d.ts.map +1 -1
  15. package/dist/components/layout/drawer/Drawer.svelte +5 -5
  16. package/dist/components/layout/index.d.ts +1 -1
  17. package/dist/components/layout/index.d.ts.map +1 -1
  18. package/dist/components/layout/index.js +1 -1
  19. package/dist/components/layout/modal/Modal.svelte +8 -6
  20. package/dist/components/layout/modal/Modal.svelte.d.ts.map +1 -1
  21. package/dist/theme.svelte.d.ts +0 -3
  22. package/dist/theme.svelte.d.ts.map +1 -1
  23. package/package.json +1 -5
  24. package/src/lib/components/basic/ThemeSelect.svelte +1 -1
  25. package/src/lib/components/basic/index.ts +1 -0
  26. package/src/lib/components/inputs/FullscreenDropzone.svelte +3 -3
  27. package/src/lib/components/inputs/select/Select.svelte +9 -2
  28. package/src/lib/components/layout/dialog/Dialog.svelte +14 -8
  29. package/src/lib/components/layout/drawer/Drawer.svelte +5 -5
  30. package/src/lib/components/layout/index.ts +1 -1
  31. package/src/lib/components/layout/modal/Modal.svelte +8 -6
  32. package/src/lib/theme.svelte.ts +0 -3
  33. package/dist/components/ai/Markdown.svelte.d.ts.map +0 -1
  34. package/dist/components/ai/index.d.ts +0 -2
  35. package/dist/components/ai/index.d.ts.map +0 -1
  36. package/dist/components/ai/index.js +0 -1
  37. package/dist/components/layout/hiddenBackground/HiddenBackground.svelte +0 -13
  38. package/dist/components/layout/hiddenBackground/HiddenBackground.svelte.d.ts +0 -5
  39. package/dist/components/layout/hiddenBackground/HiddenBackground.svelte.d.ts.map +0 -1
  40. package/src/lib/components/ai/index.ts +0 -1
  41. package/src/lib/components/layout/hiddenBackground/HiddenBackground.svelte +0 -13
  42. /package/dist/components/{ai → basic}/Markdown.svelte +0 -0
  43. /package/dist/components/{ai → basic}/Markdown.svelte.d.ts +0 -0
  44. /package/src/lib/components/{ai → basic}/Markdown.svelte +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Markdown.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/components/basic/Markdown.svelte.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAG9C,UAAU,KAAK;IACX,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,OAAO,CAAC,EAAE;QACN,KAAK,EAAE,MAAM,CAAC;QACd,eAAe,EAAE,MAAM,OAAO,CAAC,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC,CAAC;KAC3F,CAAC;CACL;AA8CL;;;GAGG;AACH,QAAA,MAAM,QAAQ,2CAAwC,CAAC;AACvD,KAAK,QAAQ,GAAG,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC;AAC5C,eAAe,QAAQ,CAAC"}
@@ -5,7 +5,7 @@
5
5
  import type { ClassValue } from 'svelte/elements';
6
6
 
7
7
  type Props = {
8
- class: ClassValue;
8
+ class?: ClassValue;
9
9
  };
10
10
 
11
11
  let { class: clazz }: Props = $props();
@@ -1,6 +1,6 @@
1
1
  import type { ClassValue } from 'svelte/elements';
2
2
  type Props = {
3
- class: ClassValue;
3
+ class?: ClassValue;
4
4
  };
5
5
  declare const ThemeSelect: import("svelte").Component<Props, {}, "">;
6
6
  type ThemeSelect = ReturnType<typeof ThemeSelect>;
@@ -1 +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"}
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,CAAC,EAAE,UAAU,CAAC;CACtB,CAAC;AA6CN,QAAA,MAAM,WAAW,2CAAwC,CAAC;AAC1D,KAAK,WAAW,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AAClD,eAAe,WAAW,CAAC"}
@@ -1,5 +1,6 @@
1
1
  export { default as Checkbox, type CheckboxProps } from './checkbox/Checkbox.svelte';
2
2
  export { default as Element, type AnchorAttributes, type ButtonAttributes, type ElementProps } from './Element.svelte';
3
+ export { default as Markdown } from './Markdown.svelte';
3
4
  export { default as MarkedText, type MarkedTextProps } from './MarkedText.svelte';
4
5
  export { default as Textarea } from './Textarea.svelte';
5
6
  export { default as ThemeSelect } from './ThemeSelect.svelte';
@@ -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,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC9D,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,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACxD,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"}
@@ -1,5 +1,6 @@
1
1
  export { default as Checkbox } from './checkbox/Checkbox.svelte';
2
2
  export { default as Element } from './Element.svelte';
3
+ export { default as Markdown } from './Markdown.svelte';
3
4
  export { default as MarkedText } from './MarkedText.svelte';
4
5
  export { default as Textarea } from './Textarea.svelte';
5
6
  export { default as ThemeSelect } from './ThemeSelect.svelte';
@@ -2,7 +2,7 @@
2
2
  import { FileUp } from '@lucide/svelte';
3
3
  import type { Snippet } from 'svelte';
4
4
  import { scale } from 'svelte/transition';
5
- import { HiddenBackground } from '../layout';
5
+ import { Dialog } from '../layout/dialog';
6
6
 
7
7
  export interface FullscreenDropzoneProps {
8
8
  ondrop: (files: File[]) => void;
@@ -64,9 +64,9 @@
64
64
  />
65
65
 
66
66
  {#if open}
67
- <HiddenBackground class="flex items-center justify-center">
67
+ <Dialog class="flex items-center justify-center">
68
68
  {@render children()}
69
- </HiddenBackground>
69
+ </Dialog>
70
70
  {/if}
71
71
 
72
72
  {#snippet defaultChildren()}
@@ -2,6 +2,7 @@
2
2
  import { Popover } from '../../layout';
3
3
  import { ChevronDown } from '@lucide/svelte';
4
4
  import { createContext, type Snippet } from 'svelte';
5
+ import type { ClassValue } from 'svelte/elements';
5
6
  import Input, { type InputProps } from '../Input.svelte';
6
7
 
7
8
  export interface SelectContext {
@@ -16,9 +17,15 @@
16
17
  interface Props extends InputProps<string> {
17
18
  placeholder?: string;
18
19
  children: Snippet;
20
+ popoverClass?: ClassValue;
19
21
  }
20
22
 
21
- let { placeholder = '', children, ...props }: Props = $props();
23
+ let {
24
+ placeholder = 'bg-surface-50-950 flex flex-col gap-2 rounded-container p-2 shadow',
25
+ children,
26
+ popoverClass,
27
+ ...props
28
+ }: Props = $props();
22
29
 
23
30
  let button = $state<HTMLButtonElement | undefined>();
24
31
  let buttonWidth = $state<number>(200);
@@ -62,7 +69,7 @@
62
69
 
63
70
  <Popover
64
71
  bind:this={popover}
65
- class="bg-surface-50-950 mt-2 flex flex-col gap-2 rounded p-2 shadow"
72
+ class={popoverClass}
66
73
  style={`min-width: ${buttonWidth}px`}
67
74
  target={button}
68
75
  >
@@ -1,4 +1,5 @@
1
1
  import { type Snippet } from 'svelte';
2
+ import type { ClassValue } from 'svelte/elements';
2
3
  import { type InputProps } from '../Input.svelte';
3
4
  export interface SelectContext {
4
5
  select: (value: string, snippet: Snippet) => void;
@@ -8,6 +9,7 @@ export declare const getSelectContext: () => SelectContext, setSelectContext: (c
8
9
  interface Props extends InputProps<string> {
9
10
  placeholder?: string;
10
11
  children: Snippet;
12
+ popoverClass?: ClassValue;
11
13
  }
12
14
  declare const Select: import("svelte").Component<Props, {}, "">;
13
15
  type Select = ReturnType<typeof Select>;
@@ -1 +1 @@
1
- {"version":3,"file":"Select.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/inputs/select/Select.svelte.ts"],"names":[],"mappings":"AAKI,OAAO,EAAiB,KAAK,OAAO,EAAE,MAAM,QAAQ,CAAC;AACrD,OAAc,EAAE,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAEzD,MAAM,WAAW,aAAa;IAC1B,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAClD,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC;CACpC;AAED,eAAO,MAAO,gBAAgB,uBAAE,gBAAgB,2CAAkC,CAAC;AAEnF,UAAU,KAAM,SAAQ,UAAU,CAAC,MAAM,CAAC;IACtC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;CACrB;AAgDL,QAAA,MAAM,MAAM,2CAAwC,CAAC;AACrD,KAAK,MAAM,GAAG,UAAU,CAAC,OAAO,MAAM,CAAC,CAAC;AACxC,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"Select.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/inputs/select/Select.svelte.ts"],"names":[],"mappings":"AAKI,OAAO,EAAiB,KAAK,OAAO,EAAE,MAAM,QAAQ,CAAC;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAc,EAAE,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAEzD,MAAM,WAAW,aAAa;IAC1B,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAClD,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC;CACpC;AAED,eAAO,MAAO,gBAAgB,uBAAE,gBAAgB,2CAAkC,CAAC;AAEnF,UAAU,KAAM,SAAQ,UAAU,CAAC,MAAM,CAAC;IACtC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,UAAU,CAAC;CAC7B;AAqDL,QAAA,MAAM,MAAM,2CAAwC,CAAC;AACrD,KAAK,MAAM,GAAG,UAAU,CAAC,OAAO,MAAM,CAAC,CAAC;AACxC,eAAe,MAAM,CAAC"}
@@ -1,12 +1,11 @@
1
1
  <script lang="ts" module>
2
2
  import { theme } from '../../../theme.svelte';
3
- import type { IvoryComponent, TransitionProps } from '../../../types';
3
+ import type { IvoryComponent } from '../../../types';
4
4
  import { merge } from '../../../utils/functions';
5
5
  import { onMount, tick } from 'svelte';
6
6
  import type { MouseEventHandler } from 'svelte/elements';
7
- import { fade } from 'svelte/transition';
8
7
 
9
- export interface DialogProps extends IvoryComponent<HTMLElement>, TransitionProps {
8
+ export interface DialogProps extends IvoryComponent<HTMLElement> {
10
9
  /** Gets called when the dialog requests to close (Escape, backdrop click) */
11
10
  onclose?: () => void;
12
11
  }
@@ -17,8 +16,6 @@
17
16
  class: clazz,
18
17
  onclose: close, // This is the prop from the parent
19
18
  children,
20
- inTransition = (e) => fade(e, { duration: 200 }),
21
- outTransition = (e) => fade(e, { duration: 200 }),
22
19
  ...rest
23
20
  }: DialogProps = $props();
24
21
 
@@ -61,13 +58,22 @@
61
58
  oncancel={requestClose}
62
59
  onclose={close}
63
60
  class={merge(
64
- 'h-full max-h-none w-screen max-w-full bg-transparent backdrop:bg-transparent',
61
+ 'backdrop:bg-surface-800-200/30 h-full max-h-none w-screen max-w-full bg-transparent',
65
62
  theme.current.dialog?.class,
66
63
  clazz
67
64
  )}
68
- in:inTransition
69
- out:outTransition
70
65
  {...rest}
71
66
  >
72
67
  {@render children?.()}
73
68
  </dialog>
69
+
70
+ <style>
71
+ dialog::backdrop {
72
+ animation: fade-in 200ms ease-out;
73
+ }
74
+ @keyframes fade-in {
75
+ from {
76
+ opacity: 0;
77
+ }
78
+ }
79
+ </style>
@@ -1,5 +1,5 @@
1
- import type { IvoryComponent, TransitionProps } from '../../../types';
2
- export interface DialogProps extends IvoryComponent<HTMLElement>, TransitionProps {
1
+ import type { IvoryComponent } from '../../../types';
2
+ export interface DialogProps extends IvoryComponent<HTMLElement> {
3
3
  /** Gets called when the dialog requests to close (Escape, backdrop click) */
4
4
  onclose?: () => void;
5
5
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Dialog.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/layout/dialog/Dialog.svelte.ts"],"names":[],"mappings":"AAII,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAMlE,MAAM,WAAW,WAAY,SAAQ,cAAc,CAAC,WAAW,CAAC,EAAE,eAAe;IAC7E,6EAA6E;IAC7E,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AAyDL,QAAA,MAAM,MAAM,iDAAwC,CAAC;AACrD,KAAK,MAAM,GAAG,UAAU,CAAC,OAAO,MAAM,CAAC,CAAC;AACxC,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"Dialog.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/layout/dialog/Dialog.svelte.ts"],"names":[],"mappings":"AAII,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAKjD,MAAM,WAAW,WAAY,SAAQ,cAAc,CAAC,WAAW,CAAC;IAC5D,6EAA6E;IAC7E,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AAyDL,QAAA,MAAM,MAAM,iDAAwC,CAAC;AACrD,KAAK,MAAM,GAAG,UAAU,CAAC,OAAO,MAAM,CAAC,CAAC;AACxC,eAAe,MAAM,CAAC"}
@@ -4,8 +4,8 @@
4
4
  import { X } from '@lucide/svelte';
5
5
  import type { Snippet } from 'svelte';
6
6
  import { fly } from 'svelte/transition';
7
- import { HiddenBackground } from '..';
8
7
  import Heading from '../Heading.svelte';
8
+ import { Dialog } from '../dialog';
9
9
 
10
10
  export type DrawerPlacement = 'left' | 'right';
11
11
 
@@ -54,7 +54,7 @@
54
54
  </script>
55
55
 
56
56
  {#if currentlyOpen}
57
- <HiddenBackground
57
+ <Dialog
58
58
  onclose={() => {
59
59
  if (closeOnOutsideClick) close();
60
60
  }}
@@ -67,8 +67,8 @@
67
67
  clazz
68
68
  ])}
69
69
  onclick={(e) => e.stopPropagation()}
70
- in:inTransition|global
71
- out:outTransition|global
70
+ in:inTransition
71
+ out:outTransition
72
72
  {...rest}
73
73
  >
74
74
  {#if inner}
@@ -91,5 +91,5 @@
91
91
  {@render children()}
92
92
  {/if}
93
93
  </div>
94
- </HiddenBackground>
94
+ </Dialog>
95
95
  {/if}
@@ -1,6 +1,6 @@
1
+ export { Dialog, type DialogProps } from './dialog';
1
2
  export { default as Drawer } from './drawer/Drawer.svelte';
2
3
  export { default as Heading } from './Heading.svelte';
3
- export { default as HiddenBackground } from './hiddenBackground/HiddenBackground.svelte';
4
4
  export { default as Modal, type ModalProps } from './modal/Modal.svelte';
5
5
  export { default as Popover, type PopoverPlacement, type PopoverProps } from './popover/Popover.svelte';
6
6
  export { getTabContext, Tab, TabPanel, Tabs, type TabPanelProps, type TabProps, type TabsProps } from './tabs';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/components/layout/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AACzF,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACzE,OAAO,EACH,OAAO,IAAI,OAAO,EAClB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACpB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACH,aAAa,EACb,GAAG,EACH,QAAQ,EACR,IAAI,EACJ,KAAK,aAAa,EAClB,KAAK,QAAQ,EACb,KAAK,SAAS,EACjB,MAAM,QAAQ,CAAC;AAChB,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/components/layout/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACzE,OAAO,EACH,OAAO,IAAI,OAAO,EAClB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACpB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACH,aAAa,EACb,GAAG,EACH,QAAQ,EACR,IAAI,EACJ,KAAK,aAAa,EAClB,KAAK,QAAQ,EACb,KAAK,SAAS,EACjB,MAAM,QAAQ,CAAC;AAChB,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC"}
@@ -1,6 +1,6 @@
1
+ export { Dialog } from './dialog';
1
2
  export { default as Drawer } from './drawer/Drawer.svelte';
2
3
  export { default as Heading } from './Heading.svelte';
3
- export { default as HiddenBackground } from './hiddenBackground/HiddenBackground.svelte';
4
4
  export { default as Modal } from './modal/Modal.svelte';
5
5
  export { default as Popover } from './popover/Popover.svelte';
6
6
  export { getTabContext, Tab, TabPanel, Tabs } from './tabs';
@@ -6,8 +6,9 @@
6
6
  import { X } from '@lucide/svelte';
7
7
  import { type Snippet } from 'svelte';
8
8
  import type { ClassValue, MouseEventHandler } from 'svelte/elements';
9
- import { fade } from 'svelte/transition';
10
- import { Heading, HiddenBackground } from '..';
9
+ import { scale } from 'svelte/transition';
10
+ import { Heading } from '..';
11
+ import { Dialog } from '../dialog';
11
12
 
12
13
  /** Props for the modal, expose if you overwrite the defaults in a custom component */
13
14
  export type ModalProps = TransitionProps & {
@@ -45,8 +46,9 @@
45
46
  variant,
46
47
  innerClass,
47
48
  inTransition = (e) =>
48
- fade(e, {
49
- duration: 200
49
+ scale(e, {
50
+ duration: 200,
51
+ start: 0.8
50
52
  }),
51
53
  outTransition = () => ({}),
52
54
  ...rest
@@ -81,7 +83,7 @@
81
83
  A modal, comes with a title, close button and different variants per default.
82
84
  -->
83
85
  {#if currentlyOpen}
84
- <HiddenBackground
86
+ <Dialog
85
87
  onclose={() => {
86
88
  if (closeOnOutsideClick) close();
87
89
  }}
@@ -143,5 +145,5 @@
143
145
  </div>
144
146
  </div>
145
147
  {/if}
146
- </HiddenBackground>
148
+ </Dialog>
147
149
  {/if}
@@ -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,YAA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AE,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;AAuGL,oFAAoF;AACpF,QAAA,MAAM,KAAK;;;;;MAAwC,CAAC;AACpD,KAAK,KAAK,GAAG,UAAU,CAAC,OAAO,KAAK,CAAC,CAAC;AACtC,eAAe,KAAK,CAAC"}
@@ -7,9 +7,6 @@ export interface Theme {
7
7
  heading?: {
8
8
  class?: ClassValue;
9
9
  };
10
- hiddenBackground?: {
11
- class?: ClassValue;
12
- };
13
10
  dialog?: {
14
11
  class?: ClassValue;
15
12
  };
@@ -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,MAA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K,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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ims360/svelte-ivory",
3
- "version": "0.4.3",
3
+ "version": "0.4.5",
4
4
  "keywords": [
5
5
  "svelte"
6
6
  ],
@@ -22,10 +22,6 @@
22
22
  "types": "./dist/index.d.ts",
23
23
  "svelte": "./dist/index.js"
24
24
  },
25
- "./components/ai": {
26
- "types": "./dist/components/ai/index.d.ts",
27
- "svelte": "./dist/components/ai/index.js"
28
- },
29
25
  "./components/basic": {
30
26
  "types": "./dist/components/basic/index.d.ts",
31
27
  "svelte": "./dist/components/basic/index.js"
@@ -5,7 +5,7 @@
5
5
  import type { ClassValue } from 'svelte/elements';
6
6
 
7
7
  type Props = {
8
- class: ClassValue;
8
+ class?: ClassValue;
9
9
  };
10
10
 
11
11
  let { class: clazz }: Props = $props();
@@ -5,6 +5,7 @@ export {
5
5
  type ButtonAttributes,
6
6
  type ElementProps
7
7
  } from './Element.svelte';
8
+ export { default as Markdown } from './Markdown.svelte';
8
9
  export { default as MarkedText, type MarkedTextProps } from './MarkedText.svelte';
9
10
  export { default as Textarea } from './Textarea.svelte';
10
11
  export { default as ThemeSelect } from './ThemeSelect.svelte';
@@ -2,7 +2,7 @@
2
2
  import { FileUp } from '@lucide/svelte';
3
3
  import type { Snippet } from 'svelte';
4
4
  import { scale } from 'svelte/transition';
5
- import { HiddenBackground } from '../layout';
5
+ import { Dialog } from '../layout/dialog';
6
6
 
7
7
  export interface FullscreenDropzoneProps {
8
8
  ondrop: (files: File[]) => void;
@@ -64,9 +64,9 @@
64
64
  />
65
65
 
66
66
  {#if open}
67
- <HiddenBackground class="flex items-center justify-center">
67
+ <Dialog class="flex items-center justify-center">
68
68
  {@render children()}
69
- </HiddenBackground>
69
+ </Dialog>
70
70
  {/if}
71
71
 
72
72
  {#snippet defaultChildren()}
@@ -2,6 +2,7 @@
2
2
  import { Popover } from '$lib/components/layout';
3
3
  import { ChevronDown } from '@lucide/svelte';
4
4
  import { createContext, type Snippet } from 'svelte';
5
+ import type { ClassValue } from 'svelte/elements';
5
6
  import Input, { type InputProps } from '../Input.svelte';
6
7
 
7
8
  export interface SelectContext {
@@ -16,9 +17,15 @@
16
17
  interface Props extends InputProps<string> {
17
18
  placeholder?: string;
18
19
  children: Snippet;
20
+ popoverClass?: ClassValue;
19
21
  }
20
22
 
21
- let { placeholder = '', children, ...props }: Props = $props();
23
+ let {
24
+ placeholder = 'bg-surface-50-950 flex flex-col gap-2 rounded-container p-2 shadow',
25
+ children,
26
+ popoverClass,
27
+ ...props
28
+ }: Props = $props();
22
29
 
23
30
  let button = $state<HTMLButtonElement | undefined>();
24
31
  let buttonWidth = $state<number>(200);
@@ -62,7 +69,7 @@
62
69
 
63
70
  <Popover
64
71
  bind:this={popover}
65
- class="bg-surface-50-950 mt-2 flex flex-col gap-2 rounded p-2 shadow"
72
+ class={popoverClass}
66
73
  style={`min-width: ${buttonWidth}px`}
67
74
  target={button}
68
75
  >
@@ -1,12 +1,11 @@
1
1
  <script lang="ts" module>
2
2
  import { theme } from '$lib/theme.svelte';
3
- import type { IvoryComponent, TransitionProps } from '$lib/types';
3
+ import type { IvoryComponent } from '$lib/types';
4
4
  import { merge } from '$lib/utils/functions';
5
5
  import { onMount, tick } from 'svelte';
6
6
  import type { MouseEventHandler } from 'svelte/elements';
7
- import { fade } from 'svelte/transition';
8
7
 
9
- export interface DialogProps extends IvoryComponent<HTMLElement>, TransitionProps {
8
+ export interface DialogProps extends IvoryComponent<HTMLElement> {
10
9
  /** Gets called when the dialog requests to close (Escape, backdrop click) */
11
10
  onclose?: () => void;
12
11
  }
@@ -17,8 +16,6 @@
17
16
  class: clazz,
18
17
  onclose: close, // This is the prop from the parent
19
18
  children,
20
- inTransition = (e) => fade(e, { duration: 200 }),
21
- outTransition = (e) => fade(e, { duration: 200 }),
22
19
  ...rest
23
20
  }: DialogProps = $props();
24
21
 
@@ -61,13 +58,22 @@
61
58
  oncancel={requestClose}
62
59
  onclose={close}
63
60
  class={merge(
64
- 'h-full max-h-none w-screen max-w-full bg-transparent backdrop:bg-transparent',
61
+ 'backdrop:bg-surface-800-200/30 h-full max-h-none w-screen max-w-full bg-transparent',
65
62
  theme.current.dialog?.class,
66
63
  clazz
67
64
  )}
68
- in:inTransition
69
- out:outTransition
70
65
  {...rest}
71
66
  >
72
67
  {@render children?.()}
73
68
  </dialog>
69
+
70
+ <style>
71
+ dialog::backdrop {
72
+ animation: fade-in 200ms ease-out;
73
+ }
74
+ @keyframes fade-in {
75
+ from {
76
+ opacity: 0;
77
+ }
78
+ }
79
+ </style>
@@ -4,8 +4,8 @@
4
4
  import { X } from '@lucide/svelte';
5
5
  import type { Snippet } from 'svelte';
6
6
  import { fly } from 'svelte/transition';
7
- import { HiddenBackground } from '..';
8
7
  import Heading from '../Heading.svelte';
8
+ import { Dialog } from '../dialog';
9
9
 
10
10
  export type DrawerPlacement = 'left' | 'right';
11
11
 
@@ -54,7 +54,7 @@
54
54
  </script>
55
55
 
56
56
  {#if currentlyOpen}
57
- <HiddenBackground
57
+ <Dialog
58
58
  onclose={() => {
59
59
  if (closeOnOutsideClick) close();
60
60
  }}
@@ -67,8 +67,8 @@
67
67
  clazz
68
68
  ])}
69
69
  onclick={(e) => e.stopPropagation()}
70
- in:inTransition|global
71
- out:outTransition|global
70
+ in:inTransition
71
+ out:outTransition
72
72
  {...rest}
73
73
  >
74
74
  {#if inner}
@@ -91,5 +91,5 @@
91
91
  {@render children()}
92
92
  {/if}
93
93
  </div>
94
- </HiddenBackground>
94
+ </Dialog>
95
95
  {/if}
@@ -1,6 +1,6 @@
1
+ export { Dialog, type DialogProps } from './dialog';
1
2
  export { default as Drawer } from './drawer/Drawer.svelte';
2
3
  export { default as Heading } from './Heading.svelte';
3
- export { default as HiddenBackground } from './hiddenBackground/HiddenBackground.svelte';
4
4
  export { default as Modal, type ModalProps } from './modal/Modal.svelte';
5
5
  export {
6
6
  default as Popover,
@@ -6,8 +6,9 @@
6
6
  import { X } from '@lucide/svelte';
7
7
  import { type Snippet } from 'svelte';
8
8
  import type { ClassValue, MouseEventHandler } from 'svelte/elements';
9
- import { fade } from 'svelte/transition';
10
- import { Heading, HiddenBackground } from '..';
9
+ import { scale } from 'svelte/transition';
10
+ import { Heading } from '..';
11
+ import { Dialog } from '../dialog';
11
12
 
12
13
  /** Props for the modal, expose if you overwrite the defaults in a custom component */
13
14
  export type ModalProps = TransitionProps & {
@@ -45,8 +46,9 @@
45
46
  variant,
46
47
  innerClass,
47
48
  inTransition = (e) =>
48
- fade(e, {
49
- duration: 200
49
+ scale(e, {
50
+ duration: 200,
51
+ start: 0.8
50
52
  }),
51
53
  outTransition = () => ({}),
52
54
  ...rest
@@ -81,7 +83,7 @@
81
83
  A modal, comes with a title, close button and different variants per default.
82
84
  -->
83
85
  {#if currentlyOpen}
84
- <HiddenBackground
86
+ <Dialog
85
87
  onclose={() => {
86
88
  if (closeOnOutsideClick) close();
87
89
  }}
@@ -143,5 +145,5 @@
143
145
  </div>
144
146
  </div>
145
147
  {/if}
146
- </HiddenBackground>
148
+ </Dialog>
147
149
  {/if}
@@ -8,9 +8,6 @@ export interface Theme {
8
8
  heading?: {
9
9
  class?: ClassValue;
10
10
  };
11
- hiddenBackground?: {
12
- class?: ClassValue;
13
- };
14
11
  dialog?: {
15
12
  class?: ClassValue;
16
13
  };
@@ -1 +0,0 @@
1
- {"version":3,"file":"Markdown.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/components/ai/Markdown.svelte.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAG9C,UAAU,KAAK;IACX,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,OAAO,CAAC,EAAE;QACN,KAAK,EAAE,MAAM,CAAC;QACd,eAAe,EAAE,MAAM,OAAO,CAAC,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC,CAAC;KAC3F,CAAC;CACL;AA8CL;;;GAGG;AACH,QAAA,MAAM,QAAQ,2CAAwC,CAAC;AACvD,KAAK,QAAQ,GAAG,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC;AAC5C,eAAe,QAAQ,CAAC"}
@@ -1,2 +0,0 @@
1
- export { default as Markdown } from './Markdown.svelte';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/components/ai/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,mBAAmB,CAAC"}
@@ -1 +0,0 @@
1
- export { default as Markdown } from './Markdown.svelte';
@@ -1,13 +0,0 @@
1
- <script lang="ts">
2
- import { theme } from '../../../theme.svelte';
3
- import type { DialogProps } from '../dialog';
4
- import Dialog from '../dialog/Dialog.svelte';
5
-
6
- let {
7
- class: clazz,
8
-
9
- ...rest
10
- }: DialogProps = $props();
11
- </script>
12
-
13
- <Dialog {...rest} class={['bg-surface-950-50/40', theme.current.hiddenBackground?.class, clazz]} />
@@ -1,5 +0,0 @@
1
- import type { DialogProps } from '../dialog';
2
- declare const HiddenBackground: import("svelte").Component<DialogProps, {}, "">;
3
- type HiddenBackground = ReturnType<typeof HiddenBackground>;
4
- export default HiddenBackground;
5
- //# sourceMappingURL=HiddenBackground.svelte.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HiddenBackground.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/layout/hiddenBackground/HiddenBackground.svelte.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAmB7C,QAAA,MAAM,gBAAgB,iDAAwC,CAAC;AAC/D,KAAK,gBAAgB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC5D,eAAe,gBAAgB,CAAC"}
@@ -1 +0,0 @@
1
- export { default as Markdown } from './Markdown.svelte';
@@ -1,13 +0,0 @@
1
- <script lang="ts">
2
- import { theme } from '$lib/theme.svelte';
3
- import type { DialogProps } from '../dialog';
4
- import Dialog from '../dialog/Dialog.svelte';
5
-
6
- let {
7
- class: clazz,
8
-
9
- ...rest
10
- }: DialogProps = $props();
11
- </script>
12
-
13
- <Dialog {...rest} class={['bg-surface-950-50/40', theme.current.hiddenBackground?.class, clazz]} />
File without changes