@vtable-guild/vtable-guild 2.1.4 → 2.2.1
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 +22 -5
- package/css/index.css +2 -2
- package/css/style.css +445 -773
- package/css/tailwind3-utilities.css +443 -771
- package/css/tailwind3.css +1 -1884
- package/css/tailwind4.css +541 -0
- package/css/tailwind4.d.ts +3 -0
- package/dist/core/src/components/Input.d.ts +3 -3
- package/dist/core/src/components/Scrollbar.d.ts.map +1 -1
- package/dist/core/src/components/Tooltip.d.ts +1 -1
- package/dist/core/src/components/VTableGuildConfigProvider.d.ts +19 -1
- package/dist/core/src/components/VTableGuildConfigProvider.d.ts.map +1 -1
- package/dist/core/src/composables/useTheme.d.ts.map +1 -1
- package/dist/core/src/index.d.ts +7 -2
- package/dist/core/src/index.d.ts.map +1 -1
- package/dist/core/src/plugin/index.d.ts.map +1 -1
- package/dist/core/src/utils/classPrefix.d.ts +7 -0
- package/dist/core/src/utils/classPrefix.d.ts.map +1 -0
- package/dist/core/src/utils/types.d.ts +14 -0
- package/dist/core/src/utils/types.d.ts.map +1 -1
- package/dist/css/index.css +2 -2
- package/dist/css/style.css +445 -773
- package/dist/css/tailwind3-utilities.css +443 -771
- package/dist/css/tailwind3.css +1 -1884
- package/dist/css/tailwind4.css +542 -0
- package/dist/css/tailwind4.d.ts +3 -0
- package/dist/index.cjs +1 -0
- package/dist/index.mjs +2752 -2628
- package/dist/table/src/components/ExpandIcon.d.ts.map +1 -1
- package/dist/table/src/components/FilterDropdown.d.ts.map +1 -1
- package/dist/table/src/components/FilterIcon.d.ts.map +1 -1
- package/dist/table/src/components/ResizeHandle.d.ts.map +1 -1
- package/dist/table/src/components/SortButton.d.ts.map +1 -1
- package/dist/table/src/components/Table.d.ts +1 -1
- package/dist/table/src/components/Table.d.ts.map +1 -1
- package/dist/table/src/components/TableHeaderCell.d.ts.map +1 -1
- package/dist/table/src/components/TableLoading.d.ts.map +1 -1
- package/dist/table/src/context.d.ts +7 -1
- package/dist/table/src/context.d.ts.map +1 -1
- package/dist/tailwind3-preset.cjs +1 -0
- package/dist/tailwind3-preset.d.ts +4 -0
- package/dist/tailwind3-preset.mjs +23 -0
- package/dist/vtable-guild/src/tailwind3-preset.d.ts +22 -0
- package/dist/vtable-guild/src/tailwind3-preset.d.ts.map +1 -0
- package/package.json +27 -15
- package/LICENSE +0 -21
package/README.md
CHANGED
|
@@ -10,21 +10,38 @@ pnpm add @vtable-guild/vtable-guild
|
|
|
10
10
|
|
|
11
11
|
## Quick Start
|
|
12
12
|
|
|
13
|
+
vtable-guild supports three CSS modes.
|
|
14
|
+
|
|
15
|
+
### prebuilt
|
|
16
|
+
|
|
17
|
+
Use the prebuilt CSS entry when the host app does not use Tailwind CSS:
|
|
18
|
+
|
|
13
19
|
```ts
|
|
14
20
|
import { createVTableGuild } from '@vtable-guild/vtable-guild'
|
|
15
|
-
import '@vtable-guild/vtable-guild/css'
|
|
21
|
+
import '@vtable-guild/vtable-guild/css/style'
|
|
16
22
|
|
|
17
23
|
const app = createApp(App)
|
|
18
24
|
app.use(createVTableGuild())
|
|
19
25
|
```
|
|
20
26
|
|
|
21
|
-
|
|
27
|
+
This works without installing Tailwind CSS or configuring `@tailwindcss/vite`. Internal utility
|
|
28
|
+
classes are emitted with the `vtg-` prefix. If you need to override an internal utility in `ui` or
|
|
29
|
+
`theme`, use the same prefix, for example `vtg-px-2`.
|
|
30
|
+
|
|
31
|
+
### tailwind3
|
|
32
|
+
|
|
33
|
+
Use the Tailwind 3 CSS entry, add `@vtable-guild/vtable-guild/tailwind3-preset` to `presets`, scan
|
|
34
|
+
`node_modules/@vtable-guild`, and enable `cssMode: 'tailwind3'`.
|
|
35
|
+
|
|
36
|
+
### tailwind4
|
|
37
|
+
|
|
38
|
+
Use the Tailwind 4 CSS entry and runtime mode:
|
|
22
39
|
|
|
23
40
|
```ts
|
|
24
|
-
import '@vtable-guild/vtable-guild/css/
|
|
25
|
-
```
|
|
41
|
+
import '@vtable-guild/vtable-guild/css/tailwind4'
|
|
26
42
|
|
|
27
|
-
|
|
43
|
+
app.use(createVTableGuild({ cssMode: 'tailwind4' }))
|
|
44
|
+
```
|
|
28
45
|
|
|
29
46
|
```vue
|
|
30
47
|
<template>
|
package/css/index.css
CHANGED
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
@import './transitions.css';
|
|
16
16
|
|
|
17
17
|
/* Hide native scrollbar — used by Scrollbar component */
|
|
18
|
-
.scrollbar-none {
|
|
18
|
+
.vtg-scrollbar-none {
|
|
19
19
|
scrollbar-width: none;
|
|
20
20
|
-ms-overflow-style: none;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
.scrollbar-none::-webkit-scrollbar {
|
|
23
|
+
.vtg-scrollbar-none::-webkit-scrollbar {
|
|
24
24
|
display: none;
|
|
25
25
|
}
|
|
26
26
|
|