@foxford/ui 2.19.1-beta-9d83b85-20240221 → 2.19.2-beta-e3f3d87-20240304
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/dts/index.d.ts +75 -4
- package/package.json +1 -1
package/dts/index.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ import * as styled_components from 'styled-components';
|
|
|
3
3
|
import { DefaultTheme, FlattenSimpleInterpolation, CSSObject, Interpolation, ThemeProps, SimpleInterpolation, css } from 'styled-components';
|
|
4
4
|
import * as react from 'react';
|
|
5
5
|
import { CSSProperties, Component, ForwardRefExoticComponent, PropsWithoutRef, RefAttributes, PureComponent } from 'react';
|
|
6
|
-
import { LinkProps } from 'react-router-dom';
|
|
7
6
|
import { Classes } from 'react-modal';
|
|
8
7
|
import * as rc_scrollbars_lib_Scrollbars_types from 'rc-scrollbars/lib/Scrollbars/types';
|
|
9
8
|
import * as rc_scrollbars from 'rc-scrollbars';
|
|
@@ -1087,6 +1086,78 @@ declare const teenDarkTheme: DefaultTheme;
|
|
|
1087
1086
|
declare const adultLightTheme: DefaultTheme;
|
|
1088
1087
|
declare const adultDarkTheme: DefaultTheme;
|
|
1089
1088
|
|
|
1089
|
+
declare global {
|
|
1090
|
+
// Some users of this package are don't use "dom" libs
|
|
1091
|
+
interface EventTarget {}
|
|
1092
|
+
interface EventListener {}
|
|
1093
|
+
interface EventListenerObject {}
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
// Type definitions for history 4.7.2
|
|
1097
|
+
|
|
1098
|
+
|
|
1099
|
+
type Action = 'PUSH' | 'POP' | 'REPLACE';
|
|
1100
|
+
type UnregisterCallback = () => void;
|
|
1101
|
+
|
|
1102
|
+
interface Location<S = LocationState> {
|
|
1103
|
+
pathname: Pathname;
|
|
1104
|
+
search: Search;
|
|
1105
|
+
state: S;
|
|
1106
|
+
hash: Hash;
|
|
1107
|
+
key?: LocationKey | undefined;
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
interface LocationDescriptorObject<S = LocationState> {
|
|
1111
|
+
pathname?: Pathname | undefined;
|
|
1112
|
+
search?: Search | undefined;
|
|
1113
|
+
state?: S | undefined;
|
|
1114
|
+
hash?: Hash | undefined;
|
|
1115
|
+
key?: LocationKey | undefined;
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
interface History<HistoryLocationState = LocationState> {
|
|
1119
|
+
length: number;
|
|
1120
|
+
action: Action;
|
|
1121
|
+
location: Location<HistoryLocationState>;
|
|
1122
|
+
push(location: Path | LocationDescriptor<HistoryLocationState>, state?: HistoryLocationState): void;
|
|
1123
|
+
replace(location: Path | LocationDescriptor<HistoryLocationState>, state?: HistoryLocationState): void;
|
|
1124
|
+
go(n: number): void;
|
|
1125
|
+
goBack(): void;
|
|
1126
|
+
goForward(): void;
|
|
1127
|
+
block(prompt?: boolean | string | TransitionPromptHook<HistoryLocationState>): UnregisterCallback;
|
|
1128
|
+
listen(listener: LocationListener<HistoryLocationState>): UnregisterCallback;
|
|
1129
|
+
createHref(location: LocationDescriptorObject<HistoryLocationState>): Href;
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
declare namespace History {
|
|
1133
|
+
export type LocationDescriptor<S = LocationState> = Path | LocationDescriptorObject<S>;
|
|
1134
|
+
export type LocationKey = string;
|
|
1135
|
+
export type LocationListener<S = LocationState> = (location: Location<S>, action: Action) => void;
|
|
1136
|
+
|
|
1137
|
+
export type LocationState = unknown;
|
|
1138
|
+
export type Path = string;
|
|
1139
|
+
export type Pathname = string;
|
|
1140
|
+
export type Search = string;
|
|
1141
|
+
export type TransitionHook<S = LocationState> = (location: Location<S>, callback: (result: any) => void) => any;
|
|
1142
|
+
export type TransitionPromptHook<S = LocationState> = (
|
|
1143
|
+
location: Location<S>,
|
|
1144
|
+
action: Action,
|
|
1145
|
+
) => string | false | void;
|
|
1146
|
+
export type Hash = string;
|
|
1147
|
+
export type Href = string;
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1150
|
+
type LocationDescriptor<S = LocationState> = History.LocationDescriptor<S>;
|
|
1151
|
+
type LocationKey = History.LocationKey;
|
|
1152
|
+
type LocationListener<S = LocationState> = History.LocationListener<S>;
|
|
1153
|
+
type LocationState = History.LocationState;
|
|
1154
|
+
type Path = History.Path;
|
|
1155
|
+
type Pathname = History.Pathname;
|
|
1156
|
+
type Search = History.Search;
|
|
1157
|
+
type TransitionPromptHook<S = LocationState> = History.TransitionPromptHook<S>;
|
|
1158
|
+
type Hash = History.Hash;
|
|
1159
|
+
type Href = History.Href;
|
|
1160
|
+
|
|
1090
1161
|
interface VAlign {
|
|
1091
1162
|
vAlign?: 'top' | 'middle' | 'bottom' | 'text-top' | 'text-bottom' | 'baseline';
|
|
1092
1163
|
}
|
|
@@ -1236,9 +1307,9 @@ DisplayProperty {
|
|
|
1236
1307
|
autoRel?: boolean;
|
|
1237
1308
|
/** Link from react-router-dom will be used.
|
|
1238
1309
|
* Look up [docs](https://v5.reactrouter.com/web/api/Link) */
|
|
1239
|
-
to?:
|
|
1310
|
+
to?: string | Partial<Location> | ((location: Location) => string | Partial<Location>);
|
|
1240
1311
|
/** Look up react-router-dom [docs](https://v5.reactrouter.com/web/api/Link) */
|
|
1241
|
-
replace?:
|
|
1312
|
+
replace?: boolean;
|
|
1242
1313
|
/** Anchor disabled */
|
|
1243
1314
|
disabled?: boolean;
|
|
1244
1315
|
/** Appearance variant */
|
|
@@ -1331,7 +1402,7 @@ ResponsiveNamedProperty<'height', 'l' | 'm' | 's' | 'xs' | number> {
|
|
|
1331
1402
|
outline?: boolean;
|
|
1332
1403
|
/** Link from react-router-dom will be used.
|
|
1333
1404
|
* Look up [docs](https://v5.reactrouter.com/web/api/Link) */
|
|
1334
|
-
to?:
|
|
1405
|
+
to?: string | Partial<Location> | ((location: Location) => string | Partial<Location>);
|
|
1335
1406
|
/** Anchor element will be used */
|
|
1336
1407
|
href?: string;
|
|
1337
1408
|
/** Anchor attribute */
|