@streamscloud/kit 0.2.33 → 0.2.34-1776170005887

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.
@@ -93,35 +93,11 @@ A collapsible section within a GroupedSidebar. Renders a trigger button with che
93
93
  }
94
94
  .grouped-sidebar-section__content--expanded {
95
95
  flex: 0 0 auto;
96
+ overflow: visible;
96
97
  padding: var(--_grouped-sidebar-section--padding-block) var(--_grouped-sidebar-section--padding-inline);
97
98
  padding-bottom: 0;
98
99
  margin-bottom: var(--_grouped-sidebar-section--padding-block);
99
100
  }
100
101
  .grouped-sidebar-section__content--fill {
101
102
  flex: 1;
102
- overflow-y: auto;
103
- --_cross-browser-scrollbar--thumb-color: transparent;
104
- --_cross-browser-scrollbar--track-color: transparent;
105
- }
106
- .grouped-sidebar-section__content--fill:hover {
107
- --_cross-browser-scrollbar--thumb-color: var(--scrollbar--thumb-color, light-dark(#d1d5db, #4b5563));
108
- --_cross-browser-scrollbar--track-color: var(--scrollbar--track-color, transparent);
109
- }
110
- .grouped-sidebar-section__content--fill::-webkit-scrollbar {
111
- width: 6px;
112
- height: 6px;
113
- }
114
- .grouped-sidebar-section__content--fill::-webkit-scrollbar-track {
115
- background: var(--_cross-browser-scrollbar--track-color);
116
- border-radius: 100vw;
117
- }
118
- .grouped-sidebar-section__content--fill::-webkit-scrollbar-thumb {
119
- background: var(--_cross-browser-scrollbar--thumb-color);
120
- border-radius: 100vw;
121
- }
122
- @supports (scrollbar-color: transparent transparent) {
123
- .grouped-sidebar-section__content--fill {
124
- scrollbar-color: var(--_cross-browser-scrollbar--thumb-color) var(--_cross-browser-scrollbar--track-color);
125
- scrollbar-width: thin;
126
- }
127
103
  }</style>
@@ -7,12 +7,12 @@ import IconReorderDotsVertical from '@fluentui/svg-icons/icons/re_order_dots_ver
7
7
  import Fuse from 'fuse.js';
8
8
  import { dndzone } from 'svelte-dnd-action';
9
9
  import Select from 'svelte-select';
10
- let { value = null, options = [], placeholder = '', disabled = false, loading = false, creatable = null, inlineSelection = false, hideEmptyState = false, showFullItem = false, reorderable = false, compareBy, floatingStrategy = 'absolute', on, icon, chevronIcon } = $props();
10
+ let { value = null, options = [], placeholder = '', disabled = false, loading = false, creatable = null, inlineSelection = false, hideEmptyState = false, showFullItem = false, reorderable = false, compareBy, on, icon, chevronIcon } = $props();
11
11
  const valuesEqual = (a, b) => (compareBy ? compareBy(a) === compareBy(b) : a === b);
12
12
  const loc = new SelectLocalization();
13
13
  let listOpen = $state(false);
14
14
  let filterText = $state('');
15
- const floatingConfig = $derived({ strategy: floatingStrategy });
15
+ const floatingConfig = { strategy: 'absolute' };
16
16
  const flattenGroupedOptions = (opts) => {
17
17
  const result = [];
18
18
  for (const opt of opts) {
@@ -19,8 +19,6 @@ declare function $$render<T>(): {
19
19
  reorderable?: boolean;
20
20
  /** Custom equality comparator for option values. When provided, two values are equal if compareBy(a) === compareBy(b). */
21
21
  compareBy?: (value: T) => string | number;
22
- /** Floating UI positioning strategy. Use 'fixed' when the select is inside an overflow-hidden container. */
23
- floatingStrategy?: "absolute" | "fixed";
24
22
  on?: {
25
23
  change?: (value: T[]) => void;
26
24
  create?: (label: string) => void;
@@ -9,12 +9,12 @@ import Fuse from 'fuse.js';
9
9
  import { nanoid } from 'nanoid';
10
10
  import { dndzone } from 'svelte-dnd-action';
11
11
  import Select from 'svelte-select';
12
- let { value = null, loadOptions: loadOptionsFn, debounce = 350, placeholder = '', disabled = false, loading = false, creatable = null, inlineSelection = false, hideEmptyState = false, showFullItem = false, showChevron = false, maxVisibleItems = undefined, reorderable = false, compareBy, floatingStrategy = 'absolute', on, icon, chevronIcon, optionSnippet } = $props();
12
+ let { value = null, loadOptions: loadOptionsFn, debounce = 350, placeholder = '', disabled = false, loading = false, creatable = null, inlineSelection = false, hideEmptyState = false, showFullItem = false, showChevron = false, maxVisibleItems = undefined, reorderable = false, compareBy, on, icon, chevronIcon, optionSnippet } = $props();
13
13
  const valuesEqual = (a, b) => (compareBy ? compareBy(a) === compareBy(b) : a === b);
14
14
  const loc = new SelectLocalization();
15
15
  let listOpen = $state(false);
16
16
  let filterText = $state('');
17
- const floatingConfig = $derived({ strategy: floatingStrategy });
17
+ const floatingConfig = { strategy: 'absolute' };
18
18
  let loadingIndicatorShown = $state(false);
19
19
  let loadingIndicatorTimeout = null;
20
20
  $effect(() => {
@@ -26,8 +26,6 @@ declare function $$render<T>(): {
26
26
  reorderable?: boolean;
27
27
  /** Custom equality comparator for option values. When provided, two values are equal if compareBy(a) === compareBy(b). */
28
28
  compareBy?: (value: T) => string | number;
29
- /** Floating UI positioning strategy. Use 'fixed' when the select is inside an overflow-hidden container. */
30
- floatingStrategy?: "absolute" | "fixed";
31
29
  on?: {
32
30
  change?: (value: SelectOption<T>[]) => void;
33
31
  create?: (label: string) => void;
@@ -4,12 +4,12 @@ import IconAdd from '@fluentui/svg-icons/icons/add_16_filled.svg?raw';
4
4
  import IconChevronDown from '@fluentui/svg-icons/icons/chevron_down_20_regular.svg?raw';
5
5
  import Fuse from 'fuse.js';
6
6
  import Select from 'svelte-select';
7
- let { value = null, options = [], placeholder = '', disabled = false, loading = false, creatable = null, allowReset = false, groupHeaderSelectable = false, compareBy, floatingStrategy = 'absolute', on, icon, optionSnippet, selectionSnippet } = $props();
7
+ let { value = null, options = [], placeholder = '', disabled = false, loading = false, creatable = null, allowReset = false, groupHeaderSelectable = false, compareBy, on, icon, optionSnippet, selectionSnippet } = $props();
8
8
  const valuesEqual = (a, b) => (compareBy ? compareBy(a) === compareBy(b) : a === b);
9
9
  const loc = new SelectLocalization();
10
10
  let listOpen = $state(false);
11
11
  let filterText = $state('');
12
- const floatingConfig = $derived({ strategy: floatingStrategy });
12
+ const floatingConfig = { strategy: 'absolute' };
13
13
  const flattenGroupedOptions = (opts) => {
14
14
  const result = [];
15
15
  for (const opt of opts) {
@@ -15,8 +15,6 @@ declare function $$render<T>(): {
15
15
  groupHeaderSelectable?: boolean;
16
16
  /** Custom equality comparator for option values. When provided, two values are equal if compareBy(a) === compareBy(b). */
17
17
  compareBy?: (value: T) => string | number;
18
- /** Floating UI positioning strategy. Use 'fixed' when the select is inside an overflow-hidden container. */
19
- floatingStrategy?: "absolute" | "fixed";
20
18
  on?: {
21
19
  change?: (value: T | null) => void;
22
20
  create?: (label: string) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamscloud/kit",
3
- "version": "0.2.33",
3
+ "version": "0.2.34-1776170005887",
4
4
  "author": "StreamsCloud",
5
5
  "repository": {
6
6
  "type": "git",