@dropins/tools 1.4.1 → 1.5.0-alpha007
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/chunks/Image.js +1 -1
- package/chunks/Image.js.map +1 -1
- package/chunks/initializer.js +2 -2
- package/components.js +1 -1
- package/components.js.map +1 -1
- package/initializer.js +2 -2
- package/lib/aem/assets.js +1 -1
- package/lib/aem/configs.js +1 -1
- package/lib.js +1 -1
- package/lib.js.map +1 -1
- package/package.json +1 -1
- package/types/elsie/src/components/InputFile/InputFile.d.ts +12 -0
- package/types/elsie/src/components/InputFile/index.d.ts +11 -0
- package/types/elsie/src/components/Table/Table.d.ts +22 -0
- package/types/elsie/src/components/Table/index.d.ts +11 -0
- package/types/elsie/src/components/index.d.ts +2 -0
- package/types/elsie/src/i18n/en_US.json.d.ts +7 -0
- package/types/elsie/src/i18n/index.d.ts +21 -0
- package/types/elsie/src/lib/slot.d.ts +4 -3
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* Copyright 2025 Adobe
|
|
3
|
+
* All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* NOTICE: Adobe permits you to use, modify, and distribute this
|
|
6
|
+
* file in accordance with the terms of the Adobe license agreement
|
|
7
|
+
* accompanying it.
|
|
8
|
+
*******************************************************************/
|
|
9
|
+
export * from './InputFile';
|
|
10
|
+
export { InputFile as default } from './InputFile';
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { FunctionComponent, VNode } from 'preact';
|
|
2
|
+
import { HTMLAttributes } from 'preact/compat';
|
|
3
|
+
|
|
4
|
+
type Sortable = 'asc' | 'desc' | true;
|
|
5
|
+
type Column = {
|
|
6
|
+
key: string;
|
|
7
|
+
label: string;
|
|
8
|
+
sortBy?: Sortable;
|
|
9
|
+
};
|
|
10
|
+
type RowData = {
|
|
11
|
+
[key: string]: VNode | string | number;
|
|
12
|
+
};
|
|
13
|
+
export interface TableProps extends HTMLAttributes<HTMLTableElement> {
|
|
14
|
+
columns: Column[];
|
|
15
|
+
rowData: RowData[];
|
|
16
|
+
mobileLayout?: 'stacked' | 'none';
|
|
17
|
+
caption?: string;
|
|
18
|
+
onSortChange?: (columnKey: string, direction: Sortable) => void;
|
|
19
|
+
}
|
|
20
|
+
export declare const Table: FunctionComponent<TableProps>;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=Table.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* Copyright 2025 Adobe
|
|
3
|
+
* All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* NOTICE: Adobe permits you to use, modify, and distribute this
|
|
6
|
+
* file in accordance with the terms of the Adobe license agreement
|
|
7
|
+
* accompanying it.
|
|
8
|
+
*******************************************************************/
|
|
9
|
+
export * from './Table';
|
|
10
|
+
export { Table as default } from './Table';
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -141,6 +141,13 @@ declare const _default: {
|
|
|
141
141
|
},
|
|
142
142
|
"InputDate": {
|
|
143
143
|
"picker": "Select a date"
|
|
144
|
+
},
|
|
145
|
+
"Table": {
|
|
146
|
+
"ariaSortAscending": "ascending",
|
|
147
|
+
"ariaSortDescending": "descending",
|
|
148
|
+
"sortedAscending": "Sort {label} ascending",
|
|
149
|
+
"sortedDescending": "Sort {label} descending",
|
|
150
|
+
"sortBy": "Sort by {label}"
|
|
144
151
|
}
|
|
145
152
|
}
|
|
146
153
|
}
|
|
@@ -152,6 +152,13 @@ export declare const definition: {
|
|
|
152
152
|
InputDate: {
|
|
153
153
|
picker: string;
|
|
154
154
|
};
|
|
155
|
+
Table: {
|
|
156
|
+
ariaSortAscending: string;
|
|
157
|
+
ariaSortDescending: string;
|
|
158
|
+
sortedAscending: string;
|
|
159
|
+
sortedDescending: string;
|
|
160
|
+
sortBy: string;
|
|
161
|
+
};
|
|
155
162
|
};
|
|
156
163
|
};
|
|
157
164
|
en_US: {
|
|
@@ -298,6 +305,13 @@ export declare const definition: {
|
|
|
298
305
|
InputDate: {
|
|
299
306
|
picker: string;
|
|
300
307
|
};
|
|
308
|
+
Table: {
|
|
309
|
+
ariaSortAscending: string;
|
|
310
|
+
ariaSortDescending: string;
|
|
311
|
+
sortedAscending: string;
|
|
312
|
+
sortedDescending: string;
|
|
313
|
+
sortBy: string;
|
|
314
|
+
};
|
|
301
315
|
};
|
|
302
316
|
};
|
|
303
317
|
};
|
|
@@ -446,6 +460,13 @@ export declare const getDefinitionByLanguage: (lang: Lang) => {
|
|
|
446
460
|
InputDate: {
|
|
447
461
|
picker: string;
|
|
448
462
|
};
|
|
463
|
+
Table: {
|
|
464
|
+
ariaSortAscending: string;
|
|
465
|
+
ariaSortDescending: string;
|
|
466
|
+
sortedAscending: string;
|
|
467
|
+
sortedDescending: string;
|
|
468
|
+
sortBy: string;
|
|
469
|
+
};
|
|
449
470
|
};
|
|
450
471
|
};
|
|
451
472
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ComponentChildren, RefObject, VNode } from 'preact';
|
|
2
|
-
import { StateUpdater } from 'preact/hooks';
|
|
3
1
|
import { Lang } from '../i18n';
|
|
2
|
+
import { ComponentChildren, RefObject, VNode } from 'preact';
|
|
4
3
|
import { HTMLAttributes } from 'preact/compat';
|
|
4
|
+
import { StateUpdater } from 'preact/hooks';
|
|
5
5
|
|
|
6
6
|
type MutateElement = (elem: HTMLElement) => void;
|
|
7
7
|
interface State {
|
|
@@ -36,6 +36,7 @@ export type SlotMethod<P = any> = (callback: (next: unknown, state: State) => P)
|
|
|
36
36
|
export declare function useSlot<K, V extends HTMLElement>(name: string, context?: Context<K>, callback?: SlotProps<K>, children?: ComponentChildren, render?: Function, contentTag?: keyof HTMLElementTagNameMap): [RefObject<V>, Record<string, any>];
|
|
37
37
|
interface SlotPropsComponent<T> extends Omit<HTMLAttributes<HTMLElement>, 'slot'> {
|
|
38
38
|
name: string;
|
|
39
|
+
lazy?: boolean;
|
|
39
40
|
slot?: SlotProps<T>;
|
|
40
41
|
context?: Context<T>;
|
|
41
42
|
render?: (props: Record<string, any>) => VNode | VNode[];
|
|
@@ -43,7 +44,7 @@ interface SlotPropsComponent<T> extends Omit<HTMLAttributes<HTMLElement>, 'slot'
|
|
|
43
44
|
contentTag?: keyof HTMLElementTagNameMap;
|
|
44
45
|
children?: ComponentChildren;
|
|
45
46
|
}
|
|
46
|
-
export declare function Slot<T>({ name, context, slot, children, render, slotTag, contentTag, ...props }: Readonly<SlotPropsComponent<T>>): VNode<{
|
|
47
|
+
export declare function Slot<T>({ name, lazy, context, slot, children, render, slotTag, contentTag, ...props }: Readonly<SlotPropsComponent<T>>): VNode<{
|
|
47
48
|
ref: RefObject<HTMLElement>;
|
|
48
49
|
'data-slot': string;
|
|
49
50
|
[key: string]: any;
|