@imfusion/web-ui 0.8.1-dev.50.g91c115bb → 0.8.1-dev.58.g0912b389

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.
package/dist/index.d.ts CHANGED
@@ -42,6 +42,7 @@ export { WebUIProvider } from './provider';
42
42
  export { useClipboard, useColorScheme, useMediaQuery } from './hooks';
43
43
  export type { UseClipboardOptions, UseMediaQueryOptions } from './hooks';
44
44
  export { cva, cx } from 'class-variance-authority';
45
+ export { initialsFromEmail, splitEmail } from './utils/email';
45
46
  export { config } from './config';
46
47
  export type { ColorScheme, ColorSchemePreference } from './types/theme';
47
48
  export type { ComponentMeta, ComponentCategory, ComponentCategoryId, ComponentStatus } from './types/meta';
package/dist/index.js CHANGED
@@ -3647,4 +3647,16 @@ function kc({ children: e, icons: t, colorScheme: n }) {
3647
3647
  });
3648
3648
  }
3649
3649
  //#endregion
3650
- export { ea as AccountCard, Nr as AppShell, qi as Avatar, He as Button, ma as Callout, ai as Card, it as Checkbox, Ca as Chip, Ke as ChipLink, fe as Code, Ta as Collapsible, r as ComponentCategories, Xe as CopyButton, Gn as Drawer, ut as Field, Et as Fieldset, f as Icon, tt as IconButton, za as ImFusionLogo, Nt as Input, Pa as Logo, Va as Meter, Ro as NavigationMenu, Ft as NumberField, hi as Popover, Hi as Prose, ve as Row, $t as Select, Se as Separator, Bo as Skeleton, t as Slider, Zo as Spinner, ge as Stack, ye as Switch, $o as Table, be as Tabs, Ss as Toast, _e as Toggle, xe as ToggleGroup, qs as Tooltip, uc as Typo, kc as WebUIProvider, fa as accountCardMeta, ri as appShellMeta, pa as avatarMeta, Ue as buttonMeta, Sa as calloutMeta, mi as cardMeta, lt as checkboxMeta, qe as chipLinkMeta, wa as chipMeta, he as codeMeta, Ma as collapsibleMeta, I as config, Ze as copyButtonMeta, we as cva, Te as cx, yr as drawerMeta, wt as fieldMeta, jt as fieldsetMeta, nt as iconButtonMeta, le as iconMeta, Pt as inputMeta, Fa as logoMeta, Qa as meterMeta, zo as navigationMenuMeta, Qt as numberFieldMeta, Bi as popoverMeta, Ui as proseMeta, Wi as rowMeta, Rn as selectMeta, Gi as separatorMeta, Wo as skeletonMeta, zn as sliderMeta, Qo as spinnerMeta, Ki as stackMeta, Bn as switchMeta, bs as tableMeta, xs as tabsMeta, Ks as toastMeta, Hn as toggleGroupMeta, Vn as toggleMeta, lc as tooltipMeta, Dc as typoMeta, pe as useClipboard, Ar as useColorScheme, Mr as useMediaQuery };
3650
+ //#region src/utils/email.ts
3651
+ function Ac(e) {
3652
+ let t = e.lastIndexOf("@");
3653
+ return t <= 0 || t === e.length - 1 ? { local: e } : {
3654
+ local: e.slice(0, t),
3655
+ domain: e.slice(t + 1)
3656
+ };
3657
+ }
3658
+ function jc(e) {
3659
+ return Ac(e).local.split(/[._-]+/).filter(Boolean).slice(0, 2).map((e) => e.charAt(0).toUpperCase()).join("");
3660
+ }
3661
+ //#endregion
3662
+ export { ea as AccountCard, Nr as AppShell, qi as Avatar, He as Button, ma as Callout, ai as Card, it as Checkbox, Ca as Chip, Ke as ChipLink, fe as Code, Ta as Collapsible, r as ComponentCategories, Xe as CopyButton, Gn as Drawer, ut as Field, Et as Fieldset, f as Icon, tt as IconButton, za as ImFusionLogo, Nt as Input, Pa as Logo, Va as Meter, Ro as NavigationMenu, Ft as NumberField, hi as Popover, Hi as Prose, ve as Row, $t as Select, Se as Separator, Bo as Skeleton, t as Slider, Zo as Spinner, ge as Stack, ye as Switch, $o as Table, be as Tabs, Ss as Toast, _e as Toggle, xe as ToggleGroup, qs as Tooltip, uc as Typo, kc as WebUIProvider, fa as accountCardMeta, ri as appShellMeta, pa as avatarMeta, Ue as buttonMeta, Sa as calloutMeta, mi as cardMeta, lt as checkboxMeta, qe as chipLinkMeta, wa as chipMeta, he as codeMeta, Ma as collapsibleMeta, I as config, Ze as copyButtonMeta, we as cva, Te as cx, yr as drawerMeta, wt as fieldMeta, jt as fieldsetMeta, nt as iconButtonMeta, le as iconMeta, jc as initialsFromEmail, Pt as inputMeta, Fa as logoMeta, Qa as meterMeta, zo as navigationMenuMeta, Qt as numberFieldMeta, Bi as popoverMeta, Ui as proseMeta, Wi as rowMeta, Rn as selectMeta, Gi as separatorMeta, Wo as skeletonMeta, zn as sliderMeta, Qo as spinnerMeta, Ac as splitEmail, Ki as stackMeta, Bn as switchMeta, bs as tableMeta, xs as tabsMeta, Ks as toastMeta, Hn as toggleGroupMeta, Vn as toggleMeta, lc as tooltipMeta, Dc as typoMeta, pe as useClipboard, Ar as useColorScheme, Mr as useMediaQuery };
@@ -1,4 +1,4 @@
1
- type FrameSelectionViewProps = React.HTMLAttributes<HTMLDivElement> & {
1
+ type FrameSelectionViewProps = React.ComponentProps<"div"> & {
2
2
  /** Index of the focused frame, starting at 0. */
3
3
  focus: number;
4
4
  /** Number of frames in the selected image sets. Nothing renders for one frame or fewer. */
@@ -1,5 +1,5 @@
1
1
  import { ChangeHandler, IntensityRange, Options, Ranges, Variant } from './image-display-options-view.utils';
2
- type ImageDisplayOptionsViewProps = React.HTMLAttributes<HTMLDivElement> & {
2
+ type ImageDisplayOptionsViewProps = React.ComponentProps<"div"> & {
3
3
  variant?: Variant;
4
4
  /** Current option values for both dimensions. */
5
5
  options: Options;
@@ -1,6 +1,6 @@
1
1
  import { SharedImageSet } from '@imfusion/sdk';
2
2
  import { Ranges, Variant } from './image-display-options-view.utils';
3
- type Props = React.HTMLAttributes<HTMLDivElement> & {
3
+ type Props = React.ComponentProps<"div"> & {
4
4
  /**
5
5
  * The dataset whose display options are edited.
6
6
  */