@soubiran/ui 0.3.1 → 0.5.0

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/dist/resolver.mjs CHANGED
@@ -17,12 +17,11 @@ function resolver_default() {
17
17
  type: "component",
18
18
  resolve: (name) => {
19
19
  if (components.includes(name)) return {
20
- name,
21
- from: "@soubiran/ui"
20
+ name: "default",
21
+ from: `@soubiran/ui/components/${name}.vue`
22
22
  };
23
23
  }
24
24
  };
25
25
  }
26
-
27
26
  //#endregion
28
- export { resolver_default as default };
27
+ export { resolver_default as default };
@@ -1,100 +1,116 @@
1
- .fade-enter-active,
2
- .fade-leave-active {
3
- transition: opacity 0.4s ease-out;
1
+ .fade-enter-active, .fade-leave-active {
2
+ transition: opacity .4s ease-out;
4
3
  }
5
4
 
6
- .fade-enter-from,
7
- .fade-leave-to {
5
+ .fade-enter-from, .fade-leave-to {
8
6
  opacity: 0;
9
7
  }
10
8
 
11
9
  @media (prefers-reduced-motion: no-preference) {
12
- html:not(.no-sliding) .slide-enter,
13
- html:not(.no-sliding) .slide-enter-content > * {
10
+ html:not(.no-sliding) .slide-enter, html:not(.no-sliding) .slide-enter-content > * {
14
11
  --enter-step: 60ms;
15
- --enter-initial: 0ms;
16
- animation: slide-enter 1s both 1;
12
+ --enter-initial: 0s;
13
+ animation: 1s both slide-enter;
17
14
  animation-delay: calc(var(--enter-stage) * var(--enter-step));
18
15
  }
19
16
 
20
- .slide-enter-content > *:nth-child(1) {
17
+ .slide-enter-content > :first-child {
21
18
  --enter-stage: 1 !important;
22
19
  }
23
- .slide-enter-content > *:nth-child(2) {
20
+
21
+ .slide-enter-content > :nth-child(2) {
24
22
  --enter-stage: 2 !important;
25
23
  }
26
- .slide-enter-content > *:nth-child(3) {
24
+
25
+ .slide-enter-content > :nth-child(3) {
27
26
  --enter-stage: 3 !important;
28
27
  }
29
- .slide-enter-content > *:nth-child(4) {
28
+
29
+ .slide-enter-content > :nth-child(4) {
30
30
  --enter-stage: 4 !important;
31
31
  }
32
- .slide-enter-content > *:nth-child(5) {
32
+
33
+ .slide-enter-content > :nth-child(5) {
33
34
  --enter-stage: 5 !important;
34
35
  }
35
- .slide-enter-content > *:nth-child(6) {
36
+
37
+ .slide-enter-content > :nth-child(6) {
36
38
  --enter-stage: 6 !important;
37
39
  }
38
- .slide-enter-content > *:nth-child(7) {
40
+
41
+ .slide-enter-content > :nth-child(7) {
39
42
  --enter-stage: 7 !important;
40
43
  }
41
- .slide-enter-content > *:nth-child(8) {
44
+
45
+ .slide-enter-content > :nth-child(8) {
42
46
  --enter-stage: 8 !important;
43
47
  }
44
- .slide-enter-content > *:nth-child(9) {
48
+
49
+ .slide-enter-content > :nth-child(9) {
45
50
  --enter-stage: 9 !important;
46
51
  }
47
- .slide-enter-content > *:nth-child(10) {
52
+
53
+ .slide-enter-content > :nth-child(10) {
48
54
  --enter-stage: 10 !important;
49
55
  }
50
- .slide-enter-content > *:nth-child(11) {
56
+
57
+ .slide-enter-content > :nth-child(11) {
51
58
  --enter-stage: 11 !important;
52
59
  }
53
- .slide-enter-content > *:nth-child(12) {
60
+
61
+ .slide-enter-content > :nth-child(12) {
54
62
  --enter-stage: 12 !important;
55
63
  }
56
- .slide-enter-content > *:nth-child(13) {
64
+
65
+ .slide-enter-content > :nth-child(13) {
57
66
  --enter-stage: 13 !important;
58
67
  }
59
- .slide-enter-content > *:nth-child(14) {
68
+
69
+ .slide-enter-content > :nth-child(14) {
60
70
  --enter-stage: 14 !important;
61
71
  }
62
- .slide-enter-content > *:nth-child(15) {
72
+
73
+ .slide-enter-content > :nth-child(15) {
63
74
  --enter-stage: 15 !important;
64
75
  }
65
- .slide-enter-content > *:nth-child(16) {
76
+
77
+ .slide-enter-content > :nth-child(16) {
66
78
  --enter-stage: 16 !important;
67
79
  }
68
- .slide-enter-content > *:nth-child(17) {
80
+
81
+ .slide-enter-content > :nth-child(17) {
69
82
  --enter-stage: 17 !important;
70
83
  }
71
- .slide-enter-content > *:nth-child(18) {
84
+
85
+ .slide-enter-content > :nth-child(18) {
72
86
  --enter-stage: 18 !important;
73
87
  }
74
- .slide-enter-content > *:nth-child(19) {
88
+
89
+ .slide-enter-content > :nth-child(19) {
75
90
  --enter-stage: 19 !important;
76
91
  }
77
- .slide-enter-content > *:nth-child(20) {
92
+
93
+ .slide-enter-content > :nth-child(20) {
78
94
  --enter-stage: 20 !important;
79
95
  }
80
96
  }
81
97
 
82
98
  @keyframes slide-enter {
83
99
  0% {
84
- transform: translateY(10px);
85
100
  opacity: 0;
101
+ transform: translateY(10px);
86
102
  }
87
103
 
88
104
  to {
89
- transform: translateY(0);
90
105
  opacity: 1;
106
+ transform: translateY(0);
91
107
  }
92
108
  }
93
109
 
94
110
  @keyframes scale-up {
95
111
  from {
96
112
  opacity: 0;
97
- transform: scale(0.96) translateY(8px);
113
+ transform: scale(.96) translateY(8px);
98
114
  }
99
115
 
100
116
  to {
@@ -121,11 +137,10 @@
121
137
  color: var(--shiki-dark);
122
138
  }
123
139
 
124
-
125
140
  @theme {
126
- --font-sans: 'DM Sans', sans-serif;
127
- --font-sofia: 'Sofia sans', sans-serif;
128
- --font-mono: 'DM Mono', monospace;
141
+ --font-sans: "DM Sans", sans-serif;
142
+ --font-sofia: "Sofia sans", sans-serif;
143
+ --font-mono: "DM Mono", monospace;
129
144
  }
130
145
 
131
146
  html {
@@ -142,4 +157,3 @@ html {
142
157
  --ui-primary: white;
143
158
  --ui-text-highlighted: var(--ui-color-neutral-200);
144
159
  }
145
-
@@ -0,0 +1,4 @@
1
+ //#region src/wrapper-classes.d.ts
2
+ declare const _default: string[];
3
+ //#endregion
4
+ export { _default as default };
@@ -0,0 +1,19 @@
1
+ //#region src/wrapper-classes.ts
2
+ var wrapper_classes_default = [
3
+ "slide-enter-content",
4
+ "max-w-none",
5
+ "prose prose-neutral dark:prose-invert",
6
+ "prose-headings:text-default prose-h2:text-[1.125em] prose-h2:mb-[0.5em] prose-h3:text-[1em]",
7
+ "prose-p:my-[1em] dark:prose-p:text-muted",
8
+ "dark:prose-ul:text-muted dark:prose-ol:text-muted",
9
+ "dark:prose-strong:text-default",
10
+ "dark:prose-a:text-muted prose-a:font-semibold prose-a:no-underline prose-a:border-b prose-a:border-muted prose-a:transition-colors prose-a:duration-300 prose-a:ease-out prose-a:hover:border-[var(--ui-text-dimmed)]",
11
+ "prose-hr:max-w-1/2 prose-hr:mx-auto prose-hr:my-[2em]",
12
+ "prose-figure:bg-neutral-100 dark:prose-figure:bg-neutral-800 prose-figure:rounded-lg",
13
+ "prose-img:rounded-lg prose-img:border prose-img:border-accented prose-img:shadow-sm",
14
+ "prose-video:rounded-lg prose-video:border prose-video:border-accented prose-video:shadow-sm",
15
+ "prose-figcaption:text-center prose-figcaption:py-1 prose-figcaption:m-0",
16
+ "[&_:first-child]:mt-0 [&_:last-child]:mb-0"
17
+ ];
18
+ //#endregion
19
+ export { wrapper_classes_default as default };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@soubiran/ui",
3
3
  "type": "module",
4
- "version": "0.3.1",
4
+ "version": "0.5.0",
5
5
  "author": "Estéban Soubiran <esteban@soubiran.dev>",
6
6
  "license": "MIT",
7
7
  "funding": "https://github.com/sponsors/Barbapapazes",
@@ -15,7 +15,12 @@
15
15
  ".": {
16
16
  "types": "./dist/index.d.ts",
17
17
  "import": "./dist/index.js",
18
- "style": "./dist/styles.css"
18
+ "style": "./dist/style.css"
19
+ },
20
+ "./components/*": "./dist/components/*",
21
+ "./composables/*": {
22
+ "types": "./dist/composables/*.d.ts",
23
+ "import": "./dist/composables/*.js"
19
24
  },
20
25
  "./imports": {
21
26
  "types": "./dist/imports.d.mts",
@@ -31,6 +36,10 @@
31
36
  },
32
37
  "./umami": {
33
38
  "types": "./umami.d.ts"
39
+ },
40
+ "./wrapper-classes": {
41
+ "types": "./dist/wrapper-classes.d.ts",
42
+ "import": "./dist/wrapper-classes.js"
34
43
  }
35
44
  },
36
45
  "main": "./dist/index.js",
@@ -40,34 +49,35 @@
40
49
  "umami.d.ts"
41
50
  ],
42
51
  "dependencies": {
43
- "@nuxt/ui": "^4.2.0",
44
- "@pinia/colada": "^0.17.9",
45
- "@vue/compiler-sfc": "^3.5.26",
46
- "@vueuse/core": "^13.9.0",
47
- "markdown-it-github-alerts": "^1.0.0",
48
- "motion-v": "^1.7.4",
52
+ "@nuxt/ui": "4.5.0",
53
+ "@pinia/colada": "^1.0.0",
54
+ "@vue/compiler-sfc": "^3.5.30",
55
+ "@vueuse/core": "^14.2.1",
56
+ "markdown-it-github-alerts": "^1.0.1",
57
+ "motion-v": "^2.0.1",
49
58
  "ofetch": "^1.5.1",
50
- "partysocket": "^1.1.6",
59
+ "partysocket": "^1.1.16",
51
60
  "pinia": "^3.0.4",
52
- "reka-ui": "^2.6.0",
53
- "tailwind-variants": "^3.1.1",
54
- "vue": "^3.5.24",
61
+ "reka-ui": "^2.9.2",
62
+ "tailwind-variants": "^3.2.2",
63
+ "unplugin-vue-components": "^31.0.0",
64
+ "vite": "^8.0.1",
65
+ "vue": "^3.5.30",
55
66
  "vue-router": "^4.6.3"
56
67
  },
57
68
  "devDependencies": {
58
69
  "@iconify-json/ph": "^1.2.2",
59
- "@iconify-json/simple-icons": "^1.2.63",
60
- "@types/node": "^24.10.1",
61
- "@vitejs/plugin-vue": "^6.0.3",
62
- "@vue/language-core": "^3.2.1",
63
- "@vue/tsconfig": "^0.8.1",
64
- "tsdown": "^0.18.3",
70
+ "@iconify-json/simple-icons": "^1.2.74",
71
+ "@tsdown/css": "^0.21.4",
72
+ "@types/node": "^24.12.0",
73
+ "@vitejs/plugin-vue": "^6.0.5",
74
+ "@vue/language-core": "^3.2.6",
75
+ "@vue/tsconfig": "^0.9.0",
76
+ "tsdown": "^0.21.4",
65
77
  "typescript": "~5.9.3",
66
- "unplugin-icons": "^22.5.0",
67
- "unplugin-vue": "^7.1.0",
68
- "unplugin-vue-components": "^30.0.0",
69
- "vite": "npm:rolldown-vite@7.1.20",
70
- "vue-tsc": "^3.2.1"
78
+ "unplugin-icons": "^23.0.1",
79
+ "unplugin-vue": "^7.1.1",
80
+ "vue-tsc": "^3.2.6"
71
81
  },
72
82
  "scripts": {
73
83
  "dev": "vite dev",
package/dist/styles.js DELETED
File without changes