@soubiran/ui 0.2.1 → 0.4.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
@@ -23,6 +23,5 @@ function resolver_default() {
23
23
  }
24
24
  };
25
25
  }
26
-
27
26
  //#endregion
28
- export { resolver_default as default };
27
+ export { resolver_default as default };
package/dist/style.css ADDED
@@ -0,0 +1,159 @@
1
+ .fade-enter-active, .fade-leave-active {
2
+ transition: opacity .4s ease-out;
3
+ }
4
+
5
+ .fade-enter-from, .fade-leave-to {
6
+ opacity: 0;
7
+ }
8
+
9
+ @media (prefers-reduced-motion: no-preference) {
10
+ html:not(.no-sliding) .slide-enter, html:not(.no-sliding) .slide-enter-content > * {
11
+ --enter-step: 60ms;
12
+ --enter-initial: 0s;
13
+ animation: 1s both slide-enter;
14
+ animation-delay: calc(var(--enter-stage) * var(--enter-step));
15
+ }
16
+
17
+ .slide-enter-content > :first-child {
18
+ --enter-stage: 1 !important;
19
+ }
20
+
21
+ .slide-enter-content > :nth-child(2) {
22
+ --enter-stage: 2 !important;
23
+ }
24
+
25
+ .slide-enter-content > :nth-child(3) {
26
+ --enter-stage: 3 !important;
27
+ }
28
+
29
+ .slide-enter-content > :nth-child(4) {
30
+ --enter-stage: 4 !important;
31
+ }
32
+
33
+ .slide-enter-content > :nth-child(5) {
34
+ --enter-stage: 5 !important;
35
+ }
36
+
37
+ .slide-enter-content > :nth-child(6) {
38
+ --enter-stage: 6 !important;
39
+ }
40
+
41
+ .slide-enter-content > :nth-child(7) {
42
+ --enter-stage: 7 !important;
43
+ }
44
+
45
+ .slide-enter-content > :nth-child(8) {
46
+ --enter-stage: 8 !important;
47
+ }
48
+
49
+ .slide-enter-content > :nth-child(9) {
50
+ --enter-stage: 9 !important;
51
+ }
52
+
53
+ .slide-enter-content > :nth-child(10) {
54
+ --enter-stage: 10 !important;
55
+ }
56
+
57
+ .slide-enter-content > :nth-child(11) {
58
+ --enter-stage: 11 !important;
59
+ }
60
+
61
+ .slide-enter-content > :nth-child(12) {
62
+ --enter-stage: 12 !important;
63
+ }
64
+
65
+ .slide-enter-content > :nth-child(13) {
66
+ --enter-stage: 13 !important;
67
+ }
68
+
69
+ .slide-enter-content > :nth-child(14) {
70
+ --enter-stage: 14 !important;
71
+ }
72
+
73
+ .slide-enter-content > :nth-child(15) {
74
+ --enter-stage: 15 !important;
75
+ }
76
+
77
+ .slide-enter-content > :nth-child(16) {
78
+ --enter-stage: 16 !important;
79
+ }
80
+
81
+ .slide-enter-content > :nth-child(17) {
82
+ --enter-stage: 17 !important;
83
+ }
84
+
85
+ .slide-enter-content > :nth-child(18) {
86
+ --enter-stage: 18 !important;
87
+ }
88
+
89
+ .slide-enter-content > :nth-child(19) {
90
+ --enter-stage: 19 !important;
91
+ }
92
+
93
+ .slide-enter-content > :nth-child(20) {
94
+ --enter-stage: 20 !important;
95
+ }
96
+ }
97
+
98
+ @keyframes slide-enter {
99
+ 0% {
100
+ opacity: 0;
101
+ transform: translateY(10px);
102
+ }
103
+
104
+ to {
105
+ opacity: 1;
106
+ transform: translateY(0);
107
+ }
108
+ }
109
+
110
+ @keyframes scale-up {
111
+ from {
112
+ opacity: 0;
113
+ transform: scale(.96) translateY(8px);
114
+ }
115
+
116
+ to {
117
+ opacity: 1;
118
+ transform: scale(1) translateY(0);
119
+ }
120
+ }
121
+
122
+ .shiki {
123
+ color: var(--shiki-light);
124
+ background-color: var(--ui-color-neutral-100);
125
+ }
126
+
127
+ .shiki .line span {
128
+ color: var(--shiki-light);
129
+ }
130
+
131
+ .dark .shiki {
132
+ color: var(--shiki-dark);
133
+ background-color: var(--ui-color-neutral-800);
134
+ }
135
+
136
+ .dark .shiki .line span {
137
+ color: var(--shiki-dark);
138
+ }
139
+
140
+ @theme {
141
+ --font-sans: "DM Sans", sans-serif;
142
+ --font-sofia: "Sofia sans", sans-serif;
143
+ --font-mono: "DM Mono", monospace;
144
+ }
145
+
146
+ html {
147
+ scroll-behavior: smooth;
148
+ scroll-padding-top: 2rem;
149
+ }
150
+
151
+ :root {
152
+ --ui-primary: black;
153
+ --ui-text-highlighted: var(--ui-color-neutral-950);
154
+ }
155
+
156
+ .dark {
157
+ --ui-primary: white;
158
+ --ui-text-highlighted: var(--ui-color-neutral-200);
159
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@soubiran/ui",
3
3
  "type": "module",
4
- "version": "0.2.1",
4
+ "version": "0.4.0",
5
5
  "author": "Estéban Soubiran <esteban@soubiran.dev>",
6
6
  "license": "MIT",
7
7
  "funding": "https://github.com/sponsors/Barbapapazes",
@@ -14,7 +14,8 @@
14
14
  "exports": {
15
15
  ".": {
16
16
  "types": "./dist/index.d.ts",
17
- "import": "./dist/index.js"
17
+ "import": "./dist/index.js",
18
+ "style": "./dist/style.css"
18
19
  },
19
20
  "./imports": {
20
21
  "types": "./dist/imports.d.mts",
@@ -28,9 +29,6 @@
28
29
  "types": "./dist/alerts.d.ts",
29
30
  "import": "./dist/alerts.js"
30
31
  },
31
- "./styles.css": {
32
- "import": "./dist/styles.css"
33
- },
34
32
  "./umami": {
35
33
  "types": "./umami.d.ts"
36
34
  }
@@ -42,34 +40,35 @@
42
40
  "umami.d.ts"
43
41
  ],
44
42
  "dependencies": {
45
- "@nuxt/ui": "^4.2.0",
46
- "@pinia/colada": "^0.17.9",
47
- "@vue/compiler-sfc": "^3.5.26",
48
- "@vueuse/core": "^13.9.0",
49
- "markdown-it-github-alerts": "^1.0.0",
50
- "motion-v": "^1.7.4",
43
+ "@nuxt/ui": "4.5.0",
44
+ "@pinia/colada": "^1.0.0",
45
+ "@vue/compiler-sfc": "^3.5.30",
46
+ "@vueuse/core": "^14.2.1",
47
+ "markdown-it-github-alerts": "^1.0.1",
48
+ "motion-v": "^2.0.1",
51
49
  "ofetch": "^1.5.1",
52
- "partysocket": "^1.1.6",
50
+ "partysocket": "^1.1.16",
53
51
  "pinia": "^3.0.4",
54
- "reka-ui": "^2.6.0",
55
- "tailwind-variants": "^3.1.1",
56
- "vue": "^3.5.24",
52
+ "reka-ui": "^2.9.2",
53
+ "tailwind-variants": "^3.2.2",
54
+ "vue": "^3.5.30",
57
55
  "vue-router": "^4.6.3"
58
56
  },
59
57
  "devDependencies": {
60
58
  "@iconify-json/ph": "^1.2.2",
61
- "@iconify-json/simple-icons": "^1.2.63",
62
- "@types/node": "^24.10.1",
63
- "@vitejs/plugin-vue": "^6.0.3",
64
- "@vue/language-core": "^3.2.1",
65
- "@vue/tsconfig": "^0.8.1",
66
- "tsdown": "^0.18.3",
59
+ "@iconify-json/simple-icons": "^1.2.74",
60
+ "@tsdown/css": "^0.21.4",
61
+ "@types/node": "^24.12.0",
62
+ "@vitejs/plugin-vue": "^6.0.5",
63
+ "@vue/language-core": "^3.2.6",
64
+ "@vue/tsconfig": "^0.9.0",
65
+ "tsdown": "^0.21.4",
67
66
  "typescript": "~5.9.3",
68
- "unplugin-icons": "^22.5.0",
69
- "unplugin-vue": "^7.1.0",
70
- "unplugin-vue-components": "^30.0.0",
71
- "vite": "npm:rolldown-vite@7.1.20",
72
- "vue-tsc": "^3.2.1"
67
+ "unplugin-icons": "^23.0.1",
68
+ "unplugin-vue": "^7.1.1",
69
+ "unplugin-vue-components": "^31.0.0",
70
+ "vite": "^8.0.1",
71
+ "vue-tsc": "^3.2.6"
73
72
  },
74
73
  "scripts": {
75
74
  "dev": "vite dev",
package/dist/alerts.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import "markdown-it-github-alerts/styles/github-colors-light.css";
2
- import "markdown-it-github-alerts/styles/github-colors-dark-class.css";
3
- import "markdown-it-github-alerts/styles/github-base.css";
package/dist/alerts.js DELETED
@@ -1,3 +0,0 @@
1
- import "markdown-it-github-alerts/styles/github-colors-light.css";
2
- import "markdown-it-github-alerts/styles/github-colors-dark-class.css";
3
- import "markdown-it-github-alerts/styles/github-base.css";
package/dist/styles.css DELETED
@@ -1,124 +0,0 @@
1
- .fade-enter-active,
2
- .fade-leave-active {
3
- transition: opacity 0.4s ease-out;
4
- }
5
-
6
- .fade-enter-from,
7
- .fade-leave-to {
8
- opacity: 0;
9
- }
10
-
11
- @media (prefers-reduced-motion: no-preference) {
12
- html:not(.no-sliding) .slide-enter,
13
- html:not(.no-sliding) .slide-enter-content > * {
14
- --enter-step: 60ms;
15
- --enter-initial: 0ms;
16
- animation: slide-enter 1s both 1;
17
- animation-delay: calc(var(--enter-stage) * var(--enter-step));
18
- }
19
-
20
- .slide-enter-content > *:nth-child(1) {
21
- --enter-stage: 1 !important;
22
- }
23
- .slide-enter-content > *:nth-child(2) {
24
- --enter-stage: 2 !important;
25
- }
26
- .slide-enter-content > *:nth-child(3) {
27
- --enter-stage: 3 !important;
28
- }
29
- .slide-enter-content > *:nth-child(4) {
30
- --enter-stage: 4 !important;
31
- }
32
- .slide-enter-content > *:nth-child(5) {
33
- --enter-stage: 5 !important;
34
- }
35
- .slide-enter-content > *:nth-child(6) {
36
- --enter-stage: 6 !important;
37
- }
38
- .slide-enter-content > *:nth-child(7) {
39
- --enter-stage: 7 !important;
40
- }
41
- .slide-enter-content > *:nth-child(8) {
42
- --enter-stage: 8 !important;
43
- }
44
- .slide-enter-content > *:nth-child(9) {
45
- --enter-stage: 9 !important;
46
- }
47
- .slide-enter-content > *:nth-child(10) {
48
- --enter-stage: 10 !important;
49
- }
50
- .slide-enter-content > *:nth-child(11) {
51
- --enter-stage: 11 !important;
52
- }
53
- .slide-enter-content > *:nth-child(12) {
54
- --enter-stage: 12 !important;
55
- }
56
- .slide-enter-content > *:nth-child(13) {
57
- --enter-stage: 13 !important;
58
- }
59
- .slide-enter-content > *:nth-child(14) {
60
- --enter-stage: 14 !important;
61
- }
62
- .slide-enter-content > *:nth-child(15) {
63
- --enter-stage: 15 !important;
64
- }
65
- .slide-enter-content > *:nth-child(16) {
66
- --enter-stage: 16 !important;
67
- }
68
- .slide-enter-content > *:nth-child(17) {
69
- --enter-stage: 17 !important;
70
- }
71
- .slide-enter-content > *:nth-child(18) {
72
- --enter-stage: 18 !important;
73
- }
74
- .slide-enter-content > *:nth-child(19) {
75
- --enter-stage: 19 !important;
76
- }
77
- .slide-enter-content > *:nth-child(20) {
78
- --enter-stage: 20 !important;
79
- }
80
- }
81
-
82
- @keyframes slide-enter {
83
- 0% {
84
- transform: translateY(10px);
85
- opacity: 0;
86
- }
87
-
88
- to {
89
- transform: translateY(0);
90
- opacity: 1;
91
- }
92
- }
93
-
94
- @keyframes scale-up {
95
- from {
96
- opacity: 0;
97
- transform: scale(0.96) translateY(8px);
98
- }
99
-
100
- to {
101
- opacity: 1;
102
- transform: scale(1) translateY(0);
103
- }
104
- }
105
-
106
- .shiki {
107
- color: var(--shiki-light);
108
- background-color: var(--ui-color-neutral-100);
109
- }
110
-
111
- .shiki .line span {
112
- color: var(--shiki-light);
113
- }
114
-
115
- .dark .shiki {
116
- color: var(--shiki-dark);
117
- background-color: var(--ui-color-neutral-800);
118
- }
119
-
120
- .dark .shiki .line span {
121
- color: var(--shiki-dark);
122
- }
123
-
124
-
package/dist/styles.js DELETED
File without changes