@inploi/plugin-job-search 8.6.1 → 9.0.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 +42 -24
- package/cdn/index.js +43 -3105
- package/cdn/mapbox-gl.js +51 -0
- package/cdn/style.css +1 -1
- package/dist/common.geo-transport-CJGUJXTA-BmDm5A18.cjs +1 -0
- package/dist/common.geo-transport-CJGUJXTA-H3__EeqQ.js +37 -0
- package/dist/index.cjs +1 -2
- package/dist/index.d.cts +977 -0
- package/dist/index.d.ts +977 -2
- package/dist/index.js +204 -236
- package/dist/{map-style-c988f534.js → job-search-C39oHZb7.js} +2146 -2252
- package/dist/job-search-C9kyIrbM.cjs +60 -0
- package/dist/map-B3T2x-f7.cjs +1 -0
- package/dist/map-DVf9u_B8.js +286 -0
- package/dist/map-attribution-By9wrlPf.js +134 -0
- package/dist/map-attribution-DyuZ3dMC.cjs +26 -0
- package/dist/mapbox-gl-BvQCqDX3.cjs +3073 -0
- package/dist/{mapbox-gl-92318326.js → mapbox-gl-D9aqTRUT.js} +13886 -17036
- package/dist/style.css +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.d.cts +622 -0
- package/dist/utils.d.ts +622 -3
- package/dist/utils.js +11 -13
- package/package.json +26 -16
- package/dist/components/button.d.ts +0 -60
- package/dist/components/combobox.d.ts +0 -27
- package/dist/components/error-boundary.d.ts +0 -23
- package/dist/components/filter-content.active.d.ts +0 -246
- package/dist/components/filter-section.d.ts +0 -18
- package/dist/components/filter.d.ts +0 -24
- package/dist/components/geo-search.d.ts +0 -37
- package/dist/components/geo-search.geocode.d.ts +0 -37
- package/dist/components/geo-search.geocode.test.d.ts +0 -1
- package/dist/components/geo-search.locate-button.d.ts +0 -8
- package/dist/components/geo-search.location-input.d.ts +0 -12
- package/dist/components/geo-search.utils.d.ts +0 -19
- package/dist/components/geo-search.utils.test.d.ts +0 -1
- package/dist/components/icon.d.ts +0 -33
- package/dist/components/job-card.d.ts +0 -17
- package/dist/components/job-search.alerts.test.d.ts +0 -1
- package/dist/components/job-search.d.ts +0 -56
- package/dist/components/keyword-search.d.ts +0 -6
- package/dist/components/map.attribution.test.d.ts +0 -1
- package/dist/components/map.d.ts +0 -12
- package/dist/components/map.imports.test.d.ts +0 -1
- package/dist/components/map.mapbox.d.ts +0 -11
- package/dist/components/map.maplibre.d.ts +0 -12
- package/dist/components/map.test.d.ts +0 -1
- package/dist/components/map.types.d.ts +0 -45
- package/dist/components/natural-language-section.d.ts +0 -9
- package/dist/components/palette-debugger.d.ts +0 -1
- package/dist/components/result-order.d.ts +0 -6
- package/dist/components/results-list.d.ts +0 -26
- package/dist/components/results-map.d.ts +0 -22
- package/dist/components/results.d.ts +0 -28
- package/dist/components/roving-text.d.ts +0 -6
- package/dist/components/skeleton-text.d.ts +0 -3
- package/dist/components/tag.d.ts +0 -60
- package/dist/components/view-switch.d.ts +0 -64
- package/dist/index.cdn.d.ts +0 -9
- package/dist/index.dev.d.ts +0 -1
- package/dist/job-search.api.d.ts +0 -682
- package/dist/job-search.api.test.d.ts +0 -1
- package/dist/job-search.api.typetest.d.ts +0 -1
- package/dist/job-search.constants.d.ts +0 -7
- package/dist/job-search.d.ts +0 -296
- package/dist/job-search.schemas.d.ts +0 -183
- package/dist/lib/cache-key.d.ts +0 -7
- package/dist/lib/cache-key.test.d.ts +0 -1
- package/dist/lib/countries.d.ts +0 -4
- package/dist/lib/countries.test.d.ts +0 -1
- package/dist/lib/currency.test.d.ts +0 -1
- package/dist/lib/deep-set.d.ts +0 -8
- package/dist/lib/deep-set.test.d.ts +0 -1
- package/dist/lib/distance.d.ts +0 -11
- package/dist/lib/distance.test.d.ts +0 -1
- package/dist/lib/hooks.d.ts +0 -8
- package/dist/lib/i18n.d.ts +0 -580
- package/dist/lib/map-attribution.d.ts +0 -8
- package/dist/lib/map-style.d.ts +0 -6
- package/dist/lib/map-style.test.d.ts +0 -1
- package/dist/lib/maplibre-cdn.d.ts +0 -10
- package/dist/lib/maplibre-cdn.test.d.ts +0 -1
- package/dist/lib/match.d.ts +0 -35
- package/dist/lib/match.test.d.ts +0 -1
- package/dist/lib/sort.d.ts +0 -4
- package/dist/lib/sort.test.d.ts +0 -1
- package/dist/lib/type-utils.d.ts +0 -56
- package/dist/lib/utils.d.ts +0 -16
- package/dist/lib/utils.test.d.ts +0 -1
- package/dist/map-a092b43f.cjs +0 -2
- package/dist/map-attribution-18e2dacf.cjs +0 -26
- package/dist/map-attribution-bc77dbf2.js +0 -115
- package/dist/map-ddfd39ea.js +0 -254
- package/dist/map-style-57bbe0a0.cjs +0 -60
- package/dist/mapbox-gl-f5a3f2d4.cjs +0 -3073
- package/dist/mocks/browser.d.ts +0 -1
- package/dist/mocks/handlers.d.ts +0 -26
- package/dist/style/theme.d.ts +0 -7
- package/dist/style/theme.utils.d.ts +0 -6
- package/dist/style/tokens.d.ts +0 -148
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { JobAlertsFilters } from '@inploi/plugin-job-alerts';
|
|
2
|
-
import { AnalyticsService, InploiRpcClient } from '@inploi/sdk';
|
|
3
|
-
import { JobSearchPluginParams } from '../job-search';
|
|
4
|
-
import { getJobSearchResults } from '../job-search.api';
|
|
5
|
-
import { JobSchema } from '../job-search.schemas';
|
|
6
|
-
import { DistanceUnit } from '../lib/distance';
|
|
7
|
-
import { FilterValue } from './filter';
|
|
8
|
-
import { GeoSearchFilter } from './geo-search';
|
|
9
|
-
|
|
10
|
-
type JobSearchProps = {
|
|
11
|
-
properties: JobSearchPluginParams['properties'];
|
|
12
|
-
rpcClient: InploiRpcClient;
|
|
13
|
-
analytics: AnalyticsService;
|
|
14
|
-
params: JobSearchPluginParams;
|
|
15
|
-
initialData?: {
|
|
16
|
-
jobs: Awaited<ReturnType<typeof getJobSearchResults>>;
|
|
17
|
-
};
|
|
18
|
-
onStateChange: ((partialState: Partial<JobSearchState>) => void) | undefined;
|
|
19
|
-
onResultsUpdate?: (data: {
|
|
20
|
-
totalCount: number;
|
|
21
|
-
}) => void;
|
|
22
|
-
};
|
|
23
|
-
export declare const getFilterDefaults: (properties: JobSearchPluginParams["properties"], field?: "value" | "defaultValue") => Record<string, FilterValue | undefined>;
|
|
24
|
-
export declare const filtersToPayload: (filters: Record<string, FilterValue | undefined>) => Record<string, string[]>;
|
|
25
|
-
/**
|
|
26
|
-
* What a job alert saved from this search subscribes to: its filters and, when the candidate searched around a
|
|
27
|
-
* place, that place and radius, with the hub's unit so the alert can describe it as the candidate saw it. A map
|
|
28
|
-
* area or IP location is not saved: the alert engine needs a fixed centre.
|
|
29
|
-
*
|
|
30
|
-
* The page's locale rides along as `_locale`, a plain string the API never matches jobs on: it writes the alert's
|
|
31
|
-
* emails in that language (PROD-7948).
|
|
32
|
-
*/
|
|
33
|
-
export declare const alertsPayload: (state: Pick<JobSearchState, "filters" | "geo">, distanceUnit: DistanceUnit, locale?: string) => JobAlertsFilters;
|
|
34
|
-
export type JobSearchState = {
|
|
35
|
-
filters: Record<string, FilterValue | undefined>;
|
|
36
|
-
query: string;
|
|
37
|
-
mode: 'query' | 'vector';
|
|
38
|
-
/** Omit to retain the API's contextual default ranking. */
|
|
39
|
-
resultOrder?: 'newest';
|
|
40
|
-
geo?: GeoSearchFilter | undefined;
|
|
41
|
-
page: number;
|
|
42
|
-
view: 'list' | 'map';
|
|
43
|
-
};
|
|
44
|
-
export declare const JobSearch: ({ rpcClient, properties, analytics, initialData, onStateChange, params, }: JobSearchProps) => import("preact").JSX.Element;
|
|
45
|
-
export declare const useAnalytics: ({ appRef, analytics, state, defaultFilters, totalCount, hasInteracted, }: {
|
|
46
|
-
appRef: React.RefObject<HTMLDivElement>;
|
|
47
|
-
analytics: AnalyticsService;
|
|
48
|
-
defaultFilters: Record<string, FilterValue | undefined>;
|
|
49
|
-
state: JobSearchState;
|
|
50
|
-
totalCount: number;
|
|
51
|
-
hasInteracted: boolean;
|
|
52
|
-
}) => {
|
|
53
|
-
onJobClick: (job: JobSchema, page: number) => void;
|
|
54
|
-
analyticsPaginate: (page: number) => void;
|
|
55
|
-
};
|
|
56
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/components/map.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { JobSearchPluginParams } from '../job-search';
|
|
2
|
-
import { GetJobSearchMapResponse, QueryState } from '../job-search.api';
|
|
3
|
-
import { GeoBounds } from './geo-search';
|
|
4
|
-
|
|
5
|
-
type MapProps = {
|
|
6
|
-
config: JobSearchPluginParams['map'];
|
|
7
|
-
mapData: QueryState<GetJobSearchMapResponse>;
|
|
8
|
-
autoFit?: boolean;
|
|
9
|
-
onBoundsChange: (b: GeoBounds) => void;
|
|
10
|
-
};
|
|
11
|
-
export declare const Map: ({ config, mapData, onBoundsChange, autoFit }: MapProps) => import("preact").JSX.Element;
|
|
12
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { JobSearchPluginParams } from '../job-search';
|
|
2
|
-
|
|
3
|
-
export declare function loadMapbox(config: JobSearchPluginParams['map']): Promise<{
|
|
4
|
-
css: undefined;
|
|
5
|
-
createMap(container: HTMLElement): {
|
|
6
|
-
map: import('mapbox-gl').Map;
|
|
7
|
-
fitBounds(points: [number, number][]): void;
|
|
8
|
-
updateJobsData(data: GeoJSON.FeatureCollection): boolean;
|
|
9
|
-
getClusterExpansionZoom: (clusterId: number) => Promise<number>;
|
|
10
|
-
};
|
|
11
|
-
}>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { JobSearchPluginParams } from '../job-search';
|
|
2
|
-
|
|
3
|
-
export declare function loadMaplibre(config: JobSearchPluginParams['map'], locale: Record<string, string>): Promise<{
|
|
4
|
-
css: string;
|
|
5
|
-
createMap(container: HTMLElement): {
|
|
6
|
-
map: import('maplibre-gl').Map;
|
|
7
|
-
useFallbackStyle(): void;
|
|
8
|
-
fitBounds(points: [number, number][]): void;
|
|
9
|
-
updateJobsData(data: GeoJSON.FeatureCollection): boolean;
|
|
10
|
-
getClusterExpansionZoom: (clusterId: number) => Promise<number>;
|
|
11
|
-
};
|
|
12
|
-
}>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { CircleLayerSpecification, SymbolLayerSpecification } from 'maplibre-gl';
|
|
2
|
-
import type * as mapbox from 'mapbox-gl';
|
|
3
|
-
export type MapBounds = {
|
|
4
|
-
getSouthWest(): {
|
|
5
|
-
lat: number;
|
|
6
|
-
lng: number;
|
|
7
|
-
};
|
|
8
|
-
getNorthEast(): {
|
|
9
|
-
lat: number;
|
|
10
|
-
lng: number;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
export type JobMap = {
|
|
14
|
-
remove(): void;
|
|
15
|
-
getCanvas(): HTMLCanvasElement;
|
|
16
|
-
easeTo(options: {
|
|
17
|
-
center: [number, number];
|
|
18
|
-
zoom: number;
|
|
19
|
-
}): void;
|
|
20
|
-
addLayer(layer: (CircleLayerSpecification & mapbox.CircleLayerSpecification) | (SymbolLayerSpecification & mapbox.SymbolLayerSpecification)): void;
|
|
21
|
-
addSource(id: string, source: {
|
|
22
|
-
type: 'geojson';
|
|
23
|
-
data: GeoJSON.FeatureCollection;
|
|
24
|
-
cluster: boolean;
|
|
25
|
-
clusterRadius: number;
|
|
26
|
-
clusterMaxZoom: number;
|
|
27
|
-
}): void;
|
|
28
|
-
getBounds(): MapBounds | null;
|
|
29
|
-
queryRenderedFeatures(point: [number, number], options: {
|
|
30
|
-
layers: string[];
|
|
31
|
-
}): GeoJSON.Feature[];
|
|
32
|
-
on(event: 'load' | 'style.load', listener: () => void): unknown;
|
|
33
|
-
on(event: 'error', listener: (event: {
|
|
34
|
-
sourceId?: string;
|
|
35
|
-
}) => void): unknown;
|
|
36
|
-
on(event: 'move', listener: (event: {
|
|
37
|
-
originalEvent?: unknown;
|
|
38
|
-
}) => void): unknown;
|
|
39
|
-
on(event: 'mouseenter' | 'mouseleave' | 'click', layer: string, listener: (event: {
|
|
40
|
-
point: {
|
|
41
|
-
x: number;
|
|
42
|
-
y: number;
|
|
43
|
-
};
|
|
44
|
-
}) => void): unknown;
|
|
45
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { JobSearchPluginParams } from '..';
|
|
2
|
-
|
|
3
|
-
type KeywordSearchProps = {
|
|
4
|
-
value: string | undefined;
|
|
5
|
-
onValueChange: (keyword: string) => void;
|
|
6
|
-
options: JobSearchPluginParams['naturalLanguageSearch'];
|
|
7
|
-
};
|
|
8
|
-
export declare const NaturalLanguageSearch: ({ value, onValueChange, options }: KeywordSearchProps) => import("preact").JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const PaletteDebugger: () => import("preact").JSX.Element;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { InploiRpcClient } from '@inploi/sdk';
|
|
2
|
-
import { VNode } from 'preact';
|
|
3
|
-
import { getJobSearchResults } from '../job-search.api';
|
|
4
|
-
import { JobSchema } from '../job-search.schemas';
|
|
5
|
-
import { JobSearchPluginI18nParams, JobSearchPluginParams } from '../job-search.ts';
|
|
6
|
-
import { DistanceUnit } from '../lib/distance';
|
|
7
|
-
import { JobSearchState } from './job-search';
|
|
8
|
-
|
|
9
|
-
type ListViewResultsProps = {
|
|
10
|
-
state: JobSearchState;
|
|
11
|
-
rpcClient: InploiRpcClient;
|
|
12
|
-
jobCardConfig: JobSearchPluginParams['jobCard'];
|
|
13
|
-
initialData?: Awaited<ReturnType<typeof getJobSearchResults>>;
|
|
14
|
-
onResultsUpdate?: (data: {
|
|
15
|
-
totalCount: number;
|
|
16
|
-
}) => void;
|
|
17
|
-
onJobClick: (job: JobSchema, page: number) => void;
|
|
18
|
-
onPaginate: (page: number) => void;
|
|
19
|
-
mode: 'vector' | 'query';
|
|
20
|
-
afterResults: VNode | null;
|
|
21
|
-
prioritySegment: string | undefined;
|
|
22
|
-
i18n: JobSearchPluginI18nParams | undefined;
|
|
23
|
-
distanceUnit: DistanceUnit | undefined;
|
|
24
|
-
};
|
|
25
|
-
export declare const ListViewResults: ({ state, rpcClient, jobCardConfig, initialData, onResultsUpdate, onJobClick, onPaginate, mode, afterResults, prioritySegment, i18n, distanceUnit, }: ListViewResultsProps) => import("preact").JSX.Element;
|
|
26
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { InploiRpcClient } from '@inploi/sdk';
|
|
2
|
-
import { VNode } from 'preact';
|
|
3
|
-
import { JobSchema } from '../job-search.schemas';
|
|
4
|
-
import { JobSearchPluginI18nParams, JobSearchPluginParams } from '../job-search.ts';
|
|
5
|
-
import { DistanceUnit } from '../lib/distance';
|
|
6
|
-
import { GeoSearchFilter } from './geo-search';
|
|
7
|
-
import { JobSearchState } from './job-search';
|
|
8
|
-
|
|
9
|
-
type MapViewResultsProps = {
|
|
10
|
-
state: JobSearchState;
|
|
11
|
-
rpcClient: InploiRpcClient;
|
|
12
|
-
jobCardConfig: JobSearchPluginParams['jobCard'];
|
|
13
|
-
mapConfig: JobSearchPluginParams['map'];
|
|
14
|
-
onGeoChange: (geo: GeoSearchFilter) => void;
|
|
15
|
-
onJobClick: (job: JobSchema, page: number) => void;
|
|
16
|
-
afterResults: VNode | null;
|
|
17
|
-
prioritySegment: string | undefined;
|
|
18
|
-
i18n: JobSearchPluginI18nParams | undefined;
|
|
19
|
-
distanceUnit: DistanceUnit | undefined;
|
|
20
|
-
};
|
|
21
|
-
export declare const MapViewResults: ({ state, rpcClient, mapConfig, onGeoChange, afterResults, onJobClick, jobCardConfig, prioritySegment, i18n, distanceUnit, }: MapViewResultsProps) => import("preact").JSX.Element;
|
|
22
|
-
export {};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { InploiRpcClient } from '@inploi/sdk';
|
|
2
|
-
import { getJobSearchResults } from '../job-search.api';
|
|
3
|
-
import { JobSchema } from '../job-search.schemas';
|
|
4
|
-
import { JobSearchPluginI18nParams, JobSearchPluginParams } from '../job-search.ts';
|
|
5
|
-
import { DistanceUnit } from '../lib/distance';
|
|
6
|
-
import { GeoSearchFilter } from './geo-search';
|
|
7
|
-
import { JobSearchState } from './job-search';
|
|
8
|
-
|
|
9
|
-
export type ResultsSectionProps = {
|
|
10
|
-
state: JobSearchState;
|
|
11
|
-
rpcClient: InploiRpcClient;
|
|
12
|
-
jobCardConfig: JobSearchPluginParams['jobCard'];
|
|
13
|
-
mapConfig: JobSearchPluginParams['map'];
|
|
14
|
-
initialData?: Awaited<ReturnType<typeof getJobSearchResults>>;
|
|
15
|
-
onResultsUpdate?: (data: {
|
|
16
|
-
totalCount: number;
|
|
17
|
-
}) => void;
|
|
18
|
-
onJobClick: (job: JobSchema, page: number) => void;
|
|
19
|
-
onPaginate: (page: number) => void;
|
|
20
|
-
onGeoChange: (geo: GeoSearchFilter) => void;
|
|
21
|
-
onViewChange: (view: 'list' | 'map') => void;
|
|
22
|
-
onResultOrderChange: (resultOrder: JobSearchState['resultOrder']) => void;
|
|
23
|
-
mode: 'vector' | 'query';
|
|
24
|
-
prioritySegment: string | undefined;
|
|
25
|
-
i18n: JobSearchPluginI18nParams | undefined;
|
|
26
|
-
distanceUnit: DistanceUnit | undefined;
|
|
27
|
-
};
|
|
28
|
-
export declare const ResultsSection: (props: ResultsSectionProps) => import("preact").JSX.Element;
|
package/dist/components/tag.d.ts
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
export declare const tagClass: (props?: ({
|
|
2
|
-
variant?: "accentStrong" | "neutralStrong" | "neutralWeak" | "monetaryWeak" | undefined;
|
|
3
|
-
interactive?: boolean | undefined;
|
|
4
|
-
size?: "sm" | "lg" | "unsized" | "xs" | undefined;
|
|
5
|
-
disabled?: boolean | undefined;
|
|
6
|
-
} & ({
|
|
7
|
-
class?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
|
|
8
|
-
[x: string]: any;
|
|
9
|
-
} | null | undefined)[] | {
|
|
10
|
-
[x: string]: any;
|
|
11
|
-
} | null | undefined)[] | {
|
|
12
|
-
[x: string]: any;
|
|
13
|
-
} | null | undefined)[] | {
|
|
14
|
-
[x: string]: any;
|
|
15
|
-
} | null | undefined)[] | {
|
|
16
|
-
[x: string]: any;
|
|
17
|
-
} | null | undefined)[] | {
|
|
18
|
-
[x: string]: any;
|
|
19
|
-
} | null | undefined)[] | {
|
|
20
|
-
[x: string]: any;
|
|
21
|
-
} | null | undefined)[] | {
|
|
22
|
-
[x: string]: any;
|
|
23
|
-
} | null | undefined)[] | {
|
|
24
|
-
[x: string]: any;
|
|
25
|
-
} | null | undefined)[] | {
|
|
26
|
-
[x: string]: any;
|
|
27
|
-
} | null | undefined)[] | {
|
|
28
|
-
[x: string]: any;
|
|
29
|
-
} | null | undefined)[] | {
|
|
30
|
-
[x: string]: any;
|
|
31
|
-
} | null | undefined;
|
|
32
|
-
className?: never;
|
|
33
|
-
} | {
|
|
34
|
-
class?: never;
|
|
35
|
-
className?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
|
|
36
|
-
[x: string]: any;
|
|
37
|
-
} | null | undefined)[] | {
|
|
38
|
-
[x: string]: any;
|
|
39
|
-
} | null | undefined)[] | {
|
|
40
|
-
[x: string]: any;
|
|
41
|
-
} | null | undefined)[] | {
|
|
42
|
-
[x: string]: any;
|
|
43
|
-
} | null | undefined)[] | {
|
|
44
|
-
[x: string]: any;
|
|
45
|
-
} | null | undefined)[] | {
|
|
46
|
-
[x: string]: any;
|
|
47
|
-
} | null | undefined)[] | {
|
|
48
|
-
[x: string]: any;
|
|
49
|
-
} | null | undefined)[] | {
|
|
50
|
-
[x: string]: any;
|
|
51
|
-
} | null | undefined)[] | {
|
|
52
|
-
[x: string]: any;
|
|
53
|
-
} | null | undefined)[] | {
|
|
54
|
-
[x: string]: any;
|
|
55
|
-
} | null | undefined)[] | {
|
|
56
|
-
[x: string]: any;
|
|
57
|
-
} | null | undefined)[] | {
|
|
58
|
-
[x: string]: any;
|
|
59
|
-
} | null | undefined;
|
|
60
|
-
})) | undefined) => string;
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
export declare const toggleItem: (props?: ({
|
|
2
|
-
active?: boolean | undefined;
|
|
3
|
-
} & ({
|
|
4
|
-
class?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
|
|
5
|
-
[x: string]: any;
|
|
6
|
-
} | null | undefined)[] | {
|
|
7
|
-
[x: string]: any;
|
|
8
|
-
} | null | undefined)[] | {
|
|
9
|
-
[x: string]: any;
|
|
10
|
-
} | null | undefined)[] | {
|
|
11
|
-
[x: string]: any;
|
|
12
|
-
} | null | undefined)[] | {
|
|
13
|
-
[x: string]: any;
|
|
14
|
-
} | null | undefined)[] | {
|
|
15
|
-
[x: string]: any;
|
|
16
|
-
} | null | undefined)[] | {
|
|
17
|
-
[x: string]: any;
|
|
18
|
-
} | null | undefined)[] | {
|
|
19
|
-
[x: string]: any;
|
|
20
|
-
} | null | undefined)[] | {
|
|
21
|
-
[x: string]: any;
|
|
22
|
-
} | null | undefined)[] | {
|
|
23
|
-
[x: string]: any;
|
|
24
|
-
} | null | undefined)[] | {
|
|
25
|
-
[x: string]: any;
|
|
26
|
-
} | null | undefined)[] | {
|
|
27
|
-
[x: string]: any;
|
|
28
|
-
} | null | undefined;
|
|
29
|
-
className?: never;
|
|
30
|
-
} | {
|
|
31
|
-
class?: never;
|
|
32
|
-
className?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
|
|
33
|
-
[x: string]: any;
|
|
34
|
-
} | null | undefined)[] | {
|
|
35
|
-
[x: string]: any;
|
|
36
|
-
} | null | undefined)[] | {
|
|
37
|
-
[x: string]: any;
|
|
38
|
-
} | null | undefined)[] | {
|
|
39
|
-
[x: string]: any;
|
|
40
|
-
} | null | undefined)[] | {
|
|
41
|
-
[x: string]: any;
|
|
42
|
-
} | null | undefined)[] | {
|
|
43
|
-
[x: string]: any;
|
|
44
|
-
} | null | undefined)[] | {
|
|
45
|
-
[x: string]: any;
|
|
46
|
-
} | null | undefined)[] | {
|
|
47
|
-
[x: string]: any;
|
|
48
|
-
} | null | undefined)[] | {
|
|
49
|
-
[x: string]: any;
|
|
50
|
-
} | null | undefined)[] | {
|
|
51
|
-
[x: string]: any;
|
|
52
|
-
} | null | undefined)[] | {
|
|
53
|
-
[x: string]: any;
|
|
54
|
-
} | null | undefined)[] | {
|
|
55
|
-
[x: string]: any;
|
|
56
|
-
} | null | undefined;
|
|
57
|
-
})) | undefined) => string;
|
|
58
|
-
export declare const toggleGroupClass = "bg-neutral-3 rounded-interactive ring-neutral-3 mr-[3px] inline-flex min-w-0 max-w-full ring-[3px]";
|
|
59
|
-
type ViewToggleProps = {
|
|
60
|
-
value: 'list' | 'map';
|
|
61
|
-
onValueChange: (val: 'list' | 'map') => void;
|
|
62
|
-
};
|
|
63
|
-
export declare const ViewToggle: ({ value, onValueChange }: ViewToggleProps) => import("preact").JSX.Element;
|
|
64
|
-
export {};
|
package/dist/index.cdn.d.ts
DELETED
package/dist/index.dev.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|