@saasmakers/ui 0.1.30 → 0.1.32
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/app/types/bases.d.ts +54 -68
- package/app/types/global.d.ts +8 -5
- package/package.json +2 -2
- package/app/types/index.d.ts +0 -2
package/app/types/bases.d.ts
CHANGED
|
@@ -1,71 +1,57 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
title?: string
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
type BaseDividerBorderStyle = 'dashed' | 'dotted' | 'solid'
|
|
37
|
-
|
|
38
|
-
type BaseDividerSize = 'base' | 'sm'
|
|
39
|
-
|
|
40
|
-
interface BaseText {
|
|
41
|
-
background?: BaseTextBackground
|
|
42
|
-
bold?: boolean
|
|
43
|
-
hasMargin?: boolean
|
|
44
|
-
maxCharacters?: number
|
|
45
|
-
noWrap?: boolean
|
|
46
|
-
reverse?: boolean
|
|
47
|
-
size?: BaseSize
|
|
48
|
-
skeleton?: boolean
|
|
49
|
-
text?: BaseTextText
|
|
50
|
-
to?: RouteLocationRaw
|
|
51
|
-
truncate?: boolean
|
|
52
|
-
underline?: boolean
|
|
53
|
-
uppercase?: boolean
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
type BaseTextBackground = '' | 'gray' | 'white'
|
|
57
|
-
|
|
58
|
-
type BaseTextText = string | { base: string, sm: string }
|
|
1
|
+
export type BaseColor
|
|
2
|
+
= | 'black'
|
|
3
|
+
| 'gray'
|
|
4
|
+
| 'green'
|
|
5
|
+
| 'indigo'
|
|
6
|
+
| 'orange'
|
|
7
|
+
| 'red'
|
|
8
|
+
| 'white'
|
|
9
|
+
|
|
10
|
+
export type BaseSize
|
|
11
|
+
= | '2xl'
|
|
12
|
+
| '2xs'
|
|
13
|
+
| '3xl'
|
|
14
|
+
| '3xs'
|
|
15
|
+
| '4xl'
|
|
16
|
+
| 'base'
|
|
17
|
+
| 'lg'
|
|
18
|
+
| 'sm'
|
|
19
|
+
| 'xl'
|
|
20
|
+
| 'xs'
|
|
21
|
+
|
|
22
|
+
export type BaseStatus
|
|
23
|
+
= | 'error'
|
|
24
|
+
| 'info'
|
|
25
|
+
| 'success'
|
|
26
|
+
| 'warning'
|
|
27
|
+
|
|
28
|
+
export interface BaseDivider {
|
|
29
|
+
borderStyle?: BaseDividerBorderStyle
|
|
30
|
+
margin?: number
|
|
31
|
+
size?: BaseDividerSize
|
|
32
|
+
title?: string
|
|
59
33
|
}
|
|
60
34
|
|
|
61
|
-
export
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
35
|
+
export type BaseDividerBorderStyle = 'dashed' | 'dotted' | 'solid'
|
|
36
|
+
|
|
37
|
+
export type BaseDividerSize = 'base' | 'sm'
|
|
38
|
+
|
|
39
|
+
export interface BaseText {
|
|
40
|
+
background?: BaseTextBackground
|
|
41
|
+
bold?: boolean
|
|
42
|
+
hasMargin?: boolean
|
|
43
|
+
maxCharacters?: number
|
|
44
|
+
noWrap?: boolean
|
|
45
|
+
reverse?: boolean
|
|
46
|
+
size?: BaseSize
|
|
47
|
+
skeleton?: boolean
|
|
48
|
+
text?: BaseTextText
|
|
49
|
+
to?: RouteLocationRaw
|
|
50
|
+
truncate?: boolean
|
|
51
|
+
underline?: boolean
|
|
52
|
+
uppercase?: boolean
|
|
71
53
|
}
|
|
54
|
+
|
|
55
|
+
export type BaseTextBackground = '' | 'gray' | 'white'
|
|
56
|
+
|
|
57
|
+
export type BaseTextText = string | { base: string, sm: string }
|
package/app/types/global.d.ts
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
|
+
import type { BaseColor as _BaseColor, BaseSize as _BaseSize, BaseStatus as _BaseStatus } from './bases'
|
|
2
|
+
|
|
1
3
|
declare global {
|
|
2
4
|
// Packages
|
|
3
5
|
type LocationQuery = import('vue-router').LocationQuery
|
|
4
6
|
type RouteLocation = import('vue-router').RouteLocation
|
|
5
7
|
type RouteLocationRaw = import('vue-router').RouteLocationRaw
|
|
6
|
-
}
|
|
7
8
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
// Bases
|
|
10
|
+
type BaseColor = _BaseColor
|
|
11
|
+
type BaseSize = _BaseSize
|
|
12
|
+
type BaseStatus = _BaseStatus
|
|
12
13
|
}
|
|
14
|
+
|
|
15
|
+
export * from './bases'
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saasmakers/ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.32",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "Reusable Nuxt UI components for SaaS Makers projects",
|
|
7
7
|
"license": "MIT",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"directory": "packages/ui"
|
|
12
12
|
},
|
|
13
13
|
"main": "nuxt.config.ts",
|
|
14
|
-
"types": "app/types/
|
|
14
|
+
"types": "app/types/global.d.ts",
|
|
15
15
|
"publishConfig": {
|
|
16
16
|
"access": "public"
|
|
17
17
|
},
|
package/app/types/index.d.ts
DELETED