@rysinal/heroui-vue-styles 0.0.4 → 0.0.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rysinal/heroui-vue-styles",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "Styles for HeroUI Vue components",
5
5
  "keywords": [
6
6
  "heroui",
@@ -48,7 +48,7 @@
48
48
  "@tailwindcss/vite": "^4.2.4",
49
49
  "tailwindcss": "^4.1.18",
50
50
  "typescript": "^5.8.3",
51
- "@rysinal/heroui-vue-standard": "0.0.4"
51
+ "@rysinal/heroui-vue-standard": "0.0.5"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "tailwindcss": ">=4.0.0"
@@ -22,7 +22,13 @@
22
22
  }
23
23
 
24
24
  .accordion__indicator {
25
- @apply ml-auto size-4 shrink-0 text-muted;
25
+ @apply ml-auto inline-flex size-4 shrink-0 items-center justify-center text-muted;
26
+ line-height: 1;
27
+ transform-origin: center;
28
+
29
+ & > svg {
30
+ @apply block size-full shrink-0;
31
+ }
26
32
 
27
33
  /**
28
34
  * Transitions
@@ -217,9 +217,13 @@
217
217
  /**
218
218
  * Element: heading - the main title text
219
219
  */
220
- .alert-dialog__heading {
220
+ .alert-dialog__heading,
221
+ .alert-dialog__dialog .alert-dialog__heading {
221
222
  @apply align-middle;
222
223
  @apply text-base font-medium text-foreground;
224
+ margin: 0;
225
+ border: 0;
226
+ padding: 0;
223
227
  }
224
228
 
225
229
  /**
@@ -156,3 +156,7 @@
156
156
  .button--full-width {
157
157
  @apply w-full;
158
158
  }
159
+
160
+ .button.w-full {
161
+ width: 100%;
162
+ }
@@ -3,8 +3,10 @@
3
3
  @apply relative;
4
4
  }
5
5
 
6
- .disclosure__heading {
6
+ .disclosure .disclosure__heading {
7
7
  @apply flex;
8
+ margin: 0;
9
+ font: inherit;
8
10
  }
9
11
 
10
12
  .disclosure__trigger {
@@ -13,19 +15,25 @@
13
15
 
14
16
  /* Focus state */
15
17
  &:focus-visible:not(:focus),
16
- &[data-focus-visible="true"] {
18
+ &[data-focus-visible='true'] {
17
19
  @apply status-focused;
18
20
  }
19
21
 
20
22
  /* Disabled state */
21
23
  &:disabled,
22
- &[aria-disabled="true"] {
24
+ &[aria-disabled='true'] {
23
25
  @apply status-disabled;
24
26
  }
25
27
  }
26
28
 
27
29
  .disclosure__indicator {
28
- @apply ml-auto size-4 shrink-0 text-inherit;
30
+ @apply ml-auto inline-flex size-4 shrink-0 items-center justify-center text-inherit;
31
+ line-height: 1;
32
+ transform-origin: center;
33
+
34
+ & > svg {
35
+ @apply block size-full shrink-0;
36
+ }
29
37
 
30
38
  /**
31
39
  * Transitions
@@ -33,7 +41,7 @@
33
41
  @apply transition duration-250 motion-reduce:transition-none;
34
42
 
35
43
  /* Expanded state for indicator rotation */
36
- &[data-expanded="true"] {
44
+ &[data-expanded='true'] {
37
45
  @apply -rotate-180;
38
46
  }
39
47
  }
@@ -52,7 +60,7 @@
52
60
  opacity 200ms var(--ease-out);
53
61
  @apply motion-reduce:transition-none;
54
62
 
55
- &[data-expanded="true"] {
63
+ &[data-expanded='true'] {
56
64
  will-change: height, opacity;
57
65
  opacity: 1;
58
66
  }
@@ -43,7 +43,8 @@
43
43
  */
44
44
  .drawer__backdrop {
45
45
  @apply fixed inset-0 z-50;
46
- @apply h-(--visual-viewport-height) w-full;
46
+ @apply w-full;
47
+ height: var(--visual-viewport-height, 100dvh);
47
48
  opacity: 1;
48
49
  transition: opacity 250ms cubic-bezier(0.32, 0.72, 0, 1);
49
50
 
@@ -94,7 +95,8 @@
94
95
  .drawer__content {
95
96
  @apply pointer-events-none;
96
97
  @apply fixed inset-0 z-50 flex;
97
- @apply h-(--visual-viewport-height) w-full min-w-0;
98
+ @apply w-full min-w-0;
99
+ height: var(--visual-viewport-height, 100dvh);
98
100
  }
99
101
 
100
102
  /**
@@ -224,9 +226,13 @@
224
226
  /**
225
227
  * Element: heading - the main title text
226
228
  */
227
- .drawer__heading {
229
+ .drawer__heading,
230
+ .drawer__dialog .drawer__heading {
228
231
  @apply align-middle;
229
232
  @apply text-base font-medium text-foreground;
233
+ margin: 0;
234
+ border: 0;
235
+ padding: 0;
230
236
  }
231
237
 
232
238
  /**
@@ -241,6 +247,11 @@
241
247
  -webkit-overflow-scrolling: touch;
242
248
  }
243
249
 
250
+ .drawer__header > :where(p):not([class]),
251
+ .drawer__body > :where(p):not([class]) {
252
+ margin: 0;
253
+ }
254
+
244
255
  /**
245
256
  * Element: footer - the bottom action section
246
257
  */
@@ -63,6 +63,7 @@
63
63
  &[data-exiting="true"],
64
64
  &[data-entering="true"] {
65
65
  @apply will-change-[opacity];
66
+ --tw-animation-fill-mode: both;
66
67
  @apply motion-reduce:animate-none;
67
68
  }
68
69
  }
@@ -93,10 +94,11 @@
93
94
  */
94
95
  .modal__container {
95
96
  @apply flex flex-col items-center;
96
- @apply h-(--visual-viewport-height) w-full min-w-0 flex-1;
97
+ @apply w-full min-w-0 flex-1;
97
98
  @apply p-4;
98
99
  @apply sm:w-fit sm:p-10;
99
100
  @apply pointer-events-none;
101
+ height: var(--visual-viewport-height, 100dvh);
100
102
 
101
103
  /* Entering animation */
102
104
  &[data-entering="true"] {
@@ -132,6 +134,7 @@
132
134
  &[data-exiting="true"],
133
135
  &[data-entering="true"] {
134
136
  @apply will-change-[opacity,transform];
137
+ --tw-animation-fill-mode: both;
135
138
  @apply motion-reduce:animate-none;
136
139
  }
137
140
  }
@@ -140,7 +143,7 @@
140
143
  * Modifier: container--scroll-outside
141
144
  */
142
145
  .modal__container--scroll-outside {
143
- @apply overflow-y-auto;
146
+ @apply overflow-y-auto overscroll-contain;
144
147
  @apply pointer-events-auto;
145
148
  -webkit-overflow-scrolling: touch;
146
149
  }
@@ -195,7 +198,7 @@
195
198
  * Modifier: dialog--scroll-inside
196
199
  */
197
200
  .modal__dialog--scroll-inside {
198
- @apply overflow-hidden;
201
+ @apply max-h-full overflow-hidden;
199
202
  }
200
203
 
201
204
  /**
@@ -265,9 +268,13 @@
265
268
  /**
266
269
  * Element: heading - the main title text
267
270
  */
268
- .modal__heading {
271
+ .modal__heading,
272
+ .modal__dialog .modal__heading {
269
273
  @apply align-middle;
270
274
  @apply text-base font-medium text-foreground;
275
+ margin: 0;
276
+ border: 0;
277
+ padding: 0;
271
278
  }
272
279
 
273
280
  /**
@@ -279,6 +286,30 @@
279
286
  @apply rounded-full select-none;
280
287
  }
281
288
 
289
+ .modal__icon.bg-default {
290
+ background-color: var(--color-default);
291
+ }
292
+
293
+ .modal__icon.bg-accent-soft {
294
+ background-color: var(--color-accent-soft);
295
+ }
296
+
297
+ .modal__icon.bg-success-soft {
298
+ background-color: var(--color-success-soft);
299
+ }
300
+
301
+ .modal__icon.text-foreground {
302
+ color: var(--color-foreground);
303
+ }
304
+
305
+ .modal__icon.text-accent-soft-foreground {
306
+ color: var(--color-accent-soft-foreground);
307
+ }
308
+
309
+ .modal__icon.text-success-soft-foreground {
310
+ color: var(--color-success-soft-foreground);
311
+ }
312
+
282
313
  /**
283
314
  * Element: body - the main content area
284
315
  */
@@ -288,11 +319,16 @@
288
319
  @apply my-0;
289
320
  }
290
321
 
322
+ .modal__header > :where(p),
323
+ .modal__body > :where(p) {
324
+ margin: 0;
325
+ }
326
+
291
327
  /**
292
328
  * Modifier: body--scroll-inside
293
329
  */
294
330
  .modal__body--scroll-inside {
295
- @apply overflow-y-auto;
331
+ @apply overflow-y-auto overscroll-contain;
296
332
  -webkit-overflow-scrolling: touch;
297
333
  }
298
334
 
@@ -62,8 +62,14 @@
62
62
  }
63
63
 
64
64
  /* Popover heading */
65
- .popover__heading {
65
+ .popover__heading,
66
+ .popover .popover__heading {
66
67
  @apply font-medium;
68
+ margin: 0;
69
+ border: 0;
70
+ padding: 0;
71
+ font-size: inherit;
72
+ line-height: inherit;
67
73
  }
68
74
 
69
75
  /* Popover trigger */