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.
- package/package.json +1 -1
- package/registry/components/alert-dialog.css +7 -0
- package/registry/components/alert.css +2 -0
- package/registry/components/avatar.css +11 -2
- package/registry/components/button-group.css +33 -18
- package/registry/components/button.css +6 -0
- package/registry/components/checkbox.css +17 -2
- package/registry/components/command.css +7 -0
- package/registry/components/context-menu.css +8 -0
- package/registry/components/dialog.css +24 -1
- package/registry/components/drawer.css +4 -0
- package/registry/components/empty.css +2 -0
- package/registry/components/field.css +8 -3
- package/registry/components/input-group.css +12 -1
- package/registry/components/input-otp.css +6 -0
- package/registry/components/input.css +5 -0
- package/registry/components/navigation-menu.css +18 -1
- package/registry/components/radio.css +19 -4
- package/registry/components/sheet.css +10 -0
- package/registry/components/sidebar.css +68 -0
- package/registry/components/slider.css +1 -1
- package/registry/components/switch.css +14 -0
- package/registry/components/table.css +4 -4
- package/registry/components/textarea.css +6 -0
- package/registry/components/toggle-group.css +8 -0
- package/registry/components/tooltip.css +106 -78
- package/registry/examples/alert-dialog.html +133 -7
- package/registry/examples/alert.html +50 -3
- package/registry/examples/aspect-ratio.html +5 -0
- package/registry/examples/attachment.html +12 -0
- package/registry/examples/avatar.html +49 -4
- package/registry/examples/badge.html +3 -0
- package/registry/examples/bubble.html +5 -0
- package/registry/examples/button-group.html +140 -12
- package/registry/examples/button.html +60 -15
- package/registry/examples/checkbox.html +107 -4
- package/registry/examples/code-block.html +5 -0
- package/registry/examples/combobox.html +13 -0
- package/registry/examples/command.html +322 -1
- package/registry/examples/context-menu.html +170 -1
- package/registry/examples/dialog.html +166 -5
- package/registry/examples/drawer.html +198 -10
- package/registry/examples/dropdown-menu.html +259 -2
- package/registry/examples/empty.html +107 -1
- package/registry/examples/field.html +232 -0
- package/registry/examples/input-group.html +101 -5
- package/registry/examples/input-otp.html +74 -2
- package/registry/examples/input.html +75 -4
- package/registry/examples/item.html +12 -0
- package/registry/examples/marker.html +6 -0
- package/registry/examples/menubar.html +338 -9
- package/registry/examples/message.html +16 -0
- package/registry/examples/navigation-menu.html +166 -17
- package/registry/examples/popover.html +153 -6
- package/registry/examples/progress.html +66 -3
- package/registry/examples/questionnaire.html +33 -0
- package/registry/examples/radio.html +121 -9
- package/registry/examples/resizable.html +11 -0
- package/registry/examples/scroll-area.html +9 -0
- package/registry/examples/separator.html +3 -0
- package/registry/examples/sheet.html +205 -7
- package/registry/examples/sidebar.html +377 -1
- package/registry/examples/slider.html +52 -5
- package/registry/examples/spinner.html +3 -0
- package/registry/examples/switch.html +68 -0
- package/registry/examples/table.html +192 -8
- package/registry/examples/textarea.html +33 -3
- package/registry/examples/toggle-group.html +72 -12
- package/registry/examples/toggle.html +34 -7
- package/registry/examples/tooltip.html +99 -2
- package/registry/examples/trace.html +13 -1
- package/registry/primitives/menu.css +10 -0
- package/registry/primitives/popover.css +38 -6
- package/registry/registry.json +116 -32
- package/registry/styles/luma/accordion.css +1 -1
- package/registry/styles/luma/alert-dialog.css +8 -0
- package/registry/styles/luma/alert.css +1 -17
- package/registry/styles/luma/avatar.css +44 -1
- package/registry/styles/luma/button-group.css +5 -17
- package/registry/styles/luma/button.css +8 -8
- package/registry/styles/luma/checkbox.css +6 -0
- package/registry/styles/luma/collapsible.css +1 -1
- package/registry/styles/luma/command.css +6 -0
- package/registry/styles/luma/drawer.css +8 -0
- package/registry/styles/luma/empty.css +2 -4
- package/registry/styles/luma/field.css +1 -1
- package/registry/styles/luma/input-group.css +14 -2
- package/registry/styles/luma/input-otp.css +8 -0
- package/registry/styles/luma/input.css +5 -0
- package/registry/styles/luma/kbd.css +1 -1
- package/registry/styles/luma/label.css +4 -0
- package/registry/styles/luma/menubar.css +1 -1
- package/registry/styles/luma/navigation-menu.css +11 -0
- package/registry/styles/luma/primitives/menu.css +8 -4
- package/registry/styles/luma/progress.css +26 -1
- package/registry/styles/luma/radio.css +3 -1
- package/registry/styles/luma/sheet.css +20 -0
- package/registry/styles/luma/sidebar.css +114 -1
- package/registry/styles/luma/switch.css +39 -10
- package/registry/styles/luma/table.css +6 -2
- package/registry/styles/luma/textarea.css +5 -0
- package/registry/styles/luma/toggle-group.css +11 -0
- package/registry/styles/lyra/accordion.css +1 -1
- package/registry/styles/lyra/alert-dialog.css +8 -0
- package/registry/styles/lyra/alert.css +1 -17
- package/registry/styles/lyra/avatar.css +44 -1
- package/registry/styles/lyra/button-group.css +5 -17
- package/registry/styles/lyra/button.css +8 -8
- package/registry/styles/lyra/checkbox.css +6 -0
- package/registry/styles/lyra/collapsible.css +1 -1
- package/registry/styles/lyra/command.css +6 -0
- package/registry/styles/lyra/drawer.css +8 -0
- package/registry/styles/lyra/empty.css +2 -4
- package/registry/styles/lyra/field.css +1 -1
- package/registry/styles/lyra/input-group.css +15 -3
- package/registry/styles/lyra/input-otp.css +8 -0
- package/registry/styles/lyra/input.css +5 -0
- package/registry/styles/lyra/kbd.css +1 -1
- package/registry/styles/lyra/label.css +4 -0
- package/registry/styles/lyra/menubar.css +1 -1
- package/registry/styles/lyra/navigation-menu.css +11 -0
- package/registry/styles/lyra/primitives/menu.css +8 -4
- package/registry/styles/lyra/progress.css +26 -1
- package/registry/styles/lyra/radio.css +3 -1
- package/registry/styles/lyra/sheet.css +20 -0
- package/registry/styles/lyra/sidebar.css +114 -1
- package/registry/styles/lyra/switch.css +37 -8
- package/registry/styles/lyra/table.css +6 -2
- package/registry/styles/lyra/textarea.css +5 -1
- package/registry/styles/maia/accordion.css +1 -1
- package/registry/styles/maia/alert-dialog.css +8 -0
- package/registry/styles/maia/alert.css +1 -17
- package/registry/styles/maia/avatar.css +44 -1
- package/registry/styles/maia/button-group.css +5 -17
- package/registry/styles/maia/button.css +8 -8
- package/registry/styles/maia/checkbox.css +6 -0
- package/registry/styles/maia/collapsible.css +1 -1
- package/registry/styles/maia/command.css +6 -0
- package/registry/styles/maia/drawer.css +8 -0
- package/registry/styles/maia/empty.css +2 -4
- package/registry/styles/maia/field.css +1 -1
- package/registry/styles/maia/input-group.css +14 -2
- package/registry/styles/maia/input-otp.css +8 -0
- package/registry/styles/maia/input.css +5 -0
- package/registry/styles/maia/kbd.css +1 -1
- package/registry/styles/maia/label.css +4 -0
- package/registry/styles/maia/menubar.css +1 -1
- package/registry/styles/maia/navigation-menu.css +11 -0
- package/registry/styles/maia/primitives/menu.css +8 -4
- package/registry/styles/maia/progress.css +26 -1
- package/registry/styles/maia/radio.css +3 -1
- package/registry/styles/maia/sheet.css +20 -0
- package/registry/styles/maia/sidebar.css +114 -1
- package/registry/styles/maia/switch.css +37 -8
- package/registry/styles/maia/table.css +6 -2
- package/registry/styles/maia/textarea.css +5 -0
- package/registry/styles/maia/toggle-group.css +11 -0
- package/registry/styles/mira/accordion.css +1 -1
- package/registry/styles/mira/alert-dialog.css +8 -0
- package/registry/styles/mira/alert.css +1 -17
- package/registry/styles/mira/avatar.css +44 -1
- package/registry/styles/mira/button-group.css +5 -17
- package/registry/styles/mira/button.css +8 -8
- package/registry/styles/mira/checkbox.css +6 -0
- package/registry/styles/mira/collapsible.css +1 -1
- package/registry/styles/mira/command.css +6 -0
- package/registry/styles/mira/drawer.css +8 -0
- package/registry/styles/mira/empty.css +2 -4
- package/registry/styles/mira/field.css +1 -1
- package/registry/styles/mira/input-group.css +14 -2
- package/registry/styles/mira/input-otp.css +8 -0
- package/registry/styles/mira/input.css +7 -2
- package/registry/styles/mira/kbd.css +1 -1
- package/registry/styles/mira/label.css +4 -0
- package/registry/styles/mira/menubar.css +1 -1
- package/registry/styles/mira/navigation-menu.css +11 -0
- package/registry/styles/mira/primitives/menu.css +8 -4
- package/registry/styles/mira/progress.css +26 -1
- package/registry/styles/mira/radio.css +3 -1
- package/registry/styles/mira/sheet.css +20 -0
- package/registry/styles/mira/sidebar.css +113 -0
- package/registry/styles/mira/switch.css +39 -10
- package/registry/styles/mira/table.css +7 -3
- package/registry/styles/mira/textarea.css +6 -2
- package/registry/styles/mira/toggle-group.css +11 -0
- package/registry/styles/nova/accordion.css +1 -1
- package/registry/styles/nova/alert-dialog.css +8 -0
- package/registry/styles/nova/alert.css +1 -17
- package/registry/styles/nova/avatar.css +44 -1
- package/registry/styles/nova/button-group.css +5 -17
- package/registry/styles/nova/button.css +8 -8
- package/registry/styles/nova/checkbox.css +6 -0
- package/registry/styles/nova/collapsible.css +1 -1
- package/registry/styles/nova/command.css +8 -0
- package/registry/styles/nova/drawer.css +8 -0
- package/registry/styles/nova/empty.css +2 -4
- package/registry/styles/nova/field.css +1 -1
- package/registry/styles/nova/input-group.css +15 -3
- package/registry/styles/nova/input-otp.css +8 -0
- package/registry/styles/nova/input.css +5 -0
- package/registry/styles/nova/kbd.css +1 -1
- package/registry/styles/nova/label.css +4 -0
- package/registry/styles/nova/menubar.css +1 -1
- package/registry/styles/nova/navigation-menu.css +11 -0
- package/registry/styles/nova/primitives/menu.css +8 -4
- package/registry/styles/nova/progress.css +26 -1
- package/registry/styles/nova/radio.css +3 -1
- package/registry/styles/nova/sheet.css +20 -0
- package/registry/styles/nova/sidebar.css +114 -1
- package/registry/styles/nova/switch.css +37 -8
- package/registry/styles/nova/table.css +6 -2
- package/registry/styles/nova/textarea.css +5 -0
- package/registry/styles/nova/toggle.css +2 -0
- package/registry/styles/rhea/accordion.css +1 -1
- package/registry/styles/rhea/alert-dialog.css +8 -0
- package/registry/styles/rhea/alert.css +1 -17
- package/registry/styles/rhea/avatar.css +44 -1
- package/registry/styles/rhea/button-group.css +5 -17
- package/registry/styles/rhea/button.css +8 -8
- package/registry/styles/rhea/checkbox.css +6 -0
- package/registry/styles/rhea/collapsible.css +1 -1
- package/registry/styles/rhea/command.css +6 -0
- package/registry/styles/rhea/drawer.css +8 -0
- package/registry/styles/rhea/empty.css +2 -4
- package/registry/styles/rhea/field.css +1 -1
- package/registry/styles/rhea/input-group.css +15 -3
- package/registry/styles/rhea/input-otp.css +8 -0
- package/registry/styles/rhea/input.css +5 -0
- package/registry/styles/rhea/kbd.css +1 -1
- package/registry/styles/rhea/label.css +4 -0
- package/registry/styles/rhea/menubar.css +1 -1
- package/registry/styles/rhea/navigation-menu.css +11 -0
- package/registry/styles/rhea/primitives/menu.css +8 -4
- package/registry/styles/rhea/primitives/popover.css +1 -1
- package/registry/styles/rhea/progress.css +25 -0
- package/registry/styles/rhea/radio.css +3 -1
- package/registry/styles/rhea/sheet.css +20 -0
- package/registry/styles/rhea/sidebar.css +114 -1
- package/registry/styles/rhea/switch.css +39 -10
- package/registry/styles/rhea/table.css +6 -2
- package/registry/styles/rhea/textarea.css +5 -0
- package/registry/styles/rhea/toggle-group.css +11 -0
- package/registry/styles/sera/accordion.css +1 -1
- package/registry/styles/sera/alert-dialog.css +8 -0
- package/registry/styles/sera/alert.css +1 -17
- package/registry/styles/sera/avatar.css +44 -1
- package/registry/styles/sera/button-group.css +5 -17
- package/registry/styles/sera/button.css +8 -8
- package/registry/styles/sera/checkbox.css +6 -0
- package/registry/styles/sera/collapsible.css +1 -1
- package/registry/styles/sera/command.css +6 -0
- package/registry/styles/sera/drawer.css +8 -0
- package/registry/styles/sera/empty.css +2 -4
- package/registry/styles/sera/field.css +1 -1
- package/registry/styles/sera/input-group.css +14 -2
- package/registry/styles/sera/input-otp.css +8 -0
- package/registry/styles/sera/input.css +5 -0
- package/registry/styles/sera/kbd.css +1 -1
- package/registry/styles/sera/label.css +4 -0
- package/registry/styles/sera/menubar.css +1 -1
- package/registry/styles/sera/navigation-menu.css +11 -0
- package/registry/styles/sera/primitives/menu.css +8 -4
- package/registry/styles/sera/progress.css +26 -1
- package/registry/styles/sera/radio.css +3 -1
- package/registry/styles/sera/sheet.css +20 -0
- package/registry/styles/sera/sidebar.css +117 -0
- package/registry/styles/sera/switch.css +37 -8
- package/registry/styles/sera/table.css +6 -2
- package/registry/styles/sera/textarea.css +5 -0
- package/registry/styles/sera/toggle-group.css +10 -0
- package/registry/styles/vega/accordion.css +1 -1
- package/registry/styles/vega/alert-dialog.css +8 -0
- package/registry/styles/vega/alert.css +1 -17
- package/registry/styles/vega/avatar.css +44 -1
- package/registry/styles/vega/button-group.css +5 -17
- package/registry/styles/vega/button.css +8 -8
- package/registry/styles/vega/checkbox.css +6 -0
- package/registry/styles/vega/collapsible.css +1 -1
- package/registry/styles/vega/command.css +6 -0
- package/registry/styles/vega/drawer.css +8 -0
- package/registry/styles/vega/empty.css +2 -4
- package/registry/styles/vega/field.css +1 -1
- package/registry/styles/vega/input-group.css +14 -2
- package/registry/styles/vega/input-otp.css +8 -0
- package/registry/styles/vega/input.css +5 -0
- package/registry/styles/vega/kbd.css +1 -1
- package/registry/styles/vega/label.css +4 -0
- package/registry/styles/vega/menubar.css +1 -1
- package/registry/styles/vega/navigation-menu.css +11 -0
- package/registry/styles/vega/primitives/menu.css +8 -4
- package/registry/styles/vega/progress.css +26 -1
- package/registry/styles/vega/radio.css +3 -1
- package/registry/styles/vega/sheet.css +20 -0
- package/registry/styles/vega/sidebar.css +114 -1
- package/registry/styles/vega/switch.css +37 -8
- package/registry/styles/vega/table.css +6 -2
- package/registry/styles/vega/textarea.css +5 -0
- 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
|
-
|
|
6
|
+
&::before {
|
|
7
7
|
pointer-events: none;
|
|
8
8
|
visibility: hidden;
|
|
9
9
|
position: absolute;
|
|
10
10
|
z-index: 60;
|
|
11
|
-
|
|
12
|
-
max-
|
|
13
|
-
|
|
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
|
-
|
|
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)
|
|
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
|
-
|
|
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
|
-
|
|
70
|
-
|
|
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
|
-
|
|
78
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
216
|
-
|
|
217
|
-
|
|
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
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
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
|
-
<!--
|
|
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
|
|
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="
|
|
10
|
-
<h2 data-slot="title" id="alert-title">
|
|
11
|
-
<p data-slot="description" id="alert-description">
|
|
12
|
-
This
|
|
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
|
-
<
|
|
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
|
|
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
|
-
<!--
|
|
9
|
-
<span class="avatar"
|
|
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
|
-
|
|
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>
|