@vuetify/v0 1.0.0-alpha.4 → 1.0.0-beta.0
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 +26 -5
- package/dist/{adapter-C9cR4AcY.mjs → adapter-BCVxBtDp.mjs} +11 -11
- package/dist/{adapter-Cr7Bl4la.d.mts → adapter-BO75n0Cn.d.mts} +7 -7
- package/dist/{adapter-C6JmOyYo.d.mts → adapter-DZeI0ZbW.d.mts} +1 -1
- package/dist/{adapter-DgBBe_BW.d.mts → adapter-we-0GbFH.d.mts} +2 -2
- package/dist/adapters-BHD1lc-K.mjs +4 -0
- package/dist/adapters-BYLWDmYl.mjs +5 -0
- package/dist/adapters-BxrTL8E3.mjs +4 -0
- package/dist/adapters-CBgBd7VE.mjs +2 -0
- package/dist/browser/index.js +2860 -908
- package/dist/components/index.d.mts +2 -3
- package/dist/components/index.mjs +2 -2
- package/dist/{components-BWxMSWr7.mjs → components-_uxZ_Zo3.mjs} +1054 -502
- package/dist/composables/index.d.mts +19 -18
- package/dist/composables/index.mjs +26 -26
- package/dist/{consola-Crr4qbeI.d.mts → consola-CUNHyu8J.d.mts} +1 -1
- package/dist/{consola-DYvbPNbF.mjs → consola-cad-VEV2.mjs} +5 -1
- package/dist/constants/index.d.mts +1 -1
- package/dist/constants/index.mjs +1 -1
- package/dist/{createDataTable-DDr2yY-A.mjs → createDataTable-DlFQyBTN.mjs} +192 -101
- package/dist/{createGroup-BSGtfBUE.mjs → createGroup-DsKJMuRd.mjs} +2 -2
- package/dist/{createRegistry-Db_juawd.mjs → createRegistry-tJ1PPNIr.mjs} +2 -2
- package/dist/{createSelection-BeKZMxha.mjs → createSelection-DEqhvdoj.mjs} +2 -2
- package/dist/{createSingle-Dms2efxr.mjs → createSingle-ClzWqRCe.mjs} +2 -2
- package/dist/{createTokens-B1lwHZvO.mjs → createTokens-mNxs8DQ3.mjs} +3 -3
- package/dist/{createTrinity-BTCs1pYx.mjs → createTrinity-z-3q9QWR.mjs} +5 -2
- package/dist/data-table/adapters/client/index.d.mts +1 -1
- package/dist/data-table/adapters/client/index.mjs +1 -1
- package/dist/data-table/adapters/index.d.mts +4 -4
- package/dist/data-table/adapters/index.mjs +5 -5
- package/dist/data-table/adapters/server/index.d.mts +1 -1
- package/dist/data-table/adapters/server/index.mjs +1 -1
- package/dist/data-table/adapters/virtual/index.d.mts +1 -1
- package/dist/data-table/adapters/virtual/index.mjs +1 -1
- package/dist/data-table/index.d.mts +6 -6
- package/dist/data-table/index.mjs +5 -5
- package/dist/date/index.d.mts +1 -1
- package/dist/date/index.mjs +2 -2
- package/dist/features/adapters/flagsmith/index.d.mts +1 -1
- package/dist/features/adapters/launchdarkly/index.d.mts +1 -1
- package/dist/features/adapters/posthog/index.d.mts +1 -1
- package/dist/features/adapters/posthog/index.mjs +1 -1
- package/dist/features/index.d.mts +2 -2
- package/dist/features/index.mjs +1 -1
- package/dist/{flagsmith-ygKMImos.d.mts → flagsmith-Cn_KVy6v.d.mts} +1 -1
- package/dist/{globals-BAe6tA_x.mjs → globals-DB-krEA-.mjs} +1 -1
- package/dist/{index-B3-FstpY.d.mts → index-ATZqco03.d.mts} +95 -2
- package/dist/{index-jQPkwo3G.d.mts → index-B3PDLk_Y.d.mts} +879 -454
- package/dist/{index-Cw04PFVO.d.mts → index-BIyQ3OxC.d.mts} +2 -168
- package/dist/{index-BfpLkDR_.d.mts → index-BN06veYe.d.mts} +947 -225
- package/dist/{index-CLR1QMM3.d.mts → index-DHmuwBdv.d.mts} +60 -1
- package/dist/index-DWAgQOBa.d.mts +170 -0
- package/dist/{index-BA7YU2xY.d.mts → index-ZD3hw2Zo.d.mts} +123 -62
- package/dist/index.d.mts +23 -22
- package/dist/index.mjs +29 -29
- package/dist/json/attributes.json +128 -0
- package/dist/json/importMap.json +24 -0
- package/dist/json/tags.json +57 -0
- package/dist/json/web-types.json +375 -2
- package/dist/{launchdarkly-BJR4vbbV.d.mts → launchdarkly-C3Knz7-v.d.mts} +1 -1
- package/dist/locale/adapters/index.d.mts +2 -2
- package/dist/locale/adapters/index.mjs +2 -2
- package/dist/locale/adapters/v0/index.d.mts +1 -1
- package/dist/locale/adapters/v0/index.mjs +1 -1
- package/dist/locale/adapters/vue-i18n/index.d.mts +1 -1
- package/dist/locale/index.d.mts +3 -3
- package/dist/locale/index.mjs +2 -2
- package/dist/logger/adapters/consola/index.d.mts +1 -1
- package/dist/logger/adapters/consola/index.mjs +1 -1
- package/dist/logger/adapters/index.d.mts +4 -4
- package/dist/logger/adapters/index.mjs +4 -4
- package/dist/logger/adapters/pino/index.d.mts +1 -1
- package/dist/logger/adapters/pino/index.mjs +1 -1
- package/dist/logger/adapters/v0/index.d.mts +1 -1
- package/dist/logger/adapters/v0/index.mjs +1 -1
- package/dist/logger/index.d.mts +5 -5
- package/dist/logger/index.mjs +4 -4
- package/dist/notifications/index.d.mts +1 -1
- package/dist/notifications/index.mjs +2 -2
- package/dist/palettes/ant/generate/index.mjs +6 -1
- package/dist/palettes/ant/index.d.mts +1 -1
- package/dist/palettes/index.d.mts +3 -3
- package/dist/palettes/leonardo/generate/index.mjs +6 -2
- package/dist/palettes/material/generate/index.mjs +11 -2
- package/dist/palettes/material/index.d.mts +1 -1
- package/dist/palettes/md1/index.d.mts +1 -1
- package/dist/palettes/md2/index.d.mts +1 -1
- package/dist/palettes/radix/index.d.mts +1 -1
- package/dist/palettes/tailwind/index.d.mts +1 -1
- package/dist/permissions/adapters/index.d.mts +1 -1
- package/dist/permissions/adapters/v0/index.d.mts +1 -1
- package/dist/permissions/index.d.mts +1 -1
- package/dist/permissions/index.mjs +1 -1
- package/dist/{pino-NmR7X0s4.d.mts → pino-BaYY_KIN.d.mts} +1 -1
- package/dist/{pino-CIcYlW3u.mjs → pino-BscMO3RR.mjs} +5 -2
- package/dist/{posthog-B3go2aCh.mjs → posthog-B5s_KGhy.mjs} +1 -1
- package/dist/{posthog-CQntUXFO.d.mts → posthog-CR8R2ywM.d.mts} +1 -1
- package/dist/rules/index.d.mts +2 -2
- package/dist/rules/index.mjs +1 -1
- package/dist/{server-DQK305lc.d.mts → server-7vjHxjNc.d.mts} +1 -1
- package/dist/{server-ZFXbgQoY.mjs → server-CZ83nTn_.mjs} +1 -1
- package/dist/storage/adapters/index.d.mts +2 -2
- package/dist/storage/adapters/memory/index.d.mts +1 -1
- package/dist/storage/index.d.mts +3 -3
- package/dist/storage/index.mjs +1 -1
- package/dist/theme/adapters/index.d.mts +1 -1
- package/dist/theme/adapters/index.mjs +3 -3
- package/dist/theme/adapters/unhead/index.d.mts +1 -1
- package/dist/theme/adapters/unhead/index.mjs +1 -1
- package/dist/theme/adapters/v0/index.d.mts +1 -1
- package/dist/theme/adapters/v0/index.mjs +1 -1
- package/dist/theme/index.d.mts +1 -1
- package/dist/theme/index.mjs +3 -3
- package/dist/types/index.d.mts +2 -2
- package/dist/{unhead-dPyVkgiJ.mjs → unhead-CG672gKh.mjs} +1 -1
- package/dist/{useClickOutside-B8naChaQ.mjs → useClickOutside-DoOgNtrj.mjs} +1583 -436
- package/dist/{useFeatures-x2iKp0C8.mjs → useFeatures-B-A-eOo-.mjs} +4 -4
- package/dist/{useLocale-BUms59Bw.mjs → useLocale-CbpoxbVU.mjs} +5 -5
- package/dist/{useLogger-DPSSa-YR.mjs → useLogger-CTgAedNH.mjs} +51 -7
- package/dist/{useNotifications-BPTmZWQy.mjs → useNotifications-BkKGUl_1.mjs} +6 -6
- package/dist/{usePermissions-CTi-3pBk.mjs → usePermissions-BYOrKcnk.mjs} +2 -2
- package/dist/{useRules-DNhljkyO.mjs → useRules-mD_DY9dy.mjs} +4 -3
- package/dist/{useTheme-3vW3kFNg.mjs → useTheme-B1lUya5B.mjs} +5 -5
- package/dist/utilities/index.d.mts +2 -2
- package/dist/utilities/index.mjs +116 -2
- package/dist/{v0-DadOcxFI.mjs → v0-Bx5Mi7qE.mjs} +1 -1
- package/dist/{v0-YJQoTLsp.mjs → v0-CG9o3on7.mjs} +1 -1
- package/dist/{v0-CotC1PiS.mjs → v0-CHK79mZX.mjs} +1 -1
- package/dist/{v0-DAlKpCR8.mjs → v0-COaQncfZ.mjs} +1 -1
- package/dist/{v0-CRGArJim.d.mts → v0-DWZ_N2GG.d.mts} +1 -1
- package/dist/{v0-DYsCJPIu.d.mts → v0-QIjffi4E.d.mts} +1 -1
- package/dist/{v0-DDELiSI6.d.mts → v0-WzS4GAIp.d.mts} +1 -1
- package/dist/{virtual-BqCRw0ly.d.mts → virtual-CrgGA-o6.d.mts} +1 -1
- package/dist/{virtual-Dnno49F8.mjs → virtual-UumJ2BQ9.mjs} +1 -1
- package/package.json +12 -3
- package/dist/adapters-B25KaYU4.mjs +0 -2
- package/dist/adapters-BcddLSNs.mjs +0 -4
- package/dist/adapters-Dv74Jk6A.mjs +0 -5
- package/dist/adapters-t6QC-zE8.mjs +0 -3
- /package/dist/{adapter-Dzyrlbz7.d.mts → adapter-B6IrPwib.d.mts} +0 -0
- /package/dist/{adapter-o8r-2vUn.d.mts → adapter-BEJXp-ie.d.mts} +0 -0
- /package/dist/{index-DWfPppPU.d.mts → index-BOn0AAue.d.mts} +0 -0
- /package/dist/{index-DewYtDsc.d.mts → index-C6NnIuDv.d.mts} +0 -0
- /package/dist/{index-DJQwYeyx.d.mts → index-PvkxPev3.d.mts} +0 -0
- /package/dist/{memory-B0w39kno.d.mts → memory-D-JbdKXg.d.mts} +0 -0
package/dist/date/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as IN_BROWSER } from "../globals-
|
|
1
|
+
import { t as IN_BROWSER } from "../globals-DB-krEA-.mjs";
|
|
2
2
|
import { isFunction, isNull, isNullOrUndefined, isNumber, isString } from "../utilities/index.mjs";
|
|
3
3
|
import { Temporal } from "@js-temporal/polyfill";
|
|
4
4
|
//#region src/composables/useDate/adapters/adapter.ts
|
|
@@ -343,7 +343,7 @@ var V0DateAdapter = class extends DateAdapter {
|
|
|
343
343
|
keyboardDateTime: "mm/dd/yyyy hh:mm",
|
|
344
344
|
keyboardDateTime12h: "mm/dd/yyyy hh:mm am/pm",
|
|
345
345
|
keyboardDateTime24h: "mm/dd/yyyy hh:mm"
|
|
346
|
-
}[format] ?? format.replace(/YYYY/g, "yyyy").replace(/MM/g, "mm").replace(/DD/g, "dd").replace(/HH/g, "hh")
|
|
346
|
+
}[format] ?? format.replace(/YYYY/g, "yyyy").replace(/MM/g, "mm").replace(/DD/g, "dd").replace(/HH/g, "hh");
|
|
347
347
|
}
|
|
348
348
|
formatNumber(numberToFormat) {
|
|
349
349
|
return this.getNumberFormatter().format(Number(numberToFormat));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as FlagsmithFeaturesAdapter } from "../../../flagsmith-
|
|
1
|
+
import { t as FlagsmithFeaturesAdapter } from "../../../flagsmith-Cn_KVy6v.mjs";
|
|
2
2
|
export { FlagsmithFeaturesAdapter };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as LaunchDarklyFeaturesAdapter } from "../../../launchdarkly-
|
|
1
|
+
import { t as LaunchDarklyFeaturesAdapter } from "../../../launchdarkly-C3Knz7-v.mjs";
|
|
2
2
|
export { LaunchDarklyFeaturesAdapter };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as PostHogFeaturesAdapter } from "../../../posthog-
|
|
1
|
+
import { t as PostHogFeaturesAdapter } from "../../../posthog-CR8R2ywM.mjs";
|
|
2
2
|
export { PostHogFeaturesAdapter };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as PostHogFeaturesAdapter } from "../../../posthog-
|
|
1
|
+
import { t as PostHogFeaturesAdapter } from "../../../posthog-B5s_KGhy.mjs";
|
|
2
2
|
export { PostHogFeaturesAdapter };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $n as
|
|
2
|
-
import { n as FeaturesAdapterFlags, r as FeaturesAdapterValue, t as FeaturesAdapter } from "../adapter-
|
|
1
|
+
import { $n as FeatureContextOptions, Qn as FeatureContext, ar as createFeaturesContext, er as FeatureOptions, ir as createFeatures, nr as FeatureTicket, or as createFeaturesPlugin, rr as FeatureTicketInput, sr as useFeatures, tr as FeaturePluginOptions } from "../index-BN06veYe.mjs";
|
|
2
|
+
import { n as FeaturesAdapterFlags, r as FeaturesAdapterValue, t as FeaturesAdapter } from "../adapter-DZeI0ZbW.mjs";
|
|
3
3
|
export { FeatureContext, FeatureContextOptions, FeatureOptions, FeaturePluginOptions, FeatureTicket, FeatureTicketInput, FeaturesAdapter, FeaturesAdapterFlags, FeaturesAdapterValue, createFeatures, createFeaturesContext, createFeaturesPlugin, useFeatures };
|
package/dist/features/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { t as FeaturesAdapter } from "../adapter-BSKx9WQ7.mjs";
|
|
2
|
-
import { i as useFeatures, n as createFeaturesContext, r as createFeaturesPlugin, t as createFeatures } from "../useFeatures-
|
|
2
|
+
import { i as useFeatures, n as createFeaturesContext, r as createFeaturesPlugin, t as createFeatures } from "../useFeatures-B-A-eOo-.mjs";
|
|
3
3
|
export { FeaturesAdapter, createFeatures, createFeaturesContext, createFeaturesPlugin, useFeatures };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as FeaturesAdapterFlags, t as FeaturesAdapter } from "./adapter-
|
|
1
|
+
import { n as FeaturesAdapterFlags, t as FeaturesAdapter } from "./adapter-DZeI0ZbW.mjs";
|
|
2
2
|
import { IFlagsmith, IInitConfig } from "@flagsmith/flagsmith";
|
|
3
3
|
|
|
4
4
|
//#region src/composables/useFeatures/adapters/flagsmith.d.ts
|
|
@@ -5,7 +5,7 @@ const SUPPORTS_MATCH_MEDIA = IN_BROWSER && "matchMedia" in window && typeof wind
|
|
|
5
5
|
const SUPPORTS_OBSERVER = IN_BROWSER && "ResizeObserver" in window;
|
|
6
6
|
const SUPPORTS_INTERSECTION_OBSERVER = IN_BROWSER && "IntersectionObserver" in window;
|
|
7
7
|
const SUPPORTS_MUTATION_OBSERVER = IN_BROWSER && "MutationObserver" in window;
|
|
8
|
-
const version = "1.0.0-
|
|
8
|
+
const version = "1.0.0-beta.0";
|
|
9
9
|
/* v8 ignore next -- build-time constant, __DEV__ short-circuits in tests */
|
|
10
10
|
const __LOGGER_ENABLED__ = typeof (process.env.NODE_ENV !== "production") !== "undefined" && process.env.NODE_ENV !== "production" || typeof process.env.VITE_LOGGER_ENABLED !== "undefined" && process.env.VITE_LOGGER_ENABLED === "true";
|
|
11
11
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as ID, r as DeepPartial } from "./index-
|
|
1
|
+
import { a as ID, c as V0ErrorCode, l as V0ErrorDetails, r as DeepPartial } from "./index-DHmuwBdv.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/utilities/color.d.ts
|
|
4
4
|
interface RGB {
|
|
@@ -19,6 +19,99 @@ declare function rgbToHex({
|
|
|
19
19
|
declare function apca(text: RGB, background: RGB): number;
|
|
20
20
|
declare function foreground(hex: string): string;
|
|
21
21
|
//#endregion
|
|
22
|
+
//#region src/utilities/errors.d.ts
|
|
23
|
+
/**
|
|
24
|
+
* Structured error thrown by v0 internals.
|
|
25
|
+
*
|
|
26
|
+
* @remarks
|
|
27
|
+
* Carries a stable {@link V0ErrorCode} discriminant on `code` so
|
|
28
|
+
* consumers, devtools panels, and error trackers can identify the
|
|
29
|
+
* error without parsing the message string. Domain context lives in
|
|
30
|
+
* top-level fields per code (`key` for `V0_CONTEXT_MISSING`, `plugin`
|
|
31
|
+
* for `V0_PLUGIN_MISSING`), populated from a {@link V0ErrorDetails}
|
|
32
|
+
* argument and merged onto the instance at construction time.
|
|
33
|
+
*
|
|
34
|
+
* `cause` is forwarded to `Error`'s standard `ErrorOptions.cause` slot
|
|
35
|
+
* and is intended to carry a wrapped upstream error, not metadata.
|
|
36
|
+
*
|
|
37
|
+
* Prefer {@link isV0Error} over manual `instanceof` checks at the
|
|
38
|
+
* narrowing site — the guard intersects the instance type with the
|
|
39
|
+
* matching {@link V0ErrorDetails} arm, so per-code fields are typed.
|
|
40
|
+
*
|
|
41
|
+
* @example Author site
|
|
42
|
+
* ```ts
|
|
43
|
+
* throw new V0Error('Context not found.', { code: 'V0_CONTEXT_MISSING', key })
|
|
44
|
+
* ```
|
|
45
|
+
*
|
|
46
|
+
* @example Author site with upstream wrap
|
|
47
|
+
* ```ts
|
|
48
|
+
* try {
|
|
49
|
+
* JSON.parse(raw)
|
|
50
|
+
* } catch (err) {
|
|
51
|
+
* throw new V0Error('Failed to hydrate registry.', {
|
|
52
|
+
* code: 'V0_CONTEXT_MISSING',
|
|
53
|
+
* key: 'v0:registry',
|
|
54
|
+
* cause: err,
|
|
55
|
+
* })
|
|
56
|
+
* }
|
|
57
|
+
* ```
|
|
58
|
+
*
|
|
59
|
+
* @example Consumer site
|
|
60
|
+
* ```ts
|
|
61
|
+
* try {
|
|
62
|
+
* useContext(myKey)
|
|
63
|
+
* } catch (err) {
|
|
64
|
+
* if (isV0Error(err, 'V0_CONTEXT_MISSING')) {
|
|
65
|
+
* console.log(err.key)
|
|
66
|
+
* }
|
|
67
|
+
* }
|
|
68
|
+
* ```
|
|
69
|
+
*/
|
|
70
|
+
declare class V0Error extends Error {
|
|
71
|
+
name: string;
|
|
72
|
+
readonly code: V0ErrorCode;
|
|
73
|
+
readonly key?: string | symbol;
|
|
74
|
+
readonly plugin?: string;
|
|
75
|
+
readonly palette?: string;
|
|
76
|
+
readonly seed?: string;
|
|
77
|
+
readonly variant?: string;
|
|
78
|
+
readonly adapter?: string;
|
|
79
|
+
constructor(message: string, details: V0ErrorDetails & {
|
|
80
|
+
cause?: unknown;
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Type guard for v0-thrown errors.
|
|
85
|
+
*
|
|
86
|
+
* @param value The value to test.
|
|
87
|
+
* @param code Optional discriminant — narrow the result to a specific
|
|
88
|
+
* {@link V0ErrorCode} so per-code fields become required.
|
|
89
|
+
*
|
|
90
|
+
* @remarks
|
|
91
|
+
* Without the optional `code` argument, the guard verifies the value
|
|
92
|
+
* is a {@link V0Error} instance. With the `code` argument, the guard
|
|
93
|
+
* also narrows the instance type to the intersection with the matching
|
|
94
|
+
* {@link V0ErrorDetails} arm — fields like `key` or `plugin` change
|
|
95
|
+
* from optional to required on the narrowed type.
|
|
96
|
+
*
|
|
97
|
+
* @example Narrow to any v0 error
|
|
98
|
+
* ```ts
|
|
99
|
+
* if (isV0Error(err)) {
|
|
100
|
+
* console.log(err.code)
|
|
101
|
+
* }
|
|
102
|
+
* ```
|
|
103
|
+
*
|
|
104
|
+
* @example Narrow to a specific code
|
|
105
|
+
* ```ts
|
|
106
|
+
* if (isV0Error(err, 'V0_CONTEXT_MISSING')) {
|
|
107
|
+
* console.log(err.key) // typed as string | symbol, not string | symbol | undefined
|
|
108
|
+
* }
|
|
109
|
+
* ```
|
|
110
|
+
*/
|
|
111
|
+
declare function isV0Error<C extends V0ErrorCode>(value: unknown, code?: C): value is V0Error & Extract<V0ErrorDetails, {
|
|
112
|
+
code: C;
|
|
113
|
+
}>;
|
|
114
|
+
//#endregion
|
|
22
115
|
//#region src/utilities/helpers.d.ts
|
|
23
116
|
/**
|
|
24
117
|
* Checks if a value is a function
|
|
@@ -348,4 +441,4 @@ declare function resolveIndexes(items: Iterable<{
|
|
|
348
441
|
declare function instanceExists(): boolean;
|
|
349
442
|
declare function instanceName(): string | undefined;
|
|
350
443
|
//#endregion
|
|
351
|
-
export {
|
|
444
|
+
export { V0Error as C, RGB as D, foreground as E, hexToRgb as O, useId as S, apca as T, isUndefined as _, isBoolean as a, resolveIds as b, isNaN as c, isNumber as d, isObject as f, isThenable as g, isSymbol as h, isArray as i, rgbToHex as k, isNull as l, isString as m, instanceName as n, isElement as o, isPrimitive as p, clamp as r, isFunction as s, instanceExists as t, isNullOrUndefined as u, mergeDeep as v, isV0Error as w, resolveIndexes as x, range as y };
|