@vuetify/v0 1.2.1 → 1.2.2
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 +29 -0
- package/dist/{adapter-TiGrumDi.mjs → adapter-B6R54NMr.mjs} +1 -1
- package/dist/{adapter-D5nT3bLw.d.mts → adapter-BC1VWu0H.d.mts} +0 -1
- package/dist/{adapter-PDTe5nFT.d.mts → adapter-BP7jNtvH.d.mts} +3 -4
- package/dist/{adapter-FckJSz_o.d.mts → adapter-Bi799Zn7.d.mts} +2 -3
- package/dist/{adapter-ClB-53_F.d.mts → adapter-CbkRdMju.d.mts} +0 -1
- package/dist/{adapter-BiQV5j8B.mjs → adapter-DMzQI6ma.mjs} +8 -6
- package/dist/{adapter-BXunW_mw.d.mts → adapter-w8SEWO2v.d.mts} +1 -2
- package/dist/{adapter-BuSfpxur.mjs → adapter-z5dFxm0f.mjs} +1 -1
- package/dist/browser/index.d.ts +1134 -1016
- package/dist/browser/index.js +472 -461
- package/dist/components/index.d.mts +2 -2
- package/dist/components/index.mjs +1 -1
- package/dist/{components-MCFhfNlt.mjs → components-CSFzUH3d.mjs} +365 -360
- package/dist/composables/index.d.mts +22 -22
- package/dist/composables/index.mjs +40 -40
- package/dist/{composables-8xtFVviy.mjs → composables-CLNFa1uu.mjs} +55 -47
- package/dist/{consola-cad-VEV2.mjs → consola-B9K6H_EB.mjs} +1 -1
- package/dist/{consola-CdMU53rU.d.mts → consola-BGm_oQkS.d.mts} +1 -2
- package/dist/constants/index.d.mts +1 -1
- package/dist/constants/index.mjs +2 -2
- package/dist/{createDataTable-OCGnpy-N.mjs → createDataTable-CfJCltDt.mjs} +14 -12
- package/dist/{createGroup-DtVYu-VY.mjs → createGroup-CKE5o-VH.mjs} +5 -4
- package/dist/{createPlugin-Oo6t-vBw.mjs → createPlugin-YYkwbiUd.mjs} +3 -2
- package/dist/{createRegistry-DSQiALGi.mjs → createRegistry-D31hPifx.mjs} +8 -5
- package/dist/{createSelection-TB5oK1FG.mjs → createSelection-DdTgggyM.mjs} +4 -3
- package/dist/{createSingle-CV1qigP2.mjs → createSingle-hQWwVTVX.mjs} +4 -3
- package/dist/{createTokens-B0CqJEL6.mjs → createTokens-DuZrXRfN.mjs} +6 -5
- 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 +6 -5
- package/dist/data-table/adapters/index.mjs +4 -4
- 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 -2
- package/dist/date/index.mjs +3 -3
- package/dist/features/adapters/flagsmith/index.d.mts +1 -1
- package/dist/features/adapters/flagsmith/index.mjs +1 -1
- package/dist/features/adapters/launchdarkly/index.d.mts +1 -1
- package/dist/features/adapters/launchdarkly/index.mjs +2 -1
- package/dist/features/adapters/posthog/index.d.mts +1 -1
- package/dist/features/adapters/posthog/index.mjs +3 -2
- package/dist/features/index.d.mts +3 -3
- package/dist/features/index.mjs +2 -2
- package/dist/{flagsmith-DcIDrI7_.d.mts → flagsmith-BA8q5LAx.d.mts} +1 -2
- package/dist/{globals-wvVdMRFF.mjs → globals-DVcr1oW0.mjs} +1 -1
- package/dist/{htmlElements-CHXZfsZu.mjs → htmlElements-Bt1XN_d8.mjs} +1 -1
- package/dist/{index-H_hl6-4b.d.mts → index-ClUa0Bl7.d.mts} +0 -1
- package/dist/{index-Dgkt7Ve9.d.mts → index-Ct0Pmzpx.d.mts} +144 -58
- package/dist/{index-3bThcqCN.d.mts → index-DDwX_0Um.d.mts} +5 -5
- package/dist/{index-CORslci7.d.mts → index-DMQv04YO.d.mts} +2 -8
- package/dist/{index-3vvA76pZ.d.mts → index-Dlr9_rf1.d.mts} +2 -3
- package/dist/index-DmDf_FmM.d.mts +4 -0
- package/dist/{index-BTdCsSz0.d.mts → index-DqAML7MT.d.mts} +1110 -1073
- package/dist/{index-DtiaWx5U.d.mts → index-XNZrgWCq.d.mts} +1 -2
- package/dist/{index-4Z38WhA9.d.mts → index-Y6VfllT2.d.mts} +19 -20
- package/dist/index-h87SNntw.d.mts +2 -0
- package/dist/index.d.mts +25 -25
- package/dist/index.mjs +43 -43
- package/dist/json/web-types.json +1 -1
- package/dist/{launchdarkly-CUzunYol.d.mts → launchdarkly-CWhPi3lZ.d.mts} +1 -2
- package/dist/locale/adapters/index.d.mts +4 -3
- 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 -2
- package/dist/locale/adapters/vue-i18n/index.mjs +1 -1
- package/dist/locale/index.d.mts +4 -4
- package/dist/locale/index.mjs +3 -3
- 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 +6 -6
- package/dist/logger/index.mjs +5 -5
- package/dist/notifications/index.d.mts +1 -2
- package/dist/notifications/index.mjs +4 -2
- package/dist/palettes/ant/generate/index.d.mts +0 -1
- package/dist/palettes/ant/generate/index.mjs +1 -1
- package/dist/palettes/ant/index.d.mts +1 -2
- package/dist/palettes/index.d.mts +3 -4
- package/dist/palettes/leonardo/generate/index.d.mts +0 -1
- package/dist/palettes/leonardo/generate/index.mjs +1 -1
- package/dist/palettes/material/generate/index.d.mts +0 -1
- package/dist/palettes/material/generate/index.mjs +1 -1
- package/dist/palettes/material/index.d.mts +1 -2
- package/dist/palettes/md1/index.d.mts +1 -2
- package/dist/palettes/md2/index.d.mts +1 -2
- package/dist/palettes/radix/index.d.mts +1 -2
- package/dist/palettes/tailwind/index.d.mts +1 -2
- package/dist/permissions/adapters/index.d.mts +1 -1
- package/dist/permissions/adapters/index.mjs +1 -1
- package/dist/permissions/adapters/v0/index.d.mts +1 -1
- package/dist/permissions/adapters/v0/index.mjs +1 -1
- package/dist/permissions/index.d.mts +1 -1
- package/dist/permissions/index.mjs +2 -2
- package/dist/{pino-BscMO3RR.mjs → pino-DOI2Y-WP.mjs} +1 -1
- package/dist/{pino-DjeWBFnj.d.mts → pino-cSCLlizQ.d.mts} +1 -2
- package/dist/popover/adapters/floating-ui/index.d.mts +1 -2
- package/dist/popover/adapters/floating-ui/index.mjs +4 -3
- package/dist/popover/index.d.mts +3 -3
- package/dist/popover/index.mjs +2 -2
- package/dist/{posthog-CJAYssdr.d.mts → posthog-Bzaj2Jbd.d.mts} +1 -2
- package/dist/rules/index.d.mts +2 -2
- package/dist/rules/index.mjs +1 -1
- package/dist/{server-m7iD1vOr.mjs → server-CSXNc-my.mjs} +1 -1
- package/dist/{server-5vbJ7GGs.d.mts → server-bE0UxPFS.d.mts} +1 -2
- package/dist/storage/adapters/index.d.mts +2 -2
- package/dist/storage/adapters/index.mjs +1 -1
- package/dist/storage/adapters/memory/index.d.mts +1 -1
- package/dist/storage/adapters/memory/index.mjs +1 -1
- package/dist/storage/index.d.mts +4 -4
- package/dist/storage/index.mjs +2 -2
- 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 +4 -4
- package/dist/{toArray-MY9Kb1Qy.mjs → toArray-DCZRopC6.mjs} +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/{unhead-SyU953Pt.mjs → unhead-hPXFvbDX.mjs} +2 -2
- package/dist/{useEventListener-hF6R2p6X.mjs → useEventListener-DI-1-WPJ.mjs} +2 -2
- package/dist/{useFeatures-CTpkM6hV.mjs → useFeatures-CuTiM9YA.mjs} +4 -4
- package/dist/{useLocale-D-iWu08b.mjs → useLocale-OjumdVbi.mjs} +4 -4
- package/dist/{useLogger-CDsgHbzO.mjs → useLogger-CuGy-g9B.mjs} +3 -3
- package/dist/{useNotifications-DhNjvRt1.mjs → useNotifications-BuZuDxSy.mjs} +6 -5
- package/dist/{usePermissions-CKe8xcvz.mjs → usePermissions-CabbzZd_.mjs} +4 -4
- package/dist/{usePopover-DyAdne_S.mjs → usePopover-7WMiJ9Zt.mjs} +8 -6
- package/dist/{useRovingFocus-D0OOozbe.mjs → useRovingFocus-DuYBgzOA.mjs} +91 -78
- package/dist/{useRules-DA8bNhNq.mjs → useRules-Bg7yBYP5.mjs} +5 -5
- package/dist/{useStorage-D9c6xx4N.mjs → useStorage-BtuW9p_Q.mjs} +7 -6
- package/dist/{useTheme-BrXA5VBp.mjs → useTheme-CfrtMZFH.mjs} +6 -6
- package/dist/{useTimer-DLtkRCHw.mjs → useTimer-aOp5haHg.mjs} +1 -1
- package/dist/utilities/index.d.mts +1 -1
- package/dist/utilities/index.mjs +32 -32
- package/dist/{v0-cC-WxCLd.mjs → v0-B9gSaems.mjs} +2 -2
- package/dist/{v0-DpFVF6pD.mjs → v0-BusOrX6s.mjs} +2 -2
- package/dist/{v0-GI9U-rPA.d.mts → v0-CMqoGujd.d.mts} +1 -2
- package/dist/{v0-yZ2ZUtVF.mjs → v0-DoHWpAZn.mjs} +1 -1
- package/dist/{v0-C09lR5fc.d.mts → v0-IFGH9KS0.d.mts} +1 -2
- package/dist/{v0-CaTmC7C4.mjs → v0-Lo13oRUf.mjs} +2 -2
- package/dist/{v0-DfFK-p4X.d.mts → v0-QlSKvaAH.d.mts} +1 -2
- package/dist/{virtual-Bbu26O_h.mjs → virtual-Bsnip0cm.mjs} +1 -1
- package/dist/{virtual-JIdFLpTQ.d.mts → virtual-DrLIdUr1.d.mts} +1 -2
- package/package.json +10 -10
- package/dist/index-CX869wwk.d.mts +0 -1
- package/dist/index-CsuikFeJ.d.mts +0 -1
- /package/dist/{adapter-Chznb9Ju.mjs → adapter-B5mEUP5W.mjs} +0 -0
- /package/dist/{adapter-CrRJuxRk.mjs → adapter-B5teFrQH.mjs} +0 -0
- /package/dist/{adapter-D8zizQVP.mjs → adapter-BTNELv6-.mjs} +0 -0
- /package/dist/{adapter-ryk5H6YZ.d.mts → adapter-CHvvxw4c.d.mts} +0 -0
- /package/dist/{adapter-8UADsA3-.mjs → adapter-CxCiZYZO.mjs} +0 -0
- /package/dist/{createTrinity-z-3q9QWR.mjs → createTrinity-DJROWgXU.mjs} +0 -0
- /package/dist/{index-u_qSc2xS.d.mts → index-Bmr3SnAx.d.mts} +0 -0
- /package/dist/{index-Djhiy3nS.d.mts → index-Cyv2jtYx.d.mts} +0 -0
- /package/dist/{memory-CR6zvuaP.mjs → memory-C-Hi69Zc.mjs} +0 -0
- /package/dist/{memory-B7z1RR9r.d.mts → memory-DyA22X2q.d.mts} +0 -0
- /package/dist/{v0-Ch0yBKEj.mjs → v0-C4TLCYZJ.mjs} +0 -0
package/README.md
CHANGED
|
@@ -69,6 +69,35 @@ yarn add @vuetify/v0
|
|
|
69
69
|
bun add @vuetify/v0
|
|
70
70
|
```
|
|
71
71
|
|
|
72
|
+
## CLI
|
|
73
|
+
|
|
74
|
+
The Vuetify CLI scaffolds projects and seeds working examples from the docs registry.
|
|
75
|
+
|
|
76
|
+
### Create a Project
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
pnpm create vuetify0
|
|
80
|
+
# or
|
|
81
|
+
pnpm dlx @vuetify/cli init
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
### Seed Examples
|
|
85
|
+
|
|
86
|
+
v0 is headless — importing a component gives you logic and accessibility, not a rendered UI. Use `vuetify add` to pull a styled example from the [docs registry](https://0.vuetifyjs.com/registry/index.json) into your project:
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
# Interactive picker
|
|
90
|
+
pnpm dlx @vuetify/cli add
|
|
91
|
+
|
|
92
|
+
# Seed a specific component
|
|
93
|
+
pnpm dlx @vuetify/cli add dialog
|
|
94
|
+
|
|
95
|
+
# Seed a composable plugin
|
|
96
|
+
pnpm dlx @vuetify/cli add use-theme
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
See the [CLI guide](https://0.vuetifyjs.com/guide/tooling/vuetify-cli) for registry options, `vuetify.json` tracking, and the full command list.
|
|
100
|
+
|
|
72
101
|
## Exports
|
|
73
102
|
|
|
74
103
|
The package provides tree-shakeable subpath exports:
|
|
@@ -27,7 +27,7 @@ var ThemeAdapter = class ThemeAdapter {
|
|
|
27
27
|
if (!themeColors) continue;
|
|
28
28
|
if (!ThemeAdapter.SAFE_IDENT.test(theme)) continue;
|
|
29
29
|
const vars = Object.entries(themeColors).filter(([key, val]) => ThemeAdapter.SAFE_IDENT.test(key) && !ThemeAdapter.UNSAFE_CSS.test(val)).map(([key, val]) => ` --${this.prefix}-${key}: ${this.rgb ? this.decompose(val) : val};`).join("\n");
|
|
30
|
-
css += `[data-theme="${theme}"] {\n${vars}\n
|
|
30
|
+
css += `[data-theme="${theme}"] {\n${vars}\n}\n`;
|
|
31
31
|
}
|
|
32
32
|
if (!/* @__PURE__ */ isUndefined(isDark)) css += `:root {\n color-scheme: ${isDark ? "dark" : "light"};\n}\n`;
|
|
33
33
|
return css;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { t as ContextTrinity } from "./index-
|
|
1
|
+
import { t as ContextTrinity } from "./index-ClUa0Bl7.mjs";
|
|
2
2
|
import { ComputedRef, MaybeRefOrGetter, Ref, ShallowRef, WritableComputedRef } from "vue";
|
|
3
|
-
|
|
4
3
|
//#region src/composables/createFilter/index.d.ts
|
|
5
4
|
type Primitive = string | number | boolean;
|
|
6
5
|
type FilterQuery = MaybeRefOrGetter<Primitive | Primitive[]>;
|
|
@@ -9,7 +8,7 @@ type FilterMode = 'some' | 'every' | 'union' | 'intersection';
|
|
|
9
8
|
type FilterFunction = (query: Primitive | Primitive[], item: FilterItem) => boolean;
|
|
10
9
|
interface FilterOptions {
|
|
11
10
|
customFilter?: FilterFunction;
|
|
12
|
-
keys?: string[]
|
|
11
|
+
keys?: MaybeRefOrGetter<readonly string[]>;
|
|
13
12
|
mode?: FilterMode;
|
|
14
13
|
}
|
|
15
14
|
interface FilterResult<Z extends FilterItem = FilterItem> {
|
|
@@ -19,7 +18,7 @@ interface FilterContext<Z extends FilterItem = FilterItem> {
|
|
|
19
18
|
/** The filter mode */
|
|
20
19
|
mode: FilterMode;
|
|
21
20
|
/** Keys to filter on for object items */
|
|
22
|
-
keys: string[] | undefined;
|
|
21
|
+
keys: MaybeRefOrGetter<readonly string[]> | undefined;
|
|
23
22
|
/** Custom filter function */
|
|
24
23
|
customFilter: FilterFunction | undefined;
|
|
25
24
|
/** Current query ref */
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { a as ID } from "./index-
|
|
2
|
-
import { c as TokenTicket, i as TokenContext } from "./index-
|
|
1
|
+
import { a as ID } from "./index-XNZrgWCq.mjs";
|
|
2
|
+
import { c as TokenTicket, i as TokenContext } from "./index-Dlr9_rf1.mjs";
|
|
3
3
|
import { Ref } from "vue";
|
|
4
|
-
|
|
5
4
|
//#region src/composables/useLocale/adapters/adapter.d.ts
|
|
6
5
|
interface LocaleAdapterContext {
|
|
7
6
|
tokens: TokenContext<TokenTicket>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { clamp, isArray, isNaN, isNullOrUndefined, isNumber, isObject, isString, range } from "./utilities/index.mjs";
|
|
2
|
-
import { i as useContext, t as createTrinity } from "./createTrinity-
|
|
3
|
-
import { t as toArray } from "./toArray-
|
|
2
|
+
import { i as useContext, t as createTrinity } from "./createTrinity-DJROWgXU.mjs";
|
|
3
|
+
import { t as toArray } from "./toArray-DCZRopC6.mjs";
|
|
4
4
|
import { computed, isRef, shallowRef, toRef, toValue } from "vue";
|
|
5
5
|
//#region src/composables/createFilter/index.ts
|
|
6
6
|
/**
|
|
@@ -64,7 +64,7 @@ function defaultFilter(query, item, keys, mode = "some") {
|
|
|
64
64
|
*/
|
|
65
65
|
function createFilter(options = {}) {
|
|
66
66
|
const { customFilter, keys, mode = "some" } = options;
|
|
67
|
-
const filterFunction = customFilter ?? ((q, i) => defaultFilter(q, i, keys, mode));
|
|
67
|
+
const filterFunction = customFilter ?? ((q, i) => defaultFilter(q, i, toValue(keys), mode));
|
|
68
68
|
const query = shallowRef("");
|
|
69
69
|
function apply(_query, items) {
|
|
70
70
|
return { items: computed(() => {
|
|
@@ -114,7 +114,8 @@ function createFilter(options = {}) {
|
|
|
114
114
|
*/
|
|
115
115
|
function createFilterContext(_options = {}) {
|
|
116
116
|
const { namespace = "v0:filter", ...options } = _options;
|
|
117
|
-
|
|
117
|
+
const context = createFilter(options);
|
|
118
|
+
return createTrinity(namespace, context);
|
|
118
119
|
}
|
|
119
120
|
/**
|
|
120
121
|
* Returns the current filter context from dependency injection.
|
|
@@ -357,7 +358,8 @@ function createPagination(_options = {}) {
|
|
|
357
358
|
*/
|
|
358
359
|
function createPaginationContext(_options = {}) {
|
|
359
360
|
const { namespace = "v0:pagination", ...options } = _options;
|
|
360
|
-
|
|
361
|
+
const context = createPagination(options);
|
|
362
|
+
return createTrinity(namespace, context);
|
|
361
363
|
}
|
|
362
364
|
/**
|
|
363
365
|
* Returns the current pagination instance from context.
|
|
@@ -426,7 +428,7 @@ var DataTableAdapter = class {
|
|
|
426
428
|
filter(context) {
|
|
427
429
|
const filter = createFilter({
|
|
428
430
|
...context.filterOptions,
|
|
429
|
-
keys:
|
|
431
|
+
keys: context.filterableKeys,
|
|
430
432
|
customFilter: context.filterOptions.customFilter ?? ((query, item) => {
|
|
431
433
|
const columnFilters = toValue(context.customColumnFilters);
|
|
432
434
|
const keys = toValue(context.filterableKeys);
|
|
@@ -51,7 +51,7 @@ function deriveMinimalDays(region) {
|
|
|
51
51
|
* @param locale An Intl locale string (e.g. 'de-DE', 'en', 'ar-EG', 'en-u-fw-mon').
|
|
52
52
|
* @returns firstDay in v0's 0=Sun...6=Sat convention, plus minimalDays.
|
|
53
53
|
*/
|
|
54
|
-
/*
|
|
54
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
55
55
|
function deriveWeekInfo(locale) {
|
|
56
56
|
const region = deriveRegion(locale);
|
|
57
57
|
return {
|