@fibrae/semi-ui-svelte 0.9.0 → 0.9.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.
@@ -248,6 +248,7 @@
248
248
  contentEl?.querySelector(`#${CSS.escape(optionId(key))}`)?.scrollIntoView({ block: 'nearest' });
249
249
  }
250
250
  },
251
+ getColumnRect: (index) => contentEl?.querySelectorAll(`.${cssClasses.PREFIX_OPTION}-list`)[index]?.getBoundingClientRect() ?? null,
251
252
  })
252
253
  );
253
254
 
@@ -2,7 +2,7 @@
2
2
  import { cssClasses } from '@fibrae/semi-foundation/components/form/constants';
3
3
  import { toCssLength } from '@fibrae/semi-foundation/utils';
4
4
  import '@fibrae/semi-foundation/components/form/form.css';
5
- import { IconHelpCircle } from '@fibrae/semi-icons-svelte';
5
+ import { IconHelpCircleStroked } from '@fibrae/semi-icons-svelte';
6
6
  import useLocale from '../locale/use-locale.svelte.js';
7
7
  import type { TooltipTriggerProps } from '../tooltip/interface.js';
8
8
  import Tooltip from '../tooltip/tooltip.svelte';
@@ -35,7 +35,7 @@
35
35
 
36
36
  {#snippet tooltipButton(triggerProps: Partial<TooltipTriggerProps>)}
37
37
  <button {...triggerProps} aria-label={locale().locale.labelTooltip} class={`${prefix}-tooltip`} type="button">
38
- <IconHelpCircle size="inherit" />
38
+ <IconHelpCircleStroked size="inherit" />
39
39
  </button>
40
40
  {/snippet}
41
41
 
@@ -145,6 +145,9 @@
145
145
  get returnFocusOnClose() {
146
146
  return returnFocusOnClose;
147
147
  },
148
+ get role() {
149
+ return role;
150
+ },
148
151
  get showArrow() {
149
152
  return showArrow;
150
153
  },