@scalio-cloud/ui 0.104.0 → 0.105.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.
- package/README.md +10 -0
- package/nginx/geoip-module.sh +38 -2
- package/package.json +27 -8
- package/react/access_limit.d.ts +6 -0
- package/react/actions.d.ts +16 -0
- package/react/agent_scripts.d.ts +8 -0
- package/react/agents.d.ts +9 -0
- package/react/ai.d.ts +17 -0
- package/react/audit.d.ts +11 -0
- package/react/auth.d.ts +15 -0
- package/react/backup.d.ts +13 -0
- package/react/beacon.d.ts +6 -0
- package/react/blocks.d.ts +21 -0
- package/react/clientErrors.d.ts +6 -0
- package/react/customers.d.ts +8 -0
- package/react/dialog.d.ts +9 -0
- package/react/fields.d.ts +23 -0
- package/react/icons.d.ts +46 -0
- package/react/index.d.ts +77 -0
- package/react/keyboard.d.ts +5 -0
- package/react/labels.d.ts +6 -0
- package/react/legal.d.ts +6 -0
- package/react/license.d.ts +7 -0
- package/react/limited_mode.d.ts +6 -0
- package/react/login.d.ts +30 -0
- package/react/mail.d.ts +10 -0
- package/react/maintenance.d.ts +6 -0
- package/react/markdown.d.ts +14 -0
- package/react/nav.d.ts +31 -0
- package/react/pages.d.ts +10 -0
- package/react/palette.d.ts +12 -0
- package/react/profile.d.ts +20 -0
- package/react/roles.d.ts +8 -0
- package/react/saas_updates.d.ts +10 -0
- package/react/security.d.ts +7 -0
- package/react/selftest.d.ts +9 -0
- package/react/session.d.ts +34 -0
- package/react/settings.d.ts +12 -0
- package/react/setup.d.ts +5 -0
- package/react/suite_context.d.ts +15 -0
- package/react/support.d.ts +9 -0
- package/react/tenancy.d.ts +28 -0
- package/react/tenant.d.ts +9 -0
- package/react/theme.d.ts +6 -0
- package/react/types.d.ts +51 -0
- package/react/unify.d.ts +15 -0
- package/react/users.d.ts +8 -0
- package/react/wizard.d.ts +13 -0
- package/shadcn/alert-dialog.d.mts +17 -0
- package/shadcn/badge.d.mts +6 -0
- package/shadcn/button.d.mts +10 -0
- package/shadcn/checkbox.d.mts +7 -0
- package/shadcn/command.d.mts +15 -0
- package/shadcn/confirm.d.mts +6 -0
- package/shadcn/dialog.d.mts +16 -0
- package/shadcn/dropdown-menu.d.mts +21 -0
- package/shadcn/input.d.mts +7 -0
- package/shadcn/label.d.mts +7 -0
- package/shadcn/popover.d.mts +10 -0
- package/shadcn/progress.d.mts +7 -0
- package/shadcn/select.d.mts +16 -0
- package/shadcn/sonner.d.mts +5 -0
- package/shadcn/switch.d.mts +7 -0
- package/shadcn/table.d.mts +14 -0
- package/shadcn/tabs.d.mts +10 -0
- package/shadcn/textarea.d.mts +7 -0
- package/shadcn/utils.d.mts +3 -0
- package/tailwind-preset.d.ts +9 -0
- package/tokens.d.ts +21 -0
package/react/pages.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// Types for react/pages.js (written by hand, no build step).
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
import type { Props, ScalioComponent } from "./types";
|
|
4
|
+
|
|
5
|
+
export declare const OverviewPage: ScalioComponent<{ title?: any; subtitle?: any; actions?: any; kpis?: any; loading?: any; children?: React.ReactNode; lang?: any; labels?: any; testId?: any; }>;
|
|
6
|
+
export declare const Panel: ScalioComponent<{ title?: any; showAll?: any; onShowAll?: any; empty?: any; emptyText?: any; children?: React.ReactNode; lang?: any; labels?: any; testId?: any; className?: any; }>;
|
|
7
|
+
export declare const ListPage: ScalioComponent<{ title?: any; subtitle?: any; actions?: any; toolbar?: any; loading?: any; empty?: any; emptyText?: any; emptyAction?: any; children?: React.ReactNode; lang?: any; labels?: any; testId?: any; }>;
|
|
8
|
+
export declare const Toolbar: ScalioComponent<{ search?: any; onSearch?: any; searchLabel?: any; filters?: any; onFilter?: any; menu?: any; children?: React.ReactNode; lang?: any; labels?: any; testId?: any; }>;
|
|
9
|
+
export declare const DetailPage: ScalioComponent<{ title?: any; subtitle?: any; back?: any; pageActions?: any; status?: any; badge?: any; actions?: any; tabs?: any; tab?: any; onTab?: any; facts?: any; factsTitle?: any; loading?: any; children?: React.ReactNode; lang?: any; labels?: any; testId?: any; }>;
|
|
10
|
+
export declare const KeyFacts: ScalioComponent<{ items?: any; title?: any; testId?: any; }>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// Types for react/palette.js (written by hand, no build step).
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
import type { Props, ScalioComponent } from "./types";
|
|
4
|
+
|
|
5
|
+
export declare const CommandPalette: ScalioComponent<{ open?: any; onOpenChange?: any; [key: string]: any; }>;
|
|
6
|
+
export declare const useCommandPaletteHotkey: (enabled?: any) => any;
|
|
7
|
+
export declare const openCommandPalette: () => any;
|
|
8
|
+
export declare const paletteGroups: (...args: any[]) => any;
|
|
9
|
+
export declare const palettePages: (nav?: any, pages?: any) => any;
|
|
10
|
+
export declare const paletteShortcut: (lang?: any, nav?: any) => any;
|
|
11
|
+
export declare const isApplePlatform: (nav?: any) => any;
|
|
12
|
+
export declare const OPEN_PALETTE_EVENT: string;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// Types for react/profile.js (written by hand, no build step).
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
import type { Props, ScalioComponent } from "./types";
|
|
4
|
+
|
|
5
|
+
export declare const ProfileIdentity: ScalioComponent<{ name?: any; email?: any; role?: any; children?: React.ReactNode; testId?: any; }>;
|
|
6
|
+
export declare const ThemeChoice: ScalioComponent<{ theme?: any; onChange?: any; modes?: any; lang?: any; labels?: any; testIdPrefix?: any; }>;
|
|
7
|
+
export declare const LanguageChoice: ScalioComponent<{ lang?: any; onChange?: any; languages?: any; fixed?: any; fixedHint?: any; labels?: any; testIdPrefix?: any; }>;
|
|
8
|
+
export declare const TimezoneChoice: ScalioComponent<{ value?: any; onChange?: any; lang?: any; labels?: any; testId?: any; defaultOpen?: any; }>;
|
|
9
|
+
export declare const PasswordChange: ScalioComponent<{ onSubmit?: any; onDone?: any; minLength?: any; lang?: any; labels?: any; testIds?: any; }>;
|
|
10
|
+
export declare const PROFILE_LANGUAGES: readonly ({ readonly code: string; readonly label: string; readonly flag: string; })[];
|
|
11
|
+
export declare const browserTz: () => any;
|
|
12
|
+
export declare const setUserTimezone: (tz?: any) => any;
|
|
13
|
+
export declare const currentTz: () => any;
|
|
14
|
+
export declare const listTimezones: () => any;
|
|
15
|
+
export declare const tzOffset: (tz?: any) => any;
|
|
16
|
+
export declare const resolveTheme: (mode?: any) => any;
|
|
17
|
+
export declare const applyTheme: (mode?: any) => any;
|
|
18
|
+
export declare const normalizeTheme: (value?: any) => any;
|
|
19
|
+
export declare const browserLang: (navLang?: any) => any;
|
|
20
|
+
export declare const initialLang: (stored?: any, navLang?: any) => any;
|
package/react/roles.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// Types for react/roles.js (written by hand, no build step).
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
import type { Props, ScalioComponent } from "./types";
|
|
4
|
+
|
|
5
|
+
export declare const RoleAdmin: ScalioComponent<{ lang?: any; labels?: any; client?: any; canEdit?: any; formatError?: any; notify?: any; onChange?: any; confirm?: any; currentRole?: any; testId?: any; [key: string]: any; }>;
|
|
6
|
+
export declare const RoleSourceSettings: ScalioComponent<{ lang?: any; labels?: any; value?: any; notify?: any; formatError?: any; onSave?: any; confirm?: any; disabled?: any; fixed?: any; tenants?: any; consentUrl?: any; manual?: any; extraTenants?: any; extraTitle?: any; testId?: any; [key: string]: any; }>;
|
|
7
|
+
export declare const rolesApi: (api?: any, opts?: any) => any;
|
|
8
|
+
export declare const rolesText: (lang?: any, overrides?: any) => any;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// Types for react/saas_updates.js (written by hand, no build step).
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
import type { Props, ScalioComponent } from "./types";
|
|
4
|
+
|
|
5
|
+
export declare const UpdateBanner: ScalioComponent<{ lang?: any; labels?: any; client?: any; storage?: any; onOpen?: any; settingsTo?: any; [key: string]: any; }>;
|
|
6
|
+
export declare const SaasUpdatesPanel: ScalioComponent<{ lang?: any; labels?: any; formatError?: any; admin?: any; onPrereleaseChange?: any; prerelease?: any; notify?: any; client?: any; checkVersion?: any; versionUrl?: any; pollMs?: any; timeoutMs?: any; reloadDelayMs?: any; reload?: any; [key: string]: any; }>;
|
|
7
|
+
export declare const PrereleaseSwitch: ScalioComponent<{ lang?: any; labels?: any; formatError?: any; value?: any; onChange?: any; notify?: any; disabled?: any; [key: string]: any; }>;
|
|
8
|
+
export declare const UpdateProgress: ScalioComponent<{ lang?: any; labels?: any; reload?: any; pollMs?: any; timeoutMs?: any; checkVersion?: any; versionUrl?: any; version?: any; from?: any; reloadDelayMs?: any; onClose?: any; [key: string]: any; }>;
|
|
9
|
+
export declare const saasUpdatesApi: (api?: any) => any;
|
|
10
|
+
export declare const SAAS_UPDATE_LABELS: { readonly de: Readonly<Record<string, any>>; readonly en: Readonly<Record<string, any>>; };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// Types for react/security.js (written by hand, no build step).
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
import type { Props, ScalioComponent } from "./types";
|
|
4
|
+
|
|
5
|
+
export declare const SecurityFactors: ScalioComponent<{ labels?: any; formatError?: any; className?: any; testId?: any; [key: string]: any; }>;
|
|
6
|
+
export declare const securityApi: (api?: any, webauthn?: any) => any;
|
|
7
|
+
export declare const passkeyCancelled: (err?: any) => any;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Types for react/selftest.js (written by hand, no build step).
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
import type { Props, ScalioComponent } from "./types";
|
|
4
|
+
|
|
5
|
+
export declare const SelfTestPanel: ScalioComponent<{ labels?: any; pollMs?: any; testId?: any; [key: string]: any; }>;
|
|
6
|
+
export declare const SelfTestBanner: ScalioComponent<{ suite?: any; health?: any; lang?: any; labels?: any; action?: any; [key: string]: any; }>;
|
|
7
|
+
export declare const selftestApi: (api?: any) => any;
|
|
8
|
+
export declare const selftestLabels: (lang?: any, overrides?: any) => any;
|
|
9
|
+
export declare const SELFTEST_LABELS: { readonly de: { readonly title: string; readonly hint: string; readonly off: string; readonly banner: string; readonly runNow: string; readonly queued: string; readonly cancel: string; readonly cancelling: string; readonly running: string; readonly waiting: string; readonly checks: string; readonly never: string; readonly schedule: string; readonly suite: string; readonly hour: string; readonly noNight: string; readonly save: string; readonly saved: string; readonly safeHint: string; readonly runs: string; readonly newFailures: string; readonly recovered: string; readonly was: string; readonly sources: Readonly<Record<string, string>>; readonly verdicts: Readonly<Record<string, string>>; readonly show: string; readonly hide: string; readonly version: string; }; readonly en: { readonly title: string; readonly hint: string; readonly off: string; readonly banner: string; readonly runNow: string; readonly queued: string; readonly cancel: string; readonly cancelling: string; readonly running: string; readonly waiting: string; readonly checks: string; readonly never: string; readonly schedule: string; readonly suite: string; readonly hour: string; readonly noNight: string; readonly save: string; readonly saved: string; readonly safeHint: string; readonly runs: string; readonly newFailures: string; readonly recovered: string; readonly was: string; readonly sources: Readonly<Record<string, string>>; readonly verdicts: Readonly<Record<string, string>>; readonly show: string; readonly hide: string; readonly version: string; }; };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// Types for react/session.js (written by hand, no build step).
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
import type { Props, ScalioComponent, ApiClient, AuthResult } from "./types";
|
|
4
|
+
|
|
5
|
+
/** What useAuth() returns. `user` is null while checking, false when signed out, else the /auth/me answer. */
|
|
6
|
+
export type AuthState = {
|
|
7
|
+
user: null | false | { name?: string; email?: string; role?: string; timezone?: string; [key: string]: any };
|
|
8
|
+
ready: boolean;
|
|
9
|
+
login: (email: string, password: string) => Promise<AuthResult>;
|
|
10
|
+
loginMfa: (mfaToken: string, code: string) => Promise<AuthResult>;
|
|
11
|
+
loginPasskey: () => Promise<AuthResult>;
|
|
12
|
+
loginScalio: (code: string) => Promise<AuthResult>;
|
|
13
|
+
register: (name: string, email: string, password: string) => Promise<AuthResult>;
|
|
14
|
+
setup: (name: string, email: string, password: string, setupCode: string) => Promise<AuthResult>;
|
|
15
|
+
logout: () => Promise<void>;
|
|
16
|
+
updateUser: (user: any) => void;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export declare const createAuth: (opts: {
|
|
20
|
+
api: ApiClient;
|
|
21
|
+
/** Turns the `detail` of an error answer into text. */
|
|
22
|
+
formatError?: (detail: any) => string;
|
|
23
|
+
/** Resolves to { user } (the passkey answer of the backend). */
|
|
24
|
+
signInWithPasskey?: () => Promise<{ user?: any }>;
|
|
25
|
+
/** True when the user cancelled the passkey dialog (no error text then). */
|
|
26
|
+
passkeyCancelled?: (error: unknown) => boolean;
|
|
27
|
+
/** localStorage key of an older token, removed on start. */
|
|
28
|
+
legacyTokenKey?: string;
|
|
29
|
+
}) => {
|
|
30
|
+
AuthProvider: ScalioComponent<{ children?: React.ReactNode }>;
|
|
31
|
+
/** Outside the AuthProvider the context is null at run time. */
|
|
32
|
+
useAuth: () => AuthState;
|
|
33
|
+
AuthContext: React.Context<AuthState | null>;
|
|
34
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// Types for react/settings.js (written by hand, no build step).
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
import type { Props, ScalioComponent } from "./types";
|
|
4
|
+
|
|
5
|
+
export declare const SettingsLayout: ScalioComponent<Props>;
|
|
6
|
+
export declare const SettingsSection: ScalioComponent<{ id?: any; title?: any; description?: any; children?: React.ReactNode; footer?: any; testId?: any; }>;
|
|
7
|
+
export declare const SettingsField: ScalioComponent<{ id?: any; label?: any; hint?: any; children?: React.ReactNode; testId?: any; }>;
|
|
8
|
+
export declare const SettingsRow: ScalioComponent<{ title?: any; hint?: any; children?: React.ReactNode; testId?: any; tone?: any; }>;
|
|
9
|
+
export declare const settingsGroups: (groups?: any, L?: any) => any;
|
|
10
|
+
export declare const matchSetting: (item?: any, group?: any, query?: any) => any;
|
|
11
|
+
export declare const SETTINGS_GROUP_ORDER: readonly (string)[];
|
|
12
|
+
export declare const SYSTEM_ORDER: readonly (string)[];
|
package/react/setup.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// Types for react/setup.js (written by hand, no build step).
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
import type { Props, ScalioComponent } from "./types";
|
|
4
|
+
|
|
5
|
+
export declare const FirstAdminSetup: ScalioComponent<{ microsoft?: any; codeFrom?: any; onSubmit?: any; onMicrosoft?: any; error?: any; lang?: any; labels?: any; minLength?: any; }>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// Types for react/suite_context.js (written by hand, no build step).
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
import type { Props, ScalioComponent } from "./types";
|
|
4
|
+
|
|
5
|
+
export declare const SUITE_TENANT_PARAM: string;
|
|
6
|
+
export declare const cleanTenantKey: (value?: any) => any;
|
|
7
|
+
export declare const suiteTenantKey: (t?: any) => any;
|
|
8
|
+
export declare const matchSuiteTenant: (tenants?: any, key?: any) => any;
|
|
9
|
+
export declare const readSuiteTenant: (search?: any) => any;
|
|
10
|
+
export declare const clearSuiteTenantParam: () => any;
|
|
11
|
+
export declare const setSuiteTenant: (key?: any) => any;
|
|
12
|
+
export declare const getSuiteTenant: () => any;
|
|
13
|
+
export declare const useSuiteTenant: () => any;
|
|
14
|
+
export declare const withSuiteTenant: (url?: any, key?: any) => any;
|
|
15
|
+
export declare const useSuiteTenantLink: (tenants?: any, selectedId?: any, onSelect?: any) => any;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Types for react/support.js (written by hand, no build step).
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
import type { Props, ScalioComponent } from "./types";
|
|
4
|
+
|
|
5
|
+
export declare const supportApi: (api?: any, options?: any) => any;
|
|
6
|
+
export declare const SupportDesk: ScalioComponent<{ client?: any; page?: any; lang?: any; labels?: any; }>;
|
|
7
|
+
export declare const SupportConnection: ScalioComponent<{ client?: any; lang?: any; labels?: any; onChange?: any; }>;
|
|
8
|
+
export declare const IdeasPanel: ScalioComponent<{ ideas?: any; L?: any; lang?: any; }>;
|
|
9
|
+
export declare const SUPPORT_CATEGORIES: readonly (string)[];
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// Types for react/tenancy.js (written by hand, no build step).
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
import type { Props, ScalioComponent } from "./types";
|
|
4
|
+
|
|
5
|
+
export declare const OrganizationsPanel: ScalioComponent<{ client?: any; msp?: any; tabs?: any; tenantCount?: any; lang?: any; labels?: any; testId?: any; readOnly?: any; }>;
|
|
6
|
+
export declare const OrganizationForm: ScalioComponent<{ initial?: any; onSave?: any; onCancel?: any; lang?: any; labels?: any; testId?: any; }>;
|
|
7
|
+
export declare const OrganizationFields: ScalioComponent<{ value?: any; onChange?: any; lang?: any; labels?: any; testId?: any; disabled?: any; }>;
|
|
8
|
+
export declare const OrganizationStep: ScalioComponent<{ value?: any; onChange?: any; prefilled?: any; lang?: any; labels?: any; }>;
|
|
9
|
+
export declare const organizationSetupStep: (...args: any[]) => any;
|
|
10
|
+
export declare const organizationsApi: (api?: any, base?: any) => any;
|
|
11
|
+
export declare const TenantList: ScalioComponent<{ tenants?: any; organizations?: any; columns?: any; actions?: any; appName?: any; limit?: any; onAdd?: any; lang?: any; labels?: any; testId?: any; readOnly?: any; }>;
|
|
12
|
+
export declare const TenantWizard: ScalioComponent<Props>;
|
|
13
|
+
export declare const TenantEditDialog: ScalioComponent<{ tenant?: any; organizations?: any; onSave?: any; onClose?: any; renderConnect?: any; appName?: any; renderApp?: any; initialTab?: any; lang?: any; labels?: any; }>;
|
|
14
|
+
export declare const TenancySelect: ScalioComponent<{ organizations?: any; tenants?: any; tenantId?: any; onSelect?: any; manage?: any; lang?: any; labels?: any; hint?: any; hideAll?: any; }>;
|
|
15
|
+
export declare const ConnectionChoice: ScalioComponent<{ value?: any; onChange?: any; methods?: any; locked?: any; writeLocked?: any; writeHidden?: any; methodText?: any; lang?: any; labels?: any; }>;
|
|
16
|
+
export declare const tenancySettingsGroup: (...args: any[]) => any;
|
|
17
|
+
export declare const tenancyLabels: (lang?: any, overrides?: any) => any;
|
|
18
|
+
export declare const askRemoveTenant: (t?: any, lang?: any, labels?: any) => any;
|
|
19
|
+
export declare const showOrganizationSelect: (organizations?: any) => any;
|
|
20
|
+
export declare const showTenantSelect: (tenants?: any) => any;
|
|
21
|
+
export declare const canAddTenant: (count?: any, limit?: any) => any;
|
|
22
|
+
export declare const suggestShortCode: (name?: any) => any;
|
|
23
|
+
export declare const shortCodeValid: (code?: any) => any;
|
|
24
|
+
export declare const organizationValid: (v?: any) => any;
|
|
25
|
+
export declare const emptyOrganization: (name?: any) => any;
|
|
26
|
+
export declare const TENANCY_LABELS: { readonly de: Readonly<Record<string, any>>; readonly en: Readonly<Record<string, any>>; };
|
|
27
|
+
export declare const CLASSIFICATIONS: readonly (string)[];
|
|
28
|
+
export declare const TENANT_METHODS: readonly (string)[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Types for react/tenant.js (written by hand, no build step).
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
import type { Props, ScalioComponent } from "./types";
|
|
4
|
+
|
|
5
|
+
export declare const TenantConnectStep: ScalioComponent<{ client?: any; app?: any; lang?: any; labels?: any; onChange?: any; showLater?: any; }>;
|
|
6
|
+
export declare const takeConnectCode: () => any;
|
|
7
|
+
export declare const announceTenantChange: (detail?: any) => any;
|
|
8
|
+
export declare const useTenantChange: (onChange?: any) => any;
|
|
9
|
+
export declare const TENANT_EVENT: string;
|
package/react/theme.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// Types for react/theme.js (written by hand, no build step).
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
import type { Props, ScalioComponent } from "./types";
|
|
4
|
+
|
|
5
|
+
export declare const ThemeProvider: ScalioComponent<{ storeKey?: any; children?: React.ReactNode; }>;
|
|
6
|
+
export declare const useTheme: () => any;
|
package/react/types.d.ts
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
// Shared helper types for the react/*.d.ts files (written by hand, no build step).
|
|
2
|
+
// The components are plain JavaScript; props stay open (any) where the code does not check them.
|
|
3
|
+
import type * as React from "react";
|
|
4
|
+
|
|
5
|
+
/** Props of a component whose props are not listed one by one. */
|
|
6
|
+
export type Props = { [key: string]: any };
|
|
7
|
+
|
|
8
|
+
/** A function component of this package (React.createElement, no JSX). */
|
|
9
|
+
export type ScalioComponent<P = Props> = (props: P & { key?: React.Key | null }) => React.ReactNode;
|
|
10
|
+
|
|
11
|
+
/** Language of the texts. Apps hold it as a string; anything but "en" shows German. */
|
|
12
|
+
export type Lang = "de" | "en" | (string & {});
|
|
13
|
+
|
|
14
|
+
/** Text overrides, same shape as an entry of LABELS (see labels.d.ts). */
|
|
15
|
+
export type LabelOverrides = Record<string, any>;
|
|
16
|
+
|
|
17
|
+
/** Theme choice of an app. The toggle offers the modes in `themeModes` (default light and dark). */
|
|
18
|
+
export type ThemeMode = "light" | "dark" | "system";
|
|
19
|
+
|
|
20
|
+
/** An icon component: ones of this package (Icons.*) or any other (e.g. lucide). It gets className. */
|
|
21
|
+
export type IconComponent = React.ElementType;
|
|
22
|
+
|
|
23
|
+
/** The signed-in user as the shell shows it (the app's /auth/me answer carries more). */
|
|
24
|
+
export type ShellUser = { name?: string; email?: string; role?: string; [key: string]: any };
|
|
25
|
+
|
|
26
|
+
/** Brand of the header: an element, or { mark, name, ... }. */
|
|
27
|
+
export type HeaderBrand = React.ReactElement | {
|
|
28
|
+
mark?: React.ReactNode; name?: React.ReactNode; sub?: React.ReactNode; color?: string; beta?: boolean;
|
|
29
|
+
badges?: React.ReactNode; href?: string; onClick?: (event: React.MouseEvent) => void;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
/** Entry of the user menu (the logout entry is added by `onLogout`). */
|
|
33
|
+
export type MenuEntry = { label: React.ReactNode; icon?: IconComponent; onSelect?: () => void; danger?: boolean; testId?: string };
|
|
34
|
+
|
|
35
|
+
/** Test ids the header lets the app replace. */
|
|
36
|
+
export type HeaderTestIds = Partial<Record<"menu" | "language" | "theme" | "docs" | "support" | "avatar" | "userName" | "userEmail" | "userRole" | "logout", string>>;
|
|
37
|
+
|
|
38
|
+
/** Tones of KpiTile and StatusBadge. */
|
|
39
|
+
export type Tone = "neutral" | "running" | "ok" | "warn" | "error";
|
|
40
|
+
|
|
41
|
+
/** Kinds of Notice; success, action and important are aliases of ok, info and warn. */
|
|
42
|
+
export type NoticeKindName = "info" | "action" | "ok" | "success" | "warn" | "important" | "error";
|
|
43
|
+
|
|
44
|
+
/** Axios-like client of the app: resolves to { data }. */
|
|
45
|
+
export type ApiClient = {
|
|
46
|
+
get(path: string, ...rest: any[]): Promise<{ data: any }>;
|
|
47
|
+
post(path: string, body?: any, ...rest: any[]): Promise<{ data: any }>;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
/** Answer of every sign-in action. */
|
|
51
|
+
export type AuthResult = { ok: boolean; error?: string; status?: number; mfaToken?: string };
|
package/react/unify.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// Types for react/unify.js (written by hand, no build step).
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
import type { Props, ScalioComponent } from "./types";
|
|
4
|
+
|
|
5
|
+
export declare const editionBadges: (lic?: any, opts?: any) => any;
|
|
6
|
+
export declare const EditionBadges: ScalioComponent<{ items?: any; license?: any; testId?: any; [key: string]: any; }>;
|
|
7
|
+
export declare const adminSection: (opts?: any) => any;
|
|
8
|
+
export declare const useApiStatus: (check?: any, intervalMs?: any) => any;
|
|
9
|
+
export declare const ApiStatus: ScalioComponent<{ online?: any; check?: any; intervalMs?: any; lang?: any; labels?: any; testId?: any; }>;
|
|
10
|
+
export declare const accountTabs: (opts?: any) => any;
|
|
11
|
+
export declare const accountGroups: (opts?: any) => any;
|
|
12
|
+
export declare const accountArea: (part?: any) => any;
|
|
13
|
+
export declare const PASSWORD_POLICIES: readonly (string)[];
|
|
14
|
+
export declare const policyAllowed: (value?: any, emergencyCount?: any) => any;
|
|
15
|
+
export declare const PasswordPolicySelect: ScalioComponent<{ value?: any; emergencyCount?: any; onChange?: any; disabled?: any; forced?: any; lang?: any; labels?: any; testId?: any; }>;
|
package/react/users.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// Types for react/users.js (written by hand, no build step).
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
import type { Props, ScalioComponent } from "./types";
|
|
4
|
+
|
|
5
|
+
export declare const UserAdmin: ScalioComponent<{ labels?: any; formatError?: any; roles?: any; signInModes?: any; microsoftEnabled?: any; adminRole?: any; onChange?: any; defaultRole?: any; canLock?: any; accessColumn?: any; accessField?: any; className?: any; testId?: any; [key: string]: any; }>;
|
|
6
|
+
export declare const usersApi: (api?: any, opts?: any) => any;
|
|
7
|
+
export declare const normalizeUser: (d?: any) => any;
|
|
8
|
+
export declare const MicrosoftConnection: ScalioComponent<{ lang?: any; labels?: any; testId?: any; linked?: any; canUnlink?: any; onUnlink?: any; disabled?: any; onLink?: any; [key: string]: any; }>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Types for react/wizard.js (written by hand, no build step).
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
import type { Props, ScalioComponent } from "./types";
|
|
4
|
+
|
|
5
|
+
export declare const SetupWizard: ScalioComponent<{ lang?: any; labels?: any; success?: any; [key: string]: any; }>;
|
|
6
|
+
export declare const SetupWizardButton: ScalioComponent<{ lang?: any; labels?: any; testId?: any; className?: any; }>;
|
|
7
|
+
export declare const useSetupWizard: (opts?: any) => any;
|
|
8
|
+
export declare const setupWizardApi: (api?: any, opts?: any) => any;
|
|
9
|
+
export declare const normalizeWizardState: (d?: any) => any;
|
|
10
|
+
export declare const openSetupWizard: (step?: any) => any;
|
|
11
|
+
export declare const OPEN_SETUP_WIZARD: string;
|
|
12
|
+
export declare const enterMeansNext: (el?: any) => any;
|
|
13
|
+
export declare const trapTab: (e?: any, root?: any) => any;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Types for shadcn/alert-dialog.mjs (written by hand, no build step). Props stay open for the Radix props.
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
|
|
4
|
+
/** A forwardRef component; the Radix props it passes on stay open. */
|
|
5
|
+
type ShadcnComponent<E = HTMLElement, P = React.HTMLAttributes<E>> = React.ForwardRefExoticComponent<P & { asChild?: boolean; [key: string]: any } & React.RefAttributes<E>>;
|
|
6
|
+
|
|
7
|
+
export declare const AlertDialog: ShadcnComponent<HTMLElement>;
|
|
8
|
+
export declare const AlertDialogAction: ShadcnComponent<HTMLElement>;
|
|
9
|
+
export declare const AlertDialogCancel: ShadcnComponent<HTMLElement>;
|
|
10
|
+
export declare const AlertDialogContent: ShadcnComponent<HTMLElement>;
|
|
11
|
+
export declare const AlertDialogDescription: ShadcnComponent<HTMLElement>;
|
|
12
|
+
export declare const AlertDialogFooter: ShadcnComponent<HTMLElement>;
|
|
13
|
+
export declare const AlertDialogHeader: ShadcnComponent<HTMLElement>;
|
|
14
|
+
export declare const AlertDialogOverlay: ShadcnComponent<HTMLElement>;
|
|
15
|
+
export declare const AlertDialogPortal: ShadcnComponent<HTMLElement>;
|
|
16
|
+
export declare const AlertDialogTitle: ShadcnComponent<HTMLElement>;
|
|
17
|
+
export declare const AlertDialogTrigger: ShadcnComponent<HTMLElement>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// Types for shadcn/badge.mjs (written by hand, no build step). Props stay open for the Radix props.
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
|
|
4
|
+
export type BadgeVariant = "default" | "secondary" | "destructive" | "outline";
|
|
5
|
+
export declare const Badge: (props: React.HTMLAttributes<HTMLDivElement> & { variant?: BadgeVariant | null }) => React.ReactNode;
|
|
6
|
+
export declare function badgeVariants(opts?: { variant?: BadgeVariant | null; className?: string }): string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// Types for shadcn/button.mjs (written by hand, no build step). Props stay open for the Radix props.
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
|
|
4
|
+
/** A forwardRef component; the Radix props it passes on stay open. */
|
|
5
|
+
type ShadcnComponent<E = HTMLElement, P = React.HTMLAttributes<E>> = React.ForwardRefExoticComponent<P & { asChild?: boolean; [key: string]: any } & React.RefAttributes<E>>;
|
|
6
|
+
|
|
7
|
+
export type ButtonVariant = "default" | "destructive" | "outline" | "secondary" | "ghost" | "link";
|
|
8
|
+
export type ButtonSize = "default" | "sm" | "lg" | "icon";
|
|
9
|
+
export declare const Button: ShadcnComponent<HTMLButtonElement, React.ButtonHTMLAttributes<HTMLButtonElement> & { variant?: ButtonVariant | null; size?: ButtonSize | null; asChild?: boolean }>;
|
|
10
|
+
export declare function buttonVariants(opts?: { variant?: ButtonVariant | null; size?: ButtonSize | null; className?: string }): string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// Types for shadcn/checkbox.mjs (written by hand, no build step). Props stay open for the Radix props.
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
|
|
4
|
+
/** A forwardRef component; the Radix props it passes on stay open. */
|
|
5
|
+
type ShadcnComponent<E = HTMLElement, P = React.HTMLAttributes<E>> = React.ForwardRefExoticComponent<P & { asChild?: boolean; [key: string]: any } & React.RefAttributes<E>>;
|
|
6
|
+
|
|
7
|
+
export declare const Checkbox: ShadcnComponent<HTMLElement>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// Types for shadcn/command.mjs (written by hand, no build step). Props stay open for the Radix props.
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
|
|
4
|
+
/** A forwardRef component; the Radix props it passes on stay open. */
|
|
5
|
+
type ShadcnComponent<E = HTMLElement, P = React.HTMLAttributes<E>> = React.ForwardRefExoticComponent<P & { asChild?: boolean; [key: string]: any } & React.RefAttributes<E>>;
|
|
6
|
+
|
|
7
|
+
export declare const Command: ShadcnComponent<HTMLElement>;
|
|
8
|
+
export declare const CommandDialog: ShadcnComponent<HTMLElement>;
|
|
9
|
+
export declare const CommandInput: ShadcnComponent<HTMLElement>;
|
|
10
|
+
export declare const CommandList: ShadcnComponent<HTMLElement>;
|
|
11
|
+
export declare const CommandEmpty: ShadcnComponent<HTMLElement>;
|
|
12
|
+
export declare const CommandGroup: ShadcnComponent<HTMLElement>;
|
|
13
|
+
export declare const CommandItem: ShadcnComponent<HTMLElement>;
|
|
14
|
+
export declare const CommandShortcut: ShadcnComponent<HTMLElement>;
|
|
15
|
+
export declare const CommandSeparator: ShadcnComponent<HTMLElement>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// Types for shadcn/confirm.mjs (written by hand, no build step). Props stay open for the Radix props.
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
|
|
4
|
+
export declare const ConfirmProvider: (props: { children?: React.ReactNode; labels?: { cancel?: React.ReactNode; confirm?: React.ReactNode } }) => React.ReactNode;
|
|
5
|
+
export interface ConfirmOptions { title?: React.ReactNode; text?: React.ReactNode; action?: React.ReactNode; danger?: boolean }
|
|
6
|
+
export declare function useConfirm(): (opts?: ConfirmOptions) => Promise<boolean>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Types for shadcn/dialog.mjs (written by hand, no build step). Props stay open for the Radix props.
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
|
|
4
|
+
/** A forwardRef component; the Radix props it passes on stay open. */
|
|
5
|
+
type ShadcnComponent<E = HTMLElement, P = React.HTMLAttributes<E>> = React.ForwardRefExoticComponent<P & { asChild?: boolean; [key: string]: any } & React.RefAttributes<E>>;
|
|
6
|
+
|
|
7
|
+
export declare const Dialog: ShadcnComponent<HTMLElement>;
|
|
8
|
+
export declare const DialogClose: ShadcnComponent<HTMLElement>;
|
|
9
|
+
export declare const DialogContent: ShadcnComponent<HTMLElement>;
|
|
10
|
+
export declare const DialogDescription: ShadcnComponent<HTMLElement>;
|
|
11
|
+
export declare const DialogFooter: ShadcnComponent<HTMLElement>;
|
|
12
|
+
export declare const DialogHeader: ShadcnComponent<HTMLElement>;
|
|
13
|
+
export declare const DialogOverlay: ShadcnComponent<HTMLElement>;
|
|
14
|
+
export declare const DialogPortal: ShadcnComponent<HTMLElement>;
|
|
15
|
+
export declare const DialogTitle: ShadcnComponent<HTMLElement>;
|
|
16
|
+
export declare const DialogTrigger: ShadcnComponent<HTMLElement>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// Types for shadcn/dropdown-menu.mjs (written by hand, no build step). Props stay open for the Radix props.
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
|
|
4
|
+
/** A forwardRef component; the Radix props it passes on stay open. */
|
|
5
|
+
type ShadcnComponent<E = HTMLElement, P = React.HTMLAttributes<E>> = React.ForwardRefExoticComponent<P & { asChild?: boolean; [key: string]: any } & React.RefAttributes<E>>;
|
|
6
|
+
|
|
7
|
+
export declare const DropdownMenu: ShadcnComponent<HTMLElement>;
|
|
8
|
+
export declare const DropdownMenuCheckboxItem: ShadcnComponent<HTMLElement>;
|
|
9
|
+
export declare const DropdownMenuContent: ShadcnComponent<HTMLElement>;
|
|
10
|
+
export declare const DropdownMenuGroup: ShadcnComponent<HTMLElement>;
|
|
11
|
+
export declare const DropdownMenuItem: ShadcnComponent<HTMLElement>;
|
|
12
|
+
export declare const DropdownMenuLabel: ShadcnComponent<HTMLElement>;
|
|
13
|
+
export declare const DropdownMenuPortal: ShadcnComponent<HTMLElement>;
|
|
14
|
+
export declare const DropdownMenuRadioGroup: ShadcnComponent<HTMLElement>;
|
|
15
|
+
export declare const DropdownMenuRadioItem: ShadcnComponent<HTMLElement>;
|
|
16
|
+
export declare const DropdownMenuSeparator: ShadcnComponent<HTMLElement>;
|
|
17
|
+
export declare const DropdownMenuShortcut: ShadcnComponent<HTMLElement>;
|
|
18
|
+
export declare const DropdownMenuSub: ShadcnComponent<HTMLElement>;
|
|
19
|
+
export declare const DropdownMenuSubContent: ShadcnComponent<HTMLElement>;
|
|
20
|
+
export declare const DropdownMenuSubTrigger: ShadcnComponent<HTMLElement>;
|
|
21
|
+
export declare const DropdownMenuTrigger: ShadcnComponent<HTMLElement>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// Types for shadcn/input.mjs (written by hand, no build step). Props stay open for the Radix props.
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
|
|
4
|
+
/** A forwardRef component; the Radix props it passes on stay open. */
|
|
5
|
+
type ShadcnComponent<E = HTMLElement, P = React.HTMLAttributes<E>> = React.ForwardRefExoticComponent<P & { asChild?: boolean; [key: string]: any } & React.RefAttributes<E>>;
|
|
6
|
+
|
|
7
|
+
export declare const Input: ShadcnComponent<HTMLInputElement, React.InputHTMLAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// Types for shadcn/label.mjs (written by hand, no build step). Props stay open for the Radix props.
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
|
|
4
|
+
/** A forwardRef component; the Radix props it passes on stay open. */
|
|
5
|
+
type ShadcnComponent<E = HTMLElement, P = React.HTMLAttributes<E>> = React.ForwardRefExoticComponent<P & { asChild?: boolean; [key: string]: any } & React.RefAttributes<E>>;
|
|
6
|
+
|
|
7
|
+
export declare const Label: ShadcnComponent<HTMLLabelElement>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// Types for shadcn/popover.mjs (written by hand, no build step). Props stay open for the Radix props.
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
|
|
4
|
+
/** A forwardRef component; the Radix props it passes on stay open. */
|
|
5
|
+
type ShadcnComponent<E = HTMLElement, P = React.HTMLAttributes<E>> = React.ForwardRefExoticComponent<P & { asChild?: boolean; [key: string]: any } & React.RefAttributes<E>>;
|
|
6
|
+
|
|
7
|
+
export declare const Popover: ShadcnComponent<HTMLElement>;
|
|
8
|
+
export declare const PopoverAnchor: ShadcnComponent<HTMLElement>;
|
|
9
|
+
export declare const PopoverContent: ShadcnComponent<HTMLElement>;
|
|
10
|
+
export declare const PopoverTrigger: ShadcnComponent<HTMLElement>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// Types for shadcn/progress.mjs (written by hand, no build step). Props stay open for the Radix props.
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
|
|
4
|
+
/** A forwardRef component; the Radix props it passes on stay open. */
|
|
5
|
+
type ShadcnComponent<E = HTMLElement, P = React.HTMLAttributes<E>> = React.ForwardRefExoticComponent<P & { asChild?: boolean; [key: string]: any } & React.RefAttributes<E>>;
|
|
6
|
+
|
|
7
|
+
export declare const Progress: ShadcnComponent<HTMLElement>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Types for shadcn/select.mjs (written by hand, no build step). Props stay open for the Radix props.
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
|
|
4
|
+
/** A forwardRef component; the Radix props it passes on stay open. */
|
|
5
|
+
type ShadcnComponent<E = HTMLElement, P = React.HTMLAttributes<E>> = React.ForwardRefExoticComponent<P & { asChild?: boolean; [key: string]: any } & React.RefAttributes<E>>;
|
|
6
|
+
|
|
7
|
+
export declare const Select: ShadcnComponent<HTMLElement>;
|
|
8
|
+
export declare const SelectContent: ShadcnComponent<HTMLElement>;
|
|
9
|
+
export declare const SelectGroup: ShadcnComponent<HTMLElement>;
|
|
10
|
+
export declare const SelectItem: ShadcnComponent<HTMLElement>;
|
|
11
|
+
export declare const SelectLabel: ShadcnComponent<HTMLElement>;
|
|
12
|
+
export declare const SelectScrollDownButton: ShadcnComponent<HTMLElement>;
|
|
13
|
+
export declare const SelectScrollUpButton: ShadcnComponent<HTMLElement>;
|
|
14
|
+
export declare const SelectSeparator: ShadcnComponent<HTMLElement>;
|
|
15
|
+
export declare const SelectTrigger: ShadcnComponent<HTMLElement>;
|
|
16
|
+
export declare const SelectValue: ShadcnComponent<HTMLElement>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// Types for shadcn/sonner.mjs (written by hand, no build step). Props stay open for the Radix props.
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
|
|
4
|
+
export declare const Toaster: (props: { theme?: "light" | "dark" | "system"; [key: string]: any }) => React.ReactNode;
|
|
5
|
+
export declare const toast: typeof import("sonner").toast;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// Types for shadcn/switch.mjs (written by hand, no build step). Props stay open for the Radix props.
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
|
|
4
|
+
/** A forwardRef component; the Radix props it passes on stay open. */
|
|
5
|
+
type ShadcnComponent<E = HTMLElement, P = React.HTMLAttributes<E>> = React.ForwardRefExoticComponent<P & { asChild?: boolean; [key: string]: any } & React.RefAttributes<E>>;
|
|
6
|
+
|
|
7
|
+
export declare const Switch: ShadcnComponent<HTMLElement>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Types for shadcn/table.mjs (written by hand, no build step). Props stay open for the Radix props.
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
|
|
4
|
+
/** A forwardRef component; the Radix props it passes on stay open. */
|
|
5
|
+
type ShadcnComponent<E = HTMLElement, P = React.HTMLAttributes<E>> = React.ForwardRefExoticComponent<P & { asChild?: boolean; [key: string]: any } & React.RefAttributes<E>>;
|
|
6
|
+
|
|
7
|
+
export declare const Table: ShadcnComponent<HTMLTableElement>;
|
|
8
|
+
export declare const TableBody: ShadcnComponent<HTMLTableSectionElement>;
|
|
9
|
+
export declare const TableCaption: ShadcnComponent<HTMLTableCaptionElement>;
|
|
10
|
+
export declare const TableCell: ShadcnComponent<HTMLTableCellElement>;
|
|
11
|
+
export declare const TableFooter: ShadcnComponent<HTMLTableSectionElement>;
|
|
12
|
+
export declare const TableHead: ShadcnComponent<HTMLTableCellElement>;
|
|
13
|
+
export declare const TableHeader: ShadcnComponent<HTMLTableSectionElement>;
|
|
14
|
+
export declare const TableRow: ShadcnComponent<HTMLTableRowElement>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// Types for shadcn/tabs.mjs (written by hand, no build step). Props stay open for the Radix props.
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
|
|
4
|
+
/** A forwardRef component; the Radix props it passes on stay open. */
|
|
5
|
+
type ShadcnComponent<E = HTMLElement, P = React.HTMLAttributes<E>> = React.ForwardRefExoticComponent<P & { asChild?: boolean; [key: string]: any } & React.RefAttributes<E>>;
|
|
6
|
+
|
|
7
|
+
export declare const Tabs: ShadcnComponent<HTMLElement>;
|
|
8
|
+
export declare const TabsContent: ShadcnComponent<HTMLElement>;
|
|
9
|
+
export declare const TabsList: ShadcnComponent<HTMLElement>;
|
|
10
|
+
export declare const TabsTrigger: ShadcnComponent<HTMLElement>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// Types for shadcn/textarea.mjs (written by hand, no build step). Props stay open for the Radix props.
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
|
|
4
|
+
/** A forwardRef component; the Radix props it passes on stay open. */
|
|
5
|
+
type ShadcnComponent<E = HTMLElement, P = React.HTMLAttributes<E>> = React.ForwardRefExoticComponent<P & { asChild?: boolean; [key: string]: any } & React.RefAttributes<E>>;
|
|
6
|
+
|
|
7
|
+
export declare const Textarea: ShadcnComponent<HTMLTextAreaElement, React.TextareaHTMLAttributes<HTMLTextAreaElement>>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Types for tailwind-preset.js (written by hand, no build step). A Tailwind 3 preset (Partial<Config>);
|
|
2
|
+
// typed loosely so the package needs no tailwindcss types.
|
|
3
|
+
declare const preset: {
|
|
4
|
+
darkMode: ["class"];
|
|
5
|
+
theme: { extend: { [key: string]: any } };
|
|
6
|
+
plugins?: any[];
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
};
|
|
9
|
+
export = preset;
|
package/tokens.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// Types for tokens.js (written by hand, no build step).
|
|
2
|
+
export interface Brand {
|
|
3
|
+
/** Klein Blue #002FA7 */
|
|
4
|
+
readonly primary: string;
|
|
5
|
+
readonly primaryHover: string;
|
|
6
|
+
readonly danger: string;
|
|
7
|
+
}
|
|
8
|
+
export interface Fonts {
|
|
9
|
+
readonly sans: readonly string[];
|
|
10
|
+
readonly display: readonly string[];
|
|
11
|
+
readonly mono: readonly string[];
|
|
12
|
+
}
|
|
13
|
+
export interface Layout {
|
|
14
|
+
readonly switcherHeight: number;
|
|
15
|
+
readonly headerHeight: number;
|
|
16
|
+
readonly sidebarWidth: number;
|
|
17
|
+
}
|
|
18
|
+
export declare const brand: Brand;
|
|
19
|
+
export declare const fonts: Fonts;
|
|
20
|
+
export declare const radius: string;
|
|
21
|
+
export declare const layout: Layout;
|