asheeui 0.6.5 → 0.6.6
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/dist/components/accordion/Accordion.js +10 -10
- package/dist/components/autocomplete/Autocomplete.d.ts +8 -0
- package/dist/components/autocomplete/Autocomplete.d.ts.map +1 -1
- package/dist/components/autocomplete/Autocomplete.js +120 -118
- package/dist/components/autocomplete/autocomplete-config.d.ts +27 -1
- package/dist/components/autocomplete/autocomplete-config.d.ts.map +1 -1
- package/dist/components/autocomplete/autocomplete-config.js +14 -6
- package/dist/components/date-picker/DatePicker.d.ts +20 -0
- package/dist/components/date-picker/DatePicker.d.ts.map +1 -1
- package/dist/components/date-picker/DatePicker.js +230 -229
- package/dist/components/date-picker/date-picker-config.d.ts +16 -0
- package/dist/components/date-picker/date-picker-config.d.ts.map +1 -1
- package/dist/components/date-picker/date-picker-config.js +14 -10
- package/dist/components/keyboard/OnScreenKeyboard.d.ts +16 -6
- package/dist/components/keyboard/OnScreenKeyboard.d.ts.map +1 -1
- package/dist/components/keyboard/OnScreenKeyboard.js +96 -90
- package/dist/components/keyboard/index.js +1 -0
- package/dist/components/keyboard/keyboard-config.d.ts +27 -1
- package/dist/components/keyboard/keyboard-config.d.ts.map +1 -1
- package/dist/components/keyboard/keyboard-config.js +12 -8
- package/dist/components/keyboard/keyboard-context.d.ts +4 -7
- package/dist/components/keyboard/keyboard-context.d.ts.map +1 -1
- package/dist/components/keyboard/keyboard-context.js +61 -58
- package/dist/components/keyboard/keyboard-styles.d.ts +13 -0
- package/dist/components/keyboard/keyboard-styles.d.ts.map +1 -0
- package/dist/components/keyboard/keyboard-styles.js +14 -0
- package/dist/components/multi-select/MultiSelect.d.ts +8 -0
- package/dist/components/multi-select/MultiSelect.d.ts.map +1 -1
- package/dist/components/multi-select/MultiSelect.js +186 -184
- package/dist/components/multi-select/multi-select-config.d.ts +18 -0
- package/dist/components/multi-select/multi-select-config.d.ts.map +1 -1
- package/dist/components/multi-select/multi-select-config.js +14 -10
- package/dist/components/resizable-screen/ResizableScreen.d.ts +23 -11
- package/dist/components/resizable-screen/ResizableScreen.d.ts.map +1 -1
- package/dist/components/resizable-screen/ResizableScreen.js +69 -60
- package/dist/components/select/Select.d.ts +8 -6
- package/dist/components/select/Select.d.ts.map +1 -1
- package/dist/components/select/Select.js +135 -135
- package/dist/components/select/select-config.d.ts +27 -1
- package/dist/components/select/select-config.d.ts.map +1 -1
- package/dist/components/select/select-config.js +14 -6
- package/dist/components/select-menu/SelectMenu.d.ts +23 -1
- package/dist/components/select-menu/SelectMenu.d.ts.map +1 -1
- package/dist/components/select-menu/SelectMenu.js +72 -67
- package/dist/components/select-menu/index.d.ts +1 -0
- package/dist/components/select-menu/index.d.ts.map +1 -1
- package/dist/components/select-menu/index.js +1 -0
- package/dist/components/select-menu/select-menu-config.d.ts +1 -1
- package/dist/components/select-menu/select-menu-config.js +3 -3
- package/dist/components/select-menu/use-select-floating.d.ts +95 -0
- package/dist/components/select-menu/use-select-floating.d.ts.map +1 -0
- package/dist/components/select-menu/use-select-floating.js +36 -0
- package/dist/components/toast/toast-config.d.ts +11 -0
- package/dist/components/toast/toast-config.d.ts.map +1 -1
- package/dist/components/toast/toast-config.js +4 -2
- package/dist/components/toast/toast-context.d.ts +21 -1
- package/dist/components/toast/toast-context.d.ts.map +1 -1
- package/dist/components/toast/toast-context.js +134 -114
- package/dist/components/tooltip/Tooltip.d.ts +19 -0
- package/dist/components/tooltip/Tooltip.d.ts.map +1 -1
- package/dist/components/tooltip/Tooltip.js +129 -121
- package/dist/components/tooltip/tooltip-config.d.ts +7 -3
- package/dist/components/tooltip/tooltip-config.d.ts.map +1 -1
- package/dist/components/tooltip/tooltip-config.js +5 -4
- package/dist/config/resolve-config.d.ts.map +1 -1
- package/dist/utils/merge-object.d.ts +7 -1
- package/dist/utils/merge-object.d.ts.map +1 -1
- package/dist/utils/types.d.ts +16 -4
- package/dist/utils/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -5,8 +5,9 @@ const e = {
|
|
|
5
5
|
placement: "top",
|
|
6
6
|
delay: 200,
|
|
7
7
|
offset: 8,
|
|
8
|
-
showArrow: !1
|
|
9
|
-
|
|
8
|
+
showArrow: !1,
|
|
9
|
+
portal: !0
|
|
10
|
+
}, r = {
|
|
10
11
|
size: "md",
|
|
11
12
|
placement: "top",
|
|
12
13
|
variant: "solid",
|
|
@@ -15,10 +16,10 @@ const e = {
|
|
|
15
16
|
offset: 8,
|
|
16
17
|
radius: "md",
|
|
17
18
|
showArrow: !1,
|
|
18
|
-
|
|
19
|
+
portal: !0
|
|
19
20
|
};
|
|
20
21
|
o("tooltip", e);
|
|
21
22
|
export {
|
|
22
|
-
|
|
23
|
+
r as FALLBACK_TOOLTIP_CONFIG,
|
|
23
24
|
e as defaultTooltipConfig
|
|
24
25
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-config.d.ts","sourceRoot":"","sources":["../../src/config/resolve-config.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH,OAAO,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAIvD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,aAAa,CAAC,cAAc,EAAE,cAAc,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"resolve-config.d.ts","sourceRoot":"","sources":["../../src/config/resolve-config.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH,OAAO,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAIvD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,aAAa,CAAC,cAAc,EAAE,cAAc,GAAG,MAAM,CAiBpE"}
|
|
@@ -7,6 +7,12 @@ import { DeepPartial } from './types';
|
|
|
7
7
|
* user value is `undefined` are skipped, leaving the default intact.
|
|
8
8
|
* The `defaults` object is not mutated.
|
|
9
9
|
*
|
|
10
|
+
* `T` is inferred exclusively from `defaults`; `U` (the override type) is a
|
|
11
|
+
* separate type parameter constrained to a deep partial of `T`. This keeps
|
|
12
|
+
* TypeScript from ever inferring `T` from the `userConfig` argument, which
|
|
13
|
+
* would otherwise force a full `DeepPartial<T>` instantiation at every call
|
|
14
|
+
* site (the source of "excessively deep type instantiation" errors).
|
|
15
|
+
*
|
|
10
16
|
* @param defaults - Baseline object providing fallback values.
|
|
11
17
|
* @param userConfig - Optional partial override object.
|
|
12
18
|
* @returns A new object with the user overrides applied.
|
|
@@ -20,5 +26,5 @@ import { DeepPartial } from './types';
|
|
|
20
26
|
* // -> { theme: { color: "primary", radius: "lg" } }
|
|
21
27
|
* ```
|
|
22
28
|
*/
|
|
23
|
-
export declare function mergeObject<T extends Record<string, unknown>>(defaults: T, userConfig?:
|
|
29
|
+
export declare function mergeObject<T extends Record<string, unknown>, U extends DeepPartial<T> = DeepPartial<T>>(defaults: T, userConfig?: U): T;
|
|
24
30
|
//# sourceMappingURL=merge-object.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"merge-object.d.ts","sourceRoot":"","sources":["../../src/utils/merge-object.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAY3C
|
|
1
|
+
{"version":3,"file":"merge-object.d.ts","sourceRoot":"","sources":["../../src/utils/merge-object.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAY3C;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,WAAW,CACzB,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACjC,CAAC,SAAS,WAAW,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,EACzC,QAAQ,EAAE,CAAC,EAAE,UAAU,CAAC,EAAE,CAAC,GAAG,CAAC,CAuBhC"}
|
package/dist/utils/types.d.ts
CHANGED
|
@@ -1,10 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Built-in types that should never be recursed into.
|
|
3
|
+
*
|
|
4
|
+
* Functions (including React components/render callbacks), primitives, and
|
|
5
|
+
* well-known built-in objects are terminal values for the deep mapping, so
|
|
6
|
+
* `DeepPartial` stops instead of walking their members. This prevents
|
|
7
|
+
* excessively deep/infinite type instantiation when configs reference React
|
|
8
|
+
* nodes, DOM elements, or function-valued fields.
|
|
9
|
+
*/
|
|
10
|
+
type Builtin = Date | Error | RegExp | boolean | number | string | symbol | null | undefined;
|
|
1
11
|
/**
|
|
2
12
|
* Recursively make every property of `T` optional.
|
|
3
13
|
*
|
|
4
|
-
*
|
|
5
|
-
* mapped
|
|
14
|
+
* Built-ins (primitives, functions, dates, etc.) are left untouched and
|
|
15
|
+
* arrays are mapped element-wise; only plain object properties are mapped
|
|
16
|
+
* with optional keys. Useful for typed partial configuration overrides.
|
|
6
17
|
*/
|
|
7
|
-
export type DeepPartial<T> = T extends object ? {
|
|
8
|
-
[
|
|
18
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends object ? {
|
|
19
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
9
20
|
} : T;
|
|
21
|
+
export {};
|
|
10
22
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/utils/types.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/utils/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,KAAK,OAAO,GACR,IAAI,GACJ,KAAK,GACL,MAAM,GACN,OAAO,GACP,MAAM,GACN,MAAM,GACN,MAAM,GACN,IAAI,GACJ,SAAS,CAAC;AAEd;;;;;;GAMG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS,OAAO,GAC1C,CAAC,GACD,CAAC,SAAS,KAAK,CAAC,MAAM,CAAC,CAAC,GACtB,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GACrB,CAAC,SAAS,aAAa,CAAC,MAAM,CAAC,CAAC,GAC9B,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GAC7B,CAAC,SAAS,MAAM,GACd;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,GACtC,CAAC,CAAC"}
|