loseta 0.15.0 → 0.16.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.
Files changed (298) hide show
  1. package/package.json +1 -1
  2. package/registry/components/alert-dialog.css +7 -0
  3. package/registry/components/alert.css +2 -0
  4. package/registry/components/avatar.css +11 -2
  5. package/registry/components/button-group.css +33 -18
  6. package/registry/components/button.css +6 -0
  7. package/registry/components/checkbox.css +17 -2
  8. package/registry/components/command.css +7 -0
  9. package/registry/components/context-menu.css +8 -0
  10. package/registry/components/dialog.css +24 -1
  11. package/registry/components/drawer.css +4 -0
  12. package/registry/components/empty.css +2 -0
  13. package/registry/components/field.css +8 -3
  14. package/registry/components/input-group.css +12 -1
  15. package/registry/components/input-otp.css +6 -0
  16. package/registry/components/input.css +5 -0
  17. package/registry/components/navigation-menu.css +18 -1
  18. package/registry/components/radio.css +19 -4
  19. package/registry/components/sheet.css +10 -0
  20. package/registry/components/sidebar.css +68 -0
  21. package/registry/components/slider.css +1 -1
  22. package/registry/components/switch.css +14 -0
  23. package/registry/components/table.css +4 -4
  24. package/registry/components/textarea.css +6 -0
  25. package/registry/components/toggle-group.css +8 -0
  26. package/registry/components/tooltip.css +106 -78
  27. package/registry/examples/alert-dialog.html +133 -7
  28. package/registry/examples/alert.html +50 -3
  29. package/registry/examples/aspect-ratio.html +5 -0
  30. package/registry/examples/attachment.html +12 -0
  31. package/registry/examples/avatar.html +49 -4
  32. package/registry/examples/badge.html +3 -0
  33. package/registry/examples/bubble.html +5 -0
  34. package/registry/examples/button-group.html +140 -12
  35. package/registry/examples/button.html +60 -15
  36. package/registry/examples/checkbox.html +107 -4
  37. package/registry/examples/code-block.html +5 -0
  38. package/registry/examples/combobox.html +13 -0
  39. package/registry/examples/command.html +322 -1
  40. package/registry/examples/context-menu.html +170 -1
  41. package/registry/examples/dialog.html +166 -5
  42. package/registry/examples/drawer.html +198 -10
  43. package/registry/examples/dropdown-menu.html +259 -2
  44. package/registry/examples/empty.html +107 -1
  45. package/registry/examples/field.html +232 -0
  46. package/registry/examples/input-group.html +101 -5
  47. package/registry/examples/input-otp.html +74 -2
  48. package/registry/examples/input.html +75 -4
  49. package/registry/examples/item.html +12 -0
  50. package/registry/examples/marker.html +6 -0
  51. package/registry/examples/menubar.html +338 -9
  52. package/registry/examples/message.html +16 -0
  53. package/registry/examples/navigation-menu.html +166 -17
  54. package/registry/examples/popover.html +153 -6
  55. package/registry/examples/progress.html +66 -3
  56. package/registry/examples/questionnaire.html +33 -0
  57. package/registry/examples/radio.html +121 -9
  58. package/registry/examples/resizable.html +11 -0
  59. package/registry/examples/scroll-area.html +9 -0
  60. package/registry/examples/separator.html +3 -0
  61. package/registry/examples/sheet.html +205 -7
  62. package/registry/examples/sidebar.html +377 -1
  63. package/registry/examples/slider.html +52 -5
  64. package/registry/examples/spinner.html +3 -0
  65. package/registry/examples/switch.html +68 -0
  66. package/registry/examples/table.html +192 -8
  67. package/registry/examples/textarea.html +33 -3
  68. package/registry/examples/toggle-group.html +72 -12
  69. package/registry/examples/toggle.html +34 -7
  70. package/registry/examples/tooltip.html +99 -2
  71. package/registry/examples/trace.html +13 -1
  72. package/registry/primitives/menu.css +10 -0
  73. package/registry/primitives/popover.css +38 -6
  74. package/registry/registry.json +116 -32
  75. package/registry/styles/luma/accordion.css +1 -1
  76. package/registry/styles/luma/alert-dialog.css +8 -0
  77. package/registry/styles/luma/alert.css +1 -17
  78. package/registry/styles/luma/avatar.css +44 -1
  79. package/registry/styles/luma/button-group.css +5 -17
  80. package/registry/styles/luma/button.css +8 -8
  81. package/registry/styles/luma/checkbox.css +6 -0
  82. package/registry/styles/luma/collapsible.css +1 -1
  83. package/registry/styles/luma/command.css +6 -0
  84. package/registry/styles/luma/drawer.css +8 -0
  85. package/registry/styles/luma/empty.css +2 -4
  86. package/registry/styles/luma/field.css +1 -1
  87. package/registry/styles/luma/input-group.css +14 -2
  88. package/registry/styles/luma/input-otp.css +8 -0
  89. package/registry/styles/luma/input.css +5 -0
  90. package/registry/styles/luma/kbd.css +1 -1
  91. package/registry/styles/luma/label.css +4 -0
  92. package/registry/styles/luma/menubar.css +1 -1
  93. package/registry/styles/luma/navigation-menu.css +11 -0
  94. package/registry/styles/luma/primitives/menu.css +8 -4
  95. package/registry/styles/luma/progress.css +26 -1
  96. package/registry/styles/luma/radio.css +3 -1
  97. package/registry/styles/luma/sheet.css +20 -0
  98. package/registry/styles/luma/sidebar.css +114 -1
  99. package/registry/styles/luma/switch.css +39 -10
  100. package/registry/styles/luma/table.css +6 -2
  101. package/registry/styles/luma/textarea.css +5 -0
  102. package/registry/styles/luma/toggle-group.css +11 -0
  103. package/registry/styles/lyra/accordion.css +1 -1
  104. package/registry/styles/lyra/alert-dialog.css +8 -0
  105. package/registry/styles/lyra/alert.css +1 -17
  106. package/registry/styles/lyra/avatar.css +44 -1
  107. package/registry/styles/lyra/button-group.css +5 -17
  108. package/registry/styles/lyra/button.css +8 -8
  109. package/registry/styles/lyra/checkbox.css +6 -0
  110. package/registry/styles/lyra/collapsible.css +1 -1
  111. package/registry/styles/lyra/command.css +6 -0
  112. package/registry/styles/lyra/drawer.css +8 -0
  113. package/registry/styles/lyra/empty.css +2 -4
  114. package/registry/styles/lyra/field.css +1 -1
  115. package/registry/styles/lyra/input-group.css +15 -3
  116. package/registry/styles/lyra/input-otp.css +8 -0
  117. package/registry/styles/lyra/input.css +5 -0
  118. package/registry/styles/lyra/kbd.css +1 -1
  119. package/registry/styles/lyra/label.css +4 -0
  120. package/registry/styles/lyra/menubar.css +1 -1
  121. package/registry/styles/lyra/navigation-menu.css +11 -0
  122. package/registry/styles/lyra/primitives/menu.css +8 -4
  123. package/registry/styles/lyra/progress.css +26 -1
  124. package/registry/styles/lyra/radio.css +3 -1
  125. package/registry/styles/lyra/sheet.css +20 -0
  126. package/registry/styles/lyra/sidebar.css +114 -1
  127. package/registry/styles/lyra/switch.css +37 -8
  128. package/registry/styles/lyra/table.css +6 -2
  129. package/registry/styles/lyra/textarea.css +5 -1
  130. package/registry/styles/maia/accordion.css +1 -1
  131. package/registry/styles/maia/alert-dialog.css +8 -0
  132. package/registry/styles/maia/alert.css +1 -17
  133. package/registry/styles/maia/avatar.css +44 -1
  134. package/registry/styles/maia/button-group.css +5 -17
  135. package/registry/styles/maia/button.css +8 -8
  136. package/registry/styles/maia/checkbox.css +6 -0
  137. package/registry/styles/maia/collapsible.css +1 -1
  138. package/registry/styles/maia/command.css +6 -0
  139. package/registry/styles/maia/drawer.css +8 -0
  140. package/registry/styles/maia/empty.css +2 -4
  141. package/registry/styles/maia/field.css +1 -1
  142. package/registry/styles/maia/input-group.css +14 -2
  143. package/registry/styles/maia/input-otp.css +8 -0
  144. package/registry/styles/maia/input.css +5 -0
  145. package/registry/styles/maia/kbd.css +1 -1
  146. package/registry/styles/maia/label.css +4 -0
  147. package/registry/styles/maia/menubar.css +1 -1
  148. package/registry/styles/maia/navigation-menu.css +11 -0
  149. package/registry/styles/maia/primitives/menu.css +8 -4
  150. package/registry/styles/maia/progress.css +26 -1
  151. package/registry/styles/maia/radio.css +3 -1
  152. package/registry/styles/maia/sheet.css +20 -0
  153. package/registry/styles/maia/sidebar.css +114 -1
  154. package/registry/styles/maia/switch.css +37 -8
  155. package/registry/styles/maia/table.css +6 -2
  156. package/registry/styles/maia/textarea.css +5 -0
  157. package/registry/styles/maia/toggle-group.css +11 -0
  158. package/registry/styles/mira/accordion.css +1 -1
  159. package/registry/styles/mira/alert-dialog.css +8 -0
  160. package/registry/styles/mira/alert.css +1 -17
  161. package/registry/styles/mira/avatar.css +44 -1
  162. package/registry/styles/mira/button-group.css +5 -17
  163. package/registry/styles/mira/button.css +8 -8
  164. package/registry/styles/mira/checkbox.css +6 -0
  165. package/registry/styles/mira/collapsible.css +1 -1
  166. package/registry/styles/mira/command.css +6 -0
  167. package/registry/styles/mira/drawer.css +8 -0
  168. package/registry/styles/mira/empty.css +2 -4
  169. package/registry/styles/mira/field.css +1 -1
  170. package/registry/styles/mira/input-group.css +14 -2
  171. package/registry/styles/mira/input-otp.css +8 -0
  172. package/registry/styles/mira/input.css +7 -2
  173. package/registry/styles/mira/kbd.css +1 -1
  174. package/registry/styles/mira/label.css +4 -0
  175. package/registry/styles/mira/menubar.css +1 -1
  176. package/registry/styles/mira/navigation-menu.css +11 -0
  177. package/registry/styles/mira/primitives/menu.css +8 -4
  178. package/registry/styles/mira/progress.css +26 -1
  179. package/registry/styles/mira/radio.css +3 -1
  180. package/registry/styles/mira/sheet.css +20 -0
  181. package/registry/styles/mira/sidebar.css +113 -0
  182. package/registry/styles/mira/switch.css +39 -10
  183. package/registry/styles/mira/table.css +7 -3
  184. package/registry/styles/mira/textarea.css +6 -2
  185. package/registry/styles/mira/toggle-group.css +11 -0
  186. package/registry/styles/nova/accordion.css +1 -1
  187. package/registry/styles/nova/alert-dialog.css +8 -0
  188. package/registry/styles/nova/alert.css +1 -17
  189. package/registry/styles/nova/avatar.css +44 -1
  190. package/registry/styles/nova/button-group.css +5 -17
  191. package/registry/styles/nova/button.css +8 -8
  192. package/registry/styles/nova/checkbox.css +6 -0
  193. package/registry/styles/nova/collapsible.css +1 -1
  194. package/registry/styles/nova/command.css +8 -0
  195. package/registry/styles/nova/drawer.css +8 -0
  196. package/registry/styles/nova/empty.css +2 -4
  197. package/registry/styles/nova/field.css +1 -1
  198. package/registry/styles/nova/input-group.css +15 -3
  199. package/registry/styles/nova/input-otp.css +8 -0
  200. package/registry/styles/nova/input.css +5 -0
  201. package/registry/styles/nova/kbd.css +1 -1
  202. package/registry/styles/nova/label.css +4 -0
  203. package/registry/styles/nova/menubar.css +1 -1
  204. package/registry/styles/nova/navigation-menu.css +11 -0
  205. package/registry/styles/nova/primitives/menu.css +8 -4
  206. package/registry/styles/nova/progress.css +26 -1
  207. package/registry/styles/nova/radio.css +3 -1
  208. package/registry/styles/nova/sheet.css +20 -0
  209. package/registry/styles/nova/sidebar.css +114 -1
  210. package/registry/styles/nova/switch.css +37 -8
  211. package/registry/styles/nova/table.css +6 -2
  212. package/registry/styles/nova/textarea.css +5 -0
  213. package/registry/styles/nova/toggle.css +2 -0
  214. package/registry/styles/rhea/accordion.css +1 -1
  215. package/registry/styles/rhea/alert-dialog.css +8 -0
  216. package/registry/styles/rhea/alert.css +1 -17
  217. package/registry/styles/rhea/avatar.css +44 -1
  218. package/registry/styles/rhea/button-group.css +5 -17
  219. package/registry/styles/rhea/button.css +8 -8
  220. package/registry/styles/rhea/checkbox.css +6 -0
  221. package/registry/styles/rhea/collapsible.css +1 -1
  222. package/registry/styles/rhea/command.css +6 -0
  223. package/registry/styles/rhea/drawer.css +8 -0
  224. package/registry/styles/rhea/empty.css +2 -4
  225. package/registry/styles/rhea/field.css +1 -1
  226. package/registry/styles/rhea/input-group.css +15 -3
  227. package/registry/styles/rhea/input-otp.css +8 -0
  228. package/registry/styles/rhea/input.css +5 -0
  229. package/registry/styles/rhea/kbd.css +1 -1
  230. package/registry/styles/rhea/label.css +4 -0
  231. package/registry/styles/rhea/menubar.css +1 -1
  232. package/registry/styles/rhea/navigation-menu.css +11 -0
  233. package/registry/styles/rhea/primitives/menu.css +8 -4
  234. package/registry/styles/rhea/primitives/popover.css +1 -1
  235. package/registry/styles/rhea/progress.css +25 -0
  236. package/registry/styles/rhea/radio.css +3 -1
  237. package/registry/styles/rhea/sheet.css +20 -0
  238. package/registry/styles/rhea/sidebar.css +114 -1
  239. package/registry/styles/rhea/switch.css +39 -10
  240. package/registry/styles/rhea/table.css +6 -2
  241. package/registry/styles/rhea/textarea.css +5 -0
  242. package/registry/styles/rhea/toggle-group.css +11 -0
  243. package/registry/styles/sera/accordion.css +1 -1
  244. package/registry/styles/sera/alert-dialog.css +8 -0
  245. package/registry/styles/sera/alert.css +1 -17
  246. package/registry/styles/sera/avatar.css +44 -1
  247. package/registry/styles/sera/button-group.css +5 -17
  248. package/registry/styles/sera/button.css +8 -8
  249. package/registry/styles/sera/checkbox.css +6 -0
  250. package/registry/styles/sera/collapsible.css +1 -1
  251. package/registry/styles/sera/command.css +6 -0
  252. package/registry/styles/sera/drawer.css +8 -0
  253. package/registry/styles/sera/empty.css +2 -4
  254. package/registry/styles/sera/field.css +1 -1
  255. package/registry/styles/sera/input-group.css +14 -2
  256. package/registry/styles/sera/input-otp.css +8 -0
  257. package/registry/styles/sera/input.css +5 -0
  258. package/registry/styles/sera/kbd.css +1 -1
  259. package/registry/styles/sera/label.css +4 -0
  260. package/registry/styles/sera/menubar.css +1 -1
  261. package/registry/styles/sera/navigation-menu.css +11 -0
  262. package/registry/styles/sera/primitives/menu.css +8 -4
  263. package/registry/styles/sera/progress.css +26 -1
  264. package/registry/styles/sera/radio.css +3 -1
  265. package/registry/styles/sera/sheet.css +20 -0
  266. package/registry/styles/sera/sidebar.css +117 -0
  267. package/registry/styles/sera/switch.css +37 -8
  268. package/registry/styles/sera/table.css +6 -2
  269. package/registry/styles/sera/textarea.css +5 -0
  270. package/registry/styles/sera/toggle-group.css +10 -0
  271. package/registry/styles/vega/accordion.css +1 -1
  272. package/registry/styles/vega/alert-dialog.css +8 -0
  273. package/registry/styles/vega/alert.css +1 -17
  274. package/registry/styles/vega/avatar.css +44 -1
  275. package/registry/styles/vega/button-group.css +5 -17
  276. package/registry/styles/vega/button.css +8 -8
  277. package/registry/styles/vega/checkbox.css +6 -0
  278. package/registry/styles/vega/collapsible.css +1 -1
  279. package/registry/styles/vega/command.css +6 -0
  280. package/registry/styles/vega/drawer.css +8 -0
  281. package/registry/styles/vega/empty.css +2 -4
  282. package/registry/styles/vega/field.css +1 -1
  283. package/registry/styles/vega/input-group.css +14 -2
  284. package/registry/styles/vega/input-otp.css +8 -0
  285. package/registry/styles/vega/input.css +5 -0
  286. package/registry/styles/vega/kbd.css +1 -1
  287. package/registry/styles/vega/label.css +4 -0
  288. package/registry/styles/vega/menubar.css +1 -1
  289. package/registry/styles/vega/navigation-menu.css +11 -0
  290. package/registry/styles/vega/primitives/menu.css +8 -4
  291. package/registry/styles/vega/progress.css +26 -1
  292. package/registry/styles/vega/radio.css +3 -1
  293. package/registry/styles/vega/sheet.css +20 -0
  294. package/registry/styles/vega/sidebar.css +114 -1
  295. package/registry/styles/vega/switch.css +37 -8
  296. package/registry/styles/vega/table.css +6 -2
  297. package/registry/styles/vega/textarea.css +5 -0
  298. package/registry/styles/vega/toggle-group.css +11 -0
@@ -5,8 +5,14 @@
5
5
  field-sizing: content;
6
6
  min-height: 4rem;
7
7
  width: 100%;
8
+ min-width: 0;
8
9
  outline-style: none;
9
10
 
11
+ @media (forced-colors: active) {
12
+ outline: 2px solid transparent;
13
+ outline-offset: 2px;
14
+ }
15
+
10
16
  &::placeholder {
11
17
  color: var(--muted-foreground);
12
18
  }
@@ -1,6 +1,7 @@
1
1
  /* Toggle Group */
2
2
  @layer loseta.components {
3
3
  .toggle-group {
4
+ isolation: isolate;
4
5
  display: flex;
5
6
  width: fit-content;
6
7
  align-items: center;
@@ -13,5 +14,12 @@
13
14
  > .toggle {
14
15
  flex-shrink: 0;
15
16
  }
17
+
18
+ /* A joined group collapses the shared borders, so the focused item has to
19
+ paint above its neighbours or the ring is clipped at the seam. */
20
+ > .toggle:focus-visible {
21
+ position: relative;
22
+ z-index: 1;
23
+ }
16
24
  }
17
25
  }
@@ -3,28 +3,26 @@
3
3
  .tooltip[data-tooltip] {
4
4
  position: relative;
5
5
 
6
- &:before {
6
+ &::before {
7
7
  pointer-events: none;
8
8
  visibility: hidden;
9
9
  position: absolute;
10
10
  z-index: 60;
11
- width: fit-content;
12
- max-width: 20rem;
13
- transform-origin: var(--transform-origin);
14
- scale: 95% 95%;
15
- overflow: hidden;
16
- text-overflow: ellipsis;
17
- white-space: nowrap;
11
+ inline-size: max-content;
12
+ max-inline-size: 20rem;
13
+ white-space: normal;
18
14
  opacity: 0%;
19
- transition-property: all;
15
+ scale: 95% 95%;
16
+ transition-property: opacity, scale, visibility;
20
17
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
21
18
  transition-duration: 150ms;
22
19
  content: attr(data-tooltip);
23
20
  }
24
21
 
25
- &:is(:hover, :focus-visible):before {
22
+ &:is(:hover, :focus-visible)::before {
26
23
  visibility: visible;
27
24
  opacity: 100%;
25
+ scale: 100% 100%;
28
26
  }
29
27
 
30
28
  &:not([data-side]),
@@ -32,7 +30,22 @@
32
30
  &::before {
33
31
  bottom: 100%;
34
32
  margin-bottom: 0.375rem;
35
- translate: 0 0.5rem;
33
+ }
34
+
35
+ &:not([data-align]),
36
+ &[data-align='center'] {
37
+ &::before {
38
+ left: 50%;
39
+ translate: -50%;
40
+ }
41
+ }
42
+
43
+ &[data-align='start']::before {
44
+ left: 0;
45
+ }
46
+
47
+ &[data-align='end']::before {
48
+ right: 0;
36
49
  }
37
50
  }
38
51
 
@@ -40,23 +53,8 @@
40
53
  &::before {
41
54
  top: 100%;
42
55
  margin-top: 0.375rem;
43
- translate: 0 -0.5rem;
44
56
  }
45
- }
46
57
 
47
- &:not([data-side]),
48
- &[data-side='top'],
49
- &[data-side='bottom'] {
50
- &[data-align='start'] {
51
- &::before {
52
- left: 0;
53
- }
54
- }
55
- &[data-align='end'] {
56
- &::before {
57
- right: 0;
58
- }
59
- }
60
58
  &:not([data-align]),
61
59
  &[data-align='center'] {
62
60
  &::before {
@@ -64,29 +62,37 @@
64
62
  translate: -50%;
65
63
  }
66
64
  }
67
- }
68
65
 
69
- &[data-side='left'] {
70
- &::before {
71
- right: 100%;
72
- margin-right: 0.375rem;
73
- translate: 0.5rem;
66
+ &[data-align='start']::before {
67
+ left: 0;
74
68
  }
75
- }
76
69
 
77
- &[data-side='right'] {
78
- &::before {
79
- left: 100%;
80
- margin-left: 0.375rem;
81
- translate: -0.5rem;
70
+ &[data-align='end']::before {
71
+ right: 0;
82
72
  }
83
73
  }
84
74
 
75
+ &[data-side='left'],
85
76
  &[data-side='inline-start'] {
86
77
  &::before {
87
78
  right: 100%;
88
79
  margin-right: 0.375rem;
89
- translate: 0.5rem;
80
+ }
81
+
82
+ &:not([data-align]),
83
+ &[data-align='center'] {
84
+ &::before {
85
+ top: 50%;
86
+ translate: 0 -50%;
87
+ }
88
+ }
89
+
90
+ &[data-align='start']::before {
91
+ top: 0;
92
+ }
93
+
94
+ &[data-align='end']::before {
95
+ bottom: 0;
90
96
  }
91
97
  }
92
98
 
@@ -96,15 +102,30 @@
96
102
  left: 100%;
97
103
  margin-right: 0;
98
104
  margin-left: 0.375rem;
99
- translate: -0.5rem;
100
105
  }
101
106
  }
102
107
 
108
+ &[data-side='right'],
103
109
  &[data-side='inline-end'] {
104
110
  &::before {
105
111
  left: 100%;
106
112
  margin-left: 0.375rem;
107
- translate: -0.5rem;
113
+ }
114
+
115
+ &:not([data-align]),
116
+ &[data-align='center'] {
117
+ &::before {
118
+ top: 50%;
119
+ translate: 0 -50%;
120
+ }
121
+ }
122
+
123
+ &[data-align='start']::before {
124
+ top: 0;
125
+ }
126
+
127
+ &[data-align='end']::before {
128
+ bottom: 0;
108
129
  }
109
130
  }
110
131
 
@@ -114,30 +135,6 @@
114
135
  left: auto;
115
136
  margin-right: 0.375rem;
116
137
  margin-left: 0;
117
- translate: 0.5rem;
118
- }
119
- }
120
-
121
- &[data-side='left'],
122
- &[data-side='right'],
123
- &[data-side='inline-start'],
124
- &[data-side='inline-end'] {
125
- &[data-align='start'] {
126
- &::before {
127
- top: 0;
128
- }
129
- }
130
- &[data-align='end'] {
131
- &::before {
132
- bottom: 0;
133
- }
134
- }
135
- &:not([data-align]),
136
- &[data-align='center'] {
137
- &::before {
138
- top: 50%;
139
- translate: 0 -50%;
140
- }
141
138
  }
142
139
  }
143
140
 
@@ -204,27 +201,23 @@
204
201
  }
205
202
  }
206
203
 
207
- &[data-side='left'] {
204
+ &[data-side='left'],
205
+ &[data-side='inline-start'] {
208
206
  &[data-arrow]::after {
209
207
  right: calc(100% + 0.375rem);
210
208
  top: 50%;
211
209
  translate: 50% -50%;
212
210
  }
213
- }
214
211
 
215
- &[data-side='right'] {
216
- &[data-arrow]::after {
217
- left: calc(100% + 0.375rem);
218
- top: 50%;
219
- translate: -50% -50%;
212
+ &[data-arrow][data-align='start']::after {
213
+ top: 0.75rem;
214
+ translate: 50% 0;
220
215
  }
221
- }
222
216
 
223
- &[data-side='inline-start'] {
224
- &[data-arrow]::after {
225
- right: calc(100% + 0.375rem);
226
- top: 50%;
227
- translate: 50% -50%;
217
+ &[data-arrow][data-align='end']::after {
218
+ top: auto;
219
+ bottom: 0.75rem;
220
+ translate: 50% 0;
228
221
  }
229
222
  }
230
223
 
@@ -234,14 +227,34 @@
234
227
  left: calc(100% + 0.375rem);
235
228
  translate: -50% -50%;
236
229
  }
230
+
231
+ &[data-arrow][data-align='start']::after {
232
+ translate: -50% 0;
233
+ }
234
+
235
+ &[data-arrow][data-align='end']::after {
236
+ translate: -50% 0;
237
+ }
237
238
  }
238
239
 
240
+ &[data-side='right'],
239
241
  &[data-side='inline-end'] {
240
242
  &[data-arrow]::after {
241
243
  left: calc(100% + 0.375rem);
242
244
  top: 50%;
243
245
  translate: -50% -50%;
244
246
  }
247
+
248
+ &[data-arrow][data-align='start']::after {
249
+ top: 0.75rem;
250
+ translate: -50% 0;
251
+ }
252
+
253
+ &[data-arrow][data-align='end']::after {
254
+ top: auto;
255
+ bottom: 0.75rem;
256
+ translate: -50% 0;
257
+ }
245
258
  }
246
259
 
247
260
  &[data-side='inline-end']:dir(rtl) {
@@ -250,6 +263,21 @@
250
263
  left: auto;
251
264
  translate: 50% -50%;
252
265
  }
266
+
267
+ &[data-arrow][data-align='start']::after {
268
+ translate: 50% 0;
269
+ }
270
+
271
+ &[data-arrow][data-align='end']::after {
272
+ translate: 50% 0;
273
+ }
274
+ }
275
+ }
276
+
277
+ @media (prefers-reduced-motion: reduce) {
278
+ .tooltip[data-tooltip]::before,
279
+ .tooltip[data-tooltip][data-arrow]::after {
280
+ transition-duration: 0s;
253
281
  }
254
282
  }
255
283
  }
@@ -1,15 +1,35 @@
1
- <!-- Delete account -->
1
+ <!-- Default -->
2
+ <button type="button" class="btn" data-variant="outline">
3
+ Open alert dialog
4
+ </button>
5
+
6
+ <dialog class="alert-dialog" id="demo-alert-dialog-default" aria-labelledby="alert-dialog-default-title" aria-describedby="alert-dialog-default-description">
7
+ <div>
8
+ <header>
9
+ <h2 data-slot="title" id="alert-dialog-default-title">Are you sure?</h2>
10
+ <p data-slot="description" id="alert-dialog-default-description">
11
+ This action cannot be undone.
12
+ </p>
13
+ </header>
14
+ <footer>
15
+ <button type="button" class="btn" data-variant="outline">Cancel</button>
16
+ <button type="button" class="btn">Continue</button>
17
+ </footer>
18
+ </div>
19
+ </dialog>
20
+
21
+ <!-- Destructive -->
2
22
  <button type="button" class="btn" data-variant="destructive">
3
- Delete account
23
+ Delete chat
4
24
  </button>
5
25
 
6
- <dialog class="alert-dialog" id="demo-alert-dialog" aria-labelledby="alert-title" aria-describedby="alert-description">
26
+ <dialog class="alert-dialog" id="demo-alert-dialog-destructive" data-size="sm" aria-labelledby="alert-dialog-destructive-title" aria-describedby="alert-dialog-destructive-description">
7
27
  <div>
8
28
  <header>
9
- <figure><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 13c0 5-3.5 7.5-7.7 8.9a1 1 0 0 1-.6 0C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.2-2.7a1 1 0 0 1 1.6 0C14.5 3.8 17 5 19 5a1 1 0 0 1 1 1z"/></svg></figure>
10
- <h2 data-slot="title" id="alert-title">Are you absolutely sure?</h2>
11
- <p data-slot="description" id="alert-description">
12
- This action cannot be undone. This will permanently delete your account and remove your data.
29
+ <figure data-variant="destructive"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 6h18"/><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"/><path d="M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"/><line x1="10" x2="10" y1="11" y2="17"/><line x1="14" x2="14" y1="11" y2="17"/></svg></figure>
30
+ <h2 data-slot="title" id="alert-dialog-destructive-title">Delete chat?</h2>
31
+ <p data-slot="description" id="alert-dialog-destructive-description">
32
+ This will permanently delete this chat conversation. View <a href="#">Settings</a> to delete any memories saved during this chat.
13
33
  </p>
14
34
  </header>
15
35
  <footer>
@@ -18,3 +38,109 @@
18
38
  </footer>
19
39
  </div>
20
40
  </dialog>
41
+
42
+ <!-- Small -->
43
+ <button type="button" class="btn" data-variant="outline">
44
+ Show small alert dialog
45
+ </button>
46
+
47
+ <dialog class="alert-dialog" id="demo-alert-dialog-small" data-size="sm" aria-labelledby="alert-dialog-small-title" aria-describedby="alert-dialog-small-description">
48
+ <div>
49
+ <header>
50
+ <h2 data-slot="title" id="alert-dialog-small-title">Allow accessory to connect?</h2>
51
+ <p data-slot="description" id="alert-dialog-small-description">
52
+ Do you want to allow the USB accessory to connect to this device?
53
+ </p>
54
+ </header>
55
+ <footer>
56
+ <button type="button" class="btn" data-variant="outline">Don't allow</button>
57
+ <button type="button" class="btn">Allow</button>
58
+ </footer>
59
+ </div>
60
+ </dialog>
61
+
62
+ <!-- Media -->
63
+ <button type="button" class="btn" data-variant="outline">
64
+ Share project
65
+ </button>
66
+
67
+ <dialog class="alert-dialog" id="demo-alert-dialog-media" aria-labelledby="alert-dialog-media-title" aria-describedby="alert-dialog-media-description">
68
+ <div>
69
+ <header>
70
+ <figure><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"/><path d="M8 12h8"/><path d="M12 8v8"/></svg></figure>
71
+ <h2 data-slot="title" id="alert-dialog-media-title">Share this project?</h2>
72
+ <p data-slot="description" id="alert-dialog-media-description">
73
+ Anyone with the link will be able to view and edit this project.
74
+ </p>
75
+ </header>
76
+ <footer>
77
+ <button type="button" class="btn" data-variant="outline">Cancel</button>
78
+ <button type="button" class="btn">Share</button>
79
+ </footer>
80
+ </div>
81
+ </dialog>
82
+
83
+ <!-- Small with media -->
84
+ <button type="button" class="btn" data-variant="outline">
85
+ Show small media alert
86
+ </button>
87
+
88
+ <dialog class="alert-dialog" id="demo-alert-dialog-small-media" data-size="sm" aria-labelledby="alert-dialog-small-media-title" aria-describedby="alert-dialog-small-media-description">
89
+ <div>
90
+ <header>
91
+ <figure><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m7 7 10 10-5 5V2l5 5L7 17"/></svg></figure>
92
+ <h2 data-slot="title" id="alert-dialog-small-media-title">Allow accessory to connect?</h2>
93
+ <p data-slot="description" id="alert-dialog-small-media-description">
94
+ Do you want to allow the USB accessory to connect to this device?
95
+ </p>
96
+ </header>
97
+ <footer>
98
+ <button type="button" class="btn" data-variant="outline">Don't allow</button>
99
+ <button type="button" class="btn">Allow</button>
100
+ </footer>
101
+ </div>
102
+ </dialog>
103
+
104
+ <!-- With image -->
105
+ <button type="button" class="btn" data-variant="outline">
106
+ Remove teammate
107
+ </button>
108
+
109
+ <dialog class="alert-dialog" id="demo-alert-dialog-image" aria-labelledby="alert-dialog-image-title" aria-describedby="alert-dialog-image-description">
110
+ <div>
111
+ <header>
112
+ <figure><img src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' fill='%23cbd5e1'/%3E%3Ccircle cx='32' cy='24' r='11' fill='%23475569'/%3E%3Cpath d='M10 64c0-12 10-22 22-22s22 10 22 22z' fill='%23475569'/%3E%3C/svg%3E" alt="" width="40" height="40"></figure>
113
+ <h2 data-slot="title" id="alert-dialog-image-title">Remove teammate?</h2>
114
+ <p data-slot="description" id="alert-dialog-image-description">
115
+ They will lose access to this workspace and its documents.
116
+ </p>
117
+ </header>
118
+ <footer>
119
+ <button type="button" class="btn" data-variant="outline">Cancel</button>
120
+ <button type="button" class="btn" data-variant="destructive">Remove</button>
121
+ </footer>
122
+ </div>
123
+ </dialog>
124
+
125
+ <!-- Right-to-left -->
126
+ <div dir="rtl" lang="ar" style="display: flex; flex-wrap: wrap; gap: 0.5rem">
127
+ <button type="button" class="btn" data-variant="outline">
128
+ إظهار الحوار
129
+ </button>
130
+
131
+ <dialog class="alert-dialog" id="demo-alert-dialog-rtl" data-size="sm" aria-labelledby="alert-dialog-rtl-title" aria-describedby="alert-dialog-rtl-description">
132
+ <div>
133
+ <header>
134
+ <figure><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m7 7 10 10-5 5V2l5 5L7 17"/></svg></figure>
135
+ <h2 data-slot="title" id="alert-dialog-rtl-title">السماح للملحق بالاتصال؟</h2>
136
+ <p data-slot="description" id="alert-dialog-rtl-description">
137
+ هل تريد السماح لملحق USB بالاتصال بهذا الجهاز؟
138
+ </p>
139
+ </header>
140
+ <footer>
141
+ <button type="button" class="btn" data-variant="outline">عدم السماح</button>
142
+ <button type="button" class="btn">السماح</button>
143
+ </footer>
144
+ </div>
145
+ </dialog>
146
+ </div>
@@ -1,15 +1,62 @@
1
1
  <!-- Default -->
2
2
  <div class="alert" role="alert">
3
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21.801 10A10 10 0 1 1 17 3.335"/><path d="m9 11 3 3L22 4"/></svg>
3
4
  <h3 data-slot="title">Heads up!</h3>
4
5
  <section>
5
- <p>You can add components to your app using the CLI.</p>
6
+ <p>You can add components and dependencies to your app using the CLI.</p>
6
7
  </section>
7
8
  </div>
8
9
 
9
10
  <!-- Destructive -->
10
11
  <div class="alert" data-variant="destructive" role="alert">
11
- <h3 data-slot="title">Session expired</h3>
12
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"/><line x1="12" x2="12" y1="8" y2="12"/><line x1="12" x2="12.01" y1="16" y2="16"/></svg>
13
+ <h3 data-slot="title">Payment failed</h3>
12
14
  <section>
13
- <p>Please log in again to continue.</p>
15
+ <p>Your payment could not be processed. Please check your payment method and try again.</p>
14
16
  </section>
15
17
  </div>
18
+
19
+ <!-- Action -->
20
+ <div class="alert" role="alert">
21
+ <h3 data-slot="title">Dark mode is now available</h3>
22
+ <p data-slot="description">Enable it under your profile settings to get started.</p>
23
+ <footer>
24
+ <button type="button" class="btn" data-size="xs">Enable</button>
25
+ </footer>
26
+ </div>
27
+
28
+ <!-- Description container -->
29
+ <div class="alert" role="alert">
30
+ <h3 data-slot="title">Using the CLI</h3>
31
+ <div data-slot="description">
32
+ <p>Add components and dependencies with the CLI.</p>
33
+ <p>Then customize the alert with your own tokens.</p>
34
+ </div>
35
+ </div>
36
+
37
+ <!-- Custom colors -->
38
+ <div class="alert" role="alert" style="--card: color-mix(in oklab, var(--chart-4) 10%, var(--background)); --border: color-mix(in oklab, var(--chart-4) 40%, var(--background)); --muted-foreground: color-mix(in oklab, var(--chart-4) 35%, var(--foreground))">
39
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"/><path d="M12 9v4"/><path d="M12 17h.01"/></svg>
40
+ <h3 data-slot="title">Your subscription will expire in 3 days.</h3>
41
+ <section>
42
+ <p>Renew now to avoid service interruption or upgrade to a paid plan to continue using the service.</p>
43
+ </section>
44
+ </div>
45
+
46
+ <!-- Right-to-left -->
47
+ <div dir="rtl" lang="ar" style="display: grid; gap: 1rem">
48
+ <div class="alert" role="alert">
49
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21.801 10A10 10 0 1 1 17 3.335"/><path d="m9 11 3 3L22 4"/></svg>
50
+ <h3 data-slot="title">تم الدفع بنجاح</h3>
51
+ <section>
52
+ <p>تمت معالجة دفعتك البالغة 29.99 دولارًا. تم إرسال إيصال إلى عنوان بريدك الإلكتروني.</p>
53
+ </section>
54
+ </div>
55
+ <div class="alert" role="alert">
56
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4"/><path d="M12 8h.01"/></svg>
57
+ <h3 data-slot="title">ميزة جديدة متاحة</h3>
58
+ <section>
59
+ <p>لقد أضفنا دعم الوضع الداكن. يمكنك تفعيله في إعدادات حسابك.</p>
60
+ </section>
61
+ </div>
62
+ </div>
@@ -1,3 +1,8 @@
1
+ <!-- Default -->
2
+ <div class="aspect-ratio" style="max-width: 24rem">
3
+ <img src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 90'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop stop-color='%2394a3b8'/%3E%3Cstop offset='1' stop-color='%23e2e8f0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='160' height='90' fill='url(%23g)'/%3E%3Ctext x='80' y='49' text-anchor='middle' font-family='sans-serif' font-size='12' fill='%23334155'%3E16:9%3C/text%3E%3C/svg%3E" alt="A 16 by 9 media placeholder" />
4
+ </div>
5
+
1
6
  <!-- 16 / 9 -->
2
7
  <div class="aspect-ratio" style="--ratio: 16 / 9">
3
8
  <img src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 90'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop stop-color='%2394a3b8'/%3E%3Cstop offset='1' stop-color='%23e2e8f0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='160' height='90' fill='url(%23g)'/%3E%3Ctext x='80' y='49' text-anchor='middle' font-family='sans-serif' font-size='12' fill='%23334155'%3E16:9%3C/text%3E%3C/svg%3E" alt="A 16 by 9 media placeholder" />
@@ -1,3 +1,15 @@
1
+ <!-- Default -->
2
+ <div class="attachment">
3
+ <div data-slot="media"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"/><path d="M14 2v4a2 2 0 0 0 2 2h4"/><path d="M10 9H8"/><path d="M16 13H8"/><path d="M16 17H8"/></svg></div>
4
+ <div data-slot="content">
5
+ <span data-slot="title">report.pdf</span>
6
+ <span data-slot="description">PDF · 2.4 MB</span>
7
+ </div>
8
+ <div data-slot="actions">
9
+ <button type="button" class="btn" data-variant="ghost" data-size="icon-xs" aria-label="Remove report.pdf">×</button>
10
+ </div>
11
+ </div>
12
+
1
13
  <!-- States -->
2
14
  <div style="display: flex; flex-direction: column; gap: 0.75rem; max-width: 24rem">
3
15
  <div class="attachment">
@@ -1,3 +1,12 @@
1
+ <!-- Default -->
2
+ <span class="avatar"><span data-slot="fallback">CN</span></span>
3
+
4
+ <!-- Basic -->
5
+ <span class="avatar">
6
+ <img src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' fill='%23cbd5e1'/%3E%3Ccircle cx='32' cy='24' r='11' fill='%23475569'/%3E%3Cpath d='M10 64c0-12 10-22 22-22s22 10 22 22z' fill='%23475569'/%3E%3C/svg%3E" alt="Ada Lovelace" />
7
+ <span data-slot="fallback" aria-hidden="true">AL</span>
8
+ </span>
9
+
1
10
  <!-- Sizes -->
2
11
  <div style="display: flex; align-items: center; gap: 0.75rem">
3
12
  <span class="avatar" data-size="sm"><span data-slot="fallback">SM</span></span>
@@ -5,17 +14,53 @@
5
14
  <span class="avatar" data-size="lg"><span data-slot="fallback">LG</span></span>
6
15
  </div>
7
16
 
8
- <!-- Image and badge -->
9
- <span class="avatar" data-size="lg">
17
+ <!-- Badge -->
18
+ <span class="avatar">
10
19
  <img src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' fill='%23cbd5e1'/%3E%3Ccircle cx='32' cy='24' r='11' fill='%23475569'/%3E%3Cpath d='M10 64c0-12 10-22 22-22s22 10 22 22z' fill='%23475569'/%3E%3C/svg%3E" alt="Ada Lovelace" />
11
20
  <span data-slot="fallback" aria-hidden="true">AL</span>
12
21
  <span data-slot="badge" aria-hidden="true"></span>
13
22
  </span>
14
23
 
24
+ <!-- Badge with icon -->
25
+ <span class="avatar" data-size="lg">
26
+ <img src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' fill='%23cbd5e1'/%3E%3Ccircle cx='32' cy='24' r='11' fill='%23475569'/%3E%3Cpath d='M10 64c0-12 10-22 22-22s22 10 22 22z' fill='%23475569'/%3E%3C/svg%3E" alt="Ada Lovelace" />
27
+ <span data-slot="fallback" aria-hidden="true">AL</span>
28
+ <span data-slot="badge" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12h14"/><path d="M12 5v14"/></svg></span>
29
+ </span>
30
+
15
31
  <!-- Group -->
16
- <div class="avatar-group">
32
+ <div class="avatar-group" role="group" aria-label="Project contributors">
17
33
  <span class="avatar"><span data-slot="fallback">AL</span></span>
18
34
  <span class="avatar"><span data-slot="fallback">GR</span></span>
19
35
  <span class="avatar"><span data-slot="fallback">TS</span></span>
20
- <span class="avatar"><span data-slot="fallback">+3</span></span>
36
+ </div>
37
+
38
+ <!-- Group count -->
39
+ <div class="avatar-group" role="group" aria-label="Project contributors">
40
+ <span class="avatar"><span data-slot="fallback">AL</span></span>
41
+ <span class="avatar"><span data-slot="fallback">GR</span></span>
42
+ <span class="avatar"><span data-slot="fallback">TS</span></span>
43
+ <span data-slot="count"><span aria-hidden="true">+3</span><span class="sr-only">3 more contributors</span></span>
44
+ </div>
45
+
46
+ <!-- Group with icon -->
47
+ <div class="avatar-group" role="group" aria-label="Project contributors">
48
+ <span class="avatar"><span data-slot="fallback">AL</span></span>
49
+ <span class="avatar"><span data-slot="fallback">GR</span></span>
50
+ <span class="avatar"><span data-slot="fallback">TS</span></span>
51
+ <span data-slot="count"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12h14"/><path d="M12 5v14"/></svg><span class="sr-only">3 more contributors</span></span>
52
+ </div>
53
+
54
+ <!-- Right-to-left -->
55
+ <div style="display: flex; flex-wrap: wrap; align-items: center; gap: 1rem" dir="rtl" lang="ar">
56
+ <span class="avatar" data-size="lg">
57
+ <span data-slot="fallback">ع</span>
58
+ <span data-slot="badge" aria-hidden="true"></span>
59
+ </span>
60
+ <div class="avatar-group" role="group" aria-label="أعضاء الفريق">
61
+ <span class="avatar" data-size="lg"><span data-slot="fallback">أح</span></span>
62
+ <span class="avatar" data-size="lg"><span data-slot="fallback">سم</span></span>
63
+ <span class="avatar" data-size="lg"><span data-slot="fallback">لي</span></span>
64
+ <span data-slot="count"><span aria-hidden="true">+٣</span><span class="sr-only">٣ أعضاء آخرون</span></span>
65
+ </div>
21
66
  </div>
@@ -1,3 +1,6 @@
1
+ <!-- Default -->
2
+ <span class="badge">Badge</span>
3
+
1
4
  <!-- Variants -->
2
5
  <div style="display: flex; flex-wrap: wrap; gap: 0.5rem">
3
6
  <span class="badge">Default</span>