@saasmakers/ui 0.1.20 → 0.1.22

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.
@@ -1,5 +1,6 @@
1
1
  <script lang="ts" setup>
2
2
  import { NuxtLinkLocale } from '#components'
3
+ import type { BaseText } from '../../types/bases'
3
4
 
4
5
  const props = withDefaults(defineProps<BaseText>(), {
5
6
  background: '',
@@ -1,61 +1,57 @@
1
- declare global {
2
- type BaseColor
3
- = | 'black'
4
- | 'gray'
5
- | 'green'
6
- | 'indigo'
7
- | 'orange'
8
- | 'red'
9
- | 'white'
10
-
11
- type BaseSize
12
- = | '2xl'
13
- | '2xs'
14
- | '3xl'
15
- | '3xs'
16
- | '4xl'
17
- | 'base'
18
- | 'lg'
19
- | 'sm'
20
- | 'xl'
21
- | 'xs'
22
-
23
- type BaseStatus
24
- = | 'error'
25
- | 'info'
26
- | 'success'
27
- | 'warning'
28
-
29
- interface BaseDivider {
30
- borderStyle?: BaseDividerBorderStyle
31
- margin?: number
32
- size?: BaseDividerSize
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 { }
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
53
+ }
54
+
55
+ export type BaseTextBackground = '' | 'gray' | 'white'
56
+
57
+ export type BaseTextText = string | { base: string, sm: string }
@@ -1,5 +1,3 @@
1
- import './bases'
2
-
3
1
  declare global {
4
2
  // Packages
5
3
  type LocationQuery = import('vue-router').LocationQuery
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@saasmakers/ui",
3
3
  "type": "module",
4
- "version": "0.1.20",
4
+ "version": "0.1.22",
5
5
  "private": false,
6
6
  "description": "Reusable Nuxt UI components for SaaS Makers projects",
7
7
  "license": "MIT",
@@ -11,7 +11,6 @@
11
11
  "directory": "packages/ui"
12
12
  },
13
13
  "main": "nuxt.config.ts",
14
- "types": "app/types/index.d.ts",
15
14
  "publishConfig": {
16
15
  "access": "public"
17
16
  },
@@ -19,12 +18,6 @@
19
18
  "app",
20
19
  "nuxt.config.ts"
21
20
  ],
22
- "scripts": {
23
- "dev": "nuxi dev",
24
- "lint": "eslint .",
25
- "prepare": "nuxi prepare",
26
- "typecheck": "nuxi typecheck"
27
- },
28
21
  "peerDependencies": {
29
22
  "nuxt": "4.2.1"
30
23
  },
@@ -46,5 +39,10 @@
46
39
  "devDependencies": {
47
40
  "nuxt": "4.2.1",
48
41
  "typescript": "5.9.3"
42
+ },
43
+ "scripts": {
44
+ "dev": "nuxi dev",
45
+ "lint": "eslint .",
46
+ "typecheck": "nuxi typecheck"
49
47
  }
50
- }
48
+ }