@pstdio/ui 0.12.1 → 0.13.0

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.
@@ -1,3 +1,4 @@
1
+ import { ReactNode } from 'react';
1
2
  interface DeleteConfirmationModalProps {
2
3
  open: boolean;
3
4
  onClose: () => void;
@@ -5,6 +6,8 @@ interface DeleteConfirmationModalProps {
5
6
  headline?: string;
6
7
  notificationText?: string;
7
8
  buttonText?: string;
9
+ /** Extra controls rendered below the message, e.g. an opt-in checkbox. */
10
+ children?: ReactNode;
8
11
  }
9
12
  export type { DeleteConfirmationModalProps };
10
13
  export declare const DeleteConfirmationModal: (props: DeleteConfirmationModalProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { ReactElement } from 'react';
2
+ import { ListRowItem } from './list-row.types';
3
+ interface ListRowChromeProps {
4
+ item: ListRowItem;
5
+ menuOpen: boolean;
6
+ children: ReactElement;
7
+ onMenuOpenChange: (open: boolean) => void;
8
+ onMenuSelect: (item: NonNullable<ListRowItem["menuItems"]>[number]) => void;
9
+ }
10
+ export declare const ListRowChrome: (props: ListRowChromeProps) => import("react/jsx-runtime").JSX.Element;
11
+ export {};
package/dist/index.d.ts CHANGED
@@ -94,7 +94,10 @@ export type { WorkspaceBadgeProps } from './components/workspace-badge';
94
94
  export { WorkspaceBadge } from './components/workspace-badge';
95
95
  export type { MonacoThemeData, VsCodeColorTheme } from './theme';
96
96
  export { createMonacoThemeFromVsCodeTheme, createThemePreferenceFromVsCodeTheme, psTheme, } from './theme';
97
+ export { applyFileIconThemePreference, defaultFileIconThemePreferences, type FileIconThemeFont, type FileIconThemePreferenceOption, isFileIconThemePreference, resolveFileIconGlyph, } from './utils/apply-file-icon-theme-preference';
97
98
  export { applyThemePreference, defaultThemePreferences, getThemePreferenceClassName, getThemePreferenceClassNames, getThemePreferenceMode, isThemePreference, type ThemePreference, type ThemePreferenceMode, type ThemePreferenceOption, type ThemePreferenceTokens, } from './utils/apply-theme-preference';
99
+ export { FileIconThemePreferenceProvider, useFileIconThemePreference, } from './utils/file-icon-theme-preference';
98
100
  export { getFileTypeIcon } from './utils/get-file-type-icon';
99
101
  export { installPrismGlobal } from './utils/prism';
102
+ export { resolveFileIconElement } from './utils/resolve-file-icon-element';
100
103
  export { getInitialThemePreference, ThemePreferenceProvider, useThemePreference, } from './utils/theme-preference';