loseta 0.16.0 → 0.18.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/README.md +33 -8
- package/dist/commands/add.d.ts +8 -0
- package/dist/commands/add.js +60 -15
- package/dist/commands/add.js.map +1 -1
- package/dist/commands/init.js +2 -1
- package/dist/commands/init.js.map +1 -1
- package/dist/config.d.ts +7 -0
- package/dist/config.js +13 -0
- package/dist/config.js.map +1 -1
- package/dist/imports.d.ts +4 -0
- package/dist/imports.js +30 -2
- package/dist/imports.js.map +1 -1
- package/dist/install.d.ts +23 -3
- package/dist/install.js +84 -5
- package/dist/install.js.map +1 -1
- package/dist/style-switch.js +2 -1
- package/dist/style-switch.js.map +1 -1
- package/dist/types.d.ts +11 -0
- package/dist/ui.js +4 -1
- package/dist/ui.js.map +1 -1
- package/package.json +4 -3
- package/registry/behaviors/code-block.js +106 -0
- package/registry/behaviors/combobox.js +237 -0
- package/registry/behaviors/command.js +105 -0
- package/registry/behaviors/core.js +302 -0
- package/registry/behaviors/dialog.js +97 -0
- package/registry/behaviors/listbox.js +135 -0
- package/registry/behaviors/menu.js +586 -0
- package/registry/behaviors/popover.js +127 -0
- package/registry/behaviors/select.js +196 -0
- package/registry/behaviors/tabs.js +95 -0
- package/registry/behaviors/toast.js +137 -0
- package/registry/components/badge.css +4 -7
- package/registry/components/breadcrumb.css +9 -1
- package/registry/components/calendar.css +39 -0
- package/registry/components/card.css +5 -0
- package/registry/components/code-block.css +19 -0
- package/registry/components/input-otp.css +103 -10
- package/registry/components/kbd.css +8 -0
- package/registry/components/native-select.css +6 -0
- package/registry/components/select.css +3 -0
- package/registry/components/tooltip.css +295 -144
- package/registry/examples/alert-dialog.html +21 -21
- package/registry/examples/badge.html +37 -0
- package/registry/examples/breadcrumb.html +86 -6
- package/registry/examples/button-group.html +3 -3
- package/registry/examples/calendar.html +687 -51
- package/registry/examples/card.html +190 -4
- package/registry/examples/code-block.html +10 -4
- package/registry/examples/combobox.html +2 -0
- package/registry/examples/command.html +17 -17
- package/registry/examples/context-menu.html +18 -18
- package/registry/examples/dialog.html +15 -15
- package/registry/examples/drawer.html +22 -22
- package/registry/examples/input-otp.html +116 -11
- package/registry/examples/kbd.html +90 -2
- package/registry/examples/native-select.html +83 -2
- package/registry/examples/select.html +206 -6
- package/registry/examples/sheet.html +23 -23
- package/registry/examples/sidebar.html +11 -11
- package/registry/examples/toast.html +11 -0
- package/registry/examples/tooltip.html +75 -70
- package/registry/primitives/dialog-shell.css +5 -0
- package/registry/primitives/menu.css +15 -3
- package/registry/registry.json +231 -9
- package/registry/schema.json +17 -0
- package/registry/styles/luma/badge.css +28 -0
- package/registry/styles/luma/breadcrumb.css +2 -1
- package/registry/styles/luma/calendar.css +62 -0
- package/registry/styles/luma/card.css +9 -27
- package/registry/styles/luma/input-otp.css +79 -36
- package/registry/styles/luma/native-select.css +9 -2
- package/registry/styles/luma/primitives/listbox.css +8 -0
- package/registry/styles/luma/select.css +7 -2
- package/registry/styles/luma/tooltip.css +29 -16
- package/registry/styles/lyra/badge.css +28 -0
- package/registry/styles/lyra/breadcrumb.css +2 -1
- package/registry/styles/lyra/calendar.css +62 -0
- package/registry/styles/lyra/card.css +9 -27
- package/registry/styles/lyra/input-otp.css +79 -36
- package/registry/styles/lyra/native-select.css +6 -1
- package/registry/styles/lyra/primitives/listbox.css +8 -0
- package/registry/styles/lyra/select.css +6 -1
- package/registry/styles/lyra/tooltip.css +29 -16
- package/registry/styles/maia/badge.css +29 -0
- package/registry/styles/maia/breadcrumb.css +2 -1
- package/registry/styles/maia/calendar.css +62 -0
- package/registry/styles/maia/card.css +9 -27
- package/registry/styles/maia/input-otp.css +79 -36
- package/registry/styles/maia/native-select.css +9 -2
- package/registry/styles/maia/primitives/listbox.css +8 -0
- package/registry/styles/maia/select.css +7 -2
- package/registry/styles/maia/tooltip.css +29 -16
- package/registry/styles/mira/badge.css +32 -0
- package/registry/styles/mira/breadcrumb.css +2 -1
- package/registry/styles/mira/calendar.css +62 -0
- package/registry/styles/mira/card.css +9 -27
- package/registry/styles/mira/input-otp.css +79 -36
- package/registry/styles/mira/native-select.css +7 -2
- package/registry/styles/mira/primitives/listbox.css +8 -0
- package/registry/styles/mira/select.css +7 -2
- package/registry/styles/mira/tooltip.css +29 -16
- package/registry/styles/nova/badge.css +28 -0
- package/registry/styles/nova/breadcrumb.css +2 -1
- package/registry/styles/nova/calendar.css +62 -0
- package/registry/styles/nova/card.css +9 -27
- package/registry/styles/nova/input-otp.css +79 -36
- package/registry/styles/nova/native-select.css +9 -2
- package/registry/styles/nova/primitives/listbox.css +8 -0
- package/registry/styles/nova/select.css +7 -2
- package/registry/styles/nova/tooltip.css +29 -16
- package/registry/styles/rhea/badge.css +28 -0
- package/registry/styles/rhea/breadcrumb.css +2 -1
- package/registry/styles/rhea/calendar.css +62 -0
- package/registry/styles/rhea/card.css +9 -27
- package/registry/styles/rhea/input-otp.css +79 -36
- package/registry/styles/rhea/native-select.css +9 -2
- package/registry/styles/rhea/primitives/listbox.css +8 -0
- package/registry/styles/rhea/select.css +7 -2
- package/registry/styles/rhea/tooltip.css +29 -16
- package/registry/styles/sera/badge.css +29 -1
- package/registry/styles/sera/breadcrumb.css +2 -1
- package/registry/styles/sera/calendar.css +66 -0
- package/registry/styles/sera/card.css +9 -27
- package/registry/styles/sera/input-otp.css +80 -37
- package/registry/styles/sera/native-select.css +9 -2
- package/registry/styles/sera/primitives/listbox.css +8 -0
- package/registry/styles/sera/select.css +7 -2
- package/registry/styles/sera/tooltip.css +29 -16
- package/registry/styles/vega/badge.css +28 -0
- package/registry/styles/vega/breadcrumb.css +2 -1
- package/registry/styles/vega/calendar.css +62 -0
- package/registry/styles/vega/card.css +9 -27
- package/registry/styles/vega/input-otp.css +79 -36
- package/registry/styles/vega/native-select.css +9 -2
- package/registry/styles/vega/primitives/listbox.css +8 -0
- package/registry/styles/vega/select.css +7 -2
- package/registry/styles/vega/tooltip.css +29 -16
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
<!-- Default -->
|
|
2
|
-
<div class="select">
|
|
3
|
-
<
|
|
2
|
+
<div class="select" style="max-width: 12rem">
|
|
3
|
+
<input type="hidden" data-slot="input" name="value">
|
|
4
|
+
<button type="button" role="combobox" aria-haspopup="listbox" aria-expanded="false" aria-controls="demo-select-default-panel" aria-label="Fruit">
|
|
4
5
|
<span data-slot="value" data-placeholder>Select a fruit</span>
|
|
5
6
|
<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="m6 9 6 6 6-6"/></svg>
|
|
6
7
|
</button>
|
|
7
|
-
<div data-popover data-side="bottom" aria-hidden="true" id="select-
|
|
8
|
+
<div data-popover data-side="bottom" aria-hidden="true" id="demo-select-default-panel">
|
|
8
9
|
<div role="listbox" aria-label="Fruit">
|
|
9
10
|
<div role="option" aria-selected="false">
|
|
10
11
|
<span data-slot="text">Apple</span>
|
|
@@ -26,12 +27,13 @@
|
|
|
26
27
|
</div>
|
|
27
28
|
|
|
28
29
|
<!-- Small, selected -->
|
|
29
|
-
<div class="select" data-size="sm">
|
|
30
|
-
<
|
|
30
|
+
<div class="select" data-size="sm" style="max-width: 12rem">
|
|
31
|
+
<input type="hidden" data-slot="input" name="value">
|
|
32
|
+
<button type="button" role="combobox" aria-haspopup="listbox" aria-expanded="false" aria-controls="demo-select-small-panel" aria-label="Fruit">
|
|
31
33
|
<span data-slot="value">Apple</span>
|
|
32
34
|
<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="m6 9 6 6 6-6"/></svg>
|
|
33
35
|
</button>
|
|
34
|
-
<div data-popover data-side="bottom" aria-hidden="true" id="select-
|
|
36
|
+
<div data-popover data-side="bottom" aria-hidden="true" id="demo-select-small-panel">
|
|
35
37
|
<div role="listbox" aria-label="Fruit">
|
|
36
38
|
<div role="option" aria-selected="true">
|
|
37
39
|
<span data-slot="text">Apple</span>
|
|
@@ -48,3 +50,201 @@
|
|
|
48
50
|
</div>
|
|
49
51
|
</div>
|
|
50
52
|
</div>
|
|
53
|
+
|
|
54
|
+
<!-- Groups -->
|
|
55
|
+
<div class="field" style="max-width: 20rem">
|
|
56
|
+
<label class="label" for="demo-select-groups-trigger">Food</label>
|
|
57
|
+
<div class="select" style="max-width: 12rem">
|
|
58
|
+
<input type="hidden" data-slot="input" name="value">
|
|
59
|
+
<button type="button" role="combobox" aria-haspopup="listbox" aria-expanded="false" aria-controls="demo-select-groups-panel" id="demo-select-groups-trigger">
|
|
60
|
+
<span data-slot="value" data-placeholder>Select a food</span>
|
|
61
|
+
<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="m6 9 6 6 6-6"/></svg>
|
|
62
|
+
</button>
|
|
63
|
+
<div data-popover data-side="bottom" aria-hidden="true" id="demo-select-groups-panel">
|
|
64
|
+
<div role="listbox" aria-label="Food">
|
|
65
|
+
<div role="group" aria-labelledby="demo-select-groups-fruits">
|
|
66
|
+
<div data-slot="label" id="demo-select-groups-fruits">Fruits</div>
|
|
67
|
+
<div role="option" aria-selected="false">
|
|
68
|
+
<span data-slot="text">Apple</span>
|
|
69
|
+
<span data-slot="indicator" aria-hidden="true">✓</span>
|
|
70
|
+
</div>
|
|
71
|
+
<div role="option" aria-selected="false">
|
|
72
|
+
<span data-slot="text">Banana</span>
|
|
73
|
+
<span data-slot="indicator" aria-hidden="true">✓</span>
|
|
74
|
+
</div>
|
|
75
|
+
<div role="option" aria-selected="false">
|
|
76
|
+
<span data-slot="text">Blueberry</span>
|
|
77
|
+
<span data-slot="indicator" aria-hidden="true">✓</span>
|
|
78
|
+
</div>
|
|
79
|
+
</div>
|
|
80
|
+
<div role="separator" aria-hidden="true"></div>
|
|
81
|
+
<div role="group" aria-labelledby="demo-select-groups-vegetables">
|
|
82
|
+
<div data-slot="label" id="demo-select-groups-vegetables">Vegetables</div>
|
|
83
|
+
<div role="option" aria-selected="false">
|
|
84
|
+
<span data-slot="text">Carrot</span>
|
|
85
|
+
<span data-slot="indicator" aria-hidden="true">✓</span>
|
|
86
|
+
</div>
|
|
87
|
+
<div role="option" aria-selected="false">
|
|
88
|
+
<span data-slot="text">Broccoli</span>
|
|
89
|
+
<span data-slot="indicator" aria-hidden="true">✓</span>
|
|
90
|
+
</div>
|
|
91
|
+
<div role="option" aria-selected="false">
|
|
92
|
+
<span data-slot="text">Spinach</span>
|
|
93
|
+
<span data-slot="indicator" aria-hidden="true">✓</span>
|
|
94
|
+
</div>
|
|
95
|
+
</div>
|
|
96
|
+
</div>
|
|
97
|
+
</div>
|
|
98
|
+
</div>
|
|
99
|
+
</div>
|
|
100
|
+
|
|
101
|
+
<!-- Disabled -->
|
|
102
|
+
<div class="field" style="max-width: 20rem">
|
|
103
|
+
<label class="label" for="demo-select-disabled-trigger">Fruit</label>
|
|
104
|
+
<div class="select" style="max-width: 12rem">
|
|
105
|
+
<input type="hidden" data-slot="input" name="value">
|
|
106
|
+
<button type="button" role="combobox" aria-haspopup="listbox" aria-expanded="false" aria-controls="demo-select-disabled-panel" id="demo-select-disabled-trigger" disabled>
|
|
107
|
+
<span data-slot="value">Apple</span>
|
|
108
|
+
<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="m6 9 6 6 6-6"/></svg>
|
|
109
|
+
</button>
|
|
110
|
+
<div data-popover data-side="bottom" aria-hidden="true" id="demo-select-disabled-panel">
|
|
111
|
+
<div role="listbox" aria-label="Fruit">
|
|
112
|
+
<div role="option" aria-selected="true">
|
|
113
|
+
<span data-slot="text">Apple</span>
|
|
114
|
+
<span data-slot="indicator" aria-hidden="true">✓</span>
|
|
115
|
+
</div>
|
|
116
|
+
<div role="option" aria-selected="false">
|
|
117
|
+
<span data-slot="text">Banana</span>
|
|
118
|
+
<span data-slot="indicator" aria-hidden="true">✓</span>
|
|
119
|
+
</div>
|
|
120
|
+
<div role="option" aria-selected="false">
|
|
121
|
+
<span data-slot="text">Orange</span>
|
|
122
|
+
<span data-slot="indicator" aria-hidden="true">✓</span>
|
|
123
|
+
</div>
|
|
124
|
+
</div>
|
|
125
|
+
</div>
|
|
126
|
+
</div>
|
|
127
|
+
<p>This field is currently disabled.</p>
|
|
128
|
+
</div>
|
|
129
|
+
|
|
130
|
+
<!-- Invalid -->
|
|
131
|
+
<div class="field" style="max-width: 20rem">
|
|
132
|
+
<label class="label" for="demo-select-invalid-trigger">Fruit</label>
|
|
133
|
+
<div class="select" style="max-width: 12rem">
|
|
134
|
+
<input type="hidden" data-slot="input" name="value">
|
|
135
|
+
<button type="button" role="combobox" aria-haspopup="listbox" aria-expanded="false" aria-controls="demo-select-invalid-panel" aria-invalid="true" aria-describedby="demo-select-invalid-error" id="demo-select-invalid-trigger">
|
|
136
|
+
<span data-slot="value" data-placeholder>Select a fruit</span>
|
|
137
|
+
<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="m6 9 6 6 6-6"/></svg>
|
|
138
|
+
</button>
|
|
139
|
+
<div data-popover data-side="bottom" aria-hidden="true" id="demo-select-invalid-panel">
|
|
140
|
+
<div role="listbox" aria-label="Fruit">
|
|
141
|
+
<div role="option" aria-selected="false">
|
|
142
|
+
<span data-slot="text">Apple</span>
|
|
143
|
+
<span data-slot="indicator" aria-hidden="true">✓</span>
|
|
144
|
+
</div>
|
|
145
|
+
<div role="option" aria-selected="false">
|
|
146
|
+
<span data-slot="text">Banana</span>
|
|
147
|
+
<span data-slot="indicator" aria-hidden="true">✓</span>
|
|
148
|
+
</div>
|
|
149
|
+
<div role="option" aria-selected="false">
|
|
150
|
+
<span data-slot="text">Orange</span>
|
|
151
|
+
<span data-slot="indicator" aria-hidden="true">✓</span>
|
|
152
|
+
</div>
|
|
153
|
+
</div>
|
|
154
|
+
</div>
|
|
155
|
+
</div>
|
|
156
|
+
<p id="demo-select-invalid-error" role="alert">Please select a fruit.</p>
|
|
157
|
+
</div>
|
|
158
|
+
|
|
159
|
+
<!-- Scrollable -->
|
|
160
|
+
<div class="field" style="max-width: 16rem">
|
|
161
|
+
<label class="label" for="demo-select-scrollable-trigger">Timezone</label>
|
|
162
|
+
<div class="select">
|
|
163
|
+
<input type="hidden" data-slot="input" name="value">
|
|
164
|
+
<button type="button" role="combobox" aria-haspopup="listbox" aria-expanded="false" aria-controls="demo-select-scrollable-panel" id="demo-select-scrollable-trigger">
|
|
165
|
+
<span data-slot="value" data-placeholder>Select a timezone</span>
|
|
166
|
+
<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="m6 9 6 6 6-6"/></svg>
|
|
167
|
+
</button>
|
|
168
|
+
<div data-popover data-side="bottom" aria-hidden="true" id="demo-select-scrollable-panel">
|
|
169
|
+
<div role="listbox" aria-label="Timezone">
|
|
170
|
+
<div role="group" aria-labelledby="demo-select-scrollable-north-america">
|
|
171
|
+
<div data-slot="label" id="demo-select-scrollable-north-america">North America</div>
|
|
172
|
+
<div role="option" aria-selected="false"><span data-slot="text">Eastern Standard Time</span><span data-slot="indicator" aria-hidden="true">✓</span></div>
|
|
173
|
+
<div role="option" aria-selected="false"><span data-slot="text">Central Standard Time</span><span data-slot="indicator" aria-hidden="true">✓</span></div>
|
|
174
|
+
<div role="option" aria-selected="false"><span data-slot="text">Mountain Standard Time</span><span data-slot="indicator" aria-hidden="true">✓</span></div>
|
|
175
|
+
<div role="option" aria-selected="false"><span data-slot="text">Pacific Standard Time</span><span data-slot="indicator" aria-hidden="true">✓</span></div>
|
|
176
|
+
<div role="option" aria-selected="false"><span data-slot="text">Alaska Standard Time</span><span data-slot="indicator" aria-hidden="true">✓</span></div>
|
|
177
|
+
<div role="option" aria-selected="false"><span data-slot="text">Hawaii Standard Time</span><span data-slot="indicator" aria-hidden="true">✓</span></div>
|
|
178
|
+
</div>
|
|
179
|
+
<div role="separator" aria-hidden="true"></div>
|
|
180
|
+
<div role="group" aria-labelledby="demo-select-scrollable-europe-africa">
|
|
181
|
+
<div data-slot="label" id="demo-select-scrollable-europe-africa">Europe & Africa</div>
|
|
182
|
+
<div role="option" aria-selected="false"><span data-slot="text">Greenwich Mean Time</span><span data-slot="indicator" aria-hidden="true">✓</span></div>
|
|
183
|
+
<div role="option" aria-selected="false"><span data-slot="text">Central European Time</span><span data-slot="indicator" aria-hidden="true">✓</span></div>
|
|
184
|
+
<div role="option" aria-selected="false"><span data-slot="text">Eastern European Time</span><span data-slot="indicator" aria-hidden="true">✓</span></div>
|
|
185
|
+
<div role="option" aria-selected="false"><span data-slot="text">Central Africa Time</span><span data-slot="indicator" aria-hidden="true">✓</span></div>
|
|
186
|
+
<div role="option" aria-selected="false"><span data-slot="text">East Africa Time</span><span data-slot="indicator" aria-hidden="true">✓</span></div>
|
|
187
|
+
</div>
|
|
188
|
+
<div role="separator" aria-hidden="true"></div>
|
|
189
|
+
<div role="group" aria-labelledby="demo-select-scrollable-asia">
|
|
190
|
+
<div data-slot="label" id="demo-select-scrollable-asia">Asia</div>
|
|
191
|
+
<div role="option" aria-selected="false"><span data-slot="text">Moscow Time</span><span data-slot="indicator" aria-hidden="true">✓</span></div>
|
|
192
|
+
<div role="option" aria-selected="false"><span data-slot="text">India Standard Time</span><span data-slot="indicator" aria-hidden="true">✓</span></div>
|
|
193
|
+
<div role="option" aria-selected="false"><span data-slot="text">China Standard Time</span><span data-slot="indicator" aria-hidden="true">✓</span></div>
|
|
194
|
+
<div role="option" aria-selected="false"><span data-slot="text">Japan Standard Time</span><span data-slot="indicator" aria-hidden="true">✓</span></div>
|
|
195
|
+
<div role="option" aria-selected="false"><span data-slot="text">Korea Standard Time</span><span data-slot="indicator" aria-hidden="true">✓</span></div>
|
|
196
|
+
</div>
|
|
197
|
+
<div role="separator" aria-hidden="true"></div>
|
|
198
|
+
<div role="group" aria-labelledby="demo-select-scrollable-australia-pacific">
|
|
199
|
+
<div data-slot="label" id="demo-select-scrollable-australia-pacific">Australia & Pacific</div>
|
|
200
|
+
<div role="option" aria-selected="false"><span data-slot="text">Australian Western Standard Time</span><span data-slot="indicator" aria-hidden="true">✓</span></div>
|
|
201
|
+
<div role="option" aria-selected="false"><span data-slot="text">Australian Central Standard Time</span><span data-slot="indicator" aria-hidden="true">✓</span></div>
|
|
202
|
+
<div role="option" aria-selected="false"><span data-slot="text">Australian Eastern Standard Time</span><span data-slot="indicator" aria-hidden="true">✓</span></div>
|
|
203
|
+
<div role="option" aria-selected="false"><span data-slot="text">New Zealand Standard Time</span><span data-slot="indicator" aria-hidden="true">✓</span></div>
|
|
204
|
+
<div role="option" aria-selected="false"><span data-slot="text">Fiji Time</span><span data-slot="indicator" aria-hidden="true">✓</span></div>
|
|
205
|
+
</div>
|
|
206
|
+
<div role="separator" aria-hidden="true"></div>
|
|
207
|
+
<div role="group" aria-labelledby="demo-select-scrollable-south-america">
|
|
208
|
+
<div data-slot="label" id="demo-select-scrollable-south-america">South America</div>
|
|
209
|
+
<div role="option" aria-selected="false"><span data-slot="text">Argentina Time</span><span data-slot="indicator" aria-hidden="true">✓</span></div>
|
|
210
|
+
<div role="option" aria-selected="false"><span data-slot="text">Bolivia Time</span><span data-slot="indicator" aria-hidden="true">✓</span></div>
|
|
211
|
+
<div role="option" aria-selected="false"><span data-slot="text">Brasilia Time</span><span data-slot="indicator" aria-hidden="true">✓</span></div>
|
|
212
|
+
<div role="option" aria-selected="false"><span data-slot="text">Chile Standard Time</span><span data-slot="indicator" aria-hidden="true">✓</span></div>
|
|
213
|
+
</div>
|
|
214
|
+
</div>
|
|
215
|
+
</div>
|
|
216
|
+
</div>
|
|
217
|
+
</div>
|
|
218
|
+
|
|
219
|
+
<!-- Right-to-left -->
|
|
220
|
+
<div class="field" dir="rtl" lang="ar" style="max-width: 20rem">
|
|
221
|
+
<label class="label" for="demo-select-rtl-trigger">الفاكهة</label>
|
|
222
|
+
<div class="select" style="max-width: 12rem">
|
|
223
|
+
<input type="hidden" data-slot="input" name="value">
|
|
224
|
+
<button type="button" role="combobox" aria-haspopup="listbox" aria-expanded="false" aria-controls="demo-select-rtl-panel" id="demo-select-rtl-trigger">
|
|
225
|
+
<span data-slot="value" data-placeholder>اختر فاكهة</span>
|
|
226
|
+
<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="m6 9 6 6 6-6"/></svg>
|
|
227
|
+
</button>
|
|
228
|
+
<div data-popover data-side="bottom" aria-hidden="true" id="demo-select-rtl-panel">
|
|
229
|
+
<div role="listbox" aria-label="الفاكهة">
|
|
230
|
+
<div role="option" aria-selected="false">
|
|
231
|
+
<span data-slot="text">تفاح</span>
|
|
232
|
+
<span data-slot="indicator" aria-hidden="true">✓</span>
|
|
233
|
+
</div>
|
|
234
|
+
<div role="option" aria-selected="false">
|
|
235
|
+
<span data-slot="text">موز</span>
|
|
236
|
+
<span data-slot="indicator" aria-hidden="true">✓</span>
|
|
237
|
+
</div>
|
|
238
|
+
<div role="option" aria-selected="false">
|
|
239
|
+
<span data-slot="text">برتقال</span>
|
|
240
|
+
<span data-slot="indicator" aria-hidden="true">✓</span>
|
|
241
|
+
</div>
|
|
242
|
+
<div role="option" aria-selected="false">
|
|
243
|
+
<span data-slot="text">عنب</span>
|
|
244
|
+
<span data-slot="indicator" aria-hidden="true">✓</span>
|
|
245
|
+
</div>
|
|
246
|
+
</div>
|
|
247
|
+
</div>
|
|
248
|
+
</div>
|
|
249
|
+
<p>اختر الفاكهة المفضلة لديك.</p>
|
|
250
|
+
</div>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<!-- Default -->
|
|
2
|
-
<button type="button" class="btn" data-variant="outline">
|
|
2
|
+
<button type="button" class="btn" data-variant="outline" data-open-dialog="demo-sheet-default">
|
|
3
3
|
Open sheet
|
|
4
4
|
</button>
|
|
5
5
|
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
</div>
|
|
23
23
|
</section>
|
|
24
24
|
<footer>
|
|
25
|
-
<button type="button" class="btn" data-variant="outline">Cancel</button>
|
|
26
|
-
<button type="button" class="btn">Save changes</button>
|
|
25
|
+
<button type="button" class="btn" data-variant="outline" data-close-dialog>Cancel</button>
|
|
26
|
+
<button type="button" class="btn" data-close-dialog>Save changes</button>
|
|
27
27
|
</footer>
|
|
28
28
|
<form method="dialog">
|
|
29
29
|
<button class="btn" data-variant="ghost" data-size="icon-sm" aria-label="Close"><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="M18 6 6 18"/><path d="m6 6 12 12"/></svg></button>
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
|
|
34
34
|
<!-- Sides -->
|
|
35
35
|
<div style="display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem">
|
|
36
|
-
<button type="button" class="btn" data-variant="outline" data-size="sm">Top</button>
|
|
37
|
-
<button type="button" class="btn" data-variant="outline" data-size="sm">Right</button>
|
|
38
|
-
<button type="button" class="btn" data-variant="outline" data-size="sm">Bottom</button>
|
|
39
|
-
<button type="button" class="btn" data-variant="outline" data-size="sm">Left</button>
|
|
36
|
+
<button type="button" class="btn" data-variant="outline" data-size="sm" data-open-dialog="demo-sheet-side-top">Top</button>
|
|
37
|
+
<button type="button" class="btn" data-variant="outline" data-size="sm" data-open-dialog="demo-sheet-side-right">Right</button>
|
|
38
|
+
<button type="button" class="btn" data-variant="outline" data-size="sm" data-open-dialog="demo-sheet-side-bottom">Bottom</button>
|
|
39
|
+
<button type="button" class="btn" data-variant="outline" data-size="sm" data-open-dialog="demo-sheet-side-left">Left</button>
|
|
40
40
|
</div>
|
|
41
41
|
|
|
42
42
|
<dialog class="sheet" id="demo-sheet-side-top" data-side="block-start" aria-labelledby="sheet-side-top-title">
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
<p>Use a top sheet for a short announcement or a wide filter bar.</p>
|
|
50
50
|
</section>
|
|
51
51
|
<footer>
|
|
52
|
-
<button type="button" class="btn" data-variant="outline">Close</button>
|
|
52
|
+
<button type="button" class="btn" data-variant="outline" data-close-dialog>Close</button>
|
|
53
53
|
</footer>
|
|
54
54
|
<form method="dialog">
|
|
55
55
|
<button class="btn" data-variant="ghost" data-size="icon-sm" aria-label="Close top sheet"><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="M18 6 6 18"/><path d="m6 6 12 12"/></svg></button>
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
<p>Use a side sheet for details that complement the page.</p>
|
|
68
68
|
</section>
|
|
69
69
|
<footer>
|
|
70
|
-
<button type="button" class="btn" data-variant="outline">Close</button>
|
|
70
|
+
<button type="button" class="btn" data-variant="outline" data-close-dialog>Close</button>
|
|
71
71
|
</footer>
|
|
72
72
|
<form method="dialog">
|
|
73
73
|
<button class="btn" data-variant="ghost" data-size="icon-sm" aria-label="Close right sheet"><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="M18 6 6 18"/><path d="m6 6 12 12"/></svg></button>
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
<p>Use a bottom sheet for actions that relate to the current view.</p>
|
|
86
86
|
</section>
|
|
87
87
|
<footer>
|
|
88
|
-
<button type="button" class="btn" data-variant="outline">Close</button>
|
|
88
|
+
<button type="button" class="btn" data-variant="outline" data-close-dialog>Close</button>
|
|
89
89
|
</footer>
|
|
90
90
|
<form method="dialog">
|
|
91
91
|
<button class="btn" data-variant="ghost" data-size="icon-sm" aria-label="Close bottom sheet"><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="M18 6 6 18"/><path d="m6 6 12 12"/></svg></button>
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
<p>Use a left sheet for navigation or secondary controls.</p>
|
|
104
104
|
</section>
|
|
105
105
|
<footer>
|
|
106
|
-
<button type="button" class="btn" data-variant="outline">Close</button>
|
|
106
|
+
<button type="button" class="btn" data-variant="outline" data-close-dialog>Close</button>
|
|
107
107
|
</footer>
|
|
108
108
|
<form method="dialog">
|
|
109
109
|
<button class="btn" data-variant="ghost" data-size="icon-sm" aria-label="Close left sheet"><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="M18 6 6 18"/><path d="m6 6 12 12"/></svg></button>
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
</dialog>
|
|
113
113
|
|
|
114
114
|
<!-- No close button -->
|
|
115
|
-
<button type="button" class="btn" data-variant="outline">
|
|
115
|
+
<button type="button" class="btn" data-variant="outline" data-open-dialog="demo-sheet-no-close">
|
|
116
116
|
Open sheet without close
|
|
117
117
|
</button>
|
|
118
118
|
|
|
@@ -126,13 +126,13 @@
|
|
|
126
126
|
<p>Omit the close form when the footer already provides a clear exit.</p>
|
|
127
127
|
</section>
|
|
128
128
|
<footer>
|
|
129
|
-
<button type="button" class="btn">Close</button>
|
|
129
|
+
<button type="button" class="btn" data-close-dialog>Close</button>
|
|
130
130
|
</footer>
|
|
131
131
|
</div>
|
|
132
132
|
</dialog>
|
|
133
133
|
|
|
134
134
|
<!-- Scrollable content -->
|
|
135
|
-
<button type="button" class="btn" data-variant="outline">
|
|
135
|
+
<button type="button" class="btn" data-variant="outline" data-open-dialog="demo-sheet-scrollable">
|
|
136
136
|
Open scrollable sheet
|
|
137
137
|
</button>
|
|
138
138
|
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
|
|
154
154
|
</section>
|
|
155
155
|
<footer>
|
|
156
|
-
<button type="button" class="btn" data-variant="outline">Close</button>
|
|
156
|
+
<button type="button" class="btn" data-variant="outline" data-close-dialog>Close</button>
|
|
157
157
|
</footer>
|
|
158
158
|
<form method="dialog">
|
|
159
159
|
<button class="btn" data-variant="ghost" data-size="icon-sm" aria-label="Close scrollable sheet"><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="M18 6 6 18"/><path d="m6 6 12 12"/></svg></button>
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
</dialog>
|
|
163
163
|
|
|
164
164
|
<!-- Left, small -->
|
|
165
|
-
<button type="button" class="btn" data-variant="outline">
|
|
165
|
+
<button type="button" class="btn" data-variant="outline" data-open-dialog="demo-sheet-left">
|
|
166
166
|
Open left sheet
|
|
167
167
|
</button>
|
|
168
168
|
|
|
@@ -175,7 +175,7 @@
|
|
|
175
175
|
<p>Use the left sheet for navigation or secondary controls.</p>
|
|
176
176
|
</section>
|
|
177
177
|
<footer>
|
|
178
|
-
<button type="button" class="btn" data-variant="outline">Close</button>
|
|
178
|
+
<button type="button" class="btn" data-variant="outline" data-close-dialog>Close</button>
|
|
179
179
|
</footer>
|
|
180
180
|
<form method="dialog">
|
|
181
181
|
<button class="btn" data-variant="ghost" data-size="icon-sm" aria-label="Close left sheet"><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="M18 6 6 18"/><path d="m6 6 12 12"/></svg></button>
|
|
@@ -184,7 +184,7 @@
|
|
|
184
184
|
</dialog>
|
|
185
185
|
|
|
186
186
|
<!-- Large -->
|
|
187
|
-
<button type="button" class="btn" data-variant="outline">
|
|
187
|
+
<button type="button" class="btn" data-variant="outline" data-open-dialog="demo-sheet-large">
|
|
188
188
|
Open large sheet
|
|
189
189
|
</button>
|
|
190
190
|
|
|
@@ -201,8 +201,8 @@
|
|
|
201
201
|
</div>
|
|
202
202
|
</section>
|
|
203
203
|
<footer>
|
|
204
|
-
<button type="button" class="btn" data-variant="outline">Reset</button>
|
|
205
|
-
<button type="button" class="btn">Apply</button>
|
|
204
|
+
<button type="button" class="btn" data-variant="outline" data-close-dialog>Reset</button>
|
|
205
|
+
<button type="button" class="btn" data-close-dialog>Apply</button>
|
|
206
206
|
</footer>
|
|
207
207
|
<form method="dialog">
|
|
208
208
|
<button class="btn" data-variant="ghost" data-size="icon-sm" aria-label="Close large sheet"><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="M18 6 6 18"/><path d="m6 6 12 12"/></svg></button>
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
|
|
213
213
|
<!-- Right-to-left -->
|
|
214
214
|
<div dir="rtl" lang="ar">
|
|
215
|
-
<button type="button" class="btn" data-variant="outline">
|
|
215
|
+
<button type="button" class="btn" data-variant="outline" data-open-dialog="demo-sheet-rtl">
|
|
216
216
|
فتح اللوحة
|
|
217
217
|
</button>
|
|
218
218
|
|
|
@@ -229,8 +229,8 @@
|
|
|
229
229
|
</div>
|
|
230
230
|
</section>
|
|
231
231
|
<footer>
|
|
232
|
-
<button type="button" class="btn" data-variant="outline">إلغاء</button>
|
|
233
|
-
<button type="button" class="btn">حفظ التغييرات</button>
|
|
232
|
+
<button type="button" class="btn" data-variant="outline" data-close-dialog>إلغاء</button>
|
|
233
|
+
<button type="button" class="btn" data-close-dialog>حفظ التغييرات</button>
|
|
234
234
|
</footer>
|
|
235
235
|
<form method="dialog">
|
|
236
236
|
<button class="btn" data-variant="ghost" data-size="icon-sm" aria-label="إغلاق"><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="M18 6 6 18"/><path d="m6 6 12 12"/></svg></button>
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
</nav>
|
|
27
27
|
</section>
|
|
28
28
|
<footer>
|
|
29
|
-
<span>v0.
|
|
29
|
+
<span>v0.18.0</span>
|
|
30
30
|
</footer>
|
|
31
31
|
</aside>
|
|
32
32
|
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
</nav>
|
|
60
60
|
</section>
|
|
61
61
|
<footer>
|
|
62
|
-
<span>v0.
|
|
62
|
+
<span>v0.18.0</span>
|
|
63
63
|
</footer>
|
|
64
64
|
</aside>
|
|
65
65
|
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
</nav>
|
|
110
110
|
</section>
|
|
111
111
|
<footer>
|
|
112
|
-
<span>v0.
|
|
112
|
+
<span>v0.18.0</span>
|
|
113
113
|
</footer>
|
|
114
114
|
</aside>
|
|
115
115
|
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
</details>
|
|
148
148
|
</section>
|
|
149
149
|
<footer>
|
|
150
|
-
<span>v0.
|
|
150
|
+
<span>v0.18.0</span>
|
|
151
151
|
</footer>
|
|
152
152
|
</aside>
|
|
153
153
|
|
|
@@ -192,7 +192,7 @@
|
|
|
192
192
|
</nav>
|
|
193
193
|
</section>
|
|
194
194
|
<footer>
|
|
195
|
-
<span>v0.
|
|
195
|
+
<span>v0.18.0</span>
|
|
196
196
|
</footer>
|
|
197
197
|
</aside>
|
|
198
198
|
|
|
@@ -224,7 +224,7 @@
|
|
|
224
224
|
</nav>
|
|
225
225
|
</section>
|
|
226
226
|
<footer>
|
|
227
|
-
<span>v0.
|
|
227
|
+
<span>v0.18.0</span>
|
|
228
228
|
</footer>
|
|
229
229
|
</aside>
|
|
230
230
|
|
|
@@ -248,7 +248,7 @@
|
|
|
248
248
|
</nav>
|
|
249
249
|
</section>
|
|
250
250
|
<footer>
|
|
251
|
-
<span>v0.
|
|
251
|
+
<span>v0.18.0</span>
|
|
252
252
|
</footer>
|
|
253
253
|
</aside>
|
|
254
254
|
|
|
@@ -279,7 +279,7 @@
|
|
|
279
279
|
</nav>
|
|
280
280
|
</section>
|
|
281
281
|
<footer>
|
|
282
|
-
<span>v0.
|
|
282
|
+
<span>v0.18.0</span>
|
|
283
283
|
</footer>
|
|
284
284
|
</aside>
|
|
285
285
|
|
|
@@ -337,7 +337,7 @@
|
|
|
337
337
|
</aside>
|
|
338
338
|
|
|
339
339
|
<!-- Mobile -->
|
|
340
|
-
<button type="button" class="btn" data-variant="outline">
|
|
340
|
+
<button type="button" class="btn" data-variant="outline" data-open-dialog="demo-sidebar-mobile">
|
|
341
341
|
Open navigation
|
|
342
342
|
</button>
|
|
343
343
|
|
|
@@ -361,7 +361,7 @@
|
|
|
361
361
|
</nav>
|
|
362
362
|
</section>
|
|
363
363
|
<footer>
|
|
364
|
-
<span>v0.
|
|
364
|
+
<span>v0.18.0</span>
|
|
365
365
|
</footer>
|
|
366
366
|
</aside>
|
|
367
367
|
</div>
|
|
@@ -402,6 +402,6 @@
|
|
|
402
402
|
</nav>
|
|
403
403
|
</section>
|
|
404
404
|
<footer>
|
|
405
|
-
<span>الإصدار 0.
|
|
405
|
+
<span>الإصدار 0.18.0</span>
|
|
406
406
|
</footer>
|
|
407
407
|
</aside>
|
|
@@ -15,3 +15,14 @@
|
|
|
15
15
|
<button type="button" class="btn" data-variant="ghost" data-size="icon-xs" data-slot="close" aria-label="Dismiss">×</button>
|
|
16
16
|
</div>
|
|
17
17
|
</div>
|
|
18
|
+
|
|
19
|
+
<!-- Persistent -->
|
|
20
|
+
<div style="display: flex; flex-direction: column; gap: 0.5rem; max-width: 22rem">
|
|
21
|
+
<div class="toast" role="status" data-duration="0">
|
|
22
|
+
<section>
|
|
23
|
+
<p data-slot="title">Sync paused</p>
|
|
24
|
+
<p data-slot="description">Resume when you are back online. This toast stays until dismissed.</p>
|
|
25
|
+
</section>
|
|
26
|
+
<button type="button" class="btn" data-variant="ghost" data-size="icon-xs" data-slot="close" aria-label="Dismiss">×</button>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|