@streamscloud/kit 0.2.0 → 0.2.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.
@@ -70,14 +70,14 @@
70
70
  max-height: 100%;
71
71
  }
72
72
 
73
- @mixin scrollbar($thumb-color: var(--scrollbar--thumb-color, #7d7d7d), $track-color: var(--scrollbar--track-color, transparent)) {
73
+ @mixin scrollbar($thumb-color: var(--scrollbar--thumb-color, light-dark(#999999, #333333)), $track-color: var(--scrollbar--track-color, transparent)) {
74
74
  --_cross-browser-scrollbar--thumb-color: #{$thumb-color};
75
75
  --_cross-browser-scrollbar--track-color: #{$track-color};
76
76
 
77
77
  @include _cross-browser-scrollbar;
78
78
  }
79
79
 
80
- @mixin scrollbar-on-hover($thumb-color: var(--scrollbar--thumb-color, #7d7d7d), $track-color: var(--scrollbar--track-color, transparent)) {
80
+ @mixin scrollbar-on-hover($thumb-color: var(--scrollbar--thumb-color, light-dark(#999999, #333333)), $track-color: var(--scrollbar--track-color, transparent)) {
81
81
  --_cross-browser-scrollbar--thumb-color: transparent;
82
82
  --_cross-browser-scrollbar--track-color: transparent;
83
83
 
@@ -121,7 +121,7 @@ input[type=number] {
121
121
  textarea {
122
122
  vertical-align: top;
123
123
  resize: vertical;
124
- --_cross-browser-scrollbar--thumb-color: var(--scrollbar--thumb-color, #7d7d7d);
124
+ --_cross-browser-scrollbar--thumb-color: var(--scrollbar--thumb-color, light-dark(#999999, #333333));
125
125
  --_cross-browser-scrollbar--track-color: var(--scrollbar--track-color, transparent);
126
126
  }
127
127
  textarea::-webkit-scrollbar {
@@ -104,7 +104,7 @@ A structured dialog panel with header (title + close button), scrollable body, a
104
104
  min-height: 0;
105
105
  overflow-y: auto;
106
106
  padding: var(--_dialog--body--padding-block) var(--_dialog--body--padding-inline);
107
- --_cross-browser-scrollbar--thumb-color: var(--scrollbar--thumb-color, #7d7d7d);
107
+ --_cross-browser-scrollbar--thumb-color: var(--scrollbar--thumb-color, light-dark(#999999, #333333));
108
108
  --_cross-browser-scrollbar--track-color: var(--scrollbar--track-color, transparent);
109
109
  }
110
110
  .dialog__body::-webkit-scrollbar {
@@ -9,6 +9,7 @@ import type { MediaViewerData } from './types';
9
9
  * - `index` — zero-based index of the initially visible item
10
10
  * - `backgroundOpacity` — backdrop opacity (default `0.6`)
11
11
  * - `carouselMode` — carousel navigation mode (default `'arrows-with-counts'`)
12
+ * - `host` — mount target for the dialog element (default `document.body`)
12
13
  */
13
- export declare const openMediaViewer: (data: MediaViewerData) => Promise<DialogResult<void>>;
14
+ export declare const openMediaViewer: (data: MediaViewerData, host?: ParentNode) => Promise<DialogResult<void>>;
14
15
  export type { MediaViewerData, MediaViewerItem, MediaViewerItemType } from './types';
@@ -9,10 +9,12 @@ import { default as MediaViewerDialog } from './cmp.media-viewer-dialog.svelte';
9
9
  * - `index` — zero-based index of the initially visible item
10
10
  * - `backgroundOpacity` — backdrop opacity (default `0.6`)
11
11
  * - `carouselMode` — carousel navigation mode (default `'arrows-with-counts'`)
12
+ * - `host` — mount target for the dialog element (default `document.body`)
12
13
  */
13
- export const openMediaViewer = (data) => {
14
+ export const openMediaViewer = (data, host) => {
14
15
  return Dialogs.open({
15
16
  view: MediaViewerDialog,
16
- data
17
+ data,
18
+ host
17
19
  });
18
20
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamscloud/kit",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "author": "StreamsCloud",
5
5
  "repository": {
6
6
  "type": "git",