@openfin/ui-library 0.31.3-alpha.20251203172248.f33d571 → 0.31.3-alpha.20260113190318
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/components/controls/Button/button.variants.d.ts +3 -3
- package/dist/components/controls/ViewTab/ViewTab.d.ts +41 -0
- package/dist/components/controls/ViewTab/index.d.ts +2 -0
- package/dist/components/system/ThemeProvider/lib/helpers.d.ts +8 -3
- package/dist/components/system/ThemeProvider/lib/types.d.ts +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +329 -295
- package/dist/styles/_core/tokens.css +1 -1
- package/dist/styles/_modules/core-ui/browser/control-bar.css +1 -1
- package/dist/styles/_modules/core-ui/browser/control-bar.css.map +1 -1
- package/dist/styles/_modules/core-ui/browser/golden-layout-story.css +1 -0
- package/dist/styles/_modules/core-ui/browser/golden-layout-story.css.map +1 -0
- package/dist/styles/_modules/core-ui/browser/index.css +1 -1
- package/dist/styles/_modules/core-ui/browser/index.css.map +1 -1
- package/dist/styles/_modules/core-ui/browser/layout-container.css +1 -0
- package/dist/styles/_modules/core-ui/browser/layout-container.css.map +1 -0
- package/dist/styles/_modules/core-ui/browser/page-button.css +1 -1
- package/dist/styles/_modules/core-ui/browser/page-button.css.map +1 -1
- package/dist/styles/_modules/core-ui/browser/root.css +1 -1
- package/dist/styles/_modules/core-ui/browser/root.css.map +1 -1
- package/dist/styles/_modules/core-ui/browser/view-tab.css +1 -0
- package/dist/styles/_modules/core-ui/browser/view-tab.css.map +1 -0
- package/dist/styles/_modules/core-ui/browser/view-tab.stories.css +1 -0
- package/dist/styles/_modules/core-ui/browser/view-tab.stories.css.map +1 -0
- package/dist/styles/_modules/core-ui/index.css +1 -1
- package/dist/styles/_modules/core-ui/index.css.map +1 -1
- package/dist/styles/_modules/core-ui/temp-tokens.css +1 -1
- package/dist/styles/_modules/core-ui/tokens-data-scheme.css +1 -0
- package/dist/styles/_modules/core-ui/tokens-data-scheme.css.map +1 -0
- package/dist/styles/_modules/core-ui/tokens-prefers-color-scheme.css +3 -0
- package/dist/styles/_modules/core-ui/tokens-prefers-color-scheme.css.map +1 -0
- package/dist/styles/_modules/enterprise/index.css +1 -1
- package/dist/styles/_modules/enterprise/index.css.map +1 -1
- package/dist/styles/_modules/enterprise/tabs/index.css +1 -1
- package/dist/styles/_modules/enterprise/tabs/index.css.map +1 -1
- package/dist/styles/_modules/enterprise/tabs/tabs.css +1 -1
- package/dist/styles/_modules/enterprise/tabs/tabs.css.map +1 -1
- package/dist/types/core-ui-css-selectors.d.ts +3 -8
- package/dist/types/core-ui-css-selectors.js +3 -8
- package/dist/types/core-ui-css-selectors.ts +3 -8
- package/dist/types/enterprise-css-selectors.d.ts +1 -1
- package/dist/types/enterprise-css-selectors.js +1 -1
- package/dist/types/enterprise-css-selectors.ts +1 -1
- package/dist/types/shared-css-selectors.d.ts +1 -1
- package/dist/types/shared-css-selectors.js +1 -1
- package/dist/types/shared-css-selectors.ts +1 -1
- package/dist/utils/SchemeManager.d.ts +85 -0
- package/dist/utils/index.d.ts +2 -0
- package/package.json +5 -4
|
@@ -57,8 +57,8 @@ export declare const variants: {
|
|
|
57
57
|
readonly full: import("styled-components").FlattenSimpleInterpolation;
|
|
58
58
|
};
|
|
59
59
|
readonly kind: {
|
|
60
|
-
readonly primary: import("styled-components").
|
|
61
|
-
readonly secondary: import("styled-components").
|
|
62
|
-
readonly textOnly: import("styled-components").
|
|
60
|
+
readonly primary: import("styled-components").FlattenSimpleInterpolation;
|
|
61
|
+
readonly secondary: import("styled-components").FlattenSimpleInterpolation;
|
|
62
|
+
readonly textOnly: import("styled-components").FlattenSimpleInterpolation;
|
|
63
63
|
};
|
|
64
64
|
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
declare const DEMO_FAVICONS: {
|
|
3
|
+
readonly google: "https://www.google.com/favicon.ico";
|
|
4
|
+
readonly github: "https://github.githubassets.com/favicons/favicon.svg";
|
|
5
|
+
readonly slack: "https://a.slack-edge.com/80588/marketing/img/meta/favicon-32.png";
|
|
6
|
+
};
|
|
7
|
+
export type ViewTabFavicon = keyof typeof DEMO_FAVICONS | string;
|
|
8
|
+
export type ViewTabColorLink = 'none' | 'green' | 'purple' | 'orange' | 'red' | 'pink' | 'yellow';
|
|
9
|
+
export type ViewTabProps = {
|
|
10
|
+
/** Tab title text */
|
|
11
|
+
title: string;
|
|
12
|
+
/** Favicon URL or preset key (google, github, slack) */
|
|
13
|
+
favicon?: ViewTabFavicon;
|
|
14
|
+
/** Whether the tab is currently selected */
|
|
15
|
+
isActive?: boolean;
|
|
16
|
+
/** Whether the tab's view is focused */
|
|
17
|
+
isFocused?: boolean;
|
|
18
|
+
/** Whether the tab is locked (hides close button, shows lock icon) */
|
|
19
|
+
isLocked?: boolean;
|
|
20
|
+
/** Color link for interop context groups */
|
|
21
|
+
colorLink?: ViewTabColorLink;
|
|
22
|
+
/** Whether the parent window is inactive (Enterprise only) */
|
|
23
|
+
inactiveWindow?: boolean;
|
|
24
|
+
/** Whether the spinner is visible (loading state) */
|
|
25
|
+
isLoading?: boolean;
|
|
26
|
+
/** Close button click handler */
|
|
27
|
+
onClose?: () => void;
|
|
28
|
+
/** Tab click handler */
|
|
29
|
+
onClick?: () => void;
|
|
30
|
+
/** Custom class name */
|
|
31
|
+
className?: string;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* ViewTab - Atomic browser tab component
|
|
35
|
+
*
|
|
36
|
+
* Matches Golden Layout's lm_tab HTML structure for styling compatibility.
|
|
37
|
+
* This component is primarily for Storybook demos - in production, Golden Layout
|
|
38
|
+
* renders the actual tabs with these class names.
|
|
39
|
+
*/
|
|
40
|
+
export declare const ViewTab: FC<ViewTabProps>;
|
|
41
|
+
export { DEMO_FAVICONS };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DefaultTheme, StyledProps } from 'styled-components';
|
|
2
2
|
import { StatusType } from '../../HOC';
|
|
3
|
-
import {
|
|
3
|
+
import { StatusColorKey } from './types';
|
|
4
4
|
export type ComponentVariants = {
|
|
5
5
|
[key: string]: {
|
|
6
6
|
[key: string]: any;
|
|
@@ -20,10 +20,15 @@ export declare const getRootCssVars: ({ theme }: {
|
|
|
20
20
|
theme: DefaultTheme;
|
|
21
21
|
}) => string;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Retrieve the correct palette value based on the provided status type.
|
|
24
24
|
* Falls back to optionally provided palette key, then to 'inherit'.
|
|
25
|
+
*
|
|
26
|
+
* Supports:
|
|
27
|
+
* - Status types: active, critical, warning, success (returns theme.palette.statusX)
|
|
28
|
+
* - CSS variable mapping for inputBorder and inputFocused
|
|
29
|
+
* - Backwards compatibility with other Palette keys via theme.palette
|
|
25
30
|
*/
|
|
26
|
-
export declare const getStatusColor: (theme: DefaultTheme, status?: StatusType, defaultKey?:
|
|
31
|
+
export declare const getStatusColor: (theme: DefaultTheme, status?: StatusType, defaultKey?: StatusColorKey) => string;
|
|
27
32
|
/**
|
|
28
33
|
* A list of languages supported by the OpenFin UI.
|
|
29
34
|
*/
|
|
@@ -20,6 +20,8 @@ export type ThemeSet = {
|
|
|
20
20
|
};
|
|
21
21
|
export type PaletteKeyType = keyof typeof Palette;
|
|
22
22
|
export type PaletteType = Record<keyof typeof Palette, string>;
|
|
23
|
+
export type AltPaletteKey = 'ghostIconDefault';
|
|
24
|
+
export type StatusColorKey = keyof typeof Palette | AltPaletteKey;
|
|
23
25
|
/**
|
|
24
26
|
* # Utility Types
|
|
25
27
|
* ========================================================
|
package/dist/index.d.ts
CHANGED
|
@@ -33,5 +33,6 @@ export * from './hooks/usePrevious';
|
|
|
33
33
|
export * from './hooks/useDropdownKeyboardNavigation';
|
|
34
34
|
export * from './lib/whenFin';
|
|
35
35
|
export * from './lib/color-generator';
|
|
36
|
+
export * from './utils';
|
|
36
37
|
export * from './components/helper/ValidationError';
|
|
37
38
|
export * from './assets';
|