@ithinkdt/ui 4.0.0-6 → 4.0.0-600
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/auto-imports.d.ts +11 -6
- package/auto-imports.js +27 -9
- package/dist/components-BMKQsJ4d.js +2000 -0
- package/dist/components.js +5 -0
- package/dist/directives-CB8tcZsk.js +203 -0
- package/dist/directives.js +3 -0
- package/dist/index.js +1212 -0
- package/dist/page.js +546 -0
- package/dist/use-i18n-D-AJ8KbA.js +6 -0
- package/dist/use-style-DrH-89qR.js +29 -0
- package/dist/use-style.js +2 -0
- package/esm/components.d.ts +523 -0
- package/esm/components.js +1 -0
- package/esm/design.d.ts +243 -0
- package/esm/directives.d.ts +42 -0
- package/esm/directives.js +1 -0
- package/esm/index.d.ts +19 -0
- package/esm/index.js +1 -0
- package/esm/page.d.ts +189 -0
- package/esm/page.js +1 -0
- package/esm/use-style.d.ts +10 -0
- package/esm/use-style.js +1 -0
- package/locale.d.ts +78 -0
- package/package.json +64 -26
- package/unocss-preset.d.ts +5 -0
- package/unocss-preset.js +163 -0
- package/src/design/index.d.ts +0 -53
- package/src/design/index.js +0 -1
- package/src/design/layout.js +0 -113
- package/src/directives/index.d.ts +0 -37
- package/src/directives/index.js +0 -2
- package/src/directives/spin.js +0 -175
- package/src/directives/tooltip.js +0 -125
- package/src/index.d.ts +0 -5
- package/src/index.js +0 -37
- package/src/use-style.js +0 -8
- package/src/utils.js +0 -19
- package/tests/index.spec.ts +0 -9
- package/tests/tsconfig.json +0 -9
- package/tsconfig.json +0 -14
- package/unocss.d.ts +0 -3
- package/unocss.js +0 -16
- package/vitest.config.ts +0 -7
package/auto-imports.d.ts
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export declare const UIDirectives: {
|
|
2
|
+
type: 'directive'
|
|
3
|
+
resolve: (name: string) => string | undefined
|
|
4
4
|
}[]
|
|
5
|
-
export default UI
|
|
6
5
|
|
|
7
|
-
export declare const
|
|
8
|
-
type: 'component'
|
|
6
|
+
export declare const UIComponents: {
|
|
7
|
+
type: 'component'
|
|
9
8
|
resolve: (name: string) => string | undefined
|
|
10
9
|
}[]
|
|
10
|
+
|
|
11
|
+
export declare const UI: {
|
|
12
|
+
from: string
|
|
13
|
+
imports: (string | { name: string, type: boolean })[]
|
|
14
|
+
}[]
|
|
15
|
+
export default UI
|
package/auto-imports.js
CHANGED
|
@@ -1,19 +1,37 @@
|
|
|
1
|
-
export const
|
|
1
|
+
export const UIDirectives = [
|
|
2
2
|
{
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
type: 'directive',
|
|
4
|
+
resolve(name) {
|
|
5
|
+
return ['Spin', 'Tooltip'].includes(name)
|
|
6
|
+
? { name: `v${name}`, from: '@ithinkdt/ui/directives' }
|
|
7
|
+
: undefined
|
|
8
|
+
},
|
|
5
9
|
},
|
|
6
10
|
]
|
|
7
11
|
|
|
8
|
-
export
|
|
9
|
-
|
|
10
|
-
export const UIDirectives = [
|
|
12
|
+
export const UIComponents = [
|
|
11
13
|
{
|
|
12
|
-
type: '
|
|
14
|
+
type: 'component',
|
|
13
15
|
resolve(name) {
|
|
14
|
-
return [
|
|
15
|
-
|
|
16
|
+
return [
|
|
17
|
+
'DataTable', 'DataForm', 'DataFormActions', 'DataCustom', 'DataFilter', 'DataSelection', 'DataPagination',
|
|
18
|
+
'DataDescriptions', 'NCheckboxes', 'NRadios', 'NStateButton',
|
|
19
|
+
].includes(name)
|
|
20
|
+
? { name, from: '@ithinkdt/ui/components' }
|
|
16
21
|
: undefined
|
|
17
22
|
},
|
|
18
23
|
},
|
|
19
24
|
]
|
|
25
|
+
|
|
26
|
+
export const UI = [
|
|
27
|
+
{
|
|
28
|
+
from: '@ithinkdt/ui/directives',
|
|
29
|
+
imports: ['vSpin', 'vTooltip'],
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
from: '@ithinkdt/ui/components',
|
|
33
|
+
imports: ['DataTable', 'DataForm', 'DataCustom', 'DataFilter', 'DataSelection', 'DataPagination', 'DataDescriptions'],
|
|
34
|
+
},
|
|
35
|
+
]
|
|
36
|
+
|
|
37
|
+
export default UI
|