@hiver/connector-admin 4.17.8 → 4.18.0-darktheme2-beta.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.
- package/app/automation-map-fields/index.d.ts +5 -1
- package/app/automation-map-fields/index.d.ts.map +1 -1
- package/app/automation-map-fields/provider.d.ts +3 -1
- package/app/automation-map-fields/provider.d.ts.map +1 -1
- package/app/connectors/pages/settings/components/upgrade-guide/styles.d.ts.map +1 -1
- package/app/connectors/pages/upgrade-page/index.d.ts.map +1 -1
- package/dev/theme-mode-widget.d.ts +12 -0
- package/dev/theme-mode-widget.d.ts.map +1 -0
- package/features/connector-library/components/visibility-modal/card-visibility/index.d.ts.map +1 -1
- package/features/connector-library/components/visibility-modal/field-visibility/style.d.ts.map +1 -1
- package/features/connector-library/components/visibility-modal/style.d.ts.map +1 -1
- package/index.d.ts +2 -0
- package/index.d.ts.map +1 -1
- package/index.es.js +15164 -13861
- package/index.umd.js +935 -813
- package/main.d.ts.map +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/v2/app/connectors/index.d.ts +1 -1
- package/v2/app/connectors/index.d.ts.map +1 -1
- package/v2/app/connectors/pages/app-detail/Configuration.d.ts.map +1 -1
- package/v2/app/connectors/pages/app-detail/index.d.ts.map +1 -1
- package/v2/app/connectors/pages/app-detail/style.d.ts.map +1 -1
- package/v2/app/connectors/pages/auth-success/styles.d.ts.map +1 -1
- package/v2/app/connectors/pages/settings/auth/components/upgrade-guide/styles.d.ts.map +1 -1
- package/v2/app/connectors/pages/settings/auth/styles.d.ts.map +1 -1
- package/v2/app/connectors/pages/settings/index.d.ts.map +1 -1
- package/v2/app/connectors/pages/settings/styles.d.ts.map +1 -1
- package/v2/app/connectors/pages/upgrade-page/index.d.ts.map +1 -1
- package/v2/app/connectors/pages/upgrade-page/style.d.ts.map +1 -1
- package/v2/app/connectors/provider.d.ts.map +1 -1
- package/v2/app/style.d.ts.map +1 -1
- package/v2/components/ui/auto-complete/dropdownOmni.d.ts +11 -8
- package/v2/components/ui/auto-complete/dropdownOmni.d.ts.map +1 -1
- package/v2/components/ui/auto-complete/index.d.ts.map +1 -1
- package/v2/components/ui/connector-alert/index.d.ts.map +1 -1
- package/v2/components/ui/connector-item/index.d.ts.map +1 -1
- package/v2/components/ui/connector-item/styles.d.ts.map +1 -1
- package/v2/components/ui/custom-tooltip/index.d.ts.map +1 -1
- package/v2/components/ui/loader-button/index.d.ts.map +1 -1
- package/v2/components/ui/status-chip/styles.d.ts.map +1 -1
- package/v2/components/ui/styled-ui-components.d.ts.map +1 -1
- package/v2/features/advanced-features/components/confirm-modal/index.d.ts.map +1 -1
- package/v2/features/advanced-features/components/feature-item/index.d.ts +2 -1
- package/v2/features/advanced-features/components/feature-item/index.d.ts.map +1 -1
- package/v2/features/advanced-features/types/index.d.ts +2 -1
- package/v2/features/advanced-features/types/index.d.ts.map +1 -1
- package/v2/features/api-library/components/api-library/styles.d.ts.map +1 -1
- package/v2/features/auth/components/api-executor/index.d.ts.map +1 -1
- package/v2/features/auth/components/api-executor/styles.d.ts.map +1 -1
- package/v2/features/auth/components/auth-form/index.d.ts.map +1 -1
- package/v2/features/connector-library/components/connector-info-card/index.d.ts.map +1 -1
- package/v2/features/connector-library/components/connector-info-card-list/index.d.ts.map +1 -1
- package/v2/features/connector-library/components/connector-info-card-list/styles.d.ts +1 -1
- package/v2/features/connector-library/components/connector-info-card-list/styles.d.ts.map +1 -1
- package/v2/features/connector-library/components/custom-connector-card-item/index.d.ts.map +1 -1
- package/v2/features/connector-library/components/custom-connector-upgrades-tooltip/index.d.ts.map +1 -1
- package/v2/features/connector-library/components/customer-identity-mapping/index.d.ts.map +1 -1
- package/v2/features/connector-library/components/map-form-defaults/index.d.ts.map +1 -1
- package/v2/features/connector-library/components/visibility-modal/card-visibility/form.d.ts.map +1 -1
- package/v2/features/connector-library/components/visibility-modal/field-visibility/configure-fields/sortable-field.d.ts.map +1 -1
- package/v2/features/connector-library/components/visibility-modal/field-visibility/configure-fields/styles.d.ts.map +1 -1
- package/v2/features/connector-library/components/visibility-modal/field-visibility/form.d.ts.map +1 -1
- package/v2/features/connector-library/components/visibility-modal/field-visibility/style.d.ts.map +1 -1
- package/v2/features/connector-library/components/visibility-modal/style.d.ts.map +1 -1
- package/v2/features/connector-setup-guide/components/guide-links/styles.d.ts.map +1 -1
- package/v2/features/connector-setup-guide/components/schedule-call/index.d.ts.map +1 -1
- package/v2/features/connector-setup-guide/components/schedule-call/styles.d.ts.map +1 -1
- package/v2/features/request-new-connector/components/request-new-modal/styles.d.ts.map +1 -1
- package/v2/features/slack/components/ConfigBlockIcons.d.ts +2 -2
- package/v2/theme/connector-admin-theme-provider.d.ts +7 -0
- package/v2/theme/connector-admin-theme-provider.d.ts.map +1 -0
- package/v2/theme/connector-admin-theme.d.ts +67 -0
- package/v2/theme/connector-admin-theme.d.ts.map +1 -0
- package/v2/theme/connector-admin-theme.test.d.ts +2 -0
- package/v2/theme/connector-admin-theme.test.d.ts.map +1 -0
- package/v2/types/app.d.ts +3 -0
- package/v2/types/app.d.ts.map +1 -1
|
@@ -4,8 +4,8 @@ import { FC } from 'react';
|
|
|
4
4
|
* 683:672512 `mail` + 683:672536 `mdi:message-outline`). Inlined as
|
|
5
5
|
* components rather than imported from the curated `icons` namespace
|
|
6
6
|
* because that set ships neither this stroked mail icon nor a
|
|
7
|
-
* message-outline glyph. Colour
|
|
8
|
-
*
|
|
7
|
+
* message-outline glyph. Colour follows the connector-admin semantic icon
|
|
8
|
+
* tokens so the same asset works in light and charcoal modes.
|
|
9
9
|
*/
|
|
10
10
|
interface IconProps {
|
|
11
11
|
size?: number;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ConnectorAdminThemeConfig } from './connector-admin-theme';
|
|
2
|
+
export declare const ConnectorAdminThemeProvider: ({ config, overrideFont, children }: {
|
|
3
|
+
config?: ConnectorAdminThemeConfig;
|
|
4
|
+
overrideFont: boolean;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=connector-admin-theme-provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connector-admin-theme-provider.d.ts","sourceRoot":"","sources":["../../../src/v2/theme/connector-admin-theme-provider.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAEzE,eAAO,MAAM,2BAA2B,uCAIrC;IACD,MAAM,CAAC,EAAE,yBAAyB,CAAC;IACnC,YAAY,EAAE,OAAO,CAAC;IACtB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,4CA6QA,CAAC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
export type ConnectorAdminColorScheme = 'light' | 'dark';
|
|
3
|
+
export declare const CONNECTOR_ADMIN_DARK_DROPDOWN_SHADOW = "0 6px 14px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(255, 255, 255, 0.04)";
|
|
4
|
+
export declare const CONNECTOR_ADMIN_DARK_SWITCH_DISABLED_TRACK = "#5B5D60";
|
|
5
|
+
export declare const CONNECTOR_ADMIN_SWITCH_DISABLED_OPACITY = 0.6;
|
|
6
|
+
export declare const CONNECTOR_ADMIN_SWITCH_CHECKED_DISABLED_TRACK_OPACITY = 0.3;
|
|
7
|
+
/**
|
|
8
|
+
* Host-facing semantic contract for Connector Admin.
|
|
9
|
+
*
|
|
10
|
+
* Hosts should send their design-system aliases (CSS variables are supported)
|
|
11
|
+
* at the package boundary. The package must not depend directly on a host's
|
|
12
|
+
* token names.
|
|
13
|
+
*/
|
|
14
|
+
export interface ConnectorAdminThemeTokens {
|
|
15
|
+
canvas: string;
|
|
16
|
+
surface: string;
|
|
17
|
+
surfaceSubtle: string;
|
|
18
|
+
surfaceElevated: string;
|
|
19
|
+
surfaceHover: string;
|
|
20
|
+
surfaceActive: string;
|
|
21
|
+
tooltipSurface: string;
|
|
22
|
+
tooltipText: string;
|
|
23
|
+
border: string;
|
|
24
|
+
borderStrong: string;
|
|
25
|
+
textPrimary: string;
|
|
26
|
+
textSecondary: string;
|
|
27
|
+
textTertiary: string;
|
|
28
|
+
textMuted: string;
|
|
29
|
+
textDisabled: string;
|
|
30
|
+
iconPrimary: string;
|
|
31
|
+
iconSecondary: string;
|
|
32
|
+
iconDisabled: string;
|
|
33
|
+
iconAccent: string;
|
|
34
|
+
accent: string;
|
|
35
|
+
accentHover: string;
|
|
36
|
+
accentSubtle: string;
|
|
37
|
+
primaryAction: string;
|
|
38
|
+
primaryActionHover: string;
|
|
39
|
+
primaryActionActive: string;
|
|
40
|
+
negative: string;
|
|
41
|
+
negativeSubtle: string;
|
|
42
|
+
negativeSubtleSoft: string;
|
|
43
|
+
cardAlertIcon: string;
|
|
44
|
+
success: string;
|
|
45
|
+
warning: string;
|
|
46
|
+
onAccent: string;
|
|
47
|
+
inputBackground: string;
|
|
48
|
+
inputFilledBackground: string;
|
|
49
|
+
inputDisabledBackground: string;
|
|
50
|
+
inputBorder: string;
|
|
51
|
+
inputBorderHover: string;
|
|
52
|
+
inputBorderFocus: string;
|
|
53
|
+
inputBorderInvalid: string;
|
|
54
|
+
inputText: string;
|
|
55
|
+
inputDisabledText: string;
|
|
56
|
+
inputPlaceholder: string;
|
|
57
|
+
inputShadow: string;
|
|
58
|
+
}
|
|
59
|
+
export interface ConnectorAdminThemeConfig {
|
|
60
|
+
mode: ConnectorAdminColorScheme;
|
|
61
|
+
tokens?: Partial<ConnectorAdminThemeTokens>;
|
|
62
|
+
}
|
|
63
|
+
export declare const connectorAdminThemeDefaults: Record<ConnectorAdminColorScheme, ConnectorAdminThemeTokens>;
|
|
64
|
+
export declare const resolveConnectorAdminThemeTokens: ({ mode, tokens }: ConnectorAdminThemeConfig) => ConnectorAdminThemeTokens;
|
|
65
|
+
export declare const connectorAdminThemeCssVariables: (mode: ConnectorAdminColorScheme, tokens: ConnectorAdminThemeTokens) => CSSProperties;
|
|
66
|
+
export declare const createConnectorAdminMuiTheme: (mode: ConnectorAdminColorScheme, tokens: ConnectorAdminThemeTokens) => import('@hiver/hiver-ui-kit').Theme;
|
|
67
|
+
//# sourceMappingURL=connector-admin-theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connector-admin-theme.d.ts","sourceRoot":"","sources":["../../../src/v2/theme/connector-admin-theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAG3C,MAAM,MAAM,yBAAyB,GAAG,OAAO,GAAG,MAAM,CAAC;AAEzD,eAAO,MAAM,oCAAoC,wEACsB,CAAC;AACxE,eAAO,MAAM,0CAA0C,YAAY,CAAC;AACpE,eAAO,MAAM,uCAAuC,MAAM,CAAC;AAC3D,eAAO,MAAM,qDAAqD,MAAM,CAAC;AAEzE;;;;;;GAMG;AACH,MAAM,WAAW,yBAAyB;IACxC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EA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ector-admin-theme.test.ts"],"names":[],"mappings":""}
|
package/v2/types/app.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { IBaseUrls } from '../context';
|
|
|
3
3
|
import { IMetaData } from '@connector/utils';
|
|
4
4
|
import { ConnectorsAdminFunctions } from './exposedTypes';
|
|
5
5
|
import { Variable } from '@connector/ui';
|
|
6
|
+
import { ConnectorAdminThemeConfig } from '../theme/connector-admin-theme';
|
|
6
7
|
export interface IAvailableFtr {
|
|
7
8
|
[key: string]: boolean;
|
|
8
9
|
}
|
|
@@ -25,6 +26,7 @@ export interface IAppProviderProps {
|
|
|
25
26
|
nativeIntegrations?: NativeIntegrations[];
|
|
26
27
|
suggestedAppsMap?: Record<string, boolean>;
|
|
27
28
|
overrideFont?: boolean;
|
|
29
|
+
theme?: ConnectorAdminThemeConfig;
|
|
28
30
|
}
|
|
29
31
|
export interface NativeIntegrations {
|
|
30
32
|
name: string;
|
|
@@ -51,5 +53,6 @@ export interface IConnectorApp {
|
|
|
51
53
|
nativeIntegrations?: NativeIntegrations[];
|
|
52
54
|
suggestedAppsMap?: Record<string, boolean>;
|
|
53
55
|
overrideFont?: boolean;
|
|
56
|
+
theme?: ConnectorAdminThemeConfig;
|
|
54
57
|
}
|
|
55
58
|
//# sourceMappingURL=app.d.ts.map
|
package/v2/types/app.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../../src/v2/types/app.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../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