@umbra.ui/core 0.1.25 → 0.1.26
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/controls/IconButton/IconButton.vue +1 -1
- package/dist/components/dialogs/Toast/ToastContainer.vue +1 -1
- package/dist/components/dialogs/Toast/useToast.d.ts +1 -1
- package/dist/components/dialogs/Toast/useToast.d.ts.map +1 -1
- package/dist/components/dialogs/Toast/useToast.ts +2 -1
- package/dist/components/inputs/search/README.md +1 -1
- package/dist/components/pickers/DatePicker/DatePicker.vue +1 -1
- package/package.json +4 -2
- package/src/components/controls/IconButton/IconButton.vue +1 -1
- package/src/components/dialogs/Toast/ToastContainer.vue +1 -1
- package/src/components/dialogs/Toast/useToast.ts +2 -1
- package/src/components/inputs/search/README.md +1 -1
- package/src/components/pickers/DatePicker/DatePicker.vue +1 -1
|
@@ -7,7 +7,7 @@ import "./theme.css";
|
|
|
7
7
|
interface Props {
|
|
8
8
|
iconName?: IconKey;
|
|
9
9
|
buttonType?: "round" | "square" | "plain";
|
|
10
|
-
buttonStyle?: "primary" | "secondary" | "tertiary" | "quaternary";
|
|
10
|
+
buttonStyle?: "primary" | "secondary" | "tertiary" | "quaternary" | string;
|
|
11
11
|
state?: "normal" | "active" | "disabled";
|
|
12
12
|
buttonSize?: number;
|
|
13
13
|
tooltip?: string | TooltipConfig;
|
|
@@ -17,7 +17,7 @@ const containerRef = ref<HTMLElement>();
|
|
|
17
17
|
const animatedToasts = new Set<string>();
|
|
18
18
|
|
|
19
19
|
// Track auto-dismiss timeouts
|
|
20
|
-
const autoDismissTimeouts = new Map<string,
|
|
20
|
+
const autoDismissTimeouts = new Map<string, ReturnType<typeof setTimeout>>();
|
|
21
21
|
|
|
22
22
|
const handleDismiss = async (id: string) => {
|
|
23
23
|
// Clear any auto-dismiss timeout for this toast
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useToast.d.ts","sourceRoot":"","sources":["../../../../src/components/dialogs/Toast/useToast.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useToast.d.ts","sourceRoot":"","sources":["../../../../src/components/dialogs/Toast/useToast.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,KAAK,EAAE,YAAY,EAAiB,MAAM,SAAS,CAAC;AA2F3D,eAAO,MAAM,WAAW;iBACT,GAAG;CAMjB,CAAC;AAGF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;wBAjFK,YAAY,KAAG,OAAO,CAAC,MAAM,CAAC;sBA4BtC,MAAM;;2BAhCD,KAAK,GAAG,MAAM,GAAG,cAAc;yBA+C3C,MAAM,gBACC,MAAM,YACV,OAAO,CAAC,YAAY,CAAC;uBAIxB,MAAM,gBACC,MAAM,YACV,OAAO,CAAC,YAAY,CAAC;yBAIxB,MAAM,gBACC,MAAM,YACV,OAAO,CAAC,YAAY,CAAC;sBAIxB,MAAM,gBACC,MAAM,YACV,OAAO,CAAC,YAAY,CAAC;CAyClC,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// useToast.ts
|
|
2
|
-
import { ref, computed, nextTick,
|
|
2
|
+
import { ref, computed, nextTick, inject, provide } from "vue";
|
|
3
|
+
import type { App } from "vue";
|
|
3
4
|
import type { ToastOptions, ToastInstance } from "./types";
|
|
4
5
|
|
|
5
6
|
const TOAST_INJECTION_KEY = Symbol("toast");
|
|
@@ -460,7 +460,7 @@ const searchAPI = async (query: string) => {
|
|
|
460
460
|
};
|
|
461
461
|
|
|
462
462
|
// Debounced search
|
|
463
|
-
let searchTimeout:
|
|
463
|
+
let searchTimeout: ReturnType<typeof setTimeout>;
|
|
464
464
|
watch(searchQuery, (newQuery) => {
|
|
465
465
|
clearTimeout(searchTimeout);
|
|
466
466
|
searchTimeout = setTimeout(() => {
|
|
@@ -257,7 +257,7 @@ const scrollview = ref<HTMLElement | null>(null);
|
|
|
257
257
|
const fetchInProgress = ref<boolean>(false);
|
|
258
258
|
const allowScroll = ref<boolean>(false);
|
|
259
259
|
const isScrolling = ref<boolean>(false);
|
|
260
|
-
let scrollTimeout:
|
|
260
|
+
let scrollTimeout: ReturnType<typeof setTimeout> | undefined;
|
|
261
261
|
const handleScroll = () => {
|
|
262
262
|
// Set isScrolling to true when scrolling starts
|
|
263
263
|
if (allowScroll.value) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umbra.ui/core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.26",
|
|
4
4
|
"description": "Core components for Umbra UI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -47,15 +47,17 @@
|
|
|
47
47
|
"@umbra.ui/icons": "^0.1.2",
|
|
48
48
|
"@umbra.ui/typography": "^0.1.2",
|
|
49
49
|
"autosize": "^6.0.1",
|
|
50
|
+
"@types/autosize": "^4.0.3",
|
|
50
51
|
"gsap": "^3.13.0",
|
|
51
52
|
"marked": "^16.1.2",
|
|
52
53
|
"mitt": "^3.0.1",
|
|
53
54
|
"prismjs": "^1.30.0",
|
|
55
|
+
"@types/prismjs": "^1.26.3",
|
|
54
56
|
"tinycolor2": "^1.6.0",
|
|
57
|
+
"@types/tinycolor2": "^1.4.6",
|
|
55
58
|
"vue": "^3.5.17"
|
|
56
59
|
},
|
|
57
60
|
"devDependencies": {
|
|
58
|
-
"@types/tinycolor2": "^1.4.6",
|
|
59
61
|
"glob": "^10.4.5",
|
|
60
62
|
"typescript": "^5.0.0"
|
|
61
63
|
},
|
|
@@ -7,7 +7,7 @@ import "./theme.css";
|
|
|
7
7
|
interface Props {
|
|
8
8
|
iconName?: IconKey;
|
|
9
9
|
buttonType?: "round" | "square" | "plain";
|
|
10
|
-
buttonStyle?: "primary" | "secondary" | "tertiary" | "quaternary";
|
|
10
|
+
buttonStyle?: "primary" | "secondary" | "tertiary" | "quaternary" | string;
|
|
11
11
|
state?: "normal" | "active" | "disabled";
|
|
12
12
|
buttonSize?: number;
|
|
13
13
|
tooltip?: string | TooltipConfig;
|
|
@@ -17,7 +17,7 @@ const containerRef = ref<HTMLElement>();
|
|
|
17
17
|
const animatedToasts = new Set<string>();
|
|
18
18
|
|
|
19
19
|
// Track auto-dismiss timeouts
|
|
20
|
-
const autoDismissTimeouts = new Map<string,
|
|
20
|
+
const autoDismissTimeouts = new Map<string, ReturnType<typeof setTimeout>>();
|
|
21
21
|
|
|
22
22
|
const handleDismiss = async (id: string) => {
|
|
23
23
|
// Clear any auto-dismiss timeout for this toast
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// useToast.ts
|
|
2
|
-
import { ref, computed, nextTick,
|
|
2
|
+
import { ref, computed, nextTick, inject, provide } from "vue";
|
|
3
|
+
import type { App } from "vue";
|
|
3
4
|
import type { ToastOptions, ToastInstance } from "./types";
|
|
4
5
|
|
|
5
6
|
const TOAST_INJECTION_KEY = Symbol("toast");
|
|
@@ -460,7 +460,7 @@ const searchAPI = async (query: string) => {
|
|
|
460
460
|
};
|
|
461
461
|
|
|
462
462
|
// Debounced search
|
|
463
|
-
let searchTimeout:
|
|
463
|
+
let searchTimeout: ReturnType<typeof setTimeout>;
|
|
464
464
|
watch(searchQuery, (newQuery) => {
|
|
465
465
|
clearTimeout(searchTimeout);
|
|
466
466
|
searchTimeout = setTimeout(() => {
|
|
@@ -257,7 +257,7 @@ const scrollview = ref<HTMLElement | null>(null);
|
|
|
257
257
|
const fetchInProgress = ref<boolean>(false);
|
|
258
258
|
const allowScroll = ref<boolean>(false);
|
|
259
259
|
const isScrolling = ref<boolean>(false);
|
|
260
|
-
let scrollTimeout:
|
|
260
|
+
let scrollTimeout: ReturnType<typeof setTimeout> | undefined;
|
|
261
261
|
const handleScroll = () => {
|
|
262
262
|
// Set isScrolling to true when scrolling starts
|
|
263
263
|
if (allowScroll.value) {
|